我的序列plsql_profile_runnumber在dba_objects中不可见

时间:2018-03-09 11:59:39

标签: sql oracle sequence

我在sys用户中创建了一个序列plsql_profile_runnumber,但我无法在dba_objectsdba_sequences中找到它。请查找执行细节:

SQL> create sequence plsql_profiler_runnumber start with 1 nocache;

Sequence created.

SQL> select * from sys.dba_objects where object_name ='PLSQL_PROFILE_RUNNUMBER';

no rows selected

SQL> grant select on plsql_profile_runnumber to vps_user;
grant select on plsql_profile_runnumber to vps_user
                *
ERROR at line 1:
ORA-00942: table or view does not exist

2 个答案:

答案 0 :(得分:1)

create sequence plsql_profiler_runnumber start with 1 nocache;

select * from sys.dba_objects where object_name ='PLSQL_PROFILE_RUNNUMBER';

答案:您创建的序列是PLSQL_PROFILER_RUNNUMBER。 您引用的对象名称是PLSQL_PROFILE_RUNNUMBER。

两个名字不同。 PROFILER与PROFILE。

答案 1 :(得分:0)

  

PLSQL_PROFILE_RUNNUMBER

  

plsql_profile r _ runnumber

不同  结束r的{​​{1}}。