Summary of creating temporary tablespace, user tablespace, creating user-associated tablespace, and authorization in oracle

Source: Internet
Author: User

Summary of creating temporary tablespace, user tablespace, creating user-associated tablespace, and authorization in oracle
1. Create a temporary tablespace

Create temporary tablespace test_temp
TEMPFILE 'C: \ oracle \ product \ 10.1.0 \ oradata \ orcl \ test_temp01.dbf'
SIZE 32 M
AUTOEXTEND ON
NEXT 32 m maxsize 2048 M
Extent management local;

Generally, you can start from step 2.

2. Create a user tablespace

Create tablespace gzjssapce
LOGGING
DATAFILE 'e: \ oracle \ product \ 10.2.0 \ oradata \ orcl \ gzjs. dbf'
SIZE 32 M
AUTOEXTEND ON
NEXT 32 m maxsize 2048 M
Extent management local;

3. Create a user and create a tablespace
Create user gzjs identified by password
Default tablespace gzjssapce

4. Authorize the user
Grant create session, create any table, create any view, create any index, create any procedure,
Alter any table, alter any procedure,
Drop any table, drop any view, drop any index, drop any procedure,
Select any table, insert any table, update any table, DELETE ANY TABLE
TO gzjs;
5. Prevent the current user from occupying the tablespace excessively
Alter user gzjs quota unlimited on users;

6. Grant DBA Permissions

Grant connect, resource, dba to gzjs;

7. Note: You must grant the DBA permission to the new user before importing the exported database file.

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.