Create and test an Oracle JDBC/OCI data source in JetBrains DataGrip so you can browse schemas and run SQL.
DataGrip offers code completion, schema navigation, version control integration, and AI-powered query help—features SQL*Plus lacks. Connecting Oracle unlocks these advantages instantly.
Use either the official Oracle JDBC Thin driver (ojdbc[version].jar) or the Oracle OCI driver for native authentication.DataGrip downloads them automatically when you create a new Oracle data source.
Open File ▸ Data Sources ▸ + ▸ Oracle, choose Driver: Oracle, and fill in host, port, service/SID, user, and password. Click Test Connection to verify.
Older databases often expose a SID (e.g., ORCL). Newer multitenant setups use a service name (e.g., orclpdb1).DataGrip supports both—select the correct radio button.
Under the Advanced tab, toggle Use custom URL and paste a string such as jdbc:oracle:thin:@//db.acme.com:1521/orclpdb1
. This is useful for load-balancer VIPs or wallets.
Yes. Put the wallet in a secure local folder, set TNS_ADMIN in DataGrip’s Environment tab, and use Connection type: TNS.DataGrip will read tnsnames.ora
entries automatically.
Once connected, open a new SQL console and run:SELECT c.name, o.total_amountFROM Customers cJOIN Orders o ON o.customer_id = c.idWHERE o.order_date > SYSDATE - 30;
Enable Introspection ▸ Use dual session to avoid locking; pin production connections as Read-only; and save common queries to Snippets or Galaxy Collections for team reuse.
.
No. The Thin JDBC driver bundled by DataGrip is self-contained. Only wallet-based or OCI auth needs an Oracle client.
Yes. In the SSH/SSL tab, check Use SSL, point to wallet files or truststore, and retest the connection.
Export the data source to .idea/dataSources.xml
or share a Galaxy Collection containing the DSN and queries.