<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to configure Qlik Sense to use a dedicated PostgreSQL database in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/ta-p/1791775</link>
    <description>&lt;BLOCKQUOTE class="quote"&gt;This article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The Qlik Sense Repository Database (QSR) can be moved to a dedicated standalone PostgreSQL instance not hosted on the same machine as other Qlik Sense Services. It is also possible to move an already existing QSR from a local Sense install, to a dedicated PostgresSQL database.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="3"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Set up a postgresSQL database&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Instructions for this might vary slightly. Please refer to the Qlik Online Help for details.&amp;nbsp; We recommend watching &lt;A href="https://www.youtube.com/watch?v=-YjbbbNgu_o" target="_blank" rel="noopener"&gt;this video&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Qlik Sense Enterprise server has a set of five databases.&amp;nbsp;For more details visit&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/latest/Subsystems/PlanningQlikSenseDeployments/Content/Deployment/Installing-configuring-postgresql.htm" target="_self"&gt;Installing and configuring PostgreSQL on help.qlik.com.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;1. The Qlik Sense repository database (QSR):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The QSR is the primary database in your&amp;nbsp;Qlik Sense&amp;nbsp;deployment.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;2. The&amp;nbsp;Qlik Sense&amp;nbsp;services database (SenseServices):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The SenseServices database contains schemas for each of the&amp;nbsp;Qlik Sense&amp;nbsp;services and allows growth independently of the&amp;nbsp;Qlik Sense Repository Database, while still sharing the same&amp;nbsp;PostgreSQL&amp;nbsp;instance and login role.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;3. The&amp;nbsp;Qlik Sense&amp;nbsp;message queue database (QSMQ):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The QSMQ database provides a light-weight method of passing messages internally between services in&amp;nbsp;Qlik Sense Enterprise. The NOTIFY and LISTEN functionality in&amp;nbsp;PostgreSQL&amp;nbsp;allows services to be notified about new messages that have been written to the messaging table.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;4. The&amp;nbsp;Qlik Sense&amp;nbsp;logging database (QLogs): No longer supported after May 2021&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The QLogs database centralizes logging by collecting log messages from all&amp;nbsp;Qlik Sense&amp;nbsp;nodes in your deployment and stores them in a&amp;nbsp;PostgreSQL&amp;nbsp;database.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;5. The&amp;nbsp;Qlik Sense&amp;nbsp;license service database (Licenses):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The Licenses database is used to sync the assignments between the Qlik license backend and the local installation.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Simplified checklist of steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Download a valid version of postgresSQL.&amp;nbsp; For Sense June 2017 and up, &lt;STRONG&gt;9.6.x&lt;/STRONG&gt; is required, from November 2019 version &lt;STRONG&gt;11.5.x&lt;/STRONG&gt; as well. From May 2021 version &lt;STRONG&gt;12.5&lt;/STRONG&gt;&amp;nbsp;can be used. Review the system requirements of your version before proceeding.&lt;/LI&gt;
&lt;LI&gt;Install based on instructions found on the Qlik Online Help for Qlik Sense;&amp;nbsp;select the version you are running&amp;nbsp;on then select from Menu , Deploy - Qlik Sense installation - Installing and configuring PostgreSQL.&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV style="margin-left: 40px;"&gt;See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Installing-configuring-postgresql.htm" target="_blank" rel="noopener"&gt;Installing and configuring PostgreSQL&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Moving the Qlik Sense Share Folders as well?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Follow&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/How-to-change-the-share-path-in-Qlik-Sense-Service-Cluster/ta-p/1711738" target="_blank" rel="noopener"&gt;How to change the shared path in Qlik Sense&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Backup&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Depending on the version, you need to backup different databases, on the current Qlik Sense central node hosting the Qlik Sense Repository Database service, &lt;A href="https://help.qlik.com/en-US/sense/latest/Subsystems/PlanningQlikSenseDeployments/Content/Deployment/Backing-up-a-site.htm" target="_blank" rel="noopener"&gt;follow the backup instructions to obtain a database&lt;/A&gt; copy of each Qlik Sense Database Present .&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Example for February 2021&amp;nbsp; you need to backup the databases reported in section "Installing and configuring PostgreSQL"; referring to the Help site these are :&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; QSR , QSMQ , SenseServices , Licenses , if configured QLogs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Restore&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;On the dedicated remote postgresSQL host, &lt;A href="https://help.qlik.com/en-US/sense/latest/Subsystems/PlanningQlikSenseDeployments/Content/Deployment/Restoring-a-site.htm" target="_blank" rel="noopener"&gt;perform a restore&lt;/A&gt;&amp;nbsp; &amp;nbsp;of the backed up Databases of previous point.&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Changing the Connection String to QSR and QSMQ Database&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;On the Qlik Sense central node, all services but the &lt;STRONG&gt;Qlik Sense Repository Service&lt;/STRONG&gt;&amp;nbsp;are shut down.&lt;/LI&gt;
&lt;LI&gt;Open &lt;STRONG&gt;QlikSenseUtil&lt;/STRONG&gt;. By default, this will be installed in:&amp;nbsp;C:\Program Files\Qlik\Sense\Repository\Util\QlikSenseUtil\QlikSenseUtil.exe&lt;/LI&gt;
&lt;LI&gt;Open the &lt;STRONG&gt;Connection String Editor &lt;/STRONG&gt;and &lt;STRONG&gt;Read &lt;/STRONG&gt;the current configuration, decrypting the current data.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sebastian_Linser_0-1615898800179.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51245i7051C44E95977D00/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sebastian_Linser_0-1615898800179.png" alt="Sebastian_Linser_0-1615898800179.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Replace all mentions of the current database hostname.&amp;nbsp; In our example, the new database resides on 172.16.16.103. Instead of an IP you can also use the FQDN of the db server.&lt;/LI&gt;
&lt;LI&gt;You need to repeat this step for the&amp;nbsp;&amp;nbsp; sections &amp;lt;add name="&lt;STRONG&gt;QSMQ&lt;/STRONG&gt;" and&amp;nbsp;&amp;lt;add name="&lt;STRONG&gt;postgres&lt;/STRONG&gt;"&lt;/LI&gt;
&lt;LI&gt;Hit &lt;STRONG&gt;Save Value in config file encrypted&lt;/STRONG&gt;, committing any&amp;nbsp;changes.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P style="margin-left: 80px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sebastian_Linser_1-1615898853355.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51246i70E2FD1E382EFDC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebastian_Linser_1-1615898853355.png" alt="Sebastian_Linser_1-1615898853355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Changing the Connection String&amp;nbsp;to SenseServices Databases.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Execute steps in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Postgres-database-moved-to-new-host-but-some-Qlik-Sense-is-still/ta-p/1714567" target="_blank" rel="noopener"&gt;Moved Postgress database to new host, but some qliksense is still accessing the SenseServices old database&lt;/A&gt;;&amp;nbsp;check if different version of article are present for different&amp;nbsp;Qlik Sense version .&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Changing the Connection String to Licenses Database ( April 2019 and up )&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Starting from April 2019 new License Service implementation is using this database.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp; Open an elevated Powershell and change directory to C:\Program Files\Qlik\Sense\Licenses&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp; &amp;nbsp;Run the script .\Configure-Service.ps1 and provide:
&lt;UL&gt;
&lt;LI&gt;new Hostname or IP&amp;nbsp;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;database port default is 4432&lt;/LI&gt;
&lt;LI&gt;database user qliksenserepository&lt;/LI&gt;
&lt;LI&gt;databasepassword is the qliksenserepository password&amp;nbsp; used during&amp;nbsp;configuration of&amp;nbsp;&amp;nbsp;the new database.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;example:&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;cd&amp;nbsp; 'C:\Program Files\Qlik\Sense\Licenses'&lt;/LI&gt;
&lt;LI&gt;.\Configure-Service.ps1 172.16.16.102 4432 qliksenserepository Password123!&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It will look like this:&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;Windows PowerShell&lt;BR /&gt;Copyright (C) 2014 Microsoft Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;PS C:\Windows\system32&amp;gt; &lt;STRONG&gt;cd \&lt;/STRONG&gt;&lt;BR /&gt;PS C:\&amp;gt; &lt;STRONG&gt;cd&amp;nbsp;&amp;nbsp;'C:\Program Files\Qlik\Sense\Licenses'&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Program Files\Qlik\Sense\Licenses&amp;gt; &lt;STRONG&gt;.\Configure-Service.ps1 172.16.16.102 4432 qliksenserepository Password123!&lt;/STRONG&gt;&lt;BR /&gt;Licenses configuration started.&lt;BR /&gt;WARNING: Skipping the database initialization. No superuser or password specified.&lt;BR /&gt;Reading the settings file.&lt;BR /&gt;Saving the modified settings.&lt;BR /&gt;Licenses configuration successful.&lt;BR /&gt;PS C:\Program Files\Qlik\Sense\Licenses&amp;gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;repeat this for:&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;
&lt;P&gt;C:\Program Files\Qlik\Sense\NotifierService\install\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\AppDistributionService\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\HybridDeploymentService\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\MobilityRegistrarService\install\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\PrecedentsService\install\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\NLAppSearch\install\Configure-Service.ps1&lt;/P&gt;
&lt;P&gt;there might come new services or disappear with new releases, please check in the C:\Program Files\Qlik\Sense\ folder for "Configure-Service.ps1" to find additional one in your version of Qlik Sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; If you have installed Qlik Sense in a different directory the Configure-Service.ps1 would have to be updated as in this example:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;File: Configure-Service.ps1 Folders: Various (9 microservices)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11 | [string] $senseInstallPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"$env:ProgramFiles\Qlik Sense",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[string] $senseInstallPath = "D:\Qlik",&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Remove Database Service dependency and Postgres Server &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;After successfully verifying your new setup, remove the Qlik Sense Repository service dependencies and the old Postgres database.&amp;nbsp;This is done to avoid issues with future Upgrade of Environment.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In an elevated command prompt, execute the following on prompt:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\sc config "QlikSenseRepositoryService" depend= "" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\sc config "QlikLoggingService" depend= ""&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;This will return:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[SC] ChangeServiceConfig SUCCESS&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Restart the Qlik Sense Repository Service.&lt;BR /&gt;&lt;BR /&gt;Check that Qlik Sense Repository Database doesn't start&amp;nbsp;(confirms&amp;nbsp;&lt;SPAN&gt;[SC] ChangeServiceConfig SUCCESS ).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Remove the (local) Qlik Sense Repository Database&lt;BR /&gt;&lt;BR /&gt;Find the most recent PostgreSQL.msi in C:\ProgramData\Package Cache\&amp;nbsp; and remove it. This removes the service but no old&amp;nbsp;local database data. This is needed to prevent issues on future upgrades of Environment.&lt;BR /&gt;&lt;BR /&gt;You can find the precise folder with this command depending on the Postgresql Version you used installing the inital release.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="font-family: inherit;"&gt;9.6:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;c:\cd ProgramData\Package Cache &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\ProgramData\Package Cache\dir /s PostgreSQL.msi&lt;/FONT&gt; &lt;BR /&gt;&lt;BR /&gt;The folder containing PostgreSQL.msi will be revealed. Right click on the PostgreSQL.msi file and select uninstall from the menu.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="font-family: inherit;"&gt;12.5:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;c:\cd ProgramData\Package Cache &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\ProgramData\Package Cache\dir /s PostgreSQL125.msi&lt;/FONT&gt; &lt;BR /&gt;&lt;BR /&gt;The folder containing PostgreSQL.msi will be revealed. Right click on the PostgreSQL.msi file and select uninstall from the menu.&lt;STRONG style="font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Finalize&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Restart the Qlik Sense Repository Service and verify that Qlik Sense Repository Database Service doesn't exist when followed the previous steps.&lt;/LI&gt;
&lt;LI&gt;Start all remaining Sense Services&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Progress on the startup sequence (including the connection to the new database) can be tracked in the _System_Repository log files located in&amp;nbsp;C:\ProgramData\Qlik\Sense\Log\Repository\Trace&lt;/LI&gt;
&lt;LI&gt;Verify functionality.&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;In Multi-node scenario you need to repeat steps "&lt;STRONG&gt;Changing the Connection Strings&amp;nbsp;to&lt;/STRONG&gt; &lt;STRONG&gt;&lt;U&gt;&lt;I&gt;Databases&lt;/I&gt;&lt;/U&gt;&lt;/STRONG&gt;" on all Rim nodes (QlikSenseUtil for Repository.exe.config and Configure-Service.ps1 for the micro services), and if required configure "&lt;STRONG&gt;Update the Qlik Logging Service Connection String&lt;/STRONG&gt;" (note that is EOL with Qlik Sense Enterprise on Windows February 2022) .&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 12:58:47 GMT</pubDate>
    <dc:creator>Sebastian_Linser</dc:creator>
    <dc:date>2024-02-08T12:58:47Z</dc:date>
    <item>
      <title>How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/ta-p/1791775</link>
      <description>&lt;BLOCKQUOTE class="quote"&gt;This article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The Qlik Sense Repository Database (QSR) can be moved to a dedicated standalone PostgreSQL instance not hosted on the same machine as other Qlik Sense Services. It is also possible to move an already existing QSR from a local Sense install, to a dedicated PostgresSQL database.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="3"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Set up a postgresSQL database&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Instructions for this might vary slightly. Please refer to the Qlik Online Help for details.&amp;nbsp; We recommend watching &lt;A href="https://www.youtube.com/watch?v=-YjbbbNgu_o" target="_blank" rel="noopener"&gt;this video&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Qlik Sense Enterprise server has a set of five databases.&amp;nbsp;For more details visit&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/latest/Subsystems/PlanningQlikSenseDeployments/Content/Deployment/Installing-configuring-postgresql.htm" target="_self"&gt;Installing and configuring PostgreSQL on help.qlik.com.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;1. The Qlik Sense repository database (QSR):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The QSR is the primary database in your&amp;nbsp;Qlik Sense&amp;nbsp;deployment.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;2. The&amp;nbsp;Qlik Sense&amp;nbsp;services database (SenseServices):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The SenseServices database contains schemas for each of the&amp;nbsp;Qlik Sense&amp;nbsp;services and allows growth independently of the&amp;nbsp;Qlik Sense Repository Database, while still sharing the same&amp;nbsp;PostgreSQL&amp;nbsp;instance and login role.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;3. The&amp;nbsp;Qlik Sense&amp;nbsp;message queue database (QSMQ):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The QSMQ database provides a light-weight method of passing messages internally between services in&amp;nbsp;Qlik Sense Enterprise. The NOTIFY and LISTEN functionality in&amp;nbsp;PostgreSQL&amp;nbsp;allows services to be notified about new messages that have been written to the messaging table.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;4. The&amp;nbsp;Qlik Sense&amp;nbsp;logging database (QLogs): No longer supported after May 2021&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The QLogs database centralizes logging by collecting log messages from all&amp;nbsp;Qlik Sense&amp;nbsp;nodes in your deployment and stores them in a&amp;nbsp;PostgreSQL&amp;nbsp;database.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;5. The&amp;nbsp;Qlik Sense&amp;nbsp;license service database (Licenses):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The Licenses database is used to sync the assignments between the Qlik license backend and the local installation.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Simplified checklist of steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Download a valid version of postgresSQL.&amp;nbsp; For Sense June 2017 and up, &lt;STRONG&gt;9.6.x&lt;/STRONG&gt; is required, from November 2019 version &lt;STRONG&gt;11.5.x&lt;/STRONG&gt; as well. From May 2021 version &lt;STRONG&gt;12.5&lt;/STRONG&gt;&amp;nbsp;can be used. Review the system requirements of your version before proceeding.&lt;/LI&gt;
&lt;LI&gt;Install based on instructions found on the Qlik Online Help for Qlik Sense;&amp;nbsp;select the version you are running&amp;nbsp;on then select from Menu , Deploy - Qlik Sense installation - Installing and configuring PostgreSQL.&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV style="margin-left: 40px;"&gt;See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Installing-configuring-postgresql.htm" target="_blank" rel="noopener"&gt;Installing and configuring PostgreSQL&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Moving the Qlik Sense Share Folders as well?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Follow&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/How-to-change-the-share-path-in-Qlik-Sense-Service-Cluster/ta-p/1711738" target="_blank" rel="noopener"&gt;How to change the shared path in Qlik Sense&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Backup&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Depending on the version, you need to backup different databases, on the current Qlik Sense central node hosting the Qlik Sense Repository Database service, &lt;A href="https://help.qlik.com/en-US/sense/latest/Subsystems/PlanningQlikSenseDeployments/Content/Deployment/Backing-up-a-site.htm" target="_blank" rel="noopener"&gt;follow the backup instructions to obtain a database&lt;/A&gt; copy of each Qlik Sense Database Present .&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Example for February 2021&amp;nbsp; you need to backup the databases reported in section "Installing and configuring PostgreSQL"; referring to the Help site these are :&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; QSR , QSMQ , SenseServices , Licenses , if configured QLogs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Restore&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;On the dedicated remote postgresSQL host, &lt;A href="https://help.qlik.com/en-US/sense/latest/Subsystems/PlanningQlikSenseDeployments/Content/Deployment/Restoring-a-site.htm" target="_blank" rel="noopener"&gt;perform a restore&lt;/A&gt;&amp;nbsp; &amp;nbsp;of the backed up Databases of previous point.&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Changing the Connection String to QSR and QSMQ Database&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;On the Qlik Sense central node, all services but the &lt;STRONG&gt;Qlik Sense Repository Service&lt;/STRONG&gt;&amp;nbsp;are shut down.&lt;/LI&gt;
&lt;LI&gt;Open &lt;STRONG&gt;QlikSenseUtil&lt;/STRONG&gt;. By default, this will be installed in:&amp;nbsp;C:\Program Files\Qlik\Sense\Repository\Util\QlikSenseUtil\QlikSenseUtil.exe&lt;/LI&gt;
&lt;LI&gt;Open the &lt;STRONG&gt;Connection String Editor &lt;/STRONG&gt;and &lt;STRONG&gt;Read &lt;/STRONG&gt;the current configuration, decrypting the current data.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sebastian_Linser_0-1615898800179.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51245i7051C44E95977D00/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sebastian_Linser_0-1615898800179.png" alt="Sebastian_Linser_0-1615898800179.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Replace all mentions of the current database hostname.&amp;nbsp; In our example, the new database resides on 172.16.16.103. Instead of an IP you can also use the FQDN of the db server.&lt;/LI&gt;
&lt;LI&gt;You need to repeat this step for the&amp;nbsp;&amp;nbsp; sections &amp;lt;add name="&lt;STRONG&gt;QSMQ&lt;/STRONG&gt;" and&amp;nbsp;&amp;lt;add name="&lt;STRONG&gt;postgres&lt;/STRONG&gt;"&lt;/LI&gt;
&lt;LI&gt;Hit &lt;STRONG&gt;Save Value in config file encrypted&lt;/STRONG&gt;, committing any&amp;nbsp;changes.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P style="margin-left: 80px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sebastian_Linser_1-1615898853355.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51246i70E2FD1E382EFDC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebastian_Linser_1-1615898853355.png" alt="Sebastian_Linser_1-1615898853355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Changing the Connection String&amp;nbsp;to SenseServices Databases.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Execute steps in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Postgres-database-moved-to-new-host-but-some-Qlik-Sense-is-still/ta-p/1714567" target="_blank" rel="noopener"&gt;Moved Postgress database to new host, but some qliksense is still accessing the SenseServices old database&lt;/A&gt;;&amp;nbsp;check if different version of article are present for different&amp;nbsp;Qlik Sense version .&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Changing the Connection String to Licenses Database ( April 2019 and up )&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Starting from April 2019 new License Service implementation is using this database.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp; Open an elevated Powershell and change directory to C:\Program Files\Qlik\Sense\Licenses&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp; &amp;nbsp;Run the script .\Configure-Service.ps1 and provide:
&lt;UL&gt;
&lt;LI&gt;new Hostname or IP&amp;nbsp;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;database port default is 4432&lt;/LI&gt;
&lt;LI&gt;database user qliksenserepository&lt;/LI&gt;
&lt;LI&gt;databasepassword is the qliksenserepository password&amp;nbsp; used during&amp;nbsp;configuration of&amp;nbsp;&amp;nbsp;the new database.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;example:&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;cd&amp;nbsp; 'C:\Program Files\Qlik\Sense\Licenses'&lt;/LI&gt;
&lt;LI&gt;.\Configure-Service.ps1 172.16.16.102 4432 qliksenserepository Password123!&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It will look like this:&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;Windows PowerShell&lt;BR /&gt;Copyright (C) 2014 Microsoft Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;PS C:\Windows\system32&amp;gt; &lt;STRONG&gt;cd \&lt;/STRONG&gt;&lt;BR /&gt;PS C:\&amp;gt; &lt;STRONG&gt;cd&amp;nbsp;&amp;nbsp;'C:\Program Files\Qlik\Sense\Licenses'&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Program Files\Qlik\Sense\Licenses&amp;gt; &lt;STRONG&gt;.\Configure-Service.ps1 172.16.16.102 4432 qliksenserepository Password123!&lt;/STRONG&gt;&lt;BR /&gt;Licenses configuration started.&lt;BR /&gt;WARNING: Skipping the database initialization. No superuser or password specified.&lt;BR /&gt;Reading the settings file.&lt;BR /&gt;Saving the modified settings.&lt;BR /&gt;Licenses configuration successful.&lt;BR /&gt;PS C:\Program Files\Qlik\Sense\Licenses&amp;gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;repeat this for:&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;
&lt;P&gt;C:\Program Files\Qlik\Sense\NotifierService\install\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\AppDistributionService\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\HybridDeploymentService\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\MobilityRegistrarService\install\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\PrecedentsService\install\Configure-Service.ps1&lt;BR /&gt;C:\Program Files\Qlik\Sense\NLAppSearch\install\Configure-Service.ps1&lt;/P&gt;
&lt;P&gt;there might come new services or disappear with new releases, please check in the C:\Program Files\Qlik\Sense\ folder for "Configure-Service.ps1" to find additional one in your version of Qlik Sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; If you have installed Qlik Sense in a different directory the Configure-Service.ps1 would have to be updated as in this example:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;File: Configure-Service.ps1 Folders: Various (9 microservices)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11 | [string] $senseInstallPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"$env:ProgramFiles\Qlik Sense",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[string] $senseInstallPath = "D:\Qlik",&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Remove Database Service dependency and Postgres Server &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;After successfully verifying your new setup, remove the Qlik Sense Repository service dependencies and the old Postgres database.&amp;nbsp;This is done to avoid issues with future Upgrade of Environment.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In an elevated command prompt, execute the following on prompt:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\sc config "QlikSenseRepositoryService" depend= "" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\sc config "QlikLoggingService" depend= ""&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;This will return:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[SC] ChangeServiceConfig SUCCESS&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Restart the Qlik Sense Repository Service.&lt;BR /&gt;&lt;BR /&gt;Check that Qlik Sense Repository Database doesn't start&amp;nbsp;(confirms&amp;nbsp;&lt;SPAN&gt;[SC] ChangeServiceConfig SUCCESS ).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Remove the (local) Qlik Sense Repository Database&lt;BR /&gt;&lt;BR /&gt;Find the most recent PostgreSQL.msi in C:\ProgramData\Package Cache\&amp;nbsp; and remove it. This removes the service but no old&amp;nbsp;local database data. This is needed to prevent issues on future upgrades of Environment.&lt;BR /&gt;&lt;BR /&gt;You can find the precise folder with this command depending on the Postgresql Version you used installing the inital release.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="font-family: inherit;"&gt;9.6:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;c:\cd ProgramData\Package Cache &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\ProgramData\Package Cache\dir /s PostgreSQL.msi&lt;/FONT&gt; &lt;BR /&gt;&lt;BR /&gt;The folder containing PostgreSQL.msi will be revealed. Right click on the PostgreSQL.msi file and select uninstall from the menu.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="font-family: inherit;"&gt;12.5:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;c:\cd ProgramData\Package Cache &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c:\ProgramData\Package Cache\dir /s PostgreSQL125.msi&lt;/FONT&gt; &lt;BR /&gt;&lt;BR /&gt;The folder containing PostgreSQL.msi will be revealed. Right click on the PostgreSQL.msi file and select uninstall from the menu.&lt;STRONG style="font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Finalize&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Restart the Qlik Sense Repository Service and verify that Qlik Sense Repository Database Service doesn't exist when followed the previous steps.&lt;/LI&gt;
&lt;LI&gt;Start all remaining Sense Services&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Progress on the startup sequence (including the connection to the new database) can be tracked in the _System_Repository log files located in&amp;nbsp;C:\ProgramData\Qlik\Sense\Log\Repository\Trace&lt;/LI&gt;
&lt;LI&gt;Verify functionality.&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;In Multi-node scenario you need to repeat steps "&lt;STRONG&gt;Changing the Connection Strings&amp;nbsp;to&lt;/STRONG&gt; &lt;STRONG&gt;&lt;U&gt;&lt;I&gt;Databases&lt;/I&gt;&lt;/U&gt;&lt;/STRONG&gt;" on all Rim nodes (QlikSenseUtil for Repository.exe.config and Configure-Service.ps1 for the micro services), and if required configure "&lt;STRONG&gt;Update the Qlik Logging Service Connection String&lt;/STRONG&gt;" (note that is EOL with Qlik Sense Enterprise on Windows February 2022) .&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 12:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/ta-p/1791775</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2024-02-08T12:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1853178#M4692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am running Qlik Sense Feb 2021 P8.&lt;/P&gt;
&lt;P&gt;I am trying to migrate the PostgreSQL db to a separate standalone node to implement HA.&lt;/P&gt;
&lt;P&gt;I have followed your instructions step by step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the services are running now, but somehow the proxy is not kicking in. Still shows this error in the system proxy log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The proxy configurations are still pointing to localhost for QlikSenseDatabaseService.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;24	20211028T142549.340+0000	ERROR	server	System.Proxy.Proxy.Communication.Rest.ProxyRestClient	9	59602e12-d054-4368-bea7-0f0f4062e0a8	DEVSERVER\senseadmin	When contacting https://localhost:4242/	No connection could be made because the target machine actively refused it [::1]:4242↵↓Unable to connect to the remote server	   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)↵↓   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)↵↓   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket&amp;amp; socket, IPAddress&amp;amp; address, ConnectSocketState state, IAsyncResult asyncResult, Exception&amp;amp; exception)↵↓   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)↵↓   at Qlik.Sense.Common.Communication.REST.Client.WebClientEx.GetWebResponse(WebRequest request, IAsyncResult result)↵↓   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)		59602e12-d054-4368-bea7-0f0f4062e0a8&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After following this step,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Right click on the PostgreSQL.msi&amp;nbsp;file and select uninstall&amp;nbsp;from the menu.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;The QlikSenseRespositoryDatabase service has got removed from the box. It does not appear on the server anymore.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aadil_madarveet_0-1635431507891.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65501i748EC10A59591CF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aadil_madarveet_0-1635431507891.png" alt="aadil_madarveet_0-1635431507891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 14:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1853178#M4692</guid>
      <dc:creator>aadil_madarveet</dc:creator>
      <dc:date>2021-10-28T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1853648#M4704</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35709"&gt;@aadil_madarveet&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since the response in the logs is that you can't reach the repository service, it seems that this one is not up. So please check in the repository logs first why the DB is not connecting towards your new instance.&lt;/P&gt;
&lt;P&gt;best regards&lt;/P&gt;
&lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 12:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1853648#M4704</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2021-10-29T12:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988440#M7440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We are running Qliksense Feb 2021 Patch3 on Windows Server 2019. We want to move qliksense repository to new DB host for High Availability.&amp;nbsp; AS per backup instructions stated in&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-admin/August2022/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Backing-up-a-site.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-admin/August2022/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Backing-up-a-site.htm&lt;/A&gt;&amp;nbsp; I am taking a backup but shall we backup and restore all DBs like SenseServices, QSMQ, Licenses? We are not using centralized logging and QSMQ/SenseServices are asked to be backuped up in case of linked cloud environment(What does it mean? We have on-prem Qliksense installation)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lokeshb31_1-1664864519505.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90479i90FA89A346F974A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lokeshb31_1-1664864519505.png" alt="Lokeshb31_1-1664864519505.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Will it be ok if we only restore QSR to another DB, update only that configuration in Qliksenseutil.exe and it will work? Do I need to delete default Qliksense Repository database service in that case or I can keep it up?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help to address this confusion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 06:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988440#M7440</guid>
      <dc:creator>Lokeshb31</dc:creator>
      <dc:date>2022-10-04T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988487#M7443</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/79078"&gt;@Lokeshb31&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic principle is that what you marked above&lt;/P&gt;
&lt;P&gt;- if you have a could deployment, so connection to tennantid.(eu|us|ap).qlikcloud.com and you are pushing apps from Qlik Sense into this instance you need the SenseServices and QSMQ table,&lt;/P&gt;
&lt;P&gt;- if you use a signed license key (SLK) then you need the Licenses database if you use LEF and Controlnumber (which is highly likley in Feb2021) then you dont need this database.&lt;/P&gt;
&lt;P&gt;Since you migrate you have at least to create empty DB's, the script here works just fine.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-admin/August2022/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Installing-configuring-postgresql-on-Azure.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-admin/August2022/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Installing-configuring-postgresql-on-Azure.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you just move the only QSR the worst what can happen is that you reconfigure the cloud tennant one more time in the QMC, the rest will work just fine.&lt;/P&gt;
&lt;P&gt;Beside the Qliksenseutil.exe you also want to update the configure-service.ps1 files to get the new database connection for the microservices (appsettings.json files) as described above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 08:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988487#M7443</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2022-10-04T08:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988544#M7444</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/19162"&gt;@Sebastian_Linser&lt;/a&gt;&amp;nbsp;: I am not migrating DB to cloud, we just want to shift Qliksense repository from Default central node to another standalone separate database node managed by DBA team, both environments are on-premise, no cloud is involved here. Do we need to backup/restore all DBs in this case?&amp;nbsp; Our Feb 2021 repository is 9.6(default) and the one we are shifting QSR is Postgres 12.&amp;nbsp; What I did is, just modified Qliksenseutil connection string for QSR&amp;nbsp; as per below screenshot and restarted all services. Its all working fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lokeshb31_0-1664878958994.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90509i7ED87D51FD1B9C54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lokeshb31_0-1664878958994.png" alt="Lokeshb31_0-1664878958994.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you please suggest what other steps I need to do?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 10:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988544#M7444</guid>
      <dc:creator>Lokeshb31</dc:creator>
      <dc:date>2022-10-04T10:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988721#M7452</link>
      <description>&lt;P&gt;The create script is identical for on prem and cloud. You still need to create the other DB's as a emtpy one. Migrating only if you fullfill the conditions in the last post. Otherwise they will be seeded by first Qlik service dispatcher start.&lt;/P&gt;
&lt;P&gt;To see which additional connection strings you have to update check with that command&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;C:\Program Files\Qlik\Sense\dir /s&amp;nbsp;Configure-Service.ps1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;all you find need to be updated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 15:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1988721#M7452</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2022-10-04T15:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994788#M7585</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/19162"&gt;@Sebastian_Linser&lt;/a&gt;&amp;nbsp;: In&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Postgres-database-moved-to-new-host-but-some-Qlik-Sense-is-still/tac-p/1994615#M7581" target="_blank" rel="noopener"&gt;this link&lt;/A&gt;&amp;nbsp;its mentioned to update configure.ps1 with below command i.e. localhost DB credentials.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;.\Configure-Service.ps1 localhost 4432 qliksenserepository Password123!&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;It should be&amp;nbsp;.\Configure-Service.ps1 &amp;lt;newDBhost&amp;gt; &amp;lt;newDBport&amp;gt; qliksenserepository &amp;lt;newpassword&amp;gt;&lt;/P&gt;
&lt;P&gt;Right?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried with&amp;nbsp;.\Configure-Service.ps1 &amp;lt;newDBhost&amp;gt; &amp;lt;newDBport&amp;gt; qliksenserepository &amp;lt;newpassword&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But&amp;nbsp; out of all Configure.ps1 locations ( found using&amp;nbsp;dir /s&amp;nbsp;Configure-Service.ps1), it threw error for below ones&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;D:\Program Files\Qlik\Sense\DataPrepService\install&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;D:\Program Files\Qlik\Sense\PrecedentsService\install&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;D:\Program Files\Qlik\Sense\MobilityRegistrarService\install&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;D:\Program Files\Qlik\Sense\NotifierService\install&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Error message:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;WARNING: Skiping the database initialization. No superuser or password specified.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Creating schema 'dataprep_service'.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Invoke-Query : Exception calling "Start" with "0" argument(s): "The system cannot find the file specified"&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;At D:\Program Files\Qlik\Sense\DataPrepService\install\install-utils\Postgres.ps1:56 char:12&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;+ $ret = Invoke-Query $command&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;+ ~~~~~~~~~~~~~~~~~~~~~&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;+ CategoryInfo : NotSpecified: (:) [Invoke-Query], MethodInvocationException&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;+ FullyQualifiedErrorId : Win32Exception,Invoke-Query&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Please help to address the issue.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 05:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994788#M7585</guid>
      <dc:creator>Lokeshb31</dc:creator>
      <dc:date>2022-10-20T05:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994813#M7586</link>
      <description>&lt;P&gt;are youy within the folder when you tun the Query?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so cd "&lt;SPAN&gt;D:\Program Files\Qlik\Sense\DataPrepService\install" and then running the command?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can alternativly also run the command without the arguments and you will be promted to enter them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This one here "&lt;EM&gt;Invoke-Query : Exception calling "Start" with "0" argument(s): "The system cannot find the file specified""&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;could be related to the postgres binary it searches. Which is not because you installed it on the D drive but because you have the folder 9.6 hardcoded in the original file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check for this line in Configure-Services.Ps1 and adjust it to your system&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\9.6",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;e.g.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 06:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994813#M7586</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2022-10-20T06:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994856#M7588</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/19162"&gt;@Sebastian_Linser&lt;/a&gt;&amp;nbsp;I edited path to&amp;nbsp;&lt;STRONG&gt;[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",&amp;nbsp;&lt;/STRONG&gt;but its not working, the obvious reason is, I dont have 12.5 installed on same host, its on another host. What changes I need to do in file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 07:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994856#M7588</guid>
      <dc:creator>Lokeshb31</dc:creator>
      <dc:date>2022-10-20T07:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994857#M7589</link>
      <description>&lt;LI-CODE lang="markup"&gt;[CmdletBinding()]
Param(
    [Parameter(Mandatory = $True)] [string]$databaseHost,
    [Parameter(Mandatory = $True)] [int]$databasePort,
    [Parameter(Mandatory = $True)] [string]$databaseUser,
    [Parameter(Mandatory = $True)] [string]$databaseUserPassword,

    [string]$databaseSuperUser,
    [string]$databaseSuperUserPassword,

    [string]$senseInstallPath = "$env:ProgramFiles\Qlik\Sense",
    [string]$senseDataPath = "$env:ProgramData\Qlik\Sense",
    [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\9.6",
    [string]$hostname = "localhost",
    [string]$serviceName = "DataPrepService",
    [string]$databaseName = "SenseServices",
    [string]$databaseSchema = "dataprep_service",
    [string]$paramsLocation = "$senseDataPath\$serviceName"
)

$ErrorActionPreference = "Stop";
$contentLocation = $PSScriptRoot

. $contentLocation/install-utils/Json.ps1
. $contentLocation/install-utils/Postgres.ps1
. $contentLocation/install-utils/Encoding.ps1
. $contentLocation/install-utils/Parameters.ps1
. $contentLocation/install-utils/Security.ps1

# Set postgres execution environment
$global:psqlPath = "$postgresHome/bin/psql.exe"
$global:pgPassPath = "$contentLocation/pgpass.conf"
$global:postgresPort = $databasePort
$global:postgresHost = $databaseHost
$global:postgresDB = $databaseName

Write-Output "DataPrepService configuration started."

try {
    if ($databaseSuperUser -and ($databaseSuperUserPassword -or $databaseHost -eq "localhost")) {
        Write-Output "Database superuser specified, initializing the database."
        
        # Set postgres user context
        $global:postgresUser = $databaseSuperUser
        Write-PgPassFile $databaseSuperUserPassword

        # Create database in external postgres instance
        Set-Database $databaseName $databaseSuperUser

        # Create service user accounts with CREATE privilege in database
        Set-ServiceUser $databaseUser $databaseUserPassword $databaseName
        Write-Output "Database initialization successful."
    } else {
        Write-Warning "Skiping the database initialization. No superuser or password specified."
    }

    # Reconfigure postgres user context
    $global:postgresUser = $databaseUser
    Write-PgPassFile $databaseUserPassword

    # Create database schema
    Set-Schema $databaseSchema $databaseUser

    # Read default appsettings
    $appsettings = Get-Content "$contentLocation\..\appsettings.json" -raw | ConvertFrom-Json

    # Set config values
    $appsettings.Postgres.Host = $databaseHost
    $appsettings.Postgres.Port = $databasePort
    $appsettings.Postgres.Database = $databaseName
    $appsettings.Postgres.Schema = $databaseSchema
    $appsettings.Postgres.Password = $databaseUserPassword | Encrypt-WithMachineKey
    $appsettings.Postgres.Username = $databaseUser

    # Save modified appsettings
    Write-Output "Saving the modified settings."
    $json = $appsettings | ConvertTo-Json -Depth 10 | Format-Json
    Out-File -InputObject $json -FilePath "$contentLocation\..\appsettings.json"

    # Create a copy of the invocation parameters for the upgrade
    Write-Output "Exporting the copy of the invocation parameters."
    $params = $PSBoundParameters | Export-JsonParameters | Encrypt-WithMachineKey
    New-Item -ItemType Directory -Force -Path $paramsLocation | Out-Null
    Out-File -InputObject $params -FilePath "$paramsLocation\configure.params" -Force
    
    Write-Output "DataPrepService configuration successful."
} finally {
    Remove-PgPassFile
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above is Configure.pS1&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 07:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/1994857#M7589</guid>
      <dc:creator>Lokeshb31</dc:creator>
      <dc:date>2022-10-20T07:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2132722#M10560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;While doing this can you also go from a Different PostgreSQL DB version to another? (e.g. 9.6 to 14.8)&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 03:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2132722#M10560</guid>
      <dc:creator>adamb14</dc:creator>
      <dc:date>2023-10-30T03:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2132843#M10562</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170263"&gt;@adamb14&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you intend to set up a new standalone database on a higher version (so, 14.8) and then restore the 9.6 database from your previous bundled PostgreSQL?&lt;/P&gt;
&lt;P&gt;That is usually how PostgreSQL upgrades are done between major versions (install a new major version, restore the previous one), so the answer would be yes. If, however, you are also upgrading Qlik Sense at the same time we recommend staggering the procedure: Move to an identical version of PostgreSQL first, then upgrade Qlik Sense, then upgrade the database, taking the appropriate backups along the way.&lt;/P&gt;
&lt;P&gt;You may also want to look into the &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Upgrading-and-unbundling-the-Qlik-Sense-Repository-Database/ta-p/1934238" target="_blank" rel="noopener"&gt;Qlik PostgreSQL installer&lt;/A&gt;, which not only unbundles Qlik Sense from the PostgreSQL database but can also install a standalone DB. General "upgrade standalone PostgreSQL" instructions that go hand in hand with Qlik can be found here: &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Enterprise-on-Windows-How-To-Upgrade-Standalone/ta-p/1712361" target="_blank" rel="noopener"&gt;Qlik Sense Enterprise on Windows: How To Upgrade Standalone PostgreSQL&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 09:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2132843#M10562</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-10-30T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2160071#M11090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is this article still valid if I would like to just change port of the dedicated postgresql?&lt;BR /&gt;(example from port 4432 to 4433)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lucky&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 13:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2160071#M11090</guid>
      <dc:creator>Luck</dc:creator>
      <dc:date>2024-01-10T13:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2160097#M11092</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125268"&gt;@Luck&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The article is still accurate,&amp;nbsp; yes. And you can change the port of your standalone PostgreSQL environment. If you have more detailed questions on how to achieve this, please post your question in the &lt;A href="https://community.qlik.com/t5/deployment-management/bd-p/qlik-sense-deployment" target="_blank" rel="noopener"&gt;Qlik Sense Management and Deployment&lt;/A&gt; board.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2160097#M11092</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2024-01-10T14:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2415815#M12577</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/19162"&gt;@Sebastian_Linser&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--313060928"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Remove Database Service dependency and Postgres Server&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Can this step be performed post successful verification to change existing local install PostgreSQL database to dedicated server. This will help to rollback to previous setup in case we face any issues post implementation.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 08:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2415815#M12577</guid>
      <dc:creator>TusharDev_Qlik</dc:creator>
      <dc:date>2024-02-07T08:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2416629#M12605</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/160664"&gt;@TusharDev_Qlik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can confirm that this step should be performed after you have successfully verified your setup. Will clarify this in the text above, thank you for getting in touch!&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 12:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2416629#M12605</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2024-02-08T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2416886#M12619</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;Thank you for your prompt response.&lt;/P&gt;
&lt;P&gt;Could you please include details rollback steps(how to restore databases configurations to the previous version) in the above document which will complete the entire process.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 05:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2416886#M12619</guid>
      <dc:creator>TusharDev_Qlik</dc:creator>
      <dc:date>2024-02-09T05:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2417133#M12625</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/160664"&gt;@TusharDev_Qlik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A "rollback" by itself does not exist for this process. To move back to a bundled PostgreSQL instance, Qlik Sense Enterprise on Windows would need to be uninstalled and reinstalled on the identical Sense version and the database restored.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 10:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2417133#M12625</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2024-02-09T10:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Qlik Sense to use a dedicated PostgreSQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2417558#M13103</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;By rollback I mean if we repoint all databases to Localhost again before uninstalling PostgreSQL&amp;nbsp; from Central, the system will be restored to the previous setup automatically isn't it?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 05:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-Qlik-Sense-to-use-a-dedicated-PostgreSQL/tac-p/2417558#M13103</guid>
      <dc:creator>TusharDev_Qlik</dc:creator>
      <dc:date>2024-02-12T05:49:37Z</dc:date>
    </item>
  </channel>
</rss>

