fresh install of 12.2.0.1.0 - SQLPLUS can't see TNS file
I am running Windows 10. I previously had Oracle 12.1.0 installed at C:/app/myusername/product/12.1.0 and SQLPLUS worked fine. This was a full install of the RDBMS but I never ran a DB on it.
I installed Oracle 12.2.0.1.0 at C:/app/myusername/product/12.2.0. This was the runtime client version. I couldn't find a tnsnames.ora file in it so I had to copy /Network/Admin/tnsnames.ora (file and directories) from the 12.1.0/dbhome_1 directory to the 12.2.0/client_1.
After I did that it worked fine for a while, but once I rebooted it doesn't work anymore and I get the "ORA-12154: TNS:could not resolve the connect identifier specified" error.