oracle创建表空间

--step1:创建表空间
create tablespace myTS
logging  
datafile 'myTS.DBF' --datafile 'D:/oracle/data/myTS.DBF'
size 100m autoextend on  
next 10m maxsize UNLIMITED  --next 10m maxsize 1024m
extent management local;  

--step2:创建用户(二选一)
create user my identified by mypwd --(默认当前tablespace);
create user my identified by mypwd default tablespace myTS;
--step3:用户授权
GRANT connect TO my ;--开发者权限
GRANT resource TO my ;--开发者权限
GRANT create any view TO my ;--开发者权限
grant dba to my ;--dba权限
alter user  my default role DBA;--dba权限

--step4:密码失效和登录失败次数限制解除
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;
alter user smsc identified by oracle account unlock;

 

posted @ 2014-07-25 10:39  哈特中尉  阅读(128)  评论(0编辑  收藏  举报