Oracle dblink Operation Summary

Source: Internet
Author: User

We know that database connection operations are essential and important for us to operate databases. This article mainly introducesOracle DatabaseOfDBLINK operationThe summary of the command is here to share with you for your reference. Next we will introduce these.

-- Query the global name of the current device set

 
 
  1. SELECT * FROM GLOBAL_NAME 

-- Establish a connection to the target database

 
 
  1. create database link BSITZ.REGRESS.RDBMS.DEV.US.ORACLE.COM connect to tzadmin identified by sa using 'BSITZ' 

-- Query whether the connection is successful

 
 
  1. select * from dual@BSITZ.REGRESS.RDBMS.DEV.US.ORACLE.COM 

-- Query target database information

 
 
  1. select * from base_funcset@BSITZ.REGRESS.RDBMS.DEV.US.ORACLE.COM 

-- Write the target database

 
 
  1. INSERT into base_funcset@BSITZ.REGRESS.RDBMS.DEV.US.ORACLE.COM values('aaa','aaa',1) 

-- Modify the target database

 
 
  1. update base_funcset@BSITZ.REGRESS.RDBMS.DEV.US.ORACLE.COM set description='bbb' where fsid='aaa'; 

-- Delete the target database

 
 
  1. delete from base_funcset@BSITZ.REGRESS.RDBMS.DEV.US.ORACLE.COM where fsid='aaa' 

Here is an introduction to Oracle Database DBLINK operations.

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.