Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Provided Answers: 11


    you could at least indicate the db2 level and platform
    look at doc at :
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5-V11 Fundamentals- DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

  2. #2
    Join Date
    Sep 2014
    First of all sorry for the empty body in my previous message, I don't understand why it was empty, I created a complete description and clicked public as usually ... My DB 2 version is DB2 LUW 9.7 .

    When wrote this question I knew about the DB2_COMPATIBILITY_VECTOR registry variable and my question was focused in checking is PL/SQL is enabled but using a sql query and not db2set command. Now I have discovered that there is catalog table that stores all registry variables SYSIBMADM.REG_VARIABLES, but have a differen problem:

    REG_VAR_VALUE field in that table is in varchar format and it can contain ORA,SYB,MYS or any hexadecimal value between 0 and FFFF in what is bit mask. The bit that indicates PL/SQL enabled is bit number 12 (0x800 in hexadecimal) and I am trying to do something to convert it to int so that I can execute something like:

    if bitand (REG_VAR_VALUE_as_int, 0x800) = 0x800 then ...

    Any idea how to do this ?.

    Thanks in advance.

  3. #3
    Join Date
    Jun 2003
    Toronto, Canada
    Provided Answers: 1
    You could just try executing a PL/SQL anonymous block and catch the syntax error.
    "It does not work" is not a valid problem statement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts