Connect SQL plus to Oracle
There are three methods for SQLPlus connection.
1. sqlplus/as sysdba
Operating system authentication does not require the database server to start listener or the database server to be available. For example, if you want to start the database, you can use this method to access sqlplus and then start it using the startup command.
2. sqlplus username/password
The listener process of the database server is not required to connect to the local database. However, the database server must be available because the user name and password authentication is required.
3. sqlplus usernaem/password @ orcl
Connect through the network. This requires that the listener of the database server be in the listening state. The procedure for establishing a connection is as follows:
A. query sqlnet. ora and check the name resolution method. The default value is TNSNAME.
B. query the tnsnames. ora file, find the orcl record from the file, and find the host name or IP address, port, and service_name of the database server.
C. If there is no problem with the listener process on the server, establish a connection with the listener process.
D. Depending on different server modes, such as dedicated server mode or shared server mode, listener takes the next action. The default mode is dedicated server. If there is no problem, the client will connect to the server process of the database.
E. The connection has been established and you can operate the database.
Oracle Study Notes: sqlplus User Logon
Sqlplus ORA-01017 when logging on to Oracle: invalid username/password; logon denied Error
Install Oracle 11gR2 (x64) in CentOS 6.4)
Steps for installing Oracle 11gR2 in vmwarevm
Install Oracle 11g XE R2 In Debian