手工创建oracle数据库,新建用户sqlplus登录时有错误提示信息:
1 2 3 4 5 6 7
| ERROR: ORA-00942: table or view does not exist
Error accessing PRODUCT_USER_PROFILE Warning: Product user profile information not loaded! You may need to run PUPBLD.SQL as SYSTEM
|
可以正常登录,不影响使用。
用system用户登录数据库,执行脚本$ORACLE_HOME/sqlplus/admin/pupbld.sql可以消除此错误提示:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| $ sqlplus system/xxxx@orcl SQL>@/u01/app/oracle/product/10.2.0/db_1/sqlplus/admin/pupbld.sql
DROP SYNONYM PRODUCT_USER_PROFILE * ERROR at line 1: ORA-01434: private synonym to be dropped does not exist
DATE_VALUE FROM PRODUCT_USER_PROFILE * ERROR at line 3: ORA-00942: table or view does not exist
DROP TABLE PRODUCT_USER_PROFILE * ERROR at line 1: ORA-00942: table or view does not exist
ALTER TABLE SQLPLUS_PRODUCT_PROFILE ADD (LONG_VALUE LONG) * ERROR at line 1: ORA-00942: table or view does not exist
Table created.
DROP TABLE PRODUCT_PROFILE * ERROR at line 1: ORA-00942: table or view does not exist
DROP VIEW PRODUCT_PRIVS * ERROR at line 1: ORA-00942: table or view does not exist
View created.
Grant succeeded.
DROP PUBLIC SYNONYM PRODUCT_PROFILE * ERROR at line 1: ORA-01432: public synonym to be dropped does not exist
Synonym created.
DROP SYNONYM PRODUCT_USER_PROFILE * ERROR at line 1: ORA-01434: private synonym to be dropped does not exist
Synonym created.
DROP PUBLIC SYNONYM PRODUCT_USER_PROFILE * ERROR at line 1: ORA-01432: public synonym to be dropped does not exist
Synonym created.
|
重新登录新用户,错误提示消失。
===
[erq]