Trending
Nigerian scientist, Gabriel Ezenri unveils cost-effective diabetes prevention model for H… is trending now Beyond Surgery: Lifestyle choices that could help reduce fibroid risk is trending now Diphtheria kills 17 in Niger as 124 cases recorded in seven months is trending now AHF opens applications for HIV/TB media reporting project, targets seven states is trending now Telomere-to-telomere brown rat genome could sharpen disease research models is trending now Super Rare Humpback Whale Birth Caught on Drone Camera For The First Time Off The Coast o… is trending now SpaceX launches 24 Starlink satellites to orbit from California (video) is trending now 'Flying focus' laser overcomes key limitation in plasma-based particle accelerators is trending now WAFCON 2026: Morocco, South Africa clash for semi-final spot, World Cup ticket is trending now Atletico Madrid will not sell Alvarez amid Barcelona interest, says Simeone is trending now Police report reveals: man wanted to murder Lionel Messi in a brutal manner during the Wo… is trending now FIFA President Gianni Infantino denies claims UEFA paid off alleged lover is trending now Nigerian scientist, Gabriel Ezenri unveils cost-effective diabetes prevention model for H… is trending now Beyond Surgery: Lifestyle choices that could help reduce fibroid risk is trending now Diphtheria kills 17 in Niger as 124 cases recorded in seven months is trending now AHF opens applications for HIV/TB media reporting project, targets seven states is trending now Telomere-to-telomere brown rat genome could sharpen disease research models is trending now Super Rare Humpback Whale Birth Caught on Drone Camera For The First Time Off The Coast o… is trending now SpaceX launches 24 Starlink satellites to orbit from California (video) is trending now 'Flying focus' laser overcomes key limitation in plasma-based particle accelerators is trending now WAFCON 2026: Morocco, South Africa clash for semi-final spot, World Cup ticket is trending now Atletico Madrid will not sell Alvarez amid Barcelona interest, says Simeone is trending now Police report reveals: man wanted to murder Lionel Messi in a brutal manner during the Wo… is trending now FIFA President Gianni Infantino denies claims UEFA paid off alleged lover is trending now
Organic

How to Grant Privileges in Oracle EBS R12.2 Using AD_ZD.GRANT_PRIVS

When working with Oracle E-Business Suite (EBS) R12.2, granting privileges to applicatation objects requires special care to avoid invalidating objects in the current edition.  Grants cannot be performed in the run edition when the application is being used. A direct GRANT (DDL) command can potentially cause object invalidation when the application is actively being used. To handle this in a more controlled manner, Oracle introduced the AD_ZD.GRANT_PRIVS utility. Why Use AD_ZD.GRANT_PRIVS? In Oracle EBS R12.2, all grants should be performed using the AD_ZD.GRANT_PRIVS procedure rather than the traditional GRANT statement.  The reason is simple: the GRANT statement directly modifies objects in the database, and this can invalidate them in the current edition. Invalidations during runtime can cause service interruptions, which is unacceptable in a live system. Syntax for Granting and Revoking Privileges The AD_ZD package provides two primary procedures: Granting Privileges: Copy exec AD_ZD.grant_privs('privilege', 'object_name', 'grantee'); Revoking Privileges: Copy exec AD_ZD.revoke_privs('privilege', 'object_name', 'grantee'); Granting Specific Roles: Copy grant APPS_READ_ROLE to <SSO_ID>; Example Use Case Let’s walk through a practical example. Suppose you want to grant a SELECT privilege on the SABRIX_INVOICE table to a read-only user (RO515121110). You can use the following commands: Grant SELECT privilege: Copy exec AD_ZD.grant_privs('SELECT', 'SABRIX_INVOICE', 'RO515121110'); Revoke SELECT privilege: Copy exec AD_ZD.revoke_privs('SELECT', 'SABRIX_INVOICE', 'RO515121110'); Grant APPS_READ_ROLE to the user: Copy grant APPS_READ_ROLE to RO515121110; These steps ensure that privileges are managed safely without risking any disruptions to the application.

View original source →

Related