Assuming no database connections exist, which of the following will dynamically change the LOCKLIST database configuration parameter for a database named SAMPLE to AUTOMATIC?
A.
UPDATE DB CFG FOR sample USING LOOCKLIST AUTOMATIC IMMEDIATE
B.
UPDATE DB CFG FOR sample USING LOOCKLIST 8192 AUTOMATIC IMMEDIATE
C.
CONNECT TO sample; UPDATE DB CFG FOR sample USING LOCKLIST AUTOMATIC IMMEDIATE; CONNECT RESET;
D.
ATTACH TO db2inst1; UPDATE DB CFG FOR sample USING LOCKLIST AUTOMATIC;
Error in my previous answer, I do not read the key word " will dynamically change " in the question. Then you need a connection to change dynamically the parameter.
Otherwise, you have the following warning :
DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully.
SQL1363W One or more of the parameters submitted for immediate modification
were not changed dynamically. For these configuration parameters, the database
must be shutdown and reactivated before the configuration parameter changes
become effective.
Reference : https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0001987.html
Required connection : Instance. An explicit attachment is not required, but a database connection is recommended when the database is active. If the database is listed as remote, an instance attachment to the remote node is established for the duration of the command. To change a parameter online, you must be connected to the database.
Here, the question says "no database connections exist".
The correct answer is A.
If you want change a database configuration parameter, you do not need to connect to database, only the instance Db2 have to start before changing the database configuration parameter.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
moguta
4 years, 8 months agoyilong
4 years, 11 months agodb2tester
5 years, 1 month agodb2tester
5 years, 1 month agodb2tester
5 years, 1 month ago