Book Demo!

˂ Return to FAQ

Switching XTAM’s back-end Database

Switching XTAM’s back-end database from one to another is a relatively straight forward process. For example, you originally deployed your XTAM instance using the Internal Database option and now wish to use MS SQL.

The following article describes this process.


Navigate to $XTAM_HOME/web/conf and make a copy of the file Save this to a location outside of $XTAM_HOME and if something goes wrong, you can simply replace this file, restart the service and you will be back to the original database (assuming it still exists)


Create an on-demand Export of XTAM (Administration > Settings > Database > Export Encrypted)


Manually create the new database in your chosen database. The database name should be PamDB (case sensitive) and the database account should have full control, owner or ALL privileges.


Next we will run an XTAM command to switch it from your current database to this new one. Eexecute the command from $XTAM_HOME, replacing the value in green to your new database vendor and the values in red with your new database parameters. The supported database vendors are:

Database Vendors

  • MySql
  • Oracle
  • PostgreSQL
  • Derby

For Windows:

bin\PamDirectory.cmd DBConnect web database db.server db.user db.password

For Unix or Linux:

bin/ DBConnect web database db.server db.user db.password

For example, if your XTAM instance is deployed to a Windows server and you are switching the back-end database to MS SQL, you command would look similar to this:

bin\PamDirectory.cmd DBConnect web MSSQL sa 6QP8psY93PWVe3Dr

Or if you do not want to include the password in the command, you can simply replace it with a dash character and after it is executed, you will be prompted to enter the required password. Note if you password includes special characters, we would recommend this approach to minimize potential errors.

bin\PamDirectory.cmd DBConnect web MSSQL sa -

After the command is run successfully, restart the PamManagement (Windows) or pammanager (Linux) service.


When the service restarts, open your browser and login to XTAM. You should see the Database Initialization screen, click the Initialize button to setup XTAM’s new database.


After it initializes your new database, navigate to Administration > Settings > Database and click the Import button for the export you created in step 2.


Once the import is complete (may take several minutes), test the import by clicking around the Vault to make sure everything is running as expected (folders, permissions, unlock, etc.)

If anything goes wrong during the procedure, you can revert the process by replacing the file that was saved in step 1, restarting the service again and XTAM will return to your original database. Do not delete this original XTAM database until you are absolutely sure the entire process has completed successfully.


Copyright © 2020 Xton Technologies, LLC. All rights reserved.