How to create table spaces, users, and authorizations in Oracle

Source: Internet
Author: User

/*

Before creating a tablespace under the server directory/optoracle/oradata/etld, manually build the Etld directory and use root to give the Etld directory the appropriate permissions, such as 777

*/

--Create a table space

Create Tablespace Tbs_etld_data

Logging

DataFile '/opt/oracle/oradata/etld/etld_data.dbf '

Size 200m

Autoextend on

Next 50m maxsize 1024m

Extent management Local;

Create temporary tablespace tbs_etld_temp

Tempfile '/opt/oracle/oradata/etld/etld_temp.dbf '

Size 100m

Autoextend on

Next 50m maxsize 1024m

Extent management Local;

--Create a user

Create user Etld identified by etld

Default Tablespace tbs_etld_data

Temporary tablespace tbs_etld_temp;

Give the user authorization

Grant connect to Etld;

Grant resource to Etld;

Grant ALTER any index to ETLD;

Grant ALTER any procedure to ETLD;

Grant ALTER any sequence to ETLD;

Grant alter any table to ETLD;

Grant create any context to etld;

Grant Create any index to ETLD;

Grant Create any library to Etld;

Grant create any procedure to etld;

Grant create any table to Etld;

Grant create any type to ETLD;

Grant create any view to Etld;

Grant CREATE procedure to ETLD;

Grant drop any index to ETLD;

Grant drop any library to etld;

Grant execute any operator to ETLD;

Grant execute any procedure to etld;

Grant insert any table to etld;

Grant Select any table to Etld;

Grant unlimited tablespace to Etld;

Grant Debug connect session to Etld;

Grant Select any dictionary to Etld

To this, etld users can use;

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

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.