When your code hits an error, your code invokes the whenever clause return the error value to the calling shell. You set the error number to what you need in the clause.
You did not mention what shell you are using but with most shells the the variable $? is the value of the return code from the previous process, you can also call wait to get a return code.
A bash example of wait would be:
Note carefully. Remove the cat command because it will interfere with the return code you want. --
All of this is based on some assumptions, if you need more help please give us the specific shell and version of AIX and Oracle.
This User Gave Thanks to jim mcnamara For This Post:
Hi,
I am trying to pass some of the variables in my shell scripts to the sqlplus call and use them as parameters.
For example, I would like to replace the 'SAS', and '20050612' with $var1 and $var2, respectively, how can I do that?
--------------------------------------------------------... (1 Reply)
Hi,
I am writing a ksh script which will use sqlplus to run a sql and pass 2 variables as the SQL request. In the ksh script, I have 2 variables which are $min_snap and $max_snap holding 2 different numbers.
Inside the same script, I am using SQLPLUS to run an Oracle SQL script,... (6 Replies)
hi fellows,
can any body tell me how to pass unix variables to oracle
code is...
#! /bin/ksh
echo ENTER DATE VALUE's
read START_DATE END_DATE
sqlplus xyx/abc@oracle
select * from table1 where coloumn1 between $START_DATE and $END_DATE;
is this is correct way...........
Thanks in... (1 Reply)
Hi,
Currently i have a .sql file 1.sql.
I need to pass that as a parameter through a shell script to the sqlplus inside the same shell script.
How I should I do.can anyone help me pls.
I have an req where I need to send the .sql file and the place where the script has to create a .csv... (9 Replies)
if
then
# mail -s "Import failed file does not exist" sanjay.jaiswal@xyz.com
echo "FILE does not exist"
exit 1
fi
echo "FILE EXIST"
size=-1
set $(du /export/home/oracle/nas/scott21.dmp.gz)
while
do
echo "Inside the loop"
size=$1
set $(du... (1 Reply)
I have a script that "runs" a script. For example:
./runscript.ksh pcnmc01.ksh
runscript puts pcnmc01.ksh into the background with log output going to the logfile.
After executing the command, I get this output:
Running script in the background: pcnmc01.ksh
Logfile:... (2 Replies)
Gurus,
The issue I'm having is that my Shell won't accept SQL parameters properly......
Here's they way I'm running it....
applmgr@ga006hds
=> sh CW_MigrationDeployScript.sh apps <appspwd> <SID> '01-JAN' '31-MAR'
The process just hangs not submitting the SQL job...
... (3 Replies)
i have file in which i have employee id are there and every time number of employee id are different in file means number of count of employee id in file are every time different.
343535435
365765767
343534543
343543543
i want to pass this file to sqlplus
and sql command is
... (7 Replies)
Hi Team,
I am trying to run a sqlplus script against several databases via a FOR/LOOP and also passing the loop variable to a sqlplus script I am calling, as follows:
#!/bin/bash
export ORACLE_SID=plgc1
export ORACLE_HOME=/opt/oracle/product/11.2.0.2/db_1
export... (1 Reply)
Discussion started by: jonnyd
1 Replies
LEARN ABOUT CENTOS
gnome-shell
GNOME-SHELL(1) gnome-shell GNOME-SHELL(1)NAME
gnome-shell - Graphical shell for the GNOME desktop
SYNOPSIS
gnome-shell [OPTION...]
DESCRIPTION
GNOME shell provides core user interface functions for the GNOME 3 desktop, like switching to windows and launching applications. GNOME
shell takes advantage of the capabilities of modern graphics hardware and introduces innovative user interface concepts to provide a
visually attractive and easy to use experience.
gnome-shell is a required component of the GNOME desktop, i.e. it is listed in the RequiredComponents field of
/usr/share/gnome-session/sessions/gnome.session. It is started in the window manager phase of the session.
OPTIONS -r, --replace
Replace the running window manager
--sm-disable
Disable connection to the session manager
--sm-client-id=ID
Specify session management ID
--sm-save-file=FILE
Initialize session from FILE
--screen=SCREEN
X screen to use
-d, --display=DISPLAY
X Display to use
--sync
Make X calls synchronous
--version
Print version and exit
--help
Display help and exit
--mode=MODE
Use a specific mode, e.g. "gdm" for login screen
--list-modes
List possible modes and exit
--clutter-display=DISPLAY
Clutter the option display (otherwise ignored)
FILES
/usr/share/gnome-session/sessions/gnome.session, /usr/share/applications/gnome-shell.desktop.
BUGS
The bug tracker can be reached by visiting the website https://bugzilla.gnome.org/buglist.cgi?product=gnome-shell. Before sending a bug
report, please verify that you have the latest version of gnome-shell. Many bugs (major and minor) are fixed at each release, and if yours
is out of date, the problem may already have been solved.
ADDITIONAL INFORMATION
For further information, visit the website http://live.gnome.org/GnomeShell.
gnome-shellGNOME-SHELL(1)