Replace statement for ALTER user in Oracle

Source: Internet
Author: User

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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.