Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • eplan9i.sql Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • RAC with RHEL4 and 11g Oracle
  • FRA Information. Oracle
  • login.sql Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Find Command Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • Recovering lost SYS password Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • How to stop OCSSD Daemon 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

  • USE_NL and INDEX hints example Oracle
  • plan10g.sql good1 Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • oracle Dba site Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • All About Trace Fils Oracle

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 (394)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • plan10g.sql Oracle
  • Good links for x$ tables in oracle. Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • checking connectivity between two servers Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Temporary Tablespace Information and restriction. Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Check Oracle installed products using one command Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme