Connect SQL plus to Oracle

Source: Internet
Author: User
Tags dedicated server

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.