Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle Release Explaination Oracle
  • v$event_name Oracle
  • CPU speed on solaris Linux/Unix
  • Session_info.ksh Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • Proc Compilation Oracle
  • initUOCIOTTO.ora Oracle
  • create database link syntax Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Renaming the column name Oracle
  • Convert multiple rows to single column Oracle
  • cache buffer chain latch Oracle
  • Processes Parameter decision Oracle
  • Read CSV File using Python Python/PySpark

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

  • UNderstand and eliminate Latch contention. Oracle
  • Find All internal Parameters Oracle
  • DBMS_JOB all example Oracle
  • plan10g.sql good1 Oracle
  • Alter procedure auditing Oracle
  • v$backup.status information Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to find password change date for user Oracle
  • Unix split command to split files Linux/Unix
  • cp_filesystem.sql Oracle
  • Running select from V$ views from remote server Linux/Unix
  • find_idle_cpu.sql Oracle
  • oradebug ipcrm ipcs Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • DBMS_STATS Metalinks Notes Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme