参数db_recovery_file_dest,log_archive_dest,log_archive_dest_n

今天看了下 oracle归档相关的三个参数(db_recovery_file_dest,log_archive_dest,log_archive_dest_n ),也做了下实验,体会了一下三个参数的区别,就将相关的内容记录下来。

下面对三个参数进行简单的说明:

DB_RECOVERY_FILE_DEST:指定闪回恢复区路径,默认的归档日志存放于DB_RECOVERY_FILE_DEST指定的闪回恢复区中;

LOG_ARCHIVE_DEST:指定归档文件存放的路径,该路径只能是本地磁盘,默认为’’;

LOG_ARCHIVE_DEST_n:默认值为’’。Oracle最多支持把日志文件归档到31个地方,n从1到31(好像oracle 10g是10个地方)。归档地址可以为本地磁盘,或者网络设备。


查看oracle的版本 及 是否归档

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE	11.2.0.3.0	Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

SQL> archive log list;
Database log mode	       Archive Mode
Automatic archival	       Enabled
Archive destination	       USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     98
Next log sequence to archive   100
Current log sequence	       100

查看参数 db_recovery_file_dest

SQL> show parameter db_recovery;

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest		     string	 /u01/app/fast_recovery_area
db_recovery_file_dest_size	     big integer 4122M

查看参数 log_archive_dest,log_archive_dest_n

SQL> show parameter log_archive

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
log_archive_config		     string
log_archive_dest		     string
log_archive_dest_1		     string
log_archive_dest_10		     string
log_archive_dest_11		     string
log_archive_dest_12		     string
log_archive_dest_13		     string
log_archive_dest_14		     string
log_archive_dest_15		     string
log_archive_dest_16		     string
log_archive_dest_17		     string

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_18		     string
log_archive_dest_19		     string
log_archive_dest_2		     string
log_archive_dest_20		     string
log_archive_dest_21		     string
log_archive_dest_22		     string
log_archive_dest_23		     string
log_archive_dest_24		     string
log_archive_dest_25		     string
log_archive_dest_26		     string
log_archive_dest_27		     string

NAME				     TYPE	 VALUE
------------------------------------ --------

你可能感兴趣的:(ORACLE,11g)