3.2.1 Specifying initdb Options in the Service Configuration File

Table of Contents Previous Next


3 Using a Package Manager to Install Advanced Server : 3.2 Configuring a Package Installation : 3.2.1 Specifying initdb Options in the Service Configuration File

By default, the INITDBOPTS variable is commented out in the service configuration file; unless modified, when you run the service startup script, the new cluster will be created in a mode compatible with Oracle databases. Clusters created in this mode will contain a database named EDB, and have a database superuser named enterprisedb
To create a new cluster in PostgreSQL mode, remove the pound sign (#) in front of the INITDBOPTS variable, enabling the "--no-redwood-compat" option. Clusters created in PostgreSQL mode will contain a database named postgres, and have a database superuser named enterprisedb.
You may also specify multiple initdb options. For example, the following statement:
Creates a database cluster (without compatibility features for Oracle) that contains a database named postgres that is owned by a user named alice; the cluster uses UTF-8 encoding.

3 Using a Package Manager to Install Advanced Server : 3.2 Configuring a Package Installation : 3.2.1 Specifying initdb Options in the Service Configuration File

Table of Contents Previous Next