This example demonstrates how to transport a tablespace from a 10g ASM on Windows environment to 11g ASM on AIX environment using the DBMS_FILE_TRANSFER package.
The source database on Windows is GENUA1 and the target database is a 11g RAC database RACDB1.
Create the tablespace and the test object in the source database
SQL> create tablespace test_asm
2 datafile size 100m;
Tablespace created.
SQL> select file_name from dba_data_files
2 where tablespace_name=’TEST_ASM’;
FILE_NAME
——————————————————————————–
+DATA/genua1/datafile/test_asm.376.696333127
SQL> conn system/xxx
Connected.
SQL> create table myobjects
2 tablespace test_asm
3 as select * from dba_objects;
Table created.
SQL> select count(*) from system.myobjects;
COUNT(*)
———-
56504
Create a database link from the source database to the target database
SQL> CREATE DATABASE LINK DBS2 CONNECT TO
2 system identified by oracle
3 using ‘racdb1′;
Database link created.
SQL> select * from dual@dbs2;
D
-
X
Create a directory to hold the converted datafile on the source
SQL> create directory source_dir as
Continue reading How to transport a tablespace from 10g ASM on Windows to 11g ASM on AIX


Popular Posts