How to connect after creating a user in SQL*Plus?
To connect to a newly created user in SQL*Plus, you can follow these steps:
- Open the command prompt or terminal window.
- accessing SQLplus
- Enter the connection information:
SQL> connect username/password@hostname:port/service_name
其中:among them
- The username is the username of a newly created user.
- The password is for newly created users.
- The hostname is the name or IP address of the database server.
- The port is the default port number of the database server, which is 1521.
- service_name is the service name of the database.
- Press the Enter key and wait for the connection to be successful.
After successfully connecting, you will see a prompt similar to the following in SQL*Plus:
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
Now you can perform SQL queries and commands in SQL*Plus.