11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

436 CHAPTER 10 ■ DATA GUARDSQL> BEGIN2 DBMS_SCHEDULER.SET_ATTRIBUTE(name => 'EDBA_UPDATE',3 attribute => 'database_role',4 value =>'LOGICAL STANDBY');5 END;6 /PL/SQL procedure successfully completed.Once you change the database role for the job, you can query the DBA_SCHEDULER_JOBview to confirm that the EDBA_UPDATE is targeted to run on the logical standby, as depicted here:SQL> select job_name, database_role from dba_scheduler_job_roles;JOB_NAMEDATABASE_ROLE------------------------------ ----------------XMLDB_NFS_CLEANUP_JOBPRIMARYFGR$AUTOPURGE_JOBPRIMARYBSLN_MAINTAIN_STATS_JOBPRIMARYDRA_REEVALUATE_OPEN_FAILURESPRIMARYHM_CREATE_OFFLINE_DICTIONARYPRIMARYORA$AUTOTASK_CLEANPRIMARYPURGE_LOGPRIMARYMGMT_STATS_CONFIG_JOBPRIMARYMGMT_CONFIG_JOBPRIMARYRLM$SCHDNEGACTIONPRIMARYRLM$EVTCLEANUPPRIMARYEDBA_UPDATE LOGICAL STANDBY alter system set log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST';System altered.By default, the logical standby architecture automatically deletes an archivelog once it isapplied. Now in <strong>Oracle</strong> <strong>Database</strong><strong>11</strong>g, this is an option that can be controlled using the log_auto_delete initialization parameter. The log_auto_delete parameter must be coupled withthe log_auto_del_retention_target parameter to specify the number of minutes an archivelogis maintained until it is purged. This parameter is set to 1,440 minutes, or 24 hours, by default.For archivelog retention to be effective, the log_auto_delete parameter must be set to true,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!