title: Is it possible to change HSQLDB mode to read-only on the fly?
body: <p>I am using HSQLBD in <strong><em>file: mode.</em></strong></p>
  
  <p>(My usage of the HSQLDB is shown in my <a href="https://stackoverflow.com/q/38026321/5331196">other question</a>)</p>
  
  <p>I need to receive a multiple-access to the <strong>database.script</strong> file. 
  By default, database is running with option <em>readonly=false</em> Here is some information from the official docs:</p>
  
  <blockquote>
    <p>Readonly Databases</p>
    
    <p>A file: catalog can be made readonly permanently, or it can be opened
    as readonly. To make the database readonly, the property, value pair,
    readonly=true can be added to the .properties file of the database.
    The SHUTDOWN command must be used to close the database before making
    this change.</p>
    
    <p>It is also possible to open a normal database as readonly. For this,
    the property can be included in the URL of the first connection to the
    database.</p>
    
    <p>With readonly databases, it is still possible to insert and delete
    rows in TEMP tables.</p>
  </blockquote>
  
  <p>But I am still not truly understood, is it possible to change this option on the fly, without server shutdown and without restart? If it is possible - can you please give some small code example?</p>
  
  <p>And if not, is there some way to unlock the .script file and get the access for the different threads without the server shutdown?</p>