DB2中数据类型

导读:DB2数据库内置数据类型可以分成数值型(numeric)、字符串型(character string)、图形字符串(graphic string)、二进制字符串型(binary string)或日期时间型(datetime)。还有一种叫做 DATALINK 的特殊数据类型。DATALINK 值包含了对存储在数据库以外的文件的逻辑引用。

数值型数据类型包括 SMALLINT、INTEGER、BIGINT、DECIMAL(p,s)、REAL 和 DOUBLE。所有数值都有符号和精度。精度是指除符号以外的二进制或十进制的位数。如果数字的值大于等于零,就认为符号为正。 继续阅读

Java中的单例模式

单例模式属于对象创建型模式,其意图是保证一个类仅有一个实例,并提供一个访问它的全局访问点。对一些类来说,只有一个实例是很重要的,虽然系统中可以有许多打印机,但却只应该有一个打印机假脱机,只应该有一个文件系统和一个窗口管理器,一个数字滤波器只能有一个A/D转换器,一个会计系统只能专用于一个公司。怎样才能保证一个类只有一个实例并且这个实例易于被访问,一个全局变量使得一个对象可以被访问,但它不能防止你实例化多个对象,一个更好的方法是让类自身负责保存他的唯一实例。这个类可以保证没有其他实例可以被创建,并且它可以提供一个访问该实例的方法,这就是Singleton模式。 继续阅读

z/OS communication server IP configuration guide

Steps to configure SMTP:

  1. Verify TCP/IP profile statements in the TCP/IP profile data set.
  2. Update the SMTP cataloged procedure SEZAINST(SMTPPROC).
  3. Customize the SMTPNOTE CLIST and modify parmlib members.
  4. Customize the SMTP mail headers (optional).
  5. Set up a TCP-to-NJE mail gateway (optional).
  6. Specify configuration statements in the SMTP configuration data set.
  7. Create an SMTP security table (optional).
  8. Enable SMTP domain name resolution.
  9. Enable sending messages to SMTP users and users on an IP Network.
  10. Optionally, design SMTP exit to inspect and filter unwanted mail (spam).

Set up automation to monitor how much mail is queued. 继续阅读