Search Results

Search: Posts Made By: WhoDatWhoDer
4,422
Posted By Scott
One thing springs to mind. When you ran the SQL...
One thing springs to mind. When you ran the SQL from within SQL*Plus (@RCV_SHIPMENT....), you wound up, at the end, with:


SQL>


(the SQL prompt, i.e. you're still inside SQL*Plus)
...
8,638
Posted By panyam
How about "spool" with "append" option in all...
How about "spool" with "append" option in all these .sql files.
8,638
Posted By Peasant
Something like : runsql () { sqlplus...
Something like :

runsql () {
sqlplus /nolog << EOF
conn user/pass@$ORACLE_SID
@$1
exit
EOF
}
for i in *.sql # (array, list, whatever)
do
runsql $i | grep ORA-
if [[ $? -gt 0 ]]; then...
3,387
Posted By getmmg
#=> GMT+11 is the comment part. If you want to...
#=> GMT+11 is the comment part. If you want to change the actual time zone change it like this


@time=gmtime(time +(11*3600)); #=> GMT +11


Also you dont the shell scripts.

Just run...
3,387
Posted By getmmg
This should do it, replace the perl part in your...
This should do it, replace the perl part in your code.


perl -e '
use POSIX qw(strftime);
use Time::Local;
@inp = split(/-/,$ARGV[0]);
$epochTime = timegm(0,0,0,$inp[2],$inp[1],$inp[0]);...
3,387
Posted By jim mcnamara
This is what the TZ variable does #!/bin/ksh...
This is what the TZ variable does

#!/bin/ksh
# input format YYYY-MM-DD prints day name
dow() ...
3,119
Posted By DGPickett
Big operations especially transactions are a drag...
Big operations especially transactions are a drag on any system. They lack locality of reference, run at disk speed not RAM and CACHE speeds. Do an hour, day, week at a time and wait between batches...
3,119
Posted By vgersh99
Why do you need 4 scripts? Create just one script...
Why do you need 4 scripts? Create just one script and have it figure out what day of the it's running on and make determination based on that what year to run the 'conversion' for - should be pretty...
3,119
Posted By DGPickett
Sometimes, you can impose a different time zone...
Sometimes, you can impose a different time zone on the session, else subtract 4 hours from time using oracle time arithmetic.

Quoted quotes seems overkill, but if it works, great! I prefer to...
3,119
Posted By jim mcnamara
Use TZ variable to set the time zone. You did...
Use TZ variable to set the time zone. You did not specify your OS, so a solaris example

TZ=US/Atlantic

Lose the perl, use

dow=`date +%A`

BE CAREFUL when you use relative paths (./) in...
Showing results 1 to 10 of 10

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