Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • sesswait.sql Oracle
  • For Search and replace unix command. Linux/Unix
  • Good Oracle Architecture In Short and point to point Oracle
  • Rman Notes -1 Oracle
  • Another export with Query Oracle
  • UTL_FILE test program Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • USER_TABLES.Freelists Oracle
  • Korn Shell Arithmatic Linux/Unix
  • fuser to check who is using diretory Linux/Unix
  • get_vmstat.ksh Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • check_copy_progress.sh 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

  • How can I tell if ASO is installed ? Oracle
  • Jai Shree Ram Oracle
  • get_aix_vmstat.ksh Oracle
  • findobj.sql Oracle
  • useful dg links Oracle
  • get_vmstat.ksh for Solaris 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
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Oracle 11g Training on 29JAN1010 Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • ext#.sql Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme