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;