Common Database Restore commands

Source: Internet
Author: User

1. Show current directory
Pwd

2 Remote Replication
SCP ics20140902_0200.dmp [Email protected]:./hpdata


3 Restarting the database
LSNRCTL stop;--Monitoring Service stopped
Shutdown immediate;
Startup

4 Entering Oracle
Sqlplus "/as sysdba"

5 Delete User
Sql>drop user HLJ Cascade;

6 Build Users
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;

7 Building the Catalogue
Sql>create directory Hljdir as '/home/oracle/hpdata ';
Sql>grant read,write on directory Dumpdir to LH;

8 Importing libraries
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 database

Common Database Restore commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.