SQL> create tablespace tab05 datafile '/home/oracle/app/oracle/oradata/mmpdb3/tab05.dbf' size 10m;
Tablespace created.
SQL> select * from v$tablespace;
TS# NAME INC BIG FLA ENC
---------- ------------------------------ --- --- --- ---
0 SYSTEM YES NO YES
1 SYSAUX YES NO YES
2 UNDOTBS1 YES NO YES
4 USERS YES NO YES
6 TAB01 YES NO YES
7 TAB02 YES NO YES
3 TEMP NO NO YES
8 TAB03 YES NO YES
9 TAB04 YES NO YES
10 TAB05 YES NO YES
SQL> select TS#, NAME from v$datafile where TS#=10;
TS# NAME
---------- --------------------------------------------------
10 /home/oracle/app/oracle/oradata/mmpdb3/tab05.dbf
SQL> show parameter db_file_name_convert
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string /home/oracle/app/oracle/oradat
a/mmpdb3/, /home/oracle/app/or
acle/oradata/mmpdb3/
SQL> show parameter standby_file_management
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
standby_file_management string AUTO
SQL> alter system switch logfile;
System altered.
####on the standby
SQL> show parameter standby_file_management
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
standby_file_management string AUTO
SQL> show parameter db_file_name_convert
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string /home/oracle/app/oracle/oradat
a/mmpdb3/, /home/oracle/app/or
acle/oradata/mmpdb3/
SQL> select TS#, NAME from v$datafile where TS#=10;
TS# NAME
---------- --------------------------------------------------
10 /home/oracle/dbbak/db_create_file_dest/MMPDB3SBY/d
atafile/o1_mf_tab05_df9jd697_.dbf
SQL> show parameter db_create_file_dest;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string /home/oracle/dbbak/db_create_f
ile_dest
#####on the primary
SQL> alter system set db_create_file_dest='' scope=both;
System altered.
SQL> show parameter db_create_file_dest;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string
SQL>
SQL> drop tablespace tab05;
Tablespace dropped.
SQL> alter system switch logfile;
System altered.
#on the standby
SQL> alter system set db_create_file_dest='' scope=both;
System altered.
SQL> show parameter db_create_file_dest;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string
SQL>
SQL> select TS#, NAME from v$datafile where TS#=10;
no rows selected
#on the primary
SQL> create tablespace tab05 datafile '/home/oracle/app/oracle/oradata/mmpdb3/tab05.dbf' size 10m;
Tablespace created.
SQL> select TS#, NAME from v$datafile where TS#=10;
TS# NAME
---------- --------------------------------------------------
10 /home/oracle/app/oracle/oradata/mmpdb3/tab05.dbf
SQL> alter system switch logfile;
System altered.
#on the standby
SQL> select TS#, NAME from v$datafile where TS#=10;
TS# NAME
---------- --------------------------------------------------
10 /home/oracle/app/oracle/oradata/mmpdb3/tab05.dbf
近期评论