If my
JDBC driver connect as SYS user, how can I specify the SYSDBA role? I encountered this exception when connecting from a DataSource:
Exception in thread "main" java.sql.SQLException: ORA-28009: connection to sys should be as sysdba or sysoper I know that if I get connection from DriverManager, I can pass a property object with the
internal_logonproperty set to
sysdba. But similar option doesnt seem to exist for
OracleDataSource. How could I do it if I want to go thru the datasource?