- Oracle Database 12c Security Cookbook
- Zoran Pavlovi? Maja Veselica
- 168字
- 2021-07-02 16:43:13
Expiring a user's password
The expiration of user's password is a very easy task.
Getting ready
To complete this recipe, you'll need an existing (for example, OS-authenticated) user who has the alter user
privilege (you may use user who has a DBA role) and another existing user (for example, mike
).
How to do it...
- Connect to the database as a user who has the
alter user
privilege:$ sqlplus /
- Mike's password expires with the following command:
SQL> alter user mike password expire;
How it works...
In step 1, you used OS authentication to connect to the database.
In step 2, you expired password for the user mike
. This means that the password is no longer valid and user mike
must change his password after the next login:
SQL> alter user mike password expire; User altered. SQL> conn mike/welcome1 ERROR: ORA-28001: the password has expired Changing password for mike New password: Retype new password: Password changed Connected.
See also
- Creating and using OS-authenticated users
推薦閱讀
- Learning Python Web Penetration Testing
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- Photoshop智能手機APP UI設計之道
- JavaScript從入門到精通(第3版)
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- 小程序開發原理與實戰
- Asynchronous Android Programming(Second Edition)
- Python趣味編程與精彩實例
- CodeIgniter Web Application Blueprints
- Qt 4開發實踐
- Python大規模機器學習
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- Java高級程序設計
- 深入理解Java虛擬機:JVM高級特性與最佳實踐
- Python程序員面試算法寶典