BIND and REBIND options for packages and plans

There are several options you can use for binding or rebinding plans and packages. Some of the options are common for both bind and rebind and for both plans and packages.

Defaults: The default for an option is the value used if you omit the entire option.

  • A default of plan value for BIND PACKAGE means that the default is the same as the value determined during the bind or rebind of the plan to which the package is appended at run time.
  • A default of existing value for REBIND PLAN or REBIND PACKAGE means that the default is the value that was determined during the previous bind or rebind of the plan or package that you are rebinding.

Catalog records: The DB2® catalog records information about plans and packages, chiefly in the tables SYSIBM.SYSPLAN and SYSIBM.SYSPACKAGE. The descriptions of where the options record information omit the constant qualifier, SYSIBM, of those table names.

For all other cases, the option descriptions note the specific defaults, which DB2 assigns at bind time. If a specific default value exists, that value is underlined.

    • ACQUIRE bind option
      The ACQUIRE bind option specifies
      that resources for the packages in the plan are to be acquired when
      the application first accesses them.
    • ACTION bind option
      The ACTION option determines whether the object (plan or
      package) replaces an existing object with the same name or is new.
    • APCOMPARE bind option
      The APCOMPARE option determines whether the new access paths are different from the older
      access paths.
    • APPLCOMPAT bind option
      The APPLCOMPAT option specifies the package compatibility
      level behavior for static SQL.
    • APRETAINDUP bind option
      The APRETAINDUP option determines whether or not DB2 retains an old package copy
      when access paths of the old copy are identical to the incoming copy.
    • APREUSE bind option
      The APREUSE option specifies whether DB2 tries to
      reuse previous access paths for SQL statements in a package. DB2 uses
      information about the previous access paths from the directory to create
      a hint.
    • ARCHIVESENSITIVE bind option
      The ARCHIVESENSITIVE option determines whether references to archive-enabled tables in
      both static and dynamic SQL statements are affected by the value of the SYSIBMADM.GET_ARCHIVE global
      variable.
    • BUSTIMESENSITIVE bind option
      The BUSTIMESENSITIVE option determines whether references
      to application-period temporal tables in both static and dynamic SQL
      statements are affected by the value of the CURRENT TEMPORAL BUSINESS_TIME
      special register.
    • CACHESIZE bind option
      The CACHESIZE option determines the size (in bytes) of
      the authorization cache acquired in the EDM pool for the plan.
    • COLLID bind option
      The COLLID option specifies that any DBRMs in the plan
      are to be bound to packages.
    • CONCURRENTACCESSRESOLUTION bind option
      The CONCURRENTACCESSRESOLUTION option specifies which concurrent
      access resolution option to use for statements in a package.
    • COPY bind option
      The COPY option copies an existing package, and names that
      package.
    • CURRENTDATA bind option
      The CURRENTDATA option determines whether to require data
      currency for read-only and ambiguous cursors when the isolation level
      of cursor stability is in effect. It also determines whether block
      fetching can be used for distributed, ambiguous cursors.
    • CURRENTSERVER bind option
      The CURRENTSERVER option determines the location to connect
      to before running a plan.
    • DBPROTOCOL bind option
      The DBPROTOCOL option
      specifies the protocol to be used when connecting to a remote site.
    • DEFER and NODEFER bind options
      The DEFER and NODEFER options determine whether to defer
      preparation for dynamic SQL statements that refer to remote objects,
      or to prepare them immediately.
    • DEGREE bind option
      The DEGREE option determines whether to attempt to run
      a query using parallel processing to maximize performance.
    • DEPLOY bind option
      The DEPLOY option deploys
      a non-inline SQL function or a native SQL procedure.
    • DESCSTAT bind option
      The DESCSTAT option determines whether DB2 builds a DESCRIBE SQL descriptor area (SQLDA)
      when binding static SQL statements.
    • DISCONNECT bind option
      The DISCONNECT option determines which remote connections
      to destroy during commit operations.
    • DYNAMICRULES bind option
      The DYNAMICRULES option determines the rules that apply
      at run time for certain dynamic SQL attributes.
    • ENABLE and DISABLE bind options
      The ENABLE and DISABLE options determines which connections
      can use a plan or package.
    • ENCODING bind option
      The ENCODING option specifies the application encoding
      for all host variables in static statements in a plan or package.
    • EXPLAIN bind option
      The EXPLAIN option causes the bind
      process to obtain information about how SQL statements in the package
      or packages are to execute.
    • EXTENDEDINDICATOR bind option
      The EXTENDEDINDICATOR option determines whether DB2 recognizes extended indicator
      variables when the associated package is run.
    • FILTER bind option
      The FILTER option lets you delete a set of queries in the
      SYSIBM.SYSQUERY table under a {tag} value that is specified by the
      SYSQUERY.USERFILTER column.
    • FLAG bind option
      The FLAG option determines the messages to display during
      the bind process.
    • GENERIC bind option
      The GENERIC option specifies one or more bind options that
      are supported by the target server, but are not supported as options
      for BIND PACKAGE or REBIND PACKAGE on the DB2 for z/OS® subsystem
      on which the BIND or REBIND command is issued.
    • GETACCELARCHIVE bind option
      The GETACCELARCHIVE bind option specifies whether a static
      SQL query that is bound for acceleration retrieves archived data on
      the accelerator, instead of active data.
    • IMMEDWRITE bind option
      The IMMEDWRITE option indicates whether immediate writes
      are to be done for updates that are made to group buffer pool dependent
      page sets or partitions.
    • ISOLATION bind option
      The ISOLATION option determines how far to isolate an application
      from the effects of other running applications.
    • KEEPDYNAMIC bind option
      The KEEPDYNAMIC option determines whether DB2 keeps dynamic SQL statements after commit points. .
    • LIBRARY bind option
      The LIBRARY option determines what
      partitioned data set or zFS file path to search for the DBRM that
      is listed in the MEMBER option.
    • MEMBER bind option
      The MEMBER option determines
      what database request modules (DBRMs) to include in the package.
    • OPTHINT bind option
      The OPTHINT option controls whether access paths that are
      specified in PLAN_TABLE instances are used for static SQL statements.
    • OPTIONS bind option
      The OPTIONS option specifies which bind options to use
      for the new package when the COPY option is specified.
    • OWNER bind option
      The OWNER option determines the authorization ID of the
      owner of a plan or package.
    • PACKAGE bind option
      The PACKAGE option determines the packages to bind or rebind.
    • PATH bind option
      The PATH option determines the SQL path that DB2 uses to resolve unqualified stored procedure
      names in CALL statements, in user-defined data types, and in functions.
    • PATHDEFAULT bind option
      The PATHDEFAULT option resets the
      PATH value for a package or plan to SYSIBM, SYSFUN, SYSPROC, SYSIBMADM, plan
      qualifier
      , or to SYSIBM, SYSFUN, SYSPROC, SYSIBMADM, package
      qualifier
      .
    • PKLIST and NOPKLIST bind options
      The PKLIST option determines the packages to include in
      a package list. The NOPKLIST option deletes packages from a package
      list.
    • PLAN bind option
      The PLAN option determines the plan or plans to bind or rebind.
    • PLANMGMT bind option
      The PLANMGMT option retains, during a rebind operation,
      all relevant package information (such as metadata, query text, dependencies,
      authorizations, and access paths) in catalog tables and in the directory.
    • PROGAUTH bind option
      The PROGAUTH option specifies whether DB2 performs program authorization checking to
      determine whether DB2 can execute
      a plan.
    • QUALIFIER bind option
      The QUALIFIER option determines the implicit qualifier
      for unqualified names of tables, views, indexes, and aliases contained
      in the plan or package.
    • QUERYACCELERATION bind option
      The QUERYACCELERATION bind option specifies whether a static
      SQL query is bound for acceleration, and if so, with what behavior.
    • QUERYID bind option
      The QUERYID option frees entries in the SYSIBM.SYSQUERY
      table, and the SYSIBM.SYSQUERYPLAN table or the SYSIBM.SYSQUERYOPTS
      table.
    • RELEASE bind option
      The RELEASE option determines when to release resources
      that a program uses, either at each commit point or when the program
      terminates.
    • REOPT bind option
      The REOPT option specifies whether DB2 determines an access path at run time by
      using the values of host variables, parameter markers, and special
      registers.
    • ROUNDING bind option
      The ROUNDING option specifies the rounding mode at bind
      time. Use rounding mode to manipulate DECFLOAT data.
    • SQLERROR bind option
      The SQLERROR option determines whether to create a package
      if SQL errors occur.
    • SQLRULES bind option
      The SQLRULES option determines whether you can execute
      a type 2 CONNECT statement to an existing SQL connection, according
      to DB2 rules.
    • SWITCH bind option
      The SWITCH option causes the previous copy or original
      copy of a package to become the current copy of the package.
    • SYSTIMESENSITIVE bind option
      The SYSTIMESENSITIVE option specifies whether references
      to system-period temporal tables in both static and dynamic SQL statements
      are affected by the value of the CURRENT TEMPORAL SYSTEM_TIME special
      register.
    • VALIDATE bind option
      The VALIDATE option determines whether to recheck, at run
      time, errors of the types "OBJECT NOT FOUND" and "NOT AUTHORIZED"
      that are found during bind or rebind.

DB2 bind on z/os的更多相关文章

  1. OGG for DB2 z/OS 12.2版本发布

    2016-04-15 Oracle发布了GoldenGate for DB2 z/OS  12.2.0.1.2.可以从OTN或eDelivery下载,该版本是ogg for DB2 z/OS的第一个1 ...

  2. db2 bind on luw

    https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.apdv.embed.doc/doc/c000556 ...

  3. z/os上的tar和gzip(3)

    前面两篇文章分别讲过了如何合并并压缩批量文件,如何解压缩并恢复批量文件, 这些问题解决了之后还剩下一个大问题,如何在网络上传输这些压缩过的文件,如果是linux的话非常简单,制定binary,然后ge ...

  4. 在DB2 for z/os上创建指定pagesize的数据库

    ASNTDIFF的diff table有一列类型为varchar 15000,z上创建db默认的pagesize是4K,无法创建table,所以需要创建一个大pagesize的database. db ...

  5. DB2 Z/os Load utility 使用

    Use the LOAD online utility to load one or more tables of a table space. The LOAD utility loads reco ...

  6. DB2 for Z/os Statement prepare

    The PREPARE statement creates an executable SQL statement from a string form of the statement. The c ...

  7. Index on DB2 for z/OS: DB2 for z/OS 的索引

    可以创建在任何表上的索引: Unique Index:An index that ensures that the value in a particular column or set of col ...

  8. REORG TABLESPACE on z/os

    这个困扰了我两天的问题终于解决了,在运行这个job时:总是提示 A REQUIRED DD CARD OR TEMPLATE IS MISSING NAME=SYSDISC A REQUIRED DD ...

  9. Python for z/OS

    Install pythondev Install DB2 or server driver package easy_install ibm_db Get license file from tor ...

随机推荐

  1. 《Lua程序设计 第二版》学习笔记一

    Lua简介 Lua是一种简单.可拓展.可移植及高效的脚本语言. 开始 Lua之间不需要分隔符 运行方式: Linux下: lua -i prog dofile("lib1.lua" ...

  2. ORACLE 数据库建了非法表后无法操作和删除问题

    问题描述: oracle 用PL/SQL DEVELOPER 可视化建表时,表名没有按照规范,建立一个非法格式的表 ICD-10th-Version (中间有横杆,非法).但是不知道怎么回事却建成功了 ...

  3. Spring 事务知识

    1.1  Spring注解的各种行为 事物传播注解: @Transactional(propagation=Propagation.REQUIRED) (常用) 如果有事务, 那么加入事务, 没有的话 ...

  4. BZOJ1483——[HNOI2009]梦幻布丁

    1.题目大意:这题就是给你一个序列,有两个操作,一个是询问序列中的连续段数,比如序列 1 2 2 1就是三段.. 1是一段,2 2 又是一段,1又是一段,就是相同的在一起,第二个操作就是将其中的一种数 ...

  5. 剑指Offer 调整数组顺序使奇数位于偶数前面

    题目描述 输入一个整数数组,实现一个函数来调整该数组中数字的顺序,使得所有的奇数位于数组的前半部分,所有的偶数位于位于数组的后半部分,并保证奇数和奇数,偶数和偶数之间的相对位置不变.     思路: ...

  6. velocity使用知识总结

    1.后台传递List<bean> ,前台循环获取 List<Lead> leads = leadService.getAllLeadLists(); mv.addObject( ...

  7. respberry pi3 上手随记

    入门篇: raspberry 官网: https://www.raspberrypi.org/ 各个系统镜像下载地址: https://www.raspberrypi.org/downloads/ 树 ...

  8. 关于在android 4.2.2 上运行runlmbench

    在剑锋的基础上加一些自己笔记,让自己更懂一些这个流程. 参考:http://www.cnblogs.com/zengjfgit/p/5731655.html runlmbench 是一款在linux ...

  9. iOS9开发者测试版下载地址(系转载)

    将链接复制后,打开迅雷即可下载!请根据自己的手机型号下载.不需要udid绑定.开发者账号,下载后直接升级即可.请根据自己的手机型号将链接复制 打开迅雷 点击立即下载即可.不过好像Mac版的迅雷下载不了 ...

  10. mysql 表关联查询报错 ERROR 1267 (HY000)

    解决翻案:http://stackoverflow.com/questions/1008287/illegal-mix-of-collations-mysql-error 即: SET collati ...