Using dbms_application_info.set_client_info('ORG_ID') in BI Publisher rep

Hello,
I have a problem here. I would appreciate if you could please provide me some suggestions on this.
I am developing a report in BI publisher using database as data source. In my query i am using few views so in order to get the data from those views, i need to initialize those views. In case of rdf, this task could be achieved by using before report trigger but right now i am developing the report using BI Publisher without using RDF. I am writing the query in BI Publisher itself and will be creating the data template for the same and upload it into the BI Publisher. So my task is to use "Begin dbms_application_info.set_client_info('ORG_ID') end;" into BI Publisher query but i dont know ow can i achieve this target. I would appreciate if anyone could help me out on this.
Please note that i am not planning to run the report from Oracle Apps through concurrent program but this report will be imported into OBIEE dashborad for view purpose.
Thanks,
Regards,
AS

Hello Rainer,
As mentioned, i have changed he header section and have removed the package reference from the SQL query and now it is showing some different error: "Please define p_order_number component". If i remove datatrigger and package reference in the first line it works fine. Following are the package and data template:
<dataTemplate name="ShipPacketReport" description="Ship Packet Report" dataSourceRef="IPOVIS" defaultPackage="xx_shpckt_init" Version="1.0">
     <parameters>
          <parameter name="p_order_number" dataType="character" defaultValue="14156"/>
     </parameters>
     <dataQuery>
          <sqlStatement name="Q1">
               <![CDATA[SELECT order_number, ordered_date, request_date, sold_to_org_id, header_id, shipping_method_code
            FROM oe_order_headers_all
           WHERE ORDER_NUMBER = :p_order_number
         ]]>
          </sqlStatement>
     </dataQuery>
     <dataTrigger name="beforeReport" source="xx_shpckt_init.beforeReportTrigger"/>
</dataTemplate>
Package:
Create or replace package xx_shpckt_init AS
function beforeReportTrigger return boolean;
END;
CREATE OR REPLACE PACKAGE BODY xx_shpckt_init
AS
function beforeReportTrigger return boolean as
begin
dbms_application_info.set_client_info('ORG_ID');
return(true);
end;
end;
Please note that i have created a parameter called p_order_number in report except from this data template, and have referred that parameter in the datatemplate and have created a LOV on the same. Is this what creating the problem?
Please suggest.
Thanks,
Regards,
AS
Edited by: user9959418 on Nov 11, 2008 2:38 PM

Similar Messages

  • Dbms_application_info.set_client_info(:Org_Id);

    Hi,
    Need to create workbook in Oracle Discoverer Desktop.
    I need to know how can I initilize org Id in Oracle Discoverere or Admins
    begin
    dbms_application_info.set_client_info(:Org_Id);
    end;
    this need to execute before run the workbook
    If anybody let me know how to do it in Oracle Discoverere or Oracle Adminstrator then it will be great.
    Thanks

    You need to write this dbms_application_info.set_client_info(:Org_Id) inside a function. Create a sheet & call this function as a calculation item...In the next sheet create your report.
    Prasath.

  • DBMS_APPLICATION_INFO.SET_CLIENT_INFO

    Can I call this procedure via ODP.NET? I have been trying, and it has not been successful. A small code sample would be appreciated if this is possible.

    Now I'm completely lost. Trying to call SET_CLIENT_INFO is only an example of what you're having a problem with? SET_CLIENT_INFO is an example of what you want your procedure to do? Something else?
    A stored procedure cannot return status information to the caller until the end of the call. You can use DBMS_APPLICATION_INFO to indicate where a long-running call is, but you will need another session to read the information. If session 1 makes a long-running call, for example, your application will need a second thread and a second session in order to read the information set by the first session.
    You will want to read up on all the procedures in the DBMS_APPLICATION_INFO package, particularly SET_SESSION_LONGOPS if you intend on tracking the progress of a long-running procedure.
    Justin

  • How do you link to or use the Adobe CDN after you publish your project?

    So maybe I am stupid but I really can't find any useful info on how this CDN publishing actually works...
    This is from the edge animate API adobe white papers (also right below it in the section about HTML pages I think they are missing the word header in the first sentence... kinda funny - Adobe Edge Animate CC JavaScript API)
    CDN Hosting
    Using the Adobe Content Distribution Network (CDN) is a great way to speed up Animate composition delivery. Compositions using the Adobe CDN all share a single URL for jQuery and the Edge Runtime. The browser caches the runtime, so the user only downloads the library once no matter how may Animate compositions they view, even if compositions are on different sites and produced by different authors. Don't use the CDN if your composition needs to run without an Internet connection or if you want to use your own hosting exclusively.
    The Animate Runtime CDN uses the following URL:
    <script type="text/javascript" charset="utf-8"    src="http://animate.adobe.com/runtime/4.0.0/edge.4.0.0.min.js"></script>
    I mean this all sounds great! So how do I use it? I don't see an obvious place in this URL to replace with what would be the link to my project? I also did not get any unique identification numbers that I could put into a URL to pull the correct content. Shouldn't I be having some unique identifier? How dose it know which project is mine? Maybe I just really don't understand how this works...
    My goal is to have this nice little animation I made in edge play when someone visits the website and then fade into the homepage. Is this possible? It would be great if I could just put some script links in the header and let the adobe CDN take care of all the delivery aspects and keep my server load down rather than uploading the files myself and having to use extra bandwidth.
    Thanks so much!

    Huh? What are you talking about?
    Yes where do I get my unique script files to link to adobe CDN... But Adobe CDN dose not work that way... It just host common files... So when you check that box it automatically writes that script in your files that you need to host on your server... That last part was not clear to me that it was only certain files... Why not all the files right?
    But no instead of adding the conversation about how that feature might be cool or if you would want it too... You have some troll remark with a smug smiley face about well originally "
    To be fair, you did inquire about inserting it externally.
    " In what way? You took that part out of context... The rest says "and let the adobe CDN take care of all the delivery aspects and keep my server load down rather than uploading the files myself and having to use extra bandwidth."
    This obviously refers to me putting a link in the head of my website that links to the adobe CDN for my entire animation and not uploading any files to my server... Get a life heathrowe and stop trolling the forums...
    However if you want to grow up and would like this feature too please give it a thumbs up when I post in the feature request... I think this would be great added functionality... It would give animators the ability to build complex animations and then just give a link to the site owner to have the animation play on the site... Animators could potentially then rent or lease animations to site owners and if site owners don't pay we could just change the link bring control back to us... I think this could be huge... But maybe I am wrong...

  • If I use presenter trial version, will my published presentation also expire after a month?

    If I use presenter trial version, will my published presentation also expire after a month? - I know that this is true with captivate, but not sure with presenter. please help. thanks!

    No, the publish content will not expire.
    You will not be allowed to use Adobe presenter after the trial expire but your project will be Ok.
    Thanks,
    Sunil
    Adobe Presenter Engg Team

  • Is there a way of using remoteupdatemanager to install the Digital Publishing suite to Adobe inDesign?

    Is there a way of using remoteupdatemanager to install the Digital Publishing suite to Adobe inDesign, if not how do I install it to Macs running Adobe CC 2014? I need to do this remotely and silently using ARD to over 100 Macs.

    It's alo what mine looks like as well because I've not added anything At first I didn't know and no one would tell me. Then I just go used Tools menu. It far more complex to learn if you go to it Cold Turkey from using Menu bars which are vastly easier. It’s a shock to your system. But you learn to use tools menu evn though it takes far more time. You waste time clicking heading to find sub topics and sometimes items that should be grouped together are spread all over.  But, Hey Change is supposed to be good whether we want it or not.

  • Can use another software (not FMLE) to publish stream to FMS?

    Hi all,
    I have a question:
    Can use another software (not FMLE) to publish stream to FMS?
    I ask this question because I want to use Authentication add-in to prevent user publish stream to FMS. This add-in only affect with FMLE, so, if user use another encoder software, they still can publish stream to my FMS

    You can use any encoder to publish to FMS - you can write you own add-in to restrict any publisher - but you are right that FMLE add-in will work only for FMLE.
    Actually i am not clear with your questions - Are you concerned that other publishers apart from FMLE would publish or you want add-in for other encoders - meaning do you plan to use another encoder?
    If its first problem - you can do simple thing - turn SWF verification on - make exception for FMLE and have FMLE add-in - in this case only valid clients would be able to connect - even other encoders wont be able to connect - so if someone cant connect there is no way they can publish.

  • How to use 2 vo's in xml publisher pdf genarate report from oaf--urgent

    Hi Guru's,
    i am integrating xml publisher report from oaf. I found one good artical published by prabaker in apps2fusion site and i implemented the same. But it is used onley one view object to generate pdf. But in my case i want to use 4 view objects to generate report as pdf. So, kindly suggest me how to resolve this issue.
    below i mentioned the site name whihc i follwed to implement my requirement.
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework.
    pls help me as i am not getting , how to solve this issue.
    Thanks in advance.
    Keerthana

    Hi,
    When we develop simple XML report also we used to get single data source either generated either from RDF or PL/SQL, in OAF XML data is coming from VO and XML Publisher API’s will process that data.
    This approach works fine if you are having one VO, but if you are having two VOs then it is not possible (As per my understanding and comparing this scenario with simple XML publisher report).
    I also faced same problem few months back, on my form I was having two VOs one for header and other for Lines and I have generate Report to show the data for both Headers and Lines. In my case I created a separate VO that was containing both Header and Line details and I was passing header Id to query that. I used query this VO only when someone clicks on “Print” button and it worked fine for me.
    Regards,
    Mahesh B.

  • HT5071 Can more then one person (with different Apple ID's) use the same iBookAuthor Program to Publish (house hold computer)?

    I want to publish my fathers books using iBooks Author.  I'm going to set him up with an Apple ID, but he does not have a computer and I will be publishing it from my personal computer.  I have my own Apple ID and wish to publish my own books using the same program on the same computer.  Will this be an issue? or will I be able to switch Apple ID's upon pushing it to pusblish? 

    I have a free books account and later applied for a paid books account.
    This required setting up a new Apple ID and not using the same email or passwords.
    So  they are two totally separate accounts - on my computer.
    That part is not a problem for you and your father.
    The other aspect is both will need to open an iTunes Connect account for each ID.
    I dont see delivery as a problem.
    The part I am not sure about in your case is iTunes - as I only have me as usuer on the computer its never been an issue, but there is a Family sharing option available.
    The previous post is the best starting point as you will both need separate accounts.

  • Integrating AS 10.1.2 and AS 10.1.3 to use Single Sign-on for BI Publisher

    Hi Everyone
    I was trying to make the following demonstration scenario on the AS and the facilities that can afforded by Oracle to our company:
    Note: I have just one machine for demonstration with Win2003 Enterprise
    First of all, I need to build a portal for my company, this portal will be published to the web through port 80 opened by Microsoft ISA Firewall (ISA installed on different machine):
    1- Portal should be integrated with oracle forms and reports with single sign-on
    2- AS, should have single sign-on authentication to work on port 80 only.
    3- Portal should be integrated with BI Publisher 10.3
    For the objectives mentioned above i have done the following:
    1- install AS 10.1.2 (infra and mid-tier) on the same machine with default installation options (http port 7777 for infra and port 80 for MT). (objective 1 = done)
    2- to make sso works on port 80, i have used webcache as reverse proxy for sso, and it's done but i have error (WWC-41400), but it doesn't affect login on portal, and that is my first problem.
    3- To have BI Publisher to work and authenticate users using single sign-on on port 80 (from outside), I had to install AS 10.1.3 (http on port 7779) on the same machine mentioned above, and then deploy BI Publisher on it, and that was ok, but problem is how to make use of single sign-on to authenticate people listed in oracle internet directory of INFRA installation mentioned above to use BI Publisher on port 80 only.
    So, could anyone please guide me in problem 2 and 3.
    Thanks in advance.
    Anas

    a couple of parameters not configured inside the Tomcat files. Now the SSO is working.
    SNC is not required for sso in bi 4.0
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BI4IntegrationintotheSAPEntreprisePortal+7.0.x
    http://wiki.sdn.sap.com/wiki/display/BOBJ/SetupofSAPSSOServiceinSAPBOBI4.0+CMC
    Best Regards

  • Can I use the timestamp of a Network published global variable to reduce network traffic?

    I would like to use a couple of network-published global variables that will contain large clusters of data.  I want to host them on one device but read them from several - consider a distributed control system.  The data will update very infrequently, but, when it does, I want all my HMIs to know quickly.  I can have all the HMIs just read the data 4x/second (that would be fast enough) but I was wondering if there is a more elegant solution (still using global variables).  If I read only the timestamp 4x/second from each of the HMIs, compare it to the last read, and then poll the whole variable only if the timestamps are different, will that require less resources than just grabbing the whole variable every time?  In other words, does reading the timestamp use the same amount of resources as reading the whole variable?
    With really simple code, assuming the "Setup Data" cluster is quite large, does....
    ...get me any advantage over...
    Solved!
    Go to Solution.

    mark3545 wrote:
    So that means they are already doing what I want anyway, right?  If the reader only gets updated when the writer changes it, I can poll it as often as I want without increasing traffic, correct?
    That is correct.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Using DBMS_APPLICATION_INFO.SET_MODULE to get the number of updated rows.

    hi.
    i have 2 tables to sync so i use the following code. however i included DBMS_APPLICATION_INFO.SET_MODULE to track the number of rows to be updated, but its not showing in v$sessions view. can anyone tell me what am i missing over here ?
    DECLARE
    l_count NUMBER (20, 0) := 0;
    l_updates NUMBER (20, 0) := 0;
    l_inserts NUMBER (20, 0) := 0;
    BEGIN
    FOR i
    IN (SELECT date_value,
    book_id,
    amount
    FROM bookstore.book_master_transit)
    LOOP
    BEGIN
    UPDATE bookstore.book_master
    SET amount = i.amount
    WHERE date_value = i.date_value
    AND book_id = i.book_id;
    IF (sql%ROWCOUNT > 0)
    THEN
    BEGIN
    l_updates := l_updates + 1;
    END;
    ELSIF (sql%ROWCOUNT = 0)
    THEN
    BEGIN
    INSERT INTO bookstore.book_master (     date_value, book_id, amount)
    VALUES (i.date_value, i.book_id, i.amount);
    l_inserts := l_inserts + 1;
    END;
    END IF;
    l_count := l_count + 1;
    DBMS_APPLICATION_INFO.set_module ('sync_book_info','total = '|| l_count|| '; updates = '|| l_updates|| '; inserts = '|| l_inserts);
    IF (MOD (l_count, 1000) = 0)
    THEN
    COMMIT;
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    NULL;
    END;
    END LOOP;
    COMMIT;
    END;
    when i query v$sessions after running this i couldnt find any entry with the value 'sync_book_info' as the module name. please advice me what i am doin wrong and how to do it right..
    thanks in advance,
    noviceDBA

    novicedba wrote:
    hi.
    i have 2 tables to sync so i use the following code. however i included DBMS_APPLICATION_INFO.SET_MODULE to track the number of rows to be updated, but its not showing in v$sessions view. can anyone tell me what am i missing over here ?
    DECLARE
    l_count NUMBER (20, 0) := 0;
    l_updates NUMBER (20, 0) := 0;
    l_inserts NUMBER (20, 0) := 0;
    BEGIN
    FOR i
    IN (SELECT date_value,
    book_id,
    amount
    FROM bookstore.book_master_transit)
    LOOP
    BEGIN
    UPDATE bookstore.book_master
    SET amount = i.amount
    WHERE date_value = i.date_value
    AND book_id = i.book_id;
    IF (sql%ROWCOUNT > 0)
    THEN
    BEGIN
    l_updates := l_updates + 1;
    END;
    ELSIF (sql%ROWCOUNT = 0)
    THEN
    BEGIN
    INSERT INTO bookstore.book_master (     date_value, book_id, amount)
    VALUES (i.date_value, i.book_id, i.amount);
    l_inserts := l_inserts + 1;
    END;
    END IF;
    l_count := l_count + 1;
    DBMS_APPLICATION_INFO.set_module ('sync_book_info','total = '|| l_count|| '; updates = '|| l_updates|| '; inserts = '|| l_inserts);
    IF (MOD (l_count, 1000) = 0)
    THEN
    COMMIT;
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    NULL;
    END;
    END LOOP;
    COMMIT;
    END;
    when i query v$sessions after running this i couldnt find any entry with the value 'sync_book_info' as the module name. please advice me what i am doin wrong and how to do it right..
    Totally, 100%, remove & eliminate entire EXCEPTION handler.
    Then you will be able to see error being RAISED; like No Privs

  • Using a site in iWeb to publish to an external server - problems with RSS

    Hi!
    I have a rather odd problem. I have a .Mac account, but I also work for a non-profit organization that has asked me to handle their website. I would like to use iWeb to do that and am attempting to publish the site to an external server. However, I also want to use iWeb to publish my own personal account pages to .Mac.
    I have the site up and running, and most everything works on it except the RSS feed. I typed the url into the Publish to Server dialogue, but it has been to no avail. I wonder if it has to do with the fact that I am not publishing ALL of my sites to this server, just one of the sites. (When I invoke the Publish to Server command, it creates a master index and folders for each of the sites. Then, I have been discarding all of them except for the folder of the site I want to publish, which I have to name "public_html" to conform with our domain provider's requirements. This works great, except the RSS feed is broken when I do this.
    I know I can use a seperate log-in account and re-make the entire webpage there, but I consider that to be a last resort and I am looking for a better method than this.
    Any suggestions? The site is http://www.oatag.org
    Thanks,
    Steve
    MacBook 2gHz Core Duo   Mac OS X (10.4.2)   1 GB RAM, Superdrive, 100 Gig HD

    Then, I have been
    discarding all of them except for the folder of the
    site I want to publish, which I have to name
    "public_html" to conform with our domain provider's
    requirements. This works great, except the RSS feed
    is broken when I do this.
    When you break the site structure by changing names of folders you also break the link for the RSS feed.
    I find it hard to believe you are really required to change the name of the folder like that. Instead you should be inserting into the folder called public_html the following two things: the folder published by iWeb which has the same name as your site does inside iWeb, plus the index html file published alongside it. To make sure that this index.html file actually points to the site you are uploading, make sure this site is at the top of the list inside iWeb before publishing.

  • Use of OLE Objects with the Publisher tool

    Our company is trying to put user guides, screen shots, report examples, etc. on the BPMN diagrams that we are creating. I am wondering if anyone has figured out a good way to get multi-page documents to show up as icons which can be clicked from the Business Process Publisher web client. The normal OLE's work decently for users with BPA installed, but they are not hyperlinked in the Web Client. One option I tried was simply displaying the OLE not as an icon, but simply as it's own diagram in BPA, so it would be available that way, but the problem there is it only shows the first page, and it doesn't allow it to be linked to from an icon, it only uses the assignment icon. Any ideas? Best practices?
    -Chris

    HI Chris
    there are link attributes which let you browse and choose a file as link.
    when you create a web export, the files choosen as links for attributes are also exported on Business publisher.
    One of the three profiles you choose when doing a web export support files being copied on BP server
    Cheers

  • Using Lexical Parameters in OBIEE 11g Publisher

    Hello All,
    I want to know if there is a provision to use lexical parameters to be used in 11g Publisher. I know we could do this in 10g Publisher with the use of data template and database package. This is a very useful functionality to dynamically deduce the SELECT and WHERE clauses based on the input parameters.
    For what I have explored, this functionality seems to be missing in 11g.
    Can anybody throw some light on this please?

    Does anyone know about this please?

Maybe you are looking for

  • Invoice number range problem

    Dear all, After doing miro, my invoice number for my doucment is 5105600105.  I  started another invoice and finished. That time  the invoice number is coming as 5105600111. In between numbers are missing. I couldnt find out why it is coming like tha

  • Down payments request for Asset Under Construction

    Hello Expert while Down Payment request  to vendors - for Asset Under Construction, system showing error. Contact your system administrator (table error) Message no. AA866 Diagnosis No account has been entered for posting down payments in area 01 und

  • Errors in archiving in alert log

    Hi I have a Oracle 9i database (9.2.0.7) for which I turned on arhivelog mode a week ago. In this db, inthe alert log there are following errors: ARC1: Evaluating archive log 1 thread 1 sequence 1221 ARC1: Unable to archive log 1 thread 1 sequence 12

  • Can't pull off the antenna for AirPort Extreme Card

    Hi, I was trying to install an AirPort Extreme card on my G5 iMac...where I couldn't physically pull the tip of the antenna off the gray plastic base... I tried turning it to the right and left, but it didn't help me out. Seems like I need a knack or

  • SALES ABAP QUERY

    HELLO SD MASTERS, I have created a ABAP QUERY by linking tables VBAK - VBAP - VBEP- LIKP -LIPS. Data is not fetching when i combine all the tables.but data is fetching when first three sales order header,item & schedule line tables VBAK , VBAP,VBEP