473,746 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error in executing SYSPROC.ALTOBJ procedure

I am getting the following error while trying to alter a table's
column...I am trying to increase the decimal length of the column from
5 to 6 using altobj procedure.

SQL0443N Routine "SYSPROC.ALTOBJ " (specific name "ALTOBJ") has
returned an
error SQLSTATE with diagnostic text "DBA7904, DBAD". SQLSTATE=38553

I looked up the error details, but no much help... Can anyone tell me
what "DBA7904, DBAD" means? Thanks.
RF

Jul 10 '06 #1
7 6280
Try these
1. db2updv8
2. cd $instance/sqllib
chmod 777 tmp

cheers...
Shashi Mannepalli
db2adm1 wrote:
I am getting the following error while trying to alter a table's
column...I am trying to increase the decimal length of the column from
5 to 6 using altobj procedure.

SQL0443N Routine "SYSPROC.ALTOBJ " (specific name "ALTOBJ") has
returned an
error SQLSTATE with diagnostic text "DBA7904, DBAD". SQLSTATE=38553

I looked up the error details, but no much help... Can anyone tell me
what "DBA7904, DBAD" means? Thanks.
RF
Jul 10 '06 #2
I executed 'db2updv8 -d dbname' and then ran the SYSPROC.ALTOBJ, but I
am getting the same error. 'tmp' folder in instance's sqllib folder is
already in 777 mode. Any idea on what is going on? It would be great
help if I can make this procedure run, otherwise, I have to go through
the pain of backing up data, drop table, recreate everything, load
data...there should be a easy way to increase the decimal length...any
idea, please?
Thanks
Shashi Mannepalli wrote:
Try these
1. db2updv8
2. cd $instance/sqllib
chmod 777 tmp

cheers...
Shashi Mannepalli
db2adm1 wrote:
I am getting the following error while trying to alter a table's
column...I am trying to increase the decimal length of the column from
5 to 6 using altobj procedure.

SQL0443N Routine "SYSPROC.ALTOBJ " (specific name "ALTOBJ") has
returned an
error SQLSTATE with diagnostic text "DBA7904, DBAD". SQLSTATE=38553

I looked up the error details, but no much help... Can anyone tell me
what "DBA7904, DBAD" means? Thanks.
RF
Jul 10 '06 #3
db2adm1 wrote:
I am getting the following error while trying to alter a table's
column...I am trying to increase the decimal length of the column from
5 to 6 using altobj procedure.

SQL0443N Routine "SYSPROC.ALTOBJ " (specific name "ALTOBJ") has
returned an
error SQLSTATE with diagnostic text "DBA7904, DBAD". SQLSTATE=38553
SQL0443 long text refers to the db2diag.log. Anything in there?

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jul 10 '06 #4
Yes, something writen there:

FUNCTION: DB2 UDB, oper system services, sqlofica, probe:10
DATA #1 : Hexdump, 136 bytes
0x027CBAE4 : 5351 4C43 4120 2020 0000 0088 FFFF FE45 SQLCA
........E
0x027CBAF4 : 0023 5359 5350 524F 432E 414C 544F 424A
..#SYSPROC.ALTO BJ
0x027CBB04 : FF41 4C54 4F42 4AFF 4442 4137 3930 342C
..ALTOBJ.DBA790 4,
0x027CBB14 : 2044 4241 4420 2020 2020 2020 2020 2020 DBAD
0x027CBB24 : 2020 2020 2020 2020 2020 2020 2020 2020
0x027CBB34 : 2020 2020 2020 2020 5351 4C45 5246 5250
SQLERFRP
0x027CBB44 : 0000 0000 0000 0000 0000 0000 0000 0000
............... ..
0x027CBB54 : 0000 0000 0000 0000 2020 2020 2020 2020 ........
0x027CBB64 : 2020 2033 3835 3533 38553

what is it saying..? Thanks

Serge Rielau wrote:
db2adm1 wrote:
I am getting the following error while trying to alter a table's
column...I am trying to increase the decimal length of the column from
5 to 6 using altobj procedure.

SQL0443N Routine "SYSPROC.ALTOBJ " (specific name "ALTOBJ") has
returned an
error SQLSTATE with diagnostic text "DBA7904, DBAD". SQLSTATE=38553
SQL0443 long text refers to the db2diag.log. Anything in there?

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jul 11 '06 #5


Perhaps you could post the DDL of the table that you are attempting to
modify, plus any of its indexes,constra ints,triggers,v iews and
foreign-keys for that table, and the exact parameters that you are
passing to sysproc.altobj.

Jul 12 '06 #6
Well, this time, I took an example from publib:

CALL SYSPROC.ALTOBJ( 'VALIDATE', CAST (NULL AS VARCHAR(2048)), 123, ?)

I ran it and I get the same error:

SQL0443N Routine "SYSPROC.ALTOBJ " (specific name "ALTOBJ") has
returned an
error SQLSTATE with diagnostic text "DBA7904, DBAD". SQLSTATE=38553

BTW, sometime I get diagnostic text as "SQL0669" in the above error
message. These messages lead to nowhere...I don't know how db2 throw a
diagnostic text which is not given in any of the documents! Anyways,
looks like none have idea about using this procedure...I just take
alternate way to get my things done...
Thanks for your time...

mike wrote:
Perhaps you could post the DDL of the table that you are attempting to
modify, plus any of its indexes,constra ints,triggers,v iews and
foreign-keys for that table, and the exact parameters that you are
passing to sysproc.altobj.
Jul 12 '06 #7
In article <11************ **********@s13g 2000cwa.googleg roups.com>,
ri*********@yah oo.com says...
>
SQL0443N Routine "SYSPROC.ALTOBJ " (specific name "ALTOBJ") has
returned an
error SQLSTATE with diagnostic text "DBA7904, DBAD". SQLSTATE=38553
c:\>db2 ? dba7904

DBA7904N The user does not have "<authority name>" authority,
which is required to run the SYSPROC.ALTOBJ stored
procedure.

Explanation:

Both DBADM and LOAD authorities are required to run the
SYSPROC.ALTOBJ stored procedure.

User Response:

Obtain the necessary authorities before running the stored
procedure.
Jul 12 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3882
by: Sathyaram Sannasi | last post by:
Environment: DB2 V8.2 on AIX I find a SP SYSPROC.DB2LOAD for loading a table using cursors ... I have tried to use the procedure and it seems to work as I want it to .... But, I am unable to find any documentation for the procedure .. Can someone let me know if it is advisable to use this procedure in an application code and whether IBM supports ths use of the procedure .. TIA
5
6838
by: Yaro | last post by:
Hello I have odd problem with simple procedure (DB2. 8.1 FP10 Win32) CREATE PROCEDURE ADM.P_REORG_RUNSTATS(IN par_TabName VARCHAR(128), IN par_Reorg INTEGER,IN par_Runstats INTEGER) SPECIFIC P_REORG_RUNSTATS NOT DETERMINISTIC MODIFIES SQL DATA LANGUAGE SQL NO EXTERNAL ACTION
3
4784
by: Randy | last post by:
I am trying to change a column to NOT NULLABLE and I get the following message. =SQL GENERATED================================================================ CONNECT TO TEST; CALL SYSPROC.ALTOBJ ( 'APPLY_CONTINUE_ON_ERROR', 'CREATE TABLE RANDMAN.ACCTADDRESS ( ACCT BIGINT NOT NULL , FY BIGINT NOT NULL , PROV CHARACTER (2) , AMT DECIMAL (8, 2) ) IN DB2_GAST_DATA ', -1, ? ); ;
7
6990
by: Serge Rielau | last post by:
Hi all, Following Ian's passionate postings on problems with ALTOBJ and the alter table wizard in the control center I'll try to explain how to use ALTOBJ with this thread. I'm not going to get into the GUI because it is hard to describe in text. First of all what is the purpose of ALTOBJ()? This procedure was created mostly for ISVs who need to do produce change scripts to upgrade application from release to release, but it can also
3
3386
by: aj | last post by:
DB2 LUW 8.2 FP14 Red Hat AS 2.1 Can I use SYSPROC.ALTOBJ() to simply rename a table that has complex dependencies (RI, functions, triggers, etc...)? Seems like all the logic is in there to tear down all the dependencies, rename the table, then build the dependencies back up again - but I don't see how to do it.. TIA
1
1486
by: aj | last post by:
DB2 LUW 8.2 FP14 Red Hat AS 2.1 Looks like SYSPROC.ALTOBJ() doesn't copy table and column comments over? Shouldn't it? Yes, I know. I can use ALTOBJ() to create a script, dump it to a text file, add the "COMMENT ON..." statements myself, then execute it. But doesn't copying the comments seem like something that should happen
2
5718
by: Rahul B | last post by:
Hi. I have created a table CREATE TABLE testschema.player ( country VARCHAR(80) NOT NULL, posn VARCHAR(2) not null ) /
0
2065
by: cngtx | last post by:
Hi, I could not figure out why I am getting the following error when I initiated the Insert into the mainframe DB2 table from a server. I have created the trigger and the stored procedure (as shown below). If I insert a row into the table using batch sql job on mainframe, the stored procedure is triggered by the db2 trigger successfully after a row is inserted into the table. However, if I do the same insert through front-end apps using a...
2
8156
by: kya2 | last post by:
I am not able to create following store procedure. CREATE PROCEDURE DBSAMBA.InsertDeleteBatch(OUT norows INT ) RESULT SETS 1 LANGUAGE SQL BEGIN part1 DECLARE TOTAL_LEFT INT DEFAULT 0; SELECT COUNT(*)INTO TOTAL_LEFT FROM DBSAMBA.REPORTEDTRANSACTION_S; WHILE (TOTAL_LEFT > 0) DO
0
8800
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9500
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8227
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4836
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.