Unix Technical Forum

Not possible to drop a new database

This is a discussion on Not possible to drop a new database within the Sybase forums, part of the Database Server Software category; --> I create a database on a server. I have had some problem with storage Because I am not specialist ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 07:08 PM
jean-claude.uran
 
Posts: n/a
Default Not possible to drop a new database

I create a database on a server.
I have had some problem with storage
Because I am not specialist abaout Unix I mixed some JFS and raw devices for a new database.
I have some messages as database was bindind on cache. I dont make cache.

Now I can access the database and I have no possibility to drop it.

Inside the sysdatabase table on master my database has a bad status
May somebody help me.
JCU

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 07:08 PM
wkraatz@csc.com
 
Posts: n/a
Default Re: Not possible to drop a new database


jean-claude.uran wrote:
> I create a database on a server.
> I have had some problem with storage
> Because I am not specialist abaout Unix I mixed some JFS and raw devices for a new database.
> I have some messages as database was bindind on cache. I dont make cache.
>
> Now I can access the database and I have no possibility to drop it.
>
> Inside the sysdatabase table on master my database has a bad status
> May somebody help me.
> JCU


Have you tried the "dbcc dbrepair (database_name, dropdb)" command?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 07:08 PM
jean-claude.uran
 
Posts: n/a
Default Re: Not possible to drop a new database

Thank you,

Yes I tried the "dbcc dbrepair (database_name, dropdb)" command, but without
success.
I am at home, and I dont remember exactly but with this command I get an
error message.


<wkraatz@csc.com> a écrit dans le message de
news:1130771106.323551.3380@o13g2000cwo.googlegrou ps.com...
>
> jean-claude.uran wrote:
> > I create a database on a server.
> > I have had some problem with storage
> > Because I am not specialist abaout Unix I mixed some JFS and raw devices

for a new database.
> > I have some messages as database was bindind on cache. I dont make

cache.
> >
> > Now I can access the database and I have no possibility to drop it.
> >
> > Inside the sysdatabase table on master my database has a bad status
> > May somebody help me.
> > JCU

>
> Have you tried the "dbcc dbrepair (database_name, dropdb)" command?
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 07:08 PM
bret@sybase.com
 
Posts: n/a
Default Re: Not possible to drop a new database

We will be much more likely to be able to help you once you post the
exact actual error messages you are getting.

-bret

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 07:08 PM
jean-claude.uran
 
Posts: n/a
Default Re: I get a solution


<bret@sybase.com> a écrit dans le message de
news:1130805739.114577.163370@g44g2000cwa.googlegr oups.com...
> We will be much more likely to be able to help you once you post the
> exact actual error messages you are getting.
>
> -bret
>


The messages and the solution

The command and the messages are:

use pegase_ece_prd
Database 'pegase_ece_prd' is unavailabble. It is being bound to a named
cache.

dbcc dbrepair (pegase_ece_prd, dropdb)

Database 'pegase_ece_prd' is not marked suspect. You cannot drop it with
DBCC

Somebody propose me this solution and it was OK

/*sp_configure 'alllow updates', 1*/

/* update sysdatabases set status = 320 where name = 'pegase_ece_prd'*/
/*shutdown with nowait*/

/* dbcc dbrepair (pegase_ece_prd, dropdb)*/


Thank you to everybody



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:29 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com