SQLによるDB管理 ― 2007年05月08日 18時56分48秒
Cheetahでは、onmodeやonspacesなどで行っているDB管理のタスクをsqlで実現できるようになっています。sqlで可能ということは、リモートのサーバに対していちいちログインする必要がなく、リモートクエリーすればよいので管理が楽になります。
以下、新規のDB領域を追加する例です。
% onstat -d
IBM Informix Dynamic Server Version 11.10.FB6TL -- On-Line -- Up 00:12:16 -- 39936 Kbytes
Dbspaces
address number flags fchunk nchunks pgsize flags owner name
10aedce88 1 0x40001 1 1 2048 N B informix rootdbs
1 active, 2047 maximum
Chunks
address chunk/dbs offset size free bpages flags pathname
10aedd028 1 1 0 150000 74853 PO-B /informix/dbs/rootdbs
1 active, 32766 maximum
% dbaccess sysadmin -
Database selected.
> execute function task("create dbspace", "newdbs", "/informix/dbs/newdbs", "10 M", "0"); <<-- これです
% onstat -d
IBM Informix Dynamic Server Version 11.10.FB6TL -- On-Line -- Up 00:15:39 -- 39936 Kbytes
Dbspaces
address number flags fchunk nchunks pgsize flags owner name
10aedce88 1 0x60001 1 1 2048 N B informix rootdbs
10c0ac9d8 2 0x60001 2 1 2048 N B informix newdbs <<< ---- 追加されています
2 active, 2047 maximum
Chunks
address chunk/dbs offset size free bpages flags pathname
10aedd028 1 1 0 150000 74837 PO-B /informix/dbs/rootdbs
10c0acb70 2 2 0 5120 5092 PO-B /informix/dbs/newdbs
2 active, 32766 maximum
以下、新規のDB領域を追加する例です。
% onstat -d
IBM Informix Dynamic Server Version 11.10.FB6TL -- On-Line -- Up 00:12:16 -- 39936 Kbytes
Dbspaces
address number flags fchunk nchunks pgsize flags owner name
10aedce88 1 0x40001 1 1 2048 N B informix rootdbs
1 active, 2047 maximum
Chunks
address chunk/dbs offset size free bpages flags pathname
10aedd028 1 1 0 150000 74853 PO-B /informix/dbs/rootdbs
1 active, 32766 maximum
% dbaccess sysadmin -
Database selected.
> execute function task("create dbspace", "newdbs", "/informix/dbs/newdbs", "10 M", "0"); <<-- これです
% onstat -d
IBM Informix Dynamic Server Version 11.10.FB6TL -- On-Line -- Up 00:15:39 -- 39936 Kbytes
Dbspaces
address number flags fchunk nchunks pgsize flags owner name
10aedce88 1 0x60001 1 1 2048 N B informix rootdbs
10c0ac9d8 2 0x60001 2 1 2048 N B informix newdbs <<< ---- 追加されています
2 active, 2047 maximum
Chunks
address chunk/dbs offset size free bpages flags pathname
10aedd028 1 1 0 150000 74837 PO-B /informix/dbs/rootdbs
10c0acb70 2 2 0 5120 5092 PO-B /informix/dbs/newdbs
2 active, 32766 maximum
IDS Experts ブログ ― 2007年04月24日 18時59分52秒
英語のサイトですが、以下のブログはCheetahの新機能に関して、非常にコンパクトに分かりやすく記述されています。私もいろいろと勉強させていただいていますので、みなさんも定期的に確認されてはどうでしょうか。
http://www-03.ibm.com/developerworks/blogs/page/idsteam
http://www-03.ibm.com/developerworks/blogs/page/idsteam
NUMAIOVPSの自動設定 ― 2007年04月11日 19時54分27秒
Cheetahでは、幾つかのonconfigパラメータをエンジンが自動的に設定してくれるようになりました。その機能の一つがNUMAIOVPSの自動設定になります。
% onstat -c | grep AIO
NUMAIOVPS
AUTO_AIOVPS 1
上記のように、NUNAIOVPSには値を指定せず、新しいパラメータであるAUTO_AIOVPSに1を設定して下さい。エンジンはシステムの状況を判断して、最適な数のAIOを自動的に起動してくれます。これでもうチャンクの数が幾つだからどうしようかって悩まなくなりますね。
% onstat -c | grep AIO
NUMAIOVPS
AUTO_AIOVPS 1
上記のように、NUNAIOVPSには値を指定せず、新しいパラメータであるAUTO_AIOVPSに1を設定して下さい。エンジンはシステムの状況を判断して、最適な数のAIOを自動的に起動してくれます。これでもうチャンクの数が幾つだからどうしようかって悩まなくなりますね。
onatpeでのディレクトリーへのバックアップ ― 2007年03月16日 15時11分36秒
cheetahからontapeでディレクトリーへのバックアップが可能になりました。手順は簡単です。
1. TAPEDEV 及びLTAPEDEVパラメータにディレクトリーを指定します。
% onstat -c | grep TAPEDEV
TAPEDEV /informix/backup_dir
2. あとは今までと同じようのontapeでバックアップ実行してください。ご覧のように、ディレクトリーにバックアップがたまっていきます。古いのは基本的に必要ないので、テープにバックアップするなり、削除したりしてください。
% ls -l /informix/backup_dir
合計 0
% ontape -s -L 0
10 percent done.
100 percent done.
File created: /informix/backup_dir/raiden_68_L0
Please label this tape as number 1 in the arc tape sequence.
This tape contains the following logical logs:
1
Program over.
% ls -l /informix/backup_dir
合計 50288
-rw-rw---- 1 informix informix 25722880 3月 16日 15:10 raiden_68_L0
%
% ontape -s -L 0
10 percent done.
100 percent done.
File created: /informix/backup_dir/raiden_68_L0
Please label this tape as number 1 in the arc tape sequence.
This tape contains the following logical logs:
1
Program over.
% ls -l /informix/backup_dir
合計 101792
-rw-rw---- 1 informix informix 25722880 3月 16日 15:10 raiden_68_20070316_151038_L0
-rw-rw---- 1 informix informix 26345472 3月 16日 15:20 raiden_68_L0
%
1. TAPEDEV 及びLTAPEDEVパラメータにディレクトリーを指定します。
% onstat -c | grep TAPEDEV
TAPEDEV /informix/backup_dir
2. あとは今までと同じようのontapeでバックアップ実行してください。ご覧のように、ディレクトリーにバックアップがたまっていきます。古いのは基本的に必要ないので、テープにバックアップするなり、削除したりしてください。
% ls -l /informix/backup_dir
合計 0
% ontape -s -L 0
10 percent done.
100 percent done.
File created: /informix/backup_dir/raiden_68_L0
Please label this tape as number 1 in the arc tape sequence.
This tape contains the following logical logs:
1
Program over.
% ls -l /informix/backup_dir
合計 50288
-rw-rw---- 1 informix informix 25722880 3月 16日 15:10 raiden_68_L0
%
% ontape -s -L 0
10 percent done.
100 percent done.
File created: /informix/backup_dir/raiden_68_L0
Please label this tape as number 1 in the arc tape sequence.
This tape contains the following logical logs:
1
Program over.
% ls -l /informix/backup_dir
合計 101792
-rw-rw---- 1 informix informix 25722880 3月 16日 15:10 raiden_68_20070316_151038_L0
-rw-rw---- 1 informix informix 26345472 3月 16日 15:20 raiden_68_L0
%
評価版の期限切れメッセージについて ― 2007年03月02日 01時35分32秒
Cheetahのベータ版を使うと、以下のような評価期限を示すメッセージがよく出力されますね。
% onstat -
Your evaluation license will expire on 2007-08-14 00:00:00
IBM Informix Dynamic Server Version 11.10.FB4TL -- On-Line -- Up 4 days 00:4 3:04 -- 244736 Kbytes
これは以下のような環境変数を指定すると表示されなくなるみたいです。
% setenv IFX_NO_TIMELIMIT_WARNING 1 <<---- これです。
% onstat -
IBM Informix Dynamic Server Version 11.10.FB4TL -- On-Line -- Up 4 days 00:4 8:44 -- 244736 Kbytes
% onstat -
Your evaluation license will expire on 2007-08-14 00:00:00
IBM Informix Dynamic Server Version 11.10.FB4TL -- On-Line -- Up 4 days 00:4 3:04 -- 244736 Kbytes
これは以下のような環境変数を指定すると表示されなくなるみたいです。
% setenv IFX_NO_TIMELIMIT_WARNING 1 <<---- これです。
% onstat -
IBM Informix Dynamic Server Version 11.10.FB4TL -- On-Line -- Up 4 days 00:4 8:44 -- 244736 Kbytes
Cheetahのマニュアル ― 2007年02月26日 16時44分27秒
Cheetah (ベータ版) のダウンロードサイト ― 2007年02月21日 17時24分40秒
以下のURLからCheetah(ベータ版)を入手でます。ただ、IBM IDを事前に入手する必要があります。
http://www-306.ibm.com/software/info/ids/cheetah/index.jsp
http://www-306.ibm.com/software/info/ids/cheetah/index.jsp
最近のコメント