Ochojec was formerly part of the German Empire. In the German Empire, the place was called Ochojetz.
The place is now called Ochojec and belongs to Poland.
| Historical place name | Country | Administration | Time |
|---|---|---|---|
| Ochojetz | German Empire | Rybnik | before the Versailles Treaty |
| Ochojec | Poland | Rybnik | after the Versailles Treaty |
| Ochojetz | German Empire | Rybnik | 1939 |
| Ochojec | Poland | Rybnik | 1945 |
| Ochojec | Poland | Katowice | 1992 |