1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
+1 vote
6.5K views
by michael-h-5027 (14.8k points)
I want to connect to Oracle via sqlplus but my schema name is not working. error of:

TNS:listener was not given the SERVICE_NAME in CONNECT_DATA

1 Answer

+1 vote
 
Best answer
open the tnsnames.ora file found in a path similar to:

C:\Program Files (x86)\Centricity EMR 9.8\Oracle\network\ADMIN

 

Find the database you want to connect to and the SERVICE_NAME = the_name_you_are_looking_for

in a command line enter:

sqlplus username/password@SERVICE_NAME

ie

sqlplus ml/ml@emr
by michael-h-5027 (14.8k points)
selected by mike-r-7535
...