q$bh
SELECT "ADDR","INDX","INST_ID","BUF#","HLADDR","NXT_HASH","PRV_HASH","NXT_REPL",
"PRV_REPL","FLAG","LRU_FLAG","TS#","FILE#","DBARFIL","DBABLK","CLASS","STATE",
"MODE_HELD","CHANGES","CSTATE","X_TO_NULL","FORCED_READS","FORCED_WRITES",
"LE_ADDR","DIRTY_QUEUE","SET_DS","OBJ","BA","CR_SCN_BAS","CR_SCN_WRP","CR_XID_USN",
"CR_XID_SLT","CR_XID_SQN","CR_UBA_FIL","CR_UBA_BLK","CR_UBA_SEQ","CR_UBA_REC",
"CR_SFL","LRBA_SEQ","LRBA_BNO","HRBA_SEQ","HRBA_BNO","RRBA_SEQ","RRBA_BNO","US_NXT",
"US_PRV","WA_NXT","WA_PRV","TCH","TIM"
FROM sys.x$bh
WHERE inst_id = USERENV('Instance')
It is invalid because HRBA_SEQ,HRBA_BNO and BUF# do not exist in x$bh
And
q$buffer_cache
SELECT
bh.addr
,bh.buf#
,bh.dbarfil
,bh.dbablk
,bh.ts#
,bh.obj
,bh.class
,DECODE(bh.state,0,'FREE',1,'XCUR',2,'SCUR',
3,'CR',4,'READ',5,'MREC',6,'IREC')
,bp.bp_name
,DECODE(BITAND(bh.flag,1),0,'N','Y')
,DECODE(BITAND(bh.flag,524288),0,'RANDOM','SEQUENTIAL')
,bh.nxt_repl
,bh.prv_repl
FROM
sys.x$kcbwbpd bp
,sys.x$bh bh
,sys.x$kcbwds ds
WHERE
bp.bp_size > 0
AND ds.set_id >= bp.bp_lo_sid
AND ds.set_id <= bp.bp_hi_sid
AND bh.buf# >= ds.start_buf#
AND bh.buf# <= ds.end_buf#
AND bh.inst_id = USERENV('Instance')
AND bp.inst_id = USERENV('Instance')
AND ds.inst_id = USERENV('Instance')
I know why they are invalid, columns are missing in the actual views. Oracle say delete them as they dont know what they do, but I am suspicious as we or my customer didnt create them.
Might have to do it anyway and keep the text just in case
I think its installed by Q Diagnostic Engine.......
The Q Diagnostic Center provides an interesting, information-dense GUI summary of system resource usage that lets you quickly analyze system performance.
Q is composed of the Q Viewer and the Q Diagnostic Engines for Oracle and Client PCs. The Diagnostic Engine for Oracle executes on any Oracle7.2 or 7.3 database.
The Client Engine currently supports Windows 95 and NT platforms.
If u had this tool sometime it must have installed those q$views.....
Bookmarks