Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> JDBC thin driver and encryption
Hey. I'm trying to make a connection with the thin driver (8.1.7) to a oracle 8.1.6 database with the following Java JDBC code:
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Properties props = new Properties();
try {
int level = AnoServices.REQUIRED; props.put("user","..."); props.put("password","XXXXXXX"); props.put("oracle.net.encryption_client", Service.getLevelString(level)); props.put("oracle.net.encryption_types_client", "DES56C"); props.put("oracle.net.crypto_checksum_client", Service.getLevelString(level)); props.put("oracle.net.crypto_checksum_types_client", "MD5");} catch (Exception e) { e.printStackTrace(); }
// You can put a database name after the @ sign in the connection URL. Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@localhost:1521:database_name", props);
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
The problem is I'm getting the exception : java.sql.SQLException: Oracle Error: ORA-12645
which is :
ORA-12645: Parameter does not exist.
Cause: A SQLNET.ORA parameter from which a value was needed does not exist.
Action: Set the parameter in the parameter file.
but I don't know which parameter I'm missing. Can anybody help me ?
Lars
-- Lars Rosenberg <lars_at_larsrosenberg.com>Received on Tue Jan 23 2001 - 02:15:47 CST
![]() |
![]() |