Query logging can be begun or ended dynamically for a maximum of 100 users per BEGIN QUERY LOGGING request. When more than 100 users are to be logged, you must submit a second BEGIN QUERY LOGGING request. For active users, query logging begins as soon as they perform their next SQL request.