0

I am using

Run SQL Command Line

to connect with database, previously I am able to connect with username 'system' and password 'root' but when I tried to connect using SQL>connect system/root

it is showing error

ERROR:
ORA-01017: invalid username/password; logon denied

All services are running, after long time I am trying to connect may be I forgot my credentials can anyone help me how to change or reset both username and password I am on windows platform,

1

1 Answer 1

0

I too reset my password few days back. You can reset your password by this

ALTER USER username IDENTIFIED BY password

Connect to db first

SQL> conn /as sysdba

More information Docs

Sign up to request clarification or add additional context in comments.

4 Comments

thank you very much for your reply, when I tried to run the command you recommended, getting 'SP2-0640: Not connected'
You are not connected to the db. Run this command SQL> conn /as sysdba
may be I tried too many attempts my account i locked "ERROR: ORA-28000: the account is locked", but with your command I altered details, Is it possible to unlock the locked account?
yes. you can unlock using : alter user username account unlock;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.