FAQS

1.How can I get the largest amount of physical reads by any query?

   select disk_reads, sql_text from v$sqlarea where disk_reads >1000 order by disk_reads desc ;

 

2. V$FIXED_TABLE

This view displays all dynamic performance tables, views, and derived tables in the database

 

3.What is the difference between V$ and GV$ , also V$and V_$,X$?

These “$” views are called dynamic performance views. They are continuously updated while a database is open and in use, and their contents relate primarily to performance.
The actual dynamic performance views are identified by the prefix V_$. Public synonyms for these views have the prefix V$. You should access only the V$ objects, not the V_$ objects.
For almost every V$ view, Oracle has a corresponding GV$ (global V$) view. In addition to the V$ information, each GV$ view contains an extra column named INST_ID of datatype NUMBER. The INST_ID column displays the instance number from which the associated V$ view information was obtained.

X$ is table, is drived table.

 

4.How do you find out the unix process id of a database session?

Some times you might want to get the unix process details of a database session. You have the Oracle session details. Just map them with paddr column from v$process ! You're done.

e.g.

SQL> select p.spid from v$session s, v$process p where s.sid=16 and s.paddr=p.addr

SPID
---------
16750

5.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值