delete database

sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

delete database

Post by sourceuno »

I'm trying to delete files in my database directory, but it won't let me since the system files are locked. Is there a way to unlock these files?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

delete database

Post by bart »

You should not be manually deleting files in a Texis DB. Use "drop table" and "drop index" instead. Doing otherwise will corrupt the contents of the SYSTEM tables.
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

delete database

Post by sourceuno »

I'm just trying to clean out some disk space and need to delete those files. I tried using "drop table" but those tables are no longer there.
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

delete database

Post by John »

Under NT you can not remove files that are in use by another process. The files are either in use by your application, or you have recently used the database and a database monitor is still running. The database monitor will exit once the database has not been used for a few minutes.
John Turnbull
Thunderstone Software
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

delete database

Post by iclbloom »

So what is the recommend procedure for "blowing away" a database?

Does monitor run for a default of 60sec after tables are removed or no activity?

When monitor stops then the system files/tables can be deleted?

Thanks
Leon Bloom
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

delete database

Post by John »

The database monitor examines the database every 60 seconds. If there has been no activity for 2 minutes, or under Unix if the system tables have been deleted, it will quit. Under Windows the database monitor needs to quit before you can remove the system tables. Running "rmlocks -f <database>" will forcibly destroy all locks on the database, and stop the database monitor.
John Turnbull
Thunderstone Software
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

delete database

Post by iclbloom »

Is rmlocks available on the NT platform? I don't see it in the morph3 directory?

Thanks
Leon Bloom
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

delete database

Post by sourceuno »

I don't see it either in my morph3 directory? Is there an NT equivalent?
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

delete database

Post by John »

The rmlocks program is not currently in NT distributions, as the original form was not needed with NT. You can however use the <sqlcp rmlocks> function in Vortex.
John Turnbull
Thunderstone Software