If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Drop the database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-03, 21:22
santi4 santi4 is offline
Registered User
 
Join Date: Nov 2003
Location: Ortigas, Manila Philippines
Posts: 10
Drop the database

Hi!

I'm planning on creating a dbimport script that will be used by our operators to automatically restore our db in our devt environment. However, i'm having problems in dropping the database without using the dbaccess.

Is there another way on dropping the database without using dbaccess?

Any suggestions will be highly appreciated...

Thank you very much!
Reply With Quote
  #2 (permalink)  
Old 11-12-03, 08:06
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: Drop the database

Quote:
Originally posted by santi4
Hi!

I'm planning on creating a dbimport script that will be used by our operators to automatically restore our db in our devt environment. However, i'm having problems in dropping the database without using the dbaccess.

Is there another way on dropping the database without using dbaccess?

Any suggestions will be highly appreciated...

Thank you very much!
Hi,

You can use the following, into script:

#!/bin/ksh
base=$1
dbaccess 2>/dev/null <<EOF
drop database $base
EOF
..................


Gustavo.
Reply With Quote
  #3 (permalink)  
Old 11-12-03, 19:59
santi4 santi4 is offline
Registered User
 
Join Date: Nov 2003
Location: Ortigas, Manila Philippines
Posts: 10
Thanks again Gustavo!!!
Good Day!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On