oracle参数文件、控制文件、数据文件、日志文件存放位置查看
2021-04-06 22:54:09
310
1.参数文件和网络连接文件
SQL> show parameter spfile;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /u01/app/oracle/product/11.2.0/dbhome_2/dbs/spfiledemo.ora
其他参数文件也同样位于$ORACLE_HOME/dbs目录中;
网络连接文件位于$ORACLE_HOME/network/admin目录中;
2.控制文件
SQL> select * from v$controlfile;
STATUS NAME IS_RECOVERY_DEST_FILE BLOCK_SIZE FILE_SIZE_BLKS
------- -------------------------------------------------------------------------------- --------------------- ---------- --------------
/u01/app/oracle/oradata/demo/control01.ctl NO 16384 594
/u01/app/oracle/flash_recovery_area/demo/control02.ctl NO 16384 594
3.数据文件
SQL> select FILE_NAME from dba_data_files;
FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/demo/users01.dbf
/u01/app/oracle/oradata/demo/undotbs01.dbf
/u01/app/oracle/oradata/demo/sysaux01.dbf
/u01/app/oracle/oradata/demo/system01.dbf
/u01/app/oracle/oradata/demo/ivantable.dbf
4.日志文件
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_RECOVERY_DEST_FILE
---------- ------- ------- -------------------------------------------------------------------------------- ---------------------
3 ONLINE /u01/app/oracle/oradata/demo/redo03.log NO
2 ONLINE /u01/app/oracle/oradata/demo/redo02.log NO
1 ONLINE /u01/app/oracle/oradata/demo/redo01.log NO