Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Exadata Basics Oracle
  • Export Import with QUERY Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • plan10g.sql good Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • logminer and my_lbu Oracle
  • metalink all dynamic view reference notes. Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • DB Console Mainenance. Oracle
  • setting prompt display with .profile Linux/Unix
  • T-SQL Vs PL/SQL Syntax SQL Server
  • oracle Dba site Oracle
  • Paste command syntax Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql 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

  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Index Range Scan Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • refre.sql Oracle
  • Flowers Resize datafiles Oracle
  • scripts to take listener.log backup Linux/Unix
  • export import with parameter file. Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme