Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove fastload lock

Status
Not open for further replies.

mikin

Programmer
Joined
Oct 10, 2005
Messages
2
Location
CZ
Hi, I need help with fastload. I want to remove lock on a table which was fastloaded and fastload fails (record were wrong). If the fastload fails, than the table is locked and you can't work with it. Error is: RDBMS error 2652: Operation not allowed: _db_._table_ is being Loaded.

I know, that one solution is to drop-create the table, but I don't find that nice to use it in the production. Do you have any idea, how to remove locks.

Thanks for any idea.
--petr
 
The first way I use to unlock a mis-fastloaded table is to close the fastload operation on this table with an empty fasload command.

fastload <<-!Eof >> ${LOG_FILE} 2>&1
logon ${DWHTDP}/${DWHUSR},${DWHPWD} ;
begin loading ${TBL_BASE}.${TBL_NAME}
errorfiles ${TBL_BASE}.${TBL_NAME}_ER1
, ${TBL_BASE}.${TBL_NAME}_ER2
;
end loading ;
logoff ;
!Eof
 
Before using the DROP solution, try to close your already opened fastload session :

Code:
logon ... ;
begin loading	...
errorfiles	..., ... ;
end loading ;
logoff ;

In most cases, it's enough to unlock your tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top