We are new to ORACLE. We installed ORACLE 18c XE, along with DCS, SQL*Plus and SQL Developer. This is all done locally (local laptop) just so we can get up to speed. Our long term intention is to simply create a VS Project and use ODP.Net to extract data.
We are right now using the System user with the password created during installation. With this user we can connect within SQL Developer to the default connection "XE" that was creation during Install. This user however cannot connect using SQL Plus. It also will not connect using ODP.Net in our practice Visual Studio Project. Both SQL Plus and ODP.Net give same error: "ORA-12154: TNS: could not resolve the connect idenfification specified." This is the connection string in the VS Project: "Data Source=XE;User Id=system;Password=createdpassword!;"
With ODP.Net in our VS Practice project the following DOES connect: "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XPS13MDi.home)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE)));User Id=system;Password=createdpassword;" where XPS13MDi is our Laptop name. This seems to be identical to what the XE entry is in tnsnames.ora.
We've google a 1000 times, tried everything we found with tnsnames.ora, listener.ora, etc....nothing seems to work. Does not seem like this should be so difficult, but as mentioned we are new to ORACLE. Ideally we would like to user the tnsnames.ora as the connection identifier when our application is rolled out.
Ideas/corrections/etc...would be appreciated.