Configuring Project Database Connections

You set the project database details by editing the in \webapps\archibus\WEB-INF\config\afm-projects.xmlfile directly. For information on the file, see The afm-projects.xml File.

Database Connection Roles

In addition to the project preferences, each project entry in \webapps\archibus\WEB-INF\config\afm-projects.xml contains three default roles for connecting to the SQL database for connections:

These different roles let you control default SQL security differently for the different types of connection. You can also use different servers or tablespaces for the different roles. Having the different roles also allows the Archibus Web Central application to pool database connections that have identical credentials in order to reduce the number of connections needed.

Database Preferences

Each <database /> entry has these characteristics.

The JDBC URLs

Typically, you need only change the database server name ("localhost", "harp", etc.) or instead specify an IP address of the database server (e.g. "10.1.99.75" and leave the rest of the URL unchanged. The rest of the URL varies slightly between server types:

<jdbc url="jdbc:sybase:Tds:localhost:2638"/>

<jdbc url="jdbc:microsoft:sqlserver://10.1.99.75:1433"/>

<jdbc url="jdbc:oracle:thin:@10.1.1.6:1521:orcl"/>

The value after the colon (e.g. "2638", "1433", "1521") is the default port on which the database server is listening. If you change this port from its default, you should change this value in the URL as well.

In the case that you are running two databases on the same server, such as HQ and Schema, you must add the database identifier to the JDBC connection URL.

Securing your Database Passwords

If you do not wish to store your database passwords in plaintext, you can encrypt them using the "Encrypt Passwords in Configuration Files" view in the System / System Administrator / Archibus Administrator process.