Forum Discussion

yves42's avatar
yves42
Occasional Contributor
15 years ago

[Groovy] Connect as sysdba

Hello everybody,

I would like open a connection in a database as sysdba.

def sql = Sql.newInstance("jdbc:oracle:thin:LOGIN/MDP@instance", "oracle.jdbc.driver.OracleDriver")
sql.execute("CONNECT SYS/MDP@instance as sysdba");


I have the ORA-00900 error 'Sql instruction not valid'.

The command works in sqlplus and the def is valid (I tried an other request).

Regards,
Yves.
No RepliesBe the first to reply