Oracle 创建表空间,用户

-- 查看oracle表空间数据文件位置
select t1.name,t2.name from v$tablespace t1,v$datafile t2 where t1.ts# = t2.ts#;
-- 创建表空间
create tablespace BTS datafile '/home/oradata/BTS.dbf' size 300M
autoextend on next 10M maxsize unlimited;
-- 创建用户
create user bts identified by bts default tablespace BTS;
-- 用户授权
GRANT connect, resource TO bts;

posted @ 2018-08-03 14:12  南村一哥  阅读(165)  评论(0编辑  收藏  举报