Oracle creates users, tablespaces, and empowers

Source: Internet
Author: User

--Create TABLE space

Create Tablespace Test_tps

DataFile ' D:\app\Administrator\oradata\orcl\test_tps.dbf '

Size 1500M

Autoextend on next 5M;


--Create a user and make a table space

Create user Test_tps identified by Test_tps

Default Tablespace Test_tps;

--Assigning permissions

Grant Connect,resource to Test_tps;

Grant create any sequence to Test_tps;

Grant create any table to Test_tps;

Grant Delete any table to Test_tps;

Grant insert any table to Test_tps;

Grant Select any table to Test_tps;

Grant unlimited tablespace to Test_tps;

Grant execute any procedure to Test_tps;

Grant update any table to Test_tps;

Grant create any view to Test_tps;


--Empowering DBAs

Grant SYSDBA to Test_tps;

--Revoke DBA Authority

Revoke DBA from user

---------------------------------------------------------------

--Authorization command:

--grant {dba| resource| CONNECT} to {public|user-list}

--public|user-list: All or a specified user.

-Three types of permissions and only one, do not execute the GRANT statement during transaction processing.


Oracle creates users, tablespaces, and empowers

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.