五 创建数据字典
SQL>@?/rdbms/admin/catalog.sql
…
View created.
Synonym created.
Grant succeeded.
View created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Synonym created.
Grant succeeded.
Grant succeeded.
View created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Synonym created.
Grant succeeded.
View created.
Synonym created.
Grant succeeded.
Commit complete.
View created.
Synonym created.
Grant succeeded.
View created.
Synonym created.
Grant succeeded.
View created.
Comment created.
Comment created.
Comment created.
Comment created.
Synonym created.
Grant succeeded.
PL/SQL procedure successfully completed.
SQL> @?/rdbms/admin/catproc.sql
…
Synonym created.
Grant succeeded.
Library created.
Package created.
Package body created.
Package created.
Package body created.
Library created.
Function created.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
Package body created.
No errors.
Package body created.
PL/SQL procedure successfully completed.
SQL> @?/rdbms/admin/catblock.sql
……
View created.
Synonym created.
Grant succeeded.
SQL> connect system/Oracle
Connected.
SQL> @?/sqlplus/admin/pupbld.sql
……
Synonym created.
DROP PUBLIC SYNONYM PRODUCT_USER_PROFILE
*
ERROR at line 1:
ORA-01432: public synonym to be dropped does not exist
Synonym created.
建立help表并插入help的数据,非常值得参考
SQL> @?/sqlplus/admin/help/hlpbld.sql helpus.sql
……
View created.
58 rows created.
Commit complete.
手动建库的时候执行到最后,需要使用system用户执行SQL脚本 ,但在执行hlpbld.sql的时候要求输入参数,
@?/sqlplus/admin/help/hlpbld.sql
?代表oracle home
实际就是创建了一张名为help的表,用于支持help命令,而hlpbld.sql本身是没有插入数据的语句的,所以需要传递一个参数,而这个参数实际上就是插入help数据的脚本。将helpus.sql作为输入参数的命令 就是
@?/sqlplus/admin/help/hlpbld.sql helpus.sql
