2.4.5 Changing a Database's Logfile

You can change the transaction log file of a database with toolkit as follows:

gifs/20000000.gif Start toolkit on your database:

c:\> toolkit dbname

gifs/20000000.gif Select 6 - Database Menu from the Toolkit Development Menu.

gifs/20000000.gif Select D4 - Define/Change Database Logfile from the Database Menu.

gifs/20000000.gif Enter the new log file name and press STORE <F5>, or press CANCEL <F1>-X to leave the old log file name unchanged. The file name you enter must be either an absolute pathname, or a pathname relative to the home directory of the database.

gifs/20000000.gif After you press STORE <F5>, toolkit creates a new, empty log file and updates the database catalog.

You can change the log file name of a database with the following commands:

c:\> makelog logpath

c:\> dbadmin -vu -L logpath dbname

The log file name, logpath, must be either an absolute pathname, or a pathname relative to the database home directory. The makelog command insures that logpath names a new, empty transaction log file.