0% found this document useful (0 votes)
102 views6 pages

Oracle Dba 12c Import Export

The document describes different levels of database backups using Oracle Export utility: table level, schema level, query level, trigger level, tablespace level, and transport tablespace level. For table level backup, it exports the VEL table with 189999 rows. For schema level backup, it exports multiple tables belonging to user U1, with total rows exported as 69997. It also describes the steps to take a transport tablespace backup where the TOM tablespace is made readonly, the data file is copied to the destination location, and then imported at the destination using transport tablespace mode.

Uploaded by

Mage balan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
102 views6 pages

Oracle Dba 12c Import Export

The document describes different levels of database backups using Oracle Export utility: table level, schema level, query level, trigger level, tablespace level, and transport tablespace level. For table level backup, it exports the VEL table with 189999 rows. For schema level backup, it exports multiple tables belonging to user U1, with total rows exported as 69997. It also describes the steps to take a transport tablespace backup where the TOM tablespace is made readonly, the data file is copied to the destination location, and then imported at the destination using transport tablespace mode.

Uploaded by

Mage balan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 6

TABLE LEVEL BACKUP IN IMPORT EXPORT

FOR SINGLE TABLE : DUMP user (MAGE)

exp file=/home/oracle/expbackup/tables1.dmp log=/home/oracle/exptable.log


indexes=y direct=y tables=u1.vel

. . exporting table VEL 189999 rows exported

Export terminated successfully without6 warnings.

For schema level dmp user U1

exp file=/home/oracle/expbackup/schemafull.dmp log=/home/oracle/fullschema.log


owner=u1 indexes=y statistics=none feedback=20

. about to export U1's tables via Conventional Path ... exporting table A

 3 rows exported
 . . exporting table 1 rows exported
 . . exporting table M 0 rows exported
 . . exporting table Q1
 0 rows exported
 . . exporting table R1
 . . exporting partition P1...
 99 rows exported
 . . exporting partition P2.....
 101 rows exported
 . . exporting partition P3
 1 rows exported. . exporting table VEL

189999 rows exported

69997 rows exported

Export terminated successfully without warnings.


QUERY LEVEL BACKUP

exp file=/home/oracle/expbackup/query.dmp log=/home/oracle/expbackup/query1.log


buffer=4000 tables=u1.vel query=\" where id between 100 and 20000 \"

TRIGGER LEVEL BACKUP

exp file=/home/oracle/expbackup/trigger1.dmp
log=/home/oracle/expbackup/trigger1.log

trigger=Y owner=u1
TABLESPACE BACKUP LEVEL

exp file=/home/oracle/expbackup/.dmp log=/home/oracle/expbackup/tom.log


tablespaces=MAGE statistics=none
TRANSPORT TABLESPACE BACKUP LEVEL :

STEP :1 ONLY STRUCTURE

1 )DATABASE JACK

WHICH TABLESPACE WE WANT TO TRANSPORT THEN SELECT IT….

SQL> select file_name,tablespace_name from dba_data_files;

SQL> exec dbms_tts.transport_set_check(‘TOM’,TRUE,TRUE);

SQL> alter tablespace TOM readonly;

SQL>select tablespace_name,status from dba_tablespaces;

LOOK THE DATA FILE LOCATIONS AND GOT TO THE SOURCE LOCATIONS

[oracle@mage ~]$ cd tablespace/

-rw-r-----. 1 oracle oinstall 52436992 Mar 28 15:22 tom.dbf

Copy the file source file and send it to the destinations folder

[oracle@mage tablespace]$ cp tom.dbf /u01/app/oracle/oradata/Queen/datafile/tom.dbf


(DESTINATIONS) locations
[oracle@mage ~]$ imp file=tom1.dmp tablespaces=tom transport_tablespace=Y
datafiles='/u01/app/oracle/oradata/Queen/datafile/tom.dbf'

(destination locations)

SQL> alter tablespace tom read write; both os

You might also like