how to setup datagrip 2019 connect to oracle with Kerberos authentication


Is there example to set up datagrip 2019 connecting to oracle with Kerberos authentication? how to specify path for krb5.conf and credential cache file? thanks.

Comment actions Permalink


There is a good guidance


Use to specify path to your config:

Note that you can put command-line options in your data source advanced tab VM options

Comment actions Permalink

thanks Vasily!

I am running DataGrip in Windows. Could you also let me know how to set up for below?

1. credential cache file: it is created by kinit and saved in c:\users[my_id]\krb5cc_[my_id]

2. specify location of sqlnet.ora

3. tnsnames.ora is saved in my H:/TNSNAMES. Should I config anything in the "General" tab?





Comment actions Permalink

Can someone help with above questions? thanks

Comment actions Permalink

Did something like this few days back. (LDAP auth group)

In my case I had the sqlnet.ora to point at the krb5.conf. So I did not need VM options.

The 'Thin' Driver did not work for me (probably not supporting kerberos)

Switch to 'OCI' instead.


My SQLNET.ORA had following properties (doc ref here






AND One more setting I cannot remember



Comment actions Permalink

vasily chernov, I configured the VM options followed your instruction but still not able to connect to the DB using Kerberos. I keep getting "The specified database user/password combination is rejected: [72000][1017] ORA-01017: invalid username/password; logon denied" error with the credentials prompt. However, I have no problem connecting to the DB using Kerberos in SQL Developer. Could you please help?

Comment actions Permalink

Is it possible for you to post your datagrip settings ?

Are you using thin driver or oci driver. Kerberos does not work with thin driver

Comment actions Permalink


Had to redact some information but this is my config in DataGrip. I do use thin driver, which is the same as what I used in SQL Developer. However, I have tried using OCI thick driver and I got a different error "no ocijdbc12 in java.library.path"

Comment actions Permalink

Thin driver never worked for me.
Once you switch drivers to OCI, it gives a warning saying drivers are unavailable. Click that to install it.

Then it should work. Let me know if it doesn't

Comment actions Permalink

Supun1001 OCI never worked for me not even in SQL Developer. Same error.

Comment actions Permalink

Can you open command prompt and type klist
This should list your Kerberos tickets
If you do not have one
Sqlplus /@

This may fail, if does try

Klist again and see if you have been granted new tickets

Comment actions Permalink

Michelle Crabtree

K here is my setup.

1. I am using MSLSA based cred cache (well OSMSFT:)

2. Just got a empty VM (No oracle installation but I have PyCharm that is not setup)

3. Place my krb5.conf in "C:\temp"

4. Now to setup (select OCI as driver/ And click Download at the bottom near warning sign)


5. I have my tnsnames.ora and sqlnet.ora in C:\oracle\tnsfiles

6. Use that and attempt to connect and I get this 

7. I believe you saw this. This is because you do not have the OG OCI client.

8. Now go to here ( and download your required driver version

9. Start installing as instant client. (This is the most basic setup and it is adequate for my requirement)


10. Go to installation folder and create a new folder network and inside that folder create sub folder admin

11. Place the tnsnames.ora and sqlnet.ora  in this folder


11. now restart your pycharm so that ORACLE_HOME envar (not listed in envars) to flow through

12. Go to Database connection window, set driver as 'Oracle' if you see use latest drivers warning at the bottom click that


Comment actions Permalink

Supun1001 Thank you for the detailed instruction! I do have Oracle instant client installed and I'm on Mac, but it keeps saying the ocijdbc12 is missing. I have read lots of other posts but unfortunately none of them could fix my problem.

One thing threw me off is how come I could connect to the database in sql developer but not in datagrip even the settings seems the same. I'll keep looking for answers, though. Thank you for all your help!

Comment actions Permalink

Functionality is implemented out of the box.
It will be available in DataGrip 2021.3 release.

For now refer to the latest comment in the issue DBE-6732


Please sign in to leave a comment.