Read lock on temporary object prevents a commit from making it permanent
A read lock on a temporary object prevents a commit from making
the locked object permanent because making the object permanent
is equivalent to writing the locked object. The session must
write lock the object if it wants to lock it and modify it.
Write lock any objects that you want to modify. Alternatively,
you can release the read lock on objects you want to make permanent
and then commit.