ORA-28002 error while connecting DB LINK [message #612651] |
Wed, 23 April 2014 02:17 |
|
Bikash.p
Messages: 11 Registered: April 2014 Location: Banglore
|
Junior Member |
|
|
Today I created a db link .
Show User;
USER is ORACLE
alter session set global_names=false;
session SET altered.
select * from dual@test1;
I am getting the below error.
Error at Command Line : 5 Column : 26
Error report -
SQL Error: ORA-28002: the password will expire within 9 days
28002. 00000 - "the password will expire within %s days"
*Cause: The user's account is about to about to expire and the password
needs to be changed
*Action: change the password or contact the DBA
And I have a db link previously to the same destination from another user, While I am using that user through db link then i am getting the output.
Show user;
USER is TEST
alter session set global_names=false;
session SET altered.
select * from dual@test1;
DUMMY
-----
X
Why this error is coming ? Please Provide the solution. Thanks In Adv.
Regards,
|
|
|
|
|
|
|
Re: ORA-28002 error while connecting DB LINK [message #612742 is a reply to message #612730] |
Thu, 24 April 2014 06:40 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
Quote:Or any other option is there without changing the password.
Again, think about what the mechanism is.
If a process (any process, including a dblink from another database) tries to connect to a database, it must have a valid username and password. If either is wrong (as indicated by your reported error) then one of two things must necessarily happen to get a good connection:
1) The client must use the credentials that are defined in the target database (use the correct username/password), or
2) The target database must be modified to accept the credentials being passed by the client. And how do you modify the password of a user account?
There is no silver bullet, magic, back-door, dba secret method of fixing the error outside of the above well documented methods. You either change the password of the user in the target database, or you change the password defined to the db_link.
Of course, if (as it SHOULD be) the username used by the db_link is created specifically for use by the db_link and is in reality used only by the db_link) then the fix should be trivial. It only becomes a concern if your db_link is using the same username as a lot of other processes.
|
|
|
Re: ORA-28002 error while connecting DB LINK [message #612743 is a reply to message #612742] |
Thu, 24 April 2014 07:24 |
cookiemonster
Messages: 13920 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
EdStevens wrote on Thu, 24 April 2014 12:40You either change the password of the user in the target database, or you change the password defined to the db_link.
Since the password specified in the db link is currently valid, changing it (without also changing the password on the target account to match) would only make matters worse.
OP either needs to change the password at both ends or turn off password expiry on the target db account.
|
|
|
|
|
Re: ORA-28002 error while connecting DB LINK [message #612751 is a reply to message #612743] |
Thu, 24 April 2014 09:47 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
cookiemonster wrote on Thu, 24 April 2014 07:24
Since the password specified in the db link is currently valid, changing it (without also changing the password on the target account to match) would only make matters worse.
OP either needs to change the password at both ends or turn off password expiry on the target db account.
ah, yes. Over the course of the thread, and trying to explain the principles, I'd forgotten we were dealing with expired password rather than incorrect password.
|
|
|