30

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.

Vadzim
  • 24,954
  • 11
  • 143
  • 151

5 Answers5

50

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)

Lerk
  • 946
  • 1
  • 15
  • 21
  • How did you manage to change the advanced properties? I couldn't find the `internal_logon` key and was unable to add one. – Lerk Oct 05 '18 at 12:36
  • 1
    I guess, available property names list comes from the driver when it's attached. – Vadzim Oct 05 '18 at 12:46
  • 1
    This does not work for me in v2022.1.4, while @Vadzim solution to set `internal_logon` to `sysdba` in Advanced tab worked fine – Andrea Di Stefano May 25 '22 at 14:32
21

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.

Vadzim
  • 24,954
  • 11
  • 143
  • 151
12

While this has been answered already. I would like to be a little more descriptive by adding screenshots.

Add a new database. Make sure the username is set to sys as sysdba. The default password usually is oracle.

enter image description here

Now moved to Advanced tab. Here find internal_logon and set it's parameter to sysdba.

enter image description here

That's it. You're ready to connect.

6

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

Vadzim
  • 24,954
  • 11
  • 143
  • 151
Arun
  • 71
  • 1
  • 2
0

sys as sysdba

As username works fine in Pycharm

speznaz
  • 98
  • 1
  • 10