[oracle] ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

Please check both OracleServiceXE and OracleXETNSListener having the status started when you navigate through start->run->services.msc.

For my case only OracleXETNSListener was started but OracleServiceXE was not started, when I started by right clicking -> start and checked the connection its working for me