Oracle 建立資料表空間以及使用者

來源:互聯網
上載者:User

Oracle 建立資料表空間以及使用者

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;

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.