How to create and delete a user using the oracle command line

Source: Internet
Author: User

I believe everyone has some knowledge about the oracle command line. The following describes how to create and delete users using the oracle command line. I hope it will be helpful to you.

Delete a user using the oracle command line:

 
 
  1. connect / as sysdba;   
  2. shutdown abort;   
  3. startup;   
  4. drop user user1 cascade;   
  5. exit  

Create a user using the oracle command line:

 
 
  1. create user user1   
  2. identified by values 'fa091872a2cc669c'   
  3. default tablespace user1   
  4. temporary tablespace temp   
  5. profile default   
  6. account unlock;   
  7. -- 4 roles for user1   
  8. grant recovery_catalog_owner to user1 with admin option;   
  9. grant resource to user1 with admin option;   
  10. grant dba to user1 with admin option;   
  11. grant connect to user1 with admin option;   
  12. alter user user1 default role all;   
  13. -- 3 system privileges for user1   
  14. grant select any dictionary to user1 with admin option;   
  15. grant unlimited tablespace to user1 with admin option;   
  16. grant alter any procedure to user1 with admin option;  

How to view the Oracle tablespace size

Syntax for creating views in Oracle

Statement for creating a tablespace in oracle

Implementation of oracle re-Indexing

Use with statements to improve Oracle query efficiency

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.