Oracle multiple tables Export and import __oracle

Source: Internet
Author: User

Sometimes we need to migrate the data of the database, but some data will not let the migration in the case of partial table export Import.

----Data export
--Create a directory to put DMP files
Mkdir-p/backup/oracle/dmp

--Assign value to Oracle users
Chown-r Oracle:oinstall/backup


--Log in to the database with Super admin
Sqlplus/as Sysdba;


Create directory Dmp_file as '/backup/oracle/dmp ';
Grant Read,write on directory Dmp_file to the user who needs to export the data;
Exit

EXPDP User/password Directory=dmp_file dumpfile=xx.dmp logfile=xx.log tables= (table 1, table 2);


----Import

--You need to delete the imported tables before importing them.

drop table 1;
drop table 2;

IMPDP system/password Directory=dmp_file dumpfile=xx.dmp logfile=xximport.log

At this point, the import was successful. Data pump commands must be supported on the database server side.

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.