Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • CPU speed on solaris Linux/Unix
  • Jai Shree Ram Oracle
  • find checksum of a file. Linux/Unix
  • To check whether standby is recovering properly or not?? Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • All Hints for Oracle Databases Oracle
  • ORA-01220 Oracle
  • Generate SSH without password authentication. Linux/Unix
  • Good Site for Oracle Internals Oracle
  • v$backup.status information Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • This is from Temi Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Oracle Identifiers Oracle

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

  • FRA Information. Oracle
  • oracle Dba site Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Find all users who have DML privileges Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Good Site for Oracle Internals 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • find the files that are 1 day old. Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • How to see which patches are applied. Oracle
  • Configure ssh authentications for RAC Oracle
  • CPU speed on solaris Linux/Unix
  • UTL_FILE test program Oracle
  • cache buffer chain latch Oracle
  • The most important Tuning Notes Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme