Sunteți pe pagina 1din 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

S-ar putea să vă placă și