Oracle installation, configuration, and SQL * Plus operations

Source: Internet
Author: User

The following articles mainly introduce Oracle installation, configuration, and SQL * Plus operation steps. I saw Oracle installation, configuration, and SQL * Plus operation steps on the relevant website two days ago, I think it's good. I just want to share it with you. I hope this will help you in your future studies.

1. Operating System: Windows 2000

2. Database: Oracle 8i R2 (8.1.6) for NT Enterprise Edition

3. installation path: C: \ ORACLE

Note:

Some SQL statements that Beginners should know after Oracle is installed by default

1. Connection

 
 
  1. SQL*Plus system/manager 

2. display the current connected user

 
 
  1. SQL> show user 

3. view the users in the system

 
 
  1. SQL> select * from all_users; 

4. Create and authorize a user

 
 
  1. SQL> create user a identified by a; created in the SYSTEM tablespace by default)
  2. SQL> grant connect, resource to;

5. connect to a new user

 
 
  1. SQL> conn a/a 

6. query all objects under the current user

 
 
  1. SQL> select * from tab; 

7. Create the first table

 
 
  1. SQL> create table a(a number); 

8. During Oracle Installation, We need to query the table structure

 
 
  1. SQL> desc a 

9. Insert a new record

 
 
  1. SQL> insert into a values(1); 

10. query records

 
 
  1. SQL> select * from a; 

11. change history

 
 
  1. SQL> update a set a=2; 

12. delete records

 
 
  1. SQL> delete from a; 

13. rollback

 
 
  1. SQL> roll;  
  2. SQL> rollback; 

14. Submit

 
 
  1. SQL> commit; 

The above content is a preliminary description of the SQL * Plus operation after Oracle is installed and configured. I hope it will help you in this regard.

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.