How to call the package from a SQL string function

I create a SQL string in my c# application. Within the selection, I have a function call to a package in my diagram.

ex.

"Select id, package1.fncFormat (text) of tblText".

If I run this within Oracle it works fine but when I run my application and the SQL runs the use of OracleDataReader I get


«ORA-00904: "PACKAGE1".» ' FNCFORMAT': invalid identifier.

Is this possible to do?

It is a dynamic sql string that is built using many different options.

Thanks for any help

Do you run this application and directly on DB package by the same user?
Check the privileges of the user on the application.

Kind regards
Bobin

Tags: Database

Similar Questions

  • How to: call the calendar from my application?

    I want to call the application calendar from my application so that the user can use the calendar interface to define its event.  I would like to be able to send data to the calendar during the call, e.g. the name of a person or place and that this info is included in the calendar in the subject case or place or somewhere.

    Is this possible?

    If this isn't the case, I need to define my own event interface to allow the user to choose a date and time and other details chercher search screen, then add them to an event object?

    Thanks in advance.

    You can call the calendar application using the API invoke, as well as an ApplicationArgument for the calendar.

    See the javadocs.

  • How to call the browser from my application

    Hello

    I'm new to blackberry, cascades, in my application, I had to choose the top-up amount and time of payment that I wanted to use the native browser and that the transaction should go, after the successful operation, it should go back to my application showing weather status of transaction it is success or failuer.

    I had seen the framework invocation documentation to the developer site also work, but I did not understand how to do it.please provide some links that has examples or tutorials

    Thank you

    to do this, use InvokeActionItem

     InvokeActionItem {
                id: browser
                title: "Open Browser"
                query
                {
                    invokeActionId: "bb.action.OPEN"
                    invokeTargetId: "sys.browser"
                    uri: "http://www.abc.com"
    
                }
    

    This post helped you? In the affirmative, please make sure to 'it '!

  • How to call the popupscreen from inside menuitem

    I created a single screen. I added a menuitem.

    If this menuitem a popupscreen should be displayed with a click.

    but I'm IllegalThreadStateException. can anyone tell why its happening.

    I use following the line of code

    UiApplication.getUiApplication () .pushModalScreen (new FastTextScreen());

    inside the menuitem run() method.

    waiting for the answer

    Thanks for the reply.

    Oddly, now it works.

    in the sublayout method, I used setPosition(), setExtent() and layoutDelegate().

    Once again thank you.

  • Call the Javascript htmldb_delete_message PL/SQL procedure

    Hi guys,.

    I am a novice when it comes to JavaScript; I've written a PL/SQL procedure that removes multiple records based on a primary key:

    PROCEDURE clear_alterations (p_eco IN VARCHAR2)
    IS
    BEGIN
    DELETE FROM xxmel_apex_eco_alterations
    WHERE the eco = p_eco;
    END clear_alterations;

    I can run it directly from a normal button, but I want the pop htmldb_delete_message dialog box to confirm whether to delete or not. When the user clicks "OK" I want the file to delete and cancel, do nothing.

    I have managed to get the confirmation box appears, but cannot see how to call the PLSQL based on the OK"" button.

    Any help would be great,
    Thank you
    Chris

    Hello

    Set your target URL button

    javascript:confirmDelete('Delete record?','DELETE_REC');
    

    Then create processes that call your procedure and define the process conditional request DELETE_REC

    Kind regards
    Jari

  • Calling web services from PL/SQL

    Hello

    We have a requirement where we need to call a WebService from PL/SQL.
    I believe that we have an API of PL/SQL, which allows you to use external web services.

    I was looking for other possible options as to consume the web Service of PL/SQL.

    The one you suggest other options, and what option is best to consume the web service.


    Thank you
    AB

    Hello

    I used the http of the utl package.
    Apart from this you can also use java stored procedure. I haven't used this approach, but I found a blog for the same:

    http://technology.AMIS.nl/Blog/348/consuming-Web-services-from-PLSQL-part-i-using-Java-stored-procedures

    Kind regards

    Ketan

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • How to call the procedure type table

    Hi I have the below requirement

    Created in the sub table type

    CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);

    create or replace procedure test_proc_type (p_type char_type) is

    Start

    I'm looping 1.p_type.count

    dbms_output.put_line (p_type (i));

    end loop;

    end;

    How to call the procedure with parameter as a type!

    SQL> create or replace type  char_type as table of varchar2(4000)
      2  /
    
    Type created.
    
    SQL> create or replace procedure test_proc_type (p_type char_type)
      2  is
      3  begin
      4    for i in 1..p_type.count loop
      5      dbms_output.put_line (p_type(i) ) ;
      6    end loop;
      7  end;
      8  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL>
    SQL> exec test_proc_type(char_type('A','B','C','D','E'))
    A
    B
    C
    D
    E
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to design the table from the answer to the question table.

    Hi all

    I am creating an application for student review online.

    There are two types of questions, the only choice of response and multi choice answers.

    My question is less than
    create table question_master
    (
    exam_id number references exam_master(exam_id),
    marks_of_each_question number,
    type_of_question char(1),-- single choice answer/multiple choices answer
    q1 varchar2(2000),
    q2 varchar2(2000),
    q3 varchar2(2000),
    q4 varchar2(2000))
    my table to answer (I'm not satisfied with who is below
    create table answers_of_questions
    (
    answer_id number primary key,
    question_ID number referenes question_master(question_id),
    answer varchar2(4000) not null,
    is_answer_correct char(1),--y/n,
    student_selection char(1),--y/n   student select it or not
    ....
    ...
    now, I'm perfectly how to create the RESPONSE table to contain the answers.
    the only choice is good, but several checkboxes choices, what to do?
    How to design the table from the answer?

    do I have to create 2 tables to contain the answers?
    Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
    may be called STUDENT_SELECTED_ANSWERS or something like that.
    If anyone has some reference to the script retail scheme review online, kindly share with me.

    Kind regards.

    Kind regards.

    If you need to have answers in another table:

    Student (student_id, name, etc...)
    Review (exam_id, exam_name, etc...)
    Question (question_id, exam_id, question_text)

    Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">
    OR
    Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">

    Student_Answer (student_id, question_id, a, b, c and d)
    OR
    Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">

    To what extent you want to standardize, it is up to you.

  • How to call the stored procedure when I press the button

    Hello

    I want to know how to call the procedure/SQL statement when I press the button using callable statement.

    can someone give me it please link who knows the steps to do this.

    Thanks in advance,
    SAN

    Hello

    read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    ~ Abhijit

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

  • How could call a report from another report?

    Dear developers,

    How could call a report from another report?

    is this possible? and what is the call statement?

    Note: I use the 6i report



    Thanks in advance,


    Bil

    Hello

    It seems that you 'open' a quote before: orderby.
    You must "close" this quote after: orderby

    SRW.run_report ("report = SDCRVRF106 Cl_NO ='|"'|: CLIENT_no | "") ' || ' d1='||'''' || :D1 ||'''' ||' d2='||''''||:D 2 ||'' ' |' orderby =' | '''|| : o rderby | " ') ;

    concerning

  • How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    WITH cte (col1, col2) AS
    (
    SELECT col1, col2
    FROM dbo. [tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    )
    DELETE one
    FROM dbo. [tb1] AS an INNER JOIN b cte
    ON a.col1 = b.col1

    Hello
    Something like this maybe:

    DELETE FROM dbo.tb1 a
     WHERE EXISTS (
      SELECT 1
        FROM dbo.tb1 b
      WHERE a.co11 = b.col1
          AND a.col2 = b.col2
       START WITH b.col1 = 12
      CONNECT BY b.col2 = PRIOR b.col1)
    

    Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.

  • How to avoid the SEPARATE in OBIEE SQL

    Hello...

    For the issue I posted previously...
    Problem with the data type LONG in responses

    I executed the query into a FROG, and I've identified the error because of what this error is coming... because of SEPARATE...
    I took care to avoid this column in ORDER BY putting order on another column...

    Now my question is how to avoid the DISTINCT clause in SQL generated by OBIEE...
    If the first column of criteria is then it avoids the SEPARATE... but if I use measure... Group of will come... and group of should not be used here...

    If it's done... my problem is solved...
    Of course... I get duplicate rows...

    However, I want the answer how avoid SEPARATE?
    Waiting for the response from your...

    Thanks and greetings
    Kishore Guggilla

    Kishore,

    In the physical layer, open the properties of physical catalog and in the features tab find DISTINCT_SUPPORTED and remove the check box value.

    who removed separate in each query generated for this database.

    -Madan

Maybe you are looking for

  • Subject: newtab blocks firefox

    I just upgraded to win10 with any other hardware or software updates Firefox worked fine before, now it crashes when I open a new tab when the tab is set to abou:newtab, this will display an arrangement tiled pages read regularly, but now so it is cr

  • HP Laserjet 2840: HP Laserjet 2840-custom color print after Windows update.

    I updated my Windows 8.1 operating system (64-bit) with the provided updates, automatic updates of Windows, about two weeks ago.  After that my HP Laserjet 2840 will not print anything in color.  It copy in color, so I know that the printer still wor

  • Equium A100-027: need product recovery disc

    Good afternoon I was wondering if you could help me at all the My A100 became really slow and unstable. So decided to use the product recovery disc, but found to be scratched.I tried to use a disc repairman but have had no joy. I have the original pr

  • ReadyDATA auto-créer directories

    ReadyDATA 5200 has the ability to auto-créer shares of home for the users of the AD as does the line of ReadNAS? I find anywhere a framework for this.

  • How this group program and these values of button cluster in a table?

    In the attached programme, there are 6 buttons in a cluster and 1 individual button. These keys select a bunch of different power relay to the different components of a single control device. Currently the program is working in that I can control the