Oracle table creation process beginner

Source: Internet
Author: User

A friend asked me how to create a database in Oracle? What is the difference between Oracle and other databases? He has too many problems, and I think his simple explanation can satisfy his curiosity about Oracle, so I wrote this article. (Ps: the friend in this article is Comrade xiaomiao from the esframework group of Zhu Wei's brother)

Oracle and mssql are somewhat different. For example, the basic unit of Oracle is tablespace, table, segment, and block.

After Oracle is installed, we use the Oracle client to connect to Oracle. The first thing we can see is the case library. Then the tablespace is under the case database. (In general, initialization data is available for installation. If you want to recreate the case database, we recommend that you do not use initialization data)

When you see the basic structure, you will understand that the tablespace is a large container. To create a table, for example, you need to create a tablespace first.

Before that, we must create a new user to manage the new tablespace. Oracle defines three basic user identities: normal, sysoper, and sysdba. Both sysdba and sysoper are system-level users. Only authorized normal users can directly access the data information in the newly created tablespace.

After creating a user, you can authorize the user by role or directly. Direct authorization is recommended. In some cases, Role authorization may cause indirect problems. I will not detail them here. (If you need it, you can email it to me)

Directly authorize the DBA to manage a tablespace. Then, we can exit the sys system user and log on as the normal user. Then we can create various tables.

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.