473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

dropping tables inside a shell script

hi im having a hard time here....my script should drop a list of tables:
drop_table.sql

DROP TABLE RECEIVE_SUPPLIER_AVQ_MESSAGE
/
DROP TABLE RECEIVE_CSR_MESSAGE
/
DROP TABLE RECEIVE_LSR_PO_NF_MESSAGE
/
DROP TABLE RECEIVE_LOOPQUAL_MESSAGE
/
DROP TABLE RECEIVE_LSR_MESSAGE
/
DROP TABLE RECEIVE_ASR_MESSAGE
/
DROP TABLE RECEIVE_ASR_CKR
/
DROP TABLE RECEIVE_ASR_ECCKT
and i call the drop_table.sql on one of my scripts.
but when i tried running it...it says:.
/tibco_drop.sql: DROP: not found
./tibco_drop.sql[2]: /: cannot execute

Please help....thanks...
Jun 18 '07 #1
1 2870
Motoma
3,237 Expert 2GB
hi im having a hard time here....my script should drop a list of tables:
drop_table.sql

DROP TABLE RECEIVE_SUPPLIER_AVQ_MESSAGE
/
DROP TABLE RECEIVE_CSR_MESSAGE
/
DROP TABLE RECEIVE_LSR_PO_NF_MESSAGE
/
DROP TABLE RECEIVE_LOOPQUAL_MESSAGE
/
DROP TABLE RECEIVE_LSR_MESSAGE
/
DROP TABLE RECEIVE_ASR_MESSAGE
/
DROP TABLE RECEIVE_ASR_CKR
/
DROP TABLE RECEIVE_ASR_ECCKT
and i call the drop_table.sql on one of my scripts.
but when i tried running it...it says:.
/tibco_drop.sql: DROP: not found
./tibco_drop.sql[2]: /: cannot execute

Please help....thanks...

Could you post the relevant code from the script that calls the file?
Jun 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Jon Perez | last post by:
(sorry for the duplicate post, just wanted to make the subject line clearer) How do you set up pdb such that you will automatically get dropped into its prompt if an unanticipated exception...
7
by: Ross Mallett | last post by:
I have to drop large numbers of test tables (> 200) fairly often. This operation seems to be very slow. Is there some way to speed up the process of dropping tables?
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
5
by: Troels Arvin | last post by:
Hello, Every so often, I'm asked to help people recover data from tables that were either dropped or where to much data was DELETEed. The complications related to restoring data are a problem....
1
by: DWiggin | last post by:
We are getting deadlock errors (sporadically) on a batch job we've created. This job runs against a SQL Server 2000 back-end. The first step of the batch job is to run a DDL script to drop...
3
by: telduivel | last post by:
Can someone please help me with this: I have a python script, that at some point calls a linux bash script (.sh). Starting the shell script is the last thing my python script needs to do, so I...
16
by: Okonita via DBMonster.com | last post by:
Hi all, I am comming along with all this Linus/DB2/scripting business...I am no longer scared of it!! (LOL). But, I need to create a .ksh script that does a REORGCHK and output only tables...
7
by: Samuel A. Falvo II | last post by:
I have a shell script script.sh that launches a Java process in the background using the &-operator, like so: #!/bin/bash java ... arguments here ... & In my Python code, I want to invoke...
1
by: rasmidas | last post by:
Hi, I have written a shell script, in which I am connecting to the oracle database and doing some manipulation. while I am running the script, its showing me the messages I am displaying in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.