- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
7#
发表于 2014-3-13 20:31:18
这个现象是正常的
1* select object_name,object_type,owner from dba_objects where object_name='DBA_USERS'
SQL> /
OBJECT_NAME OBJECT_TYPE OWNER
------------------------------ ------------------- ------------------------------
DBA_USERS VIEW SYS
DBA_USERS SYNONYM PUBLIC
dba用户没有办法在属于SYS的视图上建另一层视图
SQL> conn / as sysdba
Connected.
SQL> create view sys_view1 select 1 "abc" from dual;
create view sys_view1 select 1 "abc" from dual
*
ERROR at line 1:
ORA-00905: missing keyword
SQL> create view sys_view1 as select 1 "abc" from dual;
View created.
SQL> conn maclean/oracle
Connected.
SQL> select * from sys.sys_view1;
abc
----------
1
SQL> create view dba_view1 as select * From sys.sys_view1;
create view dba_view1 as select * From sys.sys_view1
*
ERROR at line 1:
ORA-01031: insufficient privileges
|
|