扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
SQL> grant select on x$ksppi to eygle; grant select on x$ksppi to eygle * ERROR at line 1: ORA-02030: can only select from fixed tables/views |
where inst_id = USERENV(’Instance’) |
SQL> select view_definition from v_$fixed_view_definition where view_name=’V$FIXED_TABLE’; VIEW_DEFINITION ------------------------------------------------------------------------------ select NAME , OBJECT_ID , TYPE , TABLE_NUM from GV$FIXED_TABLE where inst_id = USERENV(’Instance’) |
SQL> select view_definition from v_$fixed_view_definition where view_name=’GV$FIXED_TABLE’; VIEW_DEFINITION ------------------------------------------------------------------------------ select inst_id,kqftanam, kqftaobj, ’TABLE’, indx from x$kqfta union all select inst_id,kqfvinam, kqfviobj, ’VIEW’, 65537 from x$kqfvi union all select inst_id,kqfdtnam, kqfdtobj, ’TABLE’, 65537 from x$kqfdt |
create or replace view v_$fixed_table as select * from v$fixed_table; create or replace public synonym v$fixed_table for v_$fixed_table; create or replace view gv_$fixed_table as select * from gv$fixed_table; create or replace public synonym gv$fixed_table for gv_$fixed_table; |
SQL> select * from bootstrap$; LINE# OBJ# SQL_TEXT ------------------------------------------------------------------------------ -1 -1 8.0.0.0.0 0 0 CREATE ROLLBACK SEGMENT SYSTEM STORAGE ( INITIAL 112K NEXT 1024K MINEXTENTS 1 M 8 8 CREATE CLUSTER C_FILE#_BLOCK#("TS#" NUMBER,"SEGFILE#" NUMBER,"SEGBLOCK#" NUMBER) 9 9 CREATE INDEX I_FILE#_BLOCK# ON CLUSTER C_FILE#_BLOCK# PCTFREE 10 INITRANS 2 MAXT 14 14 CREATE TABLE SEG$("FILE#" NUMBER NOT NULL,"BLOCK#" NUMBER NOT NULL,"TYPE#" NUMBE 5 5 CREATE TABLE CLU$("OBJ#" NUMBER NOT NULL,"DATAOBJ#" NUMBER,"TS#" NUMBER NOT NULL 6 6 CREATE CLUSTER C_TS#("TS#" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 2 MAXTRANS 255 7 7 CREATE INDEX I_TS# ON CLUSTER C_TS# PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( .... |
create table bootstrap$ ( line# number not null, obj# number not null, sql_text varchar2(4000) not null) storage (initial 50K objno 56 extents (file 1 block 377)) |
SQL> select count(*) from v$fixed_table where name like ’X$%’; COUNT(*) ---------- 394 |
SQL> select count(*) from v$fixed_table where name like ’GV$%’; COUNT(*) ---------- 259 |
SQL> select count(*) from v$fixed_table where name like ’V$%’; COUNT(*) ---------- 259 |
SQL> select view_definition from v$fixed_view_definition a where a.VIEW_NAME=’V$PARAMETER’; VIEW_DEFINITION ------------------------------------------------------------------------------ select NUM , NAME , TYPE , VALUE , ISDEFAULT , ISSES_MODIFIABLE , ISSYS_MODIFIA BLE , ISMODIFIED , ISADJUSTED , DESCRIPTION, UPDATE_COMMENT from GV$PARAMETER wh ere inst_id = USERENV(’Instance’) |
SQL> select view_definition from v$fixed_view_definition a where a.VIEW_NAME=’GV$PARAMETER’; VIEW_DEFINITION ----------------------------------------------------------------------------- select x.inst_id,x.indx+1,ksppinm,ksppity,ksppstvl,ksppstdf, decode(bitand(kspp iflg/256,1),1,’TRUE’,’FALSE’), decode(bitand(ksppiflg/65536,3),1,’IMMEDIATE’,2, ’DEFERRED’, 3,’IMMEDIATE’,’FALSE’), decode(bit and(ksppstvf,7),1,’MODIFIED’,4,’SYSTEM_MOD’,’FALSE’), decode(bitand(ksppstvf,2) ,2,’TRUE’,’FALSE’), ksppdesc, ksppstcmnt from x$ksppi x, x$ksppcv y where (x.i ndx = y.indx) and ((translate(ksppinm,’_’,’#’) not like ’#%’) or (ksppstdf = ’F ALSE’)) |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者