Skip to main content

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!

Creating a PostgreSQL database dump file after uninstalling Qlik Sense

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Lisa_Sun
Support

Creating a PostgreSQL database dump file after uninstalling Qlik Sense

Last Update:

May 7, 2021 5:30:01 AM

Updated By:

Sonja_Bauernfeind

Created date:

Oct 11, 2017 11:21:41 PM

We recommend creating your database dump file before uninstalling Qlik Sense. Even if Sense was already uninstalled (as long as the database was not removed), a backup can still be taken. 

Environment:

 

If you uninstall Qlik Sense before creating the database dump file, do the following:

  1. Copy the PostgreSQL folder from %ProgramData%\Qlik\Sense\Repository\PostgreSQL to a temporary location outside of the %ProgramData% folder.
  2. Download and install PostgreSQL version 9.6 from the PostgreSQL website.
  3. Open a Command Prompt in Microsoft Windows.
    The pg_ctl.exe command should not be run as an administrator.
  4. Navigate to the location where the PostgreSQL repository database is installed, %ProgramFiles%\PostgreSQL\<database version>\bin, and run the following commands
    1. pg_ctl.exe start -w -D "C:\SenseDB\<database version>"
    2. set PGUSER=postgres
    3. set PGPASSWORD=password
    4. pg_dumpall.exe > [<path to dump file>]
    5. pg_ctl.exe stop -w -D "C:\SenseDB\<database version>"
Labels (1)