How to configure database connection in PL/SQL?
To set up PL/SQL Developer to connect to the database, follow these steps:
- Open PL/SQL Developer.
- Click on the “Connect” button in the toolbar or select the “File” > “Connect” menu option.
- Select “Oracle” as the database type in the “New Connection” dialogue box.
- Input the following information in the “Connections” tab.
- Username: Input the username for the database connection.
- Password: Enter the password of the database user.
- Host: Enter the hostname or IP address of the database.
- Port: The port number used to input into the database. By default, Oracle database uses port 1521.
- Please provide the name of the service for the database. If you are unsure of the service name, please reach out to the database administrator.
- Click the “test” button to test the connection.
- If the connection is successful, click the “OK” button to save the connection configuration.
Now, you can connect to the configured database using PL/SQL Developer and start writing PL/SQL code.