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 load option

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-10, 19:46
forumerr forumerr is offline
Registered User
 
Join Date: Apr 2010
Posts: 3
db2 load option

I need to know if tables were loaded using COPY YES, COPY NO or NONRECOVERABLE. Is there any way to get this information?
Reply With Quote
  #2 (permalink)  
Old 04-23-10, 09:05
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
what platform? The easy answer would be can you access the table?
Dave
Reply With Quote
  #3 (permalink)  
Old 04-23-10, 09:54
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Once it is loaded I do not see how can you tell how it was loaded unless you have a load script. What difference does it make to you?
__________________
--
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 04-23-10, 10:33
forumerr forumerr is offline
Registered User
 
Join Date: Apr 2010
Posts: 3
We need to identify what option was used with the load command. This is in preparation for setting up HADR.
Reply With Quote
  #5 (permalink)  
Old 04-23-10, 15:17
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
The history file (db2 list history command) will give some info. You will see a C (load copy) operation after L (load) for a load with copy yes. I don't believe there is a way to tell if load was done with copy no or nonrecoverable without looking at the logs.
Reply With Quote
  #6 (permalink)  
Old 04-26-10, 11:32
forumerr forumerr is offline
Registered User
 
Join Date: Apr 2010
Posts: 3
looking at the logs, db2diag.log?
Reply With Quote
  #7 (permalink)  
Old 04-26-10, 18:35
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
This information (copy yes/no, nonrecoverable) is captured in the transaction logs. You can probably use db2readlog api to access this info or some tool.
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