How to initialize apps session in OBI

Hi,
Can anyone please tell me how to set apps initialize session in OBIEE.
I am creating an OBI report which has calculation in Answers and I am doing this through EVALUATE function and for some calculation I need to set apps initialize session as the calculation contains pkg.function which is in Oracle apps database.
I need to initialize the below thing in OBIEE
BEGIN
mo_global.init('PO');
mo_global.set_policy_context('S',825);
END;
Please help.
Thanks
Titas

Hi Titas,
You could make use of 'Connection Pool' -> Connection Scripts tab for initializing the session before/after/on connect / on disconnect as per your requirements.
Hope this helps.
Thank you,
Dhar

Similar Messages

  • How to initialize the Sample app in Planning 11.1.2.2

    Hi,
    After creating the sample application in Planning 11.1.2.2, how to initialize it.

    log into the application, Administration > Application > Manage applications
    Select the application, click Action > Initialization.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to get transacted session in direct mode with jmsra adapter

    Hi,
    I use MQ 4.4u1 release with GF in EMBEDDED mode. I configured several connection factories with NoTransaction/LocalTransaction/XATransaction support. In my app I get a connection factory from JNDI tree, create connection/session/producer and send several messages to queue. Everything works fine when I don't use transactions. But, when I want to send messages in one transaction, the connection always provided to me non-transacted session. The session created via
    Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
    request. I check the session transacted state and acknowledge mode right after i get it:
    log.fine("Session: " + session + "; transacted: " + session.getTransacted() + "; ackMode: " + session.getAcknowledgeMode());
    The log shows me that the session is not transacted and ackMode is 0 (DUPS_OK_ACKNOWLEDGE). If I try to commit the session after messages were sent I get the correct exception:
    javax.jms.IllegalStateException: MQJMSRA_DS4001: commit():Illegal for a non-transacted Session:sessionId=3361979872663370240
    Does anyone know how to get transactional session in direct mode?
    Thanks, Denis.

    I mentioned LOCAL because I misread your post and thought you were suggesting that LOCAL mode behaved differently.
    If you want to send messages in a transaction from within a Servlet then I think you're expected to use a UserTransaction: Here's an example that worked for me:
            Connection connection = outboundConnectionFactory.createConnection();
            Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
            userTransaction.begin();
            MessageProducer producer = session.createProducer(outboundQueue);
            int numberOfMessages = 10;
            for (int i = 0; i<numberOfMessages; i++) {
                Message message = session.createTextMessage("Hello world");
                producer.send(message);
            userTransaction.commit();
            connection.close();I obtained the UserTransaction with this resource declaration:
        @Resource(name = "java:comp/UserTransaction")
        private UserTransaction userTransaction;The EJB spec explicitly states that local transactions aren't supported in EJBs; I haven't found such an explicit statement for Servlets but suspect that JMSRA is taking the same approach.
    As for imq.jmsra.direct.disableCM property - this appears to disable connection pooling and from your post changes other behaviour as well. How did you find out about it (other than by examining the code)? As far as I can see this is not a documented feature and is not necessarily tested or supported.

  • How can we use Session Variable in Answers or Analysis?

    How can we use Session Variable in Answers or Analysis?

    Again, duplicate cross-posting!
    See rukbat 's post here: Re: BI Apps 7.9.6.3(Agent Issue)

  • ICX session id tracking for Current Apps session

    Hi All,
    I have a requirement to track the user preferences settings for date and number format.
    I understand that this information will get stored in icx_sessions.
    I need to capture the current apps session id it to get date and number format set to the current session.
    Do you have Any clue to capture the current application session id?
    Thanks
    Raghavendra Nara

    jemar98 wrote:
    Our current ICX session timeout is 30 minutes. We would like to increase it 4 hrs as requested by our business users. What are the implications of such a change? What should we look out for? Are there any guidelines or documentation?
    How to Change User Session Timeout in e-Business Suite R12 (Doc ID 1067115.1)
    How AutoConfig sets profile option 'ICX: Session Timeout' (Doc ID 307149.1)
    ICX_SESSIONS Table Showing Inconsistant Timeouts (Doc ID 555904.1)
    How To Manage Timeout at Responsibility Level (Doc ID 412224.1)
    Thanks,
    Hussein

  • How to detect apps users holding locks

    Dear all
    Finding out users holding locks is easy for database and then killing them using alter statement
    But when the Sid is revealed, how can i link them to apps users and find who the user actually was

    Sawwan,
    On my test server, i logged in from a user farid and held a lock on MTL_SYSTEMS_ITEMS_B table through the item master form
    Then i did as follows just to analyze how to find apps username holding the lock
    SQL> select object_id from dba_objects where object_name='MTL_SYSTEM_ITEMS_B';
    OBJECT_ID
    38489
    38715
    SQL> select * from v$lock where id2=38489 or id2=38715;
    no rows selected
    SQL> select * from v$lock where id1=38489 or id1=38715;
    ADDR KADDR SID TY ID1 ID2 LMODE
    REQUEST CTIME BLOCK
    000000009D869FE8 000000009D86A010 347 TM 38489 0 3
    0 165 0
    SQL> select paddr from v$session where sid=347;
    PADDR
    000000009F912AE0
    SQL> select addr,pid from v$process where addr='000000009F912AE0';
    ADDR PID
    000000009F912AE0 57
    SQL> select
    2 d.user_name "User Name",
    3 b.sid SID,b.serial# "Serial#", c.spid "srvPID", a.SPID "ClPID",
    4 to_char(START_TIME,'DD-MON-YY HH:MM:SS') "STime"
    5 from
    6 fnd_logins a, v$session b, v$process c, fnd_user d
    7 where
    8 b.paddr = c.addr
    9 and a.pid=c.pid
    10 and a.spid = b.process
    11 and d.user_id = a.user_id
    12 and a.SPID = &PID;
    Enter value for pid: 57
    old 12: and a.SPID = &PID
    new 12: and a.SPID = 57
    no rows selected
    Now can you plz tell me if all i did was right and the query doesnt work or something i did was wrong in the above action plan

  • How do I access session data through an EJB?

    Hi
    How do I access session data through an EJB?
    I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
    I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
    <jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
    <%
    String key = "test";
    String value = "This is the value";
    userContextWebImpl.setValue( key, value1 );
    %>
    </jsp:useBean>
    and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
    Please help!

    I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
    A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
    I have tried with this code, but with no luck.
    (ApplicationContextWebImpl is the JavaBean)
    public static String getBookingResult( String key )
         String myResult = null;
         String myKey = key;
         ApplicationContextWebImpl applicationContextWebImpl = null;
         try
              applicationContextWebImpl = new ApplicationContextWebImpl();
              myResult = (String)applicationContextWebImpl.getValue( key );
         catch ( java.rmi.RemoteException e )
         return myResult;
    }

  • I have been using my Apple ID in India and recently i moved to Spain and now i can not see my indian apps.it says my apple ID is valid for only spanish store.how to download apps from Indian store being in Spain.

    I have been using my Apple ID in India and recently i moved to Spain and now i can not see my indian apps.it says my apple ID is valid for only spanish store.how to download apps from Indian store being in Spain.

    Did you try to change the location  in Settings/iTunes & AppStore/AppleID -> view Apple ID, log in ->Country/Region -> India?

  • How are ePrint apps created and maintained?

    Just bougt a new small HP printer for my home office and discovered ePrint and apps support. And amazed, did not expect this technology in entry level small/home office type printers.
    And immediately new questions on what possibilities this opens up for printing applications
    What is required to create new apps?
    Is it possible to use this technology to add local office apps? I.e. to print site/office specific forms, trivial network interactions and maybe a bit more.
    Is subscription type apps supported/allowed, where the app is only available as part of a third party subscription package?
    A lot can be built around the email based ePrint service alone, but having ability to also do some simple interaction with the user at the printer would open for a wide range of new possible uses.

    Hi,
    Double post, please use:
        http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup/How-are-ePrint-apps-created-and-mainta...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Can anyone advise how to close apps on iPad with new iOS? I have multiple open and cannot close them.

    Can anyone advise how to close apps with the new iOS?  I have multiple open and cannot close them

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • How does an app show up without typing in a password for iTunes?

    Is there a way that an an app can install or be downloaded without knowledge or approval?  Wifi? Bump? Accidental from Facebook? 
    The particular app in question provides quotes, photos, and cartoons that can be used on Facebook, backgrounds, etc. It also has a statement that the user must be 17 or older  to download, due to content. 
    App does not show up in purchase history. Why not? How can this be?
    How does an app install without signing in with a password or tapping the install button?  Possible or not? Need legitimate and plausible response please.

    Found a photo offered by the same app on a "friends"  Facebook site. By clicking that photo that had been uploaded by way of their mobile app to their facebook you are sent to a Facebook style slide show  that you scroll through additional photos/quotes from the site.  Is this considered a web app?  It views like any photo slide show on Facebook. 
    However it seems that at some point this app actually installed itself on the iPad.  How to prevent in future???

  • How to transfer apps from one phone to another

    how to transfer apps from one phone to an itouch

    All of your apps should be on your computer.  If they are not, then put them there.
    You can then sync them to any of your idevices you like
    You can also redownlaod them:
    Downloading past purchases from the App Store ... - Support - Apple

  • How to prevent apps from syncing in the new version of itunes?

    Hey there.
    I brang my macbook to Applestore cause it had a problem and they downloaded the latest version of itunes. Everything's fine and my music, videos and apps are in the new itunes like before. But now, when I want to sync my iphone, a pop window asks me to give the password of the itunes account I used to download some of my apps or it will delete them and their data. The problem is that one of these accounts is an old friend's one and I actually lost all contact with him. So basically now I can't sync my iphone at all or it will delete all my apps.
    Has anyone any idea how to sort that out? Or at least knows how to prevent apps from syncing in this new version of itunes?
    Thanks for your help

    Onthe top menu
    View > Show Status Bar.
    The grey bar will now appear at the bottom with the info you want

  • How to remove apps in iOS 5?

    How to remove apps in iOS 5? I press and hold an Icon like would in iOS4 it starts shaking but x mark does not appear to delete.

    @ Artakv
    Check that you haven't enabled Restrictions, you can turn toggle the ability to delete apps through there.
    Goto:
    Settings
    General
    Restrictions
    Enter your Restrictions Passcode
    Scroll down and check to see if Deleting Apps has been enabled (On - so can delete) or disabled (Off - so CAN'T delete).

  • How to find active sessions count on a server in weblogic server console

    Hi All,
    I would like to know how to find active sessions count on a server in weblogic console. I am using weblogic 11g.
    Regards,
    Sunil.

    On the deployment, monitoring tab, you can select web applications. Here the number of current sessions are listed per web application deployed on the domain.
    The deployment itself (deployments, application, monitoring, sessions) shows a list of sessions and where it is located. Unfortunately, there is no aggregation (but that is something you can so yourself as well).
    When you are using a load balancer in front, the count of sessions on per web application on the domain gives you some clue how many sessions there are present on each server.
    That is to say, when load balancer is using round-robin (and does that correct), you can take the total number of sessions divide it by the number of servers.

Maybe you are looking for