728x90



http://www.ibm.com/developerworks/data/zones/informix/library/techarticle/0305parker/0305parker.html

728x90
728x90

Question

Why is db2top screen output not being shown in colors?

Cause

db2top is a monitoring tool included in DB2 for LUW on AIX, Linux, and Solaris platforms. Sometimes this utility is not shown in colors, Even though the monochromatic view of db2top is very useful, db2top can use colors when using the interactive screen mode to highlight some outputs and that can be more useful and attractive to some users.

Answer

The most common reasons to see db2top without colors are the following:

Your term emulator and/or your TERM environment setting cannot manage colors. In this case using xterm or dtterm at your TERM environment setting and use a term emulator capable to emulate either xterm or dtterm would be enough to show db2top in colors.

Your db2top configuration is not configured to show the output in colors, In order to check if db2top is configured to manage colors just execute the utility "db2top -d <database>" (where database is any database active on your instance), and once you are seeing the db2top main screen, just press "w" key, this writes the db2top configuration file and shows its current values:


Ensure the parameter "colors" is set to "ON". If it is configured to "OFF" you can edit directly the configuration file indicated by the first line of the above screen ("/home/db2inst1/.db2toprc" in this case) in order to set this parameter to "ON".



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

728x90
728x90

Question

If your database was created prior to DB2 Universal Database Version 8.1, FixPak 7, new UDFs SYSFUN.GET_DBM_CONFIG and SYSFUN.APPLICATION_ID may not exist.

Answer

The db2updv8 command is a program that will define new user defined functions (UDFs) and stored procedures (SPs) that have been added to DB2 UDB in a Version 8.x FixPak.

The UDFs SYSFUN.GET_DBM_CFG and SYSFUN.APPLICATION_ID are supported in DB2 UDB Version 8.1 FixPak 7. Run db2updv8 to use these new functions. 

e.g. db2 "select application_id() from sysibm.sysdummy1"


Also note that other tools (for example, the Activity Monitor and its stored procedures) may not be fully functional until these UDFs are defined.



db2updv8 - Update Database to Version 8 Current Level


This command updates the system catalogs in a database to support the current level by enabling the following built-in routines:

v HEALTH_DBM_INFO

v HEALTH_DBM_HI

v HEALTH_DBM_HI_HIS

v HEALTH_DB_INFO

v HEALTH_DB_HI

v HEALTH_DB_HI_HIS

v HEALTH_TBS_INFO

v HEALTH_TBS_HI

v HEALTH_TBS_HI_HIS

v HEALTH_CONT_INFO

v HEALTH_CONT_HI

v HEALTH_CONT_HI_HIS

v GET_WRAP_CFG_C

v LIST_FILES_C

v ODBC_DISCOVERY

v HEALTH_HI_REC

v EXEC_DB2_SCRIPT

v HEALTH_HI_REC

v EXEC_DB2_SCRIPT

Authorization:

sysadm

Required connection:

Database. This command automatically establishes a connection to the specified

database.

Command syntax:

 db2updv8 -d database-name

-u userid -p password -h



Command parameters:

-d database-name

Specifies the name of the database to be updated.

-u userid

Specifies the user ID.

-p password

Specifies the password for the user.

-h Displays help information. When this option is specified, all other options

are ignored, and only the help information is displayed.



Example

After installing the current level (a FixPak or a new version), update the system catalog in the sample database by issuing the following command:

db2updv8 -d sample

Usage notes:

1. This tool can only be used on a database running DB2 Version 8.1.2 or later. If the command is issued more than once, no errors are reported and each of the catalog updates is applied only once.

2. To enable the new built-in functions, all applications must disconnect from the database and the database must be deactivated if it has been activated.

3. This command must be run if you will be importing data using nicknames.



https://www-304.ibm.com/support/docview.wss?uid=swg21221547

http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0000915.htm

728x90
728x90

Problem(Abstract)

This script compares the permission and ownerships of files in a file distribution list with the binaries in the installed Informix product. It generates a list of problems and also a script to correct the permissions and ownership.

Cause

Incorrect permissions or ownership of IBM Informix files might result in product malfunction.


Resolving the problem

This Korn-Shell script will check the permission and ownership of the files that came with your Informix product. It will check the Informix file distribution list against files on the disk to verify that all have the correct ownerships and permissions. 

The script will create two output files in the current directory.


To use the script take these steps:
    1. Copy the file file_check.sh.txt to a work directory. Change the name to file_check.sh.

    2. Run the script using this syntax:
      file_check.sh -f filename [-d directory]
        filename
          The file distribution list (required)
        directory
          The path to the directory in which your Informix products are installed. If this is not given then the value of $INFORMIXDIR will be used.
    The name of the file distribution list will vary depending on the product. It will always be located in the $INFORMIXDIR/etc directory and will always end with the word files.

      Examples:
        The file distribution list ​​
        ​​for this product...​​
        ...has this name​​
        IBM Informix online Dynamic Server (OnLine)​​
        $INFORMIXDIR/etc/onlinefiles​​
        IBM Informix Extended Parallel Server (XPS)​​
        $INFORMIXDIR/etc/onlinefiles​​
        IBM Informix Dynamic Server (IDS) version 7​​
        $INFORMIXDIR/etc/IDSfiles​​
        IBM Informix Dynamic Server (IDS) version 9, 10 & 11​​
        $INFORMIXDIR/etc/IIFfiles​​
        IBM Informix Client SDK ​​
        (CSDK)​​
        $INFORMIXDIR/etc/clientsdkfiles​​

About missing files

When file_check.sh reports a missing file it means that the file is listed in the file distribution list but does not exist. This is not always a problem. 

Sometimes a file will be removed from a release and due to an oversight the file name will not be removed from the file distribution list. When this occurs it will not cause problems.

Consider the notice of a missing file to be a notification of a potential problem.


Sample Output

These are the output files from a sample run of file_check.sh. This run found 4 "missing" files and one file with the wrong group and permissions.
    Contents of file_check.sh.out
      Missing File(s)
      /usr/informix/msg/en_us/0333/nforms.iem
      /usr/informix/msg/en_us/0333/nformbld.iem
      /usr/informix/etc/sqlhosts.demo
      /usr/informix/etc/Termcap

      Wrong Group (Run ./file_check.sh.update for fix)
      /usr/informix/bin/onstat

      Wrong Owner (Run ./file_check.sh.update for fix)
      No File Found

      Wrong Permission (Run ./file_check.sh.update for fix)
      /usr/informix/bin/onstat

    Contents of file_check.sh.update
      chgrp informix /usr/informix/bin/onstat
      chmod 2755 /usr/informix/bin/onstat

Cross Reference information
SegmentProductComponentPlatformVersionEdition
Information ManagementInformix Extended Parallel Server (XPS)UNIXAll VersionsAll Editions
Information ManagementInformix onLineNot ApplicableUNIXAll Versions
Information ManagementInformix SENot ApplicableUNIXVersion Independent
Information ManagementInformix ToolsNot ApplicableUNIXAll Versions
Information ManagementInformix C-ISAMNot ApplicableUNIXVersion Independent


file_check.sh.txt



https://www-304.ibm.com/support/docview.wss?uid=swg21113385

file_check.sh.txt
0.01MB
728x90
728x90


Problem(Abstract)

What to check when you receive error -952 "User's password is not correct for the database server"

Symptom

When you connect to a database you receive error -952 "User's password is not correct for the database server"

Cause

The error message indicates the authentication failed due to an invalid password. Under certain circumstances, error -952 could be returned even when the password is correct.

Possible causes are:


If you are using password shadowing, the following are also possible causes of this error:

154706 CANNOT CONNECT TO DATABASE SERVER AFTER IMPLEMENT ENHANCED SECURITY (C2LEVEL) on COMPAQ TRU64 V5.1 (ERROR 952)

Resolving the problem

Here are some hints on what you must consider when receiving error -952:

    Example:
       telnet <informix server hostname>

      Renew the password if you get an error saying that the password expired.
    Example:

    cd $INFORMIXDIR
    ls ./bin/oninit

    -rwsr-sr--   1 root     informix 8163428 Jul 23  2003 oninit

If your system uses shadow password, check the following:


WORKAROUND

If you are using password shadowing, try the following as a temporary solution. Please note this is only a temporary solution. Copying the shadow password will create a security breach and will go against the whole logic of using shadow passwords.

1. Find in the /etc/passwd file, the entry corresponding to the user.
    Example:

    informix:x:200:200:InformixAdministrator:/home/informix:/bin/ksh

    where x represents that the password is a shadow password


2. Find in the shadow file (etc/security/passwd for AIX, /etc/shadow for RedHat, Solaris, HP11i) the entry corresponding to the user.
    Example:

    informix:ow3/GUDb8r2rk:12103::::::

3. Find the shadow password (second field), from the entry from the shadow file

4. Copy the encrypted password from step 3. to the second position in the /etc/passwd file, corresponding to the password.
    Example:

    After the update, the entry in the /etc/passwd file will look like the following:

    informix:ow3/GUDb8r2rk:200:200:InformixAdministrator:/home/informix:/bin/ksh

Alternatively, if you are using password shadowing, try to temporarily disable shadow password use.



https://www-304.ibm.com/support/docview.wss?uid=swg21177527

728x90
728x90



http://www.ibm.com/developerworks/data/library/techarticle/dm-1111optimdesigner/index.html

728x90
728x90

InfoSphere Optim and the complete business object, Part 1: Understanding the complete business object

http://www.ibm.com/developerworks/data/library/techarticle/dm-1110optimobjectpart1/index.html


InfoSphere Optim and the complete business object, Part 2: Discover your complete business objects

http://www.ibm.com/developerworks/data/library/techarticle/dm-1110optimobjectpart2/index.html

728x90
728x90

質問

テーブルの現在および追加可能なエクステント数の取得について

回答

[質問]
作成したすべてのテーブルの、現在のエクステント数および追加可能なエクステント数を、容易に取得する方法はありますか。
(테이블의 현재 익스텐트 및 추가 가능한 익스텐트 개수를 쉽게 얻는 방법이 있습니까?)

[回答]
データベース sysmaster に対して、以下のSQL文を実行すると、現在のエクステント数および追加可能なエクステント数を、取得することができます。(sysmaster 데이터베이스에 접속하여 다음 SQL 문을 실행하면 현재 익스텐트 및 추가 가능한 익스텐트 개수를 검색할 수 있습니다.)


SELECT
st.dbsname[1,25] AS dbname,
st.tabname[1,35] AS dbobject,
count(*) num_of_extents,
trunc((pgh.pg_frcnt/8),0) additional_extents
FROM sysptnext ptn, sysptnhdr pth, syspaghdr pgh, systabnames st
WHERE st.partnum = ptn.pe_partnum AND st.partnum = pth.partnum 
AND pgh.pg_partnum = ((trunc(st.partnum/1048576,0)*1048576)+1)
AND pgh.pg_pagenum = (st.partnum-(trunc(st.partnum/1048576,0)*1048576))
AND st.dbsname NOT LIKE "sys%"
AND st.tabname NOT LIKE "sys%"
AND st.tabname NOT LIKE " %"
AND st.tabname NOT LIKE "TBLSpace%"
GROUP BY 1, 2, 4
ORDER BY 1, 2;


以下は出力例です。(다음은 출력 예입니다.)

dbname test_db  <-- データベース名 (데이터베이스 이름)
dbobject test_tbl  <-- テーブル名 (테이블 이름)
num_of_extents 2     <-- 現在のエクステント数 (현재 익스텐트 개수)
additional_extents 229    <-- 追加可能なエクステント数 (추가 가능한 익스텐트 개수)



https://www-304.ibm.com/support/docview.wss?uid=jpn1J1003999

728x90
728x90

Question

How do you determine table space usage within a dbspace ?

Answer

INTRODUCTION

You may need to determine the amount of space each table uses within a dbspace. The sysmaster table sysptnext contains information about the start and size of partitions within the database server. You can query this table to determine table usage within a dbspace.


STEPS

To retrieve space usage information about tables in a dbspace, execute the following sql statement:

    SELECT DBINFO( "DBSPACE" , pe_partnum ) dbspace, dbsname databasename, tabname tablename, pe_size num_pages 
    FROM  sysmaster:sysptnext a, sysmaster:systabnames b 
    WHERE a.pe_partnum = b.partnum AND 
    DBINFO( "DBSPACE" , pe_partnum ) IN ("dbspacename1", "dbspacename2" ) 
    ORDER BY dbspace, num_pages DESC;

    dbspacename1, dbspacename2
      a comma separated list of the dbspace(s) for which you want the information



https://www-304.ibm.com/support/docview.wss?uid=swg21169341

728x90
728x90

Question

How to check what tables are created in any specific dbspace

Answer

The following command can be executed from the UNIX command line on the sysmaster database to find out what are all the tables created on any specific dbspace. The <dbspace> should be replaced with the real dbspace name.

echo "select tabname from sysptnext, systabnames
where pe_partnum = partnum and dbinfo( 'DBSPACE' , pe_partnum ) = <dbspace> group by pe_partnum, dbsname, tabname
order by tabname"|dbaccess sysmaster

For example, to list out all the tables created on dbspace3, the above query will be like below:

echo "select tabname from sysptnext, systabnames
where pe_partnum = partnum and dbinfo( 'DBSPACE' , pe_partnum ) = 'dbspace3'
group by pe_partnum, dbsname, tabname
order by tabname"|dbaccess sysmaster

Sample output:

Database selected.



tabname TBLSpace

tabname alcatel_a_interface_bssap_week

tabname alcatel_bearer_bearer_channel_month

tabname alcatel_bsc_fabric_gch_week

tabname alcatel_bsc_fabric_tbf_monitoring_per_gpu_month

tabname alcatel_bsc_overviewchannel_week

tabname alcatel_cell_agch_month

tabname alcatel_cell_bvc_week

tabname alcatel_cell_directed_retry_month

tabname alcatel_cell_dl_tbf_establishments_1_week

tabname alcatel_cell_dl_tbf_releases_month

tabname alcatel_cell_dtap_week

tabname alcatel_cell_established_phase_tch_month

tabname alcatel_cell_external_directed_retry_week

tabname alcatel_cell_handover_sdcch_intra_day

tabname alcatel_cell_handover_sdcch_outgoing_month

tabname alcatel_cell_handover_sdcch_per_cause_week

tabname alcatel_cell_handover_tch_incoming_raw

tabname alcatel_cell_handover_tch_month

tabname alcatel_cell_handover_tch_per_cause_1_month


NOTE: Please do note to source your environment before running the above, so that you have access to the Informix Database.



https://www-304.ibm.com/support/docview.wss?uid=swg21392665

728x90

+ Recent posts