Just a little reminder...

the following snippet doesn't work, are ther any additional driver properties required?
Can somebody with an oracle-connection check this?

mDBProperties(0).Name = "User"
mDBProperties(0).Value = "Me"
mDBProperties(1).Name = "Password"
mDBProperties(1).Value = "secret"
oDriver = createUNOService("com.sun.star.sdbc.DriverManager")
sDatabaseURL = "jdbc:oracle:thin:@//IPAddress:1521/DBName"
oConnect = oDriver.getConnectionWithInfo(sDatabaseURL,mDBProperties())

Thanks
Peter

------------
WinNT SP 6 and m125


Peter Eberlein schrieb:
Hi,

connecting to a non-registered Oracle DB with the DriverManager fails (Null-object).
As URL I used "jdbc:oracle:thin:@//IP-Address:1521/DatabaseName".

It is no problem to establish the connection manually with one of the database entries JDBC or Oracle JDBC.

I could also succesfully connect via API with the registered Database and the DatabaseContext Service.
Connection.MetaData.URL gives me exactly the same URL as mentioned above.

Any hints?

I also tried the Service com.sun.star.comp.sdbc.JDBCDriver with the JavavDriverClass as Property without success.

Regards

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to