Steps for installing and configuring Oracle

Source: Internet
Author: User

The following articles mainly introduce the SQL * Plus operations after Oracle installation and configuration, including the description of the system environment and related code, if you are interested in the actual operations, you can click to view the following articles.

System Environment:

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. 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 introduction to the SQL * Plus operation after Oracle is installed and configured. I hope you will gain some benefits.

Article by: http://www.programbbs.com/doc/class10-3.htm

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.