- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- JDBC connection through firewall
Operating System - HP-UX
1753702
Members
4969
Online
108799
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
тАО03-06-2003 06:19 AM
тАО03-06-2003 06:19 AM
JDBC connection through firewall
I need to establish a JDBC connection from a Java application using JDBC Thin
driver to an Oracle DB passing through a firewall.
If the firewall rules are set to use IP authentication the connection works
fine, but if firewall rules are set to enable the communication only on port
1521 the connection doesn't work.
I have already read a document saying to place the parameter
"USE_SHARED_SOCKET = TRUE" in the Windows Registry of DB server, I tested it but without success.
The connection string I'm using is:
("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=dbho
stname)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=sid)))", user, password)
driver to an Oracle DB passing through a firewall.
If the firewall rules are set to use IP authentication the connection works
fine, but if firewall rules are set to enable the communication only on port
1521 the connection doesn't work.
I have already read a document saying to place the parameter
"USE_SHARED_SOCKET = TRUE" in the Windows Registry of DB server, I tested it but without success.
The connection string I'm using is:
("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=dbho
stname)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=sid)))", user, password)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 07:39 AM
тАО03-06-2003 07:39 AM
Re: JDBC connection through firewall
Hi Paolo:
Could the thin driver be causing a problem? The OCI driver is supposed to be more secure and have more capability. In fact I remember reading that you should not use the thin driver for production systems due to security reasons.
Tom
Could the thin driver be causing a problem? The OCI driver is supposed to be more secure and have more capability. In fact I remember reading that you should not use the thin driver for production systems due to security reasons.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 11:47 PM
тАО03-06-2003 11:47 PM
Re: JDBC connection through firewall
After set the parameter
"USE_SHARED_SOCKET = TRUE" in the Windows Registry of DB server, did you Restart Oracle and the listener? You need to do this for the parameter to take effect or the listener will not run properly.
Make sure that the script is written in the right directory of the registry.
if there are more than 1 Oracle Home:
- the first version installed will always looks for the parameter in: HKEY_Local_machine\software\oracle, while the second version will looks in HKEY_Local_machine\software\oracle\home#
- 8i always looks in HKEY_Local_machine\software\oracle\home#
"USE_SHARED_SOCKET = TRUE" in the Windows Registry of DB server, did you Restart Oracle and the listener? You need to do this for the parameter to take effect or the listener will not run properly.
Make sure that the script is written in the right directory of the registry.
if there are more than 1 Oracle Home:
- the first version installed will always looks for the parameter in: HKEY_Local_machine\software\oracle, while the second version will looks in HKEY_Local_machine\software\oracle\home#
- 8i always looks in HKEY_Local_machine\software\oracle\home#
Never give up, Keep Trying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 11:50 AM
тАО04-23-2003 11:50 AM
Re: JDBC connection through firewall
In the connect string for the client, you also need to have (SERVER=DEDICATED). With USE_SHARED_SOCKET=TRUE on the server, this will allow two way communication over port 1521.
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