UNIX script inline stored procdure with BEGIN & END ?
Hello, is there a way to create an "inline" stored procedure similar to the way this sql is being implemented?
#!/bin/ksh
sqlplus -s > junk1 /nolog <<EOF
connect uid/pass@tdb
column num_rows 9999
select count(*)
from add_pool_summary;
exit num_rows
EOF
echo "Number of rows are: $?"
In other words something like this:
#!/bin/ksh
sqlplus -s > junk1 /nolog <<EOF
connect uid/pass@tdb
create stored procedure SP1 ,,,,
BEGINcolumn num_rows 9999
select count(*)
from add_pool_summary;
exit num_rows
ENDEOF
echo "Number of rows are: $?"
This would really be excellent if so!
Thanks very much!
BobK
Think i got it, found this super excellent example posted by Andrew Again
http://www.orafaq.com/forum/t/36896/0/
#!/bin/ksh
sqlplus -s scott/tiger@engdev <<EOF > tmp.txt
set pagesize 0 feedback off verify off heading off echo off
set serveroutput on
--select name from v\$parameter where name like 'nls%' and rownum <6;
select table_name from user_tables where rownum <6;
begin
dbms_output.put_line('output parm#1');
dbms_output.put_line('output parm#2');
end;
exit;
EOF
while read reslt_line
do
echo "==>"$reslt_line
done < tmp.txt
Similar Messages
-
Running Unix script from stored procedure
At present, I run a unix script to export my data for backup using telnet. I would like my users to run the commands on their own without my help. My users do not know telnet (they have no IT knowledge). So, I plan to create a form using Developer/2000 and let them run the procedure thru a stored procedure.But, my problem is how can a stored procedure call a unix script?
Hi,
solution, used by me.
Create a stored procedure that produces a text file with utl_file. The content of the file is the script you want to execute on your Unix box.
On your Unix Box write a shell script that scans the utl_file_dir for Files. If a file is in, chmod 744 to grnt execute rights to it and execute it.
I have a example if you want.
Start the script with crontab or let it loop with a sleep inside.
HTH
Detlev -
LOV Select List How to create query with begin & End in LOV
Dear All,
i am using Apex 3.2 ver
i want to use below code in LOV select list
BEGIN
IF UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
WHERE NVL(ACTIVE_FLG,'N') = 'Y'
AND NVL(GUIDE_FLAG,'N') = 'Y'
and CITY_CODE LIKE NVL (:P23_CITY_CODE, '%')
ORDER BY 2
ELSIF
UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
SELECT NAME D, CODE R
FROM HOTEL_MAS
WHERE NVL (ACTIVE_FLG, 'N') = 'Y'
AND CITY_CODE LIKE NVL(:P23_CITY_CODE,'%')
ORDER BY PRIORITY
END IF;
END;When i put this code in my LOV Select list Section then display me Error
Not Found
The requested URL /pls/apex/f was not found on this server.
Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at tidevserv1 Port 7777
How to Resolve it.Hi Vedant,
you dont need to use begin ...end block
Try the Below code
IF UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
RETURN
'SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
WHERE NVL(ACTIVE_FLG,''N'') = ''Y''
AND NVL(GUIDE_FLAG,''N'') = ''Y''
and CITY_CODE LIKE NVL (:P23_CITY_CODE, ''%'')
ORDER BY 2' ;
ELSIF UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
RETURN
'SELECT NAME D, CODE R
FROM HOTEL_MAS
WHERE NVL (ACTIVE_FLG, ''N'') = ''Y''
AND CITY_CODE LIKE NVL(:P23_CITY_CODE,''%'')
ORDER BY PRIORITY' ;
END IF;In this way you can create conditional LOVs ,
Hope this will helps you.
Regards,
Jitendra -
Executing Unix scripts from a stored procedure
From the sql*plus windows, I am able to execute the host command and '!sh' commands; but I need to ececute Unix scripts from a stored procedure. Hoe can I do this? Where can I get good documentation on this? Any help would be greatly appreciated!
Thanks..Hi,
U can use external procedure ( newly added feature in 8.0.3 onwards) and call any shared library. From shared library u can execute it.
One sql command is there HOST(' '). U can run a OS command. But u can not use it in PL/SQL.
U can call pls sql from shell !!!!!..
Thanks...
Boby Jose -
Triggering UNIX script with IDOC creation?
Hello group,
I create an IDOC when a delivery goods-issue is being posted (IDOC via outputcondition).
The name of the IDOC file is being created by a function module to add a timestamp to the filename. So every IDOC has a unique name!
Now what I need to do is to call a UNIX file right when the IDOC has been created.
Furthermore, I need to pass the name of the IDOC as parameter to that UNIX script.
Any ideas how this can be accomplished?
Thank you in advance,
DirkHi!
Like windows, unix has also its scheduler. Unfortunately I don't remember how could you do this, but on a unix forum, people in 5 mins will tell you that...
We are using jobs, and our job log is full with jobs, but it do not disturbs anyone. Not disturbing, because mostly only the problematics jobs are needed, and you can select the jobs with their statuses.
Regards
Tamá -
Issue with running Unix Script during post processing
Dear all,
In one of the requirement, we need a execute a UNIX script in the post procesing steps of file channel.
When the script is run independently on the UNIX prompt, it executes very well.
But when the same script is kept in the post processing steps of the file channel, it doesn't give the desired results.
In the channel log, it says the script is executed but we are not able to see the output. (in this case, ist writing some dummy text in a new file). The script has all the permissions for all the users, read write and execute.
If anyone has a similar issue, kindly respond with the resolutions.
Regards,
YounusHI Younus
How you are running the script. Could be a problem with the command you are trying to execute from channel. Let us know the way you are doing
Check whether installed and executed on XI server properly then again check with channel.
Check with these for reference
http://help.sap.com/saphelp_nw70/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
The specified item was not found.
Executing Unix shell script using Operating System Command in XI
Thanks
Gaurav -
Oracle career with unix scripting?
hi
iam working in a reputed mnc with CMMi level 5 .started as fresher (BE I.T) i have around 1.6 years of experiance in unix scripting/oracle sql production support.
with learning of sql and shell scripting
i want to make my career in oracle which should be more dynamic,learning and creative not like in production support which have monotonus life.
could anyone please guide me about what career path i should choose ?
DBA , i have heard is montonous job too with same routine backups,no creativity with nightshifts and all, but it is more stable as people said. I have no experiance of it.
second devolper track in sql/pl sql having its own limitations like less demand, less financial growth etc. and people usually wants to shift in other area like BO
i don`t have any info about others areas like that i would like to explore
1)Datawarehousing
2)Oracle apps
3)Business objects (BO reporting)
4)Oracle CRM etc
5)Others (thats all i know,please add some others if they are creative )
iam really confsused now which way to chosse. and how to jump in other company on wat basis?
preparing for OCA right now but uncertain for career.
Seeking good help from forum experts."with learning of sql and shell scripting"
Ah, very good move, so you must pick my tool, it is all about managing Oracle DB through Korn shell http://www.smenu.org.
As of your question, the answer is in your mood and preference.
Oracle DBA: Definitely more money, less opportunity. the job is dwindling somehow due to Grid automation and budget restriction.
It is not that you don't need DBA, but manager thinks they can do without and don't (try) replace them. Pressure on DBA is a myth: more work = more money = happy DBA until wife run away.
Developer : Definitely less money, not necessary more opportunity unless you have java EE. no shift but more pressure: Projects are always in late, usually in the development area, not in the infrastructure.
One funny thing I noticed during these last 15 years, is that DBA have usually more children than others people (unix sys admin or Dev). Probably related to better earning.
DBA can be boring or passionate depending on your own knowledge, most of others DBA I know are still in the job, only one is now JAVA EE guy. -
Runtime.exec with Unix script
I want to execute unix script xxx.sh that I write it for running something and I will execute that script via java class I use
Runtime runTime = Runtime.getRuntime();
Process procRun = runTime.exec("/xxx/yyyy/testing.sh");
xxx and yyyy is path in my unix server and testing.sh is unix script
when I run this class it return true result but that unix script doesn't working or execute following my program in java class
please help me to solve this problem
Regards,
sobigwhen I run this class it return true result but that unix script doesn't
working or execute following my program in java classwhat do you mean it returns true....
and how do you know that it does not execute your script.... its probably going to be started as a bg process.... try doing something like creating a directory or something in the script .sh to be sure that it ran.... (just for testing).... im quite sure that it will execute a .sh file like that.... -
Hi..
The requirement is as follows :
SAP drops a file into a folder and triggers a UNIX script using a File Port partner destination.
Unix script will perform a secure copy to the Webmethods server. If a Unix script error occurs, an Rfc function will be called to send an error notification to a particular contact person.
Can anyone help me how is the unix script triggered from SAP ?
Thanks in advanceYou can execute this sample code:
Data: unix_cmd(50).
unix_cmd = 'chmod 664 /sapdata/DEV/home/travelers'.
translate unix_cmd to lower case.
call 'SYSTEM' id 'COMMAND' field unix_cmd.
write: / sy-subrc.
OR
Create and run a UNIX command programmatically
The destination must be set up and configured from tcode SM59
see note OSS 63930
rfcexec, this service must be started from UNIX
UX syntax to start service:
rfcexec -aUNIX_COMMAND -g sap01 -x sapgw00 &
rfcexec - program, /sapmnt/DEV/exe
UNIX_COMMAND - program ID from SM59, case sensitive
sap01 - AP_Gateway_hostname
sapgw00 - Gateway_Service
Transaction SMGW, monitor the gateway (Goto/Logged on clients)
*Number LU name TP Name Syst.type Host name Host address
0 sap01 sapgw00 LOCAL_R3 sap01 10.1.193.50
233 sap01 UNIX_COMMAND REGISTER_TP sap01 10.1.193.50
Could replace this unsupported SAP syntax, Call 'SYSTEM'
*data: begin of tabl occurs 0,
line(200),
*end of tabl.
*call 'SYSTEM' id 'COMMAND' field comm
id 'TAB' field tabl-sys.
data: command(256).
data : begin of ret occurs 10, " results of unix command
text(80),
end of ret .
data: i_connected_systems type table of gwy_system.
data: w_connected_systems type gwy_system.
data: w_message(80).
parameter: p_junk(4) default 'Junk'.
start-of-selection.
call function 'GWY_READ_CONNECTED_SYSTEMS'
EXPORTING
GWHOST =
GWSERV =
DISCONNECT =
tables
connected_systems = i_connected_systems
EXCEPTIONS
GWY_UNKNOWN_OPCODE = 1
GWY_COMMUNICATION_FAILURE = 2
GWY_GET_TAB_FAILED = 3
GWY_NEWLINE_FAILED = 4
GWY_TABLEN_TOO_SHORT = 5
GWY_GET_OPCODE_FAILED = 6
GWY_GET_GWHOST_FAILED = 7
GWY_GET_GWSERV_FAILED = 8
GWY_MONITOR_DISABLED = 9
OTHERS = 10
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
read table i_connected_systems into w_connected_systems
with key tpname = 'UNIX_COMMAND'.
if sy-subrc ne 0.
perform display_error_messages.
stop.
endif.
*COMMAND = 'ls '. " command
*COMMAND = 'ls -lt'. " command, newest at top
command = 'ls -osra'.
call function 'RFC_REMOTE_PIPE'
DESTINATION 'SERVER_EXEC'
destination 'UNIX_COMMAND'
exporting
command = command
read = 'X'
tables
pipedata = ret.
loop at ret.
write ret.
endloop.
end-of-selection.
*& Form Display_error_messages
form display_error_messages .
data: begin of listtab occurs 0,
field(80),
end of listtab.
listtab-field = 'Program UNIX_COMMAND is not registered.'.
append listtab.
listtab-field = 'Tell Basis person about the error'.
append listtab.
listtab-field = ' '.
append listtab.
listtab-field = 'UX syntax to start service: '.
append listtab.
listtab-field = 'rfcexec -aUNIX_COMMAND -g sap01 -x sapgw00'.
append listtab.
listtab-field = ' '.
append listtab.
listtab-field = 'Program aborted,'.
listtab-field+19 = sy-cprog.
append listtab.
call function 'POPUP_WITH_TABLE_DISPLAY_OK'
exporting
endpos_col = 70
endpos_row = 20
startpos_col = 10
startpos_row = 10
titletext = 'Registered program error'
IMPORTING
CHOISE =
tables
valuetab = listtab
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " Display_error_messages
Bruce -
Calling stored procedures with parameters with the Database Connectivi​ty Toolkit
Hi all,
I am new to the forum and am having difficulty finding a solution to a particular problem I am having regarding using the LabVIEW Database Connectivity Toolkit on a project I am currently working on at my job. I have a database in which I have tables and stored procedures with parameters. Some of these stored procedures have input, output, and return parameters.
I have been trying to follow this example but to no avail: http://digital.ni.com/public.nsf/allkb/07FD130746083E0686257300006326C4?OpenDocument
One such stored procedure I am working on implementing is named "dbo.getAllowablePNs", which executes "SELECT * from DeviceType" (DeviceType is the table). In this case, it does not require an input parameter, it has an output parameter that generates the table [cluster], and has a return parameter which returns an integer value (execution status code) to show if an error occurred. The DeviceType table has 3 columns; ID (PK, int, not null), PN (nvarchar(15), null), and NumMACAddresses (int, null). I have gone over many examples and have talking to NI support to try to implement this and similar stored procedures in LabVIEW but have not been successful. I am able to connect to the database with the Open Connection VI without error, but am running into some confusion following this step. I am then trying to use the Create Parameterized Query VI to call the stored procedure and set the parameters. I assume I would then use the Set Parameter Value VI for each parameter that is wired into the parameters input on the previous Parameterized Query VI? I am also having some confusion during and following these steps as well. I would greatly appreciate any advice or suggestions anyone might have in regards to this situation as I am not a SQL expert. Also, I would be happy to provide any more information that would be helpful.
Regards,
Jon
Solved!
Go to Solution.Also, I don't know if this would be helpful but here is the actual stored procedure in SQL:
CREATEPROCEDURE [dbo].[getLastSequenceNumber]
@p1 nvarchar(10)='WO-00000'
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SETNOCOUNTON;
-- Insert statements for procedure here
selectmax(SequenceNumber)from Devices where WorkOrderNumber= @p1
END
GO -
How can I exit my UNIX script when my PLSQL script in it calls an error?
hello.
I hope someone can help with my error handling and exiting-in-the-right-place problem.
I have several PLSQL scripts that are called from a UNIX script to insert/update employee records in ORACLE Financials.
At the end of the UNIX script, depending on whether an entry has been created in the errors table should depend on whether the UNIX script stops or not. Trouble is, its stopping too early everytime even though the the record has been inserted correctly. Please can someone either advise on what I'm doing wrong or suggest an alternative..
This the end of the PLSQL script that inserts the entry into errors table if theres an error..
WHEN OTHERS THEN ROLLBACK;
err_msg := SUBSTR (SQLERRM, 1, 350);
insert into kpmg_error_check (concurrent_id,module,narrative,status,creation_date,created_by)
values(0,'TEMPLOYEE_DTLS.sql',err_msg,'ERROR',SYSDATE,'Feldman');
commit; This is the end of the UNIX script that looks at the table..
echo " "
echo "**** `date +%H:%M:%S` - Checking if TEMPLOYEE_DTLS.sql ran OK"
error_check=`sqlplus -s $user_id @$SU_TOP/sql/SUTEMPCHK.sql 1`
if `echo $error_check` -ge 1
then
# Load failed
echo " "
echo "**** `date +%H:%M:%S` - TEMPLOYEE_DTLS has failed - check table KPMG_ERROR_CHECK for details.."
exit 1
else
# Load finished OK, if input data file exists, move and rename it
echo " "
echo "**** `date +%H:%M:%S` - TEMPLOYEE_DTLS has finished OK.."
fiThis is the entire SUTEMPCHK.sql script that the UNIX script uses..
-- Check if any errors have occurred
SELECT count(1) FROM kpmg_error_check WHERE concurrent_id = &1
EXITIs it that the above is always returning '1' and so always thinks theres an entry in the errors table?
Is there an easier way?
many thanks,
StevenHi,
You have to iterate through all pages.marginPreferences:
var
myDocument = app.activeDocument,
allPagesMaPref = myDocument.pages.everyItem().marginPreferences,
curPageMaPref;
while ( curPageMaPref = allPagesMaPref.pop() )
with (curPageMaPref) {
columnCount = 1;
//columnGutter can be a number or a measurement string.
columnGutter = "0";
bottom = "0"
//When document.documentPreferences.facingPages == true,
//"left" means inside; "right" means outside.
left = "40"
right = "0"
top = "0"
inside = "0"
Jarek -
Calling a stored procedure with a CLOB as input parameter
Hello,
I was unsuccessfully trying to call a stored procedure with a clob as input parameter from my C++ application using occi.
Anyone got a working example to look at?
I already checked the thread Invalid OCI handle when creating a Blob which didn't help.
The problem seems to be that I don't have a lob locator to write my data (xml file) to. I tried creating a temporary clob using the sys.dbms_lob package which only resulted in a major headache on my part...
I would appreciate any help.
Kind regards
Horst
my environment:
Visual Studio 2008, C++ application
Oracle 11gTo start using a blob you have to insert it into the database and then get it back. Sounds weird but that is how it is. Here is a very simple program to do this:
#include<occi.h>
#include <iostream>
using namespace oracle::occi;
using namespace std;
int main()
try
Environment *env = Environment::createEnvironment(Environment::OBJECT);
Connection *conn = env->createConnection("hr","hr","");
string stmt1 = "insert into blob_tab values (:1) ";
string stmt2 = "select col1 from blob_tab";
Blob blob(conn);
blob.setEmpty(conn);
Statement *stmtObj = conn->createStatement(stmt1);
stmtObj->setBlob(1,blob);
stmtObj->executeUpdate();
conn->commit();
Blob blob1(conn);
Statement *stmtObj2 = conn->createStatement(stmt2);
ResultSet *rs = stmtObj2->executeQuery();
while(rs->next())
blob1 = rs->getBlob(1);
string stmt3 = "begin my_proc(:1) ;end;";
Statement *stmtObj3 = conn->createStatement(stmt3);
stmtObj3->setBlob(1,blob1);
stmtObj3->executeUpdate();
catch (SQLException e)
cout << e.getMessage();
/* The tables and procedure are primitive but ok for demo
create table blob_tab(col1 blob);
create or replace procedure my_proc(arg in blob)
as
begin
-- just a putline here. you can do other more meaningful operations with the blob here
dbms_output.put_line('hello');
end;
}Hope this helps.
Thanks,
Sumit -
Calling a Stored Procedure with output parameters from Query Templates
This is same problem which Shalaka Khandekar logged earlier. This new thread gives the complete description about our problem. Please go through this problem and suggest us a feasible solution.
We encountered a problem while calling a stored procedure from MII Query Template as follows-
1. Stored Procedure is defined in a package. Procedure takes the below inputs and outputs.
a) Input1 - CLOB
b) Input2 - CLOB
c) Input3 - CLOB
d) Output1 - CLOB
e) Output2 - CLOB
f) Output3 - Varchar2
2. There are two ways to get the output back.
a) Using a Stored Procedure by declaring necessary OUT parameters.
b) Using a Function which returns a single value.
3. Consider we are using method 2-a. To call a Stored Procedure with OUT parameters from the Query Template we need to declare variables of
corresponding types and pass them to the Stored Procedure along with the necessary input parameters.
4. This method is not a solution to get output because we cannot declare variables of some type(CLOB, Varchar2) in Query Template.
5. Even though we are successful (step 4) in declaring the OUT variables in Query Template and passed it successfully to the procedure, but our procedure contains outputs which are of type CLOB. It means we are going to get data which is more than VARCHAR2 length which query template cannot return(Limit is 32767
characters)
6. So the method 2-a is ruled out.
7. Now consider method 2-b. Function returns only one value, but we have 3 different OUT values. Assume that we have appended them using a separator. This value is going to be more than 32767 characters which is again a problem with the query template(refer to point 5). So option 2-b is also ruled out.
Apart from above mentioned methods there is a work around. It is to create a temporary table in the database with above 3 OUT parameters along with a session specific column. We insert the output which we got from the procedure to the temporary table and use it further. As soon the usage of the data is completed we delete the current session specific data. So indirectly we call the table as a Session Table. This solution increases unnecessary load on the database.
Thanks in Advance.
RajeshRajesh,
please check if this following proposal could serve you.
Define the Query with mode FixedQueryWithOutput. In the package define a ref cursor as IN OUT parameter. To get your 3 values back, open the cursor in your procedure like "Select val1, val2, val3 from dual". Then the values should get into your query.
Here is an example how this could be defined.
Package:
type return_cur IS ref CURSOR;
Procedure:
PROCEDURE myProc(myReturnCur IN OUT return_cur) ...
OPEN myReturnCur FOR SELECT val1, val2, val3 FROM dual;
Query:
DECLARE
MYRETURNCUR myPackage.return_cur;
BEGIN
myPackage.myProc(
MYRETURNCUR => ?
END;
Good luck.
Michael -
Executing a Stored Procedure with OUT Variables
When you execute a stored proc withi OUT variables, do you have to add in the "Declare" section and "Begin/End" sections? Or can you just use "EXECUTE <stored proc>"??
When you execute a stored proc withi OUT variables, do you have to add in the "Declare" section and "Begin/End" sections?
Or can you just use "EXECUTE <stored proc>"?? You mean this?:
michaels> create or replace procedure p (o out varchar2)
as
begin
o := 'Some out variable';
end p;
Procedure created.
michaels> var o varchar2(50)
michaels> exec p(:o)
PL/SQL procedure successfully completed.
michaels> print o
o
Some out variable -
Oracle Stored Procedure with out parameter
Good morning,
Is it possible to use an Oracle stored procedure with out parameters in MII ?
If yes, what is the manipulation to see the values of parameters Out?
Thank youMichael,
This is the MII query template :
DECLARE
STRCOMPTERENDU NVARCHAR2(200);
BEGIN
STRCOMPTERENDU := NULL;
XMII.SP_VALIDATEPROCESSORDERSLIST2 ( STRCOMPTERENDU => [Param.1] );
COMMIT;
END;
and the stocked procedure code
CREATE OR REPLACE PROCEDURE XMII.SP_ValidateProcessOrdersList2(strCompteRendu OUT nVarchar2) IS
tmpVar NUMBER;
debugmode INT;
strClauseSql varchar(2048);
strListPOactif varchar(1024);
dtmTimeStamp DATE;
NAME: SP_ValidateProcessOrdersList
PURPOSE:
REVISIONS:
Ver Date Author Description
1.0 18/06/2008 1. Created this procedure.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: SP_ValidateProcessOrdersList
Sysdate: 18/06/2008
Date and Time: 18/06/2008, 18:45:32, and 18/06/2008 18:45:32
Username: (set in TOAD Options, Procedure Editor)
Table Name: (set in the "New PL/SQL Object" dialog)
BEGIN
tmpVar := 0;
debugmode := 0;
-- lecture date systeme pour time stamp
select sysdate into dtmTimeStamp from dual;
if debugmode = 1 then
DBMS_OUTPUT.put_line('SP_ValidateProcessOrdersList');
end if;
-- insertion du bloc dans le log
insert into LOG_ORDER
(DATE_ORDER,BLOCK_ORDER,ID_LOG_ORDER)
values
(dtmTimeStamp,'SP_ValidateProcessOrdersList',ID_LOG_ORDER.nextval);
Commit;
if debugmode = 1 then
DBMS_OUTPUT.put_line('insertion LOG OK');
end if;
strCompteRendu := '0123456-896;0123456-897';
commit;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
ROLLBACK;
-- insertion du bloc dans le log
insert into LOG_ORDER
(DATE_ORDER,BLOCK_ORDER,ID_LOG_ORDER)
values
(dtmTimeStamp,' ',ID_LOG_ORDER.nextval);
COMMIT;
-- Consider logging the error and then re-raise
RAISE;
END SP_ValidateProcessOrdersList2;
Thanks for your help
Alexandre
Maybe you are looking for
-
Firefox 12.0 will not open on 2nd display by default
I just upgraded to Firefox 12.0. I have a second monitor connected to my MacBook Pro. With Firefox 11 and all previous versions, I had it set up that Firefox would automatically open on the second monitor when I open the program. With Firefox 12, it
-
Does CR 10/11 use temporary folders for....
processing export cammands (like exporting a report to PDF) on a web server when using the .NET setup? If so, what authorities on what folder(s)? Thanks!
-
Problem in creating Human Task Activity in JDeveloper
Dear Experts, I'm very new to JDeveloper & Oracle Bpel PM Server. So I'm trying with sample & demo application. I'm facing lots of issues. Kindly guide me to learn Jdeveloper. Now I'm trying with "Vacation Request" Application to learn about "Human T
-
New photo albums not appearing in iTunes
I upgraded to IOS6. Now when I create a new photo album in iPhoto it does not appear in iTunes when I sync my iPad. I am now no longer able to add photo albums to my iPad. I do not want to use the cloud to manage my photos. Anyone else encounter thi
-
2008 Failover cluster unable to create computer account
Hello, I have created a 2008 R2 Failover cluster and I am trying to add a Fail over File server to this. I get the dreaded Cluster network name resource 'OfMaClusterFS' failed to create its associated computer object in domain 'xxx.domain' for the fo