Oracle database dump Import and export

Source: Internet
Author: User
Tags create directory

1, set up dump file storage directory, and authorized to Oracle users.

Mkdir/data/sharedata/mydump
chown-r Oracle:oinstall/data/sharedata/mydump

2. Configure Oracle Environment Variables

Oracle_home=/oralce/product/11.2.0.4/dbhome
path= $ORACLE _home: $PATH

3. Launch Oracle Listener

Open listener: Lsnrctl start
View listener Run Status: Lsnrctl status

4. Start Oracle Instance

Sqlplus/as SYSDBA
Startup

5, the establishment of a shared directory

Create directory Mydump as '/data/sharedata/mydump '

6, the establishment of Oracle table space

7. Dump Import Command

IMPDP \ '/as Sysdba\ ' Directory=mydump dumpfile=mydb.dmp table_exists_action=replace

8. Dump Export Command

EXPDP \ '/as Sysdba\ ' schemas=test directory=mydump dumpfile=mydb.dmp logfile=mydb.log
Related Article

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.