Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: database link name
fitzjarrell_at_cox.net wrote:
> Charles Hooper wrote:
>> skyloon wrote: >>> in oracle 9i, when I create database link, i put the name as CBSFAS, >>> after save it, the name will become CBSFAS.US.ORACLE.COM. >>> >>> when select * from <table name>@CBSFAS, it returns error >>> when select * from <table name>@CBSFAS.US.ORACLE.COM, it returns >>> result, any body know why? how to get only CBSFAS as my database link >>> name? >> If you create the database link using SQLPlus rather than OEM, you >> should be able to avoid this problem. For assistance with the syntax, >> see: >> http://www.oracle.com/pls/db102/ranked?word=create+dblink >> >> Charles Hooper >> PC Support Specialist >> K&M Machine-Fabricating, Inc.
I'd be really pleased if you were correct. Alas that is no longer the case.
SQL*Plus: Release 10.2.0.2.0 - Production on Fri
Copyright (c) 1982, 2005, Oracle. All Rights Re
Connected to:
Oracle Database 10g Enterprise Edition Release 1
With the Partitioning, OLAP and Data Mining opti
SQL> set linesize 121 SQL> col name format a40 SQL> col value format a40 SQL> SELECT name, value
2 FROM gv$parameter
3 WHERE name LIKE '%global%';
NAME VALUE ---------------------------------------- ------- global_context_pool_size global_names FALSE
SQL> CREATE DATABASE LINK local
2 CONNECT TO hr IDENTIFIED BY hr
3 USING 'local';
Database link created.
SQL> col name format a100
SQL> select name from link$;
NAME
2 FROM dba_db_links;
DB_LINK
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Fri Dec 08 2006 - 10:10:14 CST