![]() ![]() (Optional) By default, only the default schema is introspected and available to work with. In case of any connection issues, refer to the Cannot connect to a database page. To do that, click the Test Connection link at the bottom of the connection details area. In the TNS name field, use the automatic completion ( Control+Space) to select which service name to use (see a value of an alias in the tnsnames.ora file).Įnsure that the connection to the database can be established using the provided details. In the TNSADMIN field, click the browse button and navigate to the directory with the Instant Client files (in our case, ~/Oracle/instantclient_19_8/network/admin). Navigate to Data Source and select Oracle.įrom the Connection type list, select TNS.Ĭlick the Driver link and select the driver entry that you created on Step 1 (in our case, Oracle ). In the Database Explorer ( View | Tool Windows | Database Explorer), click the New icon ( ) in the toolbar. You can do this using one of the following ways:įrom the main menu, navigate to File | New | Data Source and select Oracle. To connect to the database, create a data source that will store your connection details. In the directory, select the following files: ojdbc8.jar, orai18n.jar, and oraclepki.jar. In the file browser, navigate to the directory with the Instant Client files (for example, ~/Oracle/instantclient_19_8). In the Driver Files pane, click the Add icon ( ) and select Custom JARs…. You can use the DataGrip provided driver or the ones provided with Instant Client. Otherwise, you will receive an error that the native library cannot be loaded. For example, if you use the Oracle driver 19.8.0.0, the instant client must be of the same version. Versions of the driver and the instant client must be the same. In the file browser, navigate to the directory of the Instant Client files (for example, ~/Oracle/instantclient_19_8) and click Open. In the Driver Files pane, click the Add icon ( ) and select Native Library Path…. In the list of drivers, right-click the Oracle driver and select Duplicate.Ĭhange the name of the duplicated Oracle driver (for example, Oracle ). In the Data Sources and Drivers dialog, click the Drivers tab. In the Database Explorer Command 1 ( View | Tool Windows | Database Explorer), click the Data Source Properties icon ( ). You can open data source properties by using one of the following options: Running Oracle Cloud instance with access permissions for your user.Ĭreating the Oracle Cloud data source Step 1. For more information about wallets, refer to Creating and Managing Oracle Wallet and Download Client Credentials (Wallets) at. You can create a wallet by using the Oracle tooling or ask your Oracle server administrator to generate the wallet. Oracle Wallet is a set of files that stores all the user credentials such as certificates, certificate requests, and private keys. ![]() In this case, the JDBC driver's version must be the same as the version of these native libraries. In OCI mode, the JDBC driver uses native libraries. In this mode, various versions of the JDBC driver can be used. In Thin mode, the JDBC driver always connects to the TNS listener. The following driver modes are available: To download Oracle database software, refer to the official software downloads.įor more versions of Oracle JDBC driver, refer to the official JDBC driver downloads.ĭownload the following Oracle Instant Client (OCI) packages for your operating system from the Oracle Instant Client Downloads page at :ĭataGrip uses JDBC drivers to connect to the Oracle server through the TNS protocol. Official documentation and softwareįor full information about Oracle, refer to the official documentation. Only after that you will see the DataGrip interface and will be able to create connections. You need to create and open a project from the Welcome Screen. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |