Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the steps for Oracle user password reset

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

The main content of this article is to explain "what are the steps of password reset for Oracle users". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the steps for Oracle user password reset"?

Customers report that the secret ma of Oracle database users will expire. In order to avoid application connection errors caused by expiration, you can find users who are about to expire by cha in advance and reset the secret ma. The steps are as follows:

1. Check whether any secret ma will expire in the next 20 days.

Set lines 200col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss') expire_time,profile,account_status from dba_users a where EXPIRY_DATEsysdate and account_status='OPEN'

2. View expired users

Set lines 200col profile for a20col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss'), profile,account_status from dba_users where account_status='EXPIRED' or account_status='EXPIRED (GRACE) 'order by EXPIRY_DATE

3. Check the expiration time of open status users.

Set lines 200col profile for a20col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss'), profile,account_status from dba_users where account_status='OPEN' order by EXPIRY_DATE

4. View the status of all users

Set lines 200col profile for a20col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss'), profile,account_status from dba_users order by EXPIRY_DATE

5. Perform a secret ma reset

Modify profile settin

Alter profile PROFILE_NAME limitpassword_reuse_time unlimitedpassword_reuse_max unlimited

Generate a reset command

Select 'alter user' | | du.username | | 'identified by values' | |''| | u.password | |'| |; 'from dba_users du,user$ u where du.username=u.name and u.type#=1 and du.profile in (' PROFILE_NAME') and du.username'XS$NULL' and du.expiry_date-sysdate

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report