Create and delete tablespaces and users in oracle in Linux

Source: Internet
Author: User

In Linux, create and delete tablespaces and users in oracle # su-oracle $ sqlplus/nolog SQL> connect/as sysdba -- // create temporary tablespaces create temporary tablespace test_temp tempfile '/data/oracle /oradata/test/test_temp01.dbf '-- // file system size 64 m autoextend on next 64 m maxsize 2048 m extent management local in Linux; -- // create a data table space create tablespace test_data logging datafile '/data/oracle/oradata/test/test_data01.dbf' -- // file system size in Linux 64 m auto Extend on next 65 m maxsize 2048 m extent management local; -- // create a user and specify the table space username and password as "test" create user test identified by test default tablespace test_data temporary tablespace test_temp; -- // grant the user the permission to grant connect, resource to test; -- // Delete the tablespace drop tablespace test_temp including CONTENTS and datafiles; -- // modify the user Password alter user test identified by new_password; -- // Delete the user drop user Username cascade; -- // be careful when executing this statement. Cascade delete all objects under the 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;

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.