Create db links without tnsnames entry on the server
                                                 Last update (2011-05-05 10:46:09)
                                                                                                                   Date added (2008-02-17 16:20:27)

Summary
You can create a db link without having to create an alias entry at the tnsnames.ora file at the server. For example to create a public db link with name "GENEVA" which connects to user apps/**** at the database server
IP:10.101.5.200, PORT = 1521, SID = PRODGEN1
Use this sql statement
CREATE PUBLIC DATABASE LINK "GENEVA"
CONNECT TO apps
IDENTIFIED BY "*****"
USING '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.101.5.200
							    )(PORT = 1521
							    ))(CONNECT_DATA = (SID = PRODGEN1)))';
To test it from sqlplus
select * from dual@GENEVA;
Tip
The passwords for db links are visible until Oracle9i at sys.link$ view
select * from sys.link$;
Reviews
Categories
Oracle DBA-> (147)
  Alertlog (3)
  Archivelog (5)
  Auditing (1)
  Backup - Recovery (19)
  Database files (6)
  Database options (2)
  DB links (2)
  Dependencies (1)
  Dictionary (2)
  Exp-Imp Datapump (6)
  Jobs (2)
  Mview (2)
  Networking (3)
  Objects (7)
  Parameters (2)
  Redologs (6)
  Roles - Grants (2)
  Rollback - Undo (8)
  Segments (3)
  Sequences (2)
  Sessions (14)
  SGA (14)
  Tables (10)
  Tablespaces (10)
  Temp (4)
  Toad (5)
  Transactions (1)
  Upgrade (2)
  Users (3)
Oracle APPS DBA-> (66)
Exadata (1)
Performance Tuning-> (59)
Oracle Real Cases (24)
Oracle Errors (23)
Oracle SQL tricks (32)
Oracle RAC (3)
Oracle Security (8)
Filters
Search