Some oysters can last for a couple of weeks in a raw state, depending on how they are kept (surrounded in ice cubes). Other species only have a shelf life of a few days.
Tip: It’s best to ask for advice from your fishmonger.