Essential Oracle Database Restore Commands: Step-by-Step Guide
This guide walks through essential Oracle database restore steps, from checking the current directory and copying dump files to restarting the service, managing users, creating directories, and importing data with impdp commands.
Common Oracle database restore commands
Show current directory : pwd Remote copy : scp ics20140902_0200.DMP [email protected]:./hpdata Restart database :
lsnrctl stop shutdown immediate; startup;Enter Oracle as sysdba : sqlplus "/as sysdba" Drop user : SQL> drop user hlj cascade; Create user and grant privileges :
SQL> create user hlj identified by hlj default tablespace users; SQL> grant resource to hlj; SQL> grant connect to hlj; SQL> grant dba to hlj;Create directory and grant access :
SQL> create directory HLJDIR as '/home/oracle/hpdata'; SQL> grant read,write on directory DUMPDIR to lh;Import dump files :
impdp hlj/hlj DIRECTORY=DUMPDIR DUMPFILE=ics20140912_1408.DMP remap_schema=ics:hlj FULL=Y IGNORE=Y(new database)
impdp hlj2/hlj DIRECTORY=HLJDIR DUMPFILE=ics20140919_0820.DMP remap_schema=ics:hlj2 TABLE_EXISTS_ACTION=REPLACE(replace existing)
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
