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

質問

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

回答

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

[回答]
データベース 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
728x90

Problem(Abstract)

This article describes how to calculate space used for each table and dbspace, including how many extents are used and allocated.

Resolving the problem

Q. How do I calculate how much space is used on my instance?

A. You can use a SMI query to calculate how much space is used.

Note, however, that the output will only be accurate if you run update statistics HIGH for each table before running the query.


select  n.dbsname[1,20],
        n.tabname[1,20],
        count(*) no_extents,
        round(t.rowsize * t.nrows / 2048,0) used,
        sum( pe_size) allocated
from    sysmaster:systabnames n, sysmaster:sysptnext p, systables t
where   n.partnum = p.pe_partnum
and     n.partnum = t.partnum
and     t.tabtype = "T"
group by 1,2,4
order by 3 desc , 5 desc;

Note: This SQL assumes that you are using 2048 page size.


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

728x90
728x90

Question

Is there a Sysmaster query for determining additional extents availble per table/index?

Cause

Here is a simple method to see information about additional extents, extent size and next size. The query can be easily modified to show the information for specific tables or dbspaces.

With this query you can avoid reaching Error -136 ISAM error: no more extents.

Answer

SET ISOLATION TO DIRTY READ;

SELECT dbsname as dbname,
tabname as dbobject,
TRUNC((pg_frcnt/8),0) additional_extents,
count(*) num_of_extents,
sum( pe_size ) total_size,
ti_nptotal pages_allocated,
ti_npused pages_used,
ti_npdata data_pages,
ti_nrows data_rows,
ti_rowsize as row_size,
ti_fextsiz first_extent_size,
ti_nextsiz next_extent_size,
hex(partnum) partnum
FROM systabnames, sysptnext, systabinfo, syspaghdr
WHERE
dbsname != "HASHTEMP"
AND tabname not like "sys%"
AND partnum = pe_partnum
AND partnum = ti_partnum
AND pg_partnum = ((TRUNC(partnum/1048576,0)*1048576)+1)
AND pg_pagenum = (partnum-(TRUNC(partnum/1048576,0)*1048576))
GROUP BY 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 13
ORDER BY 3 asc, 4 desc;


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

728x90
728x90

Syntax

This statement is an extension to the ANSI/ISO standard for SQL. You can use this statement only with DB-Access.

Read syntax diagramSkip visual syntax diagram
>>-INFO--+-TABLES-------------------------+--------------------><
         '-+-+-COLUMNS-+----+--FOR--table-'   
           | +-INDEXES-+    |                 
           | '-STATUS--'    |                 
           +-+-PRIVILEGES-+-+                 
           | '-ACCESS-----' |                 
           '-+-FRAGMENTS--+-'                 
             '-REFERENCES-'                   

Usage

The INFO TABLES statement lists the names of all the user-defined tables in the current database. Other keywords that can immediately follow the INFO keyword instruct DB-Access to display various attributes of the table whose name follows the FOR keyword. To display information from more than one keyword option, issue multiple INFO statements.

The keyword options that the INFO statement supports can display the following information:

  • TABLES Keyword

    Use TABLES (with no FOR clause) to list the identifier of every table in the current database, not including system catalog tables. Each user-defined table is listed in one of the following formats:

    • If you are the owner of the cust_calls table, it appears as cust_calls.
    • If you are not the owner of the cust_calls table, the authorization identifier of the owner precedes the table name, such as 'june'.cust_calls.
  • COLUMNS Keyword

    Use COLUMNS to display the names and data types of the columns in the specified table, showing for each column whether NULL values are allowed.


  • INDEXES Keyword

    Use INDEXES to display the name, owner, and type of each index of the specified table, the clustered status, and listing the indexed columns.


  • FRAGMENTS Keyword

    Use FRAGMENTS to display the fragmentation strategy and the names of the dbspaces storing the fragments of a fragmented table. If the table is fragmented with an expression-based distribution scheme, the INFO statement also shows the expressions.


  • ACCESS or PRIVILEGES Keyword

    Use ACCESS or PRIVILEGES to display the discretionary access privileges currently held by users, roles, and the PUBLIC group for the specified table. (These two keywords are synonyms in this context.)


  • REFERENCES Keyword

    Use REFERENCES to display the References access privilege for users who can define referential constraints on the columns of the specified table. For database-level privileges, use a SELECT statement to query the sysusers system catalog table.


  • STATUS KeywordUse STATUS to display information about the owner, row length, number of rows and columns, creation date, and the status of audit trails for the specified table.

An alternative to using the INFO statement of SQL is to use the Info command of the SQL menu or of the Table menu of DB-Access to display the same and additional information.


http://publib.boulder.ibm.com/infocenter/idshelp/v115/topic/com.ibm.sqls.doc/ids_sqs_0859.htm?

728x90
728x90


ProductInformix versionComments
Informix 4GL/SQL  
version 7.32
10.00 
11.10 
11.50
 
Informix 4GL/SQL  
version 7.50
10.00 
11.10 
11.50 
11.70 
 
Informix Enterprise Gateway Manager (EGM)  
version 7.31
10.00 
11.10 
11.50 
11.70 
 
EGM with DRDA 
version 7.31
11.10 
11.50 
11.70 
Requires EGM w/DRDA 7.31.xD5 or higher
Informix I-Spy  
version 2.00
11.10 
11.50 
11.70 
Requires I-Spy 2.00.UD4 or higher
Informix Client Software Developer Kit (CSDK) 
version 2.90
10.00 
11.10 
11.50
 
Informix Client Software Developer Kit (CSDK)  
versions 3.00 and 3.50 
10.00 
11.10 
11.50 
11.70 
 
Informix Client Software Developer Kit (CSDK)  
version 3.70 
11.10 
11.50 
11.70
 
Informix Server Administration (ISA) 
version 1.60
10.00 
11.10 
11.50
 
Informix JDBC Driver  
versions 3.00, 3.10, 3.50 and 3.70
10.00 
11.10 
11.50 
11.70 
 
Informix MaxConnect  
version 1.00
10.00 
11.10 
11.50 
11.70 
 



https://www.ibm.com/developerworks/wikis/display/idsinterop/IDS+Interoperability+with+Other+Products


728x90
728x90

The following shows the steps to use ontape with this process.


On the primary

1. Edit the HDR configuration parameters (DRAUTO, DRTIMEOUT,DRINTERVAL, DRLOSTFOUND, DRIDXAUTO and, optionally,

LOG_INDEX_BUILDS) in the $ONCONFIG file.

2. Add entries to the $INFORMIXSQLHOSTS and /etc/services files for network connections.


중요: sqlhosts 파일의 nettype 필드 또는 레지스트리 및 NETTYPE 구성 매개변수를 ontlitcponsoctcp 또는 ontlispx와 같은 네트워크 프로토콜로 설정하여 서로 다른 두 컴퓨터에 있는 데이터베이스 서버가 서로 통신할 수 있도록 하십시오. nettype 필드가 onipcshmonipcstr 또는 onipcnmp와 같은 비네트워크 프로토콜을 지정하면 HDR이 작동하지 않습니다.


3. Modify the /etc/hosts.equiv or the .rhosts file for the informix user ID to enable trusted communication.

4. Make sure the databases to be replicated are in logged mode.

5. Send a copy of the primary instance $ONCONFIG file to the secondary server.

6. Run ontape -s -L 0.

7. Run onmode -d primary secondary_server.


On the secondary

1. Add entries to the $INFORMIXSQLHOSTS and /etc/services files for network connections.

2. Modify the /etc/hosts.equiv or the .rhosts file for the informix user ID to enable trusted communication.

3. Modify the onCONFIG parameters for the secondary server: DBSERVERNAME and DBSERVERALIASES.

4. Make sure that all chunk paths are created, have the correct permissions, and ensure there is enough space on the disks for the data to reside.

5. Run ontape -p.

6. If necessary, run onmode -l to roll forward any logical logs that may have been saved on the primary before the secondary physical restore is finished.

7. Run onmode -d secondary primary_server.

728x90

'Informix > informix reference' 카테고리의 다른 글

INFO Statement  (0) 2011.11.11
IDS Interoperability with Other Products  (0) 2011.11.03
ON-Bar configuration parameters on Informix  (0) 2011.10.24
Uninstalling ISM  (0) 2011.10.24
Setting Up ISM on UNIX  (0) 2011.10.24
728x90

Restriction: ON-Bar does not use the TAPEDEV, TAPEBLK, TAPESIZE, LTAPEBLK, and LTAPESIZE configuration parameters.

ON-Bar on IBM® Informix® uses the following configuration parameters:
Configuration parameterPurpose
ALARMPROGRAM parameterSpecifies a script that handles alarms For ON-Bar, set this script to log_full.sh to automatically back up log files when they become full.
ALRM_ALL_EVENTS parameterCauses ALARMPROGRAM to execute every time an alarm event is invoked.
BACKUP_FILTER parameterSpecifies the location and name of an external filter program used in data transformation.
BAR_ACT_LOG parameterSpecifies the location and name for the ON-Bar activity log file.
BAR_BSALIB_PATH parameterSpecifies the full path and name of the XBSA shared library provided by the storage manager to communicate between ON-Bar and the storage manager.
BAR_DEBUG parameterSpecifies the level of debugging information to display in the ON-Bar activity log file.

You can dynamically update the value of BAR_DEBUG in the onconfig file during a session.

BAR_DEBUG_LOG parameterSpecifies the location and name of the ON-Bar debug log
BAR_IXBAR_PATH parameterSpecifies the location where the ON-Bar ixbar boot file is created. You can change the file name and path
BAR_HISTORY parameterSpecifies whether the sysutils database maintains the backup history
BAR_MAX_BACKUP parameterSpecifies the maximum number of processes per onbar command
BAR_NB_XPORT_COUNT parameterSpecifies the number of shared-memory data buffers for each onbar_d worker or child process
BAR_PERFORMANCE parameterSpecifies whether timestamps and transfer rates of storage-manager operations are recorded in the activity log.
BAR_PROGRESS_FREQ parameterSpecifies in minutes how frequently the backup or restore progress messages display in the activity log
BAR_RETRY parameterSpecifies how many times ON-Bar retries a backup, logical-log backup, or restore operation if the first attempt fails
BAR_XFER_BUF_SIZE parameterSpecifies the size in pages of the buffers that the database server uses to exchange data with each onbar_d worker or child process
ISM_DATA_POOL parameterSpecifies the volume pool that you use for backing up storage spaces (ISM)
ISM_LOG_POOL parameterSpecifies the volume pool that you use for backing up logical logs (ISM)
LTAPEDEV parameterFor ontape, specifies the tape device where logical logs are backed up

For ON-Bar, specifies whether to back up logs.

If this configuration parameter is set to /dev/null on UNIX or NUL on Windows, the backup utility is not able to back up the logical logs.

RESTARTABLE_RESTORE parameterTurns restartable restore on or off
RESTORE_FILTER parameterSpecifies the location and name of an external filter program that restores transformed data to its original state


728x90

'Informix > informix reference' 카테고리의 다른 글

IDS Interoperability with Other Products  (0) 2011.11.03
Setting up HDR with ontape  (0) 2011.10.26
Uninstalling ISM  (0) 2011.10.24
Setting Up ISM on UNIX  (0) 2011.10.24
Determine the server-processing locale  (0) 2011.10.18

+ Recent posts