天天看点

Solaris下Informix安装配置维护升级基础测试

1 概述 4

2 Informix 9.3 for solaris 8安装 4

2.1 安装环境准备 4

2.2 安装IDS和CSDK 5

2.3 配置通信服务和创建数据库 6

2.3.1 第一步:创建rootdbs的chunk 6

2.3.2 第二步:创建通信配置文件 6

2.3.3 第三步:创建onconfig.server配置文件 7

2.3.4 第四步:初始化数据库 7

2.4 测试安装 7

3 基础操作、配置和维护 7

3.1 访问informix 8

3.1.1 配置informix服务 8

3.1.2 dbaccess访问informix 8

3.2 informix的启动和关闭 8

3.3 informix 用户管理及权限概念 8

3.4 informix数据库及其存储 9

3.4.1 创建数据库 10

3.4.2 检查数据库中的chunk空闲情况 10

3.5 informix日志管理 11

3.6 其他日常维护 11

4 备份恢复 11

5 informix 9.3升级到informix 9.4 12

5.1 第一步:备份好informix安装软件 12

5.2 第二步:备份数据库 12

5.3 第三步:关闭informix数据库 13

5.4 第四步:升级informix Server 9.3到9.4 13

5.5 第五步:启动数据库 13

5.6 第六步:测试数据库 13

5.7 升级失败处理办法 13

6 附件 14

6.1 onstat 14

6.2 onspaces 16

6.3 onparams 17

6.4 onmode 18

6.5 oncheck 19

1 概述

Informix Dynamic Server (IDS) 作为一个先进的关系数据库管理系统,功能强大,性能优越,采用了DSA动态可伸缩体系结构,具有非常好的可伸缩性和适应性,它在我国许多行业,特别是金融、邮电等领域,都有广泛的应用

2 Informix 9.3 for solaris 8安装

执行过程请参考操作系统提示符,#为root提示符,$为informix用户B Shell提示符。

此处的安装主机名为joli_db,创建的informix服务为joli,创建的数据库名为jolidb,系统的$INFORMIXDIR目录设置为informix用户的$HOME目录。

2.1 安装环境准备

默认安装环境(硬件及软件环境)满足informix 9.3的安装需求。(详细可参考informix安装文档)

1) 删除原有的informix用户及组:

#userdel -r informix //回状态为0成功,参数-r为删除informix的$HOME目录。

# groupdel informix

2) 创建informix组及用户:

#groupadd -g 1100 informix

#useradd -u 1100 -g 1100 -d /usr2/infirmox -m -s /bin/sh informix

#passwd informix

3) 使用root用户修改系统配置文件(/etc/system;/etc/hosts.equive;/etc/services):

- 在文件/etc/system末尾添加:

set enable_sm_wa = 1

set shmsys:shminfo_shmmax=268435456 #为物理内存大小

set semsys:seminfo_semmap=64

set semsys:seminfo_semmni=4096

set semsys:seminfo_semmns=4096

set semsys:seminfo_semmnu=4096

set semsys:seminfo_semume=64

set semsys:seminfo_semmsl=100

set shmsys:shminfo_shmmin=100

set shmsys:shminfo_shmmni=100

set shmsys:shminfo_shmseg=100

- 编辑/etc/hosts.equiv,添加相应的client主机名,或ip 地址。如:192.168.1.110 xxclient

- 编辑/etc/services文件,在文件尾添加:sqlexec 8765/tcp

4) 修改infomrix用户配置文件.profile

- 拷贝local.profile为.profile文件。

- 在.profile文件stty行下添加如下行:

INFORMIXDIR=/usr2/informix

INFORMIXSERVER=joli

ONCONFIG=onconfig.joli

- 在PATH中添加informix/bin路径,如:

PATH=/usr/bin:/usr/ucb:/etc:$INFORMIXDIR/bin:.

- 把设置的变量export出来,如:

export INFORMIXDIR INFORMIXSERVER ONCONFIG PATH

(要使.profile生效,可执行$ . .profile)

5) 重新启动操作系统

#sync

#reboot

2.2 安装IDS和CSDK

如下过程使用informix 用户进行(su - informix)

1) 拷贝安装介质:iif.tar和csdk.tar和license文件到informix的$HOME目录。

介质路径: "主机:/usr2/sun_informix93 "

2) 解包iif.tar,然后执行进行安装,过程如下:

$tar xvf iif.tar

$installserver

根据提示即可完成IDS安装过程,其中需要注意的是:

- 输入license信息,如下:

Enter your serial number (for example, INF#X999999) >

输入:License Serial

Enter your serial number KEY (uppercase letters only) >

输入:Key

- run /usr2/informix/RUN_AS_ROOT.server as root 提示,使用root用户执行RUN_AS_ROOT.server文件。

$ su -

Password:

[email protected]_db # cd /usr2/informix

[email protected]_db # ./RUN_AS_ROOT.server

3) 解包csdk.tar,然后执行进行安装,过程如下:

$ tar xvf csdk.tar

$installclientsdk

一路选y即可完成安装。

4) IDS和csdk安装完成。

2.3 配置通信服务和创建数据库

2.3.1 第一步:创建rootdbs的chunk

在$INFORMIX目录下创建一data目录单独存放chunk文件,示例如下:

$cd

$ mkdir data

$ cd data

$ touch rootdbs

$ chmod 660 rootdbs

2.3.2 第二步:创建通信配置文件

通信配置文件名:$INFORMIXDIR/etc/sqlhosts

1) 拷贝一份配置模板为当前sqlhosts文件

$ cp $INFORMIX/etc/sqlhosts.std sqlhosts

2) 配置sqlhosts文件

$ cp sqlhosts.std sqlhosts

在sqlhosts文件中末尾加入下面一行(其中服务器名(server域不能有 '- ');各域之间使用tab键分隔):

joli ontlitcp joli_db sqlexec

说明:通讯配置文件中的每一行表示一个配置,每个配置由 4 个部分组成:

Server(服务器名) Nettype(连接类型) host (主机名) Service(服务端口号)

Joli ontlitcp joli_db sqlexec

SUN solaris 使用的连接类型为 ontli,如果使用tcp传输协议则nettype一项为ontlitcp, Host 要与 /etc/hosts 中的主机名和 IP 地址对应上。Service为sqlexec。

2.3.3 第三步:创建onconfig.server配置文件

1) 拷贝模板作为onconfig.joli的基础

$cp onconfig.std onconfig.joli

2) 修改onconfig.joli文件,符合实际情况。

所有出现/usr/informix的地方修改为实际路径,此处修改为/usr2/informix

还特别需要注意的是修改如下参数:

ROOTPATH /usr2/informix/data/rootdbs

SERVERNUM 1

DBSERVERNAME joli

(注意:有一些其他参数,比如CPU VPs,需要实际情况单独调整,此处不做细节的讨论,需要大家自己注意)

2.3.4 第四步:初始化数据库

执行oninit -i命令初始化数据库,如下:

$ oninit -i

This action will initialize Informix Dynamic Server;

any existing Informix Dynamic Server databases will NOT be accessible -

Do you wish to continue (y/n)? y

如果没有提示错误,到此,已经创建好数据库。

2.4 测试安装

1)使用onstat -f检查安装版本,如下:

$ onstat -f

Informix Dynamic Server Version 9.30.UC3 -- On-Line -- Up

2)使用dbaccess检查数据库运行情况,如下:

$ dbaccess [email protected] -

Database selected.

>select * from syslogs;

提示成功,则表示我们初始化数据库正确完成,可以创建用户chunk及用户database了。

3 基础操作、配置和维护

3.1 访问informix

3.1.1 配置informix服务

配置的informix服务为joli,但我们也可通过如下步骤创建属于自己的alais服务,如下:

1) 添加$INFORMIXDIR/etc/sqlhosts文件服务名:

在sqlhosts文件末尾添加如下行:

test ontlitcp joli_db sqlexec

2) 修改$INFORMIXDIR/etc/onconfig.joli文件:

SERVERNUM 2

DBSERVERALIASES test

3) 重新启动informix服务

关闭服务:

$onmode -ky

$oninit

启动服务:

$oninit

3.1.2 dbaccess访问informix

在登录操作系统后,如果该操作系统用户具有足够的权限,则可使用如下方式等录数据调试,与使用sqlplus或isql类似:

$dbaccess [email protected] -

Database selected.

>

或者世界使用dbaccess进入informix提供的调试界面。

3.2 informix的启动和关闭

启动informix:

$oninit

关闭informix:

$onmode -ky

如果是使用onmonitor工具,更为直观。

3.3 informix 用户管理及权限概念

informix的用户管理不同于Oracle,或者Sybase,他使用操作系统用户作为informix用户,密码也一样,但他也有角色等权限组合单位。

分库级角色(dba,resource,connect;用Oracle对应的三种角色来理解好了,本处就不详细解释每种角色的权限),表级权限及字段级权限。

如下介绍赋予库级和表级权限:

库级权限:grant {dba|resource|connect} to {public|user_list}

表级权限:grant table_privilege on {table_name|view_name} to {public|user_list} [with grant option] [as user]

如下介绍回收库级和表级权限:

库级权限:revoke {dba|resource|connect} from {public|user_list}

表级权限:revoke table_privilege on {table_name|view_name} from {public|user_list}

说明:table_privilege有alter,delete,index,insert,select,update,all

如果要自己创建角色,则创建了必须先激活才使用:

create role role_name

激活角色:set role role_name

(详细的内容应该参考更详细的系统管理手册)

3.4 informix数据库及其存储

我使用文件形式来创建informix-chunk存储数据,在chunk基础上是逻辑概念的dbspace,他们是多对多的关系,我们创建数据库是直接指定在dbs上创建,并不指定在chunk上创建。

我们通过一个例子来进行说明:

1) 我们先创建如下多个chunk文件

userdbs,test01dbs,test02dbs,test03dbs,tempdbs,logiclogdbs,phylogdbs,mirroruserdbs,mirrorrootdbs,mirrortest01dbs,mirrortest02dbs,mirrortest03dbs,mirrorlogiclogdbs,mirrorphylogdbs

,与rootdbs放在一个目录。

2) 然后我们在这些个chunk文件上创建如下dbs:

userdbs、testdbs、tempdbs、logiclogdbs、phylogdbs

3) 然后对这些dbs中的chunk进行镜像,再镜像rootdbs,。

4) 然后我们再删除testdbs的镜像。

5) 然后我们再删除testdbs。

步骤 命令

1) $touch userdbs test01dbs test02dbs test03dbs tempdbs logiclogdbs phylogdbs mirroruserdbs mirrorrootdbs mirrortest01dbs mirrortest02dbs mirrortest03dbs mirrorlogiclogdbs mirrorphylogdbs

$chmod 660 userdbs test01dbs test02dbs test03dbs tempdbs logiclogdbs phylogdbs mirroruserdbs mirrorrootdbs mirrortest01dbs mirrortest02dbs mirrortest03dbs mirrorlogiclogdbs mirrorphylogdbs

2) CREATE USERDBS:$onspaces -c -d userdbs -p /usr2/informix/data/userdbs -o 0 -s 10240

CREATE TESTDBS:$ onspaces -c -d testdbs -p /usr2/informix/data/test01dbs -o 0 -s 10240

$onspaces -a testdbs -p /usr2/informix/data/test02dbs -o 0 -s 10240

$onspaces -a testdbs -p /usr2/informix/data/test03dbs -o 0 -s 10240

CREATE TEMPDBS:$onspaces -c -d tempdbs -t -p /usr2/informix/data/tempdbs -o 0 -s 10240

CREATE LOGICLOGDBS:onspaces -c -d logiclogdbs -p /usr2/informix/data/logiclogdbs -o 0 -s 10240

CREATE PHYLOGDBS:onspaces -c -d phylogdbs -p /usr2/informix/data/phylogdbs -o 0 -s 10240

3) MIRROR USERDBS:

$onspaces -m userdbs -p /usr2/informix/data/userdbs -o 0 -m /usr2/informix/data/mirroruserdbs 0

MIRROR TESTDBS:

onspaces -m testdbs -p /usr2/informix/data/test01dbs -o 0 -m /usr2/informix/data/mirrortest01dbs 0

onspaces -m testdbs -p /usr2/informix/data/test02dbs -o 0 -m /usr2/informix/data/mirrortest02dbs 0

onspaces -m testdbs -p /usr2/informix/data/test03dbs -o 0 -m /usr2/informix/data/mirrortest03dbs 0

MIRROR LOGICLOGDBS:

onspaces -m logiclogdbs -p /usr2/informix/data/logiclogdbs -o 0 -m /usr2/informix/data/mirrorlogiclogdbs 0

MIRROR PHYLOGDBS:

onspaces -m phylogdbs -p /usr2/informix/data/phylogdbs -o 0 -m /usr2/informix/data/mirrorphylogdbs 0

MIRROR ROOTDBS:

onspaces -m rootdbs -p /usr2/informix/data/rootdbs -o 0 -m /usr2/informix/data/mirrorrootdbs 0

4) $onspaces -r testdbs

$rm mirrortest*dbs

5) onspaces -d testdbs -p /usr2/informix/data/test03dbs -o 0

onspaces -d testdbs -p /usr2/informix/data/test02dbs -o 0

3.4.1 创建数据库

create database jolidb in userdbs;

close database;

drop database jolidb;

3.4.2 检查数据库中的chunk空闲情况

dbaccess sysmaster -

>select name,fname,(chksize*2)/1024 as size,(nfree*2)/1024 as free from sysdbspaces,syschunks where sysdbspaces.dbsnum=syschunks.dbsnum order by name,free;

或者

$onstat -d

3.5 informix日志管理

使用onparams创建逻辑日志文件在新创建的logiclogdbs上,删除rootdbs上的逻辑日志文件。

1) 在创建的logiclogdbs上添加日志文件。

onparams -a -d logiclogdbs -s 2048 -i

-s单位为K,-i说明在当前活动日志后插入

2) 删除rootdbs上的逻辑日志文件。

由于默认创建的为6个日志文件,所以我们把编号1`6的日志文件删除即可。

- $onmode -l //切换日志

- $onmode -m //执行检查点

- $onparams -d -l logfile_number -y //删除日志

逻辑日志只能删除添加的方法修改,可以修改的是物理日志的大小。

3.6 其他日常维护

1) 修改系统服务名:

- 修改.profile文件中的INFORMIXSERVER= new_servername和

ONCONFIG=onconfig.new_servername

- 修改onconfig.old_servername为onconfig.new_servername

- 使用vi修改onconfig.new_servername里的DBSERVERNAME参数为new_servername

- 修改sqlhosts中old_servername为new_servername

- 重新启动数据库即可。

2) 由于创建了的chunk无法移动位置,所以推荐使用文件连接的方式进行chunk创建。

4 备份恢复

可使用的备份工具有:

dbexport/dbimport

onbar

ontape

onload/onunload

我们只讲解使用dbexport备份,dbimport恢复(在开发时做数据库备份和数据转移);

dbexport db_name -ss -o /usr2/informix/dbexport

dbimport db_name -d dbs_name -i db_name.exp_dir

详细的应用应该参考更详细的资料,并做相关测试,最后记住使用dbexport 的Usage。

(我本人觉得,到磁盘使用dbexport/dbimport ,到磁带使用onbar或ontape好了)

5 informix 9.3升级到informix 9.4

首先必须使用dbexport安全的把数据备份到一个确保成功的目录。并记录备份所花费的时间。

然后最好对informix软件有一个备份,确保如果失败,可快速安装informix 93并使用0级备份恢复,或者可快速安装informix 94,使用dbimport进行恢复。

5.1 第一步:备份好informix安装软件

确定9.3和9.4的server和 client安装程序现场有可用备份,把93和94的Server和Client软件都备份到要升级的主机的某个目录,如:

/usr2/soft/informix9394

93:iif.tar和csdk.tar

94:clientsdk.2.81.UC2.SOL.tar和ids.9.40.UC3W2.SOL-26.tar

(介质地址在主机:/usr2/sun_informix93和

主机:/usr2/sun_informix94)

5.2 第二步:备份数据库

应使用netbackup对数据库做0级备份,由于是产品数据,有用户拿钱买netbackup做0级备份,此处不讲解该备份方法。

我们同时应该使用 dbexport的方法备份当前数据库,由于有几十个数据,所以我写了个脚本自动把数据库dbexport出来。

1) 使用informix用户创建一个备份目录,如/usr2/informix/backup

2) 在该目录下使用vi编辑一文件,命名为auto_dbexport_all.sh,文件内容如下:

#!/bin/sh

#确定系统中所有的数据库名

echo "select name from sysdatabases; " > db_name.sql

dbaccess sysmaster db_name > db_name.temp

db_name=`cat db_name.temp | awk '{print $2} '`

rm db_name.sql

rm db_name.temp

echo $db_name > db_name.txt

#导出系统中所有的数据库

for i in $db_name

do

dbexport $i -ss

cat dbexport.out >> dbexport.out.temp

done

mv dbexport.out.temp dbexport.out

3) 使用sh命令执行该脚本

%sh auto_dbexport_all.sh

4) 然后检查是否所有数据库都已经备份出来,可查看dbexport.out文件帮助。

5.3 第三步:关闭informix数据库

执行%onmode -ky

关闭数据库。

5.4 第四步:升级informix Server 9.3到9.4

1) 拷贝备份到该主机的ids.9.40.UC3W2.SOL-26.tar和93的CSDK.tar软件包到$INFORMIXDIR目录。

2) 使用tar 命令解包。

% tar xvf ids.9.40.UC3W2.SOL-26.tar

3) 安装ids 9.4

%installserver

按提示,一路回车

最后以root用户执行$INFORMIXDIR/ RUN_AS_ROOT.server文件。

4) 安装93的CSDK.tar

%tar xvf csdk.tar

%installclientsdk

5.5 第五步:启动数据库

使用命令oninit启动数据库,或者使用onmonitor的MODE模式启动数据库。

5.6 第六步:测试数据库

使用dbaccess,oncheck,onmonitor等工具进行测试。再在远程使用Client连接测试。都通过后,表示升级成功。

5.7 升级失败处理办法

如果有技术支持,或者遇到的问题简单可快速解决,则尽量解决,如果没有办法解决故障,完成升级任务,应该使用其他的办法使系统尽快可用。

可使用以下两种办法中的一种:

1)卸载原来的informix 9.3,直接安装informix 9.4。然后使用dbimport恢复dbexport的数据备份。再安装9.3的CSDK。

2)重新安装informix 9.3,直接使用netbackup的0级备份进行恢复,系统恢复到升级前状态。

如果是直接安装informix9.4,可以使用dbimport的方法恢复我们上面使用dbexport备份出来的数据库。

1)安装的informix 9.4只创建了rootdbs。需要创建并指定其他的chunk,dbs等。

6 附件

6.1 onstat

常用的onstat 选项

-l //查看逻辑日志

-m //查看日志文件最后几行

-c //查看当前配置文件

-f //可查看当前数据库版本

usage: onstat [ -abcdfghklmpstuxzBCDFRX ] [ -i ] [ -r [<seconds>] ]

[ -o [<outfile>] ] [ <infile> ]

-a Print all info

-b Print buffers

-c Print configuration file

-d [update]

Print spaces and chunks

update - Ask server to update BLOB chunk statistics

-f Print dataskip status

-g MT subcommand (default: all)

-i Interactive mode

-h Print buffer hash chain info

-j Print interactive status of the active onpload process

-k Print locks

-l Print logging

-m Print message log

-p Print profile

-s Print latches

-t Print TBLspaces

-u Print user threads

-x Print transactions

-z Zero profile counts

-B Print all buffers

-C Print btree cleaner requests

-D Print spaces and detailed chunk stats

-F Print page flushers

-G Print global transaction ids

-P Print partition buffer summary

-R Print LRU queues

-T Print tablespace information

-X Print entire list of sharers and waiters for buffers

-r Repeat options every <seconds> seconds (default: 5)

-o Put shared memory into specified file (default: onstat.out)

<infile>

Read shared memory information from specified dump file

MT COMMANDS:

all Print all MT information

ath Print all threads

wai Print waiting threads

act Print active threads

rea Print ready threads

sle Print all sleeping threads

spi Print spin locks with long spins

sch Print VP scheduler statistics

lmx Print all locked mutexes

wmx Print all mutexes with waiters

con Print conditions with waiters

stk <tid>

Dump the stack of a specified thread

glo Print MT global information

mem [<pool name>|<session id>]

Print pool statistics.

seg Print memory segment statistics

rbm Print block map for resident segment

nbm Print block map for non-resident segments

afr <pool name|session id>

Print allocated pool fragments

ffr <pool name|session id>

Print free pool fragments

ufr <pool name|session id>

Print pool usage breakdown

iov Print disk IO statistics by vp

iof Print disk IO statistics by chunk/file

iog Print AIO global information

iob Print big buffer usage by IO VP class

ppf [<partition number> | 0]

Print partition profiles

tpf [<tid> | 0]

Print thread profiles

ntu Print net user thread profile information

ntt Print net user thread access times

ntm Print net message information

ntd Print net dispatch information

nss [<session id>]

Print net shared memory status

nsc [<client id>]

Print net shared memory status

nsd Print net shared memory data

sts Print max and current stack sizes

dic Print dictionary cache information

opn [<tid>]

Print open tables

qst Print queue statistics

wst Print thread wait statistics

rwm print Read/Write Mutex lists

ses [<session id>]

Print session information

sql [<session id>]

Print SQL information

stq [<session id>]

Print stream queue information

smb Print smart-large-object usage

dri Print data replication information

pos Print /INFORMIXDIR/etc/.infos.DBSERVERNAME file

mgm Print Memory Grant Manager information

lap Print light append information

ddr Print DDR log post processing information

dmp <address> <length>

Dump <length> bytes of shared memory starting at <address>

src <pattern> <mask>

Search memory for <pattern>, where <pattern>==(memory&<mask>)

dll Print dynamic library statistics

ssc [pool|all]

Prints ssc pool summary, or statement cache summary and

entries, including key only entries (all)

stm [<sesson id>]

Prints all prepared statements approximate memory usage in a session

6.2 onspaces

onspaces { -a <spacename> -p <path> -o <offset> -s <size> [-m <path> <offset>]

{ { [-Mo <mdoffset>] [-Ms <mdsize>] } | -U }

} |

{ -c { -d <DBspace> [-t]

-p <path> -o <offset> -s <size> [-m <path> <offset>] } |

{ -b <BLOBspace> -g <pagesize>

-p <path> -o <offset> -s <size> [-m <path> <offset>] } |

{ -S <SBLOBspace> [-t]

-p <path> -o <offset> -s <size> [-m <path> <offset>]

[-Mo <mdoffset>] [-Ms <mdsize>] [-Df <default-list>] } |

{ -x <Extspace> -l <Location> } } |

{ -d <spacename> [-p <path> -o <offset>] [-f] [-y] } |

{ -f[y] off [<DBspace-list>] | on [<DBspace-list>] } |

{ -m <spacename> {-p <path> -o <offset> -m <path> <offset> [-y] |

-f <filename>} } |

{ -r <spacename> [-y] } |

{ -s <spacename> -p <path> -o <offset> {-O | -D} [-y] } |

{ -ch <sbspacename> -Df <default-list> } |

{ -cl <sbspacename> }

-a - Add a chunk to a DBspace, BLOBspace or SBLOBspace

-c - Create a DBspace, BLOBspace, SBLOBspace or Extspace

-d - Drop a DBspace, BLOBspace, SBLOBspace, Extspace, or chunk

-f - Change dataskip default for specified DBspaces

-m - Add mirroring to an existing DBspace, BLOBspace or SBLOBspace

-r - Turn mirroring off for a DBspace, BLOBspace or SBLOBspace

-s - Change the status of a chunk

-ch - Change default list for smart large object space

-cl - garbage collect smart large objects that are not referenced

default-list = {[LOGGING = {ON|OFF}] [,ACCESSTIME = {ON|OFF}]

[,AVG_LO_SIZE = {1 - 2097152}] }

6.3 onparams

Usage: onparams -a -d <DBspace> [-s <size>] [-i] |

-d -l <log file number> [-y] |

-p -s <size> [-d <DBspace>] [-y]

-a - Add a logical log file

-i - Insert afte usage: onmode -abcDdFklMmnOpQRrSsuyZz

-a <kbytes> Increase shared memory segment size.

-b <version> Revert Dynamic Server disk structures.

-c [block | unblock] Do Checkpoint. Block or unblock server.

-D <max PDQ priority allowed>

-d {standard|{primary|secondary <servername>}} set DR server type

-F Free unused memory segments

-k Shutdown completely

-e {on|off|enable|flush} configure or flush shared statement cache.

-l Force to next logical log

-M <decision support memory in kbytes>

-m Go to multi-user on-line

-n Set shared memory buffer cache to non-resident

-O Override space down blocking a checkpoint

-p <+-#> <class> Start up or remove virtual processors of

a specific class

-Q <max # decision support queries>

-R Rebuild the /INFORMIXDIR/etc/.infos.DBSERVERNAME file

-r Set shared memory buffer cache to resident

-S <max # decision support scans>

-s Shutdown to single user

-u Shutdown and kill all attached sessions

-W {STMT_CACHE_NOLIMIT {0|1} | STMT_CACHE_HITS <#>} Sets ssc

parameters.

-y Do not require confirmation

-Z <address> heuristically complete specified transaction

-z <sid> Kill specified session id r current log

-d - Drop a logical log file

-p - Change physical log size and location

-y - Automatically responds "yes " to all prompts

6.4 onmode

usage: onmode -abcDdFklMmnOpQRrSsuyZz

-a <kbytes> Increase shared memory segment size.

-b <version> Revert Dynamic Server disk structures.

-c [block | unblock] Do Checkpoint. Block or unblock server.

-D <max PDQ priority allowed>

-d {standard|{primary|secondary <servername>}} set DR server type

-F Free unused memory segments

-k Shutdown completely

-e {on|off|enable|flush} configure or flush shared statement cache.

-l Force to next logical log

-M <decision support memory in kbytes>

-m Go to multi-user on-line

-n Set shared memory buffer cache to non-resident

-O Override space down blocking a checkpoint

-p <+-#> <class> Start up or remove virtual processors of

a specific class

-Q <max # decision support queries>

-R Rebuild the /INFORMIXDIR/etc/.infos.DBSERVERNAME file

-r Set shared memory buffer cache to resident

-S <max # decision support scans>

-s Shutdown to single user

-u Shutdown and kill all attached sessions

-W {STMT_CACHE_NOLIMIT {0|1} | STMT_CACHE_HITS <#>} Sets ssc

parameters.

-y Do not require confirmation

-Z <address> heuristically complete specified transaction

-z <sid> Kill specified session id

6.5 oncheck

Usage: oncheck {-cCheckOption | -pPrintOption} [-y | -n] [-q]

[ { database[:[owner.]table[,fragdbs|#index]] | TBLspace number

| Chunk number } { rowid | page number } ]

-c - CheckOption

r - reserved pages

R - reserved pages including logical and physical logs

e - extents

c - database catalogs [database]

i - table indexes database[:[owner.]table[#index]]

I - table indexes and rowids in index database[:[owner.]table[#index]]

x - place share lock on table during index check

d - TBLspace data rows including bitmaps

database[:[owner.]table[,fragdbs]]

D - TBLspace data rows including bitmaps, remainder pages and BLOBs

database[:[owner.]table[,fragdbs]]

s - SBLOBspace metadata partitions

S - SBLOBspace metadata partitions and LO extents

-p - PrintOption

r - reserved pages (-cr)

R - reserved pages including logical and physical logs (-cR)

e - extents report (-ce)

c - catalog report (-cc) [database]

k - keys in index (-ci) database[:[owner.]table[#index]]

K - keys and rowids in index (-cI) database[:[owner.]table[#index]]

l - leaf node keys only (-ci) database[:[owner.]table[#index]]

L - leaf node keys and rowids (-cI) database[:[owner.]table[#index]]

x - place share lock on table during index check

d - TBLspace data rows (-cd) database[:[owner.]table[,fragdbs]] [rowid]

D - TBLspace data rows including bitmaps, remainder pages and BLOBs (-cD)

database[:[owner.]table[,fragdbs]] [page number]

t - TBLspace report database[:[owner.]table[,fragdbs]]

T - TBLspace disk utilization report database[:[owner.]table[,fragdbs]]

p - Dump page for the given

[table[,fragdbs] and rowid | TBLspace and page number]

P - Dump page for the given chunk number and page number

[chunk num and page number]

B - BLOBspace utilization for given table(s)

database[:[owner.]table[,fragdbs]]

s - SBLOBspace metadata partitions

S - SBLOBspace metadata partitions and LO extents

-q - Quiet mode - print only error messages

-n - Answer NO to all questions

-y - Answer YES to all questions