IsOpen (Database - Java)

Read-only. Indicates whether a database is open.

Defined in


Data type



public boolean isOpen()
    throws NotesException

Legal values

  • true if the database is open
  • false if the database is not open


A database must be open to use the Database methods except: getCategories, getDelayUpdates, getDesignTemplateName, getFileName, getFilePath, isOpen, isPrivateAddressBook, isPublicAddressBook, getParent, getReplicaID, getServer, getSize, getSizeQuota, getTemplateName, and getTitle.

The following methods do not open a database: DbDirectory.getFirstDatabase, DbDirectory.getNextDatabase, and Session.getAddressBooks. You must explicitly call

If a Database object must be open but is not, the following error occurs: "Database has not been opened yet." This error does not occur when the Database is created, but later when the attempt to use it occurs. Possible causes of the error are: the database as specified does not exist; the user does not have permission to access the database; the database is damaged.