Difference between revisions of "Network installation"

From ECHSA Congenital Database
Jump to navigationJump to search
(PostgreSQL network installation)
m (PostgreSQL network installation)
Line 19: Line 19:
 
#*[[media:postgresql_dict.sql|postgresql_dict.sql]]
 
#*[[media:postgresql_dict.sql|postgresql_dict.sql]]
 
#Create a database (for example with name "eacts") and connect to it. Run those two SQL scripts on this database.
 
#Create a database (for example with name "eacts") and connect to it. Run those two SQL scripts on this database.
#Configure your PostgreSQL server so it accepts connections from network. <br> The configuration file is named: <pre>postgresql.conf</pre>You need to add a following line: <pre>listen_addresses = '*'</pre>
+
#Configure your PostgreSQL server so it accepts connections from network. <br> The configuration file is named: <pre>postgresql.conf</pre>You need to add following line: <pre>listen_addresses = '*'</pre>
 
#Ensure that your PostgreSQL server accepts connections from the network. Check your firewall settings.
 
#Ensure that your PostgreSQL server accepts connections from the network. Check your firewall settings.
 
#Create a database user and give him privileges to read and write in all tables in the database.
 
#Create a database user and give him privileges to read and write in all tables in the database.

Revision as of 15:02, 12 October 2005

User's manual

Quickstart
Overview
Single user installation
Network installation
Database structure
Export to CSV

Data entry

Staff, Patients, Diagnoses, Non cardiac abnormalities, Admissions, Operations, Procedures

Network installation deployment diagram

Overview

The network installation is different from a single installation. In single installation, the database server and user interface are together. In network installation server and interface are separated.

You need probably a qualified personnel to install the database server. Currently, the PostgreSQL server is tested for use with DataCollectionSoftware. Once the server is installed, you can connect as many clients (user interfaces on different computers) as you wish. Please read on to learn about the installation.


PostgreSQL network installation

  1. Install and run the PostgreSQL server. Installation instructions can be found at the PostgreSQL website. EACTS Database Software was tested with PostgreSQL 8.0.x.
  2. Download following SQL scripts (right-click and choose "Save target as"):
  3. Create a database (for example with name "eacts") and connect to it. Run those two SQL scripts on this database.
  4. Configure your PostgreSQL server so it accepts connections from network.
    The configuration file is named:
    postgresql.conf
    You need to add following line:
    listen_addresses = '*'
  5. Ensure that your PostgreSQL server accepts connections from the network. Check your firewall settings.
  6. Create a database user and give him privileges to read and write in all tables in the database.
  7. Download the JDBC driver, pick JDBC3 for your version of PostgreSQL. For PostgreSQL 8.0 you can pick this: PostgreSQL 8.0 JDBC3 driver. For other drivers, go to JDBC PostgreSQL drivers download page.
  8. Copy the driver jar file into the lib/ext subdirectory of your Java JRE directory. For example:
    C:\Program Files\Java\jre1.5.0_02\lib\ext
  9. Download and run the latest version of the EACTS Database Software. When a dialog appears type in your hospital code and choose the default database path.
  10. Go to the software preferences directory
    .EactsCongenitalDatabase
    located in the user home directory (please note the dot character at the beginning of the directory name). Edit the ecdbc.properties file and set two variables: dbdriver and dburl. The user name and the password are to be set inside the dburl variable.
    dbdriver=org.postgresql.Driver
    dburl=jdbc:postgresql://srv_addr/eacts?user=your_user&password=your_users_password
    Change srv_addr into your server's address (like 192.168.0.12 or server.myhospital.org), and give your user's name and password.

Notes

  • To configure another client, perform another client installations and configure them in the same was as the first client.
  • As the server address give the IP adress (or a DNS name if appropiate) of the computer with running PostgreSQL server.
  • PostgreSQL server must be enabled to accept TCP/IP connections from network
  • Proper TCP port (PostgreSQL's default is 5432) must be opened if the server is protected by a firewall
  • dburl must be in one (perhaps very long) line, together with "?user=...&password=...".

See also: