If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Error - DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Sep 2007
Posts: 1
DB2 Error - DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC:

Hi all

My application J2EEruns in jboss. I have migrated my database from a windows machine to a Linux machine.

Jboss is starting without any error
The application runs fine when running with the database in the windows machine. But when i try to run it with the database in the Linux machine (which is migrated from windows). It shows the following in the log file,


ERROR [http-0.0.0.0-8080-1] com.infosys.saas.ecomm.catalog.dao.CatalogmasterDA OImpl - Error at the time of executing the query = CatalogmasterSearchQuery.Message B2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC: cataloguser.TCATALOG_MASTER
com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC: cataloguser.TCATALOG_MASTER

Help neded to fix this.



Thankx in advance,
Gokul
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Jan 2003
Posts: 4,098
This is the documentation on your error:

LCAD-->? sql204


SQL0204N "<name>" is an undefined name.

Explanation:

This error is caused by one of the following:

o The object identified by "<name>" is not defined in the
database.

o A data type is being used. This error can occur for the
following reasons:

- If "<name>" is qualified, then a data type with this name
does not exist in the database.

- If "<name>" is unqualified, then the user's function path
does not contain the schema to which the desired data type
belongs.

- The data type does not exist in the database with a create
timestamp earlier than the time the package was bound
(applies to static statements).

- If the data type is in the UNDER clause of a CREATE TYPE
statement, the type name may be the same as the type
being defined, which is not valid.

o A function is being referenced in one of:

- a DROP FUNCTION statement

- a COMMENT ON FUNCTION statement

- the SOURCE clause of a CREATE FUNCTION statement

If "<name>" is qualified, then the function does not
exist. If "<name>" is unqualified, then a function of
this name does not exist in any schema of the current function
path. Note that a function cannot be sourced on the COALESCE,
NULLIF, or VALUE built-in functions.



This return code can be generated for any type of database
object.

Federated system users: the object identified by "<name>" is not
defined in the database or "<name>" is not a nickname in a DROP
NICKNAME statement.

Some data sources do not provide the appropriate values for
"<name>". In these cases, the message token will have the
following format: "OBJECT:<data source> TABLE/VIEW", indicating
that the actual value for the specified data source is unknown.

The statement cannot be processed.

User Response:

Ensure that the object name (including any required qualifiers)
is correctly specified in the SQL statement and it exists. For
missing data type or function in SOURCE clause, it may be that
the object does not exist, OR it may be that the object does
exist in some schema, but the schema is not present in your
function path.

Federated system users: if the statement is DROP NICKNAME, make
sure the object is actually a nickname. The object might not
exist in the federated database or at the data source. Verify
the existence of the federated database objects (if any) and the
data source objects (if any).

sqlcode : -204

sqlstate : 42704


Basically what it saying is that cataloguser.TCATALOG_MASTER does not exist.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On