优化IBMDB2数据库缓冲池
另一个极大影响性能的配置参数是数据库缓冲池大小。
Another configuration parameter that dramatically affects performance is the database buffer pool size.
将所有数据库缓冲池的大小设置为AUTOMATIC。
数据库缓冲池通常是数据库共享内存中最大的一块内存。
The database buffer pool(s) area is normally the largest component of the database shared memory.
用户数量、视图的大小和数量,以及数据库数量都会影响到您设置缓冲池规格的方式。
The number of users, size and number of views, and number of databases all affect how you should set the buffer pool specification.
每个数据库都至少需要一个缓冲池。
数据库记录是在内存的缓冲池区域里被读取和更新的。
Database records are read and updated in the buffer pool area of memory.
当您设计缓冲池时,您应该考虑数据库的内存需求。
When you design buffer pools, you should consider the database memory requirements.
每一个DB 2数据库都必须至少拥有一个缓冲池。
Each DB2 database must have at least one single buffer pool.
这使得您可以选择需要的任何页面大小,并且在整个数据库仍然维护一个缓冲池和统一的页面大小。
This gives you the ability to choose any page size you want, and still maintain a single buffer pool and uniform page size across the database.
缓冲池的用途是为了提高数据库系统的性能。
The purpose of the buffer pool is to improve database system performance.
这是用于数据库分区组、缓冲池和表空间的布局。
This is the layout for database partition groups, buffer pools and tablespaces.
除了缓冲池,排序是影响数据库性能的另一重要因素。
Besides the buffer pool, sort is another significant factor that impacts the database performance.
缓冲池竞争可以成为数据库性能中的重要因素。
Buffer pool contention can be a significant factor in database performance.
但是请记住,缓冲池是数据库共享内存集中的一部分。
However, keep in mind that buffer pools are part of the database Shared memory set.
如果数据库没有启动,那么就不能连接到数据库,也就不能更改缓冲池的大小。
If the database is not started, you cannot connect to the database and change the buffer pool sizes.
而所有的缓冲池是在数据库被激活时被分配的。
All buffer pools are allocated when the database is activated.
这意味着DB 2无法启动数据库,因为一个数据库至少必须有一个缓冲池。
That means DB2 cannot start the database, because a database must have at least one buffer pool.
例如,如果用8KB页面大小创建一个新的数据库,那么所有表空间默认的缓冲池将是8 KB。
For example, if you create a new database with an 8 KB page size, the default buffer pool for all the table Spaces will be 8 KB.
下图演示当小型数据库的并发性上升时,缓冲池的大小产生的影响。
The figures that follow show the effect of buffer pool size when the amount of concurrency was increased with smaller databases.
预定义的ROT功能组织在缓冲池、数据库、表空间和SQL活动集群中。
The predefined ROT functions are organized in a buffer pool, database, table space and SQL activity cluster.
显然,随着数据库服务器上物理内存的使用,高缓冲池命中率对于您的数据库性能而言始终比较好。
Obviously, with availability of physical memory on the database server, a high buffer pool hit ratio is always better for your database performance.
为了确定数据库中的缓冲池大小,请查看清单3。
To determine the buffer pool size in the database, take a look at Listing 3.
这时,应该连接到数据库,并减少主缓冲池的大小。
When this happens, you should connect to the database and reduce the size of the main buffer pools.
此外,每一个数据库可拥有自己的数据库配置文件、目录表、日志、保留的缓冲池区域和表空间。
In addition, each database has its own database configuration file, catalog tables, logs, reserved buffer pool area, and table Spaces.
创建DB 2数据库、缓冲池和表空间,使用大于4k的页面大小。
Create DB2 database, buffer pool, and tablespace with more than 4k.
尝试减少这两个数据库的缓冲池大小。
生成缓冲池、表空间和数据库分区组信息。
Generate buffer pool, tablespace, and database partition group information.
要确定数据库的缓冲池大小是否由BUFFPAGE参数所决定,请运行。
To determine whether the BUFFPAGE parameter is in use for buffer pool size of database, run.
对于DB 2Version8及更高版本,可以在不关闭数据库的情况下更改缓冲池大小。
With DB2 Version 8 and higher, you can change buffer pool sizes without shutting down the database.
应用推荐