Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • get_vmstat.ksh for Solaris Oracle
  • Committing distributed transaction using commit force Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix
  • Rman Notes -1 Oracle
  • Jai Shree Ram Oracle
  • nfs mount command Linux/Unix
  • find_idle_cpu.sql Oracle
  • USER_TABLES.Freelists Oracle
  • send attachment from unix-shell script Linux/Unix
  • eplan9i.sql Oracle
  • replace alphabets using sed Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • good note for shared pool tunnig Oracle

How to specify 2 arch location to avoid any kind of DB hanging.

Posted on 03-Mar-2010 By Admin No Comments on How to specify 2 arch location to avoid any kind of DB hanging.

Scenario:

I wish to configure two locations for log archives in the way that archives should get stored on location “A” and when it gets filled or become unavailable due to any reason then logs should automatically start using location “B” for onward.

In short failure of location A should start storing archives on location B.

But clearly I do not want duplex etc..

Solution:

clear screen;

ALTER SYSTEM SET LOG_ARCHIVE_DEST_2=’LOCATION=C:ARCHIVE2′ SCOPE=BOTH;

ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ALTERNATE SCOPE=BOTH;

ALTER SYSTEM SET LOG_ARCHIVE_DEST_1=’LOCATION=C:ARCHIVE1 REOPEN=1 MAX_FAILURE=1 ALTERNATE=LOG_ARCHIVE_DEST_2′ SCOPE=BOTH;

ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1=enable SCOPE=BOTH;

column dest_name format a30;

column status format a20;

column destination format a50;

set linesize 300;

SELECT dest_name, status, destination FROM v$archive_dest

Oracle, SQL scripts

Post navigation

Previous Post: Sending SQLPLUS output in HTML format
Next Post: Oracle Release Explaination

Related Posts

  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • How to find password change date for user Oracle
  • Kill a session dynanically using execute immediate Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • login.sql Oracle
  • Index Range Scan Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Implementation of key based authentications Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • Resolving RMAN Hung Jobs Oracle
  • move_arch_files.ksh Linux/Unix
  • dbms_job.submit example Oracle
  • Good Doc 28-JUN-2006 Oracle
  • Jai Shree Ram Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme