码迷,mamicode.com
首页 > 其他好文 > 详细

建立表空间和用户

时间:2021-03-17 14:04:19      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:oracle   OLE   end   alt   enc   ant   back   local   div   

CREATE TABLESPACE DATA_CENTER_DATA DATAFILE 
  /opt/oracle/oradata/mesdb/data_center_data.dbf SIZE 100M AUTOEXTEND ON NEXT 200M MAXSIZE UNLIMITED
LOGGING
ONLINE
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;


DROP USER DATA_CENTER CASCADE;

CREATE USER DATA_CENTER
  IDENTIFIED BY data_center
  DEFAULT TABLESPACE DATA_CENTER_DATA
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  ACCOUNT UNLOCK;
  -- 1 Role for DATA_CENTER 
  GRANT CONNECT TO DATA_CENTER;
  ALTER USER DATA_CENTER DEFAULT ROLE ALL;
  -- 16 System Privileges for DATA_CENTER 
  GRANT ALTER ANY PROCEDURE TO DATA_CENTER;
  GRANT ALTER ANY TABLE TO DATA_CENTER;
  GRANT CREATE ANY INDEX TO DATA_CENTER;
  GRANT CREATE ANY PROCEDURE TO DATA_CENTER;
  GRANT CREATE ANY TABLE TO DATA_CENTER;
  GRANT CREATE ANY VIEW TO DATA_CENTER;
  GRANT CREATE SEQUENCE TO DATA_CENTER;
  GRANT CREATE SESSION TO DATA_CENTER;
  GRANT DELETE ANY TABLE TO DATA_CENTER;
  GRANT DROP ANY INDEX TO DATA_CENTER;
  GRANT DROP ANY PROCEDURE TO DATA_CENTER;
  GRANT DROP ANY TABLE TO DATA_CENTER;
  GRANT DROP ANY VIEW TO DATA_CENTER;
  GRANT INSERT ANY TABLE TO DATA_CENTER;
  GRANT SELECT ANY TABLE TO DATA_CENTER;
  GRANT UPDATE ANY TABLE TO DATA_CENTER;
  -- 1 Tablespace Quota for DATA_CENTER 
  ALTER USER DATA_CENTER QUOTA UNLIMITED ON DATA_CENTER_DATA;

 

建立表空间和用户

标签:oracle   OLE   end   alt   enc   ant   back   local   div   

原文地址:https://www.cnblogs.com/turnip/p/14539271.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!