In a message dated 98-10-07 11:14:15 EDT, you write:
SELECT statement:
business_hours(LOGS.CREATION_TS,LOGS.RESOLUTION_TS,CUSTOMER_SITES.SITE_ID,’ US’)
business_hours being the name of an oracle procedure.
Apparently, this does not work in BO4.1.3. Are there any alternatives to
it?
There are two types of “stored” processing allowed by Oracle: functions and procedures. Stored functions are invoked in a Select or Where clause. As in:
select business_hours(x, y, x)
from some_table
A stored procedure is invoked without a select, as in:
business_hours (x, y, z)
The main difference is that a stored function returns a value, while a stored procedure simply processes data. You should be able to use stored functions anywhere in Business Objects, in fact there is a technical document at my company’s web site that details how to do this.
www.islink.com/bobjoraf.htm
Stored procedures are another matter. Business Objects is designed to process output, and Oracle stored procedures do not (typically) generate output. They just “do something”. To the best of my knowledge, these will not work in BusinessObjects.
However, there was a note posted on the list a while back that I saved that included a reference to the BusObj manual… I have not looked it up yet, but have repeated it here for your reference. Again, though, your stored procedure has to generate output for BusinessObjects to be able to use it.
Regards,
Dave Rathbun
Integra Solutions
www.islink.com
In a message dated 98-08-15 10:29:29 EDT, you write:
Later versions of Oracle (maybe 7.1 and up?) can return a result set from a
stored procedure. If you have an Oracle stored procedure that returns a result set, you can use the SP as a data provider. See page 40 of the BusinessObjects Oracle Database Guide for detailed instructions. note- the Oracle account running the stored procedure must have execute access to to it.
Best Regards, Lori
Lori_SAGE@solution4u.com
SAGE Solutions, Inc.
908-813-8207
Listserv Archives (BOB member since 2002-06-25)