DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: ORA-06508 PL/SQL: could not find program unit being called

Threaded View

  1. #3
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    90

    called code attached

    Here's calling code (test)

    this.optpages := avetestproc.ave_pgacct.get_optpages('6');

    It is called from a procedure that also sets the value of ct_global.cts$protocol to the appropriate schema name, thus the need for dynamic sql in the package.

    The package executes dynamic sql query once (at initialization) and then returnes results cached in an array. The idea is that when the function is called for the first time for this session, the array will be populated. The first call will take a little time. Subsequent calls to get_optpages should result in a very fast responce.
    Like I said, both the package and the calling procedure compile without errors. Dbms_sql is used because my db version is 8.1.7.0.0 and the NDS is not available.
    Attached Files Attached Files
    Last edited by ddrozdov; 04-24-2004 at 06:35 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width