Oracle sqlplus logon command

Source: Internet
Author: User

Remember how to use the oracle sqlplus logon command. 1, {<username> [/<password>] [@ <connect_identifier>] |/} [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION = value] specifies the database account user name, the connection identifier of the password and the database connection. If there is no connection identifier, SQL * Plus will connect to the default database. As sysdba, as sysoper, and as sysasm options are database management permissions. <Connect_identifier> can be a Net service name or easily connected. In this case, you can connect to the local machine without starting lsnrctl. 2, {<username> [/<password>] @ [//] Host [: Port]/<service_name>] Host specifies the Host name or IP address of the database server computer. Port specifies the listening Port on the database server. <Service_name> specify the service name of the database to be accessed. In this case, you need to start the lsnrctl example: commonly used: sqlplus username/password, for example, normal user login sqlplus scott/tigersqlplus username/password @ net_service_name, for example: sqlplus scott/tiger @ orclsqlplus username/password as sysdba For example: sqlplus sys/admin as sysdbasqlplus username/password @ // host: port/sid note: sys and system must be logged on with sysdba. After Entering SQL * plus, you can use conn to connect to other users, such as conn sys/admin as sysdba.

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.