Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • plan10g.sql good1 Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • dbinv.sql Oracle
  • reset Sequence Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • SYSOPER Mystery Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • initUOCIOTTO.ora Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • grep multuple patterns Linux/Unix
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • Drop tempfiles from database Oracle

Roles and Stored Procs II

Posted on 31-Jan-2006 By Admin No Comments on Roles and Stored Procs II

Problem Resolution For roles and Stored Procedures.

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:961430030094

http://asktom.oracle.com/~tkyte/Misc/RolesAndProcedures.html

As per http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:961430030094 with tom kyte, he has mentioned that we cannot compile this unless we give direct object privs to Owner of procedure, as at compile time AUTHID DEFINER and AUTHID CURRENT_USERS behave same. They both compile as per the definers privs.

We can resolve this issue by using NDS, as NDS does not validate object existance.. As following..

execute immediate ‘SELECT max(EFF_DATE) FROM CORPORATE.DIRECT_CAD’ INTO DtCurr_RepDate;

This will bypass compile time object validations. See following work-around.

12:16:57 WEBP18FSCRIPTS@WEBP18F:-> create or replace procedure pvm_1

12:16:57 2 AUTHID CURRENT_USER

12:16:57 3 as

12:16:57 4 Myint number;

12:16:57 5 begin

12:16:57 6 execute immediate ‘select count(1) from browse_channel’ into myint;

12:16:57 7 dbms_output.put_line (‘myint = ‘ || myint);

12:16:57 8 end;

12:16:57 9 /

Procedure created.

Elapsed: 00:00:00.05

12:16:57 WEBP18FSCRIPTS@WEBP18F:-> exec pvm_1

myint = 19

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.01

12:16:59 WEBP18FSCRIPTS@WEBP18F:->

http://www.adp-gmbh.ch/ora/plsql/authid.html

Oracle, SQL scripts

Post navigation

Previous Post: Identical Dblink Issue…
Next Post: sid_wise_sql.sql Further explaination

Related Posts

  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (6)
  • Videos (0)

Recent Posts

  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • scp with ssh2 Linux/Unix
  • Creating a Container Database using dbaascli Uncategorized
  • Proc Compilation Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme