Connect to Linux Server operations Oracle database

Source: Internet
Author: User
Tags sqlplus

1. Connect to a Linux server (enter the IP address of the server)

SSH 10.199.94.227

When the connection is successful, you will be prompted to enter the password.

2. Switch to Operation Oracle database

Su-oracle

A successful switchover prompts an instance of the relevant database. For example: [Email protected]:~>

3. Switch to Sqlplus operation

Sqlplus/nolog

A successful switch prompts you for a hint: for example:

Sql*plus:release 11.2.0.2.0 Production on Thu Jan 19 11:19:48 2012

Copyright (c) 1982, Oracle. All rights reserved.

4. Enter the user name and password for the database

Conn Personal/personal

5. You will be prompted connected. (Successful connection), display sql>:

6. The following are the related SQL statement operations:

(1) After the statement of the query must be added; , you cannot execute the query, which is equivalent to the operation of the Command window of the Plsqldev.exe tool

Select *from Newuseraccount (be sure to add when you are inquiring)

Select Email,password from Userreg where accountstype=1 and userstate=1;

(2) The inserted or updated statement remembers that the commit statement must be added before the transaction can be committed. Corresponds to the operation of the Command window for the Plsqldev.exe tool.

Update Newuseraccount set address= ' 20-Xining, Qinghai -0-' where userid=638;

commit;

Connect to Linux Server operations Oracle database

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.