UNIX下ORACLE数据库的创建



@/data4/ora817/app/oracle/product/8.1.7/sqlplus/admin/help/helpbld.sql helpus.sql;

disconnect
spool off
exit
EOF
#------------------END----------------------------------------------------

4、 完善处理

为了使数据库达到较好的性能,我们还需要对数据库作进一步的调整,这里举的例子是修改用户的默认表空间和临时表空间,改变数据库为archive log运行模式。

ox1> more cdb4_perf.sh
#!/bin/sh
#-----------------BEGIN--------------------------------------------------
ORACLE_SID=oracyx export ORACLE_SID
/data4/ora817/app/oracle/product/8.1.7/bin/sqlplus internal/cyx << EOF
spool /data4/ora817/cyx/cdb/crdb4.log

alter user sys temporary tablespace TEMP;
alter user system default tablespace TOOLS;
alter user system temporary tablespace TEMP;

shutdown normal;
startup mount pfile=''/data4/ora817/app/oracle/product/8.1.7/dbs/initoracyx.ora'';
alter database archivelog;
alter database open;
alter system archive log start;
alter system switch logfile;

disconnect
spool off
exit
EOF
#------------------END----------------------------------------------------

总结:

好了,到此为止我们就建立一个新的数据库,不知你现在对这一过程是否清晰了?在我们对数据库的逻辑结构都很熟悉的情况下,建库过程中需要重点考虑的是数据库的物理存储,而这和我们具体的应用有关,不是一两句话就能说情的,希望大家能够一起来探讨……
          刁馋
Copyright © 2008 chengduxinxi.com All Rights Reserved PHP编程开发 由朝夕网络维护