2 Using the Default Persistent Store

This chapter explains how to configure and monitor the WebLogic Server persistent store, which provides a built-in, high-performance storage solution for WebLogic Server subsystems and services that require persistence.

Using the Default Persistent Store

Each server instance, including the Administration Server, has a default persistent store that requires no configuration. The default store is a file-based store that maintains its data in a group of files in a server instance data\store\default directory. A directory for the default store is automatically created if one does not already exist. This default store is available to subsystems that do not require explicit selection of a particular store and function best by using the system's default storage mechanism. For example, a JMS Server with no persistent store configured will use the default store for its Managed Server and will support persistent messaging.

The default store can be configured by directly manipulating DefaultFileStoreMBean parameters. If this MBean is not defined in the domain configuration file, then the configuration subsystem ensures that the DefaultFileStoreMBean always exists with the default values.

Also, the WebLogic Server Administration Console enables you to change the default store parameters, such as its default directory location and Synchronous Write Policy, as described in Modify the Default Store Settings in the Oracle WebLogic Server Administration Console Online Help.

Default Store Location

The default store maintains its data in a data\store\default directory inside the servername subdirectory of a domain's root directory

For example, if no directory name is specified for the default file store, it defaults to:

ORACLE_HOME\user_projects\domains\domain-name\servers\server-name\data\store\default

where domainname is the root directory of your domain, typically c:\oracle\user_projects\domains\domainname, which is parallel to the directory in which WebLogic Server program files are stored, typically c:\oracle\wlserver_12.1.

You can, however, specify another location for the default store by directly manipulating the DefaultFileStoreMBean parameters or by using the WebLogic Server Administration Console, as described in Modify the Default Store Settings in the Oracle WebLogic Server Administration Console Online Help.

Example of a Default File Store

Here's an example of how a default file store may look in a domain's configuration file, with the default directory location and Synchronous Write Policy settings overridden:

<server
  <name>myserver</name>
  <default-file-store>
  <directory>C:/store</directory>
  </default-file-store>
</server>