Search Results

Search: Posts Made By: YoYo
16,234
Posted By YoYo
i wanna funciton A (p1 number) { return...
i wanna

funciton A (p1 number)
{
return v2,
}

MM()
{
somehow call the function A and use the return value;

}
16,234
Posted By YoYo
how can I call a pl/sql funciton in unix script
who can show me how to call pl/sql function or precudure in unix script..

cheers,
2
2,137
Posted By YoYo
Thanks, I will check it tomorrow.
Thanks, I will check it tomorrow.
8,800
Posted By YoYo
set pagesize 0
set pagesize 0
2
2,137
Posted By YoYo
telnet
Now my task is
there are two servers A and B.
i only can put unix script in server A and database is on server B.

can I write a script in serer A which could telnet to server B and run the...
2,493
Posted By YoYo
excellent. You r my hero. many thanks
excellent.

You r my hero.

many thanks
2,493
Posted By YoYo
doesnt work.
doesnt work.
2,493
Posted By YoYo
empty line
new problem comes out..

unix script calls sql script and save the output into a file. but now there are many empty lines in the output file.

first line is empty and follow by 13 rows of data...
39
7,113
Posted By YoYo
oh..yeah. i got . / after query.:P...
oh..yeah.

i got

.
/
after query.:P

by the way, the first line is empty how can i delete it.
39
7,113
Posted By YoYo
it looks like printout twice. does it because...
it looks like printout twice. does it because select twice?
however I have tried another query and just format it in the select statement, it printed the result twice as well.
39
7,113
Posted By YoYo
I did use mine before u mentioned that so i think...
I did use mine before u mentioned that so i think it is not the reason
39
7,113
Posted By YoYo
I tried. but it printed out the result twice. ...
I tried. but it printed out the result twice.

Thanks anyway
39
7,113
Posted By YoYo
nah..cos i got a cursor outside this code.
nah..cos i got a cursor outside this code.
39
7,113
Posted By YoYo
actually our code structure are exactly same but...
actually our code structure are exactly same but mine one still doesnt work
39
7,113
Posted By YoYo
i tried but same error msg. it said...
i tried but same error msg.

it said encounter Case and expecting some symbols as +,_....
39
7,113
Posted By YoYo
what does trimspool on mean
what does trimspool on mean
39
7,113
Posted By YoYo
the original query looks like: select /*+...
the original query looks like:

select /*+ ordered index (a fk_event_hist_1) */
trunc(start_dtg) as tran_date
, a.event_code
, b.event_desc
, sum(case when error_text like...
39
7,113
Posted By YoYo
I have rewritten the query and made it work. but...
I have rewritten the query and made it work. but i still got another 3 querys.

any other way to escape the keyword case in the sql query so that I dont need rewrite them?
8,800
Posted By YoYo
many thanks for your help. i have sorted out....
many thanks for your help. i have sorted out. silly mistake.
cheers.
8,800
Posted By YoYo
I had thought probably I mistyped...
I had thought probably I mistyped something,however, I checked it again and again, the answer is no.

is it possible to cause this problem because of the system?

one more difference is i got...
8,800
Posted By YoYo
but why I added that line and it still doesnt...
but why I added that line and it still doesnt work.
8,800
Posted By YoYo
gonna go home now and wil be back online in a...
gonna go home now and wil be back online in a hour, maybe half.
Thanks for your help.
cheers
8,800
Posted By YoYo
i tried,no change. however I think as I save the...
i tried,no change. however I think as I save the output in a file so it doesnt matter whether I set serveroutput on or not. not sure right.
8,800
Posted By YoYo
I couldnt send email to you. so i just put the...
I couldnt send email to you. so i just put the script here

timeout(){
`$ORACLE_BIN/sqlplus -s $user/$passwd << EOM >output.csv
set verify off
set heading off
set feedback off
declare
cursor...
8,800
Posted By YoYo
can I email you my unix script, quite long though
can I email you my unix script, quite long though
Showing results 1 to 25 of 43

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