DataGrip: how to connect to Oracle as SYSDBA
Asked Answered
I

5

34

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.

Insensible answered 8/9, 2016 at 14:29 Comment(0)
C
56

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)

Cumae answered 27/9, 2018 at 9:41 Comment(3)
How did you manage to change the advanced properties? I couldn't find the internal_logon key and was unable to add one.Cumae
I guess, available property names list comes from the driver when it's attached.Insensible
This does not work for me in v2022.1.4, while @Insensible solution to set internal_logon to sysdba in Advanced tab worked fineTerracotta
I
22

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.

Insensible answered 8/9, 2016 at 14:29 Comment(2)
Yeah, that's the answerSummarize
Not able to modify the values in that tab (2018.2.3). The sys as sysdba solution worked for me.Clearing
R
13

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.

Recusant answered 15/11, 2021 at 15:9 Comment(2)
Off-topic, how did make this screenshots?Revetment
inbuilt in mac. Command + Shift + 5. Then select Capture Selected Window. That's it!Recusant
E
7

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

Euglena answered 18/4, 2019 at 10:11 Comment(0)
L
0

sys as sysdba

As username works fine in Pycharm

Lesialesion answered 4/2, 2020 at 12:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.