Unix Technical Forum

A few questions: LOAD/IMPORT/CLP stderr

This is a discussion on A few questions: LOAD/IMPORT/CLP stderr within the DB2 forums, part of the Database Server Software category; --> DB2 WSE LUW 8.1.5 A few questions: Why doesn't IMPORT have IDENTITYOVERRIDE support like LOAD does?? Why doesn't LOAD ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:06 AM
aj
 
Posts: n/a
Default A few questions: LOAD/IMPORT/CLP stderr

DB2 WSE LUW 8.1.5

A few questions:

Why doesn't IMPORT have IDENTITYOVERRIDE support like LOAD does??

Why doesn't LOAD have CREATE INTO (ala IXF) like IMPORT DOES?

Why doesn't:
db2 -tvf blah.sql 2> blah.err
result in any error messages winding up in blah.err (everything
goes to STDOUT rather than STDERR)??

thanks

aj
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:06 AM
Knut Stolze
 
Posts: n/a
Default Re: A few questions: LOAD/IMPORT/CLP stderr

aj wrote:

> DB2 WSE LUW 8.1.5
>
> A few questions:
>
> Why doesn't IMPORT have IDENTITYOVERRIDE support like LOAD does??


Because IMPORT runs with normal INSERT statements. That will always tell
DB2 to generate those values for you. If you don't want that, you can
declare the column as GENERATED BY DEFAULT.

> Why doesn't LOAD have CREATE INTO (ala IXF) like IMPORT DOES?


I would guess that's because LOAD does not issue SQL statements but rather
works on the data pages directly. Remember that you only need LOAD
authority (and not necessarily CREATETAB privileges).

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com