Statement for Lock and Unlock an Oracle user (Urgent)

Hi DBAs.
I just want to know about the statement used for lock and unlock the Oracle user thru sysdba suer.
Thanks
Hassan

Hey,
SQL> alter user <USERNAME> account lock;
and
SQL> alter user <USERNAME> account unlock;
Cheers,
Marcello M.
Sorry Justin, same answer........
Message was edited by:
Marcello M.

Similar Messages

  • Hi how to handel the lock and unlock the table

    Hi,
    i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and  DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
    regards,
    Hari.

    Hi,
    i assume it's in table JEST
    so select:
      SELECT        * FROM  JEST
               WHERE  OBJNR  =  aufk-OBJNR
                AND   STAT   IN S_STATI
    Andreas

  • Lock and unlock sharing DAQ PCI-6036E

    Is there an example for lock and unlock a DAQ resource (PCI-6036e)? I'd like to protect it from different threads.

    Well, I have LabVIEW 6.1 and TestStand 2.01f
    Does NI-DAQmx come with LV7?
    My application has one serial port,one PCI-6036E connecting to one SCXI with 16 thermocouple and 10 force sensors.
    motor controller pc board (MC)
    PC with TestStand and LabVIEW (master)
    | |
    RS485 COM1 PCI-6036E
    | | | | SCXI CHASSIS
    slave MC1 MC2 MC3 MC4 TEMPERATURE SCXI-1102
    | | | | | | | | Strain gauge SCXI-1520
    Stepper 1-3
    Brushless
    The PC is the master,
    MC1 2,3,4 are slave motor controller, they don't initiate communication but they take a command and execute it and they can return mo
    tor status encoder position.
    MC1 can controll four motors, serial command has MC1 address and individual motor sub-address.
    The four motors connect to MC1 are stepper and small.
    The motors connect to MC2 are brushless type
    The two motors connect to MC3 are stepper and medium size. Different manufacturers, but they all have encoder feedback and take about 4 - 15 seconds to move to commanded position.
    Strain gauges for measuring the force of the linear motors. Most motors have one strain gauge, but three motors have two strain gauges. (Fwd 1 inch with 8psi to a cork screw, once finding the corkscrew resistance, punch thru it with 50 psi and 1/2 inch)
    The test is life analysis and motor force.
    The test cycles the motors continuously and collecting data (encoder, temperature, force, cycles)
    What are the ways for doing the test?
    How should the graphical User interface be? this is the thing that the project managers care about. Only three seconds to impress them.

  • FM for locking n unlocking a table for update

    I have to update a table named bnka, can anyone tel me the FM for locking and unlocking a table before updating the same..
    thnkx
    amit

    you can use FM ENQUEUE_EFBNKA to lock the table vbak
    and DEQUEUE_EFBNKA to unlock it
    Example:
    call function 'ENQUEUE_EFBNKA'
    EXPORTING
       MODE_BNKA            = 'E'
       BANKS                = bnka-banks
       BANKL                = bnka-bankl
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    update BNKA .....
    call function 'DEQUEUE_EFBNKA'
    EXPORTING
       MODE_BNKA       = 'E'
       BANKS           = bnka-banks
       BANKL           = bnka-bankl.

  • User lock and Unlock from CUA

    Hello All,
    I have a scenario where locking and unlocking a user in a specific child system has to be done through CUA. The TCode SCUM allows to do that. However, I'm looking for the underlying BAPIs corresponding to this TCode, so that my external application can directly invoke that.
    Any pointers will be highly appreciated.
    Best regards,
    Bala

    Are you wanting to lock selectively (only in some child systems and not others)?
    What is the reason for not using SCUM?
    The BAPI is like a gun, where you enter only the user ID as the bullet (a silver one with the user's name on it).
    You then aim the gun at a target (in the destination parameter of the FM).
    When you pull the trigger, the user is locked in the target.
    The caliber of the gun depends on the authorizations of the user in the destination server connection.
    Whether or not you hit the user, will depend on how good a marksman you are on the client server.
    Cheers,
    Julius
    Edited by: Julius Bussche on Apr 2, 2009 1:02 PM

  • File Lock - How to lock and unlock a file ? Can we do that for an FTP File?

    Hi All,
    I like to retrieve a file from the FTP server using Apache Commons Net libraries.
    for example if the file size is 20MB. When the file is in the progress of copying or transferring from the FTP server i need to lock the local file which is in our local directory so that no other process will use the same local file which is in the process of copying otherwise partially copied files will be used by another process.
    the file should be locked when it was in the progress of copying from the server. I have an automatic process which will access file objects at certain time and try to process the files.
    I like to know the simplest and easiest way to lock and unlock a file object locally which is trying to copy a file from the FTP server which is of huge size.
    And also i like to know how to lock and unlock a file in general?
    Thanks,
    J.Kathir

    we can set it read only only when it complete finishing the writing.
    can we able to make the file as read-only while transferring data to file.
    How to achieve it ? pls give me some sample code

  • Keyboard lock and unlock for 8330

    I need a way to lock and unlock the keyboard.  I have searched a number of websites for an answer to my dilema and it seems several methods are mentioned but none work for me.  I need to lock the keyboard when phone is in my pocket.  Many thanks to anyone who can help.

    Well, according to your device manual, this is the procedure:
    Lock the keyboard
    If you do not set a BlackBerry® device password, you can lock your keyboard to avoid making calls and pressing keys accidentally.
    On the Home screen or in the application list, click Keyboard Lock.
    To unlock the keyboard, press the asterisk (*) key and the Send key.
    You can look further into your manual here:
    http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&docType=kc&externalId=http--docsbl...
    Good luck.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Locking and unlocking mass users

    Hello
    How can we lock and unlock mass users?
    Edited by: Mohammed Siddiqui on Jul 16, 2008 2:37 PM

    Hi Siddique,
    Follow the below link
    Re: locking users while implementing support packs
    Regards
    Zam

  • Restrict SU01 to only lock and unlock user passwords

    how  to  restrict SU01 to only lock and unlock user passwords,(should not have acces to create users) What is the auth.obj I need to change ? please suggest.
    Thanks
    sr
    Message was edited by:
            sunny raj

    Restrict authorization object S_USER_GRP to activity '05'
    Cheers,
    Ben

  • Capability or admingroup to lock and unlock views

    Hi all,
    I am trying to lock and unlock users via
    lockObject(com.waveset.object.Type.USER, user, map); on a lighthouse session object and unlockObject((Object) com.waveset.object.Type.USER, user, map); on a session object
    but I get the error:
    WavesetException : com.waveset.util.WSAuthorizationException: View access denied to Subject AGROUPE1 on User: UTEST1.I tried to create an admingroup with this permission
      <Permissions>
        <Permission type='User' rights='View'/>
      </Permissions>But it didn't change the error.
    Any idea so that it could work ?

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • Is it possible to lock and unlock a transaction?

    Hi SDN,
    Is it possible to lock and unlock a standard transaction( for eg VA02 ) through my program?( i am creating a customized version of standard transaction ) I want to lock the transaction for my user-id and then i will update the values in that transaction and finally i will unlock it.
    I got the FM for locking at the database level.is there is any FM to lock and unlock the transaction?

    Hi,
    It may not be the best way, but maybe you could use the functionality behind transaction code SM01. Here you can lock/unlock the transaction code. If you look at the program, all it is really doing is updating table TSTC field CINFO. CINFO = 80 when unlocked, CINFO = A0 when locked. You could just update the field accordingly and then call this function module right after.
    * For locking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        LOCK = 'X'.
    * For unlocking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        UNLOCK = 'X'.
    Regards,
    Ferry Lianto

  • FM to Lock and Unlock the Tcode CJ02

    Hi,
    I want to lock and unlock the Tcode CJ02, my code is as below.When I am executing the Report, I am able to create the Settlement Rule in first Row but I am getting an Error Mesage saying " Subproject 4-0123-02-01-01-10-01 is currently processed by USER" though there is no other session open under the user name when trying to create settlement rule in second row in the loop. Wbs element that ima using for creation of settlement rules is "4-0123-02-01-01-10-01".
    loop at it_src into wa_src.
    Lock the Tcode 'CJ02'.
    Perform BDC Recording to Create Settlement Rule.
    Unlock the Tcode 'CJ02'.
    endloop.
    Regards,
    Deepthi.

    Hi, you can block the Subproject with Lock Object, you can create this under SE11
    after you have created this, use these FM for Enqueue/Dequeue,
      call function 'ENQUEUE_EZ_ODAPROF_PO'
           exporting
                mode_ztma_odaprof_po = 'E'
                mandt                = sy-mandt
                ebeln                = cod_oda
                ebelp                = cod_pos
           exceptions
                foreign_lock         = 1
                system_failure       = 2
                others               = 3.
      call function 'DEQUEUE_EZ_ODAPROF_PO'
       exporting
         mode_ztma_odaprof_po       = 'E'
         mandt                      = sy-mandt
         ebeln                      = cod_oda
         ebelp                      = cod_pos

  • Lock and Unlock a table:AFVU

    Hi Folks.
    I want to modify a standard table (AFVU )  with new user dates from User.For this,First I need to lock and unlock the table.
    When I am trying for the standard table lock object (EAFVU) ,it was not there in the system.
    Is there any way to find out the lock object for a particular table?
    How to proceed for this?
    Any Pointers are much helpful.

    Hi,
    Go to SE11 and display your table - do a where used list and select lock objects.
    I really hope when you say you are modifying a standard table you are only updating custom appends on that table, and not directly updating standard SAP fields...
    Gareth.

  • Locking and Unlocking an Object

    Hi all,
    I have a requirement of chaging the characteristics of the Equipment but when i use the BAPI BAPI_OBJCL_CHANGE by passing the Equipment number and the required values i get a return message saying that the equipment is locked by User WF-BACTH but when i open the same equipment using the IE02 i do not see any locks........
    i want to know the funstion modules which can be used to put a lock and unlock an Equipment...........
    Regards,
    Ravi G

    hI
    Enqueue and Dequeue using BAPI can be used to lock an object.
    For example :
    If we need to lock and employee number to be edited only by the person who set the lock, we can use a BAPI.
    Do read the documentation of 'BAPI_EMPLOYEE_ENQUEUE'. It will give you a better idea of how to implement Enqueue for a BAPI.
    Refer the link -
    Re: Enqueue and Dequeue consept----Please explain urgent

  • Locking and unlocking photo books

    When I creat a photo book and walk away from it for a while, I cannot get back into and continue my work. It automatically locks the book and thinks I am done. How can I lock and unlock? I want to be able to spend a few days working on a book but so far I have to complete it in one sitting. Also, when I had a lower version of Iphoto I could lock and unlock without a problem.
    Thank you for your help.
    Debra

    Debra:
    Welcome to the Apple Discussions. What do you mean by "lock" and "unlock". Never heard of that. Do you mean open? What happens when you close iPhoto and then reopen it again. Can't you click on the book icon in the Source pane and get it back open to work on it?
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.

Maybe you are looking for

  • Connected bluetooth headset to Macbook, but no audio

    Hey. I successfully connected my Jabra bluetooth headset to my Macbook. In System Preferences -> Sound, I selected the headset device for both my input and output. The input seems to work, but the output does not work at all. For output, it says "The

  • Inserting a constant after a file name

    Hello all, I have been working on a Javascript for Acrobat Pro 9, which I want to pull the first page of a PDF file & move it to another folder, I have managed to achieve this, however it would also be useful to insert an additional part to the file

  • Premiere crashes when copying something in my sequence

    I'm working on a PC with the latest CC Premiere version and everytime i try to copy a part ( ctrl + c) of my cut the program just crashes. I tried out a lot now and nothing really works for me. I tried different parts of the sequence, different codec

  • Troubleshooting Ringtones

    I can't get the ringtones feature to work with iTunes since it says that it requires me to connect to the iTunes Service Disclaimer but then when I go there there's no option to accept the disclaimer to allow me to start creating ringtones. What am I

  • Installing CS 5

    My office has two licenses for Adobe Web Premium CS 5. I am trying to retrieve an unused license and installation. It has been a year since the software was installed on one computer. Thanks for any help. Georgette L. Keeler [private data removed]