Deleting user SAP* in SQL

Hi
well i am having some difficulties, i need to delete the user sap*  from an SQL Database, i know that i must execute the following command delete from usr02 where bname='sap*' and mandt='xxx'
my question to you is where to i execute this query? do i use the query analyzer? or i execute it from somewhere else? please do provide the instructions of how to go about this in SQL
I am more used to using Oracle

Hi trevor,
the command in sql is, <b><i>delete from usr02 where mandt='000' and bname='SAP*';</i></b>
The you should be log in client 000 with "sap*/pass"
Regards
Juan
Please reward with points if helpful

Similar Messages

  • How to delete user SAP* from database in MaxDB

    I´m unable to login with user SAP* into client 000 but in other clients.
    How can I delete the user SAP* from client 000 that I can login with the standard password?
    Is it possible within a transaction in another client or only on DB?

    Hi Damian,
    You need to connect to MaxDB SQL studio using user SuperDBA,admin
    Run the following commands
    select bname from <SAPSCHEMA>.USER02 where bname='SAP' and MANDT='000;*
    This will list user SAP* from client 000
    delete from <SAPSCHEMA>.USR02 where bname='SAP' and MANDT='000';*
    This will delete SAP* from client 000.
    Regards,
    Deepak Kori

  • Last Logon Date for Deleted Users

    Hi,
    How can I checked to see last logon date for a deleted user-SAP ECC 6.0?
    -Wes

    > ... chekcing USR02 the TRDAT field has been reset.
    In lower releases you could easily have made a big mistake doing that.
    In all releases the security audit log (SM20) is the correct tool for this, but you cannot retro-fit it.
    If the SM20 log is not activated for logon events, then there are several other ways of reconstructing parts of the information but they are all incomplete and a big effort.
    Cheers,
    Julius

  • How to delete users in CMC BO integrated with SAP BW

    hello experts,
    i am using bo 4.1 , i want to delete users in CMC which is integrated with SAP BW role import.
    i am deleting manually but after BW connection refresh again users is coming in to CMC.
    please tell me any alternate way to delete users
    thanks,
    naresh.

    Hi,
    You cannot delete the users if they are integrated with SAP BW role import.
    However if you remove all the roles that the users is/are member of then the user will be removed automatically in next update but by doing so it will remove all other users part of those groups that you are not interested in also.
    may i know why are you looking to delete users ?
    If you delete manually then all the personal folders will be vanished and even if your user comes back in the next update you will not be able to recover the personal folders.
    Thanks,
    Tanveer.

  • Deleted User recovery  in SAP R/3

    Hi :
    By mistakenly I have deleted user from the user list . After some time i came to know that , that user is productive user.
    Can any one help me for how to recover the user from deleted list.
    Thanks
    Chimsi

    Hi,
    I do not think that will be possible. You can recreate the same user-id though, and he/she shall be able to carry on (get the workflow items, inbox, transport requests and so on, of the earlier user-id).
    It maybe possible to search CDHDR and CDPOS tables to get some details of user deletion.
    cheers,

  • In which table deleted user list is stored

    Hi all,
    I have made one user ZTEST in sap through SU01. Its details has been stored in USR01 .
    When i deleted this user than the details of this user has been deleted from the tables USR01.
    After deletion on which table deleted user information is stored.
    Any BAPI is available which sgives the deleted table list .
    Thanks & regards

    Hi Lolo,
    There is no table available in SAP to view the deleted user information. But you can connect to SQL & see the deleted user information.
    I think the command " SQL>show recyclebin;" will show you the deleted user information.
    Regards,
    Mahesh Gattu

  • Can I get password for client 000 and user SAP*

    Hi Experts,
    Can get ur help for getting password for User SAP* for client 000 i.e SAP std. client.
    please it's urgent.
    Thanks & Regards,
    Yogesh

    Hi ,
    <b>If all the users are locked, they can be unlocked by</b>
    a)Try this command at ur sql plus query level
    Go to cmd prompt.
    Sqlplus /nolog
    conn /as sysdba
    this will take you to the sqlprompt.
    Just execute the earlier commands there.
    sqlplus><b>UPDATE SAP<schema>.usr02 set uflag=0 where mandt=<CLNT NO> and uflag=64;</b> this statement actually unlocks the users of that particular client. So, try for every client in that sap system.
    b) You can delete sap* user
    Go to cmd prompt.
    Sqlplus /nolog
    conn /as sysdba
    sqlplus><b>DELETE SAP<SID>.usr02 where mandt='CLIENT.NO' and bname=SAP*;</b>
    <b>Note:-
    After doing this restart the system. So, that a new user with the name "sap" gets generated with password "pass". Provided the parameter is set login/no_automatic_user_sapstar= 0 (Automatic user SAP is permitted).</b>
    regards,
    kanthi

  • DELETE USERS

    HI ALL,
      How do i delete the users which are locked in 000 or Master client!!!

    Hi abdul,
    If all the users are locked, they can be unlocked by
    a) GO to command prompt type <b>tp unlocksys <SID> pf=//usr/sap/trans/bin/TP_DOMAIN_<SID>.pfl;</b>
    b) or else try this command at ur sql plus query level
    Go to cmd prompt.
    Sqlplus /nolog
    conn /as sysdba
    this will take you to the sqlprompt.
    Just execute the earlier commands there.
    sqlplus><b>UPDATE SAP<schema>.usr02 set uflag=0 where mandt=<CLNT NO> and uflag=64;</b>
    this statement actually unlocks the users of that particular client. So, try for every client in that sap system.
    c) You can delete sap*
    Go to cmd prompt.
    Sqlplus /nolog
    conn /as sysdba
    sqlplus><b>DELETE SAP<SID>.usr02 where mandt='CLIENT.NO' and bname=SAP*;</b>
    <b>Note:- After doing this restart the system. So, that a new user with the name "sap" gets generated with password "pass". Provided the parameter is set login/no_automatic_user_sapstar= 0 (Automatic user SAP is permitted).</b>
    regards,
    kanthi

  • How to find out who made inserts/updates/deletes made to a SQL Table

    I want to know WHO MAKES INSERTS/UPDATES/DELETES TO a particular SQL Table. Bascially I want to AUDIT ANY Edites made to a SQL 2008 TABLE. I need info such as WHO AMDE THE Updates i.e. the user first/lastname, When update was made, what row was updated etc...How
    can I do that with SQL 2008?

    One way to achieve that would be to use triggers to detect when a change is made to the table, and then insert a record into another table/database detailing what changed and who by.
    You'd need three triggers, one for insert, update and delete respectively, and for each of those you use the "inserted" and "deleted" tables (system tables maintained by SQL) to retrieve what has been done. To retrieve who made the change you can query IDENT_CURRENT
    which returns the last identity value for a specific table.
    See :
    Triggers -
    http://msdn.microsoft.com/en-gb/library/ms189799(v=sql.100).aspx
    Inserted & deleted tables -
    http://technet.microsoft.com/en-us/library/ms191300(v=sql.100).aspx
    INDENT_CURRENT -
    http://technet.microsoft.com/en-us/library/ms175098(v=sql.100).aspx
    There may be better / more up to date ways to do this, but I've used this method successfully in the past, albeit a long time ago (on a SQL 2000 box I think!).

  • No User SAP* after the creation of a new client

    Hello,
    I made a system copy from PROD to DEV-System and upgraded the DEV-System to EHP7. Now I want to create a new customizing client but when I create the client in transaction SCC4 there is no user sap* on this client. I never thought this is possible.
    I checked my profile and everythings seems to be fine. (login/no_automatic_user_sapstar = 0)
    The client is in the table T000. I searched for any users in this client on SQL but there is no User:
    Can you please help me with this issue?
    Thanks a lot and regards,
    Bernhard

    Hi Bernhard,
    Parameter login/no_automatic_user_sapstar = 0 enables the SAP*(basically from SAP Kernel/hard-coded) for initial logon to the newly created client. Please do the client copy from 000/001 for super user (SAP* and DDIC) availability.
    for further info please check this notes
    2383 - Documentation: description of "super user" SAP*
    68048 - Deactivating the automatic SAP* user
    regards
    kartik

  • Steps for re-using the same user id of a deleted user in OIM 11g ?

    Hello experts,
    By Default, in OIM 11.1.1.5.0 it is not allowing to re-use the same user id of a deleted user.
    Consider a user with user id as "ABCD1234". The user is deleted from OIM and it is not getting displayed in the user search. But in DB we could see that user details with "Deleted" status. Say accidently this hard delete has happened .
    How do we create that user again with same user id ?
    What is recommended for such scenario ?
    Thanks,
    DK

    I suggest disable the unique index instead of dropping it using ALTER INDEX <INDEX_NAME> DISABLE command.
    Better way to handle this do below
    1. disable index
    2. update usr_login for deleted user using sql query eg. xx|usr_login and commit it ( update usr set usr_login='xx'|| usr_login where upper(usr_status)='DELETED')
    3. enable your index
    4. now login to OIM and easily you can create user with the previous user login
    In this case your Index is still enbaled so it won't hamper the performancem, because this index is being used in various places for user search.
    NOTE: disable any other constraints if required. But, I don't think so. Just disabling unique index will allow you to update"
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • In which table deleted user information is stored

    Hi all,
    I have made one user ZTEST in sap through SU01. Its details has been stored in USR01 .
    When i deleted this user than the details of this user has been deleted from the tables USR01.
    After deletion on which table deleted user information is stored.
    Any BAPI is available which sgives the deleted table list .
    Thanks & regards

    Hi
    You can get current database status using the following BAPIs-
    BAPI_USER_EXISTENCE_CHECK
    BAPI_USER_GETLIST
    BAPI_USER_GET_DETAIL
    Also check the report RPUAUD00 in which you can find out new infotype creation/modification etc.
    Regards

  • Deleting users in SRM

    We have loaded some 6000 users in SRM system and all are assigned to an org unit. Now i want to clean up all the data, delete all the users and their dependencies but not the org unit. The users should be deleted completely, should not be seen in SU01 also.
    Can some expert help me with this.
    Much appreciated
    Thank you

    Hi
    Try USERS_GEN transaction in SRM system.
    P.S.- Read SAP documentation before doing anything.
    <b>Related SAP OSS Notes to check -></b>
    Note 906353 SRM/EBP: Deleting user in CUA environment
    Note 785802 PPOMA_BBP: 'Defective' users in EBP
    Note 748600 SRM40-SUS:Users Locking/Unlocking/Deletion not in ReplSystem
    Note 676820 EBP: Allow deletion of users after check
    Note 647708 Table BBP_USR01 not deleted if users deleted
    Note 419423 Repairing incorrect EBP users 
    Do let me know.
    Regards
    - Atul

  • Connectivity between SAP and SQL Server

    Hi all,
        how to take the SAP data which is in Oracle database on AIX Operating system to SQL Server database which resides in Windows for a portal?
    Can anyone help on this?  
    Regards,
    Sathya

    HEllo,
    Hi
    Please see the following:
    1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
    2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
    TABLE DBCON Entry can be like this...depends on your External database..
    CON_NAME Raj Logical name for connection
    DBMS MSS Microsoft SQL Server
    USER_NAME <User name> For SQL Server
    PASSWORD <password> " "
    CON_ENV MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
    DB_RECO Availability type for an open database connect
    FUNCTION z_houston_connect.
    *"*"Local interface:
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    l.loc_id,
    l.loc_name,
    a.acc_id,
    a.acc_name,
    d.person
    from ho_loc_mast as l
    inner join snd_acc_mast as a on l.loc_id = a.loc_id
    inner join snd_acc_addr as d on a.loc_id = d.loc_id and
    a.acc_id = d.acc_id
    where l.loc_id = '001'
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    ENDFUNCTION.
    Regards,
    Vasanth

  • Does SAP use SQL server's snapshot and transactional replication?

    Gurus:
    Could you help with this?
    Does SAP use SQL server's snapshot and transactional replication?
    Thanks!

    Hi Christy,
    no, SAP does not directly leverage these functions.
    But none the less, it is up to you to use these on your system. I regulary use the snapshot functionality when applying Support Packages. In case somehing goes wrong a snapshot is the easiest way to roll back the import process (not exactly the best choice when talking about production and users keep on working while importing).
    Have a look at this [document |http://download.microsoft.com/download/d/9/4/d948f981-926e-40fa-a026-5bfcf076d9b9/SAP_SQL2005_Best Practices.doc]. It deals with Best Practices and also covers snapshot, replication and mirroring.
    Sven

Maybe you are looking for

  • Office Web Apps - Preview Sharepoint 2010 documents in Sharepoint 2013 Search Results

    Hi, We have a Sharepoint 2013 search site collection. The content sources for the Search service application includes some Sharepoint 2010 sites. We also have Office Web Apps server deployed. When searching for documents, the OWA preview works for al

  • Error message: When trying to run iTunes

    I've just installed iTunes and I'm trying to run it, but every time i 'Agree' to the iTunes Software Liscence Agreement, I get an error that states, "The folder "iTunes" cannot be found or created, and is required. The default location for this folde

  • Bold character style does not inherit the paragraph emphasis (Italic)

    Hi, I am using TCS2 (RH 8, FM 9). I have a character style in FrameMaker that makes GUI terms bold.  My text for Notes, Tips and so in is italic and when I apply my GUI character style in FM, the text becomes both bold and italic.  In RoboHelp, my te

  • Extending the UML class diagrams with JDeveloper Extensions SDK?

    Hello, I studied the JDeveloper Extension SDK docs, but couldn't figure out how to write extensions that support UML Diagrams. What I would like to do, is to pin a different data model under the class diagram view. Well if you can't do that. In the w

  • Grouping Header Rows based on common rows in Details

    Hi, I have two tables TAB_MST and TAB_DTL with information like below: {code} CREATE TABLE TAB_MST   MSTCOL  NUMBER ALTER TABLE TAB_MST ADD CONSTRAINT TAB_MST_PK PRIMARY KEY (MSTCOL) INSERT INTO TAB_MST (MSTCOL) VALUES (1); INSERT INTO TAB_MST (MSTCO