Oacle enables data import and export between different sub-Devices

Source: Internet
Author: User

You can export a data table from the local Oracle database with the file name. dmp, and then import the dmp file to the oracle table of another host. Deep feelings. I am not familiar with the functions of oracle files.

First, modify the content of tnsnames. ora (D: \ oracle \ product \ 10.2.0 \ db_1 \ NETWORK \ ADMIN \ tnsnames. ora in the oracle Installation Directory:

ORA10G = // local oracle ID (existing file content)
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.10.10.10) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)
ORA10G2 = // *** Remote Computer oracle ID (to be added )***
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.3.43.130) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 ))
)
(CONNECT_DATA =
(SID = PL *** tProc)
(PRESENTATION = RO)
)
)
 
Import and Export commands:
Exp ckkh/ckkh @ ora10g file = c: \ datanewsmgnt. dmp tables = (ckkh_account, ckkh_account_tmp)
// Export the table data of the database marked as ora10g to disk C
Imp ckkh/ckkh @ ora10g2 file = c: \ datanewsmgnt. dmp full = y
// Import the exported dmp file to the database marked as ora10g2.

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.