久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價!!!
當(dāng)前位置:主頁 > 網(wǎng)站建設(shè) > Oracle 用戶權(quán)限管理方法建站知識

Oracle 用戶權(quán)限管理方法建站知識

時間:2023-05-23 13:05:23 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 網(wǎng)站編輯員

導(dǎo)讀:1建站知識Oracle 用戶權(quán)限管理方法,對于想要學(xué)習(xí)oracle安全的朋友,是個入門級的資料。網(wǎng)站推廣優(yōu)化seo網(wǎng)站建設(shè)哪家好。

網(wǎng)站推廣優(yōu)化seo網(wǎng)站建設(shè)哪家好sys;//系統(tǒng)管理員,擁有最高權(quán)限 system;//本地管理員,次高權(quán)限 scott;//普通用戶,密碼默認(rèn)為tiger,默認(rèn)未如何seo優(yōu)化推廣網(wǎng)站解鎖 sys;//系統(tǒng)管理員,擁有最高權(quán)限 system;//本地管理員,次高權(quán)限 scott;//普通用戶,密碼默認(rèn)為tiger,默認(rèn)未解鎖 二、登陸 sqlplus / as sysdba網(wǎng)站seo優(yōu)化軟件;//登陸sys帳戶 sqlplus sys as sysdba;//同上 sqlplus scott/tiger;//登陸普通用戶scott sqlplus / as sysdba;//登陸sys帳戶 sqlplus sys as sysdba;//同上 sqlplus scott/tiger;//登陸普通用戶scott 三、管理用戶 create user zhangsan;//在管理員帳戶下,創(chuàng)建用戶zhangsan alert user scott identified by tiger;//修改密碼 create user zhangsan;//在管理員帳戶下,創(chuàng)建用戶zhangsan alert user scott identified by tiger;//修改密碼 四,授予權(quán)限 1、默認(rèn)的普通用戶scott默認(rèn)未解鎖,不能進(jìn)行那個使用,新建的用戶也沒有任何權(quán)限,必須授予權(quán)限 /*管理員授權(quán)*/ grant create session to zhangsan;//授予zhangsan用戶創(chuàng)建session的權(quán)限,即登陸權(quán)限 grant unlimited session to zhangsan;//授予zhangsan用戶使用表空間的權(quán)限 grant create table to zhangsan;//授予創(chuàng)建表的權(quán)限 grante drop table to zhangsan;//授予刪除表的權(quán)限 grant insert table to zhangsan;//插入表的權(quán)限 grant update table to zhangsan;//修改表的權(quán)限 grant all to public;//這條比較重要,授予所有權(quán)限(all)給所有用戶(public) /*管理員授權(quán)*/ grant create session to zhangsan;//授予zhangsan用戶創(chuàng)建session的權(quán)限,即登陸權(quán)限 grant unlimited session to zhangsan;//授予zhangsan用戶使用表空間的權(quán)限 grant create table to zhangsan;//授予創(chuàng)建表的權(quán)限 grante drop table to zhangsan;//授予刪除表的權(quán)限 grant insert table to zhangsan;//插入表的權(quán)限 grant update table to zhangsan;//修改表的權(quán)限 grant all to public;//這條比較重要,授予所有權(quán)限(all)給所有用戶(public) 2、oralce對權(quán)限管理比較嚴(yán)謹(jǐn),普通用戶之間也是默認(rèn)不能互相訪問的,需要互相授權(quán) /*oralce對權(quán)限管理比較嚴(yán)謹(jǐn),普通用戶之間也是默認(rèn)不能互相訪問的*/ grant select on tablename to zhangsan;//授予zhangsan用戶查看指定表的權(quán)限 grant drop on tablename to zhangsan;//授予刪除表的權(quán)限 grant insert on tablename to zhangsan;//授予插入的權(quán)限 grant update on tablename to zhangsan;//授予修改表的權(quán)限 grant insert(id) on tablename to zhangsan;建設(shè)網(wǎng)站公司 grant update(id) on tablename to zhangsan;//授予對指定表特定字段的插入和修改權(quán)限,注意,只能是insert和update grant alert all table to zhangsan;//授予zhangsan用戶alert任意表的權(quán)限 /*oralce對權(quán)限管理比較嚴(yán)謹(jǐn),普通用戶之間也是默認(rèn)不能互相訪問的*/ grant select on tablename to zhangsan;//授予zhangsan用戶查看指定表的權(quán)限 grant drop on tablename to zhangsan;//授予刪除表的權(quán)限 grant insert on tablename to zhangsan;//授予插入的權(quán)限 grant update on tablename to zhangsan;//授予修改表的權(quán)限 grant insert(id) on tablename to zhangsan; grant update(id) on tablename to zhangsan;//授予對指定表特定字段的插入和修改權(quán)限,注意,只能是insert和update grant alert all table to zhangsan;//授予zhangsan用戶alert任意表的權(quán)限 五、撤銷權(quán)限 基本語法同grant,關(guān)鍵字為revoke 基本語法同grant,關(guān)鍵字為revoke 六、查看權(quán)限 select * from user_sys_privs;//查看當(dāng)前用戶所有權(quán)限 select * from user_tab_privs;//查看所用用戶對表的權(quán)限 select * from user_sys_privs;//查看當(dāng)前用戶所有權(quán)限 select * from user_tab_privs;//查看所用用戶對表的權(quán)限 七、操作表的用戶的表 /*需要在表名前加上用戶名,如下*/ select * from zhangsan.tablename /*需要在表名前加上用戶名,如下*/ select * from zhangsan.tablename 八、權(quán)限傳遞 即用戶A將權(quán)限授予B,B可以將操作的權(quán)限再授予C,命令如下: grant alert table on tablename to zhangsan with admin option;//關(guān)鍵字 with admin option grant alert table on tablename to zhangsan with grant option;//關(guān)鍵字 with grant option效果和admin類似 grant alert table on tablename to zhangsan with admin option;//關(guān)鍵字 with admin option grant alert table on tablename to zhangsan with grant option;//關(guān)鍵字 with grant option效果和admin類似 九、角色 角色即權(quán)限的集合,可以把一個角色授予給用戶 create role myrole;//創(chuàng)建角色 grant create session to myrole;//將創(chuàng)建session的權(quán)限授予myrole grant myrole to zhangsan;//授予zhangsan用戶myrole的角色 drop role myrole;刪除角色 /*但是有些權(quán)限是不能授予給角色的,比如unlimited tablespace和any關(guān)鍵字*/相關(guān)網(wǎng)站推廣優(yōu)化seo網(wǎng)站建設(shè)哪家好。

關(guān)鍵詞標(biāo)簽: 標(biāo)簽 用戶權(quán)限

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-23 ,文章Oracle 用戶權(quán)限管理方法建站知識主要講述用戶權(quán)限,標(biāo)簽,Oracle 用戶權(quán)限管理方法建站知識網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_5652.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計(jì)制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 珠海市| 拉萨市| 岳西县| 江川县| 方城县| 肥城市| 麻城市| 龙游县| 乡宁县| 柏乡县| 陕西省| 大渡口区| 虹口区| 桃园市| 南川市| 襄垣县| 陆丰市| 元氏县| 芜湖市| 保康县| 陇南市| 曲周县| 信丰县| 开封市| 翁源县| 仁化县| 汉寿县| 西平县| 兴山县| 奉新县| 青冈县| 当涂县| 广灵县| 盘山县| 阿克| 汕尾市| 穆棱市| 城市| 兴宁市| 报价| 襄城县|