Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SYSOPER Mystery Oracle
  • Jai Shree Ram Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • arch_configUOCIOTTO.ora Oracle
  • how to find VIP from ifconfig Linux/Unix
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Order by with ROWNUM Oracle
  • eplan9i.sql Oracle
  • Finding Oracle Patches with opatch Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • refre.sql Oracle
  • oradebug ipcrm ipcs Oracle
  • oracle Dba site Oracle
  • rm_backup_arch_file.ksh Linux/Unix

Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1

Posted on 09-Nov-2005 By Admin No Comments on Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1

Purpose:

========

The purpose of this article is to describe the behavior of the standby database when one or more datafiles on the primary database are resized.

Standby Database Behavior When a Datafile is Resized on the Primary Database:

=============================================================================

On the primary database the initial size of the datafile is 113246208. You decide to resize it by:

SVRMGR> alter database datafile ‘/u01/data/users01.dbf ‘ resize 115M;

The size of the datafile becomes 119537664.

Standby Database:

—————–

SVRMGR> startup nomount pfile=initstd.ora

SVRMGR> alter database mount standby database;

Check the datafile in the dictionary’s views before recovering:

SVRMGR> select file#, status, name, bytes from v$datafile where file#=3;

FILE# NAME

BYTES

———- ——- ————————————

3 /U01/DATA/USERS01.DBF

113246208

1 row selected.

SVRMGR> recover standby database;

…

When you look at the alert.log for any information on the resizing, you only see the following:

ORA-279 signalled during: ALTER DATABASE RECOVER LOGFILE ‘e:archivebase…

Mon Nov 06 13:55:30 2000

ALTER DATABASE RECOVER CANCEL

Mon Nov 06 13:55:30 2000

Media Recovery Cancelled

Completed: ALTER DATABASE RECOVER CANCEL

…

In the directory where the datafile resides, you can see that the size of the datafile has changed.

Check again the datafile in the dictionary’s views:

SVRMGR> select file#, status, name, bytes from v$datafile where file#=3;

FILE# NAME

BYTES

———- ——- ————————————

3 /U01/DATA/USERS01.DBF

119537664

1 row selected.

The size of the datafile on the standby database is now 1199537664 and matches the primary database.

The only thing to do before you apply the logs, is to make sure that there is enough space for enlarging the file. Oracle propagates all during the recovery of the controlfile and the datafile, and resizes the datafile automatically. On the other hand, some views of the dictionary such as v$datafile and v$recover_file can present the file with a status

“RECOVER”. This status does not prevent the correct operation of the database, even in Read Only. Once the database is activated, i.e., opened in Read Write, the datafile does not have the status “RECOVER” anymore.

Oracle, rman-dataguard

Post navigation

Previous Post: AWR settings- MMON is not taking snapshot.
Next Post: Example of How To Resize the Online Redo Logfiles Note:1035935.6

Related Posts

  • DBMS_Shared_pool pinning triggers Oracle
  • login.sql Oracle
  • Difference between SYNC and AFFIRM Oracle
  • Oracle 10g Wait Model Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • login.sql Oracle
  • Reading config file from other folder inside class Python/PySpark
  • To Find Orphan OS processes. Linux/Unix
  • When to rebuld B-tree index Oracle
  • database trigger failing Oracle
  • process id based files and processes Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme