My most common Oracle commands

Source: Internet
Author: User

 

    • Create user
      Create user... identified by PWD;
    • Delete a user
      Drop user... cascade;
    • Create a tablespace
      Create tablespace ts_drp datafile 'd: \ drp-date.dbf 'size 2000 m
    • Allocate tablespace to users
      Alter user... default tablespace ts_drp;
    • Authorization
      Grant DBA (resource, connect) to user
    • Revoke permissions
      Revoke DBA (resource, connect) from user
    • Modify Table space name
      Alter tablespace ts_surao Rename to headgmp;
    • Import File
      IMP head/head @ orcl file = F: \ new. dmp fromuser = newmmsroot touser = head ignore = Yes
    • Note:When importing files, it is best to confirm that the name of the backup tablespace is the same as that of the new tablespace. Otherwise, many errors will be reported.
Create user head identified by head;

Create tablespace headgmp datafile '/u01/oradata/head/head-date.dbf' size 200 m autoextend on extent management local

Segment space management auto;

Alter user head default tablespace headgmp;

Grant connect to head;

IMP head/head @ Wilson file =/u01/expdat. dmp full = y ignore = Yes

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.