---
title: "FAQS"
author: "edwards0307"
date: "2012-02-09T15:59:06Z"
tags: []
categories: ["开源软件"]
slug: "faqs"
draft: false
lastmod: "2012-02-09T15:59:06Z"
id: 1399526
url: "https://killdbs.iteye.com/blog/1399526"
---

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 &gt;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](http://killdbs.iteye.com/admin/blogs/) 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&gt; select p.spid from v$session s, v$process p where s.sid=16 and s.paddr=p.addr

SPID  
\---------  
16750

5\.