I have an update query which is taking 10 hours to update and still it is in the updating stage itself it has about 135171 records only.
uPDATE hr.raw_address ora
SET (ora.addr_id,
) =
(SELECT oms.addr_id
FROM hr.addresss_oet OMSS,
hr.master_address oms
WHERE NVL (oms.addr_line1, '-1') = NVL (OMSS.addr_line1, '-1')
AND NVL (oms.addr_line2, '-1') = NVL (OMSS.addr_line2, '-1')
AND NVL (oms.city, '-1') = NVL (OMSS.city, '-1')
AND NVL (oms.state, '-1') = NVL (OMSS.state, '-1')
AND NVL (oms.pstl_id, '-1') = NVL (OMSS.pstl_id, '-1')
AND ORA.ADDR_KEY = OMSS.ADDR_KEY
)
WHERE ora.addr_id IS NULL;
The master table (master_address has about 136000 records) and the join is based on the oet (address_oet) table and the master table are joined based on the address fields . when the address are matched we will take the respective addr_id from the master table and update the addr_id in the raw table based on the addr_key combination on the oet table ant the raw table . But its already 9 hours but still update is running.