DB2 Log Files

I need some help with DB2 database. I am new to DB2 and would like to perform a backup of log files. I right-clicked on a specific database and selected "Configure Parameters" and under "LOGS"  there is an option "LOGARCHMETH1" and its value can be changed. Could somebody help me understand the meaning of these values and its purpose:

1. Userexit
2. Logretain
3. Disk
4. TSM
5. Vendor


In DB2, how many important/critical log files are generated during transactions and what are the names of these log files?

ben1211Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ghp7000Commented:
You cannot backup the log files by themselves. In DB2, there are two types of backups, offline and online. Offline means that in order for the database backup to be taken, no users can be connected to the database, therefore all transactions are committed and the offline log files are not needed. Once the offline database backup is started, no users can connect to the database. When the offline database backup is restored, a new set of log lfiles is built upon first connection to the database, the number and size of the logfiles is determined by the database configuration parameters LOGFILSIZ AND LOGPRIMARY. The entire database configuration is also part of the database backup.
For an online database backup, users can still work while the backup is being taken. Hence the log files are needed. But they are not backup up, they are archived. To acheive on line backup, set the parameter LOGARCHMETH1 to userexit. When you do this, the log archiving is controlled by the db2uext2.ctsm program, and in this program you can set all the parameters simply by changing the program. See this link:
http://publib.boulder.ibm.com/infocenter/db2luw/v8//topic/com.ibm.db2.udb.doc/admin/r0000249.htm?resultof=%22%75%73%65%72%65%78%69%74%22%20
When you change to userexit, logretain should switch to yes.
TSM means Tivoli Storage Manager and is alternate way to manage to database backup, tablespace backup and restore operations. If you dont use the product, you dont have to do anything with these parameters. For the disk and vendor settings, could you post which parameters these settings are referring to?




Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB2

From novice to tech pro — start learning today.