How to connect Net8 and Java clients using TCP/SSL ?
SQL*Net and Net8 History
Until Oracle 8, the database would only communicate with standard Net clients and use TTC (Two-Task-Common). Two-Task Common is Oracle's implementation of the OSI presentation layer. It provides character set and data type conversion between different character sets or formats on the client and server.
Net8 in an Oracle8i Environment
Oracle 8i and upcoming releases are highly devoted to the
Internet, and Java now integrates the
This release of Net8 supports a new presentation layer called General Inter-Orb Protocol (GIOP) that is used for those clients connecting to the Java option. Internet Inter-Orb Protocol (IIOP) is an implementation of GIOP over TCP/IP or TCP/IP with SSL. Oracle provides the GIOP service implementation.
IIOP Client-Side Interaction
IIOP clients have different communication stack than a typical Net8 client stack, as shown below, IIOP clients use:
Typical Client vs. IIOP Client Communication Stacks
The server side does not require many of the Net8 communication layers needed in a typical Net8 connection. Instead, the server side only requires a network protocol of TCP/IP and an Oracle protocol of TCP/IP or TCP/IP with SSL. The only component of Net8 required is Transparent Network Substrate (TNS). The figure below depicts a communication stack between an IIOP client and the Java option in the Oracle database.
Client/Server Communications Stack in an IIOP Environment
Secure Socket Layer SSL
Secure Socket Layer is a protocol used for sending encrypted information over the Internet. It was developed by Netscape and has been incorporated into many other web servers and browsers. It has become one of the most popular cryptographic protocols on the Internet and supporting SSL is now a necessity for many applications, SSL integrates encryption, authentication and data integrity. It uses public key certificates to authenticate both the client and the server in SSL transactions. SSL as a layer is implemented above TCP/IP and beneath the application layer.
Ports and Protocols
If you have configured SSL and specified a Listening port for SSL connections on 1521 you will end up with a TNS-12560 error when starting the listener.
Listener.ora Configuration for Net8 clients only
When using the Net8 assistant to configure your Listener locations you
get the choice between 3 protocol stacks (IIOP clients, Net8 clients and custom). Choose a
valid port as mentioned in the above table. Below are exampls of a Listener.ora file which
can handle traditional Net8 connections as well as SSL connections and Java clients using
SSL. Notice that entry point waiting for Java clients has a GIOP presentation layer instead
of TTC and does not use the Network Session layer (NS) which is part of the TNS component.
This is the reason why