How Do u Debugg the procedure
Hi,
How do u debugg the procedure in oracle
plx provide the systax
thanks
Sorry APC, I really don't agree here, but on the other hand: I wasn't complete.
Simply because: when my/our code goes to production: no more debugging output is allowed.
DBMS_OUTPUT is the Devil's DebuggerOh, go ahead, create a/your own myth instead of pointing developers to their responsibilities.
Until (key)users start accepting changes it's a bless. My point. I love dbms_output.
I don't use WHEN OTHERS.
I want people to REthink their requirements.
I don't want to fool anyone.
When my code goes to production it's thoroughly tested, by others and by me.
I follow OTAP/DTAP, perhaps that clears up things.
Development/Test/Accept/Production.
During D and T I use 'the Devils Debugger', traces etc.. And I LOVE it.
After that it's not allowed.
Sorry I left that out.
Maybe it's obvious to me, and I need to learn it doesn't work that way globally ;)
Bottom line: you debug while DEVELOPING and TESTING with REPRESENTATIVE DATASETS.
In case something goes wrong in production: politics, BS, men in suits not knowing, lots of nervous peeps that told you to do 'this', while 'that' would be a better option and you've said it but they wouldn't listen....
But isn't that obvious?
C'mon, obvious = expect things to happen and know how to react.
Similar Messages
-
How to debugg the procedure..pls give example program
how to debugg the procedure..pls give example program
Hi,
There are various methods available to debug your procedure, like dbms_output, utl_file and some third party debugger like PL/SQL developer, TOAD,
SQL Navigator or SQL Developer.
Try any one of those. -
How can i check the procedure execution time..?
Hi All,
Can any one of you tell me how can i check the procedure execution time..?
Thanks in advance.if running it from SQL*Plus,
SQL> set timing on
Or from PL/SQL, use DBMS_UTILITY.GET_TIME before and after the call and calclate the difference. -
How do I get the procedure name
Hi,
With help of our application we are updating one table (P_Balance) in this account status and date through some procedures.
in some situation only account status column get proper value, but date column having NULL value.
Now we decided to track this, through which procedure this date column get updated null value.
For this I decided to write one trigger for the table "P_BALANCE" through which procedure this update is happening.
How do I get the procedure name.You could use DBMS_UTILITY.FORMAT_CALL_STACK and do it. Something like this.
SQL> create table track_call_stack
2 (
3 program_name varchar2(30),
4 call_stack varchar2(4000)
5 );
Table created.
SQL> create table t
2 (
3 no integer
4 );
Table created.
SQL> create or replace trigger t_trig before insert on t for each row
2 begin
3 if :new.no is null then
4 insert into track_call_stack
5 (
6 program_name,
7 call_stack
8 )
9 values
10 (
11 'T_TRIG',
12 dbms_utility.format_call_stack
13 );
14 end if;
15 end;
16 /
Trigger created.
SQL> insert into t values (null);
1 row created.
SQL> select * from track_call_stack;
PROGRAM_NAME CALL_STACK
T_TRIG ----- PL/SQL Call Stack -----
object line object
handle number name
3a7ac0ea8 1 anonymous block
3a2bb9d78 3 ARBORU.T_TRIG
SQL> create or replace procedure p1
2 as
3 begin
4 insert into t values (null);
5 end;
6 /
Procedure created.
SQL> create or replace procedure p2
2 as
3 begin
4 insert into t values (1);
5 p1;
6 end;
7 /
Procedure created.
SQL> exec p2;
PL/SQL procedure successfully completed.
SQL> select * from track_call_stack;
PROGRAM_NAME CALL_STACK
T_TRIG ----- PL/SQL Call Stack -----
object line object
handle number name
3a7ac0ea8 1 anonymous block
3a2bb9d78 3 ARBORU.T_TRIG
T_TRIG ----- PL/SQL Call Stack -----
object line object
handle number name
3a7ac0ea8 1 anonymous block
3a2bb9d78 3 ARBORU.T_TRIG
3a2b32a10 4 procedure ARBORU.P1
3a61db6a8 5 procedure ARBORU.P2
3a653c3a0 1 anonymous block -
How can I find the procedures where I use a table?
How can I find the procedures where I use a table?
I need to look for it in all the users.select name,owner from dba_dependencies where referenced_name='table_name'
and referenced_owner = 'schema'
and type = 'PROCEDURE'
Aravind -
Using sql_id how to find out the procedure name
Using some sql_id need to findout the procedure.
Hi,
run this query to check procedure
select object_name from user_procedures -
How can I use the procedures and functions in my library
hello, all
I have a pl/sql library MYLIB.pld, MYLIB.pll and MYLIB.plx.
How can I invoke procedures and functions there in JDeveloper?
Thanks.
DamonI am indeed using ADF BC to re-develop the oracle application.
Here is my situation:
We have an oracle form application.
Our objective is to try to re-use the existing sources in the form application as much as possible:
1. tons of procedures and functions in a pl/sql library(a file with extension name portfolioLib.pll or portfolioLib.plx);
2. tons of form-level triggers, data-block triggers and item-triggers;
3. tons of database stored procedures and triggers;
After doing a research on JDeveloper, we decide to use ADF Swing+ADF BC to re-develop the application.
My opinion for the above three kinds of sources in our form application is:
for 1: we try to move most of procedures and functions into database(except Form build-in);
for 2: we try to wrap those triggers in a SQLJ class;
for 3: we try to call database procedures and functions with PreparedStatment or CallableStatement;
I just do a test on a post-query trigger on a data-block:
I created a sqlj file, named testSQLJ.sqlj in the test.view package;
I tried to call it in createInstanceFromResultSet of testDeptVOImpl.java which is test.model package,
I was told that testSQLJ cannot be found there. why?
How can I call some classes from test.view package in some classes of test.model?
I read some documents about how to deal with post-query trigger in JDeveloper: create a view with SQL statement, but it seems that it does not support pl/sql statement there.
Can you give me some opinion about the above stuff?
I really appreciate your help.
Damon -
How can I use the procedure parameters here?
The problem in the following procedure is that the embedded javascript uses the parameter OBJ_NAME and OBJ_VALUE -> that doens't work.. how to solve this? It would be a pleasure for me if this procedure works! greetings Koen
PROCEDURE KOEN.PROC_SET_FIELD (OBJ_NAME IN VARCHAR2, OBJ_VALUE IN VARCHAR2) as
begin
htp.htmlOpen; htp.headOpen;
htp.p('<SCRIPT language = "JavaScript1.2">');
htp.p('for (i=0; i < document.forms[0].length - 1; i++)');
htp.p('{');
htp.p('var v_name = document.forms[0].elements.name;');
htp.p('if (v_name.indexOf("." + OBJ_NAME + ".") != -1)');
htp.p('document.forms[0].elements[i].value = OBJ_VALUE;');
htp.p('}');
htp.p('</script>');
htp.headClose; htp.htmlClose;
end;Hi,
it looks as if you are creating a new page to hold your javascript.
the javascript must be on the same page as the form for the code to work.
put the PL/SQL to generate the javascript code into the "after generating the form" section in the portal form.
Regards Michael -
How can i run the procedure without passing the parameter.
CREATE OR REPLACE PROCEDURE P1 ( (nvl(A,'dkjf') VARCHAR2)
IS
BEGIN
DBMS_OUTPUT.PUT_LINE(A||',');
END;
it is giving me error
i want to execute in this way exec p1;
it should automatically take dkjf as parameter;
help required on this.May be, if you are really looking for variety of solutions. I have one which i would say is a low level one
SQL> create or replace package pk1 is
2 a number;
3 procedure p1;
4 end;
5 /
Package created.
SQL>
SQL>
SQL> create or replace package body pk1 is
2 procedure p1 is
3 begin
4 dbms_output.put_line(a);
5 end;
6 end;
7 /
Package body created.
SQL> exec pk1.a := 10;
PL/SQL procedure successfully completed.
SQL> exec pk1.p1;
10
PL/SQL procedure successfully completed.Here you execute procedure without any parameter, and getting desired output. -
How to Debugg the Cmod code in R3
Hi All,
I have written a code in CMOD to populate new fields for 2LIS_11_VASCL.
How do I debugg the code it in R3?
When I run the check for datasource in RSA3, it is not returning any records?
Simmiyou can set a break point in the code..or even in the extractor you have the option to enable the Debug..check box..
Go to the code..of include..double click on the line you want to place a break -point. -
How can debugge the portal application
hi sdn,
how can we debugge the portal application.what are steps are needed for this
any documents please forward me.Hi Kiran,
Following is the steps for debugging the portal application.
<b>Steps for Debugging</b>
<i><b>1. Stop the Portal Server if Running.</b></i>
<i>
<b>2. Launch the Config tool of J2EE Engine & Set Up the debugging of the current instance.</b></i>
 The Config tool is located in the directory ,
<J2EE-Install-Dir>\JC00\j2ee\configtool\configtool.bat
 Switch to the current instance & go to the debug tab.
 Set Enable Debug Mode checked, start the VM of J2EE in debug mode.
 Set a valid debug port, default port is 50021.
 Save the settings and restart the J2EE Engine.
<i><b>3. Restart the Portal Server.</b></i>
<i><b>4. Open SAP Netweaver Developer Studio.</b></i> Go to Window --- > Open Perspective --- > Enterprise Portal & also open the Debug perspective.
 This enables you to develop & deploy EP Components to your development Portal.
<i><b>5. Configure Development Environment for Debugging.</b></i>
 Create new Remote Java Application debug settings.
 Pressing the debug button attaches the SAP Netweaver Developer Studio to the Specified portal installation.
 Go to Debug --- > Remote Java Application & create a new setting for your current Portal Application Project.
 Insert the portals DNS or IP Address and the debug port specified in the Config tool, default port is 50021.
 If the portal runs on the local machine you can enter localhost instead of IP address or DNS name.
 Make sure that your Portal Application is already deployed in the portal.
<i><b>6. If the connection is attached to the J2EE engines VM session, the SAP Netweaver Studio is ready to debug.</b></i>
<u><b>BREAKPOINTS</b></u>
<i>A Breakpoint causes the execution of a program thread to suspend at the location here the breakpoint is set.</i>
<i><b>7. Set a breakpoint in your custom coding. The debugger will stop if the VM reaches this marked code line.</b></i>
To enable the breakpoint,
 Locate the breakpoint in the marker bar of an editor.
 Open the breakpoints context menu & select Enable Breakpoint.
 The breakpoint image will change back to a blue circle.
<b>VARIABLE VIEW</b>
<i>The variables view contains information about the variables in the currently-selected stack frame.</i>
<i><b>8. To Launch the Variables View :,</b></i>
Choose Window -- > Show View -- > Other -- > Select Debug -- > Variables View.
<i><b>9. Force the Portal to execute your deployed coding.</b></i> The VM stops at the specified break point.
10. The current values of the member variables can be tracked in the Variables window of SAP Netweaver Developer Studio.
<i><b>** Reward points if you find this Post Useful & Helpful.</b></i>
<i>Regards,
Eben.</i> -
How to have an Oracle procedure send and receive value from a java program.
The below procedure is place inside a package. This procedure "get_extract_ready_headers " is selecting columns store_number, terminal_number, tran_number, tran_date, cust_id from the source REX_HEAD_EXTRACT table. This information is selected into a ref cursor. The data has cust_id field which is encrypted. How do I modify the procedure get_extract_ready_headers and accomplish 2 things?
1. Make this procedure to read the "cust_id" value from the source table and send the value to a Java program "getheaderinfo" (this java program decrypts the cust_id field).
2. When we get the unencrypted value back from the Java program, make the procedure accept this decrypted value and use it to update CUST_ID value in the target table TRAN_HEAD table. I am using Oracle 11.2.0.2, and TOAD 10.5.1.3.
-- Procedural code
PROCEDURE get_extract_ready_headers (p_records OUT SYS_REFCURSOR)
IS
BEGIN
OPEN p_records FOR
SELECT store_number, terminal_number, tran_number, tran_date, cust_id FROM REX_HEAD_EXTRACT;
END;--Table Structure for source table REX_HEAD_EXTRACT
CREATE TABLE REX_HEAD_EXTRACT
REX_SEQ_NBR NUMBER(20),
REVISION_NUMBER NUMBER,
DAY NUMBER(3),
RESA_TRAN_SEQ_NO NUMBER(20),
BUSINESS_DATE DATE,
TRAN_SEQ_NBR NUMBER(12),
ORG_NUMBER NUMBER,
STORE_NUMBER NUMBER,
TRAN_DATE DATE,
TERMINAL_NUMBER NUMBER,
TRAN_NUMBER NUMBER,
TRAN_TIME DATE,
BATCH_NUMBER VARCHAR2(8 BYTE),
BATCH_TYPE VARCHAR2(4 BYTE),
TRAN_TYPE VARCHAR2(4 BYTE),
SUB_TRAN_TYPE VARCHAR2(4 BYTE),
CLERK_CODE VARCHAR2(15 BYTE),
TRAN_TAXABLE_AMOUNT NUMBER(12,2),
TRAN_TAX_TOTAL NUMBER(12,2),
TRAN_GROSS_TOTAL NUMBER(12,2),
COUP_TOTAL NUMBER(9,2),
MKD_TOTAL NUMBER(9,2),
EMPLOYEE_NUMBER VARCHAR2(15 BYTE),
EMPLOYEE_NAME VARCHAR2(40 BYTE),
TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2),
TRAN_ALTTAX_TOTAL NUMBER(12,2),
SALE_AMOUNT NUMBER(9,2),
RETURN_AMOUNT NUMBER(9,2),
RETURNED_AMOUNT NUMBER(9,2),
NETCASH NUMBER(12,2),
TENDER_CODE VARCHAR2(4 BYTE),
MULT_RCPT VARCHAR2(1 BYTE),
SPLIT_TENDER VARCHAR2(1 BYTE),
RTN_WITH_PURCHASE VARCHAR2(1 BYTE),
RTN_WITH_RCPT VARCHAR2(1 BYTE),
REASON_CODE VARCHAR2(4 BYTE),
PASSWORD VARCHAR2(10 BYTE),
RINGTIME DATE,
CUST_NUMBER VARCHAR2(12 BYTE),
CUST_ID VARCHAR2(50 BYTE),
ZIP_CODE NUMBER,
POSTAL_CODE VARCHAR2(9 BYTE),
PV_TIME_LAPSE NUMBER,
ORIG_STORE_NBR NUMBER,
ORIG_TRAN_DATE DATE,
ORIG_TRAN_TYPE VARCHAR2(4 BYTE),
ORIG_TERM_NBR NUMBER,
ORIG_TRAN_NBR NUMBER,
ORIG_SALE_AMT NUMBER(12,2),
ORIG_TENDER_CODE VARCHAR2(4 BYTE),
ORIG_CLERK_CODE VARCHAR2(15 BYTE),
PREV_TRAN_TYPE VARCHAR2(4 BYTE),
PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE),
GIFT_REGISTRY_ID VARCHAR2(25 BYTE),
NO_OF_ITEMS NUMBER,
TAX_EXEMPT_ID VARCHAR2(18 BYTE),
TRAN_RINGTIME NUMBER,
AUDITED VARCHAR2(1 BYTE),
BATCH_VERSION NUMBER(9,2),
BATCH_SOURCE VARCHAR2(5 BYTE),
CREATE_DATE DATE,
CREATE_ID VARCHAR2(32 BYTE),
CREATE_PROC VARCHAR2(32 BYTE),
MOD_DATE DATE,
MOD_ID VARCHAR2(32 BYTE),
MOD_PROC VARCHAR2(32 BYTE),
TERMINAL_GROUP NUMBER,
USER_DEF_1 NUMBER,
USER_DEF_2 NUMBER,
USER_DEF_3 NUMBER,
USER_DEF_4 NUMBER(12,2),
USER_DEF_5 NUMBER(12,2),
USER_DEF_6 NUMBER(12,2),
USER_DEF_7 VARCHAR2(50 BYTE),
USER_DEF_8 VARCHAR2(50 BYTE),
USER_DEF_9 VARCHAR2(50 BYTE),
MANAGER_NUMBER VARCHAR2(15 BYTE),
MANAGER_REASON_CODE VARCHAR2(10 BYTE),
MANAGER_SWIPED VARCHAR2(1 BYTE),
PHONE_NO NUMBER(11),
KCPOS_KTH_USER_101 NUMBER,
KCPOS_KTH_USER_102 NUMBER,
KCPOS_KTH_USER_103 NUMBER,
KCPOS_KTH_USER_104 NUMBER,
KCPOS_KTH_USER_105 NUMBER,
KCPOS_KTH_USER_106 NUMBER,
KCPOS_KTH_USER_107 NUMBER,
KCPOS_KTH_USER_108 NUMBER,
KCPOS_KTH_USER_109 NUMBER,
KCPOS_KTH_USER_110 NUMBER,
KCPOS_KTH_USER_201 NUMBER(12,2),
KCPOS_KTH_USER_202 NUMBER(12,2),
KCPOS_KTH_USER_203 NUMBER(12,2),
KCPOS_KTH_USER_204 NUMBER(12,2),
KCPOS_KTH_USER_205 NUMBER(12,2),
KCPOS_KTH_USER_206 NUMBER(12,2),
KCPOS_KTH_USER_207 NUMBER(12,2),
KCPOS_KTH_USER_208 NUMBER(12,2),
KCPOS_KTH_USER_209 NUMBER(12,2),
KCPOS_KTH_USER_210 NUMBER(12,2),
KCPOS_KTH_USER_301 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_302 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_303 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_304 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_305 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_306 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_307 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_308 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_309 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_310 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_401 DATE,
KCPOS_KTH_USER_402 DATE,
KCPOS_KTH_USER_403 DATE,
DISC_TOTAL NUMBER(9,2)
CREATE INDEX REX_HEAD_EXTRACT_NDX ON REX_HEAD_EXTRACT
(REX_SEQ_NBR, REVISION_NUMBER, STORE_NUMBER, TRAN_DATE, TERMINAL_NUMBER, TRAN_NUMBER)-- Create table DDL for target table TRAN_HEAD
CREATE TABLE NAVISTOR.KCPOS_TRAN_HEADER_BASE
TRAN_SEQ_NBR NUMBER(12),
ORG_NUMBER NUMBER,
STORE_NUMBER NUMBER,
TRAN_DATE DATE,
TERMINAL_NUMBER NUMBER,
TRAN_NUMBER NUMBER,
TRAN_TIME DATE,
BATCH_NUMBER VARCHAR2(8 BYTE),
BATCH_TYPE VARCHAR2(4 BYTE),
TRAN_TYPE VARCHAR2(4 BYTE),
SUB_TRAN_TYPE VARCHAR2(4 BYTE),
CLERK_CODE VARCHAR2(15 BYTE) NOT NULL,
TRAN_TAXABLE_AMOUNT NUMBER(12,2),
TRAN_TAX_TOTAL NUMBER(12,2),
TRAN_GROSS_TOTAL NUMBER(12,2),
COUP_TOTAL NUMBER(9,2),
MKD_TOTAL NUMBER(9,2),
EMPLOYEE_NUMBER VARCHAR2(15 BYTE),
EMPLOYEE_NAME VARCHAR2(40 BYTE),
TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2),
TRAN_ALTTAX_TOTAL NUMBER(12,2),
SALE_AMOUNT NUMBER(9,2),
RETURN_AMOUNT NUMBER(9,2),
RETURNED_AMOUNT NUMBER(9,2),
NETCASH NUMBER(12,2),
TENDER_CODE VARCHAR2(4 BYTE),
MULT_RCPT VARCHAR2(1 BYTE),
SPLIT_TENDER VARCHAR2(1 BYTE),
RTN_WITH_PURCHASE VARCHAR2(1 BYTE),
RTN_WITH_RCPT VARCHAR2(1 BYTE),
REASON_CODE VARCHAR2(4 BYTE),
PASSWORD VARCHAR2(10 BYTE),
RINGTIME DATE,
CUST_NUMBER VARCHAR2(12 BYTE),
CUST_ID VARCHAR2(50 BYTE) ENCRYPT USING 'AES256' NO SALT,
ZIP_CODE NUMBER,
POSTAL_CODE VARCHAR2(9 BYTE),
PV_TIME_LAPSE NUMBER,
ORIG_STORE_NBR NUMBER,
ORIG_TRAN_DATE DATE,
ORIG_TRAN_TYPE VARCHAR2(4 BYTE),
ORIG_TERM_NBR NUMBER,
ORIG_TRAN_NBR NUMBER,
ORIG_SALE_AMT NUMBER(12,2),
ORIG_TENDER_CODE VARCHAR2(4 BYTE),
ORIG_CLERK_CODE VARCHAR2(15 BYTE),
PREV_TRAN_TYPE VARCHAR2(4 BYTE),
PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE),
GIFT_REGISTRY_ID VARCHAR2(25 BYTE),
NO_OF_ITEMS NUMBER,
TAX_EXEMPT_ID VARCHAR2(18 BYTE),
TRAN_RINGTIME NUMBER,
AUDITED VARCHAR2(1 BYTE),
BATCH_VERSION NUMBER(9,2),
BATCH_SOURCE VARCHAR2(5 BYTE),
CREATE_DATE DATE,
CREATE_ID VARCHAR2(32 BYTE),
CREATE_PROC VARCHAR2(32 BYTE),
MOD_DATE DATE,
MOD_ID VARCHAR2(32 BYTE),
MOD_PROC VARCHAR2(32 BYTE),
TERMINAL_GROUP NUMBER,
USER_DEF_1 NUMBER,
USER_DEF_2 NUMBER,
USER_DEF_3 NUMBER,
USER_DEF_4 NUMBER(12,2),
USER_DEF_5 NUMBER(12,2),
USER_DEF_6 NUMBER(12,2),
USER_DEF_7 VARCHAR2(50 BYTE),
USER_DEF_8 VARCHAR2(50 BYTE),
USER_DEF_9 VARCHAR2(50 BYTE),
MANAGER_NUMBER VARCHAR2(15 BYTE),
MANAGER_REASON_CODE VARCHAR2(10 BYTE),
MANAGER_SWIPED VARCHAR2(1 BYTE),
PHONE_NO NUMBER(11),
KCPOS_KTH_USER_101 NUMBER,
KCPOS_KTH_USER_102 NUMBER,
KCPOS_KTH_USER_103 NUMBER,
KCPOS_KTH_USER_104 NUMBER,
KCPOS_KTH_USER_105 NUMBER,
KCPOS_KTH_USER_106 NUMBER,
KCPOS_KTH_USER_107 NUMBER,
KCPOS_KTH_USER_108 NUMBER,
KCPOS_KTH_USER_109 NUMBER,
KCPOS_KTH_USER_110 NUMBER,
KCPOS_KTH_USER_201 NUMBER(12,2),
KCPOS_KTH_USER_202 NUMBER(12,2),
KCPOS_KTH_USER_203 NUMBER(12,2),
KCPOS_KTH_USER_204 NUMBER(12,2),
KCPOS_KTH_USER_205 NUMBER(12,2),
KCPOS_KTH_USER_206 NUMBER(12,2),
KCPOS_KTH_USER_207 NUMBER(12,2),
KCPOS_KTH_USER_208 NUMBER(12,2),
KCPOS_KTH_USER_209 NUMBER(12,2),
KCPOS_KTH_USER_210 NUMBER(12,2),
KCPOS_KTH_USER_301 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_302 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_303 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_304 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_305 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_306 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_307 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_308 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_309 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_310 VARCHAR2(50 BYTE),
KCPOS_KTH_USER_401 DATE,
KCPOS_KTH_USER_402 DATE,
KCPOS_KTH_USER_403 DATE,
DISC_TOTAL NUMBER(9,2),
RTA_RTN_AUTCOD VARCHAR2(4 BYTE),
RTA_RTN_COMMID NUMBER,
RTA_RTN_EVNTID NUMBER,
RTA_RTN_QTY NUMBER,
RTA_RTN_RCPT_SCAN VARCHAR2(1 BYTE),
RTA_RTN_REFUND_AMT NUMBER(9,2),
RTA_RTN_TYPE_CODE VARCHAR2(4 BYTE),
RTA_RTN_WITH_RCPT VARCHAR2(1 BYTE),
RTA_RTN_COUNT INTEGER,
SDEDVAL1 VARCHAR2(50 BYTE)
)--sample data
REX_SEQ_NBR,REVISION_NUMBER,DAY,RESA_TRAN_SEQ_NO,BUSINESS_DATE,TRAN_SEQ_NBR,ORG_NUMBER,STORE_NUMBER,TRAN_DATE,TERMINAL_NUMBER,
TRAN_NUMBER,TRAN_TIME
478,1,11,12024005,6/11/2012,,1,692,6/11/2012,155,5,6/11/2012 12:57:17 PM,
479,1,11,12024006,6/11/2012,,1,692,6/11/2012,155,6,6/11/2012 2:01:51 PM,
480,1,11,12024007,6/11/2012,,1,692,6/11/2012,155,7,6/11/2012 2:47:10 PMAssuming that SomeJavePgm is a Java stored function (not a Java program running outside the database) and that it takes as a parameter whatever data type CUST_ID is in TABLE_A (hopefully RAW but potentially VARCHAR2) and returns a string, you would call it just as you would a PL/SQL stored function
INSERT INTO table_b( cust_id, <<other columns>> )
SELECT SomeJavaPgm( a.cust_id ), <<other columns>>
FROM table_a aIf SomeJavePgm is not a Java stored procedure, calling it from PL/SQL becomes much more complicated. You would need whatever machine hosts this program to expose an appropriate API (for example, a web service interface) that you could invoke via UTL_HTTP). You'd need to tell us what that API was, however.
Justin -
Hi, How can we debug the procedure in a package without sufficient privilages, is it possible ?
if possible / if not possible which is the best way/tool for debugging the stored procedures
thanks a lotPerhaps the answer is to research Oracle security vulnerabilities and attempt a privilege escalation hack. Oh... Pete Finnigan can help to find some security holes...
Nicolas. -
I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections
You should be able to just place them in your Books library in iTunes and check to ensure that your Book library is configured to sync to your iPod when you sync your iPod to iTunes.
-
How to use the procedure column in reports
Hi all
How to call the procedure in reports as source.. If possible how to use columns of procedure in the layout column of report????Hi,
Your query is not clear.
1. In subject are you asking total column.
A. Edit pivot view and go to Rows and click Total BY option here you can find option like (none,before,after) the you can select after it will display total all culms.
2. I want use the columnC in columnD ? -- Am not understand.
A. What my understand is you want to see the report only C and D values only.
If it is correct we can apply filter in report level click column filed and apply not equal to A then it will show only C and D only.
If it is wrong pleas post me correct one with example. Will try to help out this.
I am not sure this is what your looking so far.
Award points it is useful.
Thanks,
Satya
Maybe you are looking for
-
Cisco Trust Agent - Any way to force the client to always be enabled?
We have begun to roll out dot1x configuration on our fleet of switches to support a basic authentication and posture check for our NAC Framework deployment. Previous to this, we spent a couple of months deploying the Trust Agent. In the time between
-
I have created my first JSR-168 portlet and consumed it in the JSF page. Everything looks good with my AJAX stuff except my JavaScript does not get called when clicking on the "Refresh" action from the portlet header menu. My portlet calls the JavaSc
-
App store ratings are... just wrong...
Find an app with a reasonably small number of ratings (less than 10) and average them. It is no where NEAR what the store claims... Here's just one screenshot of my point from iBear Brain... http://img509.imageshack.us/my.php?image=img0002qy0.png Any
-
Hello, After installing Oracle text in 9i, we realized that the install drops/creates a public synonym named context. Our third party App already had a public synonym named context that pointed to one of its table. . Are there any issues with droppin
-
Help changing image using multiple links
Hello, I need help! How do I change a single image within a page, using multiple link words? I've seen this done all over, but can't figure this out! HELP! I am trying to have a single image, that will change as the different words are clicked on. Th