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

oracle 添加用户

时间:2020-04-10 00:17:11      阅读:91      评论:0      收藏:0      [点我收藏+]

标签:manage   taf   tor   table   dog   app   word   pac   pass   

select * from v$tablespace;

select * from dba_tablespaces where contents like ‘TEMP%‘;

select * from v$tempfile f,v$tablespace t where f.TS# = t.TS#;

create tablespace pioneer_data
datafile ‘C:\APP\ADMINISTRATOR\ORADATA\ORCL\pioneer_data.DBF‘
size 50M
extent management LOCAL
UNIFORM size 1M;

create temporary tablespace pioneer_temp
tempfile ‘C:\APP\ADMINISTRATOR\ORADATA\ORCL\pioneer_temp.DBF‘
size 50M
extent management LOCAL
UNIFORM size 1M;

create USER dog
identified BY wangwang
DEFAULT tablespace pioneer_data
TEMPORARY tablespace pioneer_temp
quota 68M on pioneer_data
quota 28M on USERS
password expire;

DROP USER DOG;

select * from dba_USERS;

select * from v$tablespace;

alter user dog quota 0 on users;

oracle 添加用户

标签:manage   taf   tor   table   dog   app   word   pac   pass   

原文地址:https://www.cnblogs.com/bedfly/p/12670539.html

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