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.

Tags: Database

Similar Questions

  • Perform the procedure on oracle apex online

    Hi all


    CREATE OR REPLACE PROCEDURE TEST_PROC
    AS
    V_FNAME EMPLOYEES. FIRST_NAME % TYPE;
    BEGIN
    SELECT FIRST_NAME FROM V_FNAME OF EMPLOYEES
    WHERE NAME = 'JOHN ';
    DBMS_OUT. PUT_LINE (V_FNAME);
    END;
    I did this procedure on the http://apex.oracle.com/ sql worksheet on my account.

    When I gave TEST_PROC RUN; and CALL TEST_PROC; order for providing this procedure I get ORA-00900 following error: invalid SQL statement.

    Please tell how I can perform this procedure.

    Thanks in advance.

    concerning

    Neeraj

    Calls to PL/SQL must be made using anonymous PL/SQL code blocks. For example

    begin
      Test_Proc;
    end;
    

    There is no server EXECUTE command (some customer support this as a sales order, wraps the content to run in an anonymous PL/SQL block and then use it to call the database).

  • ODI-1226: Error_log_procedure step fails after 1 attempt. ODI-1232: the execution of the procedure error_log_procedure failed. ODI-1246: the logical schema has not been defined for error_log_procedure.

    I created a procedure running during the mapping fails but I am facing this error

    ODI-1226: Error_log_procedure step fails after 1 attempt.

    ODI-1232: the execution of the procedure error_log_procedure failed.

    ODI-1246: the logical schema has not been defined for error_log_procedure.

    at oracle.odi.runtime.agent.execution.AbstractSessionTask.getCollectDwgConnectConnection(AbstractSessionTask.java:754)

    at oracle.odi.runtime.agent.execution.AbstractSessionTask.getCollectDwgConnectConnection(AbstractSessionTask.java:730)

    at oracle.odi.runtime.agent.execution.SessionTask.getExecutor(SessionTask.java:239)

    at oracle.odi.runtime.agent.execution.SessionTask.processTask(SessionTask.java:152)

    at oracle.odi.runtime.agent.execution.SessionTask.doExecuteTask(SessionTask.java:111)

    at oracle.odi.runtime.agent.execution.AbstractSessionTask.execute(AbstractSessionTask.java:864)

    to oracle.odi.runtime.agent.execution.SessionExecutor$ SerialTrain.runTasks (SessionExecutor.java:2024)

    at oracle.odi.runtime.agent.execution.SessionExecutor.executeSession(SessionExecutor.java:562)

    to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:718)

    to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:611)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:203)

    at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor.doProcessStartAgentTask(TaskExecutorAgentRequestProcessor.java:800)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 1400 (StartSessRequestProcessor.java:74)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:702)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:180)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:108)

    to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:471)

    at oracle.odi.runtime.agent.execution.job.OdiJob.call(OdiJob.java:73)

    at oracle.odi.runtime.agent.execution.job.OdiJob.call(OdiJob.java:73)

    at java.util.concurrent.FutureTask.run(FutureTask.java:262)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:724)

    Navigate to the ODI object with the name error_log_procedure , which I assume is an ODI procedure. On the target tab (and if this source) make sure that you have specified a logical schema in the appropriate drop-down box

  • 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

  • Understand the hidden on Oracle APEX page and form variables

    Hi all

    I got to know < form > < / form > apex when Paul said my glitch here:

    {message: id = 10072264}

    Now when I checked out one of the forms on the page of the APEX, I was following markup:
    <form id="wwvFlowForm" name="wwv_flow" method="post" action="wwv_flow.accept">
    <input id="pFlowId" type="hidden" value="122" name="p_flow_id">
    <input id="pFlowStepId" type="hidden" value="42" name="p_flow_step_id">
    <input id="pInstance" type="hidden" value="643064511551379" name="p_instance">
    <input id="pPageSubmissionId" type="hidden" value="3482959593030363" name="p_page_submission_id">
    <input id="pRequest" type="hidden" value="" name="p_request">
    Now, these things hidden?
    < ul >
    pFlowId < li > < /li >
    pFlowStepId < li > < /li >
    pInstance < li > < /li >
    pPageSubmissionId < li > < /li >
    pRequest < li > < /li >
    < /ul >

    On digging the question, I found four of them:
    < ul >
    < li > pFlowId: identifies the ID of the currently running application. Substitution of PL/SQL string - APP_ID (used as *: APP_PAGE_ID, NV('APP_PAGE_ID'), & APP_PAGE_ID.*) < /li >
    < li > pFlowStepId: identifies the ID of the currently running application page. Substitution of PL/SQL string - APP_PAGE_ID < /li >
    < li > pInstance: identifies the session ID for the user of the application running. Substitution of PL/SQL string - APP_SESSION < /li >
    < li > pRequest: identifies the query passed to the page of the currently running application. Substitution of PL/SQL string - REQUEST < /li >
    < /ul >
    Now my questions are:
    < ul >
    < li > what is pPageSubmissionId ? Is there any alternative of PL/SQL string for her? This is one of them:
    http://docs.Oracle.com/CD/E23903_01/doc/ doc.41 /e21674/concept_sub.htm#BEIIBAJD
    < /li >
    < li > I inspected an other forms and find the same code snippet:
    <form id="wwvFlowForm" name="wwv_flow" method="post" action="wwv_flow.accept">
    What is the wwv_flow.accept in the form action attribute? (I guess the procedure submission form) How does it work?
    < /li >
    can < li > I change the attributes id, name and method of form element? For example we have method get or a different form name or id? < /li >
    < /ul >

    Kind regards
    Kiran

    Kiran says:

    What is pPageSubmissionId ?

    See + {: identifier of the thread = 720469} +.

    Is there any alternative of PL/SQL string for her? This is one of them:
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/concept_sub.htm#BEIIBAJD

    N °

    I inspected an other forms and find the same code snippet:

    What is the wwv_flow.accept in the form action attribute? (I guess the procedure submission form)

    Guess correct. It is the process of wwv_flow.accept in the package of the diagram of the APEX_xxxxxx wwv_flow , which is commented "+ this procedure accepts virtually every page flow +".

    How does it work?

    See apex_xxxxxx.wwv_flow to Developer SQL package specification (or whatever IDE you use). Notice how the first parameters of the procedure to accept corresponding to the attributes name HTML elements entry that you have identified? Others include some that match the name of the page elements attributes (name = "p_t01" etc. - There are 100 of those: the source of the page/article in the APEX 100 limit) and 50 f01-f50 parameters in a table /apex_item- generated controls.

    Overly simplified: the browser - HTML and HTTP - specification generates an HTTP request for the form that includes all the names of form controls and the values; It is passed to the web server, which recognizes the URL and its configuration which demand must be managed by the apex_xxxxxx.wwv_flow.accept procedure and call it, match the settings in the HTTP request with those of the package procedure.

    Running an application in a browser that includes development tools that allow you to inspect HTTP requests (I use the network view in Safari Web Inspector). After sending a page, display the generated queries and you will be able to see the form data in the request payload.

    Can we change the attributes id, name and method of form element? For example we have method get or a different form name or id?

    Not in such a way that you would still use APEX.

    Essentially, this is why you use APEX: he manages all aspects of low level, leaving to focus you on the real needs of your applications.

  • 403 Forbidden error of execution of the procedures of the URL of the browser stored

    I am currently trying to run a simple stored procedure (ea.hello_world, where "ea" is the pattern and "hello_world" is the name of the procedure) a URL from the browser, but am getting a 403 Forbidden - error message "you don't have permission to access /pls/apex/ea.hello_world on this server. I use APEX 3.2 with Oracle 11 g and mod_plsql and gave the steps of apex_public_user. Any thoughts on what I am doing wrong?

    Here is the process I have used so far:

    Create the "Hello_World" procedure in the "EA: schema

    create or replace
    procedure hello_world
    is
    Start
    HTP. Print ("'Hello World!");
    end;

    I then successfully granted to run the apex_public_user procedure:

    Grant execute on ea.hello_world to apex_public_user;

    Then, I tried to call the stored procedure from the browser using the following syntax:

    http:// < Server >: < port > / pls/apex/< schema >. < Procedure & gt;

    I also experimented with the use of a public synonym and the configuration of the wwv_flow_epg_include_mod_local, but I do not think that the function s relevant since I'm using mod_plsql and not the embedded pl/sql gateway.

    Hello

    If you have below the line in dads.conf, then wwv_flow_epg_include_mod_local sets

    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    

    Try:
    Create public synonym

    CREATE PUBLIC SYNONYM hello_world FOR ea.hello_world;
    

    Grant privilege to execute procedure to the public

    GRANT execute on hello_world to public;
    

    Then change the APEX_030200.wwv_flow_epg_include_mod_local function

    CREATE OR REPLACE FUNCTION
    APEX_030200.wwv_flow_epg_include_mod_local(
        PROCEDURE_NAME IN VARCHAR2)
    RETURN BOOLEAN
    IS
    BEGIN  
    
        IF UPPER(procedure_name) IN (
              UPPER('hello_world'))
       THEN
            RETURN TRUE;
        ELSE
            RETURN FALSE;
        END IF;
    END;
    /
    

    Then try
    http://:/pls/apex/hello_world

    If you can now run your procedure in URL, you can then low and e.g. grant execute procedure to the user of DAD.

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

    Published by: jarola on December 6, 2011 16:20

    Published by: jarola on December 6, 2011 16:24

    typo in the name of the function

  • Problem of ScrollBar in the sidebar region Oracle Apex

    Hi all

    I'm developing an application using Oracle Apex 4.2.5.

    Application properties:

    Themes request theme 26 productivity =

    Model = a level with left sidebar tab

    I created menu Tree in the sidebar left.

    I used the code below in the region attribute

    STYLE = "overflow-x: scroll;" overflow - y: scroll; height: 500px; "width: 220px".


    If I develop the tree node overflow - y: scroll works fine, but overflow-x: scrolling does not work.

    My problem is overflow-x: scrolling does not work.

    How to solve this problem?

    Thank you

    Su.GI

    She's.

    I have power to change anything else. You can include height too, if you need, however, is fine.

    (Please check the answer correct or useful, if you think that it helped you)

    Thank you

    Sunil Bhatia

  • Alignment of the table in Oracle Apex

    Hi all

    I use Oracle Apex 4.2.5 for application development. I used 26 theme.

    In my page I used the Template of the Page as a level with the sidebar tab left. Graphic design and report on this Page.

    I created a button to hide / show the sidebar.

    When I hide the sidebar, then more space white bar inside the graph. (chart appear somewhere not in the Center)

    My requirement is necessary reduce the white space (or center the graph) when the sidebar is leather.

    Here is my sample application to apex.oracle.com.

    Application name: chart

    Application ID: 36667

    Sugi_demo = workspace

    Username = my_demo

    password = my_demo

    Thank you

    Su.GI

    Hi Su.gi,

    Please check the application now.

    I removed the width fixed 530px and centered on the chart.

    I have used Inline CSS in the page attributes:

    object {
      margin: 0 auto !important;
    }
    

    I hope this helps!

    Kind regards

    Kiran

  • How to find the last time that the execution of the procedure and by whom?

    Hi all

    Can be found as the last run and the procedure by which the user in the dictionary of data or something else?

    Thanks in advance.

    At least that audit you, you can probably not.

    If the goal is a particular stored procedure, you can maintain a work table so he can follow the execution time, audit owner etc.

    Concerning

    Biju

  • How to color line specific "BOLD" / inactive in the classic report (oracle apex).

    I have the classic report in oracle apex

    with query below

    Select EMPNO, ENAME, HIREDATE, ADDRESS of emp COMM;

    If the ENAME = "John".

    so, I want to do any "BOLD" line and readonly/inactive. (set of rank who name John)

    Thanks in advance...

    Simple answer: see this blog: reports APEX: color line based on column value

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • why there is no output after execution of the procedure

    Hi all

    SQL > set serveroutput size 1000000

    SQL > set echo on

    SQL > set comments on

    SQL > declare

    2 number (19) n;

    3 v_startday varchar2 (100): = ' 01 /' 07/2013;

    4 v_owner varchar2 (100): = "SLIMSINTDM";

    5 v_audit_tab audit_var: = audit_var();

    v_table_name 6 varchar2 (40);

    7 type cur_type is ref cursor;

    8 v_cur cur_type.

    v_first_name 9 varchar2 (100);

    v_last_name 10-varchar2 (100);

    11 v_out_tab varchar2 (100);

    v_lab_code 12 varchar2 (10);

    13 v_sql varchar2 (20000);

    14 v_sql_1 varchar2 (10000): = q']

    15 select distinct au.first_name, au.last_name,.

    16: v_table_name table_name, lab_code

    Lab 17 l

    18 join aus app_user_security on AUS.owning_lab_id = l.lab_id

    19 join app_user AU AU. APP_USER_ID = AUS. Join APP_USER]';

    20 v_sql_2 varchar2 (10000): = q'[t on (t.ADDED_BY = to THE.)] APP_USER_ID

    21 or t.last_modified_by = au.app_user_id)

    22 where lab_locale = 'en_AU '.

    23 and (t.added_date > to_date (: v_startday, "MM/DD/YYYY"))

    24 or t.last_modified_date > to_date (: v_startday, "MM/DD/YYYY"))

    25 order by last_name, first_name

    26     ]';

    start 27

    28 n: = 0;

    29 because me to (select table_name from all_tables where owner = v_owner order of table_name)

    loop 30

    31 v_table_name: = substr (i.table_name, 1, instr (i.table_name, '_JN') - 1);

    32 - dbms_output.put_line ('v_table_name: ' | v_table_name |'; i.table_name: ' | i.table_name);

    33 v_sql: = v_sql_1 | i.table_name | v_sql_2;

    34 - dbms_output.put_line (v_sql);

    start at 35

    36 open v_cur for v_sql using v_table_name, v_startday, v_startday;

    37 loop

    38 extract v_cur in v_first_name, v_last_name, v_out_tab, v_lab_code;

    39 exit when v_cur % NOTFOUND;

    40               n := n + 1;

    41 v_audit_tab.extend;

    42 v_audit_tab (n): = audit_type (v_first_name, v_last_name, v_out_tab, v_lab_code);

    43 end loop;

    44 close v_cur;

    45 emergency

    46 then than others then

    then 47 cases sqlcode = - 1030 - insufficient privileges

    48 dbms_output.put_line (' no privs to ' |) THE USER | "on" | i.table_name);

    49 exit;

    50 end if;

    51 end;

    52 end loop;

    53 x in (select * from table (v_audit_tab))

    loop 54

    55 dbms_output.put_line (x.first_name |) «, » || x.last_name | ',' | x.table_name | ',' | x.lab_code);

    loop end 56;

    end 57;

    58.

    PL/SQL procedure successfully completed.

    Issue in this case, developer you can't find any (results) output as expected after the execution of this procedure, so is there something wrong?

    Thank you very much.

    When you try this below is query it returns all the lines?

    Select table_name

    from all_tables

    where owner = "SLIMSINTDM."

    order of table_name;

  • Problems with the date in the procedure on Oracle 11 g

    Hi gurus,

    I have some problems with the date under Oracle 11 g format.

    Let me explain the situation:

    When I start such a request
    Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    of sys.dual

    I had as a result 2009 under the number.

    When I do the same thing in a procedure of a package like this

    my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));

    the my_year variable contains the value 9 instead of 2009.

    Can someone explain to me what goes wrong?

    I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.

    Kind regards
    Björn

    Yes, it has everything to do with your environment settings.

    SQL> set serveroutput on;
    SQL>
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01-MAR-98
    
    PL/SQL procedure successfully completed.
    
    SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss'
      2  /
    
    Session altered.
    
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01.03.1998 07:00:00
    
    PL/SQL procedure successfully completed.
    
  • Execution of the procedure-

    Hello

    Could you tell me how to run a procedure that lies under different scheme serve in a schema to another without mentioning the name of schema before the procedure every time?


    Below is the code in the right way, say, if there are two schemas, test1 and test2 and I want the procedure in Test2 will run under the Test1 schema?

    Connect to test2 schema and grant permission to run for test1
    grant exec on test2.prc to test1; 

    create a public synonym for procedure... with execute privilege...

    so that you can use wth on the schema name.

  • simultaneous execution of the procedures

    I have a requrement in which I want to call different instances of a procedure of passing different parameter values at the same time. I am currently selecting data in a slider and make the entire process one by one. But this approach is time consuming. The only other way I know to fix the problem is to store the cursor data into a java array and then call the procedure for each value of the slider by Threading.

    The scenario is something like this:

    Create procedure prc_process
    is
    Start
    I'm in (departmentid selection of departments)
    loop
    ...
    some complexes of treatment which includes DML operations in the employee table, based on the departmentid
    ...
    end loop;
    end;

    Now, the employees table contains something around 20 million data.

    I want to have a such scenario for all departments in the departments table, I can call the procedure in this way:

    Create procedure prc_process (deptid number)
    is
    Start
    ...
    some complexes of treatment which includes DML operations in the employee table, based on the departmentid entry
    ...
    end;

    Personally, I'm not going to do such thing. I'd like to try to bring the list of departments in the basic procedure and try to do it in one fell swoop. Don't not passing one by one.

    But if this is not feasible and that you want to run the procedure for each service separately then Yes, submitting to a job is a way to allow a run in parallel.

  • deletion line causes the error after clicking on the button Delete: oracle Apex 5.0

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Hi Dominique,.

    Pranav.Shah wrote:

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Change your display-only item and do save the State of session No.

    or create the sample on apex.oracle.com and share credentials with us.

    Kind regards

    Jitendra

Maybe you are looking for

  • Insert HTML

    What happened to the feature which allowed insert HTML in the body of the message and who thought it was a good idea to remove it? More importantly, now that it is gone... How do I?

  • Satellite U940 - 12 c: Windows 8 license code?

    Hello. I own a Toshiba Satellite U940 - 12 c. Due to a sequence of horrific circumstances, I'm done with a laptop without Windows 8 and without access to the recovery partition. If there is no idea of how to make to access these data recovery, please

  • Printer spooler does not work. Printer registry file corrupted

    My printer HP Deskjet F2430 does not work. The print spooler is not running. I can't stop and restart services. The registry file is damaged. No printer is displayed in the printers and faxes Control Panel site. How can I clean up the corrupt registr

  • Group Smart talk offline

    Hi all! I want to know if I can use me y SBT when I havn't my smartphone? Sorry for the bad English. In french: Hello world!Let me explain my problem:After days of research pour find a bracelet that is connected...I found the one don't I have needs,

  • Lightroom has disappeared from my pc, and when I reinstalled (now in cc) my serial number is not accepted!

    Bought lightroom in November 2013, for download on adobe.com. Suddenly lightroom disappears from my computer so I the re-download, but I see that adobe has changed the way it works, so I have to install creative cloud. Because some creative clouds of