Oracle笔记:创建表空间、创建用户、授权
生活随笔
收集整理的這篇文章主要介紹了
Oracle笔记:创建表空间、创建用户、授权
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
--回顧
--1、表空間
create tablespace ts
datafile 'd:\123.dbf' size 10m
autoextend oncreate temporary tablespace temp_ts
tempfile 'd:\temp123.dbf' size 5m
autoextend on--2、用戶
create user testuser
identified by test123
default tablespace ts
temporary tablespace temp_ts--3、授權(quán)
權(quán)限:系統(tǒng)、對象
--直接
系統(tǒng)權(quán)限
grant create session to testuser;
revoke create session from testuser;
對象權(quán)限
create table t
( tid integer,tname varchar2(5)
)grant select on t to testuser;
revoke select on t from testuser;--間接
--角色:權(quán)限的集合。
--兩類角色:
1、預(yù)定義
權(quán)限:create session
角色:connect(用戶必備的),resource(必備),dba
grant connect,resource to testuser;
grant dba to testuser;2、自定義
create role r;
grant select on t to r;
grant r to testuser;
總結(jié)
以上是生活随笔為你收集整理的Oracle笔记:创建表空间、创建用户、授权的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java中_null和“”的区别详解
- 下一篇: Adobe_Audition消除人声