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?
delete database
-
bart
- Posts: 251
- Joined: Wed Apr 26, 2000 12:42 am
delete database
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
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.
-
John
- Site Admin
- Posts: 2623
- Joined: Mon Apr 24, 2000 3:18 pm
- Location: Cleveland, OH
delete database
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
Thunderstone Software
-
iclbloom
- Posts: 103
- Joined: Mon May 07, 2001 5:51 pm
delete database
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
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
-
John
- Site Admin
- Posts: 2623
- Joined: Mon Apr 24, 2000 3:18 pm
- Location: Cleveland, OH
delete database
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
Thunderstone Software
-
iclbloom
- Posts: 103
- Joined: Mon May 07, 2001 5:51 pm
delete database
Is rmlocks available on the NT platform? I don't see it in the morph3 directory?
Thanks
Leon Bloom
Thanks
Leon Bloom
-
sourceuno
- Posts: 225
- Joined: Mon Apr 09, 2001 3:58 pm
delete database
I don't see it either in my morph3 directory? Is there an NT equivalent?
-
John
- Site Admin
- Posts: 2623
- Joined: Mon Apr 24, 2000 3:18 pm
- Location: Cleveland, OH
delete database
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
Thunderstone Software