08-08-2005
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am using sqlplus.
I have the stored procedure name.
How can i print the stored procedure content? (2 Replies)
Discussion started by: kamil
2 Replies
2. Shell Programming and Scripting
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)
Discussion started by: priyamurthy2005
2 Replies
3. Shell Programming and Scripting
Is it possible to pass unix shell arrays in Oracle stored procedure?
Is yes, how?
Thanks (6 Replies)
Discussion started by: superprogrammer
6 Replies
4. Shell Programming and Scripting
Hi,
Can anyone help me with the correct syntax to call a MYSQL stored procedure from a shell script.
I have tried the following, (no input params):
/usr/bin/mysql -uadmin -ppassword call TL_CLENSEDATA();
resulting in error:
/home/hosting/data/scripts/dbclense.sh: line 12: syntax error... (3 Replies)
Discussion started by: kshelluser
3 Replies
5. Shell Programming and Scripting
HI,
I have a similar problem to thread 18264, only I couldn't get it to work.
https://www.unix.com/showthread.php?t=18264
I have a stored procedure which is called by a shell script program. When I run the stored procedure alone or through the shell script, it works fine with output text... (3 Replies)
Discussion started by: dorisw
3 Replies
6. Shell Programming and Scripting
Hi GUYS,
I need to trigger 3 stored procedure at the same time..
I know how to trigger the stored procedure. If anybody can tell me how to trigger 3 different process at the same time parallelly.. that would be helpful..
Thanks for your help in advance,
Magesh (1 Reply)
Discussion started by: mac4rfree
1 Replies
7. Programming
Hi,
Can anyone please let me know where to check if a particular stored procedure exists.
If the procedure exists I want to display some message and if the procedure does not exists i want to exit with error message.
checking from dba_objects doesnt help. suprisingly the procedure i... (3 Replies)
Discussion started by: justchill
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
My stored procedure returns a value.
How to retrieve the value and display in unix.
Stored procedure
CREATE OR REPLACE
PROCEDURE gohan(num INT) IS
BEGIN
DBMS_OUTPUT.PUT_LINE('My lucky number is ' || num);
END;
Unix Scripting i used
sqlplus -s... (7 Replies)
Discussion started by: gohan3376
7 Replies
9. Shell Programming and Scripting
Hello,
I have to call the stored procedure as argument from the unix shell program. Looks like unix doesnt like, can someone comment pls
USERID=scott
PASSWD=xxxxxx
PLSQLCALL=$2
STDT=`sqlplus /nolog <<END >> $LOGFILE
conn ${USERID}/${PASSWD}@${ORACLE_SID}
whenever sqlerror exit failure... (9 Replies)
Discussion started by: tvanoop
9 Replies
10. Shell Programming and Scripting
below code is not executing the stored procedure,not sure what the issue.Even sqllog is blank.please help me its very urgent.
sqlplus -s $connect_str@$DB_ORACLE_SID >> ${SQL_LOG_FILE} << EOF
set serverout on
set feed off
set head off
set pages 0
set colsep ,
set tab off
set lin 150... (3 Replies)
Discussion started by: katakamvivek
3 Replies
LEARN ABOUT DEBIAN
bsqldb
bsqldb(1) FreeTDS Utilities bsqldb(1)
NAME
bsqldb - batch SQL script processor using DB-Library
SYNOPSIS
bsqldb [-U username] [-P password] [-S servername] [-D database]
[-i input_file] [-o output_file] [-e error_file] [-H hostname]
[-t field_term] [-hqv]
DESCRIPTION
bsqldb is a utility program distributed with FreeTDS.
bsqldb is a non-interactive equivalent of the "isql" utility programs distributed by Sybase and Microsoft. Like them, bsqldb uses the com-
mand "go" on a line by itself as a separator between batches. The last batch need not be followed by "go".
bsqldb makes use of the DB-Library API provided by FreeTDS. This API is of course also available to application developers.
OPTIONS
-U username
Database server login name. If username is not provided, a domain login is attempted for TDS 7+ connections.
-P password
Database server password.
-S servername Database server to which to connect.
-D database
Database to use.
-i input_file
Name of script file, containing SQL.
-o output_file
Name of output file, holding result data.
-e error_file
Name of file for errors.
-t field_term
Specifies the field terminator. Default is two spaces (' '). Recognized escape sequences are tab (' '), carriage return ('
'),
newline ('
'), and backslash ('\').
-h Print column headers with the data to the same file.
-H hostname Override name of client sent to server.
-q Do not print column metadata, return status, or rowcount. Overrides -h.
-v Verbose mode, for more information about the DB-Libraryrary interaction. This also reports the result set metadata, including and
return code. All verbose data are written to standard error (or -e), so as not to interfere with the data stream.
ENVIRONMENT
DSQUERY
default servername
NOTES
bsqldb is a filter; it reads from standard input, writes to standard output, and writes errors to standard error. The -i, -o, and -e
options override these, of course.
The source code for bsqldb is intended as a model for DB-Library users. DB-Library has a rich set of functions, and it can be hard some-
times to understand how to use them, particularly the first time. If you are using it in this way and find something unclear, you are
encouraged to email the author your comments.
EXIT STATUS
bsqldb exits 0 on success, and >0 if the server cannot process the query.
bsqldb will report any errors returned by the server, but will continue processing. In a production environment, this behavior may be
insufficiently stringent. To make it extremely intolerant of errors, change the message and error handlers to call exit(3).
HISTORY
bsqldb first appeared in FreeTDS 0.63.
AUTHORS
The bsqldb utility was written by James K. Lowden <jklowden@schemamania.org>
BUGS
Microsoft servers as of SQL Server 7.0 SP 3 do not return output parameters unless the RPC functions are used. This means bsqldb cannot
return output parameters for stored procedures with these servers.
doc 13 November 2011 bsqldb(1)