2009-10-21 42 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),並得到輸出,你一樣,當我嘗試設置註冊表變量(如預期)。