Informix 11.7 dbspace.sql

c:\net start test1

c:\ibm\informix\test1.cmd

__________________________

EXECUTE FUNCTION ADMIN ('create dbspace', 'plogdbs', 'C:\09_datafile\informix\test1\plogdbs', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'llogdbs', 'C:\09_datafile\informix\test1\llogdbs', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create tempdbspace', 'tmpdbs01', 'C:\09_datafile\informix\test1\tmpdbs01', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create tempdbspace', 'tmpdbs02', 'C:\09_datafile\informix\test1\tmpdbs02', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create tempdbspace', 'tmpdbs03', 'C:\09_datafile\informix\test1\tmpdbs03', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create tempdbspace', 'tmpdbs04', 'C:\09_datafile\informix\test1\tmpdbs04', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs01', 'C:\09_datafile\informix\test1\datadbs01', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs02', 'C:\09_datafile\informix\test1\datadbs02', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs03', 'C:\09_datafile\informix\test1\datadbs03', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs04', 'C:\09_datafile\informix\test1\datadbs04', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs05', 'C:\09_datafile\informix\test1\datadbs05', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs06', 'C:\09_datafile\informix\test1\datadbs06', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs07', 'C:\09_datafile\informix\test1\datadbs07', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs08', 'C:\09_datafile\informix\test1\datadbs08', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs09', 'C:\09_datafile\informix\test1\datadbs09', '100000K', '0K');

EXECUTE FUNCTION ADMIN ('create dbspace', 'datadbs10', 'C:\09_datafile\informix\test1\datadbs10', '100000K', '0K');

--  Dbspace 21 -- Chunk 21

EXECUTE FUNCTION TASK('create sbspace', 'sbspace1', 'C:\09_datafile\informix\test1\sbspace1', '100000', '0');

--  Physical Log

EXECUTE FUNCTION TASK

('alter plog', 'plogdbs', '99000');

--  Store pre-existing logical logs information before create new logical logs

DATABASE sysadmin;

CREATE TABLE llog (log smallint, flags  smallint);

INSERT INTO llog SELECT number, flags FROM sysmaster:syslogfil;

--  Logical Log 7

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 8

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 9

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 10

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 11

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 12

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 13

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 14

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 15

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Logical Log 16

EXECUTE FUNCTION TASK

('add log', 'llogdbs', '10000');

--  Drop all pre-existing logical logs

EXECUTE FUNCTION TASK

('checkpoint');

SELECT TASK ('drop log', log) FROM sysadmin:llog

WHERE sysmaster:bitval(flags,'0x02')==0;

EXECUTE FUNCTION TASK

('checkpoint');

SELECT TASK('onmode', 'l') FROM sysmaster:syslogfil

WHERE chunk = 1 AND sysmaster:bitval(flags,'0x02')>0;

EXECUTE FUNCTION TASK

('checkpoint');

SELECT TASK ('drop log', log) FROM sysadmin:llog

WHERE sysmaster:bitval(flags,'0x02')==1;

DROP TABLE sysadmin:llog;

_______________________________________


? 在windows 7 64bit高级家庭版的alienware本机中,test1.cmd运行,窗口非常小,如何变大?很简单,删除最后一行

set INFORMIXDIR=C:\IBM\Informix
set INFORMIXSERVER=test1
set ONCONFIG=ONCONFIG.test1
set PATH=C:\IBM\Informix\bin;%PATH%
set CLASSPATH=%INFORMIXDIR%\extend\krakatoa\krakatoa.jar;%INFORMIXDIR%\extend\krakatoa\jdbc.jar;%CLASSPATH%
set DBTEMP=C:\IBM\Informix\infxtmp
set CLIENT_LOCALE=EN_US.CP1252
set DB_LOCALE=EN_US.8859-1

mode con codepage select=1252

即可



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值