문제

I'm using the latest version of IBM Data Studio 4.1.2.0

I tried to reorg a table using IBM Data Studio after some alterations on the table with this command.

reorg table MYTABLE;

This command shows an error

REFRESH was expected instead of reorg

But even after using the REFRESH command, the table doesn't come out of the "reorg pending" state.

The same command when I tried it via the DB2 Command Line Processor worked perfectly fine.

Any suggestions on how to to enable the REORG command in Data Studio or is it not supported at all?

도움이 되었습니까?

해결책

I guess you tried to run it in an editor window. YOu have to switch to

DB2 server Command Line Processor

in the Configuration tab of the editor. Do not forget to explicitly connect to your database

connect to sample ;
reorg table suppliers;

Alternatively you could switch to "Administer Databases" and run the reorg from the contect menu of a table:

enter image description here

다른 팁

 CALL SYSPROC.ADMIN_CMD( 'REORG TABLE SCHEMA.TABLENAME' )
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top