Today, when I log on to the oracle database with scott user, I encountered the ORA-01017: invalidusernamepassword; logondenied error, I thought it was because of my sco
Today, when I log on to the oracle database with scott user, there is a ORA-01017: invalid username/password; logon denied error, I thought it was because of my sco
Today with scott User Login Oracle database, it turned out that the ORA-01017: invalid username/password; logon denied error, I thought it was because my scott user did not unlock, and then use the system user login, then use alter user scott account unlock statement to unlock scott user, but still cannot enter after unlocking, or report ORA-01017: invalid username/password; logon denied error, think carefully for a while, it seems that I didn't set a password when I unlocked scott, so no matter what password I entered, it is wrong. So I thought of the following solution to prevent such errors in the future, the error and solution are recorded below:
SQL * Plus: Release 11.2.0.1.0 Production on Friday October 12 20:03:09 2012
Copyright (c) 1982,201 0, Oracle. All rights reserved.
Enter the User name: scott
Enter the password:
ERROR:
ORA-01017: invalid username/password; logon denied
Enter the User name: system
Enter the password:
Connect:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> conn/as sysdba;
Connected.
SQL> alter user SCOTT account unlock identified by Orcl123456;
The user has changed.
SQL> select username, account_status from dba_users where username = 'Scott ';
USERNAME
------------------------------------------------------------
ACCOUNT_STATUS
----------------------------------------------------------------
SCOTT
OPEN
SQL> conn scott/Orcl123456
Connected.
At this point, you can use the scott user to log on normally. If you are not at ease, you can use the following query statement for verification:
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
----------------------------------------------------------------
7369 smith clerk 7902 800.00 20
7499 allen salesman 7698 1600.00 300.00 30
7521 ward salesman 7698 1250.00 500.00 30
7566 jones manager 7839 2975.00 20
7654 martin salesman 7698 1250.00 1400.00 30
7698 blake manager 7839 2850.00 30
7782 clark manager 7839 2450.00 10
7788 scott analyst 7566 1987/4/19 3000.00 20
7839 king president 1981/11/17 5000.00 10
7844 turner salesman 7698 1500.00 0.00 30
7876 adams clerk 7788 1987/5/23 1100.00 20
7900 james clerk 7698 950.00 30
7902 ford analyst 7566 3000.00 20
7934 miller clerk 7782 1982/1/23 1300.00 10
14 rows selected
Detailed illustration of the entire process of VMware + Linux + Oracle 10G RAC
Install Oracle 11gR2 (x64) in CentOS 6.4)
Steps for installing Oracle 11gR2 in vmwarevm
Install Oracle 11g XE R2 In Debian
Steps for installing Oracle 11gR2 in vmwarevm