Skip to main content

Adding or Dropping of Redo and StandBy Redo file in Dataguard Standby Environment

 

Adding or Dropping Redo and StandBy Redo files in Dataguard Standby Environment

On Standby Server


Redo Log File

1.0.
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

1.1.

Show parameter STANDBY_FILE_MANAGEMENT
ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT = MANUAL;

1.2.

set line 400 pages 150
col GROUP# for 99
col THREAD# for 99
col STATUS for a9
col MEMBERS for 999999
col member for a64
select l.GROUP#,l.THREAD#,l.STATUS,l.MEMBERS,f.member from v$log l inner join v$logfile f on (l.GROUP#=f.GROUP#);

1.3.

ALTER DATABASE ADD LOGFILE '/u01/app/oracle/oradata/cbsdgdb1/redo01.log' SIZE 1024M;
ALTER DATABASE ADD LOGFILE '/u01/app/oracle/oradata/cbsdgdb1/redo02.log' SIZE 1024M;
ALTER DATABASE ADD LOGFILE '/u01/app/oracle/oradata/cbsdgdb1/redo03.log' SIZE 1024M;

1.4.

alter system switch logfile;

1.5.

ALTER DATABASE DROP LOGFILE '/u01/app/oracle/oradata/oradbcdb/redo01.log';
ALTER DATABASE DROP LOGFILE '/u01/app/oracle/oradata/oradbcdb/redo02.log';
ALTER DATABASE DROP LOGFILE '/u01/app/oracle/oradata/oradbcdb/redo03.log';

standby redo log file

2.0.
set line 400 pages 150
col GROUP# for 99
col THREAD# for 99
col STATUS for a12
col MEMBERS for 999999
col member for a64
select l.GROUP#,l.THREAD#,l.STATUS,f.member from v$STANDBY_LOG l inner join v$logfile f on (l.GROUP#=f.GROUP#);

2.1.

alter database add standby logfile '/u01/app/oracle/oradata/cbsdgdb1/standbyredo01.log' size 1024m;
alter database add standby logfile '/u01/app/oracle/oradata/cbsdgdb1/standbyredo02.log' size 1024m;
alter database add standby logfile '/u01/app/oracle/oradata/cbsdgdb1/standbyredo03.log' size 1024m;
alter database add standby logfile '/u01/app/oracle/oradata/cbsdgdb1/standbyredo04.log' size 1024m;
alter database add standby logfile '/u01/app/oracle/oradata/cbsdgdb1/standbyredo05.log' size 1024m;

2.2.

ALTER DATABASE DROP STANDBY LOGFILE '/u01/app/oracle/oradata/cbsdgdb2/standby1.log';
ALTER DATABASE DROP STANDBY LOGFILE '/u01/app/oracle/oradata/cbsdgdb2/standby2.log';
ALTER DATABASE DROP STANDBY LOGFILE '/u01/app/oracle/oradata/cbsdgdb2/standby3.log';
ALTER DATABASE DROP STANDBY LOGFILE '/u01/app/oracle/oradata/cbsdgdb2/standby4.log';
ALTER DATABASE DROP STANDBY LOGFILE '/u01/app/oracle/oradata/cbsdgdb2/standby5.log';

2.3.

alter database drop standby logfile group 5;
alter database clear logfile group 5;

2.4.

ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;

Comments

Popular posts from this blog

Upgrading Issue for RHEL 7 to 8 With Leapp

Overview The Leapp utility is a framework for updating and upgrading operating systems as well as applications. The operations of this utility consist of two phases 1. the preupgrade Phase – that chack the upgrade possibilities and 2. the actual upgrade phase – that map packages between previous and current versions of the software packages. Issue – 01: After running ‘ sudo leapp preupgrade ‘ sometimes you find the below issue in ‘ /var/log/leapp/leapp-report.txt ‘. Detail: Risk Factor: high (inhibitor) Title: Leapp detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed. Summary: Support for the following RHEL 7 device drivers has been removed in RHEL 8: – pata_acpi Key: f08a07da902958defa4f5c2699fae9ec2eb67c5b Remediation: 1. Disable detected kernel drivers in order to proceed with the upgrade process using the rmmod or modprobe -r . rmmod – Simple program to remove a module from the Linux Kernel modprobe – Add and remove modules from the Linux Ke...

Upgrading Oracle Linux 6 to 7

Overview It is possible to upgrade an Oracle Linux 6 system to Oracle Linux 7.6 under the following conditions: The system meets the minimum installation requirements for Oracle Linux 7 as described in Chapter 1, System Requirements and Limits. The Oracle Linux 6 system has been completely updated from the ol6_x86_64_latest channel or ol6_latest repository. UEK R3 or UEK R4 has been installed on the system to be upgraded and is the default boot kernel. Upgrading from UEK R2 is not supported. Note that the system is upgraded to use the UEK R5 release provided with Oracle Linux 7.6. Upgrading is supported only for systems that are installed with the Minimal Install base environment. If additional packages are installed from an alternative repository or channel, upgrade might fail or the resulting upgrade might not function as expected. reference: https://docs.oracle.com/en/operating-systems/oracle-linux/7/relnotes7.6/ol7-install.html#ol7-upgrade-ol6 Verifying the system before Upgrade: #...

Install Oracle Database 12c Release 2 On Red Hat 8

Overview According to Oracle, Oracle Database 12c is ‘the first database designed for the cloud’; the suffix ‘c’ stands for the cloud. There are many new features in this release such as multitenant architecture, pluggable database, in-memory, etc. The multitenant architecture is designed to simplify consolidation without requiring any changes to the applications. The rapid provisioning and portability capabilities are enhanced by the pluggable databases. Another new feature is in-memory makes it the first Oracle database to offer real-time analytics. This article describes the installation of Oracle Database 12c release 2 (12.2.0.1.0) 64-bit on Red Hat 8 64-bit. Lab Environment Server Machine Work Station or Client Machine OS Release Red Hat Enterprise Linux release 8.4 (Ootpa) Red Hat Enterprise Linux release 8.4 (Ootpa) Kernel 4.18.0-305.3.1.el8_4.x86_64 4.18.0-305.7.1.el8_4.x86_64 Release Oracle Database 12.1.0.2.0 Oracle SQL Developer Version 19.2.1.247 IP Address 192.168.201.116 ...