To connect to a remote Oracle database through Navicat, follow the following steps: create a new connection, and configure parameters such as host name/IP, port, service name, user name, and password. (Optional) Set advanced options such as SSL, character set, database roles. Test the connection to verify it is successful. Save the connection configuration.
How to use Navicat to connect to a remote Oracle database
Step 1: Establish a new connection
- Start Navicat.
- Click the "Database" menu > "New Connection".
- Select "Oracle" in the "Connection Type" drop-down menu.
Step 2: Configure connection parameters
-
Connection name: Specify an easily identifiable name for the connection.
-
Hostname/IP Address: Enter the hostname or IP address of the remote Oracle database.
-
Port: Specify the port number for the Oracle listener (usually 1521).
-
Service name: Enter the TNS service name of the target Oracle database.
-
Username: Enter the Oracle username with permission to connect.
-
Password: Enter the corresponding username and password.
Step 3: Advanced options (optional)
-
SSL: Check this if you are using SSL to connect to the database options.
-
Character set: Specify the character set to ensure correct character handling.
-
Database Role: If required, specify the database role to connect to.
Step 4: Test the connection
- Click the "Test Connection" button to verify whether the connection is normal.
- If the connection is successful, the "Connection successful" message will be displayed.
Step 5: Save the connection
- Click the "OK" button to save the connection configuration.
- The new connection that has been established will appear in Navicat’s Database panel.
Tip:
- If you do not know the TNS service name, you can get it by running the following command on the Oracle database server:
lsnrctl status
.
- If the connection fails, check whether the connection parameters are correct and make sure the target database is running and accepting connections.
The above is the detailed content of How to connect navicat to remote oracle. For more information, please follow other related articles on the PHP Chinese website!