在dba_role_privs视图中有 四个字段
Name Type Nullable Default Comments
------------ ------------ -------- ------- -------------------------------------------------
GRANTEE VARCHAR2(30) Y Grantee Name, User or Role receiving the grant
GRANTED_ROLE VARCHAR2(30) Granted role name
ADMIN_OPTION VARCHAR2(3) Y Grant was with the ADMIN option
DEFAULT_ROLE VARCHAR2(3) Y Role is designated as a DEFAULT ROLE for the user 为什么查询时其中的GRANTED_ROLE 字段不能作为条件查询
SQL> select grantee from dba_sys_privs dsp where dsp.granted_role='DBA';
select grantee from dba_sys_privs dsp where dsp.granted_role='DBA'
ORA-00904: "DSP"."GRANTED_ROLE": invalid identifier
为什么提示无效的字段啊 我晕死
Name Type Nullable Default Comments
------------ ------------ -------- ------- -------------------------------------------------
GRANTEE VARCHAR2(30) Y Grantee Name, User or Role receiving the grant
GRANTED_ROLE VARCHAR2(30) Granted role name
ADMIN_OPTION VARCHAR2(3) Y Grant was with the ADMIN option
DEFAULT_ROLE VARCHAR2(3) Y Role is designated as a DEFAULT ROLE for the user 为什么查询时其中的GRANTED_ROLE 字段不能作为条件查询
SQL> select grantee from dba_sys_privs dsp where dsp.granted_role='DBA';
select grantee from dba_sys_privs dsp where dsp.granted_role='DBA'
ORA-00904: "DSP"."GRANTED_ROLE": invalid identifier
为什么提示无效的字段啊 我晕死
现在问题解决了 准确的说是我电脑昨天不知道怎么回事 不行 今天试试结果可以了 很是郁闷啊