473,545 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 15607

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=OraOL EDB.Oracle;" & _

"Data Source=db_locat ion;" & _

"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=OraOL EDB.Oracle;" & _ "Data Source=db_locat ion;" & _ "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=OraOL EDB.Oracle;" & _ "Data Source=db_locat ion;" & _ "User Id=*****;" & _ "Password=***** "


In 9i it's service_name, not SID.

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

and comment NAMES.DEFAULT_D OMAIN

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=OraOL EDB.Oracle;" & _

"Data Source=db_locat ion;" & _

"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=OraOL EDB.Oracle;" & _ "Data Source=db_locat ion;" & _ "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
3337
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 htaccess which is fine but can only protect one directory unless I put htaccess on each directory which I think is a bit long winded, but is there any...
7
8683
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, somehow I always end up with error messages and functions not working right. Can someone please help me? I have a form, inside is 1 Text Field...
8
4421
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: 8f404d5399b6eb816fe579381a0e2e6c First, does PHP automatically encrypt the password type fields and if so what method does it use and can I disable it?
1
4258
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 script will continue to run otherwise it will stop. Below you will find my code I've programmed until now, at this moment I've got one big problem:...
0
1552
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 configured my windows service to run as a particular user account. I would like to use that account's credentials with the web service proxy, but I...
2
2934
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 it ? Or could i create a button that save another text (replace) the cached password ? the user will be prompted to click the button to remove...
2
2665
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 far i've gotten on the form idea but i have no idea on how to do a popup box with username and password in it for example i might want to link them...
1
1375
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
41824
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> <?include 'menu.php'?> <head> <script type="text/javascript">
0
7459
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7411
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7749
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5322
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3444
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1871
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.