Yes, that behavior is expected.
The original SQL query is logged in DBQL. The SELECT ? commands are logged separately, and in addition to, the original query.
The SELECT ? commands are from the JDBC Driver, ODBC Driver, or .NET Data Provider and are executed automatically when an application reads data from a LOB. Normally the client-side drivers work with LOB locators, but when an application requests the LOB data, then the client-side driver must "materialize" the LOB data on the client side. The client-side driver does that by executing the special SELECT ? command.
↧