码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 12c 建表空间语句

时间:2014-10-01 18:18:01      阅读:291      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   ar   sp   div   art   c   

create tablespace TBS_DYS datafile  D:/Oracle_12c/app/dingyingsi/oradata/dingyingsi/TBS_DYS.ba size 1024m reuse   autoextend on     next 100m     maxsize UNLIMITED extent management local;
CREATE TEMPORARY TABLESPACE TBS_DYS_TEMP TEMPFILE  D:/Oracle_12c/app/dingyingsi/oradata/dingyingsi/TBS_DYS_TEMP.ba SIZE 600M     autoextend on       next 32m       maxsize 2048m extent management local;
 
CREATE USER dingyingsi IDENTIFIED BY Dingyingsi1988 DEFAULT TABLESPACE TBS_DYS TEMPORARY TABLESPACE TBS_DYS_TEMP ACCOUNT UNLOCK;
GRANT CREATE TABLE TO dingyingsi;
GRANT UNLIMITED TABLESPACE TO dingyingsi;
GRANT CONNECT TO dingyingsi WITH ADMIN OPTION;
GRANT RESOURCE TO dingyingsi WITH ADMIN OPTION;
GRANT DBA TO dingyingsi;

Drop tablespace TBS_DYS;
Drop tablespace TBS_DYS_TEMP;

CREATE TRIGGER open_all_pdbs
   AFTER STARTUP
   ON DATABASE
BEGIN
   EXECUTE IMMEDIATE alter pluggable database all open;
END open_all_pdbs;
/

alter pluggable database pdbmyoracle open;

alter session set container = pdbmyoracle

alter session set container = CDB$ROOT;

 

Oracle 12c 建表空间语句

标签:style   blog   color   io   ar   sp   div   art   c   

原文地址:http://www.cnblogs.com/dingyingsi/p/4003413.html

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