2009-10-21 72 views
0

我安装DB2 9.7快车后,我试图启用DB2通过以下命令来支持PL/SQL:DB2 9.7不能启用PL/SQL语法

DB2SET DB2_COMPATIBILITY_VECTOR=ORA 

然后我得到如下结果:

DBI1301E Invalid value. 

Explanation: 

The value specified for the registry variable is invalid. 

User response: 

Refer to the DB2 Information Center to determine the valid values for 
the registry variable. 

可以肯定,我执行db2set命令的列表中的所有DB2寄存器:

C:\Documents and Settings\Administrator>db2set -lr | find "COMP" 
DB2_PMAP_COMPATIBILITY 

为什么我的数据库不知道DB2_COMPATI BILITY寄存器?

PS。这是我的DB2版本

DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL09070" with 
level identifier "08010107". 
Informational tokens are "DB2 v9.7.0.441", "s090521", "NT3297", and Fix Pack 
"0". 
Product is installed at "C:\PROGRA~1\IBM\SQLLIB" with DB2 Copy Name "DB2COPY1". 

回答

2

从文档中,此功能在Express,Express-C或Personal版本中未启用。

DB2 9.7 Infocenter - Restrictions on PL/SQL support

我已经安装(相同的构建 - s090521)DB2 9.7 Express-C的(Linux的AMD64),并得到输出,你一样,当我尝试设置注册表变量(如预期)。