Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Temporary Tablespace Information and restriction. Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • scp with ssh2 Linux/Unix
  • Good notes for shared pool Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • nfs mount command Linux/Unix
  • Histogram information Oracle
  • When to rebuld B-tree index Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • New OFA for 11g Oracle
  • All Hints for Oracle Databases Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • find the files that are 1 day old. Linux/Unix

Adding or Dropping Online Redo Log Files When Physical Standby in place

Posted on 09-Nov-2005 By Admin No Comments on Adding or Dropping Online Redo Log Files When Physical Standby in place

Changing the size and number of the online redo log files is sometimes done to tune the database. You can add online redo log file groups or members to the primary database without affecting the standby database. Similarly, you can drop log file groups or members from the primary database without affecting your standby database. However, these changes do affect the performance of the standby database after switchover.

Caution:

Whenever you add an online redo log file to the primary database, you must add a corresponding standby redo log file to the standby database.

For example, if the primary database has 10 online redo log files and the standby database has 2, and then you switch over to the standby database so that it functions as the new primary database, the new primary database is forced to archive more frequently than the original primary database.

Consequently, when you add or drop an online redo log file at the primary site, it is important that you synchronize the changes in the standby database by following these steps:

(1) If Redo Apply is running, you must cancel Redo Apply before you can change the log files.

(2) If the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO, change the value to MANUAL.

(3) Add or drop an online redo log file:

(3-1) To add an online redo log file, use a SQL statement such as this:

SQL> ALTER DATABASE ADD LOGFILE

‘/disk1/oracle/oradata/payroll/prmy3.log’ SIZE 100M;

(3-2) To drop an online redo log file, use a SQL statement such as this:

SQL> ALTER DATABASE DROP LOGFILE

‘/disk1/oracle/oradata/payroll/prmy3.log’;

(4) Repeat the statement you used in Step 3 on each standby database.

(5) Restore the STANDBY_FILE_MANAGEMENT initialization parameter and the Redo Apply options to their original states.

Ref : http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10823/manage_ps.htm#1010567

Oracle, rman-dataguard

Post navigation

Previous Post: Example of How To Resize the Online Redo Logfiles Note:1035935.6
Next Post: create database link syntax

Related Posts

  • dbinv.sql Oracle
  • Backup and Recovery Scenarios Oracle
  • Rename Tablespace Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Rman Notes -1 Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • MYSQL for Oracle DBA MYSQL
  • oracle Dba site Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • proper cpu stats Linux/Unix
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • OEM-Commnds Oracle
  • sesswait.sql Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme