DB2 10.5 for Linux, UNIX, and Windows

Reads on standby restrictions

You can use the reads on standby feature of high availability disaster recovery (HADR) to run read-only workloads on an HADR active standby database. In addition to the read-only restriction, this feature has other limitations that you should be aware of.

Data and table types
  • Declared global temporary tables (DGTTs) are not supported on the standby.
  • Created global temporary tables (CGTTs) can be created only on the primary database. Their definitions are replicated to the standby. However, access to CGTTs is not supported on the standby.
  • The creation of CGTTs on the primary triggers the replay-only window on the standby.
  • Tables with the NOT LOGGED INITIALLY (NLI) attribute cannot be accessed on the standby.
  • Column-organized tables cannot be accessed on the standby.
  • XML and large object (LOB) data must be inline to be successfully queried.
  • You cannot query the following data: long field (LF), a distinct type based on LF data types, structured type columns, and varying-length string data (that is, data that resides in extended rows).
Operations
  • Write operations, namely operations that modify permanent database objects such as catalogs, tables, and indexes, are not permitted on the standby. In particular, you cannot perform any operation that generates log records on the standby.
  • Explain tools (the db2exfmt and db2expln commands) and the db2batch command are not supported on the standby. If you want to analyze performance of the read-only workload, run these tools on the primary, make the necessary optimizations to the workload on the primary, and then move the optimized workload to the standby.
  • Explicit binding of packages, explicit rebinding of packages, and implicit rebinding of packages are not supported on the standby. Attempts to run static packages that refer to invalidated objectsresult in an error. Instead, bind the package on the primary and run the package on the standby after replicating the change to the standby.
  • The self-tuning memory manager (STMM) is not supported on the standby. If you want to tune the standby, either to suit running the read-only workload or to help the standby to perform well after takeover, you must do so manually.
  • Workload manager (WLM) DDL statements on the primary are replayed on the standby, but they are not effective on the standby. However, any definitions in the database backup that you used to set up the standby are active on a read-enabled standby.
  • Creation and alteration of sequences is not supported on the standby. As well, you cannot use the NEXT VALUE expression to generate the next value in a sequence.
  • Runtime revalidation of invalid objects is not supported on the standby.
  • Backup and archive operations are not supported on the standby.
  • Quiesce operations are not supported on the standby.
  • The db2ReadLog API cannot be called on the standby.
  • You cannot use the automatic client reroute (ACR) if you enable the reads on standby feature.