《用戶權(quán)限角色》PPT課件.ppt

上傳人:san****019 文檔編號:20979371 上傳時間:2021-04-21 格式:PPT 頁數(shù):14 大?。?58.60KB
收藏 版權(quán)申訴 舉報 下載
《用戶權(quán)限角色》PPT課件.ppt_第1頁
第1頁 / 共14頁
《用戶權(quán)限角色》PPT課件.ppt_第2頁
第2頁 / 共14頁
《用戶權(quán)限角色》PPT課件.ppt_第3頁
第3頁 / 共14頁

下載文檔到電腦,查找使用更方便

9.9 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《《用戶權(quán)限角色》PPT課件.ppt》由會員分享,可在線閱讀,更多相關(guān)《《用戶權(quán)限角色》PPT課件.ppt(14頁珍藏版)》請在裝配圖網(wǎng)上搜索。

1、Controlling User Access(控制用戶訪問) ObjectivesAfter completing this lesson, you should be able to do the following: Create users(創(chuàng)建用戶) Create roles to ease setup and maintenance of the security model(創(chuàng)建角色) Use the GRANT and REVOKE statements to grant and revoke object privileges(授予和回收權(quán)限) Controlling Use

2、r Access(控制用戶概述)DatabaseadministratorUsersUsername and passwordPrivileges Creating Users(創(chuàng)建用戶)The DBA creates users by using the CREATE USER statement.CREATE USER scottIDENTIFIED BY tiger;CREATE USER user IDENTIFIED BY password; User System Privileges(用戶的系統(tǒng)權(quán)限) Once a user is created, the DBA can gra

3、nt specific system privileges to a user.(DBA賦予用戶系統(tǒng)權(quán)限) An application developer, for example, may have the following system privileges:(最常用的用戶系統(tǒng)權(quán)限)CREATE SESSIONCREATE TABLE CREATE SEQUENCECREATE VIEWCREATE PROCEDUREGRANT privilege , privilege.TO user , user| role, PUBLIC.; Granting System Privileges

4、(賦權(quán)限)The DBA can grant a user specific system privileges.GRANT create session, create table, create sequence, create viewTO scott; What is a Role?(角色的概念)Allocating privileges without a role Allocating privilegeswith a rolePrivilegesUsers Manager Creating and Granting Privileges to a Role(創(chuàng)建角色,賦予權(quán)限)C

5、REATE ROLE manager; GRANT create table, create view TO manager; GRANT manager TO DEHAAN, KOCHHAR; Create a role(創(chuàng)建角色) Grant privileges to a role(賦予角色權(quán)限) Grant a role to users(賦予用戶角色) Object Privilege Table View Sequence ProcedureALTER DELETE EXECUTE INDEX INSERT REFERENCES SELECT UPDATE Object Privi

6、leges(對象權(quán)限) Granting Object Privileges(例子) Grant query privileges on the EMPLOYEES table. Grant privileges to update specific columns to users and roles. GRANT selectON employeesTO sue, rich; GRANT update (department_name, location_id)ON departmentsTO scott, manager; Using the WITH GRANT OPTION and

7、PUBLIC Keywords Give a user authority to pass along privileges.(With grant option可傳遞權(quán)限) Allow all users on the system to query data from Alices DEPARTMENTS table.(Public是所有用戶)GRANT select, insertON departmentsTO scottWITH GRANT OPTION; GRANT selectON alice.departmentsTO PUBLIC; How to Revoke Object

8、Privileges(回收權(quán)限) You use the REVOKE statement to revoke privileges granted to other users. Privileges granted to others through the WITH GRANT OPTION clause are also revoked.(With grant option權(quán)限也同時回收)REVOKE privilege , privilege.|ALL ON objectFROM user, user.|role|PUBLICCASCADE CONSTRAINTS; Revoking

9、 Object Privileges(回收權(quán)限例子)As user Alice, revoke the SELECT and INSERT privileges given to user Scott on the DEPARTMENTS table.REVOKE select, insertON departmentsFROM scott; Summary(小結(jié))Statement ActionCREATE USERCreates a user (usually performed by a DBA)GRANTGives other users privileges to access the your objectsCREATE ROLECreates a collection of privileges (usually performed by a DBA)ALTER USERChanges a users password REVOKERemoves privileges on an object fromusersIn this lesson, you should have learned about DCL statements that control access to the database and database objects:

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!