TSM学习之数据库

一、TSM数据库

1.TSM数据库自带IBM自身的DB2数据库,该DB2是经过一定的调整和修改的,集成了很多DDL语言,支持精确的查询,并且IBM本身也不建议再对TSM的数据库进行新的编译和修改。

2.改数据库主要包括的内容:

  1.客户端节点和管理员组

  2.策略和计划任务

  3.服务器的设置

  4.本地客户端端在服务器存储中

  5.服务器操作(例如,活动日志和时间记录)

数据库管理器广利数据库的卷,不需要对其进行格式化。

3.数据库是很重要的,一旦数据库内容丢失,将使得整个备份都不可用和不可恢复。所以必须要对数据库进行备份。因为数据库记录了很多的内容,即使没有原数据文件,也可以恢复出其中的许多重要信息,所以有可能的话,可以对数据库内容信息进行加密。

4.数据库可以保存分布在最多128个目录中,支持最大为2TB的数据库。应当将其放置到快速,可靠配置为随机访问的I/O接口上。

5.数据库不能通过TSM最镜像,但可以用硬件做镜像,比如用RAID5。

二、TSM数据库的优点

1.自动备份

每次当服务器启动时,就自动进行一次数据库的全备份。数据库的备份触发条件有两个:

第一是根据active log自上次备份的消耗量,是的触发一次数据库的全备份。第二是根据active Log的阀值设定,触发增量的数据库备份。

When the server is started for the first time, a full backup begins automatically. When the server is next started, the database manager automatically backs up the database according to the following values set by Tivoli Storage Manager:

※The active log space consumed since the last backup, which triggers a full database backup

※The active log utilization ratio, which triggers an incremental database backup

2.自动统计信息收集

自动统计信息收集有助于提高数据库性能通过收集最新表统计信息。数据库管理器确定哪些数据需要被更新。

3.数据库自动重组

Based on activity, the database manager program analyzes selected database tables to determine when reorganization is needed for the tables. The database manager then runs a reorganization while server operations continue. If the database reorganization puts too heavy a workload on the CPU, processing is reduced or halts.

4.SQL查询

The database makes more sophisticated SQL queries on the data possible.. To take advantage of these capabilities, SQL skills might be required to develop new tools and SQL statements.

5.数据库审计

Database audits are run automatically, as needed, to ensure consistency. As data is added to the server database, the database manager checks data constraints and data types. Online integrity checks can prevent problems for which offline audits had been needed in earlier releases.

6.数据库缓冲池大小

The database manager automatically adjusts the values for several memory configuration parameters based on the requirements of the workload of the system.

三、Recovery Log

1.Recovery Log Mode

The Tivoli® Storage Manager server always runs in a mode that is equivalent to the roll-forward mode.

Changes to the database are recorded in the recovery log to maintain a consistent database image. Active and archive log files, which are included in database backups, let you restore the server to the latest time possible. You can also restore the database to a specific point in time.

To help ensure that the required log information is available for restoring the database, you can specify that the active log is mirrored to another file system location. For the best availability, locate the active log mirror on a different physical device.

2.回复日志为了帮助确保失败(例如系统短点或者应用错误)没有离开,使得数据库处于不一致的状态。如果你想恢复数据库,恢复日志是必须的。一旦失败出现,那些没有提交的事物将会被回滚。那些所有已经提交的事物,可能没有被物理的写入磁盘,将会重做。

3.恢复日志包括以下几个日志:

   1.Active log

   2.log mirror (可选)

   3.archive log

   4.archive failover log (可选)

  在安装过程中,可以指定目录的位置,活动日志的大小和归档日志的位置。还可以指定日志镜像来保证活动日志。你指定的恢复日志江北数据库管理器程序自动进行管理。根据需要使用的空间,产生定义好的目录。不需要创建和格式化回复日志。必须确保回复日志有足够的空间可以使用。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值