William Peck
asked on
How to connect to PC #1 (running Oracle) from PC #2 (running Oracle client)
I have Oracle 11g (11.2.0.1.0) running on Windows 7 (PC #1), using Sql Developer, Sql Plus, everything seems fine. I've also connected via Oracle JDeveloper, Forms, Reports, and Designer, but all from PC #1.
I have installed Oracle Client on PC #2 and want to connect to PC #1 via Sql Plus (to test) and then via Oracle JDeveloper and some other tools. I can remote desktop into PC #1 so that's worked out already
I need to know how to re-configure or otherwise re-name "localhost" with a proper name and the IP address on PC #1 so PC #2 can connect via Oracle tools.
At the end of a previous post on Oracle, I was told that no remote client can connect to the listener using 127.0.0.1 [i.e., "localhost"]) as the hostname. I was also told this is a networking issue and has nothing to do with Oracle, and that the IP address needs to be routeable, e.g., 10.10.10.10 or 192.168.0.13
So how do I fix ?
Here is my tnsnames on PC #1, followed by listener status.
tnsnames
I have installed Oracle Client on PC #2 and want to connect to PC #1 via Sql Plus (to test) and then via Oracle JDeveloper and some other tools. I can remote desktop into PC #1 so that's worked out already
I need to know how to re-configure or otherwise re-name "localhost" with a proper name and the IP address on PC #1 so PC #2 can connect via Oracle tools.
At the end of a previous post on Oracle, I was told that no remote client can connect to the listener using 127.0.0.1 [i.e., "localhost"]) as the hostname. I was also told this is a networking issue and has nothing to do with Oracle, and that the IP address needs to be routeable, e.g., 10.10.10.10 or 192.168.0.13
So how do I fix ?
Here is my tnsnames on PC #1, followed by listener status.
tnsnames
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
Listener statusLSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2014 12:36:30
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date 04-AUG-2014 15:27:39
Uptime 0 days 21 hr. 8 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\app\Stephen\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File e:\app\stephen\diag\tnslsnr\Stephen-PC\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>For a test, drop the firewall on both systems and try
-- if only I knew how to do that . . . I'll google it and let you know.
I also modified the listener file to listen to 192.168.1.9 and not 127.0.0.1, still no luck.
-- if only I knew how to do that . . . I'll google it and let you know.
I also modified the listener file to listen to 192.168.1.9 and not 127.0.0.1, still no luck.
ASKER
Ok, I disabled the local firewall on both, now it says
"TNS listener does not currently know of service requested in connect descriptor"
"TNS listener does not currently know of service requested in connect descriptor"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
worked !!!!!!!!!!!!!!!
So in changing to 192.168.1.9 things got a little out of whack, but the register (and re-boot) must have done the trick !
I'll put the firewalls back on and see if it still works.
Here's the listener status for the record:
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2014 19:58:48
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO TOCOL=IPC) (KEY=EXTPR OC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date 05-AUG-2014 19:53:18
Uptime 0 days 0 hr. 5 min. 34 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\app\Stephen\product\11. 2.0\dbhome _1\network \admin\lis tener.ora
Listener Log File e:\app\stephen\diag\tnslsn r\Stephen- PC\listene r\alert\lo g.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO TOCOL=ipc) (PIPENAME= \\.\pipe\E XTPROC1521 ipc)))
(DESCRIPTION=(ADDRESS=(PRO TOCOL=tcp) (HOST=192. 168.1.9)(P ORT=1521)) )
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
and for fun, my connection from the remote PC:
So in changing to 192.168.1.9 things got a little out of whack, but the register (and re-boot) must have done the trick !
I'll put the firewalls back on and see if it still works.
Here's the listener status for the record:
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2014 19:58:48
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date 05-AUG-2014 19:53:18
Uptime 0 days 0 hr. 5 min. 34 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\app\Stephen\product\11.
Listener Log File e:\app\stephen\diag\tnslsn
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO
(DESCRIPTION=(ADDRESS=(PRO
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
and for fun, my connection from the remote PC:
>>I'll put the firewalls back on and see if it still works.
If it doesn't then you'll need to set up rules to allow at least 1521 through.
Oracle changed things recently so you may not need to add ALL the high-level ports through but in the past you did. I've not been on the network side of things for MANY years so cannot help with the exact rules you'll need to add.
If it doesn't then you'll need to set up rules to allow at least 1521 through.
Oracle changed things recently so you may not need to add ALL the high-level ports through but in the past you did. I've not been on the network side of things for MANY years so cannot help with the exact rules you'll need to add.
ASKER
I turned the firewall back on, on both PC's, and it didn't work. So I turned it off on PC # 1, and it worked.
Thanks for sticking with this !
Thanks for sticking with this !
ASKER
big help to allow me to set up a remote connection to Oracle.
ASKER
I got the local ip address as 192.168.1.9 on PC #1
I then added that to tnsnames on PC #2
Open in new window
but it didn't work :-(