Configuring Project Database Connections

Database Connection Roles

In addition to the project preferences, each project entry contains a 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.

If you use the Smart Client Preferences/Projects form to create project entries, the program will create identical information for each role. However, you can refine these defaults if you like by editing the afm-projects.xml file directly.

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.

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

 

<jdbc url="jdbc:oracle:thin://10.1.99.75:1433:sid"/>

 

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

 

Securing your Database Passwords

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