DBMS_ROWID.ROWID_ROW_NUMBER(RowID)
SQL> select DBMS_ROWID.ROWID_ROW_NUMBER(RowID) 2 from dual; DBMS_ROWID.ROWID_ROW_NUMBER(ROWID) ---------------------------------- 0 SQL> SQL>