Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

chapter-18 .import and export utility.

fundamental-2

scenario:-I want to export one tablespace object's into another tablespace


from one database to another database.

steps as follows..
--------------------------------
two database are there named test and dbca
export done from test and import from dbca

1.) tablespace created in test database named abc having abc.dbf datafile with
size 1m.
here one user created named abc
grant connect,resource,exp_full_database to abc;
then connect abc/abc
here create one table named abc and insert some rows.

2.) tablespace created in dbca database named xyz having xyz.dbf datafile with
size 1m.
here one user created named xyz
then
grant connect,resource,imp_full_database to xyz;

3.)now abc tablespace make read only for export.

4.) ***while export done ....


-------------------------------------

G:\Documents and Settings\Administrator>exp 'abc/abc as sysdba'


transport_tablespace=y tablespaces=a
bc direct=y log=g:\dumps\bkp.dmp;

Export: Release 9.2.0.1.0 - Production on Thu Feb 12 17:13:06 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production


With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses US7ASCII character set (possible charset conversion)
Note: table data (rows) will not be exported
About to export transportable tablespace metadata...
For tablespace ABC ...
. exporting cluster definitions
. exporting table definitions
. . exporting table ABC
. exporting referential integrity constraints
. exporting triggers
. end transportable tablespace metadata export
Export terminated successfully without warnings.
---------------------------------------------------------
7.) while import done..
---------------------------------------------------------

--------------------------------------------------------
import facing error is below..
-------------------------------------------------

G:\Documents and Settings\Administrator>imp 'xyz/xyz as sysdba'


transport_tablespace=y
tablespaces=xyz datafile 'G:\oracle\oradata\dbca\xyz.dbf' log=g:\dumps\bkp.dmp;

Import: Release 9.2.0.1.0 - Production on Thu Feb 12 17:45:07 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production


With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

Export file created by EXPORT:V09.02.00 via conventional path


About to import transportable tablespace(s) metadata...
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses US7ASCII character set (possible charset conversion)
. importing SYS's objects into SYS
IMP-00017: following statement failed with ORACLE error 29348:
"BEGIN sys.dbms_plugts.beginImpTablespace('ABC',4,'SYS',1,0,8192,1,284948,"
"1,2147483645,16,16,16,0,1,0,16,1976640760,1,2,284427,NULL,0,0,NULL,NULL); E"
"ND;"
IMP-00003: ORACLE error 29348 encountered
ORA-29348: You must specify the datafiles to be plugged in
ORA-06512: at "SYS.DBMS_PLUGTS", line 1441
ORA-06512: at line 1
IMP-00000: Import terminated unsuccessfully
-----------------------------------------------------------------------------------
-------------------

You might also like