What Are The Steps To Create Dblink
What Are The Steps To Create Dblink
1)If you are creating public dblink, you will need a user with the following permissions:
If you are creating dblink, you will need a user with the following permission:
If the value of the GLOBAL_NAMES initialization parameter is TRUE, then the database link must
have the same name as the database to which it connects.
Please note: global_names is required to be TRUE for replication.
The GLOBAL_NAME is made up of the db_name and the db_domain, and the first element (before
the
first . in a global name is treated as the 'db_name' and the rest of the global_name is treated as
the 'db_domain'.
To find global_Name:
SQL> col value$ format a40
SQL> col comment$ format a40
SQL> SELECT *
FROM props$
ALTER DATABASE RENAME GLOBAL_NAME TO <The name you want to change it to>;
SQL> SELECT *
FROM props$
CONNECT TO CURRENT_USER
USING '<service_name>';
* The service name used above must be in the TNSNAMES.ORA file on the server. If it does not exist
you can create one like below:
connection_link =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <Destination host name>)(PORT = 1521))
)(CONNECT_DATA =