Three modes of Oracle logical backup/restore

1.1. Three modes of Oracle logical backup/restore

1.1.1, EXP backup

(1) Full (entire database)

#Database level backup (the database where the BPMSVG user is located, ALIBAO is the instance name)

exp BPMSVG/1234@ALIBAO file=C:\Users\walkw\Desktop\oracle\backup\bpmsvg20180419\bpmsvg_database.dmp full=y

(2) Users (Users and Tables)

#User level backup (BPMSVG user and user table)

exp BPMSVG/1234@ALIBAO file=C:\Users\walkw\Desktop\oracle\backup\bpmsvg20180419\bpmsvg_user.dmp owner=(BPMSVG)

(3) Table (designated table)

#Table backup (eg table1, table2)

exp BPMSVG/1234@ALIBAO file=C:\Users\walkw\Desktop\oracle\backup\bpmsvg20180419\bpmsvg_tables.dmp tables=(table1,table2)

 

1.1.2, IMP restoration

(1) Full (entire database)

#imp database username/password@database name file=file path plus filename full=y ignore=y;

 imp bpm/Sys123456 @127.0.0.1 :1521/bpm file=dmp file path plus file name full=y ignore=y;

(2) Users (Users and Tables)

#Assume the exported user is BPMSVG and the imported user is BPMVML

IMP BPMVML/1234@ALIBAO FILE=C:\Users\walkw\Desktop\oracle\backup\bpmsvg20180419\bpmsvg_user.dmp FROMUSER=BPMSVG TOUSER=BPMVML

(3) Table (designated table)

#Import the tables table1 and table2 in bpmsvg_tables.dmp

IMP BPMVML/1234@ALIBAO FILE=C:\Users\walkw\Desktop\oracle\backup\bpmsvg20180419\bpmsvg_tables.dmp tables=(table1,table2)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325179527&siteId=291194637