Two Methods for oracle to connect to a remote database to export data

Source: Internet
Author: User

How can I export data from a remote database through oracle? The following describes how to connect to a remote database to export data from oracle for your reference.

How to export data from a remote database using oracle.

Run the following SQL statement to create a database link:

 
 
  1. Create database link test_link -- link name
  2. Connect to username identified by password
  3. Using '(DESCRIPTION =
  4. (ADDRESS_LIST =
  5. (ADDRESS = (PROTOCOL = TCP) (HOST = database server ADDRESS) (PORT = PORT) -- default PORT 1521
  6. )
  7. (CONNECT_DATA =
  8. (SERVICE_NAME = ctaiscs) -- we recommend that you use the global database name after oracle9i.
  9. )
  10. )'
  11.  
  12. SERVICE_NAME = ctais, using SID = database SID

OK. Now you can query the remote database.

 
 
  1. Select *  from  employee@test_link 

Method 2

A) configure the service name

Open C: \ Oracle \ ora92 \ network \ admin \ tnsnames. ora and add the service name.

 
 
  1. Service name =
  2. (DESCRIPTION =
  3. (ADDRESS_LIST =
  4. (ADDRESS = (PROTOCOL = TCP) (HOST = 10.6.30.12) (PORT = 1521 ))
  5. )
  6. (CONNECT_DATA =
  7. (SERVICE_NAME = Global Database Name) -- Also available SID = database SID
  8. )
  9. )

B) Create a database connection

 
 
  1. Create database link test_link -- link name
  2.  
  3. Connect to username identified by password
  4.  
  5. Using 'service name'

The following processing method is the same:

Oracle RMAN backup Optimization

Oracle EXP/IMP backup Overview

Oracle backup using RMAN

How to Implement ORACLE backup

Oracle backup command to use instances

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.