Connection to the database (learning Note)

Source: Internet
Author: User

After the Oracle installation is complete, several services are added to the service

Because Oracle consumes system resources, it is recommended that you change the service type to manual, and then manually open when needed, and shut down the service when not in use.

You can also use the following batch to complete.

start: @echo off Echo Are you sure you want to start the Oracle 11g service? Pausenet start oracleoradb11g_home1tnslistenernet start oracleserviceorclnet start ORACLEDBCONSOLEORCLEcho  when the Oracle 11g service is started, verify that there are no errors. Pause
stop @echo off Echo Are you sure you want to stop the Oracle 11g service? Pausenet Stop oracledbconsoleorclnet Stop oracleserviceorclnet stop Oracleoradb11g_home1tnslistenerEcho  to stop the Oracle 11g service from completing, verify that there are no errors. Pause

Oracle Service Description:

Oraclejobschedulesid Task Scheduling Service

ORACLESERVICESID Database Services

Oraclehome_nameisql*plus isql*plus Service

ORACLEDBCONSOLESID Database Console Service

Oraclehome_nametnslistener Monitoring Server

To connect to an Oracle database:

Sqlplus command to connect to the database: to open the oracleservicesid database service

In the Command line window:

C:/>sqlplus

Enter user name

Enter password

Appear

Sql> Description Login Successful

Connect the specified database command to open the oraclehome_nametnslistener Listener Server

C:/>sqlplus username/password @ database name

Start sqlplus do not log on to the database and connect to the database

C:/>sqlplus/nologconn  user name /password @ database name

Three ways to connect to a database using Plsql developer

Normal : Normal User, general programmer use

sysoper: system operators, rarely used, usually do backups, log operations

SYSDBA: system administrators, professional database managers use

Connection to the database (learning Note)

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.