LOG_ARCHIVE_DEST
is applicable only if we are running the database in ARCHIVELOG mode. LOG_ARCHIVE_DEST parameter are used to specified the archiving location. The Location specified by log_archive_dest must be local . We choose to archive only two local location i.e, primary and a secondary destination ( using LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST ) .
LOG_ARCHIVE_DEST_n
initialization parameter defines up to ten (where n = 1, 2, … 10) destinations in oracle 10gand thirty one (n=1,2….31) destination in oracle 11g , each of which must specify either the LOCATION or the SERVICE attribute to specify where to archive the redo data. All other attributes are optional.We set the attributes for the LOG_ARCHIVE_DEST_n initialization parameter to control different aspects of how redo transport services transfer redo data from a production or primary database destination to another (standby) database destination.For every LOG_ARCHIVE_DEST_n initialization parameter that we define, we must specify corresponding LOG_ARCHIVE_DEST_STATE_n parameter. The LOG_ARCHIVE_DEST_STATE_n (where n is an integer from 1 to 10) initialization parameter specifies whether the corresponding destination is currently enabled or disabled.
LOG_ARCHIVE_FORMAT
Syntax : LOG_ARCHIVE_FORMAT = ‘log%t_%s_%r.arc’
is applicable only if you are using the redo log in ARCHIVELOG
mode. Use a text string and variables to specify the default filename format when archiving redo log files. The string generated from this format is appended to the string specified in the LOG_ARCHIVE_DEST
parameter.
The following variables can be used in the format:
%s
log sequence number
%S
log sequence number, zero filled
%t
thread number
%T
thread number, zero filled
%a
activation ID
%d
database ID
%r
resetlogs ID that ensures unique names are constructed for the archived log files across multiple incarnations of the database.
Reference Document :
1-Oracle Log_Archive_log Documentation.
2-Oracle Log_arcchive_Dest
Like this:
Like Loading...
Related
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa