Home » RDBMS Server » Server Administration » db link
db link [message #49864] Thu, 14 February 2002 11:39 Go to next message
Richard
Messages: 44
Registered: May 2000
Member
Hi, experts:

I created a database link, but I couldn't access the remote database (table) by:

select * from mytable@mydb;

Do I have to do something else in order to access the table in other database?

Thanks

rich
Re: db link [message #49865 is a reply to message #49864] Thu, 14 February 2002 11:48 Go to previous messageGo to next message
Grant
Messages: 578
Registered: January 2002
Senior Member
mydb has to have an alias in your tnsnames.ora file.
Re: db link [message #49880 is a reply to message #49864] Fri, 15 February 2002 04:40 Go to previous messageGo to next message
Richard
Messages: 44
Registered: May 2000
Member
Grant:

Thank u. I did have an entry in my tnsnames.ora file like:

MYDB.MYSVR.MYCOMP.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCLE = TCP)
(HOST = MYDB.MYSVR.MYCOMP.COM)
(PORT = 1521)
)
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MYDB.MYSVR.MYCOMP.COM)
)
)

There must be something wrong with my configuration. But I don't know where. would you please give me a guide again?

Thank you.

richard
Re: db link [message #49884 is a reply to message #49864] Fri, 15 February 2002 05:48 Go to previous messageGo to next message
Grant
Messages: 578
Registered: January 2002
Senior Member
Post your sqlnet.ora file.
Re: db link [message #49891 is a reply to message #49884] Fri, 15 February 2002 09:19 Go to previous messageGo to next message
ricahrd
Messages: 4
Registered: February 2002
Junior Member
Grant:

my sqlnet.ora file is very simple:

NAMES.DIRECTOR_PATH= (TNSNAMES, ONAMES, HOSTNAME)

i don't known how to deal with this file. pls help me.

thanks

richard
Re: db link [message #49961 is a reply to message #49864] Wed, 20 February 2002 17:31 Go to previous message
chitlenz
Messages: 1
Registered: February 2002
Junior Member
Try setting your /etc/hosts filer to point to the offending server.

-Hope that helps - Chit
Previous Topic: DataBase Cloning.
Next Topic: Installation problem in Oracle
Goto Forum:
  


Current Time: Tue Aug 06 13:53:03 CDT 2024