If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Database users

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-13-03, 06:15
zkajfez zkajfez is offline
Registered User
 
Join Date: Jan 2002
Posts: 161
Database users

I would like create database user ann.
Also,I would like "disable" user entering
ALTER USER ANN IDENTIFIED BY...
May i configure,and how:
"user cannot change password" or disable
ALTER USER ANN IDENTIFIED BY...
Thanks,Zvonimir
Reply With Quote
  #2 (permalink)  
Old 01-13-03, 07:23
remivisser remivisser is offline
Registered User
 
Join Date: Dec 2002
Location: Netherlands
Posts: 118
profile

Hi zkajfez

You can to this by creating a profile and a function:

[SYSTEM@DB1.WORLD] CREATE OR REPLACE FUNCTION f_pwd
2 RETURN BOOLEAN
3 AS
4 BEGIN
5 RAISE_APPLICATION_ERROR(-20000, 'You are not allowed to change your password');
6* END;
/

Function created.

[SYS@DB1.WORLD] $ CREATE PROFILE prf_pwd LIMIT PASSWORD_VERIFY_FUNCTION f_pwd;

Profile created.

[SYS@DB1.WORLD] $ ALTER USER scott PROFILE prf_pwd ;

User altered.

Good Luck

Remi

http://askremi.ora-0000.com
__________________
Remi Visser

Oracle Database Administrator
(OCP certified 8i)

Homepage: http://home.remidian.com/
Reply With Quote
  #3 (permalink)  
Old 01-13-03, 08:05
zkajfez zkajfez is offline
Registered User
 
Join Date: Jan 2002
Posts: 161
Thanks a lot!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On