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 > Can't drop view

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-09-10, 09:57
danieles danieles is offline
Registered User
 
Join Date: Mar 2010
Posts: 5
Unhappy 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.
Reply With Quote
  #2 (permalink)  
Old 03-09-10, 10:51
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,229
Why do you think it's a view?
Reply With Quote
  #3 (permalink)  
Old 03-09-10, 10:55
Cougar8000 Cougar8000 is offline
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
Reply With Quote
  #4 (permalink)  
Old 03-10-10, 05:49
danieles danieles is offline
Registered User
 
Join Date: Mar 2010
Posts: 5
this command

Quote:
Originally Posted by Cougar8000 View Post
db2 list tables for all | grep -i SQL100308144713000

I bet it will come back empty.
return empty

Quote:
Originally Posted by Cougar8000 View Post

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?
Reply With Quote
  #5 (permalink)  
Old 03-10-10, 08:11
n_i n_i is offline
:-)
 
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.
Reply With Quote
  #6 (permalink)  
Old 03-10-10, 11:43
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 816
Wink

Quote:
Originally Posted by danieles View Post
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
Reply With Quote
  #7 (permalink)  
Old 03-10-10, 14:57
Cougar8000 Cougar8000 is offline
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
Reply With Quote
  #8 (permalink)  
Old 03-10-10, 15:47
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
Reply With Quote
  #9 (permalink)  
Old 03-10-10, 15:50
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
Quote:
Originally Posted by Cougar8000 View Post
If I give you ZERO dollars. How much bread can you buy with it?

If depends on where you're.
Reply With Quote
  #10 (permalink)  
Old 03-10-10, 15:54
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
Quote:
Originally Posted by danieles View Post
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
Reply With Quote
  #11 (permalink)  
Old 03-10-10, 16:29
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 816
Question

Quote:
Originally Posted by db2girl View Post
-901 could be a db2 bug
Can you guess what is the country in the world produce the maximum number of "DB2 BUGS" ?

Lenny
Reply With Quote
  #12 (permalink)  
Old 03-10-10, 16:38
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
This is a very tough question to answer...
Reply With Quote
  #13 (permalink)  
Old 03-10-10, 17:35
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 816
Talking

Quote:
Originally Posted by db2girl View Post
This is a very tough question to answer...
I guess: you knew !

Lenny
Reply With Quote
  #14 (permalink)  
Old 03-10-10, 18:54
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 816
Talking

Quote:
Originally Posted by db2girl View Post
This is a very tough question to answer...
Guess in old guess is new !

Lenny
Reply With Quote
  #15 (permalink)  
Old 03-10-10, 19:32
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
Quote:
Originally Posted by Lenny77 View Post
Guess in old guess is new !
Sorry, no capish
Reply With Quote
Reply

Tags
db2 9.7, drop, view

Thread Tools
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