日期:2014-05-16 浏览次数:20575 次
Sql>create tablespace histdb datafile 'D:\oracle\product\10.2.0\oradata\orcl\histdb.dbf' size 200m autoextend on next 10m maxsize unlimited; Sql>alter database datafile 'D:\oracle\product\10.2.0\oradata\orcl\histdb.dbf' autoextend on;
DROP TABLESPACE histdb INCLUDING CONTENTS AND DATAFILES;
SQL> create user cocis identified by cocis 2 default tablespace cocis 3 temporary tablespace temp; 用户已创建。 SQL> select username,default_tablespace,temporary_tablespace 2 from dba_users 3 where username='COCIS'; USERNAME DEFAULT_TABLESPACE TEMPORARY_TABLESPACE ------------------------------ ------------------------------ ------------------ COCIS COCIS TEMP SQL> select username,user_id,password,default_tablespace,temporary_tablespace 2 from dba_users 3 where username='COCIS'; USERNAME USER_ID PASSWORD TEMPORARY_TABLESPACE ------------------------------ ---------- ------------------------------ ----------------------- COCIS 61 E031F623C0F15D34 COCIS
SQL> grant connect,resource to cocis; 授权成功。
SQL> grant SYSDBA to cocis; --------------------------------------------------- SQL> revoke unlimited tablespace from cocis; 撤销成功。 SQL> alter user cocis quota unlimited on cocis; 用户已更改。