Difference between revisions of "Network installation"
From ECHSA Congenital Database
Jump to navigationJump to searchm (→PostgreSQL network installation) |
|||
| Line 16: | Line 16: | ||
#Install and run the PostgreSQL server. Installation instructions can be found at http://www.postgresql.org | #Install and run the PostgreSQL server. Installation instructions can be found at http://www.postgresql.org | ||
#Download following SQL scripts: | #Download following SQL scripts: | ||
| − | #*[[media:pgsql_struct.sql]] | + | #*[[media:pgsql_struct.sql|pgsql_struct.sql]] |
| − | #*[[media:pgsql_dict.sql]] | + | #*[[media:pgsql_dict.sql|pgsql_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. Create a database user and give him privileges to read and write in all tables in the database. | #Configure your PostgreSQL server so it accepts connections from network. Create a database user and give him privileges to read and write in all tables in the database. | ||
| Line 24: | Line 24: | ||
#Download and run the latest version of the DataCollectionSoftware. When a dialog appears type in your hospital code and choose the default database path. | #Download and run the latest version of the DataCollectionSoftware. When a dialog appears type in your hospital code and choose the default database path. | ||
#Go to the software preferences directory <pre>.EactsCongenitalDatabase</pre> 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. <pre>dbdriver=org.postgresql.Driver</pre> <pre>dburl=jdbc:postgresql://server address/eacts?user=your_user&password=your_users_password</pre> | #Go to the software preferences directory <pre>.EactsCongenitalDatabase</pre> 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. <pre>dbdriver=org.postgresql.Driver</pre> <pre>dburl=jdbc:postgresql://server address/eacts?user=your_user&password=your_users_password</pre> | ||
| − | |||
==Notes== | ==Notes== | ||
Revision as of 20:13, 23 September 2005
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
- Install and run the PostgreSQL server. Installation instructions can be found at http://www.postgresql.org
- Download following SQL scripts:
- 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. Create a database user and give him privileges to read and write in all tables in the database.
- Download the JDBC driver
- 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
- Download and run the latest version of the DataCollectionSoftware. When a dialog appears type in your hospital code and choose the default database path.
- 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://server address/eacts?user=your_user&password=your_users_password
Notes
- To configure another client, perform steps 6-8 from the instructions.
- 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=...".