473,378 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Right password -> ORA-12154: TNS:Could not resolve service name

Hi

Right password -> ORA-12154: TNS:Could not resolve service name

wrong password => ORA-01017: invalid username/password; logon denied

Tested on a Windows XP client connecting to Oracle on an AIX server.
Using toad and sqlplusw

Everything working fin connecting to other 8.1.7 Oracle servers on windows
serveres.

If i delete tnsnames.ora i always receives ORA-12154 :-)

If you get ora 01017 then everything should be in perfectorder, except the
password... Right ?
Jul 19 '05 #1
6 15586

Originally posted by John
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied Tested on a Windows XP client connecting to Oracle on an AIX server. Using toad and sqlplusw Everything working fin connecting to other 8.1.7 Oracle servers
on windows serveres. If i delete tnsnames.ora i always receives ORA-12154 :-) If you get ora 01017 then everything should be in perfectorder,
except the password... Right ?


1)

Correct user, correct password, correct service_name

Connected to:

Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.3.0 - Production

2)

Correct user, correct password, wrong service_name

ERROR:

ORA-12154: TNS:could not resolve service name

3)

Wrong user AND/OR wrong password, wrong service_name

ERROR:

ORA-12154: TNS:could not resolve service name

4)

Wrong user AND/OR wrong password, correct service_name

ERROR:

ORA-01017: invalid username/password; logon denied

Run netca and check your Net8/9 settings or connect url.

Regards

/Rauf Sarwar
--
Posted via http://dbforums.com
Jul 19 '05 #2

HI....

If I try to connect to a Oracle DB I get this:

ORA-12154: TNS:Could not resolve service name

But I know, that my username and Passwort are right.

thats my connSring!!!!

ADOCnn.Open "Provider=OraOLEDB.Oracle;" & _

"Data Source=db_location;" & _

"User Id=*****;" & _

"Password=*****"

Can you tell me, whether i forget someting????

mfg AndreH
--
Posted via http://dbforums.com
Jul 19 '05 #3

Originally posted by AndreH
HI.... If I try to connect to a Oracle DB I get this: ORA-12154: TNS:Could not resolve service name But I know, that my username and Passwort are right. thats my connSring!!!! ADOCnn.Open "Provider=OraOLEDB.Oracle;" & _ "Data Source=db_location;" & _ "User Id=*****;" & _ "Password=*****" Can you tell me, whether i forget someting???? mfg AndreH


Refer to 2) in my previous post.

Test your connection from sqlplus. If it works then check your connect
string/Connection object on ADO side, if not then run netca and check
your Net8/9 settings or connect url.

Regards

/Rauf
--
Posted via http://dbforums.com
Jul 19 '05 #4
ADOCnn.Open "Provider=OraOLEDB.Oracle;" & _ "Data Source=db_location;" & _ "User Id=*****;" & _ "Password=*****"


In 9i it's service_name, not SID.

Go to %ORACLE_HOME%/network/admin/sqlnet.ora

and comment NAMES.DEFAULT_DOMAIN

Also look at your tnsnames.ora for your service.
--
Posted via http://dbforums.com
Jul 19 '05 #5

hi...

I've understand, that I have to add an Codeline like

ADOCnn.Open "Provider=OraOLEDB.Oracle;" & _

"Data Source=db_location;" & _

"service_name"=ServerString from tnsnames.ora;"& _

"User Id=*****;" & _

"Password=*****"

Did I understand you correctly?

MFG AndreH
--
Posted via http://dbforums.com
Jul 19 '05 #6

Originally posted by AndreH
hi... I've understand, that I have to add an Codeline like ADOCnn.Open "Provider=OraOLEDB.Oracle;" & _ "Data Source=db_location;" & _ "service_name"=ServerString from tnsnames.ora;"& _ "User Id=*****;" & _ "Password=*****" Did I understand you correctly? MFG AndreH


I meant that you "can return" to SID's by commenting domain part of
Service_name.

So, service_name in this case is equal to SID.
--
Posted via http://dbforums.com
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up...
7
by: Mike | last post by:
I've been trying for the past week to put a simple code together. I have done a LOT of searching, found scripts showing the functions I would like to use, however when I mix them it all goes wrong,...
8
by: Greg Scharlemann | last post by:
I've got a simple registration script that has an input field of type password. When I retrieve what is typed in the password field via: $_REQUEST; I always get the same encoded string:...
1
by: Joeri KUMBRUCK | last post by:
Hello, I'm trying to create an ASP page where users can type in a username and password, and these credential should be checked with active directory. If username and password are correct, the...
0
by: Steve DeLong | last post by:
I have a C# Web Service (anonymous access has been disabled) that I would like to connect to with a standard Windows Service, also in C# as part of a scheduled synchronization system. I have...
2
by: moi | last post by:
Hello, i have a Asp.net V2 login page with a password to enter. In some case, a user could forget and tell IE to save its password : How to prevent it ? Is there a way to disable it ? to block...
2
tolkienarda
by: tolkienarda | last post by:
Hi I am a js beginer and i need to have a password protected page. i was wondering if i should use some sort of popup window or if i could do somthing with a form on a different page. here is how...
1
Vasuki Masilamani
by: Vasuki Masilamani | last post by:
Hi, Please find the simple code below for checking password. <HTML> <Body> <h2>Checking the Password</h2><br><hr> <Form name=form1> Enter the Password: <Input type=password name=text1> <br>
5
by: ahilar12 | last post by:
hi all, i wanted to check whether the password entered matches with the confirm password.either through javascript or through php.i have enclosed my code somebody help on this <html> ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.