建立oracle資料庫,使用者、資料表空間、設定角色許可權指令碼,oracle資料庫

來源:互聯網
上載者:User

建立oracle資料庫,使用者、資料表空間、設定角色許可權指令碼,oracle資料庫
/*分為四步 */
/*第1步:建立暫存資料表空間 */
create temporary tablespace contract_temp
tempfile 'D:\oradata\contract_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第2步:建立資料資料表空間 */
create tablespace contract_data
logging
datafile 'D:\oradata\contract_data.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第3步:建立使用者並指定資料表空間 */
create user contract identified by password
default tablespace contract_data
temporary tablespace contract_temp;
/*第4步:給使用者授予許可權 */
grant connect,resource,dba to contract;

相關文章

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.