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 > unable to extract data from CLP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-08-11, 08:13
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
unable to extract data from CLP

Hi friendz,
I have copied a schema using the below command:

call sysproc.admin_copy_schema ('schema2', 'copysch', 'copyno', 'user1', 'userspace1', 'userspace2', 'COPYSCHEMA', 'COPYERROR')

I can see the table under the new schema 'copysch' and from control center can also access the data but I am not able to access data from CLP.


C:\Documents and Settings\user1>db2 select * from copysch.ACT
SQL0204N "COPYSCH.ACT" is an undefined name. SQLSTATE=42704
Reply With Quote
  #2 (permalink)  
Old 06-08-11, 09:00
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I suspect that the sysproc.admin_copy_schema procedure created the new schema as lowercase. If that is the case, then your queries must be like this:

Code:
select * from "copysch".ACT
Andy
Reply With Quote
  #3 (permalink)  
Old 06-08-11, 09:40
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
Yes, the new schema is created in lower case. But the provided query does not help. I have tried things out and concluded that schema name always has to be in uppercase.
Thanks for the hint about the case sensitivity
Reply With Quote
  #4 (permalink)  
Old 06-08-11, 09:57
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
Well, I had one more query. I can find no difference in the copymode option of " copy and copyno" in ADMIN_COPY_SCHEMA. using copy option did not took my database in backup pending state as documented. Can you help me list the difference between these two option?
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