Oracle User Concepts, Oracle user tablespaces, and Oracle User resource files

Source: Internet
Author: User
Tags cpu usage oracle database

Oracle User Management

First, the concept of the user

Users, or user, is a popular way to access Oracle database "people." In Oracle, the user's various security parameters can be controlled to maintain the security of the database, these concepts include schemas, permissions, roles, storage settings, space quotas, access resource constraints, database auditing, and so on. Each user has a password that uses the correct user/password to log on to the database for data access.

Second, user default table space

A tablespace is the largest logical unit of information storage, and when a user connects to a database for data storage, the data is stored in the user's default tablespace if the target storage table space is not indicated. For example: CREATE TABLE MyTable (ID varchar2 (), name VARCHAR2 (100)); This statement creates a table mytable and stores it in the current user's default tablespace, to specify a tablespace: Create Table MyTable (ID varchar2 (), name VARCHAR2 ()) tablespace tbs1;. The user's default tablespace can be specified when the user is created, or it can be specified using the Aler user command, as described later in this article.

Third, user temporary table space

Temporary table spaces are primarily used for ordering by statements and other intermediate operations. Before oracle9i, you can specify that users use a different temporary tablespace, starting at 9i, the temporary tablespace is generic and the user uses temp as a temporary tablespace.

Iv. User Resource Files

User resource files are used to restrict user access to resources, including CPU usage time limits, memory logical read limits, session data limits that each user can connect to, space and time limits for a session, duration limits for a session, and dedicated SGA space limits for each session.

Five, the user table space limit

Tablespace storage limits are the total amount of storage space a user can use in a table space. When creating or modifying a user, it can be indicated by the parameter quota. If a user exceeds this limit when they store data in a tablespace, an error occurs. Error messages such as: ' Ora-01536:space quota exceeded for tablespace tablespacename ... '. You can view the table space quota information by querying the dictionary Dba_ts_quotas.

Vi. Creating User resource Files

The syntax for creating user resource files is as follows:

CREATE profile filename LIMIT

Session_per_user integer

Cpu_per_session integer

User_per_call integer

Connect_time integer

......

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

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.