Oracle Data Accesses other Oracle databases.

Source: Internet
Author: User

Oracle Data Accesses other Oracle databases.

Create a database link in the local oracle database
Drop database link mydblink;
Create database link mydblink connect to zszq identified by "zszq" using '192. 168.0.175: 192/orcl ';

SQL> DROP DATABASE LINK MYDBLINK;

The database link has been deleted.

SQL> create database link mydblink connect to zszq identified by "zszq" using '192. 168.0.175: 192/orcl ';

The database link has been created.

SQL>
Table accessing the remote database
Select * from table name @ mydblink
Example
Select * from table name @ mydblink
Select OP, OP_NAME FROM INV_MESSAGE @ mydblink

SQL> select OP, OP_NAME FROM INV_MESSAGE @ mydblink WHERE ROWNUM <3;

OP OP_NAME
----------------------------------------------------------------------
JZ01 qianna
FH01 Fang Hong

SQL>


Million-level data processing

Timestamp and partition processing. By default, only data in specific regions is displayed, not all.


 

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.