Database link:
A database links allows an Oracle client to access two or more databases as one
logical database via a connection between the database servers. Database links are actually entries in a data dictionary table that define
a communication path from one Oracle database to another remote database. In order to access the database link a user must be connected to the
database that contains the data dictionary table that defines the database link
Types Of Database Links
Private and Public
Private Link
To create a private database link, you must have the CREATE DATABASE LINK
system privilege. To create a public database link, you must have the CREATBE PUBLIC DATAASE LINK
system privilege. Also, you must have the CREATE SESSION system privilege on the remote Oracle database.
Private database link to a user in a remote database
SQL> CREATE DATABASE LINK orcl_remote CONNECT TO scott IDENTIFIED BY tiger USING 'orcl'; Database link created.
Private database link to a user in a remote database, with the full connection string
SQL> CREATE DATABASE LINK scott_remote CONNECT TO apple IDENTIFIED BY apple USING '(DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.24)(PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=orcl)) )'; Database link created.
Thank you for giving your valuable time to read the above information.
If you want to be updated with all our articles send us the Invitation or Follow us:
Ramkumar’s LinkedIn: https://www.linkedin.com/in/ramkumardba/
LinkedIn Group: https://www.linkedin.com/in/ramkumar-m-0061a0204/
Facebook Page: https://www.facebook.com/Oracleagent-344577549964301
Ramkumar’s Twitter : https://twitter.com/ramkuma02877110
Ramkumar’s Telegram: https://t.me/oracleageant
Ramkumar’s Facebook: https://www.facebook.com/ramkumarram8