Use below script to find active sessions in oracle database.