- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle dblink problem
Operating System - HP-UX
1754940
Members
2741
Online
108827
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2002 08:33 AM
тАО10-03-2002 08:33 AM
Oracle dblink problem
Hello Gang,
I'm facing a strange problem with the use of a dblink, here i have put some details of the issue:
My database: an oracle 8.01
Remote db oracle 9i
I've been granted the access to the remote db with 'remuser'/'rempwd'
1st step: creation of the TNS service name 'RemoteService'to the remote db, I tested it and it works
2step: creation of the dblink in my database:
"create public database link linkname connect to remuser identified by rempwd using 'RemoteService'"
Now, if i connect using Sql+ with 'RemoteService' and remuser/rempwd, I'm able to perform my query
select * from ownername.nametable;
If with Sql logged to my database service I launch the below select:
select * from ownername.nametable@linkname;
the Sql session hangs without returning anything, nor errors neither data.
Do you have any idea of what the problem could be?
Thanks already!
I'm facing a strange problem with the use of a dblink, here i have put some details of the issue:
My database: an oracle 8.01
Remote db oracle 9i
I've been granted the access to the remote db with 'remuser'/'rempwd'
1st step: creation of the TNS service name 'RemoteService'to the remote db, I tested it and it works
2step: creation of the dblink in my database:
"create public database link linkname connect to remuser identified by rempwd using 'RemoteService'"
Now, if i connect using Sql+ with 'RemoteService' and remuser/rempwd, I'm able to perform my query
select * from ownername.nametable;
If with Sql logged to my database service I launch the below select:
select * from ownername.nametable@linkname;
the Sql session hangs without returning anything, nor errors neither data.
Do you have any idea of what the problem could be?
Thanks already!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2002 05:11 PM
тАО10-03-2002 05:11 PM
Re: Oracle dblink problem
When you say that it is hanging, do you let it sit for a while waiting, or do you cancel it?
Can you get the session wait event for the session as well?
You will need to get your current sid (select distinct sid from v$mystat) and then run the select statement, and in another session perform "select * from v$session_wait where sid =".
Thanks,
Brian
Can you get the session wait event for the session as well?
You will need to get your current sid (select distinct sid from v$mystat) and then run the select statement, and in another session perform "select * from v$session_wait where sid =
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 07:44 AM
тАО07-09-2003 07:44 AM
Re: Oracle dblink problem
Hi there,
Ever find an answer to this one?
Got the same problem myself. Is it something to do with /etc/hosts not having the remotes servers IP address? Hosts is owned by root so changing it just to try is a hassle.
Thanks,
Bobby
Ever find an answer to this one?
Got the same problem myself. Is it something to do with /etc/hosts not having the remotes servers IP address? Hosts is owned by root so changing it just to try is a hassle.
Thanks,
Bobby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 08:09 AM
тАО07-09-2003 08:09 AM
Re: Oracle dblink problem
Hello,
the problem was in remotenetservicename definition: it was defined into the tnsname.ora of my pc and hence I was able to log in using my oracle client
But when I tried from sqlworksheet of my database, since that name was not into init.ora parameter file, it was not recognized
You should use the following command
"create public database link linkname connect to remuser identified by rempwd using 'RemoteService'"
with an explicit definition for remoteservice instead of using the name alias defined only on your pc
Cheerz!
Giulio
the problem was in remotenetservicename definition: it was defined into the tnsname.ora of my pc and hence I was able to log in using my oracle client
But when I tried from sqlworksheet of my database, since that name was not into init.ora parameter file, it was not recognized
You should use the following command
"create public database link linkname connect to remuser identified by rempwd using 'RemoteService'"
with an explicit definition for remoteservice instead of using the name alias defined only on your pc
Cheerz!
Giulio
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP