Skip to Content
author's profile photo Former Member
Former Member

db6conv & online table move

Hello experts,

i am using the DB6CONV 4.09 tool to convert a table online.

I replaced the stored procedure in /db2/db2<sid>/sqllib/functions and issued db2 invoke online_table_move_sp.

DB2 is 9.5 FP6a on AIX.

Restarting the DB is currently not possible.

Is there any other way then restarting db2 to update stored procedures?

Thanks,

Martin

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 11, 2011 at 09:15 AM

    The problem is solved.

    I'll use the latest greatest DB6CONV version, although the implementation in production requires a "little" overhead and time.

    Restarting DB2 is of course not neceassary when using the "invoke" command.

    MfG

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2012 at 08:47 PM

    When trying to correct DB2 DB Deadlocks on VBDATA using saptools procedure (SAP Note1430621) we received the following error from the db2 command prompt

    db2 => call saptools.online_table_move('SAPWAD','VBDATA','WAD#VBDATAD','WAD#VBDATAI','','','','','"VBKEY" VARCHAR(96) NOT NULL WITH DEFAULT '' '' ,"VBMODCNT" INTEGER NOT NULL WITH DEFAULT 0 ,"VBBLKNO" INTEGER NOT NULL WITH DEFAULT 0 ,"VBLEN" SMALLINT NOT NULL WITH DEFAULT 0 ,"VBDATA" VARCHAR(30000) FOR BIT DATA ','MOVE');

    SQL0440N No authorized routine named "SAPTOOLS.ONLINE_TABLE_MOVE" of type

    "PROCEDURE" having compatible arguments was found. SQLSTATE=42884

    and when using the same syntax within a .sql script receive the error:

    jq03a010:db2wad 58> ./onlinemove.sql

    ./onlinemove.sql: Syntax error at line 1: `(' not expected.

    Instead of having to use the ADMIN_TABLE_MOVE procedure, can we use DB6CONV to move special flag "VBDATA" VARCHAR(30000) FOR BIT DATA ', as shown in the script below:

    call saptools.online_table_move(

    'SAPWAD',

    'VBDATA',

    'WAD#VBDATAD',

    'WAD#VBDATAI',

    '',

    '',

    '',

    '',

    '"VBKEY" VARCHAR(96) NOT NULL WITH DEFAULT '' '' ,

    "VBMODCNT" INTEGER NOT NULL WITH DEFAULT 0 ,

    "VBBLKNO" INTEGER NOT NULL WITH DEFAULT 0 ,

    "VBLEN" SMALLINT NOT NULL WITH DEFAULT 0 ,

    "VBDATA" VARCHAR(30000) FOR BIT DATA ',

    'MOVE')

    ;

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.