Missing privileges when calling FND_GLOBAL.APPS_INITIALIZE in custom schema

Hi All,
I tried to run the FND_GLOBAL.APPS_INITIALIZE using a custom schema following the instruction described in [ID 822225.1]. At the end the APPS_INITIALIZE completed successfully.
But when executing a script in sqlplus (connected to custom schema) that first calls APPS_INITIALIZE and afterwards calls a custom procedure, it seems that the user ID gets lost in FND_GLOBAL (note that this scenario works fine in APPS schema).
However, the APPS_INITIALIZE works fine when directly called in sqlplus (connected to custom schema): Executing FND_GLOBAL.USER_ID directly after APPS_INITIALIZE retrieves the correct user ID.
Has anybody an idea ot what could be missing in my custom schema (any privileges...) ?
Thanks, Carolin

Hussein,
thanks for reply.
Seems that I solved the problem - after adding some more grants to the custom schema, FND_GLOBAL.APPS_INITIALIZE works fine now. ;-)
However, I'm not quite sure if I'm on the right way with using a custom schema (maybe that I schouldn't use a custom schema at all, but connect to APPS schema instead) and if I'm using the correct approach to find missing privileges...
Perhaps you could also help me with this - I already posted a message for that general issue, please see:
Re: How to grant only required privileges to custom schema
Thanks,
Carolin

Similar Messages

  • Calling FND_GLOBAL.APPS_INITIALIZE

    Hi,
    I've noticed that some of our custom forms call PL/SQL packages which in turn execute FND_GLOBAL.APPS_INITIALIZE.
    At runtime the Forms session initializes EBS security context on its own and I wander what happens to the context and the Forms session after such package is called.
    If APPS_INITIALIZE creates a separate session, what happens when the focus returns back to the form?
    Cheers
    Arek
    P.S. We're loosing our ORG_ID (from the PROFILEs) sometimes and I wander if this may be related.

    Hi,
    If you call fnd_global.apps_initialize then your profile options will be defaulted based on what you call it with.
    E.g. if you call with responsibility 123 that doesn't have org_id set then you'll lose org_id.
    Make sure org_id is set for the responsibilities that your are calling apps_initialize for.
    Regards,
    Gareth

  • Baseline date mesg not appear when call transaction FB60 in custom tcode

    Hi Experts,
    One of the custom tcode which calls the standard tcode FB60.
    If we give the last month date in payment date, it should shows the 'Due date is in the past' message and if we give next year as payment date i.e, more than 365 days, then show 'Baseline date foe pmnt is 700 days after the document date : check'.. These messages are coming when we call the standard tcode FB60 directly.
    But if call it in the custom tcode, these messages are not appear.
    Thanks,
    Mani.

    Hi Experts,
    One of the custom tcode which calls the standard tcode FB60.
    If we give the last month date in payment date, it should shows the 'Due date is in the past' message and if we give next year as payment date i.e, more than 365 days, then show 'Baseline date foe pmnt is 700 days after the document date : check'.. These messages are coming when we call the standard tcode FB60 directly.
    But if call it in the custom tcode, these messages are not appear.
    Thanks,
    Mani.

  • Insufficient Privileges when calling package- Oracle9i

    Hello People,
    I've a Package PKGA owned by user A. PKGA contains a function returning boolean value. The Function performs dynamic SQL (using Execute Immediate) in order to Create user(Basically a User Admin package).
    User B has been granted Execute any Procedure privilege, Create User and Alter User privileges by the SYS user.
    When User B now tries to execute this package for eg: A.PKGA.create_user from a PLSQL block, there is a resultant 'Insufficient Privileges' error.
    User B however can create it's own identical package PKGB and execute this package to create user NewUsr, following that, User B grants execute any procedure and create session privilege to NewUsr. Furthermore NewUsr can now logon and execute PKGB without any trouble.
    What could possibly be the problem. Why is User B unable to execute PKGA? What other privilege does User B need?
    Cheers

    If UserA owns the package, and assuming that you are using the default of definer's rights, UserA needs to have CREATE USER and ALTER USER privileges. UserB does not need to have these privileges to call a procedure owned by UserA that creates and modifies a user.
    If I create a procedure in a highly privileged account that, for example, kills a session, I can grant normal users EXECUTE access on that procedure without granting them the underlying privileges necessary to kill a session.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • SPA 30x and 50x - show miss state when call was pickup

    Hello
    do you know, how to show on display miss state (softkey miss) when call was pickup in pickup group.
    My IP phone is SPA 303 and 502, and 922 but SPA 922 is showing miss state well.
    Server is Asteriks.
    Marek

    Call completed elsewhere has not been missed, so SPA922 is on the wrong side ...
    If the line is declared as shared AND call is CANCELed with
    Reason: SIP;cause=200;text="Call completed elsewhere"
    then no missed call is logged.
    I'm not sure if you can configure Asterisk not to use this Reason in such particular case. If I remember correctly, there is and option of Dial() Application for it ...
    Of course, unless you have User->Supplementary Services->Log Missed Calls for extension in question set to "Yes" no missed calls are logged at all.
    Rate useful advices and/or mark answer as "correct". It will help others to found solutions.

  • Error when calling bpm service from custom component

    Hi all,
    I have built a custom component in order to fetch task related data by calling a bpm service inside the method of my custom service.
    This is the error trace i got in audit info.
    "not loading page MSG_PAGE because it is up to date with timestamp 1324331008000
    Script stack dump (user: abc, request: IdcService=CUSTOM_SERVICE&dDocName=ABC018005)
    No resource include or function stack for error. "
    What does this error signify?
    In the service definition of my custom service, I am using MSG_PAGE as my template. Is it related to this why i am facing the error? how do i get to know for a particular  functionality i should use a particular template?
    Please provide your inputs asap.
    Thanks in advance.

    HI jiri,
    Please have a look at the stacktrace and provide me a solution as in how to overcome the error.
    I had included Report.trace in order to check the flow of the program and found that the problem arises when i establish the connection.
    Caused by: java.lang.IllegalArgumentException: interface bpmpackage.TaskQueryService is not visible from class loader
             at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
             at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
             at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
             at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
             at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
             at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
             at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
             at javax.xml.ws.Service.getPort(Service.java:92)
             at bpmpackage.TaskQueryService_Service.getTaskQueryServicePort(TaskQueryService_Service.java:97)
             at package.BPMConnection.getService(BPMConnection.java:58)
             at package.classname.fetchTasks(classname.java:239)
             at package.classname.InboundServiceMethod(classname.java:311)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
             at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
             at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    Thanks in advance.

  • Missing permission when calling sap transaction via composer

    Hello,
    we have created a complex model. in this model some sap transaction are called.
    With Administrator rules everything is working fine.
    but when portal role is assigned to a normal user, only real composer parts are working and all url ivew calling an sap transaction are failing.
    where do I have to adjust permission ?
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Access denied (Object(s): portal_content/com.sap.pct/templates/iviews/com.sap.portal.sap_transaction_iview).
    Exception id: 11:20_14/02/08_0022_6998651
    See the details for the exception ID in the log file
    Thanks

    Hi Uwe,
    i guess you're calling the "pcd:portal_content/com.sap.portal.migrated/ep_5.0/templates/com.sap.portal.appintegrator.sap.bwc.TransactioniView" with some parameters (system, tcode, etc.). You have to add this iview to your models role (our change the permissions of the iview). To hide in the navigation, edit the iview preference: com.sap.portal.navigation.Invisible (German: Unsichtbar in Navigationsbereichen) -> change it only in the role->iview, do not change it in the iview itself.
    Hope that helps!
    Benny

  • When calling a specific ATT customer from VZW phone the call does not go thru

    I have a family member that just moved from Kansas to Arizona and has ATT cellular service.  Intermittently when I attempt to call her from my VZW phone  I get the VZW recording saying it cannot call the #, yet I can hang up and use a land line and call to which the call immediately goes thru.
    Any suggestions on how to resolve this issue?

    Maybe that person has blocked you.

  • Missing Fonts when calling Output ES

    Hi. I have tried implementing the Output ES Generating a PDF document quick start and I'm getting the following error from the XMLFormService
    2007-08-08 14:58:30,796 INFO [STDOUT] Caused by: com.adobe.livecycle.formsservice.exception.FormServerException: XMLFormFactory, PAexecute failure: "(com.adobe.document.xmlform.ReturnStatus@25edb3) Font ArialNarrow-Bold is not found on system."
    My system fonts directory seems to be set up correctly in the adminui, under global configuration.
    Is there something else I need to do to get this to work?
    Thanks,
    Bryan

    The font directory is pointing to c:\windows\fonts (this is a local box). The font is installed on the server.

  • ORA-01031: insufficient privileges when creating a table in other schema

    Dear all,
    I appreciate your help please in this issue :
    when i try to issue the below statement to create a table in an another schema than the user i am connected in
    CREATE TABLE SCHEMA_NAME_B.HST_ARCH nologging AS
    SELECT *
    FROM HST
    WHERE 1 = 0;
    I always get ORA-01031: insufficient privileges error, even if i have granted the create table privilege to the user i am connected in.
    What other privileges should i grant also,
    Please if you have any idea.

    user562674 wrote:
    Dear all,
    I appreciate your help please in this issue :
    when i try to issue the below statement to create a table in an another schema than the user i am connected in
    CREATE TABLE SCHEMA_NAME_B.HST_ARCH nologging AS
    SELECT *
    FROM HST
    WHERE 1 = 0;
    I always get ORA-01031: insufficient privileges error, even if i have granted the create table privilege to the user i am connected in.
    What other privileges should i grant also,
    Can you show us a cut/paste from the sql*plus of session of yours which should show that you have given the privilege directly to this user and after that the command fails?
    Aman....

  • Error when call a function in other scheme

    Hi
    I have a function in a scheme
       OWNER1.FNOMEUSERi give grant from OWNER1 TO owner2
    GRANT EXECUTE ON OWNER1.FNOMEUSER TO OWNER2;But when I call the funcion in Owner2, It show me error
    select  Owner1.FNOMEUSER('teste')    from dual
    ORA-00904: : invalid identifierSomebody Know Why ?
    Edited by: muttleychess on Nov 30, 2009 3:42 PM

    Only that after Grant in a Owner I connect in other owner for to execute SELECT return me errorClear as MUD!
    Grant in a OwnerWhich GRANT?
    Which Owner?
    I connect in other ownerOther Owner?
    as in ID10T?
    Is CUT & PASTE broken for you?
    Why do you describe using obsucre references & indefinite pronouns.
    PLEASE use CUT & PASTE of whole session so we can see totally what you do & how Oracle responds.
    SHOW us; do not tell us!

  • "Missing port information" when calling web service

    I have implemented a web service that works fine as long as I use primitive types as arguments and return types, but when I add a method that takes a user-defined class as an argument, I receive the following error when calling any of the methods in the web service:
    [java] java.rmi.RemoteException: received fault: "Missing port information"
    (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested
    exception is:
    [java] received fault: "Missing port information" (code: "Server" names
    pace: "http://schemas.xmlsoap.org/soap/envelope/")
    [java] java.rmi.RemoteException: received fault: "Missing port information"
    (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested
    exception is:
    [java] received fault: "Missing port information" (code: "Server" names
    pace: "http://schemas.xmlsoap.org/soap/envelope/")
    [java] received fault: "Missing port information" (code: "Server" namespace
    : "http://schemas.xmlsoap.org/soap/envelope/")
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingS
    ender.java:321)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
    java:211)
    [java] at qsws.MyItf_Stub.HelloWorld(Unknown Source)
    [java] at qsws.WSClient.main(Unknown Source)
    The class I pass as an argument implements Serializable and a user-defined interface and it has two public member variables (int and String).
    Anyone know why I receive this error?
    /Magnus

    I am also seeing this same error. I have rebuilt and redeployed the service several times, but am still stuck getting this error. Strangely enough, the Tomcat server where the service is hosted is not reporting this type of error. Instead, it is recording an error 500 (Server Internal Error) each time I try to execute one of my services. I trimmed out the meat of the service and configured it so that it would echo the input parameters to the output (they are actually in/out params) but even this reduced configuration gives an error 500. I am inclined to suspect my deployment, but I have checked it several times against the examples.
    Anyone else see the error 500 reported as missing port information?

  • Why are Java SASLFactories missing when called via PL/SQL but not from JRE?

    Hi
    This may be quite a technical point about SASL and JCE Providers etc OR it may just be a question about how Oracle PL/SQL interfaces with Java.
    The background is that I am trying to get a Java opensource library to run in Oracle DB - this is for specialized communication from Database to other servers.
    The library uses a SASL mechanism to authenticate with the server and this (appears) to rely on JCE Providers installed and provided by the JRE.
    I have some Java code working which uses the library - this runs OK in NetBeans/Windows environment and also using Linux/Oracle JRE directly such as:
      +# $ORACLE_HOME/jdk/bin/java -classpath "./MyMain.jar:./OtherSupport.jar" package.TestClient+
    However it refuses to work (throws a NullPointerException) when called from PL/SQL.
      +FUNCTION send_a_message (iHost IN VARCHAR2,+
         iPort IN NUMBER,
        +iLogin IN VARCHAR2,+
        +iPasswd IN VARCHAR2,+
         iRecipient IN VARCHAR2,
         iMessage IN VARCHAR2) RETURN NUMBER
       AS LANGUAGE JAVA
       NAME package.TestClient.sendATextMessage(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String) return int';
    In the Java code this is:
       public static int sendATextMessage(String iHost,
         int iPort,
         String iLogin,
         String iPasswd
         String iRecipient,
         String iMessage)
    I've tracked the issue down to there being no SaslClientFactories (via Sasl.getSaslClientFactories()) showing when called from PL/SQL whereas 3 are available when run from within Java directly. This via:
       Enumeration<SaslClientFactory> facts = Sasl.getSaslClientFactories();
       System.out.println("Found Sasl Factories [" & (facts != null)  & "] size[" & Collections.list(facts).size() & "]");
    So, is there some aspect of Java initialisation that I'm missing when calling from PL/SQL (which means SASL factories aren't getting loaded into JRE) or is there something different in SASL setup?
    Any pointers appreciated.
    Thanks
    Dave

    Ok, after a bit of reading and general hacking about I have got this working.
    What I hadn't initially understood/remembered is that for a Stored Procedure the JVM installed on file system with Oracle isn't actually used - java code is loaded into the database and hence a different set of base functions are available. The following is a good explanation of this http://docs.oracle.com/cd/B14117_01/java.101/b12021/appover.htm#BGBIBDAJ
    So "out of the box" the Oracle Database appears to come loaded with only two of the Sun security providers i.e. no com.sum.security.SASL
    >
    OBJECT_NAME             OBJECT_TYPE     STATUS   TIMESTAMP
    com/sun/security/auth/NTSid  JAVA CLASS    VALID   2013-02-14:14:08:57
    com/sun/security/jgss/GSSUtil    JAVA CLASS    VALID   2013-02-14:14:08:57
    >
    This is from:
    >
    SELECT
      object_name,
      object_type,
      status,
      timestamp
    FROM
      user_objects
    WHERE
      (object_name NOT LIKE 'SYS_%' AND
       object_name NOT LIKE 'CREATE$%' AND
       object_name NOT LIKE 'JAVA$%' AND
       object_name NOT LIKE 'LOADLOB%') AND
       object_type LIKE 'JAVA %' AND
       object_name LIKE 'com/sun/security%'
    ORDER BY
      object_type,
      object_name;
    >
    My solution (which may well be a work-around) is the following:
    1) Downloaded JDK Source and extracted "com.sun.security.sasl" java code to my project
    2) Added following code to my Stored Procedure ()
    >
    Enumeration<SaslClientFactory> saslFacts = Sasl.getSaslClientFactories();
    if (!saslFacts.hasMoreElements()) {
      System.out.println("Sasl Provider not pre-loaded");
      int added = Security.addProvider(new com.sun.security.sasl.Provider());
      if (added == -1) {
        System.out.println("Sasl Provider could not be loaded");
        System.exit(added);
      else {
        System.out.println("Sasl Provider added");
    >
    3) Built my JAR file with the sasl package embedded (note: could only find Java 6 code, so had to comment out some GSS lines - but wasn't intending to use these)
    4) Loaded JAR to oracle via "loadjava".
    5) Add permissions (only found this out after a couple of failed runs)
    >
    call dbms_java.grant_permission('XMPP', 'SYS:java.security.SecurityPermission', 'putProviderProperty.SunSASL', '' );
    call dbms_java.grant_permission('XMPP', 'SYS:java.security.SecurityPermission', 'insertProvider.SunSASL', '' );
    >
    6) Run gives the following:
    >
    Sasl Provider not pre-loaded
    Sasl Provider added
    ...etc...
    >
    It works!. I confess I'm not sure of the implications of this for multiple calls/performance and if it will need to be added for each stored procedure call - may post back.
    For completeness I should point out that after my load the Security providers look like this:
    >
    OBJECT_NAME             OBJECT_TYPE     STATUS   TIMESTAMP
    com/sun/security/auth/NTSid    JAVA CLASS    INVALID  2013-02-15:09:11:36
    com/sun/security/jgss/GSSUtil    JAVA CLASS    INVALID  2013-02-15:09:11:37
    com/sun/security/sasl/Provider    JAVA CLASS    VALID    2013-02-15:10:03:21
    >
    i.e. the original couple are "INVALID" !
    Dave
    Edited by: 946763 on Feb 26, 2013 2:35 AM

  • Error :Required parameters missing when calling up module MARC_SINGLE_READ

    Dear all,
    When trying to do the production order confirmation i am getting the error "Required parameters missing when calling up module MARC_SINGLE_READ".How can this error be solved?
    Thanks,
    Kumar

    Hi
    Please activate the corresponding programs again. I think you got a short dump for this error, if yes, you can see the program's name there.
    Best Regards.
    Leon.

  • PLS HELP - Column value missing when calling procedure from Oracle OLEDB provider

    When calling procedure 'sp_a(?,?,?)' from SQL_PLUS and using
    DBMS.OUTPUT to print the result
    It returns a result set as
    C0, C1, C2
    But When I call the same procedure 'sp_a(?,?,?)' with same
    parameter value from MS VB6,
    It returns the a result set as
    C0, Null,C2
    The 2nd value became Null.
    Any ideas?
    Please Help.

    See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674

Maybe you are looking for

  • Keyboard and touchpad do not respond temporarily

    Hi all! While working on my Macbook Pro mid 2010 (Mountain Lion) the keyboard and touchpad sometimes don't repond. Everything else on the Macbook seems to work as usual, e. g. the power button works and I can see how the logfiles are updated on the c

  • A few questions about VoiceOver and Safari

    1. Let's say I'm reading, item by item, a website that's basically a long text document. When I have interrupted reading to do something in another application or the menu, can I quickly find the position in the text where I jumped out? It would be e

  • Importing photos from ZoomBrowser into iPhoto without losing keywords and star ratings

    I have been using Canon's ZoomBrowser EX on my Windows Vista laptop. I have just bought a MacBook Air running Lion. I would like to import all of my photos to iPhoto, but when I do this I lose all of the keywords and star ratings I have associated wi

  • Elements 5 won't open, error message "attempt to access invalid address" any solutions please.

    I have been using this for years with other problems, however now it refuses to open. I have uninstalled and re-installed after restarting the computer twice. I also deleted every folder I could find with elements in the name to no avail. If I read a

  • Linking 2 data set using template

    i am trying to have a link between 2 queries using data template this is my sample <dataTemplate name="scot" dataSourceRef="scott"> <dataQuery> <sqlStatement name="Q1"> <![CDATA[SELECT DEPTNO,DNAME,LOC  from scott.dept     order by deptno ]]> </sqlSt