How to lock sap users in os level

Dear consultants,
how to lock the sap users in OS level.please tell me any one.

Hi Pradeep,
The table is usr02. The command is as below:
update <schema>.usr02 set uflag=128;
in case you need to mention any particular user to be locked, mention in the where clause.
Before using this command, use the select statement to check the current status of the users.
Regards,
Meenu Hans

Similar Messages

  • How to lock multiple user for a transcation code at same time is der any tc

    how to lock multiple user for a transcation code at same time is der any tc
    suppose i hav 15 user and i want to lock 10 user for mm02 who can i to it

    Basis can do a export and import transport, still if don't have connection between boxes.
    or
    check this
    http://www.sap-basis-abap.com/abap/copy-program-variants-from-one-to-another.htm

  • How to lock the statistics in column level.

    Hi All, i am using 10.2.0.1.0 version of oracle.
    I have gathered freuency histogram manually on one of my column of a table to provide more information to optimizer for better calculation of cardinality.
    Now i have my weekend job runs for gathering stats on schema level with method_opt as 'For all column size repeat'. But i dont want the stats of above column to be overridden by the stats job. I dont want to lock the statistics of whole table, but i just want to lock the column level stats for this table.
    how the above can be achieved?
    Below is the details.
    Code for manual histogram , i have eliminated many buckets purposely, as there are 194 buckets.
    DECLARE
    m_distcnt NUMBER := 916714;       -- num_distinct (As it is there in dba_tab_columns)
    m_density NUMBER := 0.00000109031397771616;  -- density (As it is there in dba_tab_columns)
    m_nullcnt NUMBER := 0;       -- num_nulls (As it is there in dba_tab_columns)
    m_avgclen NUMBER := 8;       -- avg_col_len (As it is there in dba_tab_columns)
    srec      dbms_stats.statrec;
    n_array   dbms_stats.numarray;
    BEGIN
      srec.epc := 3; -- no of end points
      n_array     := dbms_stats.numarray(3870     ,
                                                 3891     ,
                                                 3945     
      srec.bkvals := dbms_stats.numarray(25000     ,
                                                 55000     ,
                                                 100000     ,
      dbms_stats.prepare_column_values(srec, n_array);
      dbms_stats.set_column_stats('Schema1', 'USERS_HIST_TEST', 'COMPANYPK',
      distcnt => m_distcnt,
      density => m_density,
      nullcnt => m_nullcnt,
      srec    => srec,
      avgclen => m_avgclen,
      force => TRUE);
    END;
    -- Weekend job which will override above histogram
    DBMS_STATS.GATHER_SCHEMA_STATS (
        ownname          => 'Schema1',
        estimate_percent => dbms_stats.auto_sample_size,
        block_sample     => FALSE,
        method_opt       => 'FOR ALL COLUMNS SIZE REPEAT',
        DEGREE           => dbms_stats.default_degree,
        granularity      => 'DEFAULT',
        CASCADE          => TRUE,
        options          => 'GATHER STALE'
    Edited by: 930254 on Jul 4, 2012 9:08 AM

    Pl do not post duplicate threads - How to  lock the statistics in column level.

  • How to Send SAP User to Spool Job instead of SAPService SID

    Dear Gurus,
    I have to print data using access method C (or L) via print server that runs on win 2008.
    SAP AS runs on win 2003.
    It works fine, but user which appears in print job is SAPService<SID>. We need here sap user who actually initiated printing. It can be obtained easily by chaning access method to G. However, this solution is not acceptable.
    Thank you in advance,
    Nenad

    Problem solved on OS level by introducing anonymous log on.
    Cheers.

  • EREC : Lock SAP user ID for future date

    Hi ,
    Can anyone  suggest a way to Lock an SAP user id for a Future Date .
    Thanks in advance,
    Tk

    Hi,
    Instead of locking you can better delimit so that you can have a history for audit reasons.
    i dont find business requirement for locking user.
    thanks
    rafi

  • How to lock a user

    Hi,
    I have a workflow in which I want to lock a user.
    I would appreciate if anyone could provide an example
    as to how to do this.
    Thanks,
    John I

    Thanks for the hint. I got it working with the following code:
    <Activity id='9' name='Lock Lighthouse User'>
    <Action id='0' application='com.waveset.provision.WorkflowServices'>
    <Argument name='op' value='lock'/>
    <Argument name='doLighthouse' value='true'/>
    <Argument name='doResources' value='false'/>
    <Argument name='accountId'>
    <ref>WF_CASE_OWNER</ref>
    </Argument>
    </Action>
    <Transition to='end'/>
    <WorkflowEditor x='352' y='182'/>
    </Activity>
    Even though the IDM 6.0 SP1 documentation
    talks about a lockOrUnlock workflow service,
    (as you mention),
    it appears that there is no such thing.
    There is however an undocumented
    'lock' workflow service which calls
    a lockOrUnlock private java method.
    This mirrors the correctly documented
    enable and disable workflow services,
    which also internally call a private java method
    disableOrEnable.
    More bad documentation I think.
    Thanks for you help.
    John I

  • How to lock a user by using random password?

    hello,
    i need to lock a user from a target system by pushing in random passwords for the accounts. i am successfully able to create an adapter that can generate a random string, but the place where i am stuck is that where to use it as i just need to lock the user and not delete it. if the corresponding manager approves the suspension then the account needs to be deleted else again the account needs to be enabled.
    Please help!
    Thanks!

    ok... sorry...
    so what i did is that i have created a resource that has to be provisioned to the user if the user is to be terminated, in which the manager will mention the user to be terminated and the reason.
    now OIM has to lock the user till the reason that has been given by the manager is deemed valid by the second level manager.
    so for that i have a approval and a process form and processes associsted with them. but the problem is that i need to lock the user using the "Entity Adapter" so i need to do so only in the "Data Object Manager" and thus the problem starts as i dont know where to map the adapter that generates the random password so as to lock the user.
    please, if you find anything confusing here, go thru the discussion in the whole of the thread.
    Thanks!

  • How to lock a user's account

    Hi there,
    In Solaris 9, how can I lock a user's account. By saying lock, I don't want to delete the account and any user's date under his home directory, I just want to inactivate it. I chceked the man page of useradd but I couldn't find it.
    Any related informationa is highly appreciated!

    Not sure if anything has changed from Solaris 8 to 9 but you should be able to use the passwd command. Use,
    $passwd -l username
    This will lock the account.
    To activate the account again use the passwd command like,
    passwd username
    Then specify the password.

  • How to let SAP user use SSO to access Application in DMZ?

    Hi All,
    Our J2EE application is running on a system in DMZ which can not be connected with LDAP. So I am wondering if it's possible to let SAP user use SSO to access our application.
    After talking with my colleague I think the only way is to import SSO public key to our WebAS and create user in UME and then assign user to the corresponding public key, but anybody know where to download SSP verification file or is it allowed to download and import into another system at all?
    Regards,
    Bin

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How to lock a user with a report in batch?

    Hi experts,
    is it possible to lock a range of users with a report which runs in batch? I decide to modify the report EWULKUSR, because I can't run this report in batch. But maybe there is any other report?
    Any idea?
    Thanks and best regards
    Max

    Hi Sim,
    I mean, locking the user in the system.
    Thanks for your answer.
    Best regards,
    Max

  • How to connect SAP user to a webdynpro and how to pass parameters ?

    Hello,
    I have two technical questions :
    1) How to recognize user from Portal and to get his pernr from SAP Backend (SSO to configure with SAP R/3 ?, use a bapi to get the pernr with the name and firstname of the portal user ?)
    2) How to open a new window in a webdynpro application (one view and you click on a row of a table, i have to open a new window (frame in my browser))
    Thanks a lot for your answers
    Cheers
    Aurelien

    Hi
    For ur Second Question if u want a popup Window this is how u do it.
    IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows(<<Window Name u have defined while creating component>>);
               IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
               wdContext.currentVnControllerDetailsElement().setVaWindowInst(window);
               window.setWindowPosition(WDWindowPos.CENTER);
               window.setWindowSize(700,400);
               window.open();
    Here vaWindowInst is of type IWDWondow . This u can have in Java NAtive type
    com.sap.tc.webdynpro.services.session.api.IWDWindow
    If it is External Window Then i shall give u the code for the same.
    get Back

  • How to restrict the Users at Page level

    Hi Gurus,
                         I want to restrict the users page to page.I am having 3 pages and 3 set of users.If any user having access to page1 then he will not see Page2 & Page3 .For Page2 & Page3 it is same case i.e page2 will displayed to user2 and not to user1 & user3.Same for page3 which will be displayed to user3 only.
    Waiting for reply..
    Thanks & Regards
    Ganesh

    Hi,
    There is PCDFilter, which can be used to filter role and workset content depending on the context.
    I think this can solve your usecase.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3367e690-0201-0010-d285-c69bd884c9f3
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/17968de1-0a01-0010-1f9f-c090fbc7001a
    Greetings,
    Praveen Gudapati
    [Points are always welcome for helpful answers]

  • To create Sap User ID

    How to create Sap User ID immediately after creating the Employee number
    what i mean is any User Exit in PBA7  so that after creating Employee that user Exit has to be triggered
    Pleas help its urgent
    Thanks in advence
    veeru

    As discussed I have to open SAP ID of someone for approving PO's in SAP.
    Role of Release strategy 03 needs to be allocated to the ID as below.
    Once it is place I need to remove Authorization of release strategy 03 from Manager and Sr Manager Level
    po amount is upto 2 crore..

  • How to create a user in oracle.

    how to create a user in oracle level.i know how to create from front end.can any body suggest.how to create oracle user from backend.
    Thanks,
    Dave

    Hi,
    We can use the 'hr_user_acct_internal.create_fnd_user' API to create the users. The sample code is as follows:
    BEGIN
    apps.hr_user_acct_internal.create_fnd_user
    (p_user_name => 'XXX',
    p_password => 'XXX',
    p_employee_id => 1234(This is the person id from per_all_people_f),
    p_user_id => x_user_id,
    p_user_start_date => SYSDATE,
    p_email_address => 'XXX',
    p_description => 'XXX',
    p_password_date => NULL
    COMMIT;
    END;
    and to add the responsibility to the user, we can use the following code.
    BEGIN
    fnd_user_pkg.addresp
    (username => 'XXX',
    resp_app => user_res_rec.application_short_name,
    resp_key => user_res_rec.responsibility_key,
    security_group => 'STANDARD',
    description => 'DESCRIPTION',
    start_date => SYSDATE,
    end_date => NULL
    END
    Best Regards
    Arun Kumar S.R
    Apps Associates

  • Lock a user for 10 min

    How to lock particular user from logging in for about 10 mins

    Hi
    ALTER USER user ACCOUNT LOCK;
    To create a job use 'dbms_job' package, 'submit' procedure:
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_job.htm#i1000807
    what -> 'ALTER USER user ACCOUNT UNLOCK;'
    next_date -> 'SYSDATE + 1/24/6' -- after 10 minutes
    hope this helps
    asp

Maybe you are looking for

  • Problem with printing from word 97

    hi!! I have HP Photosmart C5280 All-in-One installed. Unfortunately my fother still uses MS Word 97 because he knows it best. Any try to print a document from Word 97 results in crash of the programm without any error message. It just closes when he

  • Selecting PM order according to status in report

    hello we are writing a report in which we need to select PM orders according to several parameters, one of which is a specific User Status. I see that there are many tables containing statuses, like TJ20, TJ30, and plenty of others but I cannot find

  • No OCR

    I personally think HP has reached a new low. The web site is pittyful and has little info for us. I simply wanted help with OCR and not one place on this stupid web site helps. OCR is a simple process and needed often yet nothing works on the D110 pr

  • Need to call DB func on create in ADF BC

    Hi OTN, I have a taskflow for creating new records in some related tables with business components. For key attributes I use DBSequence type. So while creating new records I have temporary negative keys. For some cases I need to calculate attribute v

  • Buffered Messaging Problem

    I'm just starting out with Streams and was working with the example in Chapter 23 of "Oracle Streams Advanced Queuing User's Guide and Reference". It works. Then I decided I wanted to use a buffered queue for non-LCR messaging. So I changed the enq_p