Deleted USers own PU Databases

I have been having an issue with a shared address book and when going through the PU database files to find the offender I noticed some of the files were owned by deleted users.
Is there a GWCHECK option which I can run to clear up these files?
Thanks
Dave

dcronin wrote:
> I have been having an issue with a shared address book and when going
> through the PU database files to find the offender I noticed some of the
> files were owned by deleted users.
>
> Is there a GWCHECK option which I can run to clear up these files?
>
> Thanks
>
> Dave
>
>
Well you can delete em (or rename to be safer), run a structural rebuild
with standalone gwcheck with name=xxxxx, where xxxx=filename
that will drop them from the guardian

Similar Messages

  • Script to delete users created in database after specific days

    Hi,
    I am working as a QA. In my team, we need to create oracle users frequently for testing purpose but no one deletes user from oracle after finishing testing thus creating lots of user in oracle and also wasting lots of space. so need help to create a script which will delete user defined table after specific days which we can set in script ?
    Early response will be appreciable.
    Thanks in advance

    Its a oracle users which are created by team members for testing purposeprogramatically how will you differentiate between schemas/usernames created by Oracle & those created locally?
    SQL> select username, created from dba_users order by 2;
    USERNAME                 CREATED
    SYSTEM                      15-AUG-09
    SYS                      15-AUG-09
    OUTLN                      15-AUG-09
    DIP                      15-AUG-09
    ORACLE_OCM                 15-AUG-09
    DBSNMP                      15-AUG-09
    APPQOSSYS                 15-AUG-09
    WMSYS                      15-AUG-09
    EXFSYS                      15-AUG-09
    CTXSYS                      15-AUG-09
    ANONYMOUS                 15-AUG-09
    XDB                      15-AUG-09
    XS$NULL                  15-AUG-09
    MDSYS                      15-AUG-09
    ORDSYS                      15-AUG-09
    SI_INFORMTN_SCHEMA            15-AUG-09
    ORDDATA                  15-AUG-09
    ORDPLUGINS                 15-AUG-09
    OLAPSYS                  15-AUG-09
    MDDATA                      15-AUG-09
    SPATIAL_WFS_ADMIN_USR            15-AUG-09
    SPATIAL_CSW_ADMIN_USR            15-AUG-09
    SYSMAN                      15-AUG-09
    MGMT_VIEW                 15-AUG-09
    APEX_030200                 15-AUG-09
    APEX_PUBLIC_USER            15-AUG-09
    FLOWS_FILES                 15-AUG-09
    OWBSYS                      15-AUG-09
    OWBSYS_AUDIT                 15-AUG-09
    SCOTT                      15-AUG-09
    IX                      07-MAY-10
    BI                      07-MAY-10
    SH                      07-MAY-10
    HR                      07-MAY-10
    PM                      07-MAY-10
    OE                      07-MAY-10
    DBADMIN                  07-MAY-10
    BONGO                      22-MAY-10
    USER1                      30-AUG-10
    SAM                      29-SEP-10
    40 rows selected.which "old" schemas need to be discarded.
    post SELECT that properly produces usernames to be removed.

  • How to delete users from oim database 11g???

    Can anyone help me:
    I need to clean the OIM database, so I need to delete All user accounts that exists in OIM
    Any help apprecciated
    regards

    Hi
    Last time I used this script to delete the users. Hope it will be useful for you:
    delete from oud where oiu_key in (select oiu_key from oiu where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy')));
    delete from osi where req_key in (select req_key from req where orc_key in (select orc_key from orc,usr where orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy')));
    delete from osi where osi_assigned_to_usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from osh where osh_assigned_to_usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcd where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rch where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcu where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcb where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rce where orc_key in (select orc_key from orc,usr where orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from orc where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from upd where upp_key in (select upp_key from upp,usr where upp.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from upp where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from usg where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from uhd where uph_key in (select uph_key from uph,usr where uph.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from uph where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from pcq where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcu where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy');

  • 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

  • Delete user with db owner roles

    Dear All,
    I want delete user with db owner roles from all database and from server using sql query.
    So i want using one query to delete user from all database and also from server
    how i can do that?
    best regards,
    Surbakti

    I means it's login.
    I want delete because user whom use that login already resign from my company.
    so if i delete that login i can use that slot for the other user.
    best regards,
    Surbakti
    First you said you want to delete all logins with db owner roles and now you are saying I want to delete use login who has left the company. Was there mass exodus.
    If login was a domain login you should also make sure it gets removed from domain, then from local windows machine  and then from SQL server. If it is SQL Server login it can be removed straight. Search online you would find various methods to remove
    login
    Have alook at below links
    Question about removing logins from database
    Drop login
    Also note that any job which the login owned would be affected if login is removed. So you need to be careful
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Script to Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    You can use an external table :
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    USERNAME
    USER1
    USER2
    USER3
    SYS@db102 SQL> !cat users_to_drop.txt
    USER1
    USER2
    USER3
    SYS@db102 SQL> create table test.users_to_drop
      2  (
      3     userx   char(30)
      4  )
      5    organization external
      6  ( type oracle_loader
      7    default directory work
      8    access parameters
      9     ( records delimited by newline
    10     )
    11     location ('users_to_drop.txt')
    12  )
    SYS@db102 SQL> /
    Table created.
    SYS@db102 SQL> begin
      2     for U in (select userx from test.users_to_drop) loop
      3             dbms_output.put_line('Dropping '||U.userx);
      4             execute immediate 'drop user '||U.userx||' cascade';
      5     end loop;
      6  end;
    SYS@db102 SQL> /
    Dropping USER1
    Dropping USER2
    Dropping USER3
    PL/SQL procedure successfully completed.
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    no rows selected
    SYS@db102 SQL>

  • Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    I have written a script but getting a error.Can anyone help :-
    create or replace PROCEDURE drop_user
    is
    v_filehandle utl_file.file_type;
    v_user VARCHAR2(20);
    lv1 VARCHAR2(200);
    err_code VARCHAR2(20);
    err_msg VARCHAR2(250);
    BEGIN
    v_filehandle:=utl_file.fopen('/tmp','user_list.lst','R');
    LOOP
    BEGIN
    utl_file.get_line(v_filehandle,v_user);
    lv1:='drop user'|| v_user;
    execute immediate lv1;
    EXCEPTION
    WHEN OTHERS THEN
    err_code := SQLCODE;
         err_msg := substr(SQLERRM, 1, 200);
         dbms_output.put_line(err_code|| ':-' || err_msg);
    END;
    END LOOP;
    utl_file.fclose(v_filehandle);
    END DROP_USER;
    ERROR :
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.UTL_FILE", line 98
    ORA-06512: at "SYS.UTL_FILE", line 157
    ORA-06512: at "TOM.DROP_USER", line 9
    ORA-06512: at line 1

  • How to configure security so users can delete their own file(s)?

    I have configured our file server so that all users can write/modify in any other user's folder. However, it seems that they cannot delete their own file(s) in another user's folder. Do I have to give all users the "Modify" but not Full permission
    so that every user can delete their own file or folder even if it's in another user's folder? I still do not want user A to delete/modify any files/folders that user B originally created.
    Any help is much appreciated.

    Hi,
    Based on my research, if a user can rename a file/folder, then he/she can save it using the original name, there is no way to prevent this via permission assignment.
    You may need to use scripts to achieve this.
    Best Regards,
    Amy Wang

  • We have a long list of disabled/deleted users in AD Somehow, they are still appeared as active user in Sharepoint Online. How do we get rid of those list? Hope you can advice. Thanks.

    we have a long list of disabled/deleted users in AD
    Somehow, they are still appeared as active user in Sharepoint Online.
    How do we get rid of those list?
    Hope you can advice. Thanks.

    SharePoint does not remove users from SharePoint permissions just because they were deleted/disabled in AD. This is to maintain referential integrity. In fact, when you delete a user from SharePoint, that user remains in the SharePoint content database,
    just marked as deleted.
    They do not have access to SharePoint given their account is deleted/disabled. But as far as automatically managing this, I'm not aware of a tool. On-prem there is Metalogix ControlPoint which does a great job of this, I haven't explored the O365 options.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Purge Deleted Users

    Hello there,
    I have tried to delete a user through identity server console and add a new user with the deleted user's id again later on. I got an error "Could not create the user. Conflicts with deleted user". What I understand here is that the deleted user entry is not purged from the directory server yet.
    I tried to purge the deleted user by using "commadmin domain purge" command. Before I can purge the domain, I also understand that I would need to first do a "csclean" to remove the deleted user's calendar from the calendar database and "msuserpurge" to remove the deleted user's mailbox. However, when I tried to run "csclean" and "msuserpurge" commands, both prompt me the error message of "Must be in virtual domain mode to use this tool.
    Initialization failed .... exiting".
    What should I do in order to execute "csclean" and "msuserpurge" successfully?? Or, is there any other way to purge the deleted user besides running "commadmin domain purge" command ??
    Please advise. Your help is very very much appreciated. Thanks in advance.

    Just for anyone else searching for info on deleting mail in pop/imap accounts...
    'man ipurge' for manual page.
    ipurge executable is located in /usr/bin/cyrus/bin so either cd there first or give full pathname to executable.
    Must be run as cyrusimap user (hence sudo -u cyrusimap in Chakravarthy's example)
    In my own case, I was deleting a 72M file which had been mailed internally to every pop user. Local users were OK, but all the remote VPN users were seizing up due to the low bandwidth VPN. The command I used was...
    sudo -u cyrusimap ./purge -f -m 50
    Gives excellent feedback on any deletions.
    -david

  • Deleted user DMSYS

    Hai Everybody
    i am reading Oracle DBA book. while reading the User Maintenance chapter by oversight i have deleted the user DMSYS in ORacle Enterprise Manager 10 g. The system has confirmed the deletion. while reading the confirmation message i found that instead of deleting the user MYUSER, i have wrongly deleted the user DMSYS.
    Pl guide me to get back the Oracle default user DMSYS to its original status. I am still in ORacle Enterprise Manager.
    Pl guide me.
    Thanks for the help
    JD

    JayaDev(JD) wrote:
    Hai Everybody
    i am reading Oracle DBA book. Which one?
    while reading the User Maintenance chapter by oversight i have deleted the user DMSYS in ORacle Enterprise Manager 10 g. The system has confirmed the deletion. while reading the confirmation message i found that instead of deleting the user MYUSER, i have wrongly deleted the user DMSYS.
    >
    Pl guide me to get back the Oracle default user DMSYS to its original status. I am still in ORacle Enterprise Manager.Do you have backup? If yes restore the deleted user.
    Information about all models created in a database is stored in tables owned by the DMSYS user. During a typical installation, the DMSYS user has SYSAUX defined as its default tablespace.
    support the data mining activities of all users in the database.
    http://download-uk.oracle.com/docs/cd/B19306_01/datamine.102/b14338/admin.htm
    All Scripts are located in dm Folder
    location : "D:\Oracle\product\10.1.0\Db_1\dm\admin"
    Also you may try creating the DMSYS user again by following command:
    Start SQLPLUS and connect with user SYS as SYSDBA
    SQL> run $ORACLE_HOME/dm/admin/dminst.sql SYSAUX TEMP $ORACLE_HOME/dm/admin/
    SQL> run $ORACLE_HOME/dm/admin/odmpatch.sql (if the database is at 10g patch level, e.g. 10.1.0.3 or 10.1.0.4)
    SQL> run $ORACLE_HOME/rdbms/admin/utlrp.sql
    Ensure 'Oracle Data Mining' is at Valid status in dba_registry
    SQL> select COMP_NAME,VERSION,STATUS from dba_registry where COMP_NAME='Oracle Data Mining';
    proceed with export jobs

  • HOW TO DELETE THE ROW FROM DATABASE

    hI,
    Iam pasting my code below.My problem isi retrieve rows from database and display them in jsp page in rows.For each row there is delete hyperlink.Now when i click that link i should only delete the row corresponding to that delete link temporarily but it should not delete the row from database now.It should only delete the row from database when i click the save button.How can i do this can any one give some code.
    thanks
    naveen
    [email protected]
    <%@ page language="java" import="Utils.*,java.sql.*,SQLCon.ConnectionPool,java.util.Vector,java.util.StringTokenizer" %>
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>Item Details</title>
    <script>
    function submitPage()
    document.details.action = "itemdetails.jsp" ;
    document.details.submit();
    </script>
    </head>
    <body>
    <form name="details" action="itemdetails.jsp" method="post">
    <%
    ConnectionPool pool;
    Connection con = null;
    Statement st;
    ResultSet rs =null;
    %>
    <table border="0" cellpadding="0" cellspacing="0" width="328">
    <tr>
    <td width="323" colspan="4"><b>Reference No :</b> <input type="text" name="txt_refno" size="14">
    <input type="submit" value="search" name="search" ></td>
    </tr>
    <tr>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item Code</b></font></td>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item No</b></font></td>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Amount </b></font></td>
    <td width="80" bgcolor="#000099"> </td>
    </tr>
    <%
    pool= new ConnectionPool();
    Utils utils = new Utils();
    double total =0.00;
    String search =utils.returnString(request.getParameter("search"));
    if(search.equals("search"))
    try
    String ref_no =utils.returnString(request.getParameter("txt_refno"));
    String strSQL="select * from ref_table where refno='" + ref_no + "' ";
    con = pool.getConnection();
    st=con.createStatement();
    rs = st.executeQuery(strSQL);
    while(rs.next())
    String itemcode=rs.getString(2);
    int item_no=rs.getInt(3);
    double amount= rs.getDouble(4);
    total= total + amount;
    %>
    <tr>
    <td width="81"><input type=hidden name=hitem value=<%=itemcode%>><%=itemcode%></td>
    <td width="81"><input type=hidden name=hitemno value=<%=item_no%>><%=item_no%></td>
    <td width="81"><input type=hidden name=hamount value=<%=amount%>><%=amount%></td>
    <td width="80"><a href="delete</td>
    </tr>
    <%
    }catch(Exception e){}
    finally {
    if (con != null) pool.returnConnection(con);
    %>
    <tr>
    <td width="323" colspan="4">
    <p align="right"><b>Total:</b><input type="text" name="txt_total" size="10" value="<%=total%>"></td>
    </tr>
    <tr>
    <td width="323" colspan="4">                   
    <input type="button" value="save" name="save"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    You mean when you click on the hyperlink you want that row to disappear from the page, but not delete the row from the database until a commit/submit button is pressed?
    Personally, I think I'd prefer that you have a delete checkbox next to every row and NOT remove them from the display if I was a user. You give your users a chance to change their mind about their choice, and when they're done they can see exactly which rows will be deleted before they commit.
    You know your problem, of course, so you might have a good reason for designing it this way. But I'd prefer not removing them from the display. JMO - MOD

  • Removing "Not Deleted" Mailboxes from a Database

    Before I go anywhere, let me explain what I mean by "Not Deleted" mailboxes - We will be deleting and recreating a pair of databases this weekend. A s part of this process, we move all mailboxes from these databases to the other 22 mailbox databases
    in the corporation, leaving our databases empty.  We then run a command to find the soft-deleted and disconnected mailboxes and handle them (remove the former and reconnect the latter so we can move them to another database).  When I ran this script
    on one of the two databases, I found that the database had two supposedly live mailboxes on it.
    So I ran Get-MailboxStatistics -Database and got info about these two mailboxes.  Neither shows as being SoftDeleted or Disconnected, and neither has a DisconnectDate.  So they should be live mailboxes, with an AD account.  So I checked them
    and found one had an account - but was on another database on a totally different server (in fact, in the other DAG).  And the other belonged to an account that was deleted last November.
    So, these two mailboxes appear to be zombies, with no life and no soul, but doomed to foil my plans to delete the database gracefully - they are all that stands between me and the success of my mission.  Now, I know I can take the database offline,
    delete the database files, and bring them back online and that will kill these zombie mailboxes, but I was hoping someone had a way I can delete them gracefully so I don't feel like I've just used a sledgehammer on my servers.  I tried Remove-StoreMailbox,
    but it requires that the mailbox have a status of either SoftDeleted or Disconnected - and from what I've read online, those are the only two accepted options.
    So I come to you for possible guidance - keep in mind that these are totally unnecessary mailboxes and I have no qualms about deleting the database if that what it comes down to.  Anyone have any other suggestions?  Thanks ...
    Will

    There were two active mailboxes showing from the "Get-MailboxStatistics -Database <database name>" command, even though the database showed no active mailboxes when running "Get-Mailbox -Database <database name>" command.  Neither of these
    had a disconnected date, and neither showed a value in the Reason field.  Now for your answers:
    1.  One of these mailboxes showed as being on another database, same GUID, etc, and was able to be accessed on that other database.  However, Get-MailboxStatistics - Database <database name> showed that it also existed on this database. 
    We couldn't connect an account to this mailbox, nor could we delete it - the command (below) said the mailbox was on another database (which it was).
    Connect-Mailbox -Identity <mbx GUID> -Database <name of the database we wished to delete> -User <account SAM account name> -Alias <account SAM account name> -Shared -DomainController <domain controller>
    2.  The command was what I show above.
    Post Mortem:  Since we had to delete the database, and since neither of them were needed, we just went forward with our work.  I was hoping we'd be able to remove these mailboxes gracefully, but none of the tools we had available worked for the
    job.

  • 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

  • Re: (forte-users) Round-trip database design

    We have used Erwin quite sucessfully, but it's not cheap.
    "Rottier, Pascal" <Rottier.Pascalpmintl.ch> on 02/15/2001 04:51:01 AM
    To: 'Forte Users' <forte-userslists.xpedior.com>
    cc:
    Subject: (forte-users) Round-trip database design
    Hi,
    Maybe not 100% the right mailing list but it's worth a try.
    Does anyone use tools to automatically update the structure of an existing
    database?
    For example, you have a full database model (Power Designer) and you've
    created a script to create all these tables in a new and empty database.
    You've been using this database and filling tables with data for a while.
    Now you want to do some marginal modifications on these tables. Add a
    column, remove a column, rename a column, etc.
    Is there a way to automatically change the database without losing data and
    without having to do it manually (except the manual changes in the (Power
    Designer) model).
    Thanks
    Pascal Rottier
    Atos Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hello Pascal,
    Forte has classes which might be able to scan the database structure
    (DBColumnDesc,etc.). Express use this classes to determine how the
    BusinessClass looks like. We use Forte to create the tables,indexes and
    constraints. We have the Problem that the above described classes are only
    readable but not fillable. The solution for us will be to create our own
    classes in
    the same manner than existing classes are. So we are able to make updates in
    the database structure and maybe able to change the database tables with tool
    code. Another reason for us to have the database structure in the
    application is the
    ability to see the table structure on which the Forte code works always up
    to date
    with the code. You are always able to compare the structure of the database
    with
    your businessclasses and able to convert a wrong structure to the correct
    structure
    with maybe just a little piece of code.
    Hope this helps
    Joseph Mirwald

Maybe you are looking for