Home » RDBMS Server » Server Administration » export/import tablespaces
export/import tablespaces [message #52963] Wed, 21 August 2002 18:41 Go to next message
fani bachsin
Messages: 4
Registered: August 2002
Junior Member
hi, anyone can tell me the complete & detail steps to perform export & import tablespaces ?, i am using oracle 8i in hp-ux.
Re: export/import tablespaces [message #52964 is a reply to message #52963] Wed, 21 August 2002 19:35 Go to previous messageGo to next message
Trifon Anguelov
Messages: 514
Registered: June 2002
Senior Member
In Oracle 9i you can just say tablespace= and get all objects in one shot.

For Oracle 8i you have to use transportable tablespaces, which has some constraints as same block size, same OS, etc.

The procedure is as follows:

1. Make the tablespace readonly.

sqlplus> connect sys/manager
sqlplus> alter tablespace test read only;

2. Export the tablespace specifying the TABLESPACES and TRANSPORT_TABLESPACE
clause

C:tmp>exp sys/manager file=tt.dmp tablespaces=test transport_Tablespace=y ......

3. Transfer the meta data export dump file and the copy of the datafile(s) to the target database. (Could be ftp or copy or via cdrom or any other
compatible media)

4. Import the metadata using TABLESPACES, TRANSPORT_TABLESPACE, DATAFILES clause. If more than one datafiles are available then specify all of them comma seperated.

C:>imp system/manager file=tt.dmp TABLESPACES=test TRANSPORT_TABLESPACEe=y DATAFILES=d:oracle8ioradataventuretest01.dbf, d:oracle8ioradataventuretest02.dbf .....

5. Make the tablespace read write, if required, at the target database

sqlplus>connect sys/manager
sqlplus>alter tablespace test read write;

Hope that helps,

clio_usa
OCP - DBA

Visit our Web site

Re: export/import tablespaces [message #52966 is a reply to message #52963] Wed, 21 August 2002 22:29 Go to previous messageGo to next message
fani bachsin
Messages: 4
Registered: August 2002
Junior Member
hi,

i've tried these steps but it doesn't work well, i think it'll work on nt,
won't it ?
what about on hp-ux ? am i using the same command ?
we have to run this export on testing env, how to specify ?, tks a lot
Re: export/import tablespaces [message #52977 is a reply to message #52966] Thu, 22 August 2002 04:28 Go to previous message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
the outline what trifon has given is correct.
What kind of ERROR are u getting??
Check your env variables
Previous Topic: ORA-04045 : catalog.sql and catproc.sql damage my db
Next Topic: ODBC
Goto Forum:
  


Current Time: Thu Dec 26 10:00:35 CST 2024