Creating ODBC connection through CMD or Powershell
Hi, I have installed Oracle 19c in my system. I am trying to create ODBC connection through Command Prompt or PowerShell command.
PowerShell Command :
Add-OdbcDsn -DriverName "Oracle in OraDb19c_ADVA" -DsnType System -Name localhost -Platform 32-bit -SetPropertyValue @("Description=localhost", "tns=LOCALHOST") -passthru
I am able to add DSN localhost but TNS Service name is not getting set to LOCALHOST Sothat test connection is failing. Can anybody please suggest that what is the appropriate command to set the TNS Service name in above powershell command.
Also What is the command for command prompt to execute for adding localhost DSN .
Best Regards