Você está na página 1de 1

Extending the password of an user without resetting it

========================================================
Contents
========
1. select current status from dba_users
2. select the value from user$
3. get the ddl
4. change the password
5. check the values form user$
________________________________________________________________________________
___________________________________________________
1. select current status from dba_users
---------------------------------------------------------------------------------------------------------------------------------select username, created,account_status,password,expiry_date,default_tablespace,
profile from dba_Users where username='&&user' ;
________________________________________________________________________________
___________________________________________________
2. select the value from user$
---------------------------------------------------------------------------------------------------------------------------------select name,password,spare4,ptime from user$ where name='&&user'
________________________________________________________________________________
___________________________________________________
3. get the ddl
---------------------------------------------------------------------------------------------------------------------------------set long 170
col usercreate for a160
select dbms_metadata.get_ddl('USER', username) || '/' usercreate from dba_users
where username=upper('&&user');
select dbms_metadata.get_ddl('USER', username) || '/' usercreate from dba_users
where username=upper('&user');
________________________________________________________________________________
___________________________________________________
4. change the password
---------------------------------------------------------------------------------------------------------------------------------alter user <>
________________________________________________________________________________
___________________________________________________
5. check the values form user$
---------------------------------------------------------------------------------------------------------------------------------select name,password,spare4,ptime from user$ where name='&name'
________________________________________________________________________________
___________________________________________________
http://www.dba-oracle.com/t_copying_oracle_users.htm
----------------------------------------------------------------------------------------------------------------------------------

Você também pode gostar