#登錄oracle
sql
SQL> sqlplus system/system as sysdba; oracle
#更換用戶
SQL> conn / as sysdba; ide
#建立用戶
SQL>create user username identified by password ;spa
#爲建立用戶賦予dba權限
SQL> grant dba to username; table
#新建用戶登錄
SQL> conn username/password ; test
#創建表空間指定區尺寸爲128k,如不指定,區尺寸默認爲64k
SQL>create tablespace test_data logging datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local ;file
#修改表空間大小
SQL>alter database datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf' resize 10240m
權限