Use the SQL * Plus query tool to connect to the Oracle database

Source: Internet
Author: User

before connecting to the database server, first, you must enable two Oracle-related services in the control panel-Administrative Tools-service of Windows: oracleorahome92tnslistener (listener service) and oracleservicechstone (instance service ), if the local machine is used as a server and does not accept remote client login, you can simply enable the next instance service.
establish a connection: Start- Program -Oracle-OraHome92-Application development-SQL plus, the Login Dialog Box appears, enter the user name and password, the host string is the previously configured net service name. If it is null, it means to connect to the default database on the local machine.
use start-run to establish a connection:
enter SQL * Plus in the "sqlplus" status, enter "sqlplusw" to enter SQL * Plus in WINDOS state. You can directly enter the user name and password to log in.

for example, "sqlplusw Scott/Tiger". to log on to a remote server, add a host string to the backend, separate the host string with @ and the password. For example, to log on to a remote server, use the net service name we configured above, that is, "sqlplusw Scott/tiger @ testservice ".
the $ symbol is used to execute doscommands in SQL * Plus, such as starting or disabling services:
$ Net start oracleservicechstone (Starting Services)
$ net stop oracleservicechstone

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.