Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • Find total file sizes Linux/Unix
  • Parallel DML Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • Set Role explaination. Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Oracle 10g Wait Model Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Find_table_size.sql Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • All About oracle password and security from metalink Oracle
  • longtx.sql Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • Goog notes on X$ tables Oracle
  • SQL Tracker by SID sqltrackerbysid.sql 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

  • Find Plan Hash value fphv.sql Oracle
  • Good Site for Oracle Internals Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • Oracle Identifiers Oracle
  • Find_planinfo.sql 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • online_bkup.sql Oracle
  • .profile Linux/Unix
  • Finding Oracle Patches with opatch Oracle
  • handling filenname with space Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Jai Shree Ram Linux/Unix
  • Optimizer_Index init.ora parameter explaination. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme