我手动用代码创建了一个sid为chirs 的数据库
数据库创建好了、用sysdb连上去了、
然后执行脚本
@?/sqlplus/admin/pupbld.sql
@?/rdbms/admin/catproc.sql
@?/rdbms/admin/catalog.sql
第一个能执行成功的,。
但是第二和第三个都执行失败了
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 14 21:13:40 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
from (select global_name,instr(global_name, '.') dot from global_name)
*
ERROR at line 3:
ORA-00942: table or view does not exist
idle>/u01/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql
SP2-0734: unknown command beginning "/u01/app/o..." - rest of line ignored.
idle>@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin
SP2-0310: unable to open file "/u01/app/oracle/product/10.2.0/db_1/rdbms/admin.sql"
idle>@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin
为什么呀,。,,,,我的文件明明是存在的呀
[oracle@Redhat admin]$ pwd
/u01/app/oracle/product/10.2.0/db_1/rdbms/admin
[oracle@Redhat admin]$ cd catalog.sql
------解决方案--------------------
会不会是没有给oracle赋予权限读取那些文件?
------解决方案--------------------
你的sql脚本中的这个语句from (select global_name,instr(global_name, '.') dot from global_name)
访问的表或视图不存在。
------解决方案--------------------
@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin
很明显是,ADMIN后面的文件没有写完整,兄弟
应该如下
@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql