Oracle expdp and impdp command research, oracleexpdpimpdp

Source: Internet
Author: User

Oracle expdp and impdp command research, oracleexpdpimpdp
-- Create a remote data connection
Create database link DB_MZDB11 connect to YTMZTWO identified by YTMZTWO909 using 'mzdb11 ';
-- Create a local directory
Create directory db_mz as 'C :';
-- Authorize the user to read and write
Grant read, write on directory db_mz to YTMZTWO, YTMZ;
-- Authorized users can create dblink
Grant create database link to YTMZTWO, YTMZ;


Grant resource to YTMZTWO;




-- Export command
Expdp YTMZTWO/YTMZ2.2 schemas = YTMZTWO dumpfile = YTMZTWO. DMP directory = db_mz network_link = DB_MZDB11 logfile = log. log exclude = TABLE: \ "IN \ (\ 'pub _ ATTACHMENT \ ', \ 'pub _ SIGNSEAL \'\)\"


-- Add content to the configuration file
ORCL_rxxc =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 61.139.100.204) (PORT = 1522 ))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORACLE)
)
)
-- Direct data import command
Impdp YTMZTWO/YTMZ2.2 directory = db_mz NETWORK_LINK = DB_MZDB11 schemas = YTMZTWO logfile = log. log exclude = TABLE: \ "IN \ (\ 'pub _ ATTACHMENT \ ', \ 'pub _ SIGNSEAL \'\)\"
Job_name = my_job

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.