Modify the QuickStart database file location

About this task

Guidewire uses /tmp/guidewire as the database file location and pc as the file prefix in the default configuration. You can modify the default database file location and prefix.

Procedure

  1. In a command window, navigate to the PolicyCenter installation directory.
  2. Launch Guidewire Studio using the following command:
    gwb studio
  3. In the Project window, expand configuration > config and open database-config.xml.
  4. Look for the database block that lists h2 as the dbtype.
  5. In this database block, search for the jdbc-url attribute value.
    The file path after the colon sets the file location. The value after the location sets the file prefix.
    In the following example, tmp/guidewire is the file location and pc is the file prefix.
    <!-- H2 (meant for dev/quickstart use only!) -->
    <database name="PolicyCenterDatabase" dbtype="h2">  
      <dbcp-connection-pool jdbc-url="jdbc:h2:mem:/tmp/guidewire/pc"/>  
    </database>        
  6. Make changes to the file location and prefix as needed for your business needs.
  7. In Studio, click File > Save All.