Rman 实现oracle11g数据库clone
Rman clone数据库的文档看了好几次了,就是没时间做,今天试试看:cd $ORACLE_HOME/dbscp initnqaddite.ora initclone.oracp orapwnqaddite orapwclone 或者orapwd file=$ORACLE_HOME/dbs/orapwclone password=clone entries=4修改initclone.ora [@more@]手动替换nqaddite 成 clone vi 执行 :%s/nqaddite/clone/g或者 perl -p -i -e 's/nqaddite/clone/g' initclone.ora添加到参数文件里面*.db_file_name_convert = ('nqaddite','clone')*.log_file_name_convert = ('nqaddite','clone')nomount启动clone数据库实例 export ORACLE_SID=clo
oracle中使用rlwrap,将命令行历史的查看变为可能
当在Linux Shell中运行SQL*Plus的时候,并不提供浏览历史命令行的功能。相反的,在Windows操作系统上,当在DOS命令窗口中运行SQL*Plus的时候,可以使用向上,向下键来跳回之前已经执行过的SQL语句。你可以 根据需要修改他们,然后按[Enter]重新提交执行。[@more@]为了在Linux中达到同样的目的,你可以安装rlwrap,这个程式本身是个Shell,可以运行任何你提供给它的命令包括参数,并添加命令历史浏览功能。 The rlwrap program is under the GPL license。 1:安装 yum install readline-devel wget http://utopia.knoware.nl/~hl
学习Oracle的索引、表的存储
每个索引键值 占用1024 字节 ,同样表的每一行也占用1024字节, 如果超过1024字节之后呢? 找时间试试[@more@]create table t1(x char(1024));create index ti on t1(x);insert into t1 values(1);commit;beginfor i in 2..7 loopinsert into t1 values(i);end loop;end;/commit;beginfor i in 2..7 loopfor j in 3..9 loopinsert into t1 values(i*10+j);end loop;end loop;end;/commit;for i in 2..7 loopfor j in 3..9 loopinsert into t1 values(i*100+j*10+1);end loop;end loop;end;/commit;beginfor i in 22..27 loopinsert into t