5、建立数据字典
数据字典脚本:
[Oracle@oracle dbs]cat cr_dict.sql
@$ORACLE_HOME/rdbms/admin/catalog.sql
@$ORACLE_HOME/rdbms/admin/catproc.sql
conn system/oracle
@$ORACLE_HOME/sqlplus/admin/pupbld.sql
11:20:12 SYS@ test1>@/home/oracle/cr_dict.sql
6、建立Users表空间并设为默认表空间
系统默认的表空间为system,如果以system为默认表空间,会影响数据库的管理和性能
12:09:56 SQL> create tablespace users
12:10:01 2 datafile '/u01/app/oracle/oradata/cuug/user01.dbf' size 100m;
Tablespace created.
12:10:41 SQL> alter database default tablespace users;
Database altered.
7、添加example案例
12:11:45 SQL> @$ORACLE_HOME/rdbms/admin/utlsampl.sql
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@oracle ~]$
@至此,手工建库完成!
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-05/102087.htm
