Executing proc from sqlplus.

Hi all,
can you please let me know how to run a procedure with an OUT paramater using sqlplus?
I ran from Toad and got the output..but not able to do so in sqlplus.
CREATE OR REPLACE PROCEDURE IDM.GET_CAP_DATE
CAP_DATE OUT VARCHAR2
) IS.....................................
I tried the following from sqlplus
variable CAP_DATE VARCHAR2(100);
exec GET_CAP_DATE;
print :CAP_DATE;
Am I right in doing this?
Appreciate your help!
Thanks in advance!
MN

Hi,
You're almost right, but you need to use your variable when executing your procedure:
exec GET_CAP_DATE(:CAP_DATE);
Infact you're better off using a function instead:
- procedure usually 'do stuff'.
- a function always needs to return a value.
MHO%xe> create or replace procedure get_date_proc
  2  (p_date out date)
  3  as
  4  begin
  5    select sysdate
  6    into   p_date
  7    from   dual;
  8  end get_date_proc;
  9  /
Procedure is aangemaakt.
MHO%xe> set autoprint on
MHO%xe> var my_date varchar2(25)
MHO%xe> exec get_date_proc(:my_date);
PL/SQL-procedure is geslaagd.
MY_DATE
10-09-2009 20:39:42
MHO%xe> create or replace function get_date_func
  2  return date
  3  as
  4  begin
  5    return(sysdate);
  6  end get_date_func;
  7  /
Functie is aangemaakt.
MHO%xe> select get_date_func from dual;
GET_DATE_FUNC
10-09-2009 20:40:13
MHO%xe> exec :my_date := get_date_func
PL/SQL-procedure is geslaagd.
MY_DATE
10-09-2009 20:40:34And don't use strings to store dates, always use the DATE datatype for DATES.
Never store a date in a string.
The function can be selected from DUAL easily (procedures cannot) and your DATE still is a DATE.

Similar Messages

  • Execute mapping thro sqlplus - parameters

    Dear all,
    I am new to owb
    I have a mapping with two input parameters(MAPPING_NAME & MODULE_NAME), if i execute from control center it is executing
    i want to execute it from sqlplus
    the command i am using to execute from unix prompt is
    sqlplus username/password@connectstring @/opt/oracle/product/10.2.0.1-OWB
    /owb/rtp/sql/sqlplus_exec_template.sql repouser mapping_location PLSQL mappingname , MAPPING_NAME=mappingname,MODULE_NAME=HRMS
    Log file after execution
    Stage 3: Overriding Parameters
    | MAPPING_NAME%CUSTOM='mappingname'
    | MODULE_NAME%CUSTOM='HRMS'
    Stage 4: Executing Task
    | l_audit_result=3 (FAILURE)
    Stage 5: Closing Task
    Stage 6: Processing Result
    | exit=3
    how to give the mapping parameters
    Thanks in advance
    S. Sathish Kumar

    For string parameters In 10.2, you need to use four apostrophes on both sides.
    sqlplus username/password@connectstring @/opt/oracle/product/10.2.0.1-OWB
    /owb/rtp/sql/sqlplus_exec_template.sql repouser mapping_location PLSQL
    mappingname MAPPING_NAME=''''mappingname'''',MODULE_NAME=''''HRMS''''

  • How to Execute a OWB Mapping or a Process from SQLPLUS editor?

    I need to know how can we execute a OWB mapping from SQLPLUS editor or from a Stored Procedure.

    Hi,
    You can use the MDL export/import utility for this, but as you are importing into the same repository you will end up with importing into the same project again.
    So for this you can follow the workaround as:
    ->Take export of the required mapping from the project OWB_B
    -> Rename the Project OWB_B to some thing like OWB_B_1(or any other name), note that you have to rename both logical and physical name of the project
    -> Rename the project OWB_A to OWB_B and if you import the MDL all the objects will be imported to OWB_B then you can rename back the project to OWB_A
    -> Finally rename the project OWB_B_1 to OWB_B (to its original name).
    Regards,
    Pnreddy

  • Strange problem with executing PL/SQL procedure from sqlplus.

    Hello,
    basicly, I'm strugling with executing a procedure written in PL/SQL from sqlplus.
    It's all because I convert a data in procedure by other function.
    SELECT partition_name
    INTO strpartition
    FROM user_tab_partitions
    WHERE table_name = tablename_in
    and substr(partition_name, -8, length(partition_name)) = (SELECT F_CONVERT_DATE(tablename_in,p_date) from dual);
    /tablename_in and p_date are input parameters/
    Function F_CONVERT_DATE looks more less like :
    select
    TO_CHAR(TRUNC(NEXT_DAY(ADD_MONTHS(substr(partition_name, -8, length(partition_name)), -3), 'MONDAY')-7), 'YYYYMMDD')
    END
    AS p_date
    INTO v_okr
    FROM user_tab_partitions
    where substr(partition_name, -8, length(partition_name)) = p_date;
    Well, the thing is that procedure is executable from TOAD without any errors !! But when I try to execute it straight from sqlplus it returns:
    ORA-01861: literal does not match format string
    ORA-06512: at "F_CONVERT_DATE", line 13
    ORA-06512: at "NAME_OF_PROCEDURE", line 17
    Tip: When I don't use functions ADD_MONTHS, NEXT_DAY and TO_CHAR in function F_CONVERT_DATE sqlplus can execute it. But only when I use them it returns an error.
    Anybody has a clue how to solve it?
    Regards !

    Hi, Nodex,
    Avoid implicit conversions.
    For example:
    TO_CHAR(TRUNC(NEXT_DAY(ADD_MONTHS(substr(partition_name, -8, length(partition_name)), -3), 'MONDAY')-7), 'YYYYMMDD')ADD_MONTHS expects a DATE as its first argument.
    SUBSTR returns a VARCHAR2, so you're calling ADD_MONTHS with a VARCHAR2 where it expects a DATE.
    For good or ill, the system tries to avoid raising an error in this case by implicitly converting the VARCHAR2 to a DATE. Exactly how it does that depends on
    (a) the tool you are using (SQL*Plus or Toad, for example),
    (b) the version (Oracle 10 behaved quite different form Oracle 9),
    (c) environmental settings (such as NLS_DATE_FORMAT), which in turn may depend on initialization parameneters, and
    (d) who knows what else.
    When you have to convert, do so explicitly.
    You can convert a VARCHAR2 to a DATE using TO_DATE, like this:
    TO_CHAR ( TRUNC ( NEXT_DAY ( ADD_MONTHS ( TO_DATE ( SUBSTR ( partition_name
                                                       , -8
                                          , LENGTH (partition_name)
                                     , 'YYYYMMDD'     -- or whatever
                             , -3
                      , 'MONDAY'
              - 7
         , 'YYYYMMDD'
         )

  • Executing a mapping from sqlplus in OWB 904

    I have used the below syntax to execute OWB 902 mappings as below:
    sqlplus / <<*sql*
    Execute MAP_SOMETHING.MAIN();
    sql
    I deployed the same mapping with new version of OWB 904.. it did not work. What is new syntax to execute the mapping from sqlplus?

    From OWB 9.0.4 on, you must use the execution template to execute your mappings from sql. The template file, that has a brief doc section in its heading is:
    <OWB installation directory>/owb/rtp/sql/sqlplus_exec_template.sql
    Regards:
    Igor

  • Calling proc in sqlplus

    how do i execute this proc in sqlplus?
    create or replace procedure p1 (x in sys_refcursor) is
    a number;
    b number;
      begin
      fetch x into a,b;
      dbms_output.put_line('a :'|| a || '   b : '||b);
    close x;
    end;
    Procedure created.Edited by: user520824 on Mar 25, 2010 1:00 PM

    Try this
    declare
      v_rc sys_refcursor;
    begin
        open v_rc for
        select 1 a ,2 b from dual;
      p1(v_rc);
    end;Here I'm using dual for the example, but if your cursor fetches multiple rows then you need to change your procedure to loop through to fetch the data.
    create or replace procedure p1 (x in sys_refcursor) is
    a number;
    b number;
      begin
      loop
          fetch x into a,b;
          dbms_output.put_line('a :'|| a || '   b : '||b);
          exit when x%notfound;
      end loop;
    close x;
    end;Edited by: neel_s on Mar 25, 2010 4:24 PM

  • Call PL/SQL Procedure (not stored) from SQLPLUS

    Hello,
    the following code creates a stored procedure and allows to call the procedure from SQLPLUS using EXEC.
    CREATE or REPLACE PROCEDURE welcome IS
    BEGIN
        dbms_output.put_line('Welcome user ' || user);
    END;
    exec welcome;I would like to do the same without storing the procedure. The procedure should be defined in an PL/SQL-Script and called in a SQLPLUS loop. On the one hand I do not have the privileges to create stored procdures. On the other hand I want to use put_line in the loop. Without passing control to SQLPLUS (e.g. the loop-master) all output is kept in the buffer and no information are shown during processing the data.
    Regards, Rainer

    netaktiv wrote:
    There should be a repair job updating many hundredthousends records. A script should be created and called only once and the calling user should be informed about the processing status. There is no need for heavy output, but after 5000 or 10000 records I would like to display a message saying nnnnn records processed.Then you need another mechanism to report the current status to the user.
    You cannot use the current session to do that. Sessions are serialised. That means they can do only service a single request at a time. So if the session executes procedure foo that updates 100's of 1000's of rows - then that is what the process will be doing. The procedure can only report back to the client after it has completed. It cannot interact directly with the client during the executing of that procedure.
    This means that if you want to actually send a notification to the client, you need to do that via a separate session. E.g. the 1st session executes procedure foo that performs the update. That procedure sends a notification (using DBMS_ALERT or DBMS_PIPE for example) to the 2nd session - where the 2nd session receives the asynchronous notification and reports that to the user.
    Another method would be for the update procedure to register a long operation using DBMS_APPLICATION_INFO. This enables another session to view the status and progress of the update procedure via virtual (v$) performance views.
    Another method would be for the client session not to start the update procedure itself. Instead it can schedule a background job (using DBMS_JPB or DBMS_SCHEDULER interfaces) - and then monitor the status of the job.
    Also suggest that you spend some time familiarising yourself with application developer fundamentals and concepts for Oracle. There are guides for both at http://tahiti.orcacle.com for the Oracle version you use. You cannot correctly use Oracle if you do not understand how Oracle works and what the application development features are. And your current approach using DBMS_OUTPUT is pretty much flawed and not how Oracle sessions should report their processing status to a client.

  • Calling a COBOL stored proc from Java Servlet

    I am trying to call a COBOL stored proc from a Java Servlet. The stored proc is stored on a DB2 database. I need to send 6 inputs to the COBOL stored proc and the output will be the return code of the stored proc. I'm not sure if I'm going about this the right way. This is how my code looks...
    public int callStoredProc(CallableStatement cstmt,
    Connection con,
    String sYear,
    String sReportNbr,
    String sSystemCode,
    String sUserId,
    String sModuleNbr,
    String sFormId){
    int iParm1 = 0;
    try{
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(ClassNotFoundException ex){
    System.out.println("Failed to locate database driver: "
    + ex.toString());
    return iParm1;
    try{
    cstmt = con.prepareCall("{? = CALL MKTPZ90C
    cstmt.registerOutParameter(1, Types.INTEGER);
    cstmt.setString(2, sYear);
    cstmt.setString(3, sReportNbr);
    cstmt.setString(4, sSystemCode);
    cstmt.setString(5, sUserId);
    cstmt.setString(6, sModuleNbr);
    cstmt.setString(7, sFormId);
    cstmt.execute();
    iParm1 = cstmt.getInt(1);
    CloseSQLStatement(cstmt);
    catch(SQLException ex) {
    CloseSQLStatement(cstmt);
    System.out.println("SQL exception occurred:" +
    ex.toString());
    return iParm1;
    return iParm1;
    Could someone tell me if this is the right way to go about doing this?
    Thanks!!!!!!

    I didn't see the code where you create the database connection (variable "con"). However, the answer to your question "Is this the right way...", for me, is "Anything that works is the right way." So try it. That's a first approximation, but once you have something that works you can start on improving it, if that becomes necessary.

  • Connection through jdbc thin client taking more time than from sqlplus!!!

    Hello All
    Machines A and B
    Applicaion in A is connecting to B(9.2.0.6),db server.
    The schema is so small with few tables and data in each table less than 500 rows
    We are in the process of migrating the Application Schema in B to C[9.2.0.8].
    But the response time is more when the application fetches from C.
    Even while selecting the sysdate from dual.
    The application is using the jdbc thin client for fetching the data.
    When the same sql is executed by (from A to C)
    sqlplus -s user/pass @execute.sql, its gets done in a fraction of a second.
    But when the same is done through the application which uses jdbc thin client, it takes few seconds
    to complete.
    When tried with a small java program that uses classes12.jar (from A to C)
    conn = DriverManager.getConnection(URL,UID,PASS);
                   stop = System.currentTimeMillis();
                   System.out.println("Connection time in milli sec: " + (stop - start));
                   System.out.println();
    ..It was found that creating the connection was taking time.
    But the same is not happening when tired through the sqlplus
    Could someone throw some light into this?
    What could be the reason for jdbc to get slower while establishing connections?
    TIA,
    JJ

    are you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • ORA00932 inconsistent datatypes For member methods in SQLJ Object called from SQLPlus

    Hi, I would very much appreciate advice on the following problem, its a tricky one, here are the full details....
    A) EXECUTIVE SUMMARY....
    I have created an oracle object type by wrapping a SQLData java object with the Oracle Create type statement. I am using Oracle 9i on NT4. However despite following the very few Oracle examples I could find, I get the following error....
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypesHere is what I've done...
    1) Create Java object using SQLData interface (see listing below)
    2) Load the Java source to Oracle 9i
    3) Run the Oracle Create Type statement to wrap the java class
    4) Use the objects in a table and successfully insert rows and query attributes using SQLPlus
    5) Find I can't pull back data from any instance methods without getting an "inconsistant datatypes" error for both string and int datatypes. (see below for queries and output from SQLPlus)
    B) STEP BY STEP DETAILS FOLLOW......
    1) Java Source (in file \dealcalcs\Dealtest.java)
    package dealcalcs;
    import java.sql.SQLException;
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleTypes;
    import java.sql.*;
    public class Dealtest implements SQLData
    public static final String SQLNAME = "SWITCHBLADE_DATA.DEALTEST";
    public static final int SQLTYPECODE = OracleTypes.STRUCT;
    protected java.math.BigDecimal m_dealid;
    protected java.sql.Timestamp m_startdate;
    protected String m_dealtype;
    protected Double m_facevalue;
    /* constructor */
    public Dealtest() { }
    public void readSQL(SQLInput stream, String type)
    throws SQLException
    setDealid(stream.readBigDecimal());
    setStartdate(stream.readTimestamp());
    setDealtype(stream.readString());
    setFacevalue(new Double(stream.readDouble()));
    if (stream.wasNull()) setFacevalue(null);
    public void writeSQL(SQLOutput stream)
    throws SQLException
    stream.writeBigDecimal(getDealid());
    stream.writeTimestamp(getStartdate());
    stream.writeString(getDealtype());
    if (getFacevalue() == null)
    stream.writeBigDecimal(null);
    else
    stream.writeDouble(getFacevalue().doubleValue());
    public String getSQLTypeName() throws SQLException
    return SQLNAME;
    /* accessor methods */
    public java.math.BigDecimal getDealid() { return m_dealid; }
    public void setDealid(java.math.BigDecimal dealid) { m_dealid = dealid; }
    public java.sql.Timestamp getStartdate() { return m_startdate; }
    public void setStartdate(java.sql.Timestamp startdate) { m_startdate = startdate; }
    public String getDealtype() { return m_dealtype; }
    public void setDealtype(String dealtype) { m_dealtype = dealtype; }
    public Double getFacevalue() { return m_facevalue; }
    public void setFacevalue(Double facevalue) { m_facevalue = facevalue; }
    //These last two are the member methods I call
    public String testme(){
    String tmp = new String("testme worked");
    return tmp;
    public int testint(){
    int tmp = 0;
    tmp = 88;
    return tmp;
    2, 3, 4) Here is how I wrap the uploaded SQLJ object, create a table using it, and put a row in it....
    create or replace type deal_t as object
         external name 'dealcalcs.Dealtest'
    LANGUAGE JAVA USING SQLData (
    DEALID NUMBER (11) external name 'dealid',
    STARTDATE DATE external name 'startdate',
    DEALTYPE VARCHAR2 (50) external name 'dealtype',
    FACEVALUE FLOAT (49) external name 'facevalue',
    MEMBER FUNCTION testme RETURN VARCHAR2
         EXTERNAL NAME 'testme() return java.lang.String',
    MEMBER FUNCTION testint RETURN NUMBER
         EXTERNAL NAME 'testint() return int'
    ) not final
    create table dealsobjtab of deal_t;
    insert into dealsobjtab values ( deal_t(1, to_date('1/jan/1968'), 'NZD/NZD', 500))
    COMMIT
    5) Here I select attributes from the object table, and select using the two member methods, note that my member methods fail miserably, and advice on fixing this would be much appreciated....
    select * from dealsobjtab aaa
    DEALID STARTDATE DEALTYPE FACEVALUE
    1 01/01/1968 NZD/NZD 500
    1 row selected
    select value(aaa).dealid from dealsobjtab aaa
    VALUE(AAA).DEALID
    1
    1 row selected
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    Phew, that was a long email, I hope you are still awake after all that. I have no idea how to solve this, and would really appreciate some advice to get me going.
    Yours Sincerely,
    Michael Cato

    But, i am receiving the error i have mentioned. is it depends on the java version also?
    Please suggest..

  • Running process flow from sqlplus

    hi everyone,
    using sqlplus_exec_template.sql to run process flow.
    but message keeps appearing that task is not found
    I have an oracle workflow repository on another server.
    what should I use as parameters?
    for example location name?
    thank you
    owen veeneman

    Hi
    If you can create the Process Flow code, you can deploy and execute from SQLPLUS as follows.
    1. First you have to compile the package from SQLPLUS into you target get schema. For example. SQL>@c:\package.pls.
    2. Then find out the prarmeter from function main of the package. Write a simple code as follows and run it from SQL. Just substitute whatever applicable to you.
    declare
    V_PROCESS_CODE           VARCHAR2(10);
    V_FREQUENCY_CODE     VARCHAR2(1);
    V_RETCODE                NUMBER(10);
    V_WB_RT                WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    begin
    V_PROCESS_CODE := 'CF_SUMM’;
    V_FREQUENCY_CODE := 'D';
    v_retcode := DM_CASHFLOW_SUMM_MAP.main(V_PROCESS_CODE, V_FREQUENCY_CODE, V_WB_RT);
    dbms_output.put_line(v_retcode || ' Retcode.');
    end;

  • How can I run a Local PC executable file from Enterprise Portal?

    I want to run local PC executable files from inside the portal. To be more specific I want to be able to open the Outlook and some powerbuilder executable applications.
    How can I do it?

    If you absolutely want to do it, you can use vbscript for it (though there are a lot of security contstraints)
    See Re: Displaying office programs

  • How to move the data of a table from sqlplus to XML file

    Hi,
    Could you pls guide me how to move the data of a table from sqlplus to XML file.
    i want to do it from sqlplus rather than toad.pls help
    Thanks

    Oh..I'm in 9i.
    Try this out..and let me know.
    DECLARE
    CTX DBMS_XMLGEN.CTXHANDLE ;
    XML CLOB ;
    F UTL_FILE.FILE_TYPE;
    XMLC VARCHAR2(32767);
    BEGIN
    CTX := DBMS_XMLGEN.NEWCONTEXT('SELECT * FROM department1 ') ;
    XML := DBMS_XMLGEN.GETXML(CTX) ;
    XMLC:=TO_CHAR(XML);
    SHOW_ENVELOPE(XMLC);
    F := UTL_FILE.FOPEN('ATTACH_FILES','DEPT.XML', 'W');
    UTL_FILE.PUT_LINE(F,XML);
    UTL_FILE.FCLOSE(F);
    END ;
    Good luck!!!
    Bhagat
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error while executing report from Query designer

    Hi All,
    When I am executing from query designer, I am getting following error.
    Even I can't execute it from another portal where i created source system of BI server.
    But i can execute queriew from Query analyser and t-code RSRT.
    When I execute from Query desinger the url is as follows.
    http://XXX:00/irj/servlet/prt/portal/prtroot/pcd!3aportalcontent!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0PA_C01_Q0201&VARIABLE_SCREEN=X&DUMMY=5_
    And the error is:
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,*
    Required information for reproduction  according to note 948490.*
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at com.sap.ip.bi.webapplications.runtime.service.metadata.impl.MetadataAccess.getMetadataModel(MetadataAccess.java:139)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.getMetadataModel(Page.java:8953)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4963)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4473)
    at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3316)
    Details: Full Exception Chain
    System Environment
    Server
    BI Java Release: 7 - Patch level: 0000000100 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP unknown
    Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_24-b04
    Operating System SunOS - amd64 - 5.10
    REgards
    Mohan

    Hi mohan ,
      You can check these OSS notes for the issue  .
    1. 795699 - Customizing default error messages for HTTP
    2. 807000 - Http requests are not fully read after timeout
    3. 804124 - HTTP communication with XI Adapter Engine fails
    Regards,
    Lokesh

  • Security error - User is not allowed to execute Proces - Resolved

    Enabled security on my domain by editing message-handlers.xml :
    <inbound-flow>
    <!-- <message-handler id="default" />-->
    <message-handler id="security" />
    </inbound-flow>
    commented out <property id="SecuredProcesses" > .. </property> to apply security to all processes.
    Now when I initiate process through BPELConsole I tick the WS-Security and use bpeladmin/welcome1 as credentials (I'm logged into console as this), I get the following error. In fact I get the very same error if I make up a username/password.
    <2007-10-24 08:17:41,343> <ERROR> <archi2.collaxa.cube> <BaseCubeSessionBean::lo
    gError> Error while invoking bean "delivery": [com.collaxa.cube.engine.handlers.
    HandlerInvocationException: Error while invoking inbound message handler.
    An error has occurred while attempting to invoke the inbound message handler cla
    ss "class com.collaxa.cube.security.Authenticator" for the message "". The exce
    ption reported was: User is not allowed to execute Proces, User[true] process [f
    alse]
    ORABPEL-02175
    In bpel.xml of the process itself I have this:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="SQTest2" src="SQTest2.bpel">
    <partnerLinkBindings> ....snip...
    </partnerLinkBindings>
    <preferences>
    <property name="user" encryption="plaintext">bpeladmin</property>
    <property name="pw" encryption="plaintext">welcome1</property>
    </preferences>
    </BPELProcess>
    </BPELSuitcase>
    If I don't supply username/password then I get "Could not apply security [No username provided, security expects user]" which sounds right enough.
    I'm using the default authentication scheme system-jazn-data.xml and using 10.1.3.3 patchset on linux.

    My own fault, putting user credentials in wrong place in bpel.xml:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="SQTest2" src="SQTest2.bpel">
    <partnerLinkBindings> ....
    </partnerLinkBindings>
    <configurations>
    <property name="user" encryption="plaintext">bpeladmin</property>
    <property name="pw" encryption="plaintext">welcome1</property>
    </configurations>
    </BPELProcess>
    </BPELSuitcase>

Maybe you are looking for