Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • v$backup.status information Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • All Hints for Oracle Databases Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Drop tempfiles from database Oracle
  • good linux notes Linux/Unix
  • oracle_env_10g_CADEV Linux/Unix
  • cold backup scripts to copy locally Linux/Unix
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Find All internal Parameters Oracle
  • find checksum of a file. Linux/Unix
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause 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

  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • USER_TABLES.Freelists Oracle
  • Nice notes on wait events Oracle
  • Histogram information Oracle
  • Find All internal Parameters Oracle
  • compile_inv.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • v$backup.status information Oracle
  • Implementing Listener Security Oracle
  • Import and export statements Oracle
  • All Hints for Oracle Databases Oracle
  • How to start CRS manually Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Paste command syntax Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme