Is there a risk of oxygen contamination after dumping the trub or dry hopping?
Though there is always some risk of oxygen contamination associated with these stages, it is very minimal.
When you disrupt the beer in this manner, some dissolved CO2 is likely to escape which will force the oxygen out of the fermenter and a small amount of oxygen can be absorbed by the yeast during active fermentation.
As with any fermenter you should be careful to minimise oxygen pick up as much as possible once fermentation has begun.