Oracle Reports (MOSC)

MOSC Banner

Ref Cursor and Dynamic Query in Oracle Reports

edited Feb 22, 2012 11:38PM in Oracle Reports (MOSC) 7 commentsAnswered ✓
hi,
We normally use ref cursors for our reporting - all stored in a package in the database.
This way all the work needed by the query is done by the database.
This works fine where the parametmers are known at run time.

But now I need to write a report where the parameters will only be determined at run time.

I've tried defining my type

TYPE RDMC_TEST_DATA is RECORD
    ( SCHEME_ID                         TS_SCHEMES.SCHEME_ID%TYPE,
      APPLICATION_ID                 TD_APPLICATIONS.APPLICATION_ID%TYPE,
      Customer_No                       TD_APPLICATIONS.CUSTOMER_ID%TYPE,
      DATE_OF_APPLICATION     TD_APPLICATIONS.DATE_OF_APPLICATION%TYPE);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center