I have been asked to translate an automation code from VisualBasic into java 8.
This is the old code:
connectionString = "Provider=MSDASQL;" & _
"FileDSN=" & dsn & ";" & _
"DATABASE=Attach 'filename aaa$db';" & _
"UID=aaa$client;" & _
"PWD=" & psw
'log.Message connectionString
Set connection = Sys.OleObject("ADODB.Connection")
connection.ConnectionString = connectionString
Call connection.Open
The idea is to query via oracle.rdb.jdbc.rdbnative.Driver, but I get ClassNotFoundException or via Jsch given the db reside on an OpenVMS system, but multiple commands don't work.
This is the old schema of the DSN file used for visual basic.
[ODBC]
DRIVER=Oracle Rdb Driver
CSO=1
XPT=2=tcp/ip
DATABASE=attach 'filename aaa$db'
CLS=generic
SVR=1.1.1.1
DBA=W
TLO=O
SERVER=1.1.1.1@generic@123456789@W
Any ideas to solve my problem?