| |
|
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.
|
 |
|

03-09-10, 09:57
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 5
|
|
Can't drop view
|
|
Hi to all!
I have installed DB2 9.7 FP1 on AIX OS. I have activate ORACLE COMPATIBILITY
If i try drop view DB2 give me this response:
DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=HCSUITE.SQL100308144713000, DRIVER=3.50.152
Message: "HCSUITE.SQL100308144713000" is an undefined name.. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.50.152
but the "HCSUITE.SQL100308144713000" i haven't create and i can not drop it.
Can you help me please?
Thanks.
D.
|
|

03-09-10, 10:51
|
|
:-)
|
|
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,229
|
|
Why do you think it's a view?
|
|

03-09-10, 10:55
|
|
Registered User
|
|
Join Date: Nov 2005
Location: IL
Posts: 552
|
|
|
|
What is the problem? It tells you that object you are trying to drop is not there in plain English.
BTW. I have never seen that naming convention used in the views. That resembles a PK that was auto created.
Run the following and post output.
db2 list tables for all | grep -i SQL100308144713000
I bet it will come back empty.
db2 "select indname, uniquerule from syscat.indexes where indname = 'SQL100308144713000'"
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
DB2 v9.1.0.2 os 5.3.0.0
|
|

03-10-10, 05:49
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 5
|
|
this command
Quote:
Originally Posted by Cougar8000
db2 list tables for all | grep -i SQL100308144713000
I bet it will come back empty.
|
return empty
Quote:
Originally Posted by Cougar8000
db2 "select indname, uniquerule from syscat.indexes where indname = 'SQL100308144713000'"
|
this statement retunt empty.
When i tried to recreate view "create or replace view ...."
DB2 give me this error:
[Error] Script lines: 1-20 -------------------------
DB2 SQL Error: SQLCODE=-901, SQLSTATE=58004, SQLERRMC=unable to retrieve function pd, DRIVER=3.50.152
Message: The SQL statement failed because of a non-severe system error. Subsequent SQL statements can be processed. (Reason "unable to retrieve function pd".). SQLCODE=-901, SQLSTATE=58004, DRIVER=3.50.152
I tried to catalog and found that the only point in citing that function is in the view syscat.ROUTINEDEP...
have you any idea?
|
|

03-10-10, 08:11
|
|
:-)
|
|
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,229
|
|
Apparently, in your view definition you attempt to use a function named "pd", which is not implemented properly in the database.
|
|

03-10-10, 11:43
|
|
Registered User
|
|
Join Date: Jul 2009
Location: NY
Posts: 816
|
|
Quote:
Originally Posted by danieles
Hi to all!
I have installed DB2 9.7 FP1 on AIX OS. I have activate ORACLE COMPATIBILITY
If i try drop view DB2 give me this response:
DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=HCSUITE.SQL100308144713000, DRIVER=3.50.152
Message: "HCSUITE.SQL100308144713000" is an undefined name.. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.50.152
but the "HCSUITE.SQL100308144713000" i haven't create and i can not drop it.
Can you help me please?
Thanks.
D.
|
Nomastei ! Show your query, before show the error. Could be funny.
Lenny
|
|

03-10-10, 14:57
|
|
Registered User
|
|
Join Date: Nov 2005
Location: IL
Posts: 552
|
|
Show us the DDL that you are trying to run.
Quote:
return empty
|
If I give you ZERO dollars. How much bread can you buy with it?
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
DB2 v9.1.0.2 os 5.3.0.0
|
|

03-10-10, 15:47
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
|
|
|
|

03-10-10, 15:50
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
|
|
Quote:
Originally Posted by Cougar8000
If I give you ZERO dollars. How much bread can you buy with it?
|
If depends on where you're. 
|
|

03-10-10, 15:54
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
|
|
Quote:
Originally Posted by danieles
DB2 give me this error:
[Error] Script lines: 1-20 -------------------------
DB2 SQL Error: SQLCODE=-901, SQLSTATE=58004, SQLERRMC=unable to retrieve function pd, DRIVER=3.50.152
Message: The SQL statement failed because of a non-severe system error. Subsequent SQL statements can be processed. (Reason "unable to retrieve function pd".). SQLCODE=-901, SQLSTATE=58004, DRIVER=3.50.152
|
-901 could be a db2 bug
|
|

03-10-10, 16:29
|
|
Registered User
|
|
Join Date: Jul 2009
Location: NY
Posts: 816
|
|
Quote:
Originally Posted by db2girl
-901 could be a db2 bug
|
Can you guess what is the country in the world produce the maximum number of "DB2 BUGS" ?
Lenny
|
|

03-10-10, 16:38
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
|
|
This is a very tough question to answer...
|
|

03-10-10, 17:35
|
|
Registered User
|
|
Join Date: Jul 2009
Location: NY
Posts: 816
|
|
Quote:
Originally Posted by db2girl
This is a very tough question to answer...
|
I guess: you knew !
Lenny
|
|

03-10-10, 18:54
|
|
Registered User
|
|
Join Date: Jul 2009
Location: NY
Posts: 816
|
|
Quote:
Originally Posted by db2girl
This is a very tough question to answer...
|
Guess in old guess is new !
Lenny
|
|

03-10-10, 19:32
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
|
|
Quote:
Originally Posted by Lenny77
Guess in old guess is new !
|
Sorry, no capish
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|