Passing a value to stored procedure from unix shell script
Hi Dudes
I want a unix shell script to pass value to SQL stored procedure.
Below is the procedure
We have to pass the value to the below procedure in the procedure from a unix script.
out put should be like this when we run the script:
enter the value:
value1 #we have to input this value
and then this value1 need to be passed to odm_load_check('PRE_SANITY',res); in the above procedure.Please help me , i need it very urgent
Last edited by pludi; 03-12-2010 at 03:38 AM..
Reason: code tags, please...
Hi All,
This is a very starnge problem I am having. I have a shell script that calls a stored procedure.
Here's my code in shell script:
sqlplus "userid/pwd" @file.sql
and file.sql has the following statement:
exec my_storedProc;
Now, when I execute my shell script, nothing... (2 Replies)
hai,
can anybody say how to call or to execute an oracle stored procedure in oracle from unix...
thanks in advance.... for ur reply....
by,
leo (2 Replies)
hi all
please tell me how to pass parameters 4m shell script to a DataBase stored procedure.
To be specific i have sybase DB.
i mean i want the syntax of the command..
how to connect to DB, pass user id and password, pass the required parameter to SP..
..
need ur help frnds..
hema (0 Replies)
Here's a shell script snippet.....
cd $ORACLE_HOME/bin
Retval=`sqlplus -s <<eof
$TPDB_USER/april@$TPD_DBCONN
whenever SQLERROR exit 2 rollback
whenever OSERROR exit 3 rollback
set serveroutput on
set pages 999
var status_desc char(200)
var status_code... (1 Reply)
hi
i am calling a oracle stored procedure(in the database) from unix shell scripting (a.sh).
the called stored procedure returns some values through OUT variables
i want to assign the return values of stored procedure in to unix shell script variable.
can you provide me the code.
... (1 Reply)
Hi
i am calling a stored procedure from unix shell like this call
test_proc('0002','20100218');
the stored procedure was giving output
like this dbms_output.put_line(' processed earlier');
i want to see the output in the unix shell where i called.
Thanks
barani (6 Replies)
Hi
i want to call a oracle stored procedure from unix (using bash shell).
consider this is my oracle stored procedure with parameter
create procedure testproc(name IN varchar, age IN Number, id OUT Number )
AS
begin
id=1;
dbms_output.put.line('successfull validation')
end;... (6 Replies)
I am invoking a SQL script from shell script. This SQL script will invoke a stored procedure(which has the OUT parameter). I want to have the OUT parameter in the shell script as a variable. Is this possible? (6 Replies)
Hello all,
I am trying to run stored procrdure from shell script which takes one argument. And also I want to verify in the script whether the script executed successfully. However the Stored procedure is not running from shell script. Manually if I run it update the data in the table.
Can... (29 Replies)
Discussion started by: PriyaSri
29 Replies
LEARN ABOUT NETBSD
timercmp
TIMERADD(3) BSD Library Functions Manual TIMERADD(3)NAME
timeradd -- operations on time structure
SYNOPSIS
#include <sys/time.h>
void
timeradd(struct timeval *a, struct timeval *b, struct timeval *res);
void
timersub(struct timeval *a, struct timeval *b, struct timeval *res);
void
timerclear(struct timeval *tv);
int
timerisset(struct timeval *tv);
int
timercmp(struct timeval *a, struct timeval *b, CMP);
void
timespecadd(struct timespec *a, struct timespec *b, struct timespec *res);
void
timespecsub(struct timespec *a, struct timespec *b, struct timespec *res);
void
timespecclear(struct timespec *ts);
int
timespecisset(struct timespec *ts);
int
timespeccmp(struct timespec *a, struct timespec b, CMP);
DESCRIPTION
These macros are provided for manipulating the timeval and timespec structures described in timeval(3).
The timeradd() and timespecadd() macros add the time information stored in a to b, storing the result in res. With timeradd() the results
are simplified such that the value of res->tv_usec is always less than 1,000,000 (1 second). With timespecadd() the res->tv_nsec member of
struct timespec is always less than 1,000,000,000.
The timersub() and timespecsub() macros subtract the time information stored in b from a and store the resulting structure in res.
The timerclear() and timespecclear() macros initialize the structures to midnight (0 hour) January 1st, 1970 (the Epoch). In other words,
they set the members of the structure to zero.
The timerisset() and timespecisset() macros return true if the input structure is set to any time value other than the Epoch.
The timercmp() and timespeccmp() macros compare a to b using the comparison operator given in CMP. The result of the comparison is returned.
SEE ALSO timeval(3)HISTORY
The timeradd() family of macros first appeared in NetBSD 1.1. These were later ported to FreeBSD 2.2.6. The timespec() family of macros
first appeared in NetBSD 1.2.
BSD June 7, 2010 BSD