[oracle] many updates for PL/SQL scripts to work with versioned databases