{"id":613,"date":"2023-09-28T16:21:06","date_gmt":"2023-09-28T20:21:06","guid":{"rendered":"https:\/\/ve2cuy.com\/?page_id=613"},"modified":"2024-09-18T10:07:36","modified_gmt":"2024-09-18T14:07:36","slug":"420-5d3-oracle-liste-des-privileges","status":"publish","type":"page","link":"https:\/\/ve2cuy.com\/index.php\/420-5d3-oracle-liste-des-privileges\/","title":{"rendered":"420-5D3 : Oracle &#8211; Liste des privil\u00e8ges"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Privil\u00e8ges de type syst\u00e8me<\/h2>\n\n\n\n<p>Un privil\u00e8ge syst\u00e8me est le droit d&rsquo;effectuer une action particuli\u00e8re ou d&rsquo;effectuer une action sur n&rsquo;importe quel objet d&rsquo;un type particulier. Les objets incluent des tables, des vues, des vues mat\u00e9rialis\u00e9es, des synonymes, des index, des s\u00e9quences, des groupes de cache, des sch\u00e9mas de r\u00e9plication et des fonctions, proc\u00e9dures et packages PL\/SQL. <\/p>\n\n\n\n<p>Seul l&rsquo;administrateur de l&rsquo;instance ou un utilisateur disposant du privil\u00e8ge ADMIN peut accorder ou r\u00e9voquer des privil\u00e8ges syst\u00e8me.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Voici la liste de privil\u00e8ges syst\u00e8mes qu&rsquo;il est possible d&rsquo;accorder \u00e0 un utilisateur d&rsquo;une PDB.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">NOTE<\/mark><\/strong>: Il faut utiliser les commandes &lsquo;GRANT&rsquo; et &lsquo;REVOKE&rsquo; pour accorder ou retirer un privil\u00e8ge.  <\/p>\n\n\n\n<p>Voir au bas de ce document pour des exemples. <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Privilege<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><a><\/a><code>ADMIN<\/code><\/td><td>Enables a user to perform administrative tasks including checkpointing, backups, migration, and user creation and deletion.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>ALTER ANY CACHE GROUP<\/code><\/td><td>Enables a user to alter any cache group in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>ALTER ANY INDEX<\/code><\/td><td>Enables a user to alter any index in the database.<strong>Note<\/strong>: There is no&nbsp;<code>ALTER INDEX<\/code>&nbsp;statement.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>ALTER ANY MATERIALIZED VIEW<\/code><\/td><td>Enables a user to alter any materialized view in the database.<strong>Note<\/strong>: There is no&nbsp;<code>ALTER MATERIALIZED VIEW<\/code>&nbsp;statement.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>ALTER ANY PROCEDURE<\/code><\/td><td>Enables a user to alter any PL\/SQL procedure, function or package in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>ALTER ANY SEQUENCE<\/code><\/td><td>Enables a user to alter any sequence in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>ALTER ANY TABLE<\/code><\/td><td>Enables a user to alter any table in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>ALTER ANY VIEW<\/code><\/td><td>Enables a user to alter any view in the database.<strong>Note<\/strong>: There is no&nbsp;<code>ALTER VIEW<\/code>&nbsp;statement.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CACHE_MANAGER<\/code><\/td><td>Enables a user to perform operations related to cache groups.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY CACHE GROUP<\/code><\/td><td>Enables a user to create a cache group owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY INDEX<\/code><\/td><td>Enables a user to create an index on any table or materialized view in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY MATERIALIZED VIEW<\/code><\/td><td>Enables a user to create a materialized view owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY PROCEDURE<\/code><\/td><td>Enables a user to create a PL\/SQL procedure, function or package owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY SEQUENCE<\/code><\/td><td>Enables a user to create a sequence owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY SYNONYM<\/code><\/td><td>Enables a user to create a private synonym owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY TABLE<\/code><\/td><td>Enables a user to create a table owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE ANY VIEW<\/code><\/td><td>Enables a user to create a view owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE CACHE GROUP<\/code><\/td><td>Enables a user to create a cache group owned by that user.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE MATERIALIZED VIEW<\/code><\/td><td>Enables a user to create a materialized view owned by that user.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE PROCEDURE<\/code><\/td><td>Enables a user to create a PL\/SQL procedure, function or package owned by that user.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE PUBLIC SYNONYM<\/code><\/td><td>Enables a user to create a public synonym.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE SEQUENCE<\/code><\/td><td>Enables a user to create a sequence owned by that user.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE SESSION<\/code><\/td><td>Enables a user to create a connection to the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE SYNONYM<\/code><\/td><td>Enables a user to create a private synonym.<\/td><\/tr><tr><td><code><a><\/a><a><\/a>CREATE TABLE<\/code><\/td><td>Enables a user to create a table owned by that user.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>CREATE VIEW<\/code><\/td><td>Enables a user to create a view owned by that user.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DELETE ANY TABLE<\/code><\/td><td>Enables a user to delete from any table in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY CACHE GROUP<\/code><\/td><td>Enables a user to drop any cache group in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY INDEX<\/code><\/td><td>Enables a user to drop any index in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY MATERIALIZED VIEW<\/code><\/td><td>Enables a user to drop any materialized view in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY PROCEDURE<\/code><\/td><td>Enables a user to drop any PL\/SQL procedure, function or package in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY SEQUENCE<\/code><\/td><td>Enables a user to drop any sequence in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY SYNONYM<\/code><\/td><td>Enables a user to drop a synonym owned by any user in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY TABLE<\/code><\/td><td>Enables a user to drop any table in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP ANY VIEW<\/code><\/td><td>Enables a user to drop any view in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>DROP PUBLIC SYNONYM<\/code><\/td><td>Enables a user to drop a public synonym.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>EXECUTE ANY PROCEDURE<\/code><\/td><td>Enables a user to execute any PL\/SQL procedure, function or package in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>FLUSH ANY CACHE GROUP<\/code><\/td><td>Enables a user to flush any cache group in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>INSERT ANY TABLE<\/code><\/td><td>Enables a user to insert into any table in the database. It also enables the user to insert into any table using the synonym, public or private, to that table.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>LOAD ANY CACHE GROUP<\/code><\/td><td>Enables a user to load any cache group in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>REFRESH ANY CACHE GROUP<\/code><\/td><td>Enables a user to flush any cache group in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>SELECT ANY SEQUENCE<\/code><\/td><td>Enables a user to select from any sequence or synonym on a sequence in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><a><\/a><code>SEL<a><\/a><a><\/a><a><\/a>ECT ANY TABLE<\/code><\/td><td>Enables a user to select from any table, view, materialized view, or synonym in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><code>UNLOAD ANY CACHE GROUP<\/code><\/td><td>Enables a user to unload any cache group in the database.<\/td><\/tr><tr><td><a><\/a><a><\/a><a><\/a><a><\/a><code>UPDATE ANY TABLE<\/code><\/td><td>Enables a user to update any table or synonym in the database.<\/td><\/tr><tr><td><a><\/a><code>XLA<\/code><\/td><td>Enables a user to connect to a database as an XLA reader.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Exemple d&rsquo;utilisation de GRANT et REVOKE<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">GRANT CREATE PROCEDURE TO \"Tintin\"\nGRANT DROP USER TO \"Tintin\"\nGRANT CREATE TABLE TO \"Tintin\"\nGRANT SELECT ANY TABLE TO \"Tintin\"\nGRANT CREATE SESSION TO \"Tintin\"\n...\nREVOKE COMMENT ANY TABLE FROM \"Tintin\"\nREVOKE CREATE PLUGGABLE DATABASE FROM \"Tintin\"<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SELECT table_name, privilege FROM sys.dba_tab_privs WHERE grantee='PUBLIC';\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Privil\u00e8ges de type syst\u00e8me Un privil\u00e8ge syst\u00e8me est le droit d&rsquo;effectuer une action particuli\u00e8re ou d&rsquo;effectuer une action sur n&rsquo;importe quel objet d&rsquo;un type particulier. Les objets incluent des tables, des vues, des vues mat\u00e9rialis\u00e9es, des synonymes, des index, des s\u00e9quences, des groupes de cache, des sch\u00e9mas de r\u00e9plication et des fonctions, proc\u00e9dures et packages [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-613","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/pages\/613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/comments?post=613"}],"version-history":[{"count":5,"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/pages\/613\/revisions"}],"predecessor-version":[{"id":1029,"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/pages\/613\/revisions\/1029"}],"wp:attachment":[{"href":"https:\/\/ve2cuy.com\/index.php\/wp-json\/wp\/v2\/media?parent=613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}