G-1060: Avoid storing ROWIDs or UROWIDs in database tables.
Major
Reliability
Reason
It is an extremely dangerous practice to store ROWIDs in a table, except for some very limited scenarios of runtime duration. Any manually explicit or system generated implicit table reorganization will reassign the row's ROWID and break the data consistency.
Instead of using ROWID for later reference to the original row one should use the primary key column(s).
Example (bad)
BEGIN
INSERT INTO employees_log (employee_id
,last_name
,first_name
,rid)
SELECT employee_id
,last_name
,first_name
,ROWID
FROM employees;
END;
/
Example (good)
BEGIN
INSERT INTO employees_log (employee_id
,last_name
,first_name)
SELECT employee_id
,last_name
,first_name
FROM employees;
END;
/