Databases 2 min read

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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Essential Oracle Database Restore Commands: Step-by-Step Guide

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)

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

SQLLinuxOracleDatabase Restoreimpdp
MaGe Linux Operations
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.