19.表空间和数据文件检查 1)数据文件
SQL> col file_name for a56 SQL> set linesize 300 SQL> select file_id,file_name,tablespace_name,autoextensible from dba_data_files; select count(*) from v$datafile; FILE_ID FILE_NAME TABLESPACE_NAME AUT ---------- -------------------------------------------------------- --------------- --- 4 +DATA/db/datafile/users.259.776365283 USERS YES 3 +DATA/db/datafile/undotbs1.258.776365283 UNDOTBS1 YES 2 +DATA/db/datafile/sysaux.257.776365283 SYSAUX YES 1 +DATA/db/datafile/system.256.776365281 SYSTEM YES 5 +DATA/db/datafile/undotbs2.264.776365753 UNDOTBS2 YES
SQL> show parameter db_files;
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_files integer 200
SQL> select name from v$datafile 2 ;
NAME -------------------------------------------------------------------------------- +DATA/db/datafile/system.256.776365281 +DATA/db/datafile/sysaux.257.776365283 +DATA/db/datafile/undotbs1.258.776365283 +DATA/db/datafile/users.259.776365283 +DATA/db/datafile/undotbs2.264.776365753
SQL> select member from v$logfile 2 ;
MEMBER -------------------------------------------------------------------------------- +DATA/db/onlinelog/group_2.262.776365501 +ARCH/db/onlinelog/group_2.258.776365505 +DATA/db/onlinelog/group_1.261.776365493 +ARCH/db/onlinelog/group_1.257.776365499 +DATA/db/onlinelog/group_3.265.776365887 +ARCH/db/onlinelog/group_3.259.776365889 +DATA/db/onlinelog/group_4.266.776365891 +ARCH/db/onlinelog/group_4.260.776365903
8 rows selected.
SQL> select name from v$controlfile 2 ;
NAME -------------------------------------------------------------------------------- +DATA/db/controlfile/current.260.776365491 +ARCH/db/controlfile/current.256.776365491
SQL> select name from v$tempfile;
NAME -------------------------------------------------------------------------------- +DATA/db/tempfile/temp.263.776365543
SQL> col name for a20 SQL> SELECT file#, ts#, NAME, status, BYTES / 1024 / 1024 size_mb FROM v$datafile UNION ALL SELECT file#, ts#, NAME, status, BYTES / 1024 / 1024 size_mb FROM v$tempfile;
FILE# TS# NAME STATUS SIZE_MB ---------- ---------- -------------------- ------- ---------- 1 0 +DATA/db/datafile/sy SYSTEM 680 stem.256.776365281
2 1 +DATA/db/datafile/sy ONLINE 570 saux.257.776365283
3 2 +DATA/db/datafile/un ONLINE 95 dotbs1.258.776365283
4 4 +DATA/db/datafile/us ONLINE 5 ers.259.776365283
FILE# TS# NAME STATUS SIZE_MB ---------- ---------- -------------------- ------- ----------
5 5 +DATA/db/datafile/un ONLINE 25 dotbs2.264.776365753
1 3 +DATA/db/tempfile/te ONLINE 32 mp.263.776365543
6 rows selected.
|