{"id":1473,"date":"2014-12-23T00:33:08","date_gmt":"2014-12-23T06:33:08","guid":{"rendered":"https:\/\/bijoos.com\/oraclenotes\/?p=1473"},"modified":"2026-02-07T15:29:23","modified_gmt":"2026-02-07T21:29:23","slug":"oracle-12c-read-privilege","status":"publish","type":"post","link":"https:\/\/bijoos.com\/oraclenotes\/2014\/1473\/","title":{"rendered":"Oracle 12c &#8211; READ Privilege"},"content":{"rendered":"<p>The READ privilege is new in Oracle Database 12c 12.1.0.2. Why do we need a READ privilege when there is SELECT privilege? Well, the SELECT privilege includes few more privilege than a pure read-only privilege! With the SELECT privilege, in addition to reading (or \u201cselecting\u201d from) the table, you are also able to do<\/p>\n<ul>\n<li>LOCK TABLE<em>&lt;<\/em><em>table_name&gt;<\/em>\u00a0IN EXCLUSIVE MODE;<\/li>\n<li>SELECT &#8230; FROM<em>&lt;<\/em><em>table_name&gt;<\/em>\u00a0FOR UPDATE;<\/li>\n<\/ul>\n<p>So, for better security to enforce pure read-only privilege Oracle needed another privilege, which is READ privilege. You can use the READ object privilege or READ ANY TABLE system privilege. Both operate similar to their SELECT counterpart, except for the privileges listed above.<\/p>\n<p>No, there is no READ statement to go with the READ privilege. You will still be using the SELECT statement to read from the table or view. You use the READ object privilege to enable users query database tables, views, materialized views, and synonyms. The READ ANY TABLE privilege enables to query any table or view in the database.<\/p>\n<p>So, from now onwards, you may start granting the READ or READ ANY TABLE privilege instead of SELECT or SELECT ANY TABLE, to the users requiring only the query privilege on the table or view for better security.<\/p>\n<p>Examples of grants and revoke:<\/p>\n<p>SQL&gt; GRANT READ ON XX.XXLE_CUSTOMERS_T TO smith;<\/p>\n<p>SQL&gt; GRANT READ ON XX.XXLE_SUPPLIERS_VW TO smith;<\/p>\n<p>SQL&gt; GRANT READ ANY TABLE TO peter;<\/p>\n<p>SQL&gt; REVOKE READ ON XX.XXLE_SUPPLIERS_VW FROM smith;<\/p>\n<p>SQL&gt; REVOKE READ ANY TABLE FROM peter;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The READ privilege is new in Oracle Database 12c 12.1.0.2. Why do we need a READ privilege when there is SELECT privilege? Well, the SELECT privilege includes few more privilege than a pure read-only privilege! With the SELECT privilege, in addition to reading (or \u201cselecting\u201d from) the table, you are also able to do LOCK &#8230; <a title=\"Oracle 12c &#8211; READ Privilege\" class=\"read-more\" href=\"https:\/\/bijoos.com\/oraclenotes\/2014\/1473\/\" aria-label=\"Read more about Oracle 12c &#8211; READ Privilege\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[133],"tags":[],"class_list":["post-1473","post","type-post","status-publish","format-standard","hentry","category-oracledb"],"acf":[],"jetpack-related-posts":[{"id":1446,"url":"https:\/\/bijoos.com\/oraclenotes\/2014\/1446\/","url_meta":{"origin":1473,"position":0},"title":"Oracle Tidbits &#8211; September 2014","author":"Biju","date":"October 1, 2014","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d published at\u00a0https:\/\/www.facebook.com\/oraclenotes\u00a0on all weekdays\u00a0in September\u00a02014. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you of its existence and use\u2026\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15,"url":"https:\/\/bijoos.com\/oraclenotes\/2011\/15\/","url_meta":{"origin":1473,"position":1},"title":"Granting privileges on all or multiple objects to user\/role","author":"Biju","date":"October 18, 2011","format":false,"excerpt":"Granting privileges on all or multiple objects to user\/roleQuestion:I need to grant SELECT, UPDATE privilege on all tables owned by schema XXVMX to users MSUBBU, SMARTIN. Is there a command in Oracle to grant a privilege on all objects in schema to user?Answer:No such privilege in Oracle. You will have\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":145,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/145\/","url_meta":{"origin":1473,"position":2},"title":"OracleDB12c New Feature: Added Administrative Privileges","author":"Biju","date":"July 7, 2013","format":false,"excerpt":"Oracle11g Grid Infrastructure introduced SYSASM administrative privilege, in 12c we have 3 more administrative privileges... SYSBACKUP, SYSDG, SYSKM. SYSDBA, SYSOPER and SYSASM privileges and behavior are similar to 11gR2 in 12c database as well. SYSBACKUP administrative privilege has ability to perform RMAN backup and recovery operations, database startup and shutdown.\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":166,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/166\/","url_meta":{"origin":1473,"position":3},"title":"OracleDB12c New Feature: Misc Security Changes","author":"Biju","date":"July 11, 2013","format":false,"excerpt":"Security in Oracle12c Database is enhanced, in this blog will try to identify few difference you would see compared with 11gR2. SELECT ANY DICTIONARY privilege in 12c excludes access to the following tables with authentication information: DEFAULT_PWD$ ENC$ LINK$ USER$ USER_HISTORY$ XS$VERIFIERS AUDIT_TRAIL initialization parameter is set to DB by\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":123,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/123\/","url_meta":{"origin":1473,"position":4},"title":"OracleDB12c New Feature: RMAN Describe","author":"Biju","date":"June 30, 2013","format":false,"excerpt":"Similar to SQL*Plus DESCRIBE command, RMAN now supports DESCRIBE. RMAN> desc hr.jobs using target database control file instead of recovery catalog Name Null? Type ----------------------------------------- -------- ---------------------------- JOB_ID NOT NULL VARCHAR2(10) JOB_TITLE NOT NULL VARCHAR2(35) MIN_SALARY NUMBER(6) MAX_SALARY NUMBER(6) RMAN> If you are connected using the SYSDBA privilege, you can\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":236,"url":"https:\/\/bijoos.com\/oraclenotes\/2014\/236\/","url_meta":{"origin":1473,"position":5},"title":"ASM User Management Q&#038;A","author":"Biju","date":"March 6, 2014","format":false,"excerpt":"Q: Can you create users in ASM instance? A: Yes, absolutely. Q: Why? A: For better security. Q: I was told there is no database associated with ASM, it is just an instance, so where is this user really created? A: You must have a password file to create users.\u2026","rel":"","context":"In &quot;Infrastructure &amp; Exadata&quot;","block_context":{"text":"Infrastructure &amp; Exadata","link":"https:\/\/bijoos.com\/oraclenotes\/category\/infrastructure-exadata\/"},"img":{"alt_text":"users","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2014\/03\/users-150x150.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/comments?post=1473"}],"version-history":[{"count":1,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1473\/revisions"}],"predecessor-version":[{"id":2999,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1473\/revisions\/2999"}],"wp:attachment":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/media?parent=1473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/categories?post=1473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/tags?post=1473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}