你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle手工创建数据库的完整步骤

[日期:2014-05-06] 来源:Linux社区  作者:Linux [字体:大 中 小]

五 创建数据字典

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

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款