728x90
Question

Can we add a DBSERVER entry dynamically to the SQLHOSTS file without bouncing the database server?

Cause

A need exist to add a new connection to the instance dynamically without any down time.

Answer

Starting with Informix version 11.50.xC6 we have the ability to Dynamically Start, Stop and Restart Listen threads with the onmode -P command or by using the SQL Admin API. 

This feature allows a new listener thread to be started on a port without the need to restart the database server. Adding new entries in to the sqlhosts file and the DBSERVERALIAS parameter of the onconfig file and executing the onmode -P or SQL API commands will allow new connections to utilize the new server name.

Steps:


1. Modify the sqlhosts to add the new connection:

      new_test_tcp onsoctcp myhost 4567 

2. Modify the DBSERVERALIAS parameter of the onconfig file: 

      DBSERVERALIASES main_prim_shm:new_test_tcp 

3. Start a listener thread for the new alias:

       onmode -P start new_test_tcp

OR use the sysadmin SQL API :

      execute function admin("start listen","new_test_tcp");


728x90
728x90

Problem(Abstract)

connections mysterious dropping from client applications


Symptom

connects/sessions dropping from a client application with no indication


Cause

“Idle Tiimeout” task enabled on Operating System


Resolving the problem

Disable the Idle Tiimeout on your operating System.

728x90
728x90

Question

Changing hostname of the DB2 server. What updates in DB2 need to be made?

Cause

Changing the DB2 server's hostname.

Answer

Perform the following on the DB2 server:


1) Login as the dasadm user on UNIX/Linux or Local Administrator on Windows. Stop the DB2 Administration Server (DAS):

    db2admin stop

2) Login as the instance owner on UNIX/Linux or Local Administrator on Windows. Stop the DB2 instance:
    db2stop

3) Change the server's hostname. on a Windows system, a reboot is required before this change will take effect. Do not reboot the Windows Server at this time - you must make the DB2 Configuration changes first. 

4) Login as user ROOT if DB2 is on UNIX/Linux and Local Administrator on Windows. Update the DB2SYSTEM registry variable while in the instance home directory:
    • UNIX/Linux
      db2iset -g DB2SYSTEM=<new hostname> 
    • Windows 
      db2set -g DB2SYSTEM=<new hostname>

5) Locate db2nodes.cfg in one of the following directories:
  • UNIX/Linux:
    <db2 instance home directory>/sqllib/db2nodes.cfg

  • All Windows flavors running DB2 v8 and v9.1: 
    Program Files\IBM\SQLLIB\DB2\db2nodes.cfg 

  • Windows XP and 2003 running DB2 v9.5: 
    Documents and Settings\All Users\Application Data\IBM\DB2\<DB2COPY>\DB2\db2nodes.cfg

    NOTE: Application Data is a hidden folder

  • Windows Vista and later operating systems: ProgramData\IBM\DB2\<DB2COPY>\DB2\db2nodes.cfg
Note that only DB2 ESE has a db2nodes.cfg. If you are running other editions (WorkGroup Server, or Personal Edition) then you can skip this step and the next.

6) In the db2nodes.cfg file change <current hostname> to <new hostname>. 


7) Run the following command to list the current hostname/system name that is cataloged:
    db2 list admin node directory show detail 

    If there are no Admin Node Directory entries then you can skip the next 2 steps. It simply means that you haven't started the Control Center. The Admin Node Directory will get updated the next time the Control Center is started, based upon the current hostname. 
8) Uncatalog the current hostname using this command:
    db2 uncatalog node <nodename> 

9) Catalog the admin node with the new hostname using this command:
    db2 catalog admin tcpip node <nodename> remote <new hostname> system <new hostname> 

    <nodename> can be anything you want it to be (8 characters or less). It does not relate directly to the hostname itself.
    10) Update the admin configuration file using these commands:
      db2 update admin cfg using DB2SYSTEM <new hostname> 
      db2 update admin cfg using SMTP_SERVER <new hostname>

    11) At this time, you should restart your server if running Windows. Note that if your instances are set to auto-start, you may get error messages. These will occur if you have DB2_EXTSECURITY enabled. To correct this, you will need to update the DB2_ADMINGROUP and DB2_USERSGROUP registry entries using the db2extsec command. See the 'note' at the end of this technote for more details. 

    12) Login as the dasadm user on UNIX/Linux or Local Administrator on Windows. Start the DB2 Administration Server (DAS):
      db2admin start

    13) Login as the instance owner on UNIX/Linux or Local Administrator on Windows. Start the DB2 instance:
      db2start

    14) In Control Center find the old hostname under the "All Systems" folder and right click, choose Remove. 

    15) In Control Center add the new hostname. Right click on the "All Systems" folder and choose "Add". Click on "Discover" to locate the new hostname. 

    NOTE: 
    Starting in v9.1 FP2, DB2 supports the use of domain groups for extended security. Therefore, when you change the computer name and the computer groups DB2ADMNS and DB2USERS are local computer groups, you must update the DB2_ADMINGROUP and DB2_USERSGROUP global registries. Please see the Related URL for instructions on how to do this. 

    If Windows Extended Security has been enabled then you will need to tell DB2 to lookup the WIndows local groups DB2ADMNS and DB2USERS via the new hostname. For example if the hostname is changed to QASERVER then execute: 

    db2extsec /a QASERVER\DB2ADMNS /u QASERVER\DB2USERS 


    http://www-01.ibm.com/support/docview.wss?uid=swg21258834

    728x90
    728x90

    Problem(Abstract)

    You see errors like these on Windows when running ontape, oninit, starts, net start and so on as user informix:

    Only member of IXDBSA group (Informix-Admin, by default) can start IBM Informix Dynamic Server.
    Dynamic Server failed to start in Recovery Mode. Check Event Log for errors.
    System error 5 has occurred. Access is denied.

    Symptom

    • Only member of IXDBSA group (Informix-Admin, by default) can start IBM Informix Dynamic Server.
    • Dynamic Server failed to start in Recovery Mode. Check Event Log for errors.
    • System error 5 has occurred. Access is denied.

    Cause

    The behavior you are seeing is caused by one of these:

    • Windows User Account Controls (UAC) component is enabled
    • Lack of rights for user informix
    • The user is not part of the IXDBSA group (Informix-Admin, by default)

    Resolving the problem


    http://www-01.ibm.com/support/docview.wss?uid=swg21430794

    728x90
    728x90

    Problem(Abstract)

    Your IBM Informix server instance terminated unexpectedly. There is no message in server log file (online.log) indicating that it came offline.

    Diagnosing the problem

    Check your system for a file named olsrvice.log (not olservice.log). You may find the file in the Informix server directory, C:\WINDOWS\system32, or possibly another directory. If the file contains the message that follows, then the server was not brought offline by terminating the database server service.

    <timestamp>  Service was shut-down externally.

    You should be able to mimic this behavior by executing a taskkill command to kill oninit.exe:

    >taskkill /F /IM oninit.exe /T


    http://www-01.ibm.com/support/docview.wss?uid=swg21606530

    728x90
    728x90

    Problem(Abstract)

    I receive the below error when applying the DB2 Enterprise Server Edition license on a 32-bit Linux system:

    LIC1449N The license was not installed due to a platform restriction. 

    Explanation: 
    This DB2 product is only supported in trial mode, also known as "Try and Buy" mode, on this platform. 

    User response: 
    Continue to use this product in trial mode, or install one which is fully supported on this platform. 

    Cause

    DB2 Enterprise Server Edition v9.5 and higher is only supported in Test and Development mode on 32-bit Linux systems.

    Resolving the problem

    A DB2 Enterprise Server Edition permanent license may only be applied on a 64-bit Linux system.

    Here are your options: 

    • Upgrade the OS to 64-bit Linux and then install Enterprise Server Edition and license.
    • Purchase another DB2 edition such as DB2 Workgroup Server Edition or DB2 Express Edition. You will need to also obtain and apply the corresponding permanent license.
    • Purchase DB2 Developer's Edition for 32-bit Linux. The Developer's Edition license certificate (db2dede.lic) can be applied on top of a Enterprise Server Edition install without any problems.


    http://www-01.ibm.com/support/docview.wss?uid=swg21421213

    728x90
    728x90

    인포믹스 12.10이 출시되면서 인포믹스 모니터링 도구인 OAT가 Android와 iOS용으로도 공개되었습니다.

    Mobile OAT를 실행하려면 OpenAdmin Tool 3.11 버전이 설치되어 있어야합니다.

    아래는 제 iphone으로 실행한 화면을 캡쳐한 것입니다.

     

    OAT 주소, 언어, 모니터링 항목들을 설정하는 화면입니다.

     

    그룹 로그인에서는 OAT에 등록한 인스턴스 리스트를 간략하게 보여줍니다.

     

     

    아래와 같이 OAT의 주소를 직접 입력할 수 있습니다.

     

     

    DBSPACE 사용량에 대한 모니터링 내역입니다.

     

     

    아직은 모니터링 할 수 있는 영역이 다소 제한적이지만 현재로서도 상당히 유용한 툴인 것은 분명합니다.

    많은 관리자와 사용자가 사용하면서 개선이 이루어 진다면 좋겠습니다.

    728x90
    728x90

    Question

    How many processors exist on an HP-UX system?

    Answer

    This document explains how to count the number of processors on your system as IBM Informix® products defines a processor. Various IBM Informix® products are tuned based on the number of processors on your system. The NUMCPUVPS or VPCLASS onCONFIG configuration parameter, for example, should be set to one less than the actual number of physical CPUs present in the server. 

    A processor is a device that operates on core. With multiple core technology, this can be a single device or a device that has multiple core "processors". IBM Informix® products consider these multiple cores as separate physical processors. 

    On any HP-UX system, the ioscan command lists how many processors(single or multiple core) are on your system. The ioscan command (located in/usr/sbin) outputs a list of all IO devices. Each line in the output that begins with processor represents a processor that is either a single device or an instance of a multiple core device. 

    Use the following command line to include the processors in the output and automatically count them using grep (pattern match) and wc (character count). For more information see your Operating System man pages.

      /usr/sbin/ioscan -kf | grep processor | wc -l

      Example 1: 

      This example is from a machine with 2 processors. 

        $   /usr/sbin/ioscan -kf|grep processor|wc -l 
        2 

        Note: You would set the NUMCPUVPS or VPCLASS parameter to 1 in this example. 
      Example 2: 

      This example is from a machine with 4 processors. 
        $   /usr/sbin/ioscan -kf|grep processor|wc -l 
        4

      This example is from a machine with 4 processors. The Line count (wc -l) is left off to show the actual ioscan and grep output. 

        $   /usr/sbin/ioscan -kf|grep processor 
        processor   0  120            processor  CLAIMED     PROCESSOR    Processor 
        processor   1  121            processor  CLAIMED     PROCESSOR    Processor 
        processor   2  122            processor  CLAIMED     PROCESSOR    Processor 
        processor   3  123            processor  CLAIMED     PROCESSOR    Processor 

        Note: You would set the NUMCPUVPS or VPCLASS parameter to 3 in this example.


    http://www-01.ibm.com/support/docview.wss?uid=swg21105416

    728x90
    728x90

    Problem(Abstract)

    The NUMCPUVP onconfig parameter should be set to one less than the actual number of physical CPUs present in the server. This document provides the commands to determine the number of CPUs on AIX machines before setting the parameter.

    Resolving the problem

    On AIX you use the command lsdev to determine how many CPUs your system has. The command lsdev (located in /usr/sbin) is used to list the system devices. Use it with the following options to list all processors one per line:

      /usr/sbin/lsdev -C -c processor

      Example: 

      This example is from a single processor system. 

        $ lsdev -C -c processor 
        proc0 Available 00-00 Processor


    http://www-01.ibm.com/support/docview.wss?uid=swg21105418

    728x90
    728x90

    Problem(Abstract)

    This document explains why IBM Informix Dynamic Server commands, such as onstat, might fail when being loaded.

    Symptom

    When KAIOON environment variable is set to 1 to enable Kernel Asynchronous I/O (KAIO) on Informix Dynamic Server (IDS), the following error message is reported by IBM Informix Dynamic Server commands, such as onstat or oninit:

    $onstat -
    exec(): 0509-036 Cannot load program onstat because of the following errors:


    0509-130 Symbol resolution failed for usr/lib/libc.a(aio.o)because:
    0509-136   Symbol kaio_rdwr (number 0) is not exported from dependent module /unix.
    0509-136   Symbol listio (number 1) is not exported from dependent module /unix.
    0509-136   Symbol acancel (number 2) is not exported from dependent module /unix.
    0509-136   Symbol iosuspend (number 3)is not exported from dependent module /unix.
    0509-136   Symbol aio_nwait (number 4) is not exported from dependent module /unix.
    0509-192 Examine .loader section symbols with the'dump -Tv' command.    

    Cause

    The IBM Informix Dynamic Server requires that the drivers for Asynchronous IO (AIO) be loaded on the AIX system where the IBM Informix Dynamic Server is used. The IBM Informix Dynamic Server executables use entry points defined by these drivers.


    The error can be seen when AIO was not enabled at the AIX system.


    http://www-01.ibm.com/support/docview.wss?uid=swg21202395

    728x90

    + Recent posts