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)
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 Guys,
I have a stored procedure which has 5 out parameters. I need to call the stored procedure from the script.
When i use the following in my script,
db2 "CALL FCFM.PART_MASTER_TMP($Return_code,$Message,$Message1,$SQL,$Load_count)" >> $LOG_FILE
I am getting an error..
Please... (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,
Can you assist me in how to redirect the output of oracle stored procedure from unix script?
Something similar to what i did for sybase
isql -U$MYDBLOG -D$MYDBNAME -S$MYDBSVR -P$MYDBPWD -o$MYFILE<< %%
proc_my_test 8
go
%%
Thanks in advance - jak (0 Replies)
I have written a stored procedure in oracle database, which is having a CLOB OUT parameter. How can i call this stored procedure from shell script and get the CLOB object in shell script variable? (0 Replies)
Hi Everyone,
I want to create a script where i need to run the oracle stored procedure from unix script and get the output(sequence number ) into a variable which i will pass in my datastage job.
Below is my stored procedure:-
DECLARE
P_TRANSTYPE VARCHAR2(20);
... (4 Replies)
Discussion started by: prasson_ibm
4 Replies
LEARN ABOUT DEBIAN
ns_setconnlocationproc
Ns_Location(3aolserver) AOLserver Library Procedures Ns_Location(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
Ns_SetConnLocationProc, Ns_SetLocationProc - Set the location procedure to use
SYNOPSIS
#include "ns.h"
void
Ns_SetConnLocationProc(Ns_LocationProc *procPtr)
void
Ns_SetLocationProc(char *ignored, Ns_LocationProc *procPtr)
_________________________________________________________________DESCRIPTION
These functions set the procedure to run when a call to Ns_ConnLocation is made. The location is defined in the form METHOD://HOST-
NAME:PORT, e.g. http://myhost.com:8443.
Setting the location procedure with these functions will cause all calls to Ns_ConnLocation to use the location procedure you define
instead of using the location procedure callback in the communication module for the connection.
There may be cases where you want to do this. For example, you could create a location procedure that reports on the values returned by
communication module location procedure callbacks. At the end of that procedure, you could then return that value after logging the infor-
mation making your location procedure is effectively transparent to the server and other modules.
Ns_SetConnLocationProc(procPtr)
Set the function to use when Ns_ConnLocation is called. This function is deprecated. Use Ns_SetLocationProc instead.
Ns_SetLocationProc(ignored, procPtr)
Set the function to use when Ns_ConnLocation is called. The ignored argument is reserved for future use.
SEE ALSO nsd(1), info(n), Ns_ConnLocation(3)KEYWORDS AOLserver 4.0 Ns_Location(3aolserver)