سؤال

I am new to configuring memory in db2. I want to create a database using this command:

db2 CREATE DB TEST USING CODESET UTF-8 TERRITORY US AUTOCONFIGURE USING mem_percent 80 APPLY DB ONLY

According to IBM's Knowledge Center:

...the AUTOCONFIGURE command which will generate values for parameters based on your responses to questions about workload characteristics.

Some configuration parameters can be set to AUTOMATIC, allowing the database manager to automatically manage these parameters to reflect the current resource requirements. To turn off the AUTOMATIC setting of a configuration parameter while maintaining the current internal setting, use the MANUAL keyword with the UPDATE DATABASE CONFIGURATION command.

Is there a resource online that will tell me the values that AUTOCONFIGURE based on my current database manager configurations (assuming that I have not modified anything related to memory)? I want to know if not setting certain memory-related configurations will affect the performance of my database. For example, if I don't set configurations like pckcachesz to automatic, what is the default value of it?

هل كانت مفيدة؟

المحلول

You can start by creating the database without using AUTOCONFIGURE. Once it is created use AUTOCONFIGURE with the option APPLY NONE. It will show you what DB2 thinks are better settings.

Many DBAs then use the output of APPLY NONE as input to manually setting the values using update db cfg, it is a common approach.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى dba.stackexchange
scroll top