error by calling the pl/sql function in column target

Hi guys,.

I get this error when my function in ODI:

Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "mySchema". "" GET_ODI_DEFAULT_VALUE (1) ": ongeldige ID-> 1 is a parameter

While in sql developer, I get a good result with the following query:

Select mySchema.get_odi_default_value (1) double;


In my target for the primary key table, I call a sequence of mySchema, and it works fine.

I tried the synxtax following in my target column mapping:

-< % = odiRef.getObjectName ("" "," GET_ODI_DEFAULT_VALUE (1) "", "D") % >
-< % = odiRef.getObjectName ("L", "GET_ODI_DEFAULT_VALUE", "D") 1% >

Thanks for you advice

You use in the interface? If that's when you come to write the name of the function and make its contribution. It should return the value. As
GET_ODI_DEFAULT_VALUE (1)

Tags: Business Intelligence

Similar Questions

  • How to call the pl/sql function in application of the ADF

    Hi Experts,

    I need to call the pl/sql function in application of ADF, I have logic written in my AM

    Method:

    public String reportStoredProcedure (locationID customerID, number,
    String tailNum) {}

    CallableStatement st = null;
    String v_sanctioned = null;
    If (locationID! = null & & customerID! = null & & tailNum! = null) {}
    System.out.println (locationID + "" + customerID + "" + tailNum);
    Tail string = "TAIL";
    String result = "N";

    try {}
    String stmt =
    "start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
    St = getDBTransaction () .createCallableStatement (stmt, 0);
    st.setNull (1, Types.VARCHAR);
    st.setNull (2, Types.NUMERIC);
    st.setObject (3, customerID);
    st.setNull (4, Types.NUMERIC);
    st.setNull (5, Types.NUMERIC);
    st.setObject (6, locationID);
    st.setNull (7, Types.NUMERIC);
    st.setNull (8, Types.NUMERIC);
    st.setObject (9, tail);
    st.setObject (10, tailNum);
    st.setObject (11, result);
    St.Execute ();
    System.out.println ("v_sanctioned in AM:" + v_sanctioned);
    } catch (Exception e) {}
    e.printStackTrace ();
    return "N";
    } {Finally
    If (st! = null)
    try {}
    St.Close ();
    } catch (Exception e1) {}
    E1. PrintStackTrace();
    return "N";
    }
    }
    } else {}
    System.out.println ("v_sanctioned is null");
    v_sanctioned = "N";
    }
    Return v_sanctioned;
    }


    Error:

    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
    at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
    at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
    at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
    at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
    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 com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Can someone help me how to call...

    Call it in function, not as a procedure you do

    try {
    String stmt =
    "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;";
    st = getDBTransaction().createCallableStatement(stmt, 0);
    st.registerOutParameter(1, Types.VARCHAR);
    st.setNull(2, Types.VARCHAR);
    st.setNull(3, Types.NUMERIC);
    st.setObject(4, customerID);
    st.setNull(5, Types.NUMERIC);
    st.setNull(6, Types.NUMERIC);
    st.setObject(7, locationID);
    st.setNull(8, Types.NUMERIC);
    st.setNull(9, Types.NUMERIC);
    st.setObject(10, tail);
    st.setObject(11, tailNum);
    st.setObject(12, result);
    st.execute();
     = st.getString(1);
    
  • How to call the pl/sql function of the ofa

    Dear friends,

    I am trying to call a function of OPS page .but iam getting error as

    java.sql.SQLException: ORA-01861: literal does not match the format string

    ORA-06512: at line 1

    It is my function, callable statement

    FUNCTION CAR_LOAN_VALIDATION (P_PERSON_ID IN NUMBER

    P_DEDUCTION_START_DATE AS

    P_DEDUCTION_END_DATE AS

    P_LOAN_VALUE NUMBER

    )

    RETURN VARCHAR2

    IS

    l_message VARCHAR2 (100);

    l_contract_type VARCHAR2 (50);

    l_loan_eligible_date DATE;

    l_grade VARCHAR2 (15);

    l_old_loan_end_date DATE;

    l_max_loan_end_date DATE;

    l_remaining_amount NUMBER;

    l_eligible_amt NUMBER;

    BEGIN

    BEGIN

    SELECT - papf.person_id,.

    (SELECT the sense

    OF hr_lookups

    WHERE lookup_type = 'ADTC_CONTRACT_TYPE. '

    AND lookup_code = attribut3) contract_type;

    ADD_MONTHS (papf.original_date_of_hire, 11) loan_eligible_date,.

    DECODE (paaf.ass_attribute2,

    'President', '' President. ''

    SUBSTR (ass_attribute2, INSTR (ass_attribute2, '.', 1, 1) + 1,)

    3)

    ) grade.

    (SELECT nvl (MAX (deduction_end_date), null)

    OF xxadtc_car_loan_request

    WHERE person_id = p_person_id) old_loan_end_date;

    TO_DATE (ADD_MONTHS (p_deduction_start_date, 47)) max_loan_end_date

    -to_date (ADD_MONTHS (sysdate, 47)) max_loan_end_date

    IN l_contract_type

    l_loan_eligible_date

    l_grade

    l_old_loan_end_date

    l_max_loan_end_date

    OF per_all_people_f women's wear, per_all_assignments_f ADP

    WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date

    AND papf.business_group_id = 81

    AND papf.person_id = paaf.person_id

    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date

    AND papf.person_id = P_PERSON_ID;

    EXCEPTION

    WHILE others THEN

    DBMS_OUTPUT. Put_line ('error');

    END;

    -to obtain the amount of the previous car loan-

    BEGIN

    SELECT to_number (prrv.result_value)

    IN l_remaining_amount

    OF per_all_people_f women's wear.

    per_all_assignments_f ADP,

    pay_assignment_actions CIP,

    pay_run_results prr,

    prrv pay_run_result_values,

    petf pay_element_types_f,

    pay_input_values_f pivf,

    pay_element_classifications pec,

    pay_payroll_actions App,

    TPP per_time_periods

    WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date

    AND papf.person_id = paaf.person_id

    AND papf.business_group_id = 81

    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date

    AND paaf.assignment_id = pac.assignment_id

    AND pac.assignment_action_id = prr.assignment_action_id

    AND prr.run_result_id = prrv.run_result_id

    AND prr.element_type_id = petf.element_type_id

    AND SYSDATE BETWEEN petf.effective_start_date AND petf.effective_end_date

    AND prrv.input_value_id = pivf.input_value_id

    AND SYSDATE BETWEEN pivf.effective_start_date AND pivf.effective_end_date

    AND pivf.NAME = 'balance '.

    AND petf.classification_id = pec.classification_id

    AND pac.payroll_action_id = ppa.payroll_action_id

    AND ppa.time_period_id = ptp.time_period_id

    AND TO_CHAR (ptp.pay_advice_date, 'Mon-YYYY') =

    To_char (SYSDATE, "Mon-YYYY")

    AND petf.element_name = "Fashions ready Ahlami"

    - and employee_number = '10185'

    AND papf.person_id = p_person_id;

    EXCEPTION

    WHEN no_data_found THEN

    -DBMS_OUTPUT. Put_line (' ERROR: no data!');

    l_remaining_amount: = 0;

    WHILE others THEN

    DBMS_OUTPUT. Put_line ('error');

    END;

    Select GET_CAR_LOAN_ELIGI_AMT (P_PERSON_ID)

    in l_eligible_amt

    Double;

    IF L_contract_type NOT IN ("Permanent") THEN

    l_message: = 'contract Type is invalid. "

    END IF;

    IF l_loan_eligible_date < SYSDATE THEN

    l_message: = 'Date to join is less then a year. "

    END IF;

    IF l_grade IN ('US', '00', 'AUS', ') THEN

    "l_message: = ' your are not eligible Grade."

    END IF;

    IF l_old_loan_end_date < SYSDATE THEN

    l_message: = 'previous loan period is not completed. "

    END IF;

    IF l_max_loan_end_date > P_DEDUCTION_END_DATE THEN

    l_message: = 'Maxinum number of monthly payment for 48 months;

    END IF;

    IF l_remaining_amount > 0 THEN

    l_message: = "amount of the previous car loan is waiting until";

    END IF;

    IF l_eligible_amt < p_loan_value THEN

    l_message: = 'Please check eligible amount ";

    END IF;

    RETURN nvl(l_message,'S');

    EXCEPTION

    WHEN NO_DATA_FOUND

    THEN

    RETURN "error";

    END CAR_LOAN_VALIDATION;

    END XX_CAR_LOAN_REQUEST_PKG;

    CODE THAT CAN BE CALLED BY CODE - CO STATEMENT

    {if (PageContext.GetParameter ("Submit")! = null)}

    OAViewObject vo2 = (OAViewObject) am.findViewObject ("XxadtcCarLoanRequestEOVO1");

    {if(VO1!=null)}

    VO1. GetCurrentRow () .setAttribute ("LoanStatus", "pending approval");

    int xxpersonId = pageContext.getEmployeeId ();

    String xxDeductionStartDate = vo2.getCurrentRow ().getAttribute("DeductionStartDate").toString ();//pageContext.getParameter("DeductionStartDate").toString();

    SimpleDateFormat dateFormat1 = new SimpleDateFormat("yyyy/mm/dd");

    ConvertedDate1 date = dateFormat1.parse ("xxDeductionStartDate");

    String xxDeductionEndDate = vo2.getCurrentRow ().getAttribute("DeductionEndDate").toString ();//pageContext.getParameter("DeductionEndDate").toString();

    SimpleDateFormat dateFormat2 = new SimpleDateFormat("yyyy/mm/dd");

    ConvertedDate2 date = dateFormat2.parse ("xxDeductionEndDate");

    String xxLoanValue = vo2.getCurrentRow ().getAttribute("LoanValue").toString ();//pageContext.getParameter("LoanValue").toString();

    int iLoanValue = Integer.parseInt (xxLoanValue);

    System.out.println ("loop submit input");

    System.out.println ("xxpersonId id is:" + xxpersonId);

    System.out.println ("xxDeductionStartDate id is:" + xxDeductionStartDate);

    System.out.println ("xxDeductionEndDate id is:" + xxDeductionEndDate);

    System.out.println ("xxLoanValue id is:" + xxLoanValue);

    TXN OADBTransaction = am.getOADBTransaction ();

    String sql = "START: 1: = XXADTC_CAR_LOAN_REQUEST_PKG." CAR_LOAN_VALIDATION(:2,:3,:4,:5); END; « ;

    CallableStatement cs = txn.createCallableStatement(sql,1);

    String outputval = null; / / int outputval = 0;

    try {}

    System.out.println ("entry into loop try funtion callable validation");

    cs.setInt(2,xxpersonId);

    System.out.println ("cs setInt (2, xxpersonId);") is executed");

    cs.setString(3,xxDeductionStartDate);

    System.out.println ("cs.setString (3, xxDeductionStartDate is executed);'");

    cs.setString(4,xxDeductionEndDate);

    System.out.println ("cs.setString (4, xxDeductionEndDate is executed);'");

    cs.setDate(3,xxDeductionStartDate);

    cs.setDate(4,xxDeductionEndDate);

    cs.setInt(5,iLoanValue);

    cs.registerOutParameter(1,Types.VARCHAR); / / cs.registerOutParameter(1,Types.NUMERIC);

    DSI Execute();

    outputval = cs.getString (1); / / txn.commit ();

    System.out.println (outputval);

    TXN.Commit ();

    If (outputval. Equals ("S"))

    {

    am.invokeMethod ("apply");

    }

    on the other

    {

    throw new OAException ("is:" + outputval, OAException.INFORMATION name of the Organization);

    }

    TXN.Commit ();

    }

    {} catch (Exception sqle)

    try {}

    DSI Close();

    }

    catch (System.Exception e)

    {

    throw OAException.wrapperException (e);

    }

    throw OAException.wrapperException (sqle);

    }

    }

    Please help where is the error.

    Help, please

    Let me know for any clarification.

    Thank you

    Aravinda.

    Ford Hi,

    See below the code.

    In the controller

    java.sql.Date DeductionSDate; declare the variable

    In LICS

    String xxDeductionStartDate = vo2.getCurrentRow () .getAttribute ("DeductionStartDate");

    TXN OADBTransaction = am.getOADBTransaction ();

    if(xxDeductionStartDate!=null)

    {

    java.sql.Date startDate = txn.getOANLSServices () .stringToDate (xxDeductionStartDate);

    DeductionSDate = startDate;

    }

    Assign to this cs.setDate(3,DeductionSDate);


    Thank you

    Dilip

  • Call the PL/SQL procedure with in out parameter of OIC clob

    Hello

    For a few days, I am facing a problem. I have to call the pl/sql procedure with colb parameter out. I use c ++ and OIC (don't ask me why :)).

    I use a pl/sql problem test procedure:

    create or replace function Test (longField outside clob) return number is
    Number of result;
    Start
    longField: = 'prefix ';
    Result: = 12;
    Return (result);
    end Test;

    So I do all the stuff with the connection to the DB,

    I prepare the statement: "start: res: = test(:param); end; »
    So I OCIHandleAlloc (m_pCtx-> hpEnv,
    (void *) & m_hpStatement,.
    OCI_HTYPE_STMT,
    0,
    (NULL);
    and
    OCIStmtPrepare (m_hpStatement,
    m_pCtx-> hpErr,
    (...),
    (...),
    OCI_NTV_SYNTAX,
    OCI_DEFAULT);

    Before the binding I prepare parameters. For a clob I devote to the lob Locator:

    OCIDescriptorAlloc ((dvoid *) m_pCtx-> hpEnv, (dvoid *) & m_pLobLocator,)
    (ub4) OCI_DTYPE_LOB (size_t) 0, (dvoid *) 0);
    OCILobEnableBuffering (m_pCtx-> hpContext, m_pCtx-> hpErr, (OCILobLocator *) m_pLobLocator);

    that I bind parameters using OCIBindByName and OCIStmtExecute statement execution.

    I get an error
    ---------------------------
    Microsoft Visual C++
    ---------------------------
    Unhandled exception in... (ORAOCIEI11. (DLL): 0xC0000005: Access Violation.

    My question is: is it possible to call the pl/sql procedure with parameter BEAK clob?
    If Yes, what steps I need to do to succeed?

    Thank you for your response.

    Hello

    Of course, it is possible :)

    Show that you are your piece of code that is binding.
    Are you sure you had correctly the lob descriptor in the call to bind?

  • APEX shortcuts using the source of the body of the PL/SQL function

    Hi all

    Recently, I came across the feature of "Shortcuts" in the "Shared components" section of the APEX and thought great, somewhere to set the common/standard items once, then use these several times in different pages of my application.

    This seemed to work correctly when you use the 'Source' of "HTML Text" or "HTML text with special characters escaped", but then I wanted to explore the use of the "Body of the PL/SQL function" option to create a more dynamic shortcut/variable on the base.

    This is where I came across a particular problem in the APEX (Version 3.2.1.00.10 on GR 11, 2 on Oracle Enterprise Linux). When I set my shortcut, and then perform a reference to my shortcut (using "MY_SHORTCUT") in an area of a page, the value of shortcut is back, but is added with the reference variable (ie. the 'MY_SHORTCUT' chain).

    For simplicity, my example looks like this (of course, my real world example is a bit more complicated, but this example produces the same error):
    (a) I define my shortcut called "MY_SHORTCUT" and using the body of the PL/SQL function under "Source Type", define my procedure as "htp.p(:USER)."
    (b) I then create a new page (basic HTML page), and a new region of the 'type'-> 'HTML Text (with shortcuts).
    (c) in the "Source region", I define my shortcut like - "MY_SHORTCUT".
    (d) I apply changes and then run the page.

    I'll be back will be name of the current user with "MY_SHORTCUT" appended/added immediately after the user name - for example. the string:-' BRAD «MY_SHORTCUT»»

    Question is - how to stop the shortcut/reference text "MY_SHORTCUT" to be added to the variable you want to see the and thereafter on your page? I am just wanting the variable, NOT the reference for the shortcut.  I do something wrong using the HTP package, and if yes, what should I use?

    If "MY_SHORTCUT" is defined as "HTML text with special characters escaped" (where I can refer to elements of application using the syntax '& USER.') so that everything works correctly. My reason for using the PL/SQL is to generate a more dynamic output variable, based on elements of application throughout the entire application - and of course the use of shortcuts to minimize coding and duplication.


    Thanks in advance,
    Brad

    Hello

    The body of the PL/SQL function must RETURN a value.

    Try:

    RETURN :APP_USER;
    

    Andy

  • Possible bug - PLS-00372 creating BODY calculation of the PL/SQL FUNCTION

    3.2 on Oracle APEX: 10 x e

    I was creating a calculation for a page element by using the type 'BODY of the PL/SQL FUNCTION '. Step by step in the wizard when I entered my code block, I received the error PLS-00372. Here is the code:

    DECLARE
    l_return person_v.full_name%TYPE: = 'UNKNOWN ';
    BEGIN

    SELECT full_name
    IN l_return
    OF person_v
    WHERE party_id =: P230_CONTACTED_PARTY_ID;

    RETURN l_return;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURN l_return;
    END;

    If I change my name of the variable to another thing that l_return the error disappears. Later, I can't change the name of the variable in l_return and I do not get the error if it seems to be the validation happening on just this page of the wizard.

    Greg - it's because of a quirk in the validation, like imagine you. Workaround is to put a space between return characters and the terminal semi-colon, for example:

    RETURN l_return;

    Scott

  • Error 7 only during the executable to call the library node function

    Hello

    I'm having some trouble with LabVIEW, creating an executable work of my application. The program communicates with a sensor of moving laser Keyence LK-G5000 series with drivers provided by Keyence. When you run the program in the development environment, the program runs without any problem. However, when the construction program and run the program with an executable file, the program generates error 7 as shown below:

    After looking through the previous posts on error 7 and executable environment on the forums AND I found that a lot of people mentioned that the development environment and runtime environment use different path structures. I also found a guide of NOR to solve this problem here:

    http://digital.NI.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363

    However, after following these instructions, I always get error 7 only when executing the program in an executable environment.

    I've never used any .lvlib library in the past before, so I don't know if this may have been the issue (it was provided by Keyence.) The library includes 2 private screws that can only be called within the library, so I don't think I can go without using the library. There are screws in the library that use the DLL files (which are also included in this same library) through the node library function call in LabVIEW that appear not to be included when I create an executable file. Adding even manually the DLL files to the folder where the executable generates the same error 7.

    Is this what I remember in my code to allow the program to function within the executable?

    Fasteners are drivers for Keyence, my top level VI (GeoREF-Keyence controller.vi) and all my sub live

    Best regards

    Victor

    Executables are taking a different path, as a start to debug the path as an indicator and see which path is being planned in executable mode?

  • ORA-900 sql not valid reporting error while calling the optimize_index pl/sql procedure


    Hi Experts,

    I'm on Oracle 11.2.0.3 on Linux and I have installed in my database Oracle text. I want to configure annex dbms_job to optimize my oracle text index. So first, I created a pl/sql procedure to optimize indexes. It gives me error ORA-900, but the sql even if I run in sqlplus works very well! Can you please help me the question is to find:

    Here is the procedure:

    (Either incidentally CTXAPP role has been granted in the schema where these Oracle text indexes are created and where the below procedure to optimize the index is running.)

    CREATE OR REPLACE PROCEDURE optimize_ora_txt_indexes_debug
    IS
       CURSOR cur_context_indexes
       IS
            SELECT index_name
              FROM user_indexes
             WHERE index_type = 'DOMAIN'
        AND ROWNUM<2  
        ORDER BY INDEX_NAME;
       v_user         VARCHAR2 (30);
       v_pod          VARCHAR2 (30);
       v_start_time   TIMESTAMP;
       v_end_time     TIMESTAMP;
       v_elapsed      VARCHAR2 (40);
       v_msg   VARCHAR2 (1000);
       v_error_code      NUMBER;
       v_error_msg   VARCHAR2 (1000);
       v_sql VARCHAR2 (1000);
    BEGIN
    
       FOR c IN cur_context_indexes
       LOOP
          BEGIN
            v_sql:= 'ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||')';
            dbms_output.put_line(v_sql);
            execute immediate v_sql;
          EXCEPTION
             WHEN OTHERS
             THEN
                v_error_code := SQLCODE;
                v_error_msg := SQLERRM;
                v_msg :=
                      'Error while optimizing the index '
                   || c.index_name
                   || ' '
                   || TO_CHAR (v_error_code)
                   || ' '
                   || v_error_msg;
                DBMS_OUTPUT.put_line (v_msg);
    
          END;
       END LOOP;
    
    EXCEPTION
       WHEN OTHERS
       THEN
          v_error_code := SQLCODE;
          v_error_msg := SQLERRM;
          v_msg :=
                'Error while in the optimize index procedure'
             || ' '
             || TO_CHAR (v_error_code)
             || ' '
             || v_error_msg;
          DBMS_OUTPUT.put_line (v_msg);
    
    END optimize_ora_txt_indexes_debug;
    /
    
     --the procedure compiles successfully. 
     Now when I run it , I get the error:
    SQL>exec optimize_ora_txt_indexes_debug;
    ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL')
    Error while optimizing the index ACCESS_CLNT_IDX04 -900 ORA-00900: invalid SQL
    statement
    
    
     --When I run the same command from sqlplus as execute statement , it works fine:
    SQL>exec ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL');
    PL/SQL procedure successfully completed.
     
     
    
    
    

    If everything runs from sqlplus, but fails in plsql... I'll be very grateful for pointers solve the problem.

    Thanks,

    OrauserN

    Hello

    It is a problem of pl/sql syntax. A call with EXEC is the same using BEGIN... Code of... END of block;

    SO, you need to include a beginning and an end to your call:

     v_sql:= 'BEGIN ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||'); END;';
    

    That's all.

    Herald tiomela

    http://htendam.WordPress.com

  • Error in browser after the publication of BC's Muse "MuseJSAssert: error by calling the selection function:...» »

    Get an error when the Muse in British Colombia - just started happening in the last hour.

    Can someone help or advise at all?

    http://forums.Adobe.com/message/6143407#6143407

    Just installed from Exchange of Muse (preloader).

    He was on the top most layer - look - it was fine.

    the opacity of the background of the preloader - pubished - had this twisted:

    MuseJSAssert: Error calling the function switch: TypeError: object [object Object] has no method 'museOverlay '.

    removed the preloader - published still GET and always error in all browsers.

    Use muse to post on BusinessCatalyst - popular ideas (just restart the machine and will try to publish again without the preloader to see if it suits it!)

    Hello

    I think that it is related to the degradation of the performance of EU data center, see BC status page for details - http://status.businesscatalyst.com/

    Please try again once the service is fully restored.

    Thank you

    Mihai

  • BEEP 10 g call a PL SQL function

    Hello..
    It's really breaking the feet... googled a lot but always back to square start.
    ... Well guys want to help me...

    I need to call a function from PL SQL BI editor passing 3 parameters.

    that means this feature is... it feeds a table.
    And the editor of BI report is read from the populated table...

    Kindly help me out here... How can I start...

    PL SQL function is a stand-alone... It is not under any procedure/package...

    If you could give me some small excerpts of what to write in the style of data... that would be great... and Yes, indeed, this is the old version of the BEEP... 30%

    >
    Total Questions: 11 (10 open)
    >
    Why can't anyone help you?

    >

    He throws me an error
    Variable binding does not exist

    any work arounds guy?
    >
    so

    
    

    and in z_report_sys_op_test_pkg.z_report_sys_op_test get the necessary value
    >
    substr (: Store, 0, InStr(:Store,'-') - 1).

  • Don't know how to test the output of the PL/SQL function

    I have a function in the package '. " XCCC_PO_APPROVALLIST_S1' called 'does_cpa_exist ':
       FUNCTION does_cpa_exist(
          p_document_id              IN       NUMBER
       )
          RETURN BOOLEAN
       IS
          l_cpa_exists VARCHAR2(100);
       BEGIN
          SELECT 'Y'
            INTO l_cpa_exists
            FROM po.po_requisition_lines_all prla
               , ap.ap_suppliers pv
               , ap.ap_supplier_sites_all pvsa
           WHERE prla.vendor_id = pv.vendor_id
             AND prla.vendor_site_id = pvsa.vendor_site_id
             AND pv.vendor_id = pvsa.vendor_id
             AND prla.requisition_header_id = p_document_id
             AND EXISTS(
                    SELECT pha.vendor_id
                      FROM po.po_headers_all pha
                     WHERE pv.vendor_id = pha.vendor_id
                       AND pvsa.vendor_site_id = pha.vendor_site_id
                       AND pha.org_id = fnd_profile.VALUE('ORG_ID')
                       AND pha.type_lookup_code = 'CONTRACT'
                       AND pha.authorization_status = 'APPROVED');
    
          RETURN TRUE;
    
          IF (p_document_id IS NULL)
          THEN
             RETURN FALSE;
          END IF;
       EXCEPTION
          WHEN OTHERS
          THEN
             RETURN FALSE;
       END does_cpa_exist;
    The pl/sql valid and commits OK in TOAD.

    I ran the sql in the EBS, and took the path of the workflow looks like that function returned a value of false.

    I pass to the function a document_id.

    I was wondering how I might test the output of the function from TOAD?

    I tried:
    select XCCC_PO_APPROVALLIST_S1.does_cpa_exist(1017934) from dual;
    But get errors:
    ORA-06552: PL/SQL: Statement ignored
    ORA-06553: PLS-382: expression is of wrong type
    I do probably bad 101 things here, but I would still ask thinking and risk of being shouted at.

    Any advice appreciated,

    Thank you

    I was wondering how I might test the output of the function from TOAD?

    Try

    begin
      if xccc_po_approvallist_s1.does_cpa_exist (1017934)
      then
        dbms_output.put_line ('True');
      else
        dbms_output.put_line ('False');
      end if;
    end;
    /
    
  • Loading of a DLL on RT: Missing Export "DecodePointer" "Kernel32.dll" and 7 error when calling the DLL

    Hi, I recently changed to Visual Studio 2010 and Windows 7 64-bit.

    I have an existing Office RT system running RT 2009.  This system calls a DLL that I already built using Visual Studio .net 2003 and Windows XP.

    Since I've recompiled the DLL I get an error 7 file not found error when I call the RT DLL, even if I simply replaced the old DLL with a new one in the file system so the path has not changed.

    I also noticed that the message on the screen connected to the RT system during startup:

    "achieveworldpeace.dll" load error: lack of export 'DecodePointer' of ' Kernel32.dll'.

    Any ideas on this problem?  It is perhaps as simple as a switch in the compiler?

    Thank you.

    I'm not sure it's a simple switch in the project settings in Visual C. The problem is clearly in the standard C runtime library that gets linked to your DLL and refers to exports of Windows which are not available on the RT system. Don't forget that the RT system is a limited Win32 API emulation.

    I usually avoid these problems using Visual C 6 to create DLLs for LabVIEW projects. The standard library of the C runtimes will not know what Windows API reference more recent exports because they have supported even under Win95. So unless your explicitedly reference code not supported RT APIs you wouldn't have problems. If you do not use the standard C file i/o functions and management of memory in your DLL functions, you can also try to link statically C runtime libraries in your DLL, or vice versa depending on what you have now. It may or may not work. Otherwise there is not much else but by using an earlier version of Visual Studio.

  • Need to call the PL/SQL Package in the group dynamics of approval class that implements IDynamicApprovalGroup

    Hi all

    This is regarding the approval of invoice AP I need in my project where the user selects the users/people approval when creating the invoice based on logic. There may be any number of users who could be part of the approval group.

    Approval users information is stored in a table with a single Bill.

    When the user initiates invoice approval, approval of the Bill should go to all the people/users selected in the invoice.

    I created the dynamic of approval group which is the result of a java class. This java class implements IDynamicApprovalGroup. (what is the oracle Developer Guide).

    I called PL/SQL to java class package to get all the details of users of custom for the current invoice table.

    I used the DriverManager.getConnection method by hard coding (JDBC URL, Username, Pwd) connection details that works perfectly fine.

    But I don't want to hard-code the connection details because it will change in bodies SIT/UAT/PROD.

    Please ask you to guide me if there is no solution for the information of connection without hard coding it.

    Following code used to get the connection details

    try {}

    Class.forName ("oracle.jdbc.driver.OracleDriver");

    System.out.println ("= class loaded");

    }

    catch (ClassNotFoundException ex) {}

    System.out.println ("= class loading error");

    ex.printStackTrace ();

    }

    Fitting out = null;

    CallableStatement cstmt = null;

    Try

    {

    connection = DriverManager.getConnection ("jdbc:oracle:thin:@xxhostname:1521/SID", "FUSION", "*");

    Connection = GetConnection ();

    System.out.println ("= connection =" + connection);

    prepare the call

    cstmt = connection.prepareCall ("{call XX_AP_INV_DYN_APPROVAL_PKG. {GET_GROUP_PARTICIPANTS (?,?)} ») ;

    cstmt.setString (1, '12345');   ID on invoice

    Exit of the register

    cstmt.registerOutParameter (2, java.sql.Types.VARCHAR);

    Call the stored procedure

    cstmt. Execute();

    System.out.println ("= procedure being executed");

    approvalGroupMembers = cstmt.getString (2).split("#");

    System.out.println ("= output:" + cstmt.getString (2));

    }

    catch (Exception ex) {}

    ex.printStackTrace ();

    }

    Finally

    {

    Try

    {

    If (cstmt! = null)

    close the callable statement

    {

    cstmt. Close();

    cstmt = null;

    }

    System.out.println ("= stmt closed");

    }

    catch (SQLException ex)

    {

    System.out.println ("= stmt close err");

    ex.printStackTrace ();

    }

    Try

    {

    If (connection! = null)

    close the connection

    {

    Connection.Close;

    connection = null;

    }

    System.out.println ("= closed conn");

    }

    catch (SQLException ex)

    {

    System.out.println ("= Close conn err");

    ex.printStackTrace ();

    }

    }

    Thank you

    Dipak.

    HI Dembélé - you should be able to call the provider database from the java class. Documentation is here. However, you need to specify the name of the data provider that is the same in all environments. Do you know what it is? If it's not I'll take a look and get back to you.

    __

    Peter Maurer

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • The error by calling the report?

    Hello experts,

    I use oracle fusion middleware forms and reports 11.1.2.1.0 release.
    I call you report report using the srw.set_hyperlink () function:
    format of trigger code is below to:
    srw.set_hyperlink(temp_path||'/reports/rwservlet?dblogin+server='||rep_server||'+report='||global_path
                ||'fac\reports\Fac_cheque_print_icici_0121_cc.RDF+destype=cache+desformat=pdf'
                ||'+paramform=no+locn_code='||:locn_code||'+vch_type='||:vch_type||'+vch_vch_no='||:vch_vch_#);
    error: EP-52005: dblogin specified key does not exist in the key map file

    Please help me.

    Thank you
    Yoann

    yash_08031983 wrote:
    Hello

    I made the entry in the cgicmd.dat file is located in: D:\Oracle\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\servers\WLS_REPORTS\applications\reports_11.1.2\configuration

    dblogin userid=abc/abc@TEST % *.

    Let's not... put in place

    dblogin: userid=abc/abc@TEST %*
    

    and what is the url now?

    Hope this helps

    Hamid

    Mark correct/good to help others to get the right answers. *

  • How to run the PL SQL function on click of a button

    Hello

    I have problem with run SQL PS function on click of a button. I have create a new button and call the function STANJA.insert_into_log_fun1('cc'); "Value of the button application", a Type of Source select button request = 'SQL PL Expression or function.
    Problem is that this function is executed at the loading of the page, but not to the click. I don't want to perform this function on loading the page, only when I click the button.

    Does anyone have idea how can I solve this problem?
    Thank you very much.

    Alter this process > status > when you press the button > choose the button you want the pcoss to run on.

    RAL

Maybe you are looking for