To perform an installation using the graphical installation wizard on a Windows system, you must have administrator privileges. To start the installation wizard, assume administrator privileges, and double-click the ppasmeta-9.5.x.x-windows executable file.
To install Advanced Server on some versions of Windows, you may be required to right click on the installer file and select Run as Administrator from the context menu to invoke the installer with Administrator privileges.The wizard opens a Language Selection popup; select an installation language from the drop-down listbox and click OK to continue. If you do not have Java installed on your system, the installer will ask you to confirm that you wish to continue the installation without installing Java based components; click Yes to continue to the Setup window (shown in Figure 4.2):Click Next to continue. The EnterpriseDB License Agreement (Figure 4.3) opens.Carefully review the license agreement before highlighting the appropriate radio button; click Next to continue.The User Authentication window opens, as shown in Figure 4.4.Before continuing, you must provide the email address and password associated with your EnterpriseDB user account. Registration is free; if you do not have an EnterpriseDB user account, click the link provided to open a web browser, and supply your user information.Enter the email address of a registered account in the Email field, and the corresponding password in the Password field, and click Next to continue.The Installation Directory window opens, as shown in Figure 4.5.You can accept the default installation location, and click Next to continue, or optionally click the File Browser button to open the Browse For Folder dialog (shown in Figure 4.6) to choose an alternate installation directory.Figure 4.6 — The Browse For Folder dialogUse the tree control displayed on the Browse For Folder dialog to navigate to an alternate installation directory, or create a new installation directory by selecting the Make New Folder button, and entering a name for the new folder.After selecting an alternate installation directory, click OK to continue. When you return to the Installation Directory window, click Next to open the Select Components window.Figure 4.7 — The Select Components windowThe Select Components window (shown in Figure 4.7) contains a list of the optional components that you can install with the Advanced Server installation wizard. Note that if you do not have Java installed on your system, those components that require Java are disabled and will not be installed. You can omit a module from the Advanced Server installation by de-selecting the box next to the components name.Select the Database Server option to install Advanced Server 9.5.Select the Connectors option to install the client connector API’s for JDBC, .NET, OCI and ODBC. The client connectors facilitate application connectivity for Advanced Server.If you have Java installed on your system, you can use the Migration Toolkit option to install Migration Toolkit. Migration Toolkit is a command line migration utility that facilitates migration from MySQL, Oracle, Microsoft SQL Server and Sybase databases.See the EDB Postgres (Postgres Plus) Migration Guide for more information about Migration Toolkit, available from the EnterpriseDB website at:Select the Postgres Enterprise Manager Client option to install the PEM Client application. The PEM Client provides a powerful graphical interface for database management and monitoring.If you have Java installed on your system, you can select the EDB*Plus option to install EDB*Plus. EDB*Plus is the Advanced Server SQL command line interface that offers compatibility with Oracle’s SQL Plus commands.Check the box next to Slony Replication to specify that Slony-I should be included in the installation process. Slony-I facilitates master-standby replication suited for large databases with a limited number of standby systems.PgBouncer is a lightweight connection pooling utility for Advanced Server. Connection pooling can dramatically reduce processing time and resources for systems maintaining client connections to one or more databases.The StackBuilder Plus package manager is a graphical tool that can easily download and add any omitted modules (and the resulting dependencies) after the installation is complete. StackBuilder Plus is included in the Advanced Server installation. See for more information about StackBuilder Plus.After adjusting the list of modules or accepting the default and installing all modules, click Next to open the Data Directory window (shown in Figure 4.8).You can accept the default location for the data files, or use the File Browser button to open the Browse For Folder dialog.The default location of the Advanced Server Write-Ahead Log Directory is C:\Program Files\PostgresPlus\9.5AS\data\pg_xlog.Advanced Server uses write-ahead logs to help ensure transaction safety and speed transaction processing; when you make a change to a table, the change is stored in shared memory and a record of the change is written to the write-ahead log. When you do a COMMIT, Advance Server writes contents of the write-ahead log to disk.Accept the default file locations, or specify alternate locations with the file selector button; click Next to continue to the Configuration Mode window (shown in Figure 4.9).Use the drop-down listbox on the Configuration Mode window to choose a server dialect. The server dialect specifies the compatibility features supported by Advanced Server.By default, Advance Server installs in Compatible with Oracle mode; you can choose between Compatible with Oracle and Compatible with PostgreSQL installation modes.If you select Compatible with Oracle on the Configuration Mode dialog, the installation will include the following features:
• Support for Oracle-styled concatenation rules (if you concatenate a string value with a NULL value, the returned value is the value of the string).
• Schemas (dbo and sys) compatible with Oracle databases added to the SEARCH_PATH.
Functionality Compatible with Oracle Databases A partial implementation that provides support for DBMS_SESSION.SET_ROLE. This is not a comprehensive list of the compatibility features for Oracle included when Advanced Server is installed in Compatible with Oracle mode; more information about Advanced Server is found in the Database Compatibility for Oracle Developer’s Guide, available from the EnterpriseDB website at:If you choose to install in Compatible with Oracle mode, the Advanced Server superuser name is enterprisedb.When installed in Compatible with PostgreSQL mode, Advanced Server exhibits complete compatibility with PostgreSQL version 9.5.If you choose to install in Compatible with PostgreSQL mode, the Advanced Server superuser name is postgres.After specifying a configuration mode, click Next to continue to the Password window (shown in Figure 4.10).Figure 4.10 — The Password window.Advanced Server uses the password specified on the Password window for the database superuser and pgAgent service. The specified password must conform to any security policies existing on the Advanced Server host.After entering a password in the Password field, and confirming the password in the Retype Password field, click Next to continue.The Additional Configuration window opens (shown in Figure 4.11).Use the fields on the Additional Configuration window to specify installation details:
• The Port field specifies the port number that Advanced Server should listen to for connection requests from client applications.
• If the Locale field is set to [Default Locale], Advanced Server uses the system locale as the working locale. Use the drop-down listbox next to Locale to specify an alternate locale for Advanced Server.
• Check the box next to Install sample tables and procedures to instruct the installation wizard to install the corresponding sample data for the server dialect specified on the Compatibility Mode window.After verifying the information on the Additional Configuration window, click Next to open the Dynatune Dynamic Tuning: Server Utilization window (shown in Figure 4.12).The graphical installation wizard facilitates performance tuning via the Dynatune Dynamic Tuning feature. Dynatune functionality allows Advanced Server to make optimal usage of the system resources available on the host machine on which it is installed.The edb_dynatune configuration parameter determines how Advanced Server allocates system resources. Use the radio buttons on the Server Utilization window to set the initial value of the edb_dynatune configuration parameter:
• Select Development to set the value of edb_dynatune to 33.A low value dedicates the least amount of the host machine’s resources to the database server. This is a good choice for a development machine.
• Select General Purpose to set the value of edb_dynatune to 66.A mid-range value dedicates a moderate amount of system resources to the database server. This would be a good setting for an application server with a fixed number of applications running on the same host as Advanced Server.
• Select Dedicated to set the value of edb_dynatune to 100.A high value dedicates most of the system resources to the database server. This is a good choice for a host machine that is dedicated to running Advanced Server.After the installation is complete, you can adjust the value of edb_dynatune by editing the postgresql.conf file. After editing the postgresql.conf file, you must restart the server for the changes to take effect.Select the appropriate setting for your system, and click Next to continue to the Dynatune Dynamic Tuning: Workload Profile window (shown in Figure 4.13).Use the radio buttons on the Workload Profile window to specify the initial value of the edb_dynatune_profile configuration parameter. The edb_dynatune_profile parameter controls performance-tuning aspects based on the type of work that the server performs.
• Select Transaction Processing (OLTP systems) to specify an edb_dynatune_profile value of oltp.
• Select General Purpose (OLTP and reporting workloads) to specify an edb_dynatune_profile value of mixed.
• Select Reporting (Complex queries or OLAP workloads) to specify an edb_dynatune_profile value of reporting.After the installation is complete, you can adjust the value of edb_dynatune_profile by editing the postgresql.conf file. After editing the postgresql.conf file, you must restart the server for the changes to take effect.For more information about edb_dynatune and other performance-related topics, see the EDB Postgres (Postgres Plus) Enterprise Edition Guide available from the EnterpriseDB website at:Click Next to continue. The Advanced Configuration window (shown in Figure 4.14) opens.PgBouncer is a lightweight connection pooling utility for Advanced Server. Connection pooling can dramatically reduce processing time and resources for systems maintaining client connections to one or more databases. By default, Advanced Server expects PgBouncer to listen on port 6432.Please note that the pgbouncer program stores a list of users and passwords in clear-text form in the following file:By default, the file is located in a directory that is accessible only to the cluster owner (by default, enterprisedb), but administrators should take note of the file and maintain permissions in a manner that secures the file from un-trusted users.pgAgent is a job scheduling agent for Postgres, capable of running multi-step batch/shell and SQL tasks on complex schedules. pgAgent also provides background support for the DBMS_JOB built-in package that is compatible with Oracle databases.When enabled, the Update Notification Service notifies you of any new updates and security patches available for your installation of Advanced Server.By default, Advanced Server is configured to start the the pgBouncer, pgAgent and Update Notification services when the system boots; clear applicable Autostart checkboxes, or accept the defaults, and click Next to continue.The Pre Installation Summary opens as shown in Figure 4.15.The Pre Installation Summary provides an overview of the options specified during the Setup process. Review the options before clicking Next; use the Back button to navigate back through the dialogs to modify installation options.The Ready to Install window confirms that the installer has the information it needs about your configuration preferences to install Advanced Server. Click Next to continue.The installation wizard confirms the installation progress of Advanced Server via a series of progress bars (see Figure 4.16).As each supporting module is unpacked and installed, the module’s installation is confirmed with a popup dialog (see Figure 4.17).Before the installation wizard completes the Advanced Server installation, it offers to Launch Stack Builder Plus at exit (see Figure 4.18).You can optionally clear the StackBuilder Plus checkbox and click Finish to complete the Advanced Server installation or accept the default and proceed to StackBuilder Plus.The StackBuilder Plus utility provides a graphical interface that downloads and installs applications and drivers that work with Advanced Server. You can invoke StackBuilder Plus at installation time or (after the installation completes) through the Advanced Server 9.5 menu. For more information about StackBuilder Plus, see , Using StackBuilder Plus.