Home > Domino Tips > Administrator > Finding unused databases in Lotus Notes and Domino
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SERVER

Finding unused databases in Lotus Notes and Domino


Chuck Connell
12.14.2006
Rating: -3.77- (out of 5)


Lotus Notes and Domino tips, tutorials and how-to articles
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


VIEW MEMBER FEEDACK TO THIS TIP

One of the most common questions I receive about Notes Domino administration is: "How can I find unused Notes Domino databases?"

Organizations often have hundreds of Notes/Domino databases across many servers, only a few of which have significant usage. Finding and removing unused Notes/Domino databases helps reduce disk space and complexity for both users and administrators.

The trends server task can gather this data for you, and you can view it in activity.nsf or within the Domino Administrator client (at Server -> Analysis -> Activity).

But the trends task -- and other similar data gathering methods -- have a drawback. You must enable the statistics gathering, wait for the data to be collected, and then analyze the data. What if you want to know now about Notes/Domino database usage over the past six months? You want to look back in time, not wait six months for new data.

The Database Catalog (catalog.nsf) has the information you need. But the relevant facts are buried within the catalog documents and are cumbersome to read. You can easily open up an individual catalog document for a particular database and see it usage. But what you really want is a report that shows a list of all the databases in your enterprise, with the least-used at the top.

I've created two views that give you just such a report, and you can add these views to your Database Catalog, making it significantly more useful. A sample database containing the views – entitled "Database Usage Report" -- is on the Downloads page of my Web site.

The first view shows:

  • The number of uses for each database during the last month
  • The number of uses per database during the "report period"
  • The length of the report period in days

The report period is the length of time that the Database Catalog gathered data for that Notes/...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Lotus Notes Domino Database Management
Domino Domain Monitoring hints and gotchas
LotusScript code rebuilds corrupted busytime.nsf file
LotusScript agent automates selective mail file replication
Configuring Domino Domain Monitoring (DDM)
How to move Notes databases off Domino 8 servers and save disk space
What is Notes 8.5's DAOS (Domino Attachment and Object Storage) feature?
LotusScript agent indexes Lotus Notes/Domino databases
An introduction to Domino Domain Monitoring (DDM)
'Customize this view' options are disabled in Lotus Notes databases
LotusScript button saves time searching large Lotus Notes databases

Database
LotusScript code rebuilds corrupted busytime.nsf file
How to move Notes databases off Domino 8 servers and save disk space
Top 10 Lotus Notes/Domino administration tips of 2008
Batch file runs scheduled Lotus Notes database maintenance tasks
Fix and update Lotus Notes documents with limited access
Programmatically replace the design of Lotus Notes databases
Add a program doc to compact Lotus Notes databases automatically
More efficient local Lotus Notes database replication
Remove orphaned Lotus Notes documents on Domino databases with a 'virtual delete'
Detect and fix 'Manager' access control list settings in Lotus Notes Domino

Domino
Four-step application rollout with Notes 8.0.1 Widgets
Running multiple instances of Lotus Notes
Monitoring the status of external processes on a Lotus Domino server
How to turn off the message recall feature in Lotus Notes 8
What is Notes 8.5's DAOS (Domino Attachment and Object Storage) feature?
SaaS and collaboration set the stage at Lotusphere
Top 10 Lotus Notes/Domino administration tips of 2008
How to upgrade to Lotus Notes 8 and retain Lotus Notes 7
Five Domino domain default server settings you should change and why
How DirLint verifies data in Lotus Notes Domino 8 directories

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


Domino database. Keep in mind that, if the report period for a database is short (say, less than seven days), the usage data is probably not reliable.

The second view helps you focus on Notes/Domino databases that are candidates for removal from the system. The view shows only databases where the report period is greater than 20 days, so it discards unreliable data. The view is sorted by usage per month, so removal candidates are at the top. Finally, the last column shows the names of the Managers and Designers of the database (taken from the ACL) since you may want to contact these people before deleting their databases.

Technically, the views work by selecting elements from the usage array that is stored within each catalog document. For example, the 7th element of the field DbActSummDisp is the number of uses for that database during the last month. So that view column contains the formula DbActSummDisp[7].

Likewise, DbActSummDisp[10] is the number of days in the report period. Because the array-element syntax (square brackets) was introduced with Notes/Domino 6, these views do not work on Notes/Domino R5 or earlier.

The manager and designer column is somewhat trickier, because the names are buried within two fields -- ManagerList and DesignerList. Also, I try to scrub the list so that only the names of real people are displayed, not items such as LocalDomainServers, etc.

So the formula for this field is:

You can use this sample in two ways:

  • Copy/paste documents from your catalog.nsf database into my sample database
  • Copy/paste the two views from my sample into your server's catalog.nsf

As always, comments and suggestions are welcome!

About the author: Chuck Connell is president of CHC-3 Consulting, which helps organizations with all aspects of Lotus Notes and Domino.

MEMBER FEEDBACK TO THIS TIP

Usually, not all Lotus Notes databases are listed in the catalog. To make sure all Notes databases are present, you need to run an agent on your Domino server, using the 'ListInDbCatalog' property (NotesDatabase class). This will set the flag 'List in Database Catalog.'
—Leandro R.

******************************************

I believe that the last feedback response is incorrect. All databases are listed in the catalog, it's just that the standard views that are there all exclude databases that are not flagged to show in the catalog. Check the selection criteria for the standard views and you'll see '!(DBListInCatalog = "0")' in each of them. Remove that criteria, as Chuck has done, and you will see all the databases.
—Tony C.

Do you have comments on this tip? Let us know.

Related information from SearchDomino.com:

  • Tip: Move folders from one Notes database to another using a LotusScript agent
  • Tip: Locate missing databases in a Lotus Domino cluster
  • Tip: Nine rules for optimizing Domino storage performance
  • Tip: How to parse the user activity of a Lotus Notes database

    Please let others know how useful this tip is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our tip contest and you could win a prize.



    Rate this Tip
    To rate tips, you must be a member of SearchDomino.com.
    Register now to start rating these tips. Log in if you are already a member.




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
    HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts