Let the group leader to change pwd members without him give "edit user" p

Hi all

Is it possible that I can give a group leader to reset the password of its own Member without him the privilege of "edit user"?

I know that I can use following a simplified procedure to allow a person to change his own password, but I'm looking for a way to make reset when its members forget their pwd, and the following script will not work. I also created the synonym and grant "run on" him. Can someone help me on this?

Thanks in advance.


---
CREATE OR REPLACE PROCEDURE change_pwd (v_username in varchar2, v_pwd in varchar2)
AUTHID current_user
is
BEGIN
run immediately 'edit user' | m_UserName |' identified by ' | v_pwd;

END;
/
----
SQL> @example
SQL> spool capture.log
SQL> create user alladmin identified by adminall;

User created.

SQL> grant connect to alladmin;

Grant succeeded.

SQL> grant resource to alladmin;

Grant succeeded.

SQL> grant alter user to alladmin;

Grant succeeded.

SQL> create user member1 identified by No1knows;

User created.

SQL> grant connect to member1;

Grant succeeded.

SQL> create user member2 identified by No1knows;

User created.

SQL> grant connect to member2;

Grant succeeded.

SQL> create user gl1 identified by secret;

User created.

SQL> grant connect to gl1;

Grant succeeded.

SQL> grant resource to gl1;

Grant succeeded.

SQL> connect alladmin/adminall
Connected.
SQL> CREATE OR REPLACE PROCEDURE change_pwd ( v_username in varchar2)
  2  is
  3  m_username varchar2(100);
  4  v_pwd varchar2(30) := 'FUBAR1';
  5  BEGIN
  6  select user into m_username from dual;
  7  if (m_username = 'GL1')
  8  then
  9       execute immediate 'alter user '||v_username||' identified by '||v_pwd ;
 10  end if;
 11  END ;
 12  /

Procedure created.

SQL> grant execute on change_pwd to gl1;

Grant succeeded.

SQL> connect gl1/secret
Connected.
SQL> exec alladmin.change_pwd('MEMBER1');

PL/SQL procedure successfully completed.

SQL> exec alladmin.change_pwd('MEMBER2');

PL/SQL procedure successfully completed.

SQL> connect member1/FUBAR1
Connected.
SQL> select user from dual;

USER
------------------------------
MEMBER1

SQL> connect member2/FUBAR1
Connected.
SQL> select user from dual;

USER
------------------------------
MEMBER2

SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

Any other questions?

Tags: Database

Similar Questions

  • Disable the Group Policy registry change

    Initially, I was surprised that, by default, run the Publisher of the registry (regedit) under a standard user account does not have administrative credentials.

    Then I realized that if the administrative credentials are required for editing the registry, virtually all configuration changes would require a command prompt. Also, I learned that UAC controls only the registry keys it considers administrative. Thus, for example, standard users can edit and create the registry keys under HKEY_CURRENT_USER, but no other hives.

    All well and good, but I want to disable my standard user 10 year of directly editing the registry.

    At work, we have Win7 enterprise. I'm a standard user to work and I can't even open the registry editor. I get a message "registry editing has been disabled by your administrator". I assume that there is a group policy setting.

    At home we have Win 7 Professional, which is the Group Policy Editor. Can I create a policy to prevent standard users to start the registry editor, and perhaps for the same message, I see at work?

    This link explains how to activate in windows 7 home premium and lower group policy editor.

    This comment (by Fritz) asks how to do from a programming perspective.
    Sorry, wrong link. Here's the good:
    http://www.Microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=18c90c80-8b0a-4906-a4f5-ff24cc2030fb#Filelist
  • Copy the pictures, and then change those copied without affecting the others

    I'm trying to copy frames and change those copied without affecting the others.

    For example copy frame1 in box 2. When I change the frame 1/2, they change and I wan't to do not change after you copy on frame 2. Thing is that I have around 10pics on a chassis, converted film of symbol. When comes to this symbol, the images are on the same frame, but can be changed individually

    Pls help ASAP... I need to do emergency

    "CipiClaudiu" wrote in message
    News:f68r5n$OAG$1@forums. Macromedia.com...
    > I'm trying to copy images and edit those copied without affecting
    > the
    > other.
    >
    > E.g. copy frame1 in box 2. When I change the frame 1/2, they
    > time
    > change and I wan't to do not change after you copy on frame 2. Thing
    > is I
    > have around 10pics on a chassis, converted film of symbol. When coming
    > who
    > symbol, images are on the same frame, but can be changed individually
    >
    > Pls help ASAP... I need to do emergency

    It looks like you copied a symbol from one image to another, then
    "gone in ' and edited this symbol... what you need to do is create a copy
    the symbol and change this one instead... IOW...

    step 1:
    'symbol1_mc' in the library is duplicated to create 'symbol2_mc '...

    Step 2:
    you copy your picture 1 on frame 2 of the timeline just as you did

    Step 3:
    Use the properties panel to switch on stage (and the second image)
    "symbol1_mc" with "symbol2_mc"... so that you now have 'symbol1_mc '.
    frame 1 and 'symbol2_mc' on frame 2

    Step 4:
    then edit "symbol2_mc".

  • 27gig upside down footage, the best way to change? Flip export then re edit or what?

    Hi guys, I went on a ski hol recently and have 27gig down on a helmet camera footage, I'm really stuck on how best to modify, it is filmed at 60 frames per second at 720. Not sure if reverse all export and import the correct path upward and start editing from the source and, if that would be the best way of setting export to keep the out put to the same settings. Thanks in advance

    To .avi I would try uncompressed (none), UT or Lagarith.
    All them is likely larger than your original files,
    but that's the price to pay for shooting backwards.
    I favor uncompressed (none)... the files are a little smaller.

    For Quicktimes, component or uncompressed without loss.
    The Avid DNxHD codec becomes good review of quality depending on the size,
    but I don't have any direct experience using it.

    You could experiment with high speed I-frame only MPEG files.
    and modify your own encoding settings to get what you want.

    First, I'll start with a short clip and experiment with your results.
    Some formats can read for you more easily than others,
    and you don't want to encode alone to find reading
    is not what you expected.

    Good luck and happy flipping file.

  • Can not add members to a group as the group administrator

    Hello

    My colleague has created a 'WE_PM_group' group and added me to this group with the "group administrator" role.
    But when I connect to the tool "Create or add new members of the group", then after SSO and grateful the "read and understood the guidelines Beehive online", it does not show the "WE_PM_group" (it does show some groups) and I can only create a group.
    My question: How can I add members to the group that my colleague created and I am the group administrator?

    Note: When I connect to the Administration of BeehiveOnline tool, I indeed see my e-mail address in the 'WE_PM_group' group and with the correct role (Administrator of the Group)

    Thanks for your help,
    Peter

    You can add users to a group, your colleague whop created the group to add your email address in the field E-mail of managers. Any user with their email address in this field will be able to manage the group.

    Phil

  • Residential group number! I can't change the password or leave the group. Convenience store can not solve the prob

    I did a clean install of OS win7 ultimate. If I try to change the PW, it says that windows cannot configure a homegroup on this computer... but still, he said that this computer belongs to a homegroup. If I try to leave the homegroup, it says windows could not remove the computer from the group. Troubleshooting, declare that the Peer Name Resolution Protocol service or peer network identity Manager is not open. If I go in services, it shows that the NIBPM is automatic and the PNRP protocol is manual. If I try to start the PNRP protocol, it is said that windows didn't start the service because of the error code # 0 x 80630801. Peer Networking Grouping also gets error code # 1068.

    Hello

    On the Start Menu, open the control panel and open Folder Options.  Click on the view tab, check the radio button titled "Show hidden files, folders and drives" and out the box "Hide extensions of known file types".  Click on apply to apply these changes.

    Then go to C\Windows\ServiceProfiles\LocalService\AppData\Roaming to Local disk and open the PeerNetworking folder.  Inside, you should see a file called idstore.sst.  Delete this file.  Close this window and return to Folder Options then re - hide hidden files folders and drives and extensions of known file types.

    Restart the PC and let Windows load completely.

    Now, check if the following services appear as shown below, and if they are not, if you can set them up now.

    Peer Networking Grouping this should see the service type as Manual and the service is expected to show that started.

    HomeGroup Provider should show as Manual startup type, and the service should show as started.

    Peer name resolution should see commissioning type as Manual and the service is expected to show that started.

    Peer Networking Identity Manager should display type as Manual startup and service should show as started.

    If they are all able to start, or have already started, see if Homegroup now works properly.

    Kind regards

    DP - K

  • undo the groups for changes in the user interface

    Hello guys,.

    Is it possible to use groups of cancellation to make the changes that the user creates in Panel by me?

    Let's suppose I have create a window Panel / were the user can fill some EditText, select the items in a TreeView, etc.. Is it possible that I can use cancel groups for this change?

    Thank you

    Francine

    ScriptUI does not provide this feature natively.

    But you can add several addEventListener() and write all changes to recover, then file txt them.

  • How can I change the group that is assigned to a contact?

    I synchronize contacts on my 2 iPhones, 2 iPads, MacBook Pro and iMac. I would like to change some of my current designations of the group for some of my contacts. How can I change the group that is assigned to a contact?

    Mark,

    First of all, make sure that you deal with iCloud contacts.

    With the help of your MacBook Pro or iMac Contacts open and remove unwanted contacts outside the group. You will be asked "do you want to remove the card for 'XXX' or delete Group 'YYY'.» Choose "remove group.»

    Then go to "All Contacts" and drag the name of the new group.

    If you want to see what the contact belongs to groups, click on the contact and press 'option '. All groups with this name will be highlighted.

  • I want to remove the group members in AD

    I want to remove the group members in AD using c# currenlty referring to the code on MSDN avliable

    http://msdn.Microsoft.com/en-us/library/Windows/desktop/aa772133 (v = vs. 85) .aspx

    but make error on line

    objGroup = objADAM.Children.Find (strGroup, 'group');

    Error message:-there is no such object on the server.

    Please suggest

    Hi Stephen,.

    I understand that you need to remove the Member of group in AD.

    The problem you are having is more complex than what is generally answered in the Microsoft Answers forums. It is better suited to the MSDN forums.

    Please post your question in the MSDN Forums.

    You can follow this link to ask your question:

    http://msdn.Microsoft.com/en-us/vstudio/aa718325.aspx

    For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • How to change the Group CanoncialName to DistinguishedName

    Hello

    In the screenshot, the default group is an extension customized for LDAPGroup and the poster as CanonicalName group. The customer wants to change to DistinguishedName as the owner of the account. How can we change it?

    Thank you!

    You must change the display model at the table of dialogue LDAPGroup (assuming that your custom extension is oriented to this table).

  • GETVPN and regeneration of the keys when several members of the Group leave at the same time

    He did not specify how the key servers respond when several members of the group start simultaneously. For example, if 3 members leave the same group, made the key manager sends three keys (KEK, TEK) and only the last will be available for future connections? Or the key manager optimizes the regeneration of the keys and sends only a single key?

    Thank you

    Stone,

    On himself, he is not uncertain. You can retrieve the session memory keys (not impossible but difficult).

    I guess what you are looking for is a red button to clear the SAs on all devices?

    In this case:

    http://www.Cisco.com/en/us/docs/iOS-XML/iOS/sec_conn_getvpn/configuration/15-2mt/sec-get-VPN.html#GUID-6267F36C-094F-483F-A1CA-735D39484364

    Specifically "clear members ks gdoi crypto now."

    There is a particular risk that you thought?

    M.

  • How to replace the members of the Group missing redo log after the failure of a support

    Hello

    I'm testing a disk failure scenario.  I had recovery multiplexes on three sites (Windows drive letters) logs; one of the three locations also contained the data files.  I deleted the Windows player that contained data files and saw a restoring with RMAN.   All is well except that redo log members who are found on the occult Windows disk are of course still missing; the database opens, etc., but puts messages like this in the ALERT.log:

    ORA-00321: log thread 2 1, cannot update log file header
    ORA-00312: wire 2 1 online journal: ' F:\APP\NGORA12CR2SRV\ORADATA\ORATEST5\ONLINELOG\O1_MF_2_BW4B5MY0_. JOURNAL"


    What is the 'right' way to replace missing limbs?  Just get all the new groups of newspapers with new members on all three discs?  Carefully copy the LOG files representing missing members of one of the other sites?  I add new members at this location and remove existing members (missing)?


    Is how important it?


    Thank you!


    Martin

    See 'Recover after losing a member of a group of Redo Logs online multiplexed'

    at http://docs.oracle.com/cd/E11882_01/backup.112/e10642/osadvsce.htm#sthref2205

    Hemant K Collette

  • Apply an object style to the group without changing the object style of page within the group elements?

    Does anyone know a way to apply an object style to a group without changing the style of the subject of the articles within the Group?

    Well, as far as I know, there no way to do it. Apply an object style to a group applies this style to all elements within the group as well. So, I resorted to writing a script for this.

  • Auto answer for the members of the group does not

    Oracle Communications 7u4 - 27.01 (7.0.4.27.0) e-mail server 64 bit (built 30 August 2012)
    libimta.so 7u4 - 27.01 64bits (built 08:49:27, August 30, 2012)
    With the help of /u5app/opt/sun/comms/messaging64/config/imta.cnf (updated)

    Automatic response of users who are part of a group does not work when the email is sent to them through the email address for the group. If the email is sent directly to those users with their own email address then their autopreply work. Auto answer may work for users when they receive mail from a group address? If so, how can I go about setting up that?

    Thanks in advance.

    It is expected that mail sent to a list is not automatic response of the members of the list. This is explained, as well as possibly the means to get there, if you really want that in the following Article in the Knowledge MOS:

    How to configure the automatic response for members of a mailing list? (Doc ID 1511284.1)

  • Possible to change the contents of text inside the group frame?

    Hello world

    I'm newbibe to Indesign forums.

    I had grouped image placed on the rectangle frame and the text. now I need change content text frame using indesign Javascript

    Possible to change the content of text inside the group frame... ?

    -yajiv

    Hello

    Try the following lines.

    main();
    
    function main() {
    
        if  (app.documents.length != 0  &&  app.selection.length == 2 ) {
            if( app.selection[0].constructor.name == "Group" && app.selection[1].constructor.name == "Group" ) {
                var sel1 = app.selection[0];
                var graphics1 = sel1.allGraphics[0].itemLink;
                var text1 = sel1.textFrames[0].contents;
    
                var sel2 = app.selection[1];
                var graphics2 = sel2.allGraphics[0].itemLink;
                var text2 = sel2.textFrames[0].contents;
    
                sel1.textFrames[0].contents = text2;
                sel2.textFrames[0].contents = text1;
    
                var fP1 = File( graphics1.filePath );
                var fP2 = File( graphics2.filePath );
    
                graphics1.relink( fP2 );
                graphics2.relink( fP1 );
            } // if
            else {
                alert ( "Select 2 groups!" );
            } // else
        } // if
        else {
            alert ( "Wrong selection!" );
        } // else
    } // main
    

    Although it might work for you, it is probably not advisable, because if you apply other content on the chassis, you modify the content, but not the formatting. Even with the restoration of the links of the images.

    So a better solution may be, separate frames, move them and group them back.

Maybe you are looking for

  • You can play Pokémon go on iPad Pro?

    Can you play Pokemon go on iPad Pro?

  • Satellite A355D - where to find XP drivers

    Hi guys! I m new here and 2 days ago I bought a new laptop Satellite A355D series and he installed a Windows Vista 64-bit.However, as I tinker with it, it seems that a lot of my software that really important in my daily task seems not work with this

  • How to ftp to a NSLU2

    I can enter into the NSLU2 via ftp from windows without problem but do not seem to be able to get my IP WEBCAM to send photos and video via ftp Through a local network, so, the webcam is on 192.168.1.10 and NSLU2 is on 192.168.1.77 I want to ftp imag

  • Failure ID: GLHJ10-5N46PP-MFH15G-60UH03

    Memory test: past INTELLIGENT control: passed DST short: failure Failure ID: GLHJ10-5N46PP-MFH15G-60UH03 Product ID: LM726AV Hard drive 1 I don't know how to read this, but my laptop worked hot enough recently... perhaps it's something to do with it?

  • 6 of Lightroom, error 1

    IK heb Lightroom 6 van mijn i - mac gecopieerd naar mijn nieuwe i-book pro.Bij het starten van het programma op said laatste expensive treat ik "error 1".Hoe kom ik ragazzo?[Address of personal e-mail removed by Mod]