{"id":4580,"date":"2015-05-18T09:10:16","date_gmt":"2015-05-18T07:10:16","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/"},"modified":"2015-05-18T09:10:16","modified_gmt":"2015-05-18T07:10:16","slug":"getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/","title":{"rendered":"getting started with postgres plus advanced server (1) &#8211; setting up ppas"},"content":{"rendered":"<p>I did several <a href=\"http:\/\/dbi-services.com\/blog\/author\/daniel-westermann\/\" target=\"_blank\">posts around postgresql and postgres plus advanced server<\/a> in the past. What is missing is a beginners guide on how to get postgres plus advanced server up and running including a solution for backup and recovery, high availability and monitoring. So I thought I&#8217;d write a guide on how to do that, consisting of:<\/p>\n<ol>\n<li>setting up postgres plus advanced server<\/li>\n<li>setting up a backup and recovery server<\/li>\n<li>setting up a hot standby database<\/li>\n<li>setting up monitoring<\/li>\n<\/ol>\n<p>As this is the first post of the series this is about getting <a href=\"http:\/\/www.enterprisedb.com\/products-services-training\/products\/postgres-plus-advanced-server\" target=\"_blank\">ppas<\/a> installed and creating the first <a href=\"http:\/\/www.postgresql.org\/docs\/current\/static\/creating-cluster.html\" target=\"_blank\">database cluster.<\/a><br \/>\nObviously the first thing to do is to install an operating system. Several of these <a href=\"http:\/\/www.enterprisedb.com\/ppas-platform-support\" target=\"_blank\">are supported<\/a>, just choose the one you like. An example setup can be found <a href=\"https:\/\/danielwestermann.files.wordpress.com\/2014\/12\/setup_oel66_staging_env_vm.pdf\" target=\"_blank\">here<\/a>. So, once <a href=\"http:\/\/www.enterprisedb.com\/products-services-training\/products\/postgres-plus-advanced-server\/downloads\" target=\"_blank\">ppas was downloaded<\/a> and transferred to the system where it is supposed to be installed we can start. There are several ways to get ppas installed on the system but before you begin java should be installed. For yum based distributions this is done by:<\/p>\n<pre>yum install java\n<\/pre>\n<h3>Using the standalone installer in interactive mode<\/h3>\n<p>Starting the installation is just a matter of extracting the file and executing it:<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[root@oel7 tmp]# ls\nppasmeta-9.4.1.3-linux-x64.tar.gz\n[root@oel7 tmp]# tar -axf ppasmeta-9.4.1.3-linux-x64.tar.gz \n[root@oel7 tmp]# ls\nppasmeta-9.4.1.3-linux-x64  ppasmeta-9.4.1.3-linux-x64.tar.gz\n[root@oel7 tmp]# ppasmeta-9.4.1.3-linux-x64\/ppasmeta-9.4.1.3-linux-x64.run \n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas2.png\" alt=\"alt\" align=\"middle\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas3.png\" alt=\"alt\" align=\"middle\" \/> provide the username and password you used for downloading the product: <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas4.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas5.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas6.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas7.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas8.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas9.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas10.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas11.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas12.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas13.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas14.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas15.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas16.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas17.png\" alt=\"alt\" align=\"middle\" \/> <img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas18.png\" alt=\"alt\" align=\"middle\" \/>done.<\/p>\n<h3>Using the standalone installer in interactive text mode<\/h3>\n<p>If you do not want to use the graphical user interface you can launch the installer in interactive text mode:<\/p>\n<pre># ppasmeta-9.4.1.3-linux-x64\/ppasmeta-9.4.1.3-linux-x64.run --mode text\n<\/pre>\n<p>Either go with the default options or adjust what you like. The questions should be self explaining:<br \/>\nLanguage Selection<\/p>\n<p>Please select the installation language<br \/>\n[1] English &#8211; English<br \/>\n[2] Japanese &#8211; \u65e5\u672c\u8a9e<br \/>\n[3] Simplified Chinese &#8211; \u7b80\u4f53\u4e2d\u6587<br \/>\n[4] Traditional Chinese &#8211; \u7e41\u4f53\u4e2d\u6587<br \/>\n[5] Korean &#8211; \ud55c\uad6d\uc5b4<br \/>\nPlease choose an option [1] : 1<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nWelcome to the Postgres Plus Advanced Server Setup Wizard.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nPlease read the following License Agreement. You must accept the terms of this<br \/>\nagreement before continuing with the installation.<\/p>\n<p>Press [Enter] to continue:<br \/>\n&#8230;..<br \/>\n&#8230;..<br \/>\nPress [Enter] to continue:<\/p>\n<p>Do you accept this license? [y\/n]: y<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nUser Authentication<\/p>\n<p>This installation requires a registration with EnterpriseDB.com. Please enter<br \/>\nyour credentials below. If you do not have an account, Please create one now on<br \/>\nhttps:\/\/www.enterprisedb.com\/user-login-registration<\/p>\n<p>Email []:<\/p>\n<p>Password : xxxxx<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nPlease specify the directory where Postgres Plus Advanced Server will be<br \/>\ninstalled.<\/p>\n<p>Installation Directory [\/opt\/PostgresPlus]:<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nSelect the components you want to install.<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">Database Server [Y\/n] :y\nConnectors [Y\/n] :y\nInfinite Cache [Y\/n] :y\nMigration Toolkit [Y\/n] :y\nPostgres Enterprise Manager Client [Y\/n] :y\npgpool-II [Y\/n] :y\npgpool-II Extensions [Y\/n] :y\nEDB*Plus [Y\/n] :y\nSlony Replication [Y\/n] :y\nPgBouncer [Y\/n] :y\nIs the selection above correct? [Y\/n]: y<\/pre>\n<p>&nbsp;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nAdditional Directories<\/p>\n<p>Please select a directory under which to store your data.<\/p>\n<p>Data Directory [\/opt\/PostgresPlus\/9.4AS\/data]:<\/p>\n<p>Please select a directory under which to store your Write-Ahead Logs.<\/p>\n<p>Write-Ahead Log (WAL) Directory [\/opt\/PostgresPlus\/9.4AS\/data\/pg_xlog]:<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nConfiguration Mode<\/p>\n<p>Postgres Plus Advanced Server always installs with Oracle(R) compatibility features and maintains full PostgreSQL compliance. Select your style preference for installation defaults and samples.<\/p>\n<p>The Oracle configuration will cause the use of certain objects (e.g. DATE data types, string operations, etc.) to produce Oracle compatible results, create the same Oracle sample tables, and have the database match Oracle examples used in the documentation.<\/p>\n<p>Configuration Mode<\/p>\n<p>[1] Oracle Compatible<br \/>\n[2] PostgreSQL Compatible<br \/>\nPlease choose an option [1] : 1<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nPlease provide a password for the database superuser (enterprisedb). A locked<br \/>\nUnix user account (enterprisedb) will be created if not present.<\/p>\n<p>Password :<br \/>\nRetype Password :<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nAdditional Configuration<\/p>\n<p>Please select the port number the server should listen on.<\/p>\n<p>Port [5444]:<\/p>\n<p>Select the locale to be used by the new database cluster.<\/p>\n<p>Locale<\/p>\n<p>[1] [Default locale]<br \/>\n&#8230;&#8230;<br \/>\nPlease choose an option [1] : 1<\/p>\n<p>Install sample tables and procedures. [Y\/n]: Y<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nDynatune Dynamic Tuning:<br \/>\nServer Utilization<\/p>\n<p>Please select the type of server to determine the amount of system resources<br \/>\nthat may be utilized:<\/p>\n<p>[1] Development (e.g. a developer&#8217;s laptop)<br \/>\n[2] General Purpose (e.g. a web or application server)<br \/>\n[3] Dedicated (a server running only Postgres Plus)<br \/>\nPlease choose an option [2] : 2<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nDynatune Dynamic Tuning:<br \/>\nWorkload Profile<\/p>\n<p>Please select the type of workload this server will be used for:<\/p>\n<p>[1] Transaction Processing (OLTP systems)<br \/>\n[2] General Purpose (OLTP and reporting workloads)<br \/>\n[3] Reporting (Complex queries or OLAP workloads)<br \/>\nPlease choose an option [1] : 2<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nAdvanced Configuration<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nPgBouncer Listening Port [6432]:<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nService Configuration<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">Autostart PgBouncer Service [Y\/n]: n\nAutostart pgAgent Service [Y\/n]: n\nUpdate Notification Service [Y\/n]: n<\/pre>\n<p>&nbsp;<\/p>\n<p>The Update Notification Service informs, downloads and installs whenever<br \/>\nsecurity patches and other updates are available for your Postgres Plus Advanced<br \/>\nServer installation.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nPre Installation Summary<\/p>\n<p>Following settings will be used for installation:<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">Installation Directory: \/opt\/PostgresPlus\n Data Directory: \/opt\/PostgresPlus\/9.4AS\/data\n WAL Directory: \/opt\/PostgresPlus\/9.4AS\/data\/pg_xlog\n Database Port: 5444\n Database Superuser: enterprisedb\n Operating System Account: enterprisedb\n Database Service: ppas-9.4\n PgBouncer Listening Port: 6432\nPress [Enter] to continue:<\/pre>\n<p>&nbsp;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nSetup is now ready to begin installing Postgres Plus Advanced Server on your<br \/>\ncomputer.<\/p>\n<p>Do you want to continue? [Y\/n]: Y<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nPlease wait while Setup installs Postgres Plus Advanced Server on your computer.<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">Installing Postgres Plus Advanced Server\n 0% ______________ 50% ______________ 100%\n ########################################\n Installing Database Server ...\n Installing pgAgent ...\n Installing Connectors ...\n Installing Migration Toolkit ...\n Installing EDB*Plus ...\n Installing Infinite Cache ...\n Installing Postgres Enterprise Manager Client ...\n Installing Slony Replication ...\n Installing pgpool-II ...\n Installing pgpool-II Extensions ...\n Installing PgBouncer ...\n Installing StackBuilder Plus ...\n #<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nSetup has finished installing Postgres Plus Advanced Server on your computer.<\/p>\n<p>done.<\/p>\n<h3>Using the standalone installer in unattended mode<\/h3>\n<p>Another option is to use the unattended mode by providing all the parameters on the command line or by creating a configuration file. This is an example for providing the parameters on the command line. Most of the parameters can be skipped and the default is applied:<br \/>\nppasmeta-9.4.1.3-linux-x64\/ppasmeta-9.4.1.3-linux-x64.run &#8211;mode unattended<br \/>\n&#8211;enable-components dbserver,connectors,infinitecache,edbmtk,pem_client,<br \/>\npgpool,pgpoolextension,edbplus,replication,pgbouncer<br \/>\n&#8211;installer-language en &#8211;superaccount enterprisedb<br \/>\n&#8211;servicename ppas-9.4 &#8211;serviceaccount enterprisedb<br \/>\n&#8211;prefix \/opt\/PostgresPlus &#8211;datadir \/opt\/PostgresPlus\/9.4AS\/data<br \/>\n&#8211;xlogdir \/opt\/PostgresPlus\/9.4AS\/data\/pg_xlog<br \/>\n&#8211;databasemode oracle &#8211;superpassword enterprisedb<br \/>\n&#8211;webusername document.write([&#8216;xx.xx&#8217;,&#8217;xx.xxx&#8217;].join(&#8216;@&#8217;)) &#8211;webpassword xxxxx<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">Installing Database Server ...\n Installing pgAgent ...\n Installing Connectors ...\n Installing Migration Toolkit ...\n Installing EDB*Plus ...\n Installing Infinite Cache ...\n Installing Postgres Enterprise Manager Client ...\n Installing Slony Replication ...\n Installing pgpool-II ...\n Installing pgpool-II Extensions ...\n Installing PgBouncer ...\n Installing StackBuilder Plus ...X11 connection rejected because of wrong authentication.<\/pre>\n<p>Done. No matter which installation method was chosen the result is that ppas is installed and the database cluster is initialized. You might check the processes:<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\"># ps -ef | grep postgres\n enterpr+ 12759 1 0 12:03 ? 00:00:00 \/opt\/PostgresPlus\/9.4AS\/bin\/edb-postgres -D \/opt\/PostgresPlus\/9.4AS\/data\n enterpr+ 12760 12759 0 12:03 ? 00:00:00 postgres: logger process\n enterpr+ 12762 12759 0 12:03 ? 00:00:00 postgres: checkpointer process\n enterpr+ 12763 12759 0 12:03 ? 00:00:00 postgres: writer process\n enterpr+ 12764 12759 0 12:03 ? 00:00:00 postgres: wal writer process\n enterpr+ 12765 12759 0 12:03 ? 00:00:00 postgres: autovacuum launcher process\n enterpr+ 12766 12759 0 12:03 ? 00:00:00 postgres: stats collector process\n enterpr+ 12882 12759 0 12:03 ? 00:00:00 postgres: enterprisedb edb ::1[45984] idle\n root 13866 2619 0 12:15 pts\/0 00:00:00 grep --color=auto postgres<\/pre>\n<p>Or the services that got created:<br \/>\n# chkconfig &#8211;list | grep ppas<\/p>\n<p>Note: This output shows SysV services only and does not include native<br \/>\nsystemd services. SysV configuration data might be overridden by native<br \/>\nsystemd configuration.<\/p>\n<p>If you want to list systemd services use &#8216;systemctl list-unit-files&#8217;.<br \/>\nTo see services enabled on particular target use<br \/>\n&#8216;systemctl list-dependencies [target]&#8217;.<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">ppas-9.4 0:off 1:off 2:on 3:on 4:on 5:on 6:off\n ppas-agent-9.4 0:off 1:off 2:on 3:on 4:on 5:on 6:off\n ppas-infinitecache 0:off 1:off 2:off 3:off 4:off 5:off 6:off\n ppas-pgpool 0:off 1:off 2:off 3:off 4:off 5:off 6:off\n ppas-replication-9.4 0:off 1:off 2:off 3:off 4:off 5:off 6:off\n # ls -la \/etc\/init.d\/ppas*\n -rwxr-xr-x. 1 root root 3663 Apr 23 12:03 \/etc\/init.d\/ppas-9.4\n -rwxr-xr-x. 1 root root 2630 Apr 23 12:03 \/etc\/init.d\/ppas-agent-9.4\n -rwxr-xr-x. 1 root root 1924 Apr 23 12:04 \/etc\/init.d\/ppas-infinitecache\n -rwxr-xr-x. 1 root root 3035 Apr 23 12:04 \/etc\/init.d\/ppas-pgpool\n -rwxr-xr-x. 1 root root 3083 Apr 23 12:04 \/etc\/init.d\/ppas-replication-9.4<\/pre>\n<p>As the account which installed the software should not be used to work with the database lets create an os account for doing the connections to the database:<br \/>\n# groupadd postgres<br \/>\n# useradd -g postgres postgres<br \/>\n# passwd postgres<br \/>\nChanging password for user postgres.<br \/>\nNew password:<br \/>\nRetype new password:<br \/>\npasswd: all authentication tokens updated successfully.<\/p>\n<p>ppas brings an environment file for setting all the environment variables. Lets source that so it will be available for future logins:<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">su - postgres\n echo \". \/opt\/PostgresPlus\/9.4AS\/pgplus_env.sh\" &gt;&gt; .bash_profile\n Once you login to the postgres account the environment is there:\n $ env | grep PG\n PGPORT=5444\n PGDATABASE=edb\n PGLOCALEDIR=\/opt\/PostgresPlus\/9.4AS\/share\/locale\n PGDATA=\/opt\/PostgresPlus\/9.4AS\/data\n $ env | grep EDB\n EDBHOME=\/opt\/PostgresPlus\/9.4AS\n Now we are ready to login to the database:\n $ psql -U enterprisedb\n Password for user enterprisedb:\n psql.bin (9.4.1.3)\n Type \"help\" for help.\n edb=# l<\/pre>\n<p>List of databases<\/p>\n<pre class=\"brush: java; gutter: true; first-line: 1\">Name | Owner | Encoding | Collate | Ctype | ICU | Access privileges\n -----------+--------------+----------+-------------+-------------+-----+-------------------------------\n edb | enterprisedb | UTF8 | en_US.UTF-8 | en_US.UTF-8 | |\n postgres | enterprisedb | UTF8 | en_US.UTF-8 | en_US.UTF-8 | |\n template0 | enterprisedb | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | =c\/enterprisedb +\n | | | | | | enterprisedb=CTc\/enterprisedb\n template1 | enterprisedb | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | =c\/enterprisedb +\n | | | | | | enterprisedb=CTc\/enterprisedb\n (4 rows)<\/pre>\n<p>Mission completed. The next post will setup a backup and recovery server for backing up and restoring the ppas database cluster.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I did several posts around postgresql and postgres plus advanced server in the past. What is missing is a beginners guide on how to get postgres plus advanced server up and running including a solution for backup and recovery, high availability and monitoring. So I thought I&#8217;d write a guide on how to do that, [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":4581,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[198],"tags":[77],"type_dbi":[],"class_list":["post-4580","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-management","tag-postgresql"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>getting started with postgres plus advanced server (1) - setting up ppas - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"getting started with postgres plus advanced server (1) - setting up ppas\" \/>\n<meta property=\"og:description\" content=\"I did several posts around postgresql and postgres plus advanced server in the past. What is missing is a beginners guide on how to get postgres plus advanced server up and running including a solution for backup and recovery, high availability and monitoring. So I thought I&#8217;d write a guide on how to do that, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-18T07:10:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"220\" \/>\n\t<meta property=\"og:image:height\" content=\"137\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daniel Westermann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@westermanndanie\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Westermann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/\"},\"author\":{\"name\":\"Daniel Westermann\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66\"},\"headline\":\"getting started with postgres plus advanced server (1) &#8211; setting up ppas\",\"datePublished\":\"2015-05-18T07:10:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/\"},\"wordCount\":1054,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png\",\"keywords\":[\"PostgreSQL\"],\"articleSection\":[\"Database management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/\",\"name\":\"getting started with postgres plus advanced server (1) - setting up ppas - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png\",\"datePublished\":\"2015-05-18T07:10:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png\",\"width\":220,\"height\":137},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"getting started with postgres plus advanced server (1) &#8211; setting up ppas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66\",\"name\":\"Daniel Westermann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"caption\":\"Daniel Westermann\"},\"description\":\"Daniel Westermann is Principal Consultant and Technology Leader Open Infrastructure at dbi services. He has more than 15 years of experience in management, engineering and optimization of databases and infrastructures, especially on Oracle and PostgreSQL. Since the beginning of his career, he has specialized in Oracle Technologies and is Oracle Certified Professional 12c and Oracle Certified Expert RAC\/GridInfra. Over time, Daniel has become increasingly interested in open source technologies, becoming \u201cTechnology Leader Open Infrastructure\u201d and PostgreSQL expert. \u00a0Based on community or EnterpriseDB tools, he develops and installs complex high available solutions with PostgreSQL. He is also a certified PostgreSQL Plus 9.0 Professional and a Postgres Advanced Server 9.4 Professional. He is a regular speaker at PostgreSQL conferences in Switzerland and Europe. Today Daniel is also supporting our customers on AWS services such as AWS RDS, database migrations into the cloud, EC2 and automated infrastructure management with AWS SSM (System Manager). He is a certified AWS Solutions Architect Professional. Prior to dbi services, Daniel was Management System Engineer at LC SYSTEMS-Engineering AG in Basel. Before that, he worked as Oracle Developper &amp;\u00a0Project Manager at Delta Energy Solutions AG in Basel (today Powel AG). Daniel holds a diploma in Business Informatics (DHBW, Germany). His branch-related experience mainly covers the pharma industry, the financial sector, energy, lottery and telecommunications.\",\"sameAs\":[\"https:\/\/x.com\/westermanndanie\"],\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/daniel-westermann\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"getting started with postgres plus advanced server (1) - setting up ppas - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/","og_locale":"en_US","og_type":"article","og_title":"getting started with postgres plus advanced server (1) - setting up ppas","og_description":"I did several posts around postgresql and postgres plus advanced server in the past. What is missing is a beginners guide on how to get postgres plus advanced server up and running including a solution for backup and recovery, high availability and monitoring. So I thought I&#8217;d write a guide on how to do that, [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/","og_site_name":"dbi Blog","article_published_time":"2015-05-18T07:10:16+00:00","og_image":[{"width":220,"height":137,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png","type":"image\/png"}],"author":"Daniel Westermann","twitter_card":"summary_large_image","twitter_creator":"@westermanndanie","twitter_misc":{"Written by":"Daniel Westermann","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/"},"author":{"name":"Daniel Westermann","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66"},"headline":"getting started with postgres plus advanced server (1) &#8211; setting up ppas","datePublished":"2015-05-18T07:10:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/"},"wordCount":1054,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png","keywords":["PostgreSQL"],"articleSection":["Database management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/","url":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/","name":"getting started with postgres plus advanced server (1) - setting up ppas - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png","datePublished":"2015-05-18T07:10:16+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/ppas1.png","width":220,"height":137},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-postgres-plus-advanced-server-1-setting-up-ppas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"getting started with postgres plus advanced server (1) &#8211; setting up ppas"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66","name":"Daniel Westermann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","caption":"Daniel Westermann"},"description":"Daniel Westermann is Principal Consultant and Technology Leader Open Infrastructure at dbi services. He has more than 15 years of experience in management, engineering and optimization of databases and infrastructures, especially on Oracle and PostgreSQL. Since the beginning of his career, he has specialized in Oracle Technologies and is Oracle Certified Professional 12c and Oracle Certified Expert RAC\/GridInfra. Over time, Daniel has become increasingly interested in open source technologies, becoming \u201cTechnology Leader Open Infrastructure\u201d and PostgreSQL expert. \u00a0Based on community or EnterpriseDB tools, he develops and installs complex high available solutions with PostgreSQL. He is also a certified PostgreSQL Plus 9.0 Professional and a Postgres Advanced Server 9.4 Professional. He is a regular speaker at PostgreSQL conferences in Switzerland and Europe. Today Daniel is also supporting our customers on AWS services such as AWS RDS, database migrations into the cloud, EC2 and automated infrastructure management with AWS SSM (System Manager). He is a certified AWS Solutions Architect Professional. Prior to dbi services, Daniel was Management System Engineer at LC SYSTEMS-Engineering AG in Basel. Before that, he worked as Oracle Developper &amp;\u00a0Project Manager at Delta Energy Solutions AG in Basel (today Powel AG). Daniel holds a diploma in Business Informatics (DHBW, Germany). His branch-related experience mainly covers the pharma industry, the financial sector, energy, lottery and telecommunications.","sameAs":["https:\/\/x.com\/westermanndanie"],"url":"https:\/\/www.dbi-services.com\/blog\/author\/daniel-westermann\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/4580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=4580"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/4580\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/4581"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=4580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=4580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=4580"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=4580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}