We help IT Professionals succeed at work.

DB2 Alter Table Failed

DaveFrazell
DaveFrazell asked
on
961 Views
Last Modified: 2012-02-13
I’m not sure where to begin as I’m not that familiar with the DB2 Data Studio (very familiar with MS SQL Server 2008 Management Studio) but I’ll describe the simple task I’m trying to execute.

What I’m trying to do is change columns in a table through IBM Data Studio 3.1. I can successfully add a column, but I can’t change a column name or delete a column.  When I execute the change plan I get the following error:

CALL SYSPROC.ADMIN_CMD( 'EXPORT TO ./default_DB2INST1_PM__HEADER_Intranet.dat OF IXF SELECT *  FROM DB2INST1.PM_HEADER' )

No authorized routine named "SYSPROC.ADMIN_CMD" of type "PROCEDURE" having compatible arguments was found.. SQLCODE=-440, SQLSTATE=42884, DRIVER=4.12.79

Open in new window


Interestingly enough, I can successfully execute these same changes from the client machine through the IBM Control Center application without any error.

Client OS: Windows 7 64-bit
Client Application: IBM Data Studio 3.1 Administration client
Server OS: Linux Red Hat
Server DB: DB2 Express C V8.2
Comment
Watch Question

ibm control center probably does it differently than the data studio tool
anyhow, you should check if you have permissions to run the admin_cmd stored procedure
Kent OlsenData Warehouse / Database Architect
CERTIFIED EXPERT

Commented:
Hi Dave,

Does the user have permission to run the procedure from sysproc?  

Are you using the same user from the command line as from the Data Studio?


Kent

Author

Commented:
How can I check if I have permissions to run the admin_cmd stored procedure?

Author

Commented:
Did a little more investigation.  I found the system stored procedures (Application Objects\Stored Procedures) and it appears DB2 8.2 doesn't have the stored procedure (admin_cmd) in question.  Is there a workaround or a way to the the SP on this database?  Not sure, but I did find ADMIN_SP_C.  This might be the older version of ADMIN_CMD.

Author

Commented:
Disregard the ADMIN_SP_C comment.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.