How to call stored procedures in the OPS
Hi allI n PageUser enter the date and the code, I need to pass those 2 values to my back-end procedure
name of procedure xxx_opp_rnv (id varchar2, varchar2 valid);
I am writing this callable statement in am
' public void xxcrm_qtn_revison (String opid, String qtnvalidate) {}
System.out.println ("values" + opid + "" + qtnvalidate);
String x = "to_date ('" + qtnvalidate + "',' HH24:MI:SS MON-DD-YYYY')"; "
System.out.println ("The value of x is..." + x);
try {}
System.out.println ("' with in the callable statement" ");
CallableStatement cs is this.getOADBTransaction ().
getJdbcConnection () .prepareCall ("{call xxcrm_revison_qtn(?,?)}");
cs.setString(1,opid);
cs.setString(2,x);
DSI Execute();
DSI Close();
}
catch (SQLException e) {}
System.out.println ("exception is" + e);
}
}
the procedure is not executed
in my creation valid page is that the datatype element is of type dateTime
I need to pass the id as a string, and valid as Datetime data types to my callable statement
How is - this posible
Concerning
Anthony
Hello
Use this code... pass the qtnvalidate as it is...
donot use String x = "to_date ('" qtnvalidate "", "DD-MON-YYYY HH24:MI:SS'" ")"; "
' public void xxcrm_qtn_revison (String opid, String qtnvalidate)
{
try {}
System.out.println ("' with in the callable statement" ");
CallableStatement cs is this.getOADBTransaction ().
getJdbcConnection () .prepareCall ("{call xxcrm_revison_qtn(?,?)}");
cs.setString(1,opid);
cs.setString(2,qtnvalidate);
DSI Execute();
DSI Close();
}
catch (SQLException e) {}
System.out.println ("exception is" + e);
}
}
Now, in the procedure, you can convert the string to a date time
name of procedure xxx_opp_rnv (id varchar2, varchar2 valid);
validdate: = to_date (valid, "HH24:MI:SS MON-DD-YYYY)";
OPID: = to_number (id);
Try first to print in jdeveloper, what is the format of date time and therefore change the format
Thank you
Gerard
Published by: Gauravv on September 10, 2009 04:16
Tags: Oracle Applications
Similar Questions
-
Call stored procedures in the object module and application of entity
Hello
I've implemented a helper methods that contains the EntiyImpl base class to call stored procedures.
Now, I need to call procedures stored from the module of the application.
Apart from the creation of a module base class asks and the programme of assistance of duplication of code in the method is possible
to share methods of assistance for calling stored procedures between the entity impl and application module impl?
Concerning
PaulSupport code depends on characteristics of an object instance given entity beyond its database transaction?
If so, I'm not sure I see how it could be used with a class of application module.
Otherwise, here's what you do:
Step 1:
Set up the database transaction - you can even choose to. So instead of
{myHelperMethod (Object someParam) protected
DBTransaction trans = getDBTransaction();
...
}This is for change
protected myHelperMethod (DBTransaction trans, someParam Object) {}
...
}Step 2: make the method public and static - once you set DBTransaction, you should be able to do.
public static myHelperMethod (DBTransaction trans, someParam Object) {}
...
}Step 3: Remove your EntityImpl base class method in a utility class:
Public MustInherit class PlSqlUtils {}
private PlSqlUtils() {}public static myHelperMethod (DBTransaction trans, someParam Object) {}
...
}
}When you call the method of application module, object entity or class of same view object, call
PlSqlUtils.myHelperMethod (getDBTransaction (), paramValue);
Unlike Transaction.executeCommand (), allows you to provide features like the setting procedure of parameter values, recovery of the values of the parameters, etc.
Hope this helps,
Avrom -
Call stored procedure in the URL
Hi all
How to call a stored procedure 4 Apex in the URL. The error is less.
The requested URL/apex/EXAMPLE. TESTPROCEDURE was not found on this server.
Thank you.802263 wrote:
Hi allHow to call a stored procedure 4 Apex in the URL. The error is less.
The requested URL/apex/EXAMPLE. TESTPROCEDURE was not found on this server.
Thank you.
Should work on the assumption that:
1. the scheme of analysis can 'see' the object such as defined by synonyms, etc.
2. the schema of analysis has execute privs on the object. -
How 2 call a procedure with the data type for the parameter Ftree.NODE
Hello
in this link
http://Andreas.Weiden.ORCL.over-blog.de/article-29307730.html
Down in the page after you run the package, I created the procedure and it compiled successfully but when call PR_WTNS in trigger WHEN-TREE-NŒUD-SELECTED
PROCEDURE PR_WTNE (i_ndNode IN Ftree.NODE);
as
PR_WTNE (i_ndNode Ftree.NODE);
I got the error message; A wrong number or types of argument in the call
pls I'm stuck can help any one?
Kind regards
Abdetu...
Published by: Abdetu on October 24, 2010 02:36
Published by: Abdetu on October 24, 2010 02:36YKou have to give a variable of type Ftree.NODE when calling this function. If called fromm a WHEN-TREE-NODE-SELECTED-trigger, use: SYSTEM. TRIGGER_NODE
-
Calling stored procedure with an input of DATE parameter
Hello. A question about the Date input parameters when you call a stored procedure.
I have a procedure that takes a DATE as input parameter. I would DATE this value to include a time element.
My Application Module method takes an input as a java.util.Date (myParamDate) parameter - that will preserve a time element (?).
However when I create the CallableStatement, I am trying to set the parameter using setDate like this (for the param 5):
I understand java.sql.Date does NOT include a time element. But setDate() only accepts a java.sql.Date so my parameter of the procedure ends with a zero time element.st = getDBTransaction().createCallableStatement("begin cs_my_pck.request_values(?,?,?,?,?,?,?,?); end;", 0); Connection myConn = st.getConnection(); ArrayDescriptor myArrDesc = ArrayDescriptor.createDescriptor("CS_FIELD_TABT", myConn); Array sqlParamNameArray = new oracle.sql.ARRAY(myArrDesc, myConn, paramNames.toArray()); Array sqlParamValueArray = new oracle.sql.ARRAY(myArrDesc, myConn, paramValues.toArray()); Array sqlFilterNameArray = new oracle.sql.ARRAY(myArrDesc,myConn,filterNames.toArray()); st.setString(1, repType); st.setObject(2, sqlParamNameArray); st.setObject(3,sqlParamValueArray); st.setObject(4,sqlFilterNameArray); java.sql.Date myRepDate = new java.sql.Date(myParamDate.getTime()); st.setDate(5,myRepDate); System.out.println("Report Date = " + myRepDate.toString()); st.setString(6,repUser); st.setString(7,repAttach); // set out param st.registerOutParameter(8, Types.NUMERIC); st.execute();
How to call this procedure keeping the time element?
Thank you.It includes the time element, if you want more precision with time stamp.
http://docs.Oracle.com/javase/6/docs/API/Java/SQL/date.html
-
The call PLSQL stored procedure from the HTML form Submit button
Hello
I'm having a little difficulty with the appellant a stored procedure using a html form button. Here is the code I have right now...
Here's the question - I need to find a way to pass variables to this stored procedure, so he knows what data to operate on. This stored procedure removes the data in a specific database record and I have to pass three variables to this procedure to run.HTP.PRINT('<form action=ZWGKERCF.P_confdelete>'); HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>'); HTP.PRINT('</form></div>');
Allows to call class_number, term, conf will impact these three variables and the data will be deleted and the person will see a confirmation screen once the deletion request completed.
So ideally I would want: ZWGKERCF. P_confdelete (class_number, term, conf), then the stored procedure would deal with the rest!
Seems simple enough, but I don't know how to make this happen... My thoughts were:
Transmit data to this (the three areas that I need) html form in hidden variables. Then somehow pass them using the POST method to the procedure and read using GET?
Can someone clarify what the best way to do it? I feel that its little something miss me you - but I would really like an idea expertise :-)
Thank you very much in advance!
-Jeff>
...I would like to assign a variable, the duration, the conf crn all variables in this procedure and then act on them accordingly.
But you already have it in a variable. If you want you can assign the value again to another variable.
example of
PROCEDURE P_confdelete(CRN NUMBER,TERM NUMBER, CONF VARCHAR2) IS v_crn number(38); v_term number(38); v_conf varchar2(1000); BEGIN HTP.PRINT('test1 '||crn||'/'||term||'/'||conf); v_crn := crn; v_term := term; v_conf := conf; HTP.PRINT('test2 '||v_crn||'/'||v_term||'/'||v_conf); END P_confdelete;
-
How do we call stored procedure in owb?
Hello
I have 20 mapping and I stored that I need to call after 20 mapping completed successfully.
I want to run my stored as 21st mapping procedure. I should not call my stored procedure in the 20th mapping as the mapping process.
How to achieve this?
What I did was, I created another dummy mapping and just create simple mapping (copy couple of records from a fictitious table to another table. dummy so I called the post, process mapping procedure. Is there another way, we can achieve this task?
In informatica, we have retained the transformation of the procedure. Is there something equivalent in OWB?
Any help is appreciated!Two options, you can: -.
1. create in OWB.
Under Oracle-> your name of the Module-> Transformation
-> Function
-> Procedure
-> Package
2. right click-> new (it will sail with series of screen)2 2 creer create database, and then import into OWB.
Once you have created and then form be it you can drag directly and drp then to the workflow process as done with mapping.
See you soon
KatiaPublished by: Nawneet_Aswal on July 19, 2010 01:53
-
Calling stored procedure - re-edited NullPointerException
Hi all
I am re-editing that my first attempt was quite low.
I want to create a Java application that communicates with an Oracle XE database edition to:
Class.forName ("oracle.jdbc.driver.OracleDriver");
JOptionPane.showMessageDialog (null, "Driver loaded");
Connection con = DriverManager.getConnection ("jdbc:oracle:thin:@//localhost:1521/xe", "SYSTEM", "root");
JOptionPane.showMessageDialog (null, "database connected");
This all works fine and I can perform queries and transactional instructions within the instance of java.
However, I can't call stored procedures that I will receive a null pointer exception. The stored procedure, I try to call returns values however I know it works as I can run it in SQL Developer. The code below is the statement that calls the stored procedure, alll the sources I looked at it's correct, I also tried, cs.executeUpdate and Resultset rs when you try to call the java statement.
public void thread_actionsperformed (ActionEvent c) //generates son
{
Try
{
CallableStatement cs = con.prepareCall ("{call PROCEDURE2}"); Calls a stored procedure that would generate threaded emails
CS. Execute();
JOptionPane.showMessageDialog (null, "Algorithm Threading successfully Executed");
}
catch (SQLException ex)
{
ex.printStackTrace ();
JOptionPane.showMessageDialog (null, "Threading algorithm Executed without success"); Error response
}
catch (NullPointerException ex)
{
ex.printStackTrace ();
JOptionPane.showMessageDialog (null, "Threading algorithm Executed without success"); Error response
}
}
The Java application cannot 'see' the sp? Or is it something to do with privileges? I was puzzled by this during some time now, any help would be greatly appreciated.
java.lang.NullPointerException
at ETA_Final.thread_actionPerformed (ETA_Final.java:332)
to ETA_Final$ 5.actionPerformed(ETA_Final.java:141)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
in javax.swing.plaf.basic.BasicMenuItemUI$ Handler.mouseReleased (BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Thank you and best regards,
K
Published by: Outbound86 on April 28, 2010 13:58Hi Kev,
I expected this - so is it possible that your dumb object is null when you are in the ActionListener who manages the procedures?
How will you spend until you use it (line 332), are you using Threads?Thnaks,
Ivaylo -
Hi friends I want to know how to call a procedure that has values arrary as parameter?
I have a procedure as shown below, and I am using oracle 11g.
create or replace procedure procedureName (v_hospital_id in NUMBER,
v_process_id VARR_VARRY,
v_cnt OUT NUMBER);
Now, how to call this procedure from PLSQL. If v_process_id values ('abc123', 'xyz234', 'sfs234')
Please present the definition of VARR_VARRY
If it's a simple table of varchar2.
declare
v_cnt NUMBER;
Start
procedureName (1, VARR_VARRY('abc123','xyz234','sfs234'), v_cnt);
end;
-
NullPointerException when calling stored procedure
I have the stored procedure
create or replace PROCEDURE GREETING_PROC
(
TEXT_PARAM IN VARCHAR2
MSG_TEXT VARCHAR2 OUT
) AS
BEGIN
MSG_TEXT: = "Hello" | TEXT_PARAM;
END;
My stored procedure call method
public class UserBean {}
public UserBean() {}
Super();
}
Public Shared Sub main (String [] args) {}
UserBean userBean = new UserBean();
userBean.callP ();
userBean.callStoreProcedure ();
}
public void callStoreProcedure() {}
CallableStatement st = null;
SysUser SysUserEOImpl = new SysUserEOImpl();
try {}
String sql = "BEGIN GREETING_PROC (: TEXT_PARAM,: MSG_TEXT); END; « ;
St = sysUser.getDBTransaction () .createCallableStatement (sql, sysUser.getDBTransaction (). DEFAULT VALUE);
st.setObject ("TEXT_PARAM", "Scoot");
st.registerOutParameter ("MSG_TEXT", Types.VARCHAR);
St.Execute ();
System.out.println ((String) St.GetObject ("MSG_TEXT"));
} catch (SQLException e) {}
throw new Aexception.getLocalizedMessage (e);
}
}
then I got an exception:
Exception in thread "main" java.lang.NullPointerException
at cic.opsi.model.bean.UserBean.callStoreProcedure(UserBean.java:35)
at cic.opsi.model.bean.UserBean.main(UserBean.java:27)
Hello
What statemet is UserBean.java:35)?
Second, create a new SysUserEOImpl()!
If you want to call stored proc, put the java code calling stored proc in ViewRowImpl/ViewObjectImpl/ApplicationModuleImpl and export this code in the customer interface. Then put this method in the pageDef as
a call him as an OperationBinding Zeeshan Baig blog: the PL/SQL procedure call and function in the Oracle ADF application
Extending the functionality of the components Business
ADF/OFA for Oracle Techies: ADF call stored procedure with Out parameters
Latest Oracle technology: call Store procedures for Oracle ADF Application
-
Export list of all the stored procedures in the database settings.
Hello
How to export the settings all stored procedures in the database list(IN / OUT).
Thank you
Published by: Shema on August 8, 2012 06:28select * from ALL_ARGUMENTS;
-
Error on the definition of the stored procedure in the simultaneous program
Hello
I created a stored procedure and wanted it attached to the concurrent program. The purpose of this stored procedure when you run it in simultaneous program, the system retrieves the data from the csv file downloaded from the server, then it will insert in the tables of SO / the Interface API. Below, the error occurred.
* Starts * 18 April 2012 18:18:42
Error ORACLE 6550 in FDPSTP
Cause: FDPSTP failed due to the ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in the call to 'SPKO1 '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Steps I did to set the stored proc
< < simultaneous executable program > >
Executable: RDRAGON_SO_IMPORT
Short name: RDRAGON_SO_IMPORT
Application: Order management
Method of execution: PL/SQL, stored procedure
Run file name: SPKO1
< < concurrent program - set > >
Program: RDRAGON SO IMPORT
Short name: RDRAGON_SO_IMPORT
Application: Order management
Name of executable: RDRAGON_SO_IMPORT
Method: PL/SQL, stored procedure
Format: text
No set
-Here are my stored procedure-
CREATE OR REPLACE PROCEDURE APPS. SPKO1 IS
FH UTL_FILE. TYPE_DE_FICHIER;
v_line VARCHAR2 (32767).
v_source_id NUMBER (10);
v_created_by NUMBER (10);
v_creation_date DATE;
v_org_id NUMBER (10);
v_orig_sys_docref VARCHAR2 (50);
V_Customer VARCHAR2 (360);
v_customer_prev VARCHAR2 (360);
v_sold_to_org NUMBER (10);
v_orig_line_ref NUMBER (10);
v_item_code VARCHAR2 (2000);
v_ordered_qty NUMBER (10);
v_selling_price NUMBER (10);
v_count NUMBER (10);
v_stat NUMBER;
/******************************************************************************
NAME: SPKO
PURPOSE:
REVISIONS:
Worm Date Description of the author
--------- ---------- --------------- ------------------------------------
1.0 16/04/2012 administrator 1. Created this procedure.
NOTES:
Keywords to replace automatically available Auto:
Object name: SPKO
SYSDATE: 16/04/2012
Date and time: 16/04/2012, 17:55:42 and 16/04/2012 17:55:42
Username: admin (set in Options of TOAD, editor of the procedure)
Name of the table: (defined in the dialog box "New PL/SQL object")
******************************************************************************/
BEGIN
v_source_id: = 6;
v_created_by: = - 1;
v_org_id: = 204;
v_customer_prev: = null;
v_orig_line_ref: = 0;
v_stat: = 0;
SELECT header_id in (DE) v_orig_sys_docref
Select header_id
of OE_ORDER_HEADERS_ALL
creation_date desc order
) WHERE ROWNUM = 1;
FH: = UTL_FILE. FOPEN ('XXANDDIR2', 'myfile1.csv', 'R', 32767);
< < file_read_lines > >
LOOP
BEGIN
UTL_FILE. GET_LINE (fh, v_line);
V_Customer: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 1") ',' "') ','" ');
v_creation_date: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 2") ',' "') ','" ');
v_item_code: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 3") ',' "') ','" ');
v_ordered_qty: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 4") ',' "') ','" ');
v_selling_price: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 5") ',' "') ','" ');
v_orig_line_ref: = (v_orig_line_ref + 1);
If v_stat = 0 then
v_orig_sys_docref: = (v_orig_sys_docref + 1);
end if;
SELECT hca.cust_account_id from v_sold_to_org
OF hz_cust_accounts AOB.
HP hz_parties
WHERE hca.party_id = hp.party_id
AND hca.request_id is null
AND hp.party_name = v_customer;
If v_stat = 0 then
INSERT INTO OE_HEADERS_IFACE_ALL)
order_source_id,
orig_sys_document_ref,
org_id,
CREATION_DATE,
created_by,
last_update_date,
last_updated_by,
operation_code,
sold_to_org_id,
booked_flag)
VALUES)
v_source_id,
('TEST' | v_orig_sys_docref).
v_org_id,
v_creation_date,
v_created_by,
v_creation_date,
v_created_by,
"INSERT."
v_sold_to_org,
'Y') ;
commit;
end if;
INSERT INTO OE_LINES_IFACE_ALL)
order_source_id,
orig_sys_document_ref,
orig_sys_line_ref,
inventory_item,
org_id,
ordered_quantity,
unit_selling_price,
unit_list_price,
CREATION_DATE,
created_by,
last_update_date,
last_updated_by,
operation_code)
VALUES)
v_source_id,
('TEST' | v_orig_sys_docref).
v_orig_line_ref,
v_item_code,
v_org_id,
v_ordered_qty,
v_selling_price,
v_selling_price,
v_creation_date,
v_created_by,
v_creation_date,
v_created_by,
"INSERT");
commit;
v_customer_prev: = v_customer;
If v_customer_prev = v_customer then
v_stat: = 1;
on the other
v_stat: = 0;
end if;
-DBMS_OUTPUT. Put_line ('Col1: ' | v_source_id |', Col2: ' | v_creation_date |', Col3: ' | v_created_by |', Col4: ' | v_updated_date |', Col5: ' | v_updated_by);
EXCEPTION
WHEN NO_DATA_FOUND THEN
OUTPUT file_read_lines;
END;
END LOOP;
SELECT count (*) in the OE_HEADERS_IFACE_ALL v_count;
DBMS_OUTPUT. Put_line (' record Total inserted successfully: ' | v_count);
UTL_FILE. FCLOSE (FH);
END SPKO1;
/
But when I run the stored procedure using TOAD his work.
Help, please. This is my first time to attach the stored procedure in the concurrent program.
Thank you very much.
Kind regards
Diane
Published by: peopsquik08 on April 18, 2012 03:58as clive_t solier
>
You must explicitly reference the settings out
>Try
DECLARE VFILE VARCHAR2(32767); V_SOURCE_ID NUMBER; -- ERRBUF VARCHAR2(200); RETCODE NUMBER; BEGIN VFILE := 'myfile1.csv'; V_SOURCE_ID := 6; --APPS.OMORDERLOADER.SPKO1 ( VFILE, V_SOURCE_ID ); --COMMIT; APPS.OMORDERLOADER.SPKO1( ERRBUF => ERRBUF, RETCODE => RETCODE, VFILE => VFILE, V_SOURCE_ID => V_SOURCE_ID ); END;
but the code above to test your proc
to run concurrent SQL, you can use fnd_submit.submit_program
-
Call stored procedures and using its output parameters in a report
Hello
I have a procedure defined in a package on the database. This procedure returns a number of output parameters. How to call this procedure and use the output parameters in my report?
Thank you, MarkDepends on the level at which the procedure should be called. If its at the State level, call the form in the trigger-REPORT-BEFORE (or AFTER-PARAMFORM) and store the off-values space reserved columns. These you can use anywhere in your report.
-
Error in retrieving the stored procedure of the DB JDev adapter
Hello
I am facing a problem when configuring Jdeveloper stored procedures using the DB adapter. I use in my Sql Server 2005 database, version Jdeveloper 10.1.3.3 Version 10.1.3.1.Bpel. Connection to the database SQL Server 2005 is good, but it only displays the views and tables. I get the following error message when I try to add the sql stored procedure call
"An error occurred while getting the database schemas. Make sure the database connection is valid and is supported"
Can someone help me please.
Thank you
Phani
Published by: Brad on October 28, 2008 11:30Post your email and I'll send you a complete tutorial of SQL Server.
-
calling a procedure in the loop
I just want to know one thing:
I call a procedure with the following parameters
DECLARE
PROFIT_CENTER NUMBER ;
START
PROFIT_CENTER : = 1109--(de même, je fais tourner le proc pour 5 profit_centers plus 1123,1132,1122,3211,1111 un par un en passant les valeurs manuellement, il prend près d'une minute pour chaque centre de profit)
Prc_test_calc () PROFIT_CENTER);
COMMIT;
END;
For each proc profit_center takes 1 minute (approx.) time.
But when I'm putting loop to call the procedure for each profit_center, I don't know why it takes too long for each profit_center
Please let me know is there something wrong with the loop below
DECLARE
PROFIT_CENTER NUMBER ;
cursor c_profit is
Select separate PROFIT_CENTER de plng_pc où profit_center in ()1109 1123,1132,1122,3211,1111)-Plng_pc is a table where profit_center information is obtain from
START
For pc_rec in c_profit
loop
Prc_test_calc ( pc_rec . PROFIT_CENTER );
COMMIT;
End loop;
END;
Could you please sugget me if something goes wrong?
Hello
as suggested, have you checked the query for the cursor loop and have you tried the process with no cursor loop.
Concerning
André
Maybe you are looking for
-
LaserJet Pro 400 M401dw: Laserjet Pro 400 M401dw streaks to the bottom right of the page
My printer is printing with a scratch on the right side of the page. I Googled, and found that it was the transfer roller, so I took it, cleaned it - did not help. So I ordered a new, installed - I think that it made it worse. And every day since
-
Satellite A100 Ethernet Controller driver
I can't find the driver for ethernet controller and the PCI device in the list. I tried the driver (Intel Pro 100) and LAN (Intel Pro 10) but they have no configuration file, only uninstall files. Any idea? Post edited by: footplant
-
stop the warning to change the host name
I continue to be careful: Your computer name is already in use on this network. the name has been changed... I click ok and keeps coming back with many more and will not stop! Thank you
-
THE MAGICAL TEXT INITIALIZED ABCD, AND I NEED TO CREATE 50 ELEMENTS RANDOM FROM THIS TEXT... CAN SOMEONE HELP ME
-
Hello. I'm looking for driver for ACPI\HPQ0004\3 & 33FD14CA & 0 I replaced the HDD with a SSD from X 25 - m Intel and replaced Windows Vista with Windows 7 Ultimate X 64. It is the only unknown device I have. I've searched the forums and found soluti