Managing Archived Redo Logs

goldengate 故障及解决方法汇总 1.数据库thread与sid不对应问题描述:GGS ERROR  500  抽取进程extu1起不来,提示找不到thread2的归档(没有保留哪天具体的报错信息)问题分析:rac数据库曾经删除又重建一个节点,故thread2对应的实例已经没有了,更没有它的归档了(之前是将该实例 阅读详情
导读:
   See Also :
  Part III, " Automated File and Storage Management "for information about creating an archived redo log that is both created and managed by the Oracle Database server
  Oracle Real Application Clusters Administrator's Guidefor information specific to archiving in the Oracle Real Application Clusters environment
   What Is the Archived Redo Log?
  Oracle Database lets you save filled groups of redo log files to one or more offline destinations, known collectively as the archived redo log, or more simply the archive log. The process of turning redo log files into archived redo log files is called archiving. This process is only possible if the database is running in ARCHIVELOG mode. You can choose automatic or manual archiving.
  An archived redo log file is a copy of one of the filled members of a redo log group. It includes the redo entries and the unique log sequence number of the identical member of the redo log group. For example, if you are multiplexing your redo log, and if group 1 contains identical member files a_log1and b_log1, then the archiver process (ARCn) will archive one of these member files. Should a_log1become corrupted, then ARCncan still archive the identical b_log1. The archived redo log contains a copy of every group created since you enabled archiving.
  When the database is running in ARCHIVELOGmode, the log writer process (LGWR) cannot reuse and hence overwrite a redo log group until it has been archived. The background process ARCnautomates archiving operations when automatic archiving is enabled. The database starts multiple archiver processes as needed to ensure that the archiving of filled redo logs does not fall behind.
  You can use archived redo logs to:
  Recover a database
  Update a standby database
  Get information about the history of a database using the LogMiner utility
   See Also:
  The following sources document the uses for archived redo logs:
  Oracle Data Guard Concepts and Administrationdiscusses setting up and maintaining a standby database
  Oracle Database Utilitiescontains instructions for using the LogMiner PL/SQL package
   Choosing Between NOARCHIVELOG and ARCHIVELOG Mode
  This section describes the issues you must consider when choosing to run your database in NOARCHIVELOGor ARCHIVELOGmode, and contains these topics:
  The choice of whether to enable the archiving of filled groups of redo log files depends on the availability and reliability requirements of the application running on the database. If you cannot afford to lose any data in your database in the event of a disk failure, use ARCHIVELOGmode. The archiving of filled redo log files can require you to perform extra administrative operations.
   Running a Database in NOARCHIVELOG Mode
  When you run your database in NOARCHIVELOGmode, you disable the archiving of the redo log. The database control file indicates that filled groups are not required to be archived. Therefore, when a filled group becomes inactive after a log switch, the group is available for reuse by LGWR.
  NOARCHIVELOGmode protects a database from instance failure but not from media failure. Only the most recent changes made to the database, which are stored in the online redo log groups, are available for instance recovery. If a media failure occurs while the database is in NOARCHIVELOGmode, you can only restore the database to the point of the most recent full database backup. You cannot recover transactions subsequent to that backup.
  In NOARCHIVELOGmode you cannot perform online tablespace backups, nor can you use online tablespace backups taken earlier while the database was in ARCHIVELOGmode. To restore a database operating in NOARCHIVELOGmode, you can use only whole database backups taken while the database is closed. Therefore, if you decide to operate a database in NOARCHIVELOGmode, take whole database backups at regular, frequent intervals.
   Running a Database in ARCHIVELOG Mode
  When you run a database in ARCHIVELOGmode, you enable the archiving of the redo log. The database control file indicates that a group of filled redo log files cannot be reused by LGWR until the group is archived. A filled group becomes available for archiving immediately after a redo log switch occurs.
  The archiving of filled groups has these advantages:
  A database backup, together with online and archived redo log files, guarantees that you can recover all committed transactions in the event of an operating system or disk failure.
  If you keep an archived log, you can use a backup taken while the database is open and in normal system use.
  You can keep a standby database current with its original database by continuously applying the original archived redo logs to the standby.
  You can configure an instance to archive filled redo log files automatically, or you can archive manually. For convenience and efficiency, automatic archiving is usually best. Figure 7-1illustrates how the archiver process (ARC0 in this illustration) writes filled redo log files to the database archived redo log.
  If all databases in a distributed database operate in ARCHIVELOGmode, you can perform coordinated distributed database recovery. However, if any database in a distributed database is in NOARCHIVELOGmode, recovery of a global distributed database (to make all databases consistent) is limited by the last full backup of any database operating in NOARCHIVELOGmode.
   Figure 7-1 Redo Log File Use in ARCHIVELOG Mode
  
  
  Description of the illustration admin056.gif
   Controlling Archiving
  This section describes how to set the archiving mode of the database and how to control the archiving process. The following topics are discussed:
   See Also:
  your Oracle operating system specific documentation for additional information on controlling archiving modes
   Setting the Initial Database Archiving Mode
  You set the initial archiving mode as part of database creation in the CREATE DATABASEstatement. Usually, you can use the default of NOARCHIVELOGmode at database creation because there is no need to archive the redo information generated by that process. After creating the database, decide whether to change the initial archiving mode.
  If you specify ARCHIVELOGmode, you must have initialization parameters set that specify the destinations for the archive log files (see "Specifying Archive Destinations").
   Changing the Database Archiving Mode
  To change the archiving mode of the database, use the ALTER DATABASEstatement with the ARCHIVELOGor NOARCHIVELOGclause. To change the archiving mode, you must be connected to the database with administrator privileges (AS SYSDBA).
  The following steps switch the database archiving mode from NOARCHIVELOGto ARCHIVELOG:
  Shut down the database instance.
  SHUTDOWN

  An open database must first be closed and any associated instances shut down before you can switch the database archiving mode. You cannot change the mode from ARCHIVELOGto NOARCHIVELOGif any datafiles need media recovery.
  Back up the database.
  Before making any major change to a database, always back up the database to protect against any problems. This will be your final backup of the database in NOARCHIVELOGmode and can be used if something goes wrong during the change to ARCHIVELOGmode. See Oracle Database Backup and Recovery Basicsfor information about taking database backups.
  Edit the initialization parameter file to include the initialization parameters that specify the destinations for the archive log files (see "Specifying Archive Destinations").
  Start a new instance and mount, but do not open, the database.
  STARTUP MOUNT

  To enable or disable archiving, the database must be mounted but not open.
  Change the database archiving mode. Then open the database for normal operations.
  ALTER DATABASE ARCHIVELOG;
ALTER DATABASE OPEN;

  Shut down the database.
  SHUTDOWN IMMEDIATE

  Back up the database.
  Changing the database archiving mode updates the control file. After changing the database archiving mode, you must back up all of your database files and control file.
Any previous backup is no longer usable because it was taken in NOARCHIVELOGmode.
   See Also:
  Oracle Real Application Clusters Administrator's Guidefor more information about switching the archiving mode when using Real Application Clusters
   Performing Manual Archiving
  To operate your database in manual archiving mode, follow the procedure shown in "Changing the Database Archiving Mode ". However, when you specify the new mode in step 5, use the following statement:
  ALTER DATABASE ARCHIVELOG MANUAL;

  When you operate your database in manual ARCHIVELOGmode, you must archive inactive groups of filled redo log files or your database operation can be temporarily suspended. To archive a filled redo log group manually, connect with administrator privileges. Ensure that the database is mounted but not open. Use the ALTER SYSTEMstatement with the ARCHIVE LOGclause to manually archive filled redo log files. The following statement archives all unarchived log files:
  ALTER SYSTEM ARCHIVE LOG ALL;

  When you use manual archiving mode, you cannot specify any standby databases in the archiving destinations.
  Even when automatic archiving is enabled, you can use manual archiving for such actions as rearchiving an inactive group of filled redo log members to another location. In this case, it is possible for the instance to reuse the redo log group before you have finished manually archiving, and thereby overwrite the files. If this happens, the database writes an error message to the alert file.
   Adjusting the Number of Archiver Processes
  The LOG_ARCHIVE_MAX_PROCESSESinitialization parameter specifies the number of ARCnprocesses that the database initially invokes. The default is two processes. There is usually no need specify this initialization parameter or to change its default value, because the database starts additional archiver processes (ARCn) as needed to ensure that the automatic processing of filled redo log files does not fall behind.
  However, to avoid any runtime overhead of invoking additional ARCnprocesses, you can set the LOG_ARCHIVE_MAX_PROCESSESinitialization parameter to specify up to ten ARCnprocesses to be started at instance startup. The LOG_ARCHIVE_MAX_PROCESSESparameter is dynamic, and can be changed using the ALTER SYSTEMstatement. The database must be mounted but not open. The following statement increases (or decreases) the number of ARCnprocesses currently running:
  ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES=3;

   Specifying the Archive Destination
  Before you can archive redo logs, you must determine the destination to which you will archive and familiarize yourself with the various destination states. The dynamic performance (V$) views, listed in "Viewing Information About the Archived Redo Log", provide all needed archive information.
  The following topics are contained in this section:
   Specifying Archive Destinations
  You can choose whether to archive redo logs to a single destination or multiplexthem. If you want to archive only to a single destination, you specify that destination in the LOG_ARCHIVE_DESTinitialization parameter. If you want to multiplex the archived logs, you can choose whether to archive to up to ten locations (using the LOG_ARCHIVE_DEST_nparameters) or to archive only to a primary and secondary destination (using LOG_ARCHIVE_DESTand LOG_ARCHIVE_DUPLEX_DEST). The following table summarizes the multiplexing alternatives, which are further described in the sections that follow.
  


































MethodInitialization ParameterHostExample
1LOG_ARCHIVE_DEST_n

where:



n is an integer from 1 to 10

Local or remoteLOG_ARCHIVE_DEST_1 = 'LOCATION=/disk1/arc'

LOG_ARCHIVE_DEST_2 = 'SERVICE=standby1'

2LOG_ARCHIVE_DEST and

LOG_ARCHIVE_DUPLEX_DEST

Local onlyLOG_ARCHIVE_DEST = '/disk1/arc'

LOG_ARCHIVE_DUPLEX_DEST = '/disk2/arc'


   See Also:
  Oracle Database Referencefor additional information about the initialization parameters used to control the archiving of redo logs
  Oracle Data Guard Concepts and Administrationfor information about using the LOG_ARCHIVE_DEST_ninitialization parameter for specifying a standby destination. There are additional keywords that can be specified with this initialization parameter that are not discussed in this book.
   Method 1: Using the LOG_ARCHIVE_DEST_ n Parameter
  Use the LOG_ARCHIVE_DEST_nparameter (where nis an integer from 1 to 10) to specify from one to ten different destinations for archival. Each numerically suffixed parameter uniquely identifies an individual destination.
  You specify the location for LOG_ARCHIVE_DEST_nusing the keywords explained in the following table:
  




























KeywordIndicatesExample
LOCATIONA local file system location.LOG_ARCHIVE_DEST_1 = 'LOCATION=/disk1/arc'
SERVICERemote archival through Oracle Net service name.LOG_ARCHIVE_DEST_2 = 'SERVICE=standby1'

  If you use the LOCATIONkeyword, specify a valid path name for your operating system. If you specify SERVICE, the database translates the net service name through the tnsnames.orafile to a connect descriptor. The descriptor contains the information necessary for connecting to the remote database. The service name must have an associated database SID, so that the database correctly updates the log history of the control file for the standby database.
  Perform the following steps to set the destination for archived redo logs using the LOG_ARCHIVE_DEST_ninitialization parameter:
  Use SQL*Plus to shut down the database.
  SHUTDOWN

  Set the LOG_ARCHIVE_DEST_ninitialization parameter to specify from one to ten archiving locations. The LOCATIONkeyword specifies an operating system specific path name. For example, enter:
  LOG_ARCHIVE_DEST_1 = 'LOCATION = /disk1/archive'
LOG_ARCHIVE_DEST_2 = 'LOCATION = /disk2/archive'
LOG_ARCHIVE_DEST_3 = 'LOCATION = /disk3/archive'

  If you are archiving to a standby database, use the SERVICEkeyword to specify a valid net service name from the tnsnames.orafile. For example, enter:
  LOG_ARCHIVE_DEST_4 = 'SERVICE = standby1'

  Optionally, set the LOG_ARCHIVE_FORMATinitialization parameter, using %tto include the thread number as part of the file name, %sto include the log sequence number, and %rto include the resetlogs ID (a timestamp value represented in ub4). Use capital letters (%T, %S, and %R) to pad the file name to the left with zeroes.
   Note:
  If the COMPATIBLEinitialization parameter is set to 10.0 or higher, the database requires the specification of resetlogs ID (%r) when you include the LOG_ARCHIVE_FORMATparameter. The default for this parameter is operating system dependent. For example, this is the default format for UNIX:
  LOG_ARCHIVE_FORMAT=%t_%s_%r.dbf
  The incarnation of a database changes when you open it with the RESETLOGSoption. Specifying %rcauses the database to capture the resetlogs ID in the archive log file name, enabling you to more easily perform recovery from a backup of a previous database incarnation. See Oracle Database Backup and Recovery Advanced User's Guidefor more information about this method of recovery.
  The following example shows a setting of LOG_ARCHIVE_FORMAT:
  LOG_ARCHIVE_FORMAT = arch_%t_%s_%r.arc

  This setting will generate archived logs as follows for thread 1; log sequence numbers 100, 101, and 102; resetlogs ID 509210197. The identical resetlogs ID indicates that the files are all from the same database incarnation:
  /disk1/archive/arch_1_100_509210197.arc,
/disk1/archive/arch_1_101_509210197.arc,
/disk1/archive/arch_1_102_509210197.arc
/disk2/archive/arch_1_100_509210197.arc,
/disk2/archive/arch_1_101_509210197.arc,
/disk2/archive/arch_1_102_509210197.arc
/disk3/archive/arch_1_100_509210197.arc,
/disk3/archive/arch_1_101_509210197.arc,
/disk3/archive/arch_1_102_509210197.arc

   Method 2: Using LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST
  To specify a maximum of two locations, use the LOG_ARCHIVE_DESTparameter to specify a primary archive destination and the LOG_ARCHIVE_DUPLEX_DESTto specify an optional secondary archive destination. All locations must be local. Whenever the database archives a redo log, it archives it to every destination specified by either set of parameters.
  Perform the following steps the use method 2:
  Use SQL*Plus to shut down the database.
  SHUTDOWN

  Specify destinations for the LOG_ARCHIVE_DESTand LOG_ARCHIVE_DUPLEX_DESTparameter (you can also specify LOG_ARCHIVE_DUPLEX_DESTdynamically using the ALTER SYSTEMstatement). For example, enter:
  LOG_ARCHIVE_DEST = '/disk1/archive'
LOG_ARCHIVE_DUPLEX_DEST = '/disk2/archive'

  Set the LOG_ARCHIVE_FORMATinitialization parameter as described in step 3for method 1.
   Understanding Archive Destination Status
  Each archive destination has the following variable characteristics that determine its status:
   Valid/Invalid: indicates whether the disk location or service name information is specified and valid
   Enabled/Disabled: indicates the availability state of the location and whether the database can use the destination
   Active/Inactive: indicates whether there was a problem accessing the destination
  Several combinations of these characteristics are possible. To obtain the current status and other information about each destination for an instance, query the V$ARCHIVE_DESTview.
  The characteristics determining a locations status that appear in the view are shown in Table 7-1. Note that for a destination to be used, its characteristics must be valid, enabled, and active.
   Table 7-1 Destination Status
  








































































































STATUSCharacteristicsMeaning
ValidEnabledActive
VALIDTrueTrueTrueThe user has properly initialized the destination, which is available for archiving.
INACTIVEFalsen/an/aThe user has not provided or has deleted the destination information.
ERRORTrueTrueFalseAn error occurred creating or writing to the destination file; refer to error data.
FULLTrueTrueFalseDestination is full (no disk space).
DEFERREDTrueFalseTrueThe user manually and temporarily disabled the destination.
DISABLEDTrueFalseFalseThe user manually and temporarily disabled the destination following an error; refer to error data.
BAD PARAMn/an/an/aA parameter error occurred; refer to error data.

  The LOG_ARCHIVE_DEST_STATE_n(where nis an integer from 1 to 10) initialization parameter lets you control the availability state of the specified destination (n).
  ENABLEindicates that the database can use the destination.
  DEFERindicates that the location is temporarily disabled.
  ALTERNATEindicates that the destination is an alternate.
  The availability state of the destination is DEFER, unless there is a failure of its parent destination, in which case its state becomes ENABLE.
   Specifying the Mode of Log Transmission
  The two modes of transmitting archived logs to their destination are normal archiving transmissionand standby transmissionmode. Normal transmission involves transmitting files to a local disk. Standby transmission involves transmitting files through a network to either a local or remote standby database.
   Normal Transmission Mode
  In normal transmission mode, the archiving destination is another disk drive of the database server. In this configuration archiving does not contend with other files required by the instance and can complete more quickly. Specify the destination with either the LOG_ARCHIVE_DEST_nor LOG_ARCHIVE_DESTparameters.
  It is good practice to move archived redo log files and corresponding database backups from the local disk to permanent inexpensive offline storage media such as tape. A primary value of archived logs is database recovery, so you want to ensure that these logs are safe should disaster strike your primary database.
   Standby Transmission Mode
  In standby transmission mode, the archiving destination is either a local or remote standby database.
   Caution:
  You can maintain a standby database on a local disk, but Oracle strongly encourages you to maximize disaster protection by maintaining your standby database at a remote site.
  If you are operating your standby database in managed recovery mode, you can keep your standby database synchronized with your source database by automatically applying transmitted archive logs.
  To transmit files successfully to a standby database, either ARCnor a server process must do the following:
  Recognize a remote location
  Transmit the archived logs in conjunction with a remote file server(RFS) process that resides on the remote server
  Each ARCnprocess has a corresponding RFS for each standby destination. For example, if three ARCnprocesses are archiving to two standby databases, then Oracle Database establishes six RFS connections.
  You transmit archived logs through a network to a remote location by using Oracle Net Services. Indicate a remote archival by specifying a Oracle Net service name as an attribute of the destination. Oracle Database then translates the service name, through the tnsnames.orafile, to a connect descriptor. The descriptor contains the information necessary for connecting to the remote database. The service name must have an associated database SID, so that the database correctly updates the log history of the control file for the standby database.
  The RFS process, which runs on the destination node, acts as a network server to the ARCnclient. Essentially, ARCnpushes information to RFS, which transmits it to the standby database.
  The RFS process, which is required when archiving to a remote destination, is responsible for the following tasks:
  Consuming network I/O from the ARCnprocess
  Creating file names on the standby database by using the STANDBY_ARCHIVE_DESTparameter
  Populating the log files at the remote site
  Updating the standby database control file (which Recovery Manager can then use for recovery)
  Archived redo logs are integral to maintaining a standby database, which is an exact replica of a database. You can operate your database in standby archiving mode, which automatically updates a standby database with archived redo logs from the original database.
   See Also:
  Oracle Net Services Administrator's Guidefor information about connecting to a remote database using a service name
   Managing Archive Destination Failure
  Sometimes archive destinations can fail, causing problems when you operate in automatic archiving mode. Oracle Database provides procedures to help you minimize the problems associated with destination failure. These procedures are discussed in the sections that follow:
   Specifying the Minimum Number of Successful Destinations
  The optional initialization parameterLOG_ARCHIVE_MIN_SUCCEED_DEST=ndetermines the minimum number of destinations to which the database must successfully archive a redo log group before it can reuse online log files. The default value is 1. Valid values for nare 1 to 2 if you are using duplexing, or 1 to 10 if you are multiplexing.
   Specifying Mandatory and Optional Destinations
  The LOG_ARCHIVE_DEST_nparameter lets you specify whether a destination is OPTIONAL(the default) or MANDATORY. The LOG_ARCHIVE_MIN_SUCCEED_DEST=nparameter uses all MANDATORYdestinations plus some number of nonstandby OPTIONALdestinations to determine whether LGWR can overwrite the online log. The following rules apply:
  Omitting the MANDATORYattribute for a destination is the same as specifying OPTIONAL.
  You must have at least one local destination, which you can declare OPTIONALor MANDATORY.
  When you specify a value for LOG_ARCHIVE_MIN_SUCCEED_DEST=n, Oracle Database will treat at least one local destination as MANDATORY, because the minimum value for LOG_ARCHIVE_MIN_SUCCEED_DESTis 1.
  If any MANDATORYdestination fails, including a MANDATORYstandby destination, Oracle Database ignores the LOG_ARCHIVE_MIN_SUCCEED_DESTparameter.
  The LOG_ARCHIVE_MIN_SUCCEED_DESTvalue cannot be greater than the number of destinations, nor can it be greater than the number of MANDATORYdestinations plus the number of OPTIONALlocal destinations.
  If you DEFERa MANDATORYdestination, and the database overwrites the online log without transferring the archived log to the standby site, then you must transfer the log to the standby manually.
  If you are duplexing the archived logs, you can establish which destinations are mandatory or optional by using the LOG_ARCHIVE_DESTand LOG_ARCHIVE_DUPLEX_DESTparameters. The following rules apply:
  Any destination declared by LOG_ARCHIVE_DESTis mandatory.
  Any destination declared by LOG_ARCHIVE_DUPLEX_DESTis optional if LOG_ARCHIVE_MIN_SUCCEED_DEST = 1and mandatory if LOG_ARCHIVE_MIN_SUCCEED_DEST = 2.
   Specifying the Number of Successful Destinations: Scenarios
  You can see the relationship between the LOG_ARCHIVE_DEST_nand LOG_ARCHIVE_MIN_SUCCEED_DESTparameters most easily through sample scenarios.
   Scenario for Archiving to Optional Local Destinations
  In this scenario, you archive to three local destinations, each of which you declare as OPTIONAL. Table 7-2illustrates the possible values for LOG_ARCHIVE_MIN_SUCCEED_DEST=nin this case.
   Table 7-2 LOG_ARCHIVE_MIN_SUCCEED_DEST Values for Scenario 1
  


































ValueMeaning
1The database can reuse log files only if at least one of the OPTIONAL destinations succeeds.
2The database can reuse log files only if at least two of the OPTIONAL destinations succeed.
3The database can reuse log files only if all of the OPTIONAL destinations succeed.
4 or greaterERROR: The value is greater than the number of destinations.

  This scenario shows that even though you do not explicitly set any of your destinations to MANDATORYusing the LOG_ARCHIVE_DEST_nparameter, the database must successfully archive to one or more of these locations when LOG_ARCHIVE_MIN_SUCCEED_DESTis set to 1, 2, or 3.
   Scenario for Archiving to Both Mandatory and Optional Destinations
  Consider a case in which:
  You specify two MANDATORYdestinations.
  You specify two OPTIONALdestinations.
  No destination is a standby database.
  Table 7-3shows the possible values for LOG_ARCHIVE_MIN_SUCCEED_DEST=n.
   Table 7-3 LOG_ARCHIVE_MIN_SUCCEED_DEST Values for Scenario 2
  








































ValueMeaning
1The database ignores the value and uses the number of MANDATORY destinations (in this example, 2).
2The database can reuse log files even if no OPTIONAL destination succeeds.
3The database can reuse logs only if at least one OPTIONAL destination succeeds.
4The database can reuse logs only if both OPTIONAL destinations succeed.
5 or greaterERROR: The value is greater than the number of destinations.

  This case shows that the database must archive to the destinations you specify as MANDATORY, regardless of whether you set LOG_ARCHIVE_MIN_SUCCEED_DESTto archive to a smaller number of destinations.
   Rearchiving to a Failed Destination
  Use the REOPENattribute of the LOG_ARCHIVE_DEST_nparameter to specify whether and when ARCnshould attempt to rearchive to a failed destination following an error. REOPENapplies to all errors, not just OPENerrors.
  REOPEN=nsets the minimum number of seconds before ARCnshould try to reopen a failed destination. The default value for nis 300 seconds. A value of 0 is the same as turning off the REOPENattribute; ARCnwill not attempt to archive after a failure. If you do not specify the REOPENkeyword, ARCnwill never reopen a destination following an error.
  You cannot use REOPENto specify the number of attempts ARCnshould make to reconnect and transfer archived logs. The REOPENattempt either succeeds or fails.
  When you specify REOPENfor an OPTIONALdestination, the database can overwrite online logs if there is an error. If you specify REOPENfor a MANDATORYdestination, the database stalls the production database when it cannot successfully archive. In this situation, consider the following options:
  Archive manually to the failed destination.
  Change the destination by deferring the destination, specifying the destination as optional, or changing the service.
  Drop the destination.
  When using the REOPENkeyword, note the following:
  ARCnreopens a destination only when startingan archive operation from the beginning of the log file, never duringa current operation. ARCnalways retries the log copy from the beginning.
  If you specified REOPEN, either with a specified time the default, ARCnchecks to see whether the time of the recorded error plus the REOPENinterval is less than the current time. If it is, ARCnretries the log copy.
  The REOPENclause successfully affects the ACTIVE=TRUEdestination state. The VALIDand ENABLEDstates are not changed.
   Controlling Trace Output Generated by the Archivelog Process
  Background processes always write to a trace file when appropriate. (See the discussion of this topic in "Monitoring the Database Using Trace Files and the Alert File".) In the case of the archivelog process, you can control the output that is generated to the trace file. You do this by setting the LOG_ARCHIVE_TRACEinitialization parameter to specify a trace level. The following values can be specified:
  






























































































Trace LevelMeaning
0Disable archivelog tracing. This is the default.
1Track archival of redo log file.
2Track archival status for each archivelog destination.
4Track archival operational phase.
8Track archivelog destination activity.
16Track detailed archivelog destination activity.
32Track archivelog destination parameter modifications.
64Track ARCn process state activity.
128Track FAL (fetch archived log) server related activities.
256Supported in a future release.
512Tracks asynchronous LGWR activity.
1024RFS physical client tracking.
2048ARCn/RFS heartbeat tracking.
4096Track real-time apply

  You can combine tracing levels by specifying a value equal to the sum of the individual levels that you would like to trace. For example, setting LOG_ARCHIVE_TRACE=12, will generate trace level 8 and 4 output. You can set different values for the primary and any standby database.
  The default value for the LOG_ARCHIVE_TRACEparameter is 0. At this level, the archivelog process generates appropriate alert and trace entries for error conditions.
  You can change the value of this parameter dynamically using the ALTER SYSTEMstatement. The database must be mounted but not open. For example:
  ALTER SYSTEM SET LOG_ARCHIVE_TRACE=12;

  Changes initiated in this manner will take effect at the start of the next archiving operation.
   See Also:
  Oracle Data Guard Concepts and Administrationfor information about using this parameter with a standby database
   Viewing Information About the Archived Redo Log
  You can display information about the archived redo logs using the following sources:
   Dynamic Performance Views
  Several dynamic performance views contain useful information about archived redo logs, as summarized in the following table.
  




















































Dynamic Performance ViewDescription
V$DATABASEIdentifies whether the database is in ARCHIVELOG or NOARCHIVELOG mode and whether MANUAL (archiving mode) has been specified.
V$ARCHIVED_LOGDisplays historical archived log information from the control file. If you use a recovery catalog, the RC_ARCHIVED_LOG view contains similar information.
V$ARCHIVE_DESTDescribes the current instance, all archive destinations, and the current value, mode, and status of these destinations.
V$ARCHIVE_PROCESSESDisplays information about the state of the various archive processes for an instance.
V$BACKUP_REDOLOGContains information about any backups of archived logs. If you use a recovery catalog, the RC_BACKUP_REDOLOG contains similar information.
V$LOGDisplays all redo log groups for the database and indicates which need to be archived.
V$LOG_HISTORYContains log history information such as which logs have been archived and the SCN range for each archived log.

  For example, the following query displays which redo log group requires archiving:
  SELECT GROUP#, ARCHIVED
FROM SYS.V$LOG;
GROUP# ARC
-------- ---
1 YES
2 NO

  To see the current archiving mode, query the V$DATABASEview:

本文转自
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/archredo.htm
CAN通信:EB中配置CAN驱动,配置参数解析 以S32K314芯片说明,其他芯片不同,参数配置也有差异。 阅读详情

相关推荐

STM32铅酸蓄电池内阻测试仪的交流阻抗测量与数据采集优化

本文深入探讨了基于STM32的铅酸蓄电池内阻测试仪设计,重点解析了交流阻抗测量原理与数据采集优化方案。通过采用1kHz交流小信号注入和数字相敏检波技术,实现对电池欧姆内阻的无损精准测量,并详细介绍了硬件前端调理、ADC过采样及系统标定等关键优化手段,有效提升了测量精度与稳定性。

weixin_29168393的博客 487

OGG - No Valid Default Archive Destination Directory Found for Thread #

Basically GG keeps a pointer to the oldest open transaction in the redo/archive logs -- which could be very, very ...

cuimidiao3147的博客 675

OSMDroid(1)——OSM简介,基础例子搭建

1.OSMDroid简介 Osmdroid是一款完全开源的地图基本操作SDK,相比于现在普遍使用的百度地图,高德地图,谷歌地图等最大的好处就是开源。 最近在做一个军方项目,要求完全不能联网,从开发到应用整个阶段都是在局域网进行,相比之下采用了OSMDroid这个SDK作为解决方案。 先来看OSMDroid,便是(OpenStreetMapForAndroid),后面都简称OSM...

robotskly的博客 6178

【ogg实验三】当所有ext日志不存在是,需要重新抽取的实验

1、scn转timestamp,需要同步的scn确定ext的begin时间 SQL> alter session set nls_timestamp_format='yyyy-mm-dd hh24:mi:ss'; Session altered SQL> select scn_to_timestamp(2511095733793) from dual; SCN_TO_TIMEST...

viviliving的专栏 1435

RTOS任务调度原理:高优先级任务为何在低优先级任务执行时无法响应

实时操作系统(RTOS)的核心在于其确定性的任务调度机制,它通过优先级抢占确保关键任务及时执行。其基本原理是调度器仅在特定调度点(如任务主动阻塞、中断退出时)运行,比较就绪态任务的优先级并切换上下文。这一机制的技术价值在于为嵌入式系统提供可预测的响应时间,广泛应用于工业控制、汽车电子和物联网设备等对实时性要求高的场景。当低优先级任务执行**长时间非阻塞运算**且无中断发生时,调度器无法被触发,导致高优先级任务虽处于就绪态却无法获得CPU,造成系统响应延迟。理解**任务状态机**与调度点,是优化实时性、避免此

weixin_33508411的博客 287

用C#+Avalonia写跨平台串口工具:Windows/macOS/Linux通吃,还能解析Modbus+画实时曲线

不管是串口还是蓝牙,核心操作都是“打开连接、发数据、收数据、关连接”,先定义一个// 通信设备接口:统一串口/蓝牙的操作// 连接状态变化事件(UI层订阅)// 接收数据事件(收到数据后触发)// 通信配置(不同设备配置不同,用泛型)// 通信设备接口:统一串口/蓝牙的操作 public interface ICommDevice : IDisposable {// 连接状态变化事件(UI层订阅) event Action < bool > OnConnectionChanged;

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 997

Recovering a Database in NOARCHIVELOG Mode

If a media failure damages data files in aNOARCHIVELOGdatabase, then the only option for recovery is usually to restore a consistent whole database backup. To restore and recover the most recent whole database backup: If the database is open, then ...

彦祖的小号的博客 157

apk反编译修改教程系列-----修改apk应用名称 任意修改名称 签名【一】

这个是最最简单的反编译操作了。写这个教程的目的是其中很多粉丝要求出一点入门的教程。当然演示的是使用MT来操作。还有很多类似的软件可以达到目的。例如NP apltool等等或者电脑端也有很多反编译软件修改。对于玩机用户来说。也可以在系统包里直接修改一些app。

小马哥的专栏 7261

OGG - No Valid Default Archive Destination Directory Found for Thread #

Basically GG keeps a pointer to the oldest open transaction in the redo/archive logs -- which could be very, very old if someone starts a Toad session, locks their screen & goes on vacation for two we

chncaesar的专栏 2866

PointNet++改进策略 :模块改进 | x-Conv | PointCNN, 结合局部结构与全局排列提升模型性能

这篇论文介绍了一种名为PointCNN的方法,旨在从点云(point cloud)数据中学习特征。传统卷积神经网络(CNN)在处理规则网格数据(如图像)时非常有效,但由于点云是无序且不规则的,直接在其上应用卷积操作会导致形状信息丢失,并对点的排列顺序敏感。为了解决这一问题,论文提出了一种X-Conv操作。该方法通过学习一种来重新排列点云中的点并加权输入特征。然后,将典型的卷积操作应用于转换后的特征。这种方法将传统的 CNN 扩展到点云特征学习,并命名为PointCNN。

u012901740的博客 2300

NX二次开发常用函数——从一个坐标系到另一个坐标系的转换(UF_MTX4_csys_to_csys )相同体坐标转化

本文介绍了在项目开发中实现坐标转换的方法,重点解析了两个关键函数UF_MTX4_csys_to_csys和UF_MTX4_vec3_multiply的使用。通过4个变换矩阵(transform1-4)实现工作坐标系与绝对坐标系之间的相互转换,并以圆柱体为例详细说明了坐标转换的具体实现过程,包括原点、X/Y轴方向的转换处理。相比之前采用的if-else判断方法,这种矩阵转换方式在代码复杂度和运行效率上都更具优势。

weixin_47753171的博客 599

Oracle Database Administrator's Guide 11g---11.Managing Archived Redo Logs

 1.What Is the Archived Redo Log?      所谓的归档重做日志是指Oracle对已经满的一组或多组重做日志保存在线下,称为存档重做日志。把重做日志转化为归档重做日志的过程称为Archiving(归档。。。废话)。这个过程只能在ARCHIVELOG模式下才能生效。归档重做日志对于恢复数据库,更新备用数据库或者研究数据库的历史都是很有用的。   

385

halcon第二讲:焊点提取

本文要完成的任务是将下图中焊点提取出来,对应于halcon例程Blob分析中的ball.hdev。 dev_open_window (0, 0, 512, 512, 'black', WindowHandle) read_image (Image, 'die_03.png') disp_continue_message (WindowHandle, 'black', 'true') sto...

qq_24946843的博客 7175

Oracle - 初识数据库,快速了解Oracle核心概念

Oracle数据库核心概念摘要 Oracle本质:成熟的企业级RDBMS,以高并发事务处理(OLTP)、数据一致性保障和细粒度权限控制著称,适用于金融、电信等关键领域。通过ISO/IEC 27001和FIPS 140-2双重认证。 架构分层: 实例(Instance) - 运行时环境: SGA(共享内存区):含Buffer Cache、Shared Pool等,类比ConcurrentHashMap+LRU Cache 后台进程:PMON(会话清理)、LGWR(日志写入)等,类似Spring事件监听器 数据

千淘万漉虽辛苦,吹尽狂沙始到金 1万+

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

GoldenGate实施故障汇总

GoldenGate实施故障汇总 用户不存在 问题描述: 2010-05-02  10:45:20  GGS ERROR      2001   Oracle GoldenGate Delivery for Oracle, rcrmheal.prm:  Fatal error executing DDL replication:  error [Error code [191

wll的专栏 1848

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

oracle ogg启动不了,oracle goldengate 抽取进去启动不了

我更改了一下参数文件重启一下mgrGGSCI (jhyb01) 14> start mgrManager started.GGSCI (jhyb01) 15> info allProgram Status Group Lag at ChkptTime Since ChkptMANAGER RUNNINGEXTRACT STOPPED ...

weixin_33962315的博客 685

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

OGG-01423

数据库环境:RAC11.2.0.3.0 操作系统:Red Hat Enterprise Linux Server release 5.8 (Tikanga) 归档路径:闪回区 OG...

congsuituo5014的博客 1563

OGG-00446 No valid log files

下图是启动ogg extract不久,状态变为stop,查看报告日志  2018-11-29 16:38:31  ERROR   OGG-00446  No valid log files for current redo sequence 40, thread 1, error retrieving redo file name for sequence 40, archived = 0, us...

skillfulit的专栏 547

oracle ogg启动不了,ogg extract还是启动不起来

GGSCI (rac1) 8> info allProgram Status Group Lag at ChkptTime Since ChkptMANAGER RUNNINGGGSCI (rac1) 9> add extract ext_qq,tranlog,begin now,threads 2这几个参数体现在哪里?参数文件里没体现,至少没...

weixin_32803887的博客 1175

Oracle ogg00446,OGG-00446的一次解决

--发现抽取进程莫名其妙的不好用了GGSCI (HP-HP) 5> info allProgram Status Group Lag at ChkptTime Since ChkptMANAGER RUNNINGEXTRACT ABENDED EXTL 00:00:00 335:48:27EXTRACT ...

weixin_34450486的博客 531

关于Oracle GoldenGate 参数TRANLOGOPTIONS altarchivelogdest

我们的生产系统使用Oracle集群软件实现了OGG的高可用。当集群中的一个实例宕机,OGG会abend后自动重新启动。严格来说这个高可用设计也是相对的,因为它避免不了节点宕机时OGG的进程意外中断。但是在利用vip和OGG...

cuibaodun6837的博客 1457

oracle重启后ogg不能同步了,OGG 状态正常但是数据不同步

补充extract信息> info allProgram Status Group Lag at ChkptTime Since ChkptMANAGER RUNNINGEXTRACT RUNNING DPE_SLSC 00:00:00 00:00:05EXTRACT RUNNING EXT_SLSC...

weixin_35122994的博客 1642

OGG 配置过程中的错误处理

报错处理: 问题一:2014-11-17 10:02:09 ERROR OGG-00446 No valid log files for current redo sequence 14, thread 1, err...

577

Archived redo logfiles(归档重做日志)

因为在线重做日志的运行机制(循环使用的机制),会导致日志被覆盖,为了保证日志不被覆盖,更长时间的保留,那么,在线重做日志切换之后,将写满的在线重做日志,保存在另外一个存储位置,这种机制称之为归档; 如何查询当前数据库的归档模式? SYS@orcl11g> archive log list; Database log mode              No Archive Mode   

yinzhipeng123的博客 553

RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode

数据库open状态下,非归档模式不能做备份! 开启归档!!!

喝醉酒的小白 4193

Archived Redo Logs归档重做日志介绍及其优点

Redo Log File Use in ARCHIVELOG Mode 什么是Archived Redo Logs? Oracle Databas...

cizhanliang7973的博客 632
上一篇: Archiving Redo Information
下一篇: 执行 orainstRoot.sh 与 root.sh 作用
Xviewee
博客等级 码龄20年 78粉丝 236原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值