There currently are a variety of options to travel by night train from Rosenheim (Germany) to Rybnik (Poland), taking approximately 9 hours: Namely the IC 406 and the IC 40406. These lines are operated by Deutsche Bahn, České dráhy and PKP Intercity.