Oracle創建表空間以及用戶
1、連接數據庫
# su - oracle
$ conn / as sysdba
2、創建表空間
SQL> create tablespace doiido datafile '/main/oracle/oradata/doiido.dbf' size 1024M autoextend on next 1024M maxsize 10240M extent management local;
3、創建用戶
SQL> create user doiido identified by doiido default tablespace doiido;
4、授權
SQL> grant connect, resource to doiido;
5、不對用戶做表空間限額控制
SQL> grant unlimited tablespace to doiido;
6、切換用戶登錄
SQL> conn doiido/doiido;