query to get serial number in oracle apps