PL/JSON utility integration into Oracle APEX 4.0 application problem

I want to be able to use the PL/JSON utility in my application Oracle APEX (4.0) but get several errors when I try to run the Hello World example (replace GET_VARCHAR2 by GET_STRING) of http://embosa.wordpress.com/2010/02/26/oracle-and-json-using-pljson/ in the SQL command page. I can confirm that PL/JSON works if I run the example as his own script, PL/SQL, outside Oracle APEX.

My database is Oracle 10 g XE. I get the following error messages when I run the Hello World example in the page of SQL command:
ORA-06550: line 2, column 20:
PLS-00905: object MY_SCHEMA.JSON is invalid
ORA-06550: line 2, column 20:
PL/SQL: Item ignored
ORA-06550: line 5, column 5:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 5, column 5:
PL/SQL: Statement ignored
ORA-06550: line 7, column 26:
PLS-00201: identifier 'JSON_EXT.GET_VARCHAR2' must be declared
ORA-06550: line 7, column 5:
PL/SQL: Statement ignored
Maybe I'm too new/familiar with APEX Oracle PL/SQL, but I guess that APEX does not have the privileges to use PL/JSON. I already gave the public privileges execute on three packages (JSON_EXT, JSON_PARSER, JSON_PRINTER) and APEX_PUBLIC_USER but the error messages does not change. What Miss me?

Published by: user1171263 on August 29, 2010 21:59 added blocks of code around the error messages.

See if this post will help you: http://daust.blogspot.com/2006/04/xe-calling-stored-procedures.html

In addition, you don't need a slash in the closing

 tag.

Ta,
Trent                                                                                                                                                                                                                                                                                                                                                        

Tags: Database

Similar Questions

  • Import Excel file into oracle Apex table

    Hello

    using the Application Express 4.2.5.00.08

    Oracle 11g.

    My question is how do I import data into oracle using the APEX of EXCEL file table please? Any other file format.

    Thank you very much

    RI

    Irha10 wrote:

    using the Application Express 4.2.5.00.08

    Oracle 11g.

    My question is how do I import data into oracle using the APEX of EXCEL file table please? Any other file format.

    Use plug-ins Excel2Collections.

  • Integration of Oracle Apex with EBS R12.1.1

    Dear all,

    We are in the process of integration Oracle Apex 4.0.2 with EBS R12.1.1 with the help of http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf.

    After doing all the steps, the time where we sail of EBS to Apex application clicking on EBS links menu it ends with error below

    "404 not found".

    ' / OA_HTML/null/pls/apex/f resource not found on this server.

    After some tests, I found the code below in "LaunchApex.jsp" in order to get the value of profile (supposed to be "http://myserver:port") of custom system 'APEX_HTTP_SERVER' profile and prefacing of ' / apex/f? ' p = applicationid:page:APPS: ' does not work correctly

    "
    ...

    String l_launcher = ctx.getProfileStore () .getProfile ("APEX_HTTP_SERVER");
    l_launcher = l_launcher + "/ apex/f? p ="+ p_application +": "+ p_page;
    l_launcher = l_launcher + ': APPS: "+ p_item_names +": "+ p_item_values;

    ...

    "

    as we found that the profile custom system 'APEX_HTTP_SERVER' does not exist in the EBS system. But it works without any error page if we encode the URL of the entire application variable in l_launcher apex, but this hard brings us to the page of connection of EBS instead of the Apex application page.

    So I think that we can't work around by using the value of 'APEX_HTTP_SERVER' profile because it has something to do with the EBS application session.

    So could someone please help me how we could create custom profile system "APEX_HTTP_SERVER" or other options to make the transparent integration of apex Oracle with EBS works without any second login page

    Thanks in advance

    Published by: 805196 on August 25, 2011 12:23 AM

    Hi oar,

    you will need to change as the below in the jsp

    String l_launcher = ctx.getProfileStore().getProfile("OAE_LAUNCHER");
    l_launcher = l_launcher + "/apex/f?p=" + p_application + ":" + p_page;
    l_launcher = l_launcher + "::APPS:::" + p_item_names + ":" + p_item_values;
    

    Brgds,
    Mini

    --------------------
    Mark responds promptly

  • Importing data into Oracle Apex

    Hello

    I have an obligation to provide a screen to the user where they can import excel data to an existing table and I saw a feature in the workshop of data in Oracle Apex, but I can't use that since I have extra things added into that must. The requirment is mentioned below,

    (1) need a screen where the user can select the excel file and start the import of a temporary table without validation
    (2) the data from the temporary table must be visible to the format of form Multi line in the screen and the user must be able to modify the data
    (3) the need for a feature or a screen mapping where the user can map the temporary table to the original table column before you pass data to the original (as data) table
    (4) the data should be transferred in the original table and the respective data should be deleted from the temporary table (in case if an error occurs, error record must appear in a temporary table up to less than the user of the corrected data into the original table)
    (5) need to add different types of validation, update the record in the original record if same id is available or insert a record value, non-zero, etc...

    Please suggest me how can I do this in the Apex.

    Is it possible to use the existing data and design workshop robot code in my new screen?

    You will probably have to code this yourself... There are packages that have been written to import Excel and CSV style...

    Here's a blog entry to make the upload of Excel file: http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/

    Once you call who you might have a tabular layout displays the data to the user...

    Other processes must be written by you (migration of data from the temporary table to the table of live data...

    Thank you

    Tony Miller
    Webster, TX

    On the road of life... He has "windshield", and there are "bugs".
    (splat!)
    "Squeegees wanted."

  • How schema can be exported and imported into Oracle Apex?

    Hello

    I am very new to oracle apex. I had installed the apex and the Oracle XE database successfully. I want to import an application to my apex. It was created using workspace - worm and schema - Ves. I had imported the application and the workspace in my apex. But, I'm not able to run the application because I had specified my diagram (HR) by default for the application. How can I import the schema "Ves", in which the application is developed, in my apex?... so that I can run the application in the same pattern... Help, please. Thank you

    Do a quick web search for ApexLib highlights the suggestion that a part of your installation is missing. No doubt the other APEX instance includes the so-called Apex Lib, which seems to be a sort of add-on APEX framework (I never heard him personally sorry Patrick!).

    It seems that your original application has dependencies on this module, which you have not captured during migration. I suggest re - visit your existing instance of APEX and see what are the additional dependencies it (it has different points of view in the dictionary of the APEX which can help you with this) deal with them everything first, then re - try your migration of the application.

  • Integration of Oracle Apex 4.0.2 with EBS R12.1.1

    We could integrate Oracle Apex 4.0.2 with EBS R12.1.1 with the help of http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf successfully.

    The document said to navigate from EBS to Oracle Apex without any second login screen (works very well!), but now how we sail to EBS to Oracle Apex (in the same session) without any screen connection again as below

    User login of EBS-->--> Oracle Apex-> EBS EBS

    Please help to achieve this goal.

    Hello

    In your application's authentication scheme in the sign-out URL Section, gives the following

    wwv_flow_custom_auth_std.logout_then_go_to_url?p_args=&APP_ID.:http://xyz.ck.com:8010/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE
    

    Provide your url on ebiz instead of http://xyz.ck.com:8010 in the link above.

    Thus, while pressing the logout link in your apex, you will not be redirected to login ebiz again page, it will be redirect you ebiz menu homepage back in the same session itself.

    This will work for sure.

    Good luck!!!

    Change your login username of "805196" in a meaningful Word.

    Brgds,
    Mini

    -------------------
    If this has answered your question, then awarded points and close the debate.

  • Oracle APEX 4.2.2 problem

    Hi all respected gurus / members of this forum.

    Recently, I downloaded Oracle Application Express 4.2.2 of ORACLE's Web site.

    1 *@apxins.sql* has worked with success
    2 *@apxconf.sql* has worked with success
    3 *@apxldimg.sql* does not work and I am faced with error below.
    ---*******************************************************************************************
    SQL > @apxldimg

    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    . Loading images directory: d:\apex\images/apex/images
    Created directory.
    declare
    *
    ERROR on line 1:
    ORA-22288: file or LOB FILEOPEN operation failed
    The system does not have the specified path.
    ORA-06512: at "SYS." XMLTYPE", line 296
    ORA-06512: at line 15 level
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Validation complete.
    Directory has fallen.
    calendar for: Load Images
    Elapsed time: 00:00:03.00
    SQL >
    --*****************************************************************************************

    When I tried to open http://localhost: 8080/apex/apexadmin_ *, I received below the details of the error in Internet Explorer.

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729 .NET CLR 3.0.30729; Media Center PC 6.0)
    Timestamp: Tuesday, May 14, 2013 14:26:04 UTC

    Message: "apex" is not defined
    Line: 35
    Char: 1
    Code: 0
    URI: http://10.2.32.129:8080/apex/f? p = 4550:10:30571037878788:

    Message: "apex" is not defined
    Online: 85
    Char: 1
    Code: 0
    URI: http://10.2.32.129:8080/apex/f? p = 4550:10:30571037878788:

    ---*****************************************************************************************

    Thanks and best wishes
    Mohammed Uzair Awan*.
    ORACLE APEX programmer
    PAKISTAN

    Hello

    If you extracted the files to D:\ install, so you run

    @apxldimg d:\
    

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Google Earth integrated with Oracle Apex UTL_HTTP must be declared.

    I use ORACLE XE and APEX 3.2 and I import
    http://www.Oracle.com/technology/products/database/application_express/packaged_apps/google_maps.zip
    at my request of manufacturer.

    The problem is that if I click on the geocode button 'Get '.
    and I get:

    ORA-06550: line 18, column 17: PLS-00201: identifier 'UTL_HTTP' must be declared ORA-06550: line 18, column 3: PL/SQL: statement ignored

    declare
    l_address varchar2 (4000);
    l_url varchar2 (32000);
    l_response varchar2 (3200);
    Start
    l_address: =: P1_STREET | «, » || : P1_CITY;
    If: P1_STATE is not null then
    l_address: = l_address | «, » || : P1_STATE;
    end if;
    If: P1_COUNTRY is not null then
    l_address: = l_address | «, » || : P1_COUNTRY;
    end if;

    l_address: = replace (l_address,' ', '+');

    l_url: = 'http://maps.google.com/maps/geo?q= ' | l_address | ' &' | 'exit is csv' |. '&' | 'key =' | : API_KEY.

    l_response: = utl_http.request (l_url, APEX_APPLICATION. G_PROXY_SERVER);

    : P1_RESPONSE: = l_response;
    : P1_LOCATION: = substr (l_response, instr(l_response,',',1,2) + 1);

    end;

    so I do:

    GRANT EXECUTE ON utl_http to THE system;

    and I still have the same problem...

    You must grant the privilege of utl_http package.

    Connect as sys and run this:

    Grant execute on utl_http to your_user;

  • Flex Data Services integrated into Oracle Web Service Proxy

    I am trying to invoke a service proxy web created with Oracle JDeveloper IDE via Flex Data Services.
    I created an assembler class and defined actionscript objects that are required to serialize web service data and then call the dataservice with the id provided in the datamanagement.config file.

    When I try to debug the application, the class of the assembler is not affected, I added a breakpoint in the class, but on beforehand the exception is already thrown.

    Appears in the following stackTrace:
    [Flex] Order receipt: TCCommand [Cmd: 0, MethodName: null, TrxID: 3.0]
    [Flex] Has started the transaction using jndi name: java: comp / UserTransaction
    [Flex] Transaction committed
    [Flex] Response of the AMF financial/RTMP serialization
    Version: 3
    (Order method = _error (0) trxId = 3)
    (Print object #0 'flex.messaging.messages.ErrorMessage')
    rootCause = null
    destination = "dossierCreation".
    headers = (1 item)
    correlationId = "823B7A23-8463-0D24-0D39-A7FF8080B3A7."
    faultString = "there is an error unhandled on the server. javax/xml/rpc/ServiceFactory.
    messageId = "DF26CC97-B619-EAB1-191F-3FF02B998D49."
    faultCode = "Server.Processing".
    timeToLive = 0.0
    extendedData = null
    faultDetail = null
    clientId = "DF26CC00-580E-7285-F10F-720471C6BBE5".
    timestamp = 1.192524481046E12
    body = null

    I found the problem, I had to configure JOTM in my tomcat server to allow transactions.

  • How to integrate the search engine (Google) customized with oracle apex 5.0?

    <script>
      (function() {
        var cx = 'aaaaaaaaaaaa:bbbbb';         
        var gcse = document.createElement('script');
        gcse.type = 'text/javascript';
        gcse.async = true;
        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
            '//cse.google.com/cse.js?cx=' + cx;
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(gcse, s);
      })();
    </script>
    <gcse:searchbox ></gcse:searchbox>
    
    

    Like, I then politico who and want to change the settings of the CSE research must have be take place. Above the CSE code works for any thing you search I want to connect this way regardless of the setting I have spend in search results will go.

    For this I need to use Json rest api in oracle apex to bind the varibales. Say for example: cr = (country); LN (language) = en; This value will be passed through JSON ESC (google), and the result will appear any suggestion I how to get this...
    Thank you.

    Used JavaScript get json response and show it to the page. You can also use the pl/sql to achieve this.

  • Jasper on oracle APEX integration error. "Error: file null.jasper not found.

    Hi all

    Recently, we have configured Oracle APEX and configured report Jasper on Glassfish 4.1. Everything went well, but when you try to run the test report we get following error.

    "Error: file null.jasper not found.

    Can anyone help with this?

    Database: Oracle 11g R2

    APEX: 4.2

    GlassFish 4.1

    Report of Jasper 1.3.0.2

    Hi Kiran,

    Thanks for your reply, we used the same link for integration.

    But now we have solved the problem. The issue was with the version of Glassfish. It seems that report jasper is not compatible with the 4.1. So, we removed 4.1 Glassfish and install Glassfish 3.1. That solved the problem for us.

  • Apex 5.0 Page Designer JSON error on the page to load an application of 4.2 imported

    After you import our application written with version 4.2 (issue 26, modified) at APEX 5.2 when I try to open a page with the page designer, I get the following message

    Error: parsererror - SyntaxError: JSON.parse: unexpected end of data to column 1 of line 1 of the JSON data

    and the Page displays a ' no page or page no model has "no region free items or processes.

    Strangely in sqldeveloper, I can see that all the pages have the right number of elements and the application can run without problem.

    We use a lot of plugins and many models updated the theme 26.

    I try to delete all pages in the application and create a new one, but without success.

    Our application contains hundreds of pages, and I'm afraid that we must stay on the 4.2 version!

    Thanks in advance.

    user_frederic wrote:

    After you import our application written with version 4.2 (issue 26, modified) at APEX 5.2 when I try to open a page with the page designer, I get the following message

    Error: parsererror - SyntaxError: JSON.parse: unexpected end of data to column 1 of line 1 of the JSON data

    and the Page displays a ' no page or page no model has "no region free items or processes.

    Strangely in sqldeveloper, I can see that all the pages have the right number of elements and the application can run without problem.

    We use a lot of plugins and many models updated the theme 26.

    I try to delete all pages in the application and create a new one, but without success.

    Our application contains hundreds of pages, and I'm afraid that we must stay on the 4.2 version!

    Can you switch off Page Designer and page definitions into component?

    Run the utility Advisor to find anomalies in the application.

  • Create the Signature buffer in oracle apex 5.0

    Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that as: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature ) 3 https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.

    Hi Pranav.shah,

    Pranav.Shah wrote:

    Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that love: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature 3) https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.

    Use the pad of Signature plugin Enkitec. Why don't you use this plugin, but only its features.

    Also, the plug-in can save the signature to be registered as JSON CLOB or BLOB image in the database.

    Reference:

    Kind regards

    Kiran

  • Error of the ACLs in Oracle Apex 5 after schema change

    Hi all

    I'm creating an application using Oracle Apex 5.

    I have a button call Send Mail and mail is worked.

    Now, I imported my request in a different schema and configured acl as below.

    I use apex_mail.send to send mail and created the acl as

    BEGIN

    () DBMS_NETWORK_ACL_ADMIN.drop_acl

    ACL = > 'open_apex.xml');

    (DBMS_NETWORK_ACL_ADMIN). CREATE_ACL

    ACL = > "open_apex.xml"

    Description = > "a test of the ACL feature."

    main = > 'RMSR. "

    IS_GRANT = > TRUE,

    privilege = > 'connection ',.

    start_date = > SYSTIMESTAMP,

    End_date = > NULL);

    (DBMS_NETWORK_ACL_ADMIN). ASSIGN_ACL

    ACL = > "open_apex.xml"

    Home = > ' *',

    lower_port = > 20,

    upper_port = > 9999);

    COMMIT;

    end;

    BEGIN

    (DBMS_NETWORK_ACL_ADMIN). ADD_PRIVILEGE

    ACL = > "open_apex.xml"

    main = > 'RMSR. "

    IS_GRANT = > TRUE,

    privilege = > 'connection ',.

    position = > NULL,

    start_date = > NULL,

    End_date = > NULL);

    COMMIT;

    END;

    It throws error as

    ORA-24247: network access denied by access control list (ACL)

    Is there a problem in my setup?

    Thanks in advance,

    Su.GI

    Hi Su.gi,

    Su.GI wrote:

    I'm creating an application using Oracle Apex 5.

    I have a button call Send Mail and mail is worked.

    Now, I imported my request in a different schema and configured acl as below.

    It throws error as

    ORA-24247: network access denied by access control list (ACL)

    Is there a problem in my setup?

    You have granted the ACL to the RMSR of your database schema, so it is necessary for the APEX_050000 scheme when you use the APEX_MAIL package.

    This is why the ACL must be granted at the APEX 5 Schema: https://docs.oracle.com/cd/E59726_01/install.50/e39144/listener.htm#HTMIG29161

    Here's how the ACL must be granted for APEX 5 Schema: https://docs.oracle.com/cd/E59726_01/install.50/e39144/listener.htm#HTMIG29162

    NOTE:

    • Create the ACL by logging into the user with SYSDBA SYS privileges.
    • Don't forget to validate after execution of the anonymous block for the creation of ACL.

    Kind regards

    Kiran

  • Execution of the procedure of Oracle APEX

    Hello

    I've written a procedure ' create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2); " et I want to execute this procedure to Oracle Apex.


    PROCEDURE:

    create or replace PROCEDURE process_csvfile(p_filename IN VARCHAR2)
    AS
    statement1 varchar2(1000);
    statement2 varchar2(1000);
    statement3 varchar2(1000);
    
    begin
    dbms_output.put_Line(p_filename );
    statement1:= 'alter table adb.external_bcc_test location ( '  ||chr(39)|| p_filename||chr(39)|| ')' ;
    dbms_output.put_line(statement1);
    EXECUTE immediate statement1;
    dbms_output.put_line('statement1-> completed');
    EXECUTE immediate 'truncate table ADB.ADB_BCC_TEST';
    dbms_output.put_line('statement2-> completed');
    statement3:='insert /*+ append */ into ADB.ADB_BCC_TEST(BCC_ID,BCC_ADD,"NO_OF_BCC(GEO)") select * from adb.external_BCC_test';
    dbms_output.put_line(statement3);
    EXECUTE immediate statement3;
    dbms_output.put_line('statement3 insert-> completed');
    
    EXCEPTION
    WHEN OTHERS
    then
    raise;
    END;
    
    

    I created the button and the action as a dynamic Action where I wrote below PL/SQ as dynamic Action to perform this procedure


    BEGIN
    
    process_csvfile;
    END;
    
    


    But I get an error" " " ORA-06550: line 4, column 3: PLS-00306: wrong number or types of arguments in the call to 'PROCESS_CSVFILE' ORA-06550: line 4, column 3: PL/SQL: statement ignored (go to error) "

    Oracle Apex Version: 4.2.1

    Thank you

    BO.

    BO123 wrote:

    I've written a procedure ' create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2); " and I want to run this procedure from Oracle Apex.

    1. create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2)
    2. AS
    3. statement1 varchar2 (1000);
    4. statement2 varchar2 (1000);
    5. statement3 varchar2 (1000);
    6. Start
    7. dbms_output.put_Line (p_filename);
    8. statement1: = ' change the location of the table adb.external_bcc_test (' |) Chr (39) | p_filename | Chr (39) | ')' ;
    9. dbms_output.put_line (statement1);
    10. EXECUTE immediate statement1;
    11. dbms_output.put_line ('end statement1->');
    12. EXECUTE immediate ' truncate table ADB. ADB_BCC_TEST';
    13. dbms_output.put_line ('end of reporting2->');
    14. statement3: = "insert / * + append * / into ADB." ADB_BCC_TEST (BCC_ID, BCC_ADD, ' NO_OF_BCC (GEO) ') select * from adb.external_BCC_test';
    15. dbms_output.put_line (statement3);
    16. EXECUTE immediate statement3;
    17. dbms_output.put_line ('end statement3 insertion->');
    18. EXCEPTION
    19. WHILE OTHERS
    20. then
    21. lift;
    22. END;

    The treatment is an external table. How to get the source file in the specified location?

    dbms_output.put_linethe instrumentation is unnecessary in an environment of APEX (unless the apex_debug.log_dbms_output method has been called). Use apex_debug API methods instead so that information is available in debug mode.

    There is no reason to use dynamic SQL statements in lines 15-17.

    Creating a column named "NO_OF_BCC (GEO)" is not a good idea and is in conflict with the recommendation of the Oracle do not use identifiers in quotes for the names of database objects. This objects will only cause problems and confusion.

    Lines 20 to 23 are a bug. It doesn't hide where any exception occurred in fact. If there is no specific exception that must be handled in this procedure, it should not contain an exception block.

Maybe you are looking for