db2 luw - File loading issues in DB2 using Load utility -
i have .csv
file, comma-delimited (located @ c:/). using db2 load
utility load data present in csv file in db2 table.
load client c:\users\somepath\filename.csv of del modified nochardel coldel, insert schemaname.table_name;
csv file has 25 rows. after utility completed got error message nochardel. table has 25 rows loaded. when try execute insert/update/delete statement on of tables present in schema getting following error.
lookup error - db2 database error: error [55039] [ibm][db2/aix64] sql0290n table space access not allowed.
could please me whether making mistake or missing parameter causing lock on table.
earlier while loading file similar situation occurred, dba confirmed table space in question in “load in progress” state
changes generated db2 load
utility not logged (one of side-effects of high performance). if database crashes after load impossible recover table loaded replaying log records, because there no such records. reason tablespace containing loaded table automatically placed in backup pending
mode, forcing take backup of tablespace or entire database ensure recoverable.
there options can specify load
command can avoid situation in future:
nonrecoverable
-- option not place tablespacebackup pending
mode, but, name implies, table you're loading becomes non-recoverable in case of crash, , option in situation drop , re-create table.copy yes
-- option creates copy of table prior loading, can used recover table pre-load state in case of crash.
if loading 25 records, suggest use import
utility instead -- not have these restrictions because logged (at price of lower performance, 25 records won't matter).
Comments
Post a Comment