![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Piping / Executing | ProFiction | Shell Programming and Scripting | 3 | 07-23-2007 01:58 PM |
| Not executing during startup | mhenryj | AIX | 2 | 06-13-2006 05:52 PM |
| [AIX] executing script | piooooter | UNIX for Dummies Questions & Answers | 1 | 05-26-2006 12:53 AM |
| Errors while executing a.out | nirthana | High Level Programming | 1 | 06-05-2003 03:05 PM |
| Executing ksh script from cgi | hodges | Shell Programming and Scripting | 1 | 05-27-2003 10:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
need some help in executing sql
i am stuck with a problem ...
i have a shell script that gets the file name as input and performs the following operation... it runs through a for loop inside from which i connect to sqlplus and run a procedure that creates a number of tables .. there is no space in my server so we have made them as temporary tables .. problem is ..... since they are temporary tables when the session expires the data in them vanishes .... but i do not want the data to vanish ... problem in that is that without exiting from the sql server i cannot get the value of the next filename ... ....sample code : for filename in `ls *.in` do log "$filename: loading" echo "Begin" >in.sql echo "execute immediate 'truncate table input_data1';" >>in.sql echo "end;" >>in.sql echo "/" >>in.sql echo `sqlplus -s ${ORACLE_USERNAME}/${ORACLE_PASSWORD} <in.sql` echo `exit` echo "Begin" >in.sql echo "loading_gtt;" >>in.sql echo "end;" >>in.sql echo "/" >>in.sql echo `sqlplus -s ${ORACLE_USERNAME}/${ORACLE_PASSWORD} <in.sql` echo `exit` the procdure in bold is what is going to create all the temporay tables ... the value of which expire when i close the session.... pls help ... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|