oracle-DBlink Basic Operation

01, the query

  查询DBLINK信息
  select * from dba_db_links;
  select owner,object_name from dba_objects where object_type='DATABASE LINK';
  select * from ALL_DB_LINKS;

02, created

Oracle dblink creation error: ORA - 01017 , ORA - 02063 Solution: 
According to ORA - Tips 01017 is connected to the other user password error when 9i or 10g version of the Oracle database version 11g connection, the password will automatically convert uppercase.
** Password is best to use double quotes, otherwise an error when linking 

the Create  Database Link dblink name 
  Connect to the database username IDENTIFIED by "Database Password" 
 a using ' (the DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (the HOST = 192.168.0.1) (PORT = 1521))) (the CONNECT_DATA = (SERVICE_NAME = ORCL))) ' ;  
- If you create a global dblink, you must use the systm or sys user, add public before the database.  
the Create  public  Database Link dblink name 
  Connect to the database username IDENTIFIED by "Database Password" 
  a using ' (the DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.1) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ORCL))) ' ;  

03, delete

--删除DBLINK
DROP DATABASE LINK [name]; --DROP PUBLIC DATABASE LINK [name]; 

Guess you like

Origin www.cnblogs.com/kingle-study/p/12029639.html