Share |

ORA-01017: invalid username/password; logon denied

Either the username does not exist in the database or the password is invalid.

To check which users exist in the database, use following select:
select username from all_users
If you want to have logging of all invalid attempts, enable database auditing by setting the value of the database parameter audit_trail to DB.

Also enable auditing for invalid connections by using following statement:
audit create session
After that, you can find useful information by querying the dba_audit_session data dictionary view:
select * from dba_audit_session where username='MYUSER' and returncode != 0;
If you do not need auditing anymore, you can disable it with following command:
noaudit create session;
You can use our free tool Oracle Password Changer to change the password of an Oracle database user.

 Was this information helpful?  Yes No
If it was not helpful, please take some time to explain why. This is not to ask questions, you can do so in the forum.

Welcome to our forum for Oracle error: ORA-01017 Add your own message



when i entered sql prompt using scott/tiger@oracle and trying to connect to system/manager i am getting account locked message.

ORA-28000: the account is locked oracle

how to resolve that.. can u help me.....
You have to unlock the account.

You can do that with following command:
alter user system account unlock

Since Oracle 9, some default accounts are locked by default.
You have to connect with an account with the correct privileges (eg / AS SYSDBA)
 
Read the Oracle documentation on tahiti.oracle.com.

There you can read all the necessary steps to create a new Oracle database, wether it is via the command line or via the database creation assistant.
 
i forget my password to connect to my database.
can you tell me for the solution?
You have to connect using "/ as sysdba" or any other dba account to the database and reset the password for the account you are trying to connect with.
 
I just install oracle9i,when i tried to login it is showing ora-12560 error.
Can you please suggest me the default username and password for oracle9i.
Thanks in advance.
Did you also specify the option to create a database?
What is the database name?
Is the service running?
 
My friend tried to connect and logon to the server from LAN. he was trying it from a very simple vb.net application. Is it a problem of logon denied after reaching the server in LAN? The PC he was using as client also contains the oracle database with the same name but different user instances. what should we do to deny the problem and have successful logon?

Sangam
http://www.dotnetspidor.blogspot.com
 
I am getting ORA-01017 when I am trying through windows command prompt.. where as I am able to access it properly through TOAD. One thing I noticed is there are two Orcle homes(first, second) on the PC. Toad is using the second ORACLE_HOME and able to access. If I change the second ORACLE_HOME to DEFAULT_HOME(I assume this is the first home) I am getting the same error in the TOAD also.

Any ideas on how to resolve this.

Thanks
Are the 2 different Oracle Homes use a different tnsnames.ora?

If so, you might connect to a different database
 
hi all,

i am creating one login page in php (login.php).

in this page i connect database username and password, already i insert one record "sakthi,sakthi".

i enter the text field correct goto next page. other wise invalid username and password message display. how can i check "invalid username and password" message in php code.


$conn = @oci_connect('scoot', 'tiger', 'orcl');
if (!$conn) {
$e = oci_error();
print htmlentities($e['message']);
exit;
}
?>


 
Hi...
I created an oracle database on importerd a dump file in to the database.
The import was succesfull"Import terminated sucessfully without warnings"

After the import the database can start up fine no problem there but when i try to open the Application that i'm using it gives error"Ora-01017 Invalid username/password logon denied"

Can anyone help me with this please.
I'm in need of this...

Thanks
Mandla.
Was the username already present on the database you did the import?

If the username already exists, it will not be recreated, and you will have to use the password of the existing username.

You can also enable database auditing, by setting the audit_trail parameter to DB and use 'audit create session'.
Next check the dba_audit_session table for invalid logins.
Thanks for the reply.
Yes the username was in the import.
Can i set my own username and password just to be able to logon?

I changed the password file found in:D:\Oracle\Ora81\DATABASE\pwdddb.ora

but still the same error.
You (or a dba) need to create your account.

Changing the password file only changes the password for the SYSDBA account, if the database is set up to use a password file.

You can login using '/ as sysdba' and create your account
 
I installed oracle9i in my server. and created one user with CONNECT,DBA, and RESOURCE previlage.
Then I can connect to the server database by using TNS with the new user and password.
but the problem is, while am using the oracle SQL Plus from the server, i cant login with the new user name and password. What is the problem with the new user? all other users.. scott,system etc everything working fine. The new user also will work if am using one TNS name as HOst string in SQL plus.

any one can help me?

Thanks
Johnson

You probably need to set your ORACLE_SID to the correct database before logging in
Thanks for ur replay.
Actually am new in oracle/
so can u tell me, how can i find my ORACLE_SID and how can i set it for the database?

thnks
Johnson
 
when i connect first time to server on my laptop it will be asking for the username and password i gave it but if i restrat the laptop again it doing same
 

 # msql=`sqlplus -s "APPS/WELCOME" <<EOB
 #  exec test_Spkg.test_proc1(${CUST_NUM1},${FILE_NAME1});
 # EXIT;<<EOB`
 # echo "$msql"

   msql=`sqlplus -s $ORAPASSWD << !
       whenever sqlerror exit failure
 exec test_Spkg.test_proc1(${CUST_NUM1},${FILE_NAME1});
      exit;
      !`
 echo "$msql"

i am faicng error like below

ORA-01017: invalid username/password; logon denied

Invalid option.
Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
Invalid option.
Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

It looks like the value of $ORAPASSWD is not set.

 

Is it set somewhere in the script? If so you can debug using

set -x

If it is set on the command prompt, you can show your environment using:

env

 

 

1. i have tow different database x,y

2. same user (x,x)  but passwaord different(x,y).

issue :  the first created db x , y

when i take expdb  = x

error msg = invalid username/password, ora 1017

when take expdb = y

it accepted.

Then

how to solve this problems, how to take x db (export).

 

 

 

Are the 2 databases on the same server?

You need to set the correct environment before doing the export, or use the @sid when connecting.

On Windows:

set ORACLE_SID=DBx

On Linux:

. oraenv

<enter your SID>

 

Or just do:

exp userid=theuser@dbx ....

 

 

 

You need to provide the correct username and password before you will be able to logon

 
 
 

Enter your message

hi,every body,how can i login to the oracle as sys as sysdba when i dont no the password of sys.plz help me out.

                            sandip

 

when I start Oracle SQL*Plus from command line, it not works; but it work from start>program>Oracle>Application development>SQL*Plus .For example, i connect to SQL*Plus  from command line as below method:

Start>Run>type cmd and press OK. In command line, i typed 

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\iadmin.PVMBANGLADESH.000>set oracle_sid=it

C:\Documents and Settings\iadmin.PVMBANGLADESH.000>sqlplus/nolog

open another command line window. then type as below

SQL>connect system\system and press enter.

ora-01017: invalid username/password; logon denied

Would any one solve this problem?

So you are saying that system is the password of the system user?

And if you run the windows based version of Sqlplus, you are able to logon to the IT database using the SYSTEM user and system password?

 

I am having trouble changing my email password due to it stating an invalid user name

You need to contact your service provider, it is probably using a generic username/password to access the emails password change functionality.

 

Add your message

 Please provide your personal info 



 Please ask your message as briefly and clear as possible 

 Spam Protection 
Validation Code: a84sx0gkpyvf5urv6


Ask Your Question

If you need more information about this particular error message, you can leave a forum message.

We are replying to this message whenever we have some spare time, so please do not consider this as a private 'solve my critical issue asap' service.

Should you need professional Oracle Assistance to make your project a success, please have a look at our consultancy services.


Spam Protection

In order to prevent automatic generation of messages, we are asking for a validation code. This code is unique and is generated every time a new message is asked.

If you do not enter the validation correctly, your message will not be recorded.


Forum Rules

Please be polite, do not USE ALL UPPERCASE, no insults, violance or any other threats.