Adding Tablespaces or Datafiles to the Primary Database
To add a tablespace or datafile to the primary database and create the datafile in the standby database:
- Create a tablespace on the primary database as usual. For example, to create new datafile
t_db2.fin tablespace tbs_2, issue:
SQL> CREATE TABLESPACE tbs_2 DATAFILE 't_db2.f' SIZE 2M;
If the recovery process on the standby database tries to apply the redo containing the CREATE TABLESPACE statement, it stops because the new datafile does not exist on the standby site.
- Either wait for the standby database to cancel recovery because it cannot find the new datafile, or manually cancel managed recovery:
- Note that CREATE TABLESPACE redo adds the new filename to the standby control file. The following alert.log entry is generated:
might be an online backup taken without entering the begin backup command.
No comments:
Post a Comment