Search Results

Search: Posts Made By: monie2717
56,779
Posted By monie2717
Last suggestion worked :) thanks
Last suggestion worked :) thanks
56,779
Posted By monie2717
sorry about that .. done as attachments
sorry about that .. done as attachments
56,779
Posted By monie2717
cognos@sec-dev-sun04 : cat -n ./monie_test.sh ...
cognos@sec-dev-sun04 : cat -n ./monie_test.sh
1 !/bin/sh
2 ###############################################################################
3 #set -vxf
4
5 ...
56,779
Posted By monie2717
edited my post as per u :confused:
edited my post as per u :confused:
56,779
Posted By monie2717
This is my script ..i tried in two ways as you...
This is my script ..i tried in two ways as you mentioned.
Also listed is the errors i am getting
it would be really helpful if you could throw some insight here as u seem to be really good at...
56,779
Posted By monie2717
thanks... but i am using single quotes in my...
thanks... but i am using single quotes in my script
56,779
Posted By monie2717
code : TODAY=$(date) ...
code :

TODAY=$(date)
ORACLE_HOME=/opt/oracle/product/9.2.0
ORACLE_SID=$1
echo "Date is Fridayyyyy: $TODAY"
x=$($ORACLE_HOME/bin/sqlplus -s report/report@$ORACLE_SID <<EOF
set heading off...
56,779
Posted By monie2717
it says invalid character. probably due to the...
it says invalid character. probably due to the quotes in the where clause of select query.
56,779
Posted By monie2717
Thanku so so much
thanks so much .. ! ur code worked like magic :b:
thanks a lot.

---------- Post updated at 09:25 PM ---------- Previous update was at 08:57 PM ----------

I have another problem now ..
It...
56,779
Posted By monie2717
thanks for the code . but both of them throws the...
thanks for the code . but both of them throws the following error on my system

Date is Fridayyyyy:
Count = ERROR:
ORA-01741: illegal zero-length identifier
56,779
Posted By monie2717
it does not work .. can this be achieved without...
it does not work .. can this be achieved without a pl sql block
and using just a select query and a linux variable .
56,779
Posted By monie2717
Yeah the code works gud. But the value of x and...
Yeah the code works gud. But the value of x and var turns out null.
Any idea why.. infact var should atleast be 0 since its been initialized
56,779
Posted By monie2717
Thanks for the prompt reply. Variable still...
Thanks for the prompt reply. Variable still displays nulls. Is thr something major i am missing.
( Am a total novice in this )
56,779
Posted By monie2717
Shell script to catch PL/SQL return values
I tried searching the forum for similar posts but its closed now.
Would appreciate any help on this.
I am trying to capture return value from a select query into a variable.
DB is Oracle
I am...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 06:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy