Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataGrip: how to connect to Oracle as SYSDBA

I tried to setup in DataGrip an Oracle connection under SYS user.

But got error:

ORA-28009: connection as SYS should be as SYSDBA or SYSOPER

But there is no option in GUI to choose as SYSDBA option.

like image 614
Vadzim Avatar asked Sep 08 '16 14:09

Vadzim


3 Answers

Coming back here two years later, it seems to be not possible anymore to change the advanced properties in the connection settings.

Instead you have to supply sys as sysdba as username. (This might seem obvious but took me a while to find this out)

like image 125
Lerk Avatar answered Oct 11 '22 22:10

Lerk


While there is no easy switch currently, it's still possible to go to Advanced tab in connection's properties and set internal_logon param to sysdba value.

like image 38
Vadzim Avatar answered Oct 11 '22 20:10

Vadzim


sys as sysdba as username works fine for Database plugin in IntelliJ IDEA.

like image 44
Arun Avatar answered Oct 11 '22 21:10

Arun