728x90


Question

How to isolate High CPU usage for Informix?


Looking at the OS statistics, sometimes it can be observed that 'oninit' process(es) corresponding to the configured CPU-class virtual processors, use an high percentage of the server CPU 
.
Such high CPU usage events are short peaks and not the normal condition. 



Here are a few ways to associate to each Informix running session the amount of CPU that is being used by it.

Answer

http://www-01.ibm.com/support/docview.wss?uid=swg21617121&myns=swgimgmt&mynp=OCSSGU8G&mync=E

728x90
728x90


Question

How to find the build number for a specific Optim version

Cause

Optim versions for customers can be downloaded from your personally configured Passport Advantage ( PA ) download area. The names of the files, which will be saved on disk are crypt and do not contain any hint about the version in itself.

Sometimes it is necessary to find out which version of Optim is a such file, named like this:CZD0AEN.ZIP

Answer

In Optim versions before 8, there is an empty directory in the directory structure, after the downloaded compressed file was extracted. The name of this empty directory, starting with "Bld..." reflects the build number of the specific Optim version.

In a command line operation on Unix or Windows, the directory structure can be created with the command "ls -la" for Unix and Linux, or with the command "dir" for Windows.


$ ls -la

drwxr-xr-x 2 optim731 OPTIMGRP      4096 Aug  4 06:51 Bld3638
drwxr-xr-x 2 optim731 OPTIMGRP      4096 Aug  4 06:51 enterpris
-rwxr--r-- 1 optim731 OPTIMGRP      290196458 Aug  4 06:51 install.bin
drwxr-xr-x 2 optim731 OPTIMGRP      4096 Aug  4 06:51 Linux
drwxr-xr-x 2 optim731 OPTIMGRP      4096 Aug  4 06:52 OptimConnectInstallationManuals
-rwxr--r-- 1 optim731 OPTIMGRP      953 Aug  4 06:51 optim_installer.properties


http://www.ibm.com/support/docview.wss?uid=swg21577876&myns=swgimgmt&mynp=OCSSGMCR&mync=E


728x90
728x90


Problem(Abstract)

IBM® Informix® Dynamic Server™ (IDS): After setting up a HDR pair environment, there is sometimes confusion on how to add logical logs. 
This document provides you with a correct procedure on how to accomplish this task.

Resolving the problem

INTRODUCTION

This guide outlines the supported method of adding logical logs in a HDR pair in the IDS environment, where a new log is initially added to the primary and then replicated to the secondary server.

STEPS 

  1. This step adds log(s) in a HDR pair environment. Use onparams" command to add the desired number of logs on the primary server, for example: 

    $ onparams -a -d logspace 

  2. The onparams operation is automatically replicated on the secondary database server. 

  3. The action of adding logs can be confirmed by checking the online.log messages and a logical log listing (by means of onstat -l" ). 
    The command onstat -l" will display the newly added log(s) with the flag 'A'. 
    The logs are immediately available for use. 

  4. A level-0 archive of the rootdbs and the dbspace containing the newly added log(s) is recommended.


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

728x90
728x90


Problem(Abstract)

How to manually change the type of the data replication server in a High-Availability Data Replication (HDR) pair; from Primary to Secondary and vice versa.

Resolving the problem

INTRODUCTION

You can change the data replication server type of an IBM® Informix® Dynamic Server (IDS) instance in an HDR pair from Primary to Secondary and Secondary to Primary. 


BEFORE YOU BEGIN

The steps below will only work when data replication has been started with DRAUTO set to 0 (manual), which is the default, in the $ONCONFIG file.

You will need to open two session windows, the first session to connect to the Primary server, and the second session to connect to the Secondary server. After you log in as user informix, set up your environment to administer the database server, you must also check to ensure the Primary server and Secondary server are up and operational.


STEPS

The following steps will show you how to manually change the current Primary server to a new Secondary server, and the current Secondary to a new Primary.

Check server status and message log after each command to ensure the server is in the correct state before the next step. Failing to do so can result in data replication pair out of synchronization and shall require re-establishing the pair from archive.


On the current Primary server

1. Run this command to check the database server status:

onstat -

The output must contain this:

-- on-Line (Prim) -- Up

Note: If it does not show the above then you must correct it before proceeding to the next steps.

2. Shut down the current Primary server, run the following command:

onmode -ky



    On the current Secondary server

    1. Run this command to change the DR current type Secondary to DR new type Standard:
      onmode -d standard
    Check the message log for these messages:
      DR: new type = standard
      On-Line Mode
    2. Run this command to change DR type from Standard to Primary:
      onmode -d primary <secondary dbserver name>*

         *<secondary dbserver name> is the former primary database server name.

    Check the message log for messages similar to these:
      DR: new type = primary, secondary server name = <secondary dbserver name>
      DR: Trying to connect to secondary server = <secondary dbserver name>
      DR: Cannot connect to secondary server
      DR: Turned off on primary server

    Run this command to check the database server status:
      onstat -

    The output should contain this:
       -- on-Line (Prim) -- Up

    Your former Secondary is now Primary and online.


    3. Shut down the new Primary server, run the following command:

    onmode -ky



    On the former Primary server (now Off-Line)

    1. Run this command to start up the former Primary server in physical recovery mode:
      oninit -PHY

    Check the message log for these messages:
      Recovery Mode

    The server status should contain:
      -- Fast Recovery -- Up

    2. You can now change the DR type to Secondary, execute the following command:
      onmode -d secondary <primary dbserver name>*

        *<primary dbserver name>is the former Secondary database server name.
    The command above may take a few minutes to complete. You will see messages in the message log like these:
      DR: new type = secondary, primary server name = <primary dbserver name>
      DR: Trying to connect to primary server = <primary dbserver name>
      DR: Cannot connect to primary server
      DR: Turned off on secondary server


    On the new Primary server

    1. Run this command to start up the new Primary server:

    oninit

    The message log will show something like:
      On-Line Mode
      DR: Sending log <log number> (current), size <value> pages, <value> percent used
      DR: Sending Logical Logs Completed
      DR: Primary server operational
      Run this command to check the database server status:

      onstat -


      The output should contain this:

       -- on-Line (Prim) -- Up

        The new Primary and new Secondary server are online and synchronized. They are ready to accept transactions for processing.


        Steps in summary:

        Instance A (currently Primary)Instance B (currently Secondary)
        1. onmode -ky(server should be up)
        2. onmode -d standard
        3. onmode -d primary <pri_server_name>
        4. onmode -ky
        5. oninit -PHY
        6. onmode -d secondary <sec_server_name>
        (now a Secondary server)
        7. oninit (now a Primary server)


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

        728x90
        728x90

        Abstract


        Since many of the newer Dynamic Server versions are only available in 64 bit, if the desired client side CSDK is 32 bit, it might not have a corresponding DBaccess client side product.

        Content

        For a while, DBaccess was provided only on the server side, since it is designed as an interactive interface with Informix Dynamic Server. Beginning with CSDK 3.70.xC3, DBaccess became available on the client side. The DBaccess for client-side platforms is available only at the same bit level as the Server side product. For example, when the available Informix Dynamic Server version is 64 bit only, there is no equivalent 32 bit DBaccess client-side product in the CSDK product.

        There is no CSDK with DBaccess on the following platforms:

        32 bit AIX
        32 bit Solaris
        32 bit Solaris (Intel)
        32 bit HP-UX (Itanium)
        32 bit HP-UX (RISC)
        32 bit Linux z-Series
        32 bit MAC



        http://www-01.ibm.com/support/docview.wss?uid=swg21613481&myns=swgimgmt&mynp=OCSSGU8G&mync=E

        728x90
        728x90


        Question

        The SQL UNLOAD TO statement places a reference to the Smart Large Object (BLOB or CLOB) into the UNLOAD TO file and the BLOB or CLOB data into a separate Smart Large Object file. What is the format of the reference in the UNLOAD TO/LOAD FROM file and the format of the name assigned to the BLOB or CLOB file?

        Answer

        The Smart Large Object file has a name in one of these formats:

          For a BLOB value: blob#####.###
          For a CLOB value: clob#####.###

          예) 파일내용. 오프셋은 16진수로 표현한다
          |100,200,/usr/apps/clob9ce7.318|

          ######.###
            The digits of the unique hexadecimal smart-large-object identifier. Automatically assigned to the file when it is created.


        In an UNLOAD TO/LOAD FROM file, a BLOB or CLOB column value appears as follows:

          start_offset,length,location_path

          start_offset
            The starting offset (bytes, in hexadecimal) of the smart large object value within the blob/clob file.
          length 
            The length (bytes, in hexadecimal) of the BLOB or CLOB value.
          location_path
            The full pathname to the location where the blob/clob file is stored. If a full path is not specified the current directory will be used.

          Note: No blank spaces can appear between these values. 



        http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21197723


        728x90
        728x90

        1. 인스턴스의 일반적인 정보 (현재 사용자, 버전, 캐릭터셋)

        mysql> status;


        2. 해당 테이블에 대한 DDL

        mysql> show create table table_name;


        3. 특정 데이터베이스의 테이블 상태 (사이즈, 생성일자, 업데이트일자, Collation등)

        mysql> show table status from database_name;


        4. 사용자에게 부여된 권한

        mysql> show grants for [for user];


        5. 실행중인 스레드

        mysql> show [full] processlist;



        http://comnic.tistory.com/entry/MySQL-%EC%9C%A0%EC%9A%A9%ED%95%9C-%EB%AA%85%EB%A0%B9%EC%96%B4-%EB%AA%A8%EC%9D%8C-1-SHOW

        728x90
        728x90


        Problem(Abstract)

        The Archive process begins but immediately ends without archiving any rows, or abruptly ends at a specific row in a specific table without explanation.

        The Archive Process Report returns:

        Archive Process Errors:
        The Server process for the Archive Request has abnormally terminated.

        There is no further error information displayed.

        Symptom

        The Optim trace shows:

        ERRWERRH ERR_RetryMgr (0240) EXCP 09/27/2011 16:28:36 000062 000006E8 00005A4
        Win32 Exception=C0000005 Desc=Access Violation
        ERRWERRH ERR_RetryMgr (0000) ENVE 09/27/2011 16:28:36 000063 000006E8 000005A4
        Exception:C0000005 (Access Violation) at 02DCC372
        Exception occured on 09/27/2011 at 16:28:36
        PN0CSS00 csscdep0.c CSSObjDepends(00783-0004C372)
        Registers at Failure:
        CS=0023 DS=002B ES=002B FS=0053 GS=002B SS=002B
        EIP=02DCC372 EAX=40FE7C02 EBX=0412EF48 ECX=40FE7C02
        EDX=00000002 EBP=062DD384 EDI=00000830 ESI=00C884A4
        ESP=062DD240 FLG=00010202 PID=000006E8 TID=000005A4
        Current Stack Len:142784 Attempt to Read at Address 40FE7C0A

        **Snip**

        CSSCDDL0 CSSGetDDLObject (1333) EXCP 09/27/2011 16:28:36 000064 000006E8 000005A4
        ErrMsg: Error Exit)
        RetCode: CSSERR_CREDDLERR(07080) Create DDL Object failed
        AuxCode: ENVERR_EXCEPTION(01023) Operating System Exception
        Token1: UpdDepLinkScan
        Token2: Access Violation
        Token4: Access Violation

        Cause

        Some of the extended objects that Optim attempts to Archive can produce this issue.

        Environment

        It is important to note that, while the process report returns information about the Server process, this can happen when running locally as well.

        Diagnosing the problem

        For further diagnostics, it may be beneficial to select each of the extended objects one at a time, and re-run the Archive, to pinpoint the failing element.

        Resolving the problem

        From the Archive Request:

        1) Choose the Objects tab

        2) Deselect all of the Extended Objects

        3) Successfully re-run the archive


        http://www-01.ibm.com/support/docview.wss?uid=swg21566528&myns=swgimgmt&mynp=OCSSGMCR&mync=E

        728x90
        728x90


        Question

        How do you estimate ontape storage space requirements in IBM Informix Servers?

        Cause

        The onconfig parameters TAPESIZE and LTAPESIZE are used in connection with TAPEDEV and LTAPEDEV to determine the size for each tape or file to be used for an ontape backup. At times, the backup size requirement may exceed the size configured for an ontape backup. This is usually not a problem if you are standing by, ready to handle the situation. If you want the backup to fit into a single tape or file, you have to make sure your size estimate is reasonable.

        Answer

        The size needed for an Informix Server Backup using ontape is based on several internal factors. The most important considerations are: 


        Estimates should be made on the basis of what the largest backup size could be. Then, we can expect it will always be smaller than the maximum estimate.

        To determine backup size requirements, generate an 'onstat -d' listing, and examine the chunk column references for "Size" and "Free". Work with one group of page size at a time to determine a value (K):

        1. Review the dbspaces with similar page size (2k, 4k, 8k, etc). Each collection of dbspaces with the same page size is a group (group-P). Add all the totals for (group-P) 'Size' and place it in 'N'.
        2. Add all the totals for (group-P) 'Free' and place it in 'F'.
        3. Subtract F from N (N-F).
        4. Multiply M times the page size (for group-P) to get the number of page units (K ) needed for storage:
        5. Repeat steps 1-4 for other page sizes, and add all of the K values. The final result provides a maximum size estimate for the next backup


        내용은 DBSpace 사용량 계산입니다. 최소한 이 사이즈보다는 작다는 것을 참고하시면 되겠네요.


        http://www-01.ibm.com/support/docview.wss?uid=swg21580139&myns=swgimgmt&mynp=OCSSGU8G&mync=E

        728x90
        728x90

        Question

        Is console based installation method supported by InfoSphere Federation Server?

        Answer

        Console based installation is not supported by Infosphere Federation Server installer.

        The installer supports silent install and GUI mode.

        GUI mode requires xWINDOWS. 
        GUI command execution:
        ./iisetup

        The silent install mode requires a response file. A sample response file is found in following directory and can be modified to reflect customer environment: 
        <Installer Media root>/samples 
        Silent installer command execution:
        ./iisetup -options responsefile.rsp -silent


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

        728x90

        + Recent posts