Oracle Error Ora 12154 Tns Could Not Resolve Service Name
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about ora-12154 tns could not resolve the connect identifier specified windows 7 hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges ora-12154 tns could not resolve service name oracle 11g Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. tns could not resolve the connect identifier specified sqlplus Join them; it only takes a minute: Sign up Oracle ORA-12154: TNS: Could not resolve service name Error? up vote 11 down vote favorite 5 I am a SQL Server user . I am on a project that is
Asp.net Ora-12154: Tns:could Not Resolve The Connect Identifier Specified
using oracle (which I rarely use) I need to create an ODBC connection so I can access the some data via MS Access I have a application on my machine called oraHome90. It seems to allow a configuration of something called a listener in a “net configuration utility”, I think that a “Local Net Service Name Configuration” needs to also be done. The IT support gave me this information to set up the ODBC connection . I have tns could not resolve the connect identifier specified oracle 10g tried every combination that I can think of. I can get past a test that successfully passes a test to “login“ to the oracle server database. When I try to create the ODBC connection I get the following error: ORA-12154: TNS: Could not resolve service name. Assuming that I want to start from scratch and the following information is supposed to allow for me to connect to the database….. Any suggestions or comment ? Note: ultimately the project will have a website .ASP page query the data, but I have to first prove that I can see the data using the ODBC connection via MS Access Service name: SERVICENAME HOST = HOST.XYZi.com User Id: MYUSERID Password: MYPASSWORD ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 'Oracle Connection Dim ocst Dim oconn ocst = "Provider=OraOLEDB.Oracle;" & _ "Data Source=DATASOURCE;" & _ "User ID=CHIJXL;" & _ "Password=password;" set oconn = CreateObject("ADODB.Connection") oracle odbc tns share|improve this question edited Oct 15 '08 at 19:26 David Basarab 35.4k38105145 asked Oct 15 '08 at 19:23 Joe 4164811 add a comment| 19 Answers 19 active oldest votes up vote 8 down vote from http://ora-12154.ora-code.com ORA-12154: TNS:could not resolve the connect identifier specified Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identif
resolve the connect identifier specified"? Article: 00951 Last Reviewed: 7th September 2006 Revision: 1 This error indicates that Oracle is unable to locate ora-12154 tns listener does not currently the service name specified in your Easysoft ODBC-Oracle Driver ODBC data
Ora-12154 Tns Listener Does Not Currently Know Of Service Requested In Connect Descriptor
source. You need to check the Database attribute value in the data source.If you are using the standard
Tns Could Not Resolve The Connect Identifier Specified Odbc
Oracle client, the Database attribute value must specify a valid service name defined in tnsnames.ora. For example, for the following tnsnames.ora entry, the Database attribute value needs to be http://stackoverflow.com/questions/206055/oracle-ora-12154-tns-could-not-resolve-service-name-error my_database: my_database = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = my_host)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = my_database) ) ) If you are using the Instant Client without a tnsnames.ora file, the Database attribute value needs to be a SQL connect URL rather than a service name: //host:port/service_name where host is the host name or http://www.easysoft.com/support/kb/kb00951.html IP address of the Oracle database server, port is the Oracle listener port and service_name is the service name. For example: //my_host:1521/my_database If you want to use the Instant Client with a tnsnames.ora file, the Database attribute value must specify a tnsnames.ora service name and you need to set and export the TNS_ADMIN environment variable. Set TNS_ADMIN to specify the location of the tnsnames.ora file. For example: TNS_ADMIN = /home/oracle/network/admin export TNS_ADMIN Applies To Products Easysoft ODBC-Oracle Driver Knowledge Base Feedback * Did this content help you? Yes No Maybe * Please select one option based on your first choice: I'm very satisfied I think it will help, but I haven't tried it yet It is helpful, but I need more information It is helpful, but hard to understand Seemed relevant in search results, but didn't help me The information is incorrect The page contains one or more broken links Suggest new content or let us know how we can improve this content: (* Required Fields) About Easysoft Contact Us About Us Clients Upgrade Offer
log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about http://dba.stackexchange.com/questions/95698/sqlplus-error-ora-12154-tnscould-not-resolve-the-connect-identifier-specifie Stack Overflow the company Business Learn more about hiring developers or posting ads with https://www.tekstream.com/resources/ora-12154-tns-could-not-resolve-service-name/ us Database Administrators Questions Tags Users Badges Unanswered Ask Question _ Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question could not Anybody can answer The best answers are voted up and rise to the top Sql*Plus ERROR: ORA-12154: TNS:could not resolve the connect identifier specified up vote 3 down vote favorite I installed Sql*PLUS on a cloud Oracle Linux Environment in order to access an remote database. I used the installation instructions provided as an answer here: http://stackoverflow.com/questions/23488394/how-to-install-sql-plus-client-in-linux My connection string is correct, but I get the error ERROR: ORA-12154: TNS:could not could not resolve resolve the connect identifier specified I tried resolving this issue by attempting to looking at my tnsnames.ora, but it did not exist and the path connected to my $ORACLE_HOME did not have the subfolders "/network/admin/". In order to resolve this, I created both folders and created a tnsnames.ora file in the new admin/ containing my connection string. Unfortunately, I still get the same error. The path to my new tnsnames.ora file being: /usr/lib/oracle/11.2/client64/network/admin/tnsnames.ora For reference my connection string is structured the following way: (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST= asdasdasd.com)(PORT=1524)) (CONNECT_DATA = (SID = AARCER1) ) ) And my command I am putting into my terminal is: sqlplus "userName/myPassword@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=asdasdasd.com)(PORT=1524))(CONNECT_DATA=(SID=AARCER1)))" What should I do to resolve this error? oracle oracle-11g sqlplus share|improve this question edited Jul 30 '15 at 17:45 asked Mar 19 '15 at 15:26 beckah 131115 does tnsping AARCER1 work? Or sqlplus userName/myPassword@AARCER1? –Philᵀᴹ Mar 19 '15 at 18:09 I think that it is a good habit to set TNS_ADMIN env variable in your profile and point it to your folder with tnsnames.ora. Especially helpful when using more than one client on one machine. –elfcheg Mar 20 '15 at 11:21 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote When you use sqlplus user
Digital Records Management Enterprise Content Management Strategy Digital Asset Management Oracle Imaging & Process Management Web Content Management Oracle WebCenter Portal Enterprise Portal Support Enterprise Portal Strategy Enterprise Portal Upgrade Oracle WebCenter Sites Sourcing Staffing & Recruiting Recruiting Managed Services Candidate Registration Technical Focus Client Opportunities Support Solutions Training Legacy to Oracle WebCenter Oracle Documents Cloud Service Next Generation AP Automation & Dynamic Discounting Oracle WebCenter Contract Lifecycle Management (CLM) Search ORA-12154: TNS could not resolve service nameYou are here: Home / Resources / ORA-12154: TNS could not resolve service name The Oracle message known as “ora-12154” may be the most common error experienced by Oracle users. Luckily, the frustration of so many previous users has prompted some fairly straightforward solutions to the issue. The Problem When you receive this error, it means that the Oracle client has failed to connect with the listener on the desired server. In Oracle’s own words: “A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.” There can be many possible causes for this problem, which is why it can be tricky to solve. Users may have to test more than one method before identifying the source of the ORA-12154. The target server could have temporarily gone down, which is likely if the issue is occurring across multiple PCs after attempting to access the network. Connection issues could also be the culprit, or the destination name may not match the input address. It should be noted that if the ORA-12154 error is ident