Beruflich Dokumente
Kultur Dokumente
adds a row to a database table. UPDATE statement The UPDATE statement changes one or more values stored in zero or more rows. DELETE FROM statement The DELETE FROM statement removes zero or more rows. SELECT function The SELECT function retrieves data from a table. CALL statement The CALL statement invokes a stored procedure. PASSTHRU statement The PASSTHRU statement can be used to invoke administrative operations, such as creating a table. PASSTHRU function The PASSTHRU function can be used to invoke complex selects. You can access user databases from Compute, Database, and Filter nodes; you can use the same ESQL statements and functions to access databases in all three types of node. A single node can access multiple databases but the following restrictions apply: Any node that accesses one or more databases must have its Data source property set with the ODBC data source name (DSN) of a database; the database must be accessible and operational, and the broker must be authorized to connect to it. All databases that are accessed from a single node must be compatible with each other. If you use the same database manager on the same platform at the same service level for all the databases, the data sources will be compatible. For example, two DB2 database instances at the same DB2 fix pack level are compatible but a DB2 database and an Oracle database are not compatible. If you use data sources that are not compatible, when you put a message through the message flow to test it, the message flow throws an error. If your data sources are not compatible, you cannot access them from a single node; if this is the case, use additional nodes in your message flow. All tables that are referred to in a single SELECT functions FROM clause must be in the same database.
To access databases, you must ensure that suitable ODBC data source names (DSN) have been defined on the system on which the broker is running. On Linux on System z and Linux on POWER, the only supported database manager is DB2 and ODBC is not used; the broker and
message flows connect to the databases directly. When you configure message flows, use the DB2 alias of the database as the DSN. If you have used the mqsisetdbparms command to set a user ID and password for a particular database, the broker uses these values to connect to the database. If you have not set values for a particular database, the broker uses the default database user ID and password that you supplied on the mqsicreatebroker command, or the user ID and password details that you specified if you have modified the broker using the mqsichangebroker command.
If you are using DB2 for your database, the default action is to limit the number of concurrent connections to a database to the value of the maxappls configuration parameter. The default for maxappls is 40. If you believe that the connections that the broker might require exceeds the value for maxappls, increase this and the associated parameter maxagents to new values based on your calculations. If you are using another database, check the database documentation for information about connections and the limits or restrictions that might apply. When a message flow is idle, the execution group periodically releases database connections. Therefore, connections held by the broker reflect the broker's current use of these resources. This situation allows the broker to respond when a database quiesces, provided that the database manager supports quiescing. Not all databases support the quiesce function, and not all databases quiesce in the same way. Check your database documentation for information about database quiescing.
If you are using the same database for several brokers, include all brokers in your calculations. When you start a broker, it opens all connections that it needs to the broker database for its own operation. When you stop the broker, it releases all current database connection handles. The broker also opens connections to WebSphere MQ queues and to user databases when it needs to use them, and these connections remain open until: The connection has been idle for one minute The broker is stopped
On Linux, UNIX, and Windows systems, to avoid breaking global coordination, database connections are released only for message flows that are not globally coordinated. On z/OS, database connections for globally coordinated message flows are also released if the database has not been accessed for one minute. If you are using DB2 for your database, the default action taken by DB2 is to limit the number of concurrent connections to a database to the value of the maxappls configuration parameter. The default for maxappls is 40. Increase this parameter and the associated parameter maxagents to new values based on your calculations, if appropriate.
Whether the execution group and the database instance operate in 32-bit or 64-bit mode Whether you plan to globally coordinate message flow transactions