Oracle creates and deletes table spaces and user ____java under Linux environment

Source: Internet
Author: User
#su-oracle
$ sqlplus/nolog
Sql> Connect/as SYSDBA
--//Create temporary table spaces
Create temporary tablespace test_temp
File system under the Tempfile '/data/oracle/oradata/test/test_temp01.dbf '--//linux
Size 64m
Autoextend on
Next 64m maxsize 2048m
Extent management Local;

--//Create a datasheet space
Create Tablespace Test_data
Logging
File system under the DataFile '/data/oracle/oradata/test/test_data01.dbf '--//linux
Size 64m
Autoextend on
Next 65m maxsize 2048m
Extent management Local;

--//create user and specify table space username and password are "test"
Create user test identified by test
Default Tablespace test_data
Temporary tablespace test_temp;


--//Grant permissions to users

Grant Connect,resource to test;

--//Delete Table Space
Drop tablespace test_temp including CONTENTS and datafiles;

--//Modify User Password
Alter user test identified by New_password;

--//Delete User
Drop user username cascade; --//execute the statement, be careful, and cascade the deletion of all objects under that user.


--//Assign permissions to users

Sql> Grant connect to Test_user;
Sql> grant resource to Test_user;
Sql> Grant CREATE view to Test_user;
Sql> GRANT DEBUG CONNECT session to Test_user;
sql> GRANT DEBUG any PROCEDURE to Test_user;
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.