Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Why domain name appended to database link name?
Dear Anton,
I did check sqlnet.ora and found nothing, I knew the good-old-day-Oracle-8 problem of appending ".world" to the connect string. Furhturmore, the two db's resides on the same server, the sqlnet.ora is shared since there is only one Oracle home, what makes one db work while the other don't?
By the way, as I forgot to mention, the Oracle is 8.1.7 Enterprise on Windows 2000 Advanced Server.
Regards,
Dino
> Check sqlnet.ora and tnsnames.ora used by the databases. Maybe the answer
is
> there.
> (When a database link is used, the database is the "client" and reads the
> sqlnet configuration to resolve the alias given in the database link).
>
> Dino Hsu <dino1.nospam_at_ms1.hinet.net> schreef in berichtnieuws
> b66hhq$6o1_at_netnews.hinet.net...
> | Dear all,
> |
> | This seems a simple question, but I am sorry I cannot find the answer
from
> | document or news posts, yet. If you know where I can find it, please
point
> | me to, thanks a lot.
> |
> | I want to create mutual database links for two related databases, say:
> | db1: SID=orc1, host=svr, connect string=ecdb_orc1
> | db2: SID=orc2, host=svr, connect string=ecdb_orc2
> |
> | These two databases are connected with SID instead of service_name, but
I
> | think this doesn't matter.
> |
> | sqlplusw userid/passwd_at_ecdb_orc1
> |
> | SQL> show parameter global_name
> |
> | NAME TYPE VALUE
>
| ------------------------------------ ------- -----------------------------> |
> -
> | global_names boolean FALSE
| --------------------------------------------------------------------------
| ----------------------------------------- -------- ----------------------
| ------------------------------------ ------- -----------------------------> |
> -
> | global_names boolean FALSE
> |
> | SQL> create database link ecdb_orc1 connect to speed identified by speed
> | using 'ecdb_orc1';
> |
> | Database link created.
| --------------------------------------------------------------------------