The ALTER user statement has an optional replace statement that is used to enter the original password after the password validation function is started.
By default, the user does not need to provide the current password to modify his or her password:
Sql> create user test identified by test;
User has created.
Sql> Grant connect to test;
The authorization was successful.
Sql> select * from Dba_profiles;
Profile Resource_name RESOURCE LIMIT
------------------------------ -------------------------------- -------- -----------------
DEFAULT Composite_limit KERNEL Unlimited
DEFAULT Sessions_per_user KERNEL Unlimited
DEFAULT cpu_per_session KERNEL Unlimited
DEFAULT Cpu_per_call KERNEL Unlimited
DEFAULT logical_reads_per_session KERNEL Unlimited
DEFAULT Logical_reads_per_call KERNEL Unlimited
DEFAULT Idle_time KERNEL Unlimited
DEFAULT Connect_time KERNEL Unlimited
DEFAULT PRIVATE_SGA KERNEL Unlimited
DEFAULT failed_login_attempts PASSWORD 10
DEFAULT Password_life_time PASSWORD Unlimited
DEFAULT Password_reuse_time PASSWORD Unlimited
DEFAULT Password_reuse_max PASSWORD Unlimited
DEFAULT password_verify_function PASSWORD NULL
DEFAULT Password_lock_time PASSWORD Unlimited
DEFAULT Password_grace_time PASSWORD Unlimited
16 rows have been selected.
Landing in another shell:
$ sqlplus Test/test
Sql*plus:release10.2.0.4.0-production on Monday September 13 22:56:31 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connect to:
Oracle database10genterprise Edition release10.2.0.4.0-64bit Production
With the partitioning, real application clusters, OLAP, Data Mining
This column more highlights: http://www.bianceng.cn/database/Oracle/