11、v$database
显示当前数据库的详细信息
05:43:44 SQL> select name,log_mode ,created from v$database;
NAME LOG_MODE CREATED
---------- ------------ -------------------
ORCL ARCHIVELOG 2011-01-26 14:31:41
12、v$controlfile
显示当前数据库所有的控制文件的信息
5:44:40 SQL> col name for a50
05:44:56 SQL> r
1* select * from v$controlfile
STATUS NAME IS_ BLOCK_SIZE FILE_SIZE_BLKS
------- -------------------------------------------------- --- ---------- --------------
/u01/app/oracle/oradata/orcl/control01.ctl NO 16384 430
/u01/app/oracle/oradata/orcl/control02.ctl NO 16384 430
/u01/app/oracle/oradata/orcl/control03.ctl NO 16384 430
13、v$datafile
用于取得当前数据库所有数据文件的详细信息
05:46:20 SQL> select file#,name,bytes from v$datafile;
FILE# NAME BYTES
---------- -------------------------------------------------- ----------
1 /u01/app/oracle/oradata/orcl/system01.dbf 513802240
2 /u01/app/oracle/oradata/orcl/undotbs01.dbf 94371840
3 /u01/app/oracle/oradata/orcl/sysaux01.dbf 272629760
4 /u01/app/oracle/oradata/orcl/users01.dbf 11796480
5 /u01/app/oracle/oradata/orcl/example01.dbf 104857600
14、v$dbfile
用于取得数据文件的变化及名称
05:47:19 SQL> select * from v$dbfile;
FILE# NAME
---------- --------------------------------------------------
4 /u01/app/oracle/oradata/orcl/users01.dbf
3 /u01/app/oracle/oradata/orcl/sysaux01.dbf
2 /u01/app/oracle/oradata/orcl/undotbs01.dbf
1 /u01/app/oracle/oradata/orcl/system01.dbf
5 /u01/app/oracle/oradata/orcl/example01.dbf
15、v$logfile
显示重做日志文件成员的信息
05:48:42 SQL> col member for a50
05:48:53 SQL> r
1* select * from v$logfile
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- -------------------------------------------------- ---
3 ONLINE /u01/app/oracle/oradata/orcl/redo03.log NO
2 ONLINE /u01/app/oracle/oradata/orcl/redo02.log NO
1 ONLINE /u01/app/oracle/oradata/orcl/redo01.log NO
16、v$log
显示日志组的详细信息
05:49:10 SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- -------------------
1 1 20 52428800 1 YES INACTIVE 803633 2011-02-18 04:33:24
2 1 21 52428800 1 YES INACTIVE 812442 2011-02-18 04:35:46
3 1 22 52428800 1 NO CURRENT 830344 2011-02-19 03:17:23
17、v$thread
显示重做线程的详细信息
05:50:52 SQL> col instance for a10
05:50:54 SQL> select thread#,status,groups,instance,sequence#
05:51:15 2 from v$thread;
THREAD# STATUS GROUPS INSTANCE SEQUENCE#
---------- ------ ---------- ---------- ----------
1 OPEN 3 orcl 22
18、v$lock
用于显示锁信息。
05:52:17 SQL> col username for a10
05:52:19 SQL> col machine for a25
05:52:26 SQL> select a.username,a.machine,b.lmode,b.request
05:52:47 2 from v$session a,v$lock b
05:53:00 3 where a.sid=b.sid and a.type='USER';
no rows selected
19、v$locked_object
显示被加锁的数据库对象
05:54:39 SQL> col oracle_username for a20
05:54:41 SQL> col object for a20
05:54:48 SQL> select a.oracle_username,b.owner||'.'||b.object_name object
05:55:15 2 from v$locked_object a ,dba_objects b
05:55:33 3 where a.object_id=b.object_id;
no rows selected
20、v$rollname 和 v$rollstat
v$rollname 显示处于online状态的undo 段
v$rollstat显示undo段的统计信息
05:57:28 SQL> select a.name,b.xacts from v$rollname a,v$rollstat b
05:57:30 2 where a.usn=b.usn;
NAME XACTS
-------------------------------------------------- ----------
SYSTEM 0
_SYSSMU1$ 0
_SYSSMU2$ 0
_SYSSMU3$ 0
_SYSSMU4$ 0
_SYSSMU5$ 0
_SYSSMU6$ 0
_SYSSMU7$ 0
_SYSSMU8$ 0
_SYSSMU9$ 0
_SYSSMU10$ 0
11 rows selected.
21、v$tablespace
显示表空间信息
05:58:37 SQL> select * from v$tablespace;
TS# NAME INC BIG FLA ENC
---------- -------------------------------------------------- --- --- --- ---
0 SYSTEM YES NO YES
1 UNDOTBS1 YES NO YES
2 SYSAUX YES NO YES
4 USERS YES NO YES
3 TEMP NO NO YES
6 EXAMPLE YES NO YES
6 rows selected.
22、v$tempfile
显示当前数据所包含的临时文件
05:59:37 SQL> select name from v$tempfile;
NAME
--------------------------------------------------
/u01/app/oracle/oradata/orcl/temp01.dbf