This section provides instructions for installing the ZENworks database by running the ZENworks installation program on the database server. This method is required if you are using a remote OEM PostgreSQL database. For other databases, this method is useful if your ZENworks administrator and database administrator are not the same person.You can also install your external ZENworks database when you install the ZENworks Primary Server software on the target Linux server. If you want to use this method, skip this section and go to Section 6.0, Adding a New Linux Primary Server.
Ensure that the server where you plan to install the external database fulfills the requirements in Database Requirements and Prerequisites for External Databases.
On the server where you want to install the external database, insert the ZENworks installation DVD. If the DVD autoruns the database installation program, exit the program.
Run the following command on the external database server:
sh /media/cdrom/setup.sh -c
This provides additional options that you do not have when installing the Primary Server, especially if you want to make your database a remote database. You can view the SQL files generating the ZENworks database, create access users, view creation commands (PostgreSQL only), and so on. Only GUI installation is available for installing ZENworks and audit database instances using the -c option.
or
If ZENworks has already been installed on a device, and if you want to use the device to configure another instance of the ZENworks database (on the same device or on another device) by using the external database installation program, run the following command:
mounted_DVD_drive/setup.sh -c --zcminstall
Using the sh command resolves rights issues.
On the Select ZENworks Database page, select one of the following:
Select ZENworks Database
Select Audit Database
Select both ZENworks Database and Audit Database
NOTE:When the ZENworks Database and Audit Database option is selected, you need to create the ZENworks database first and then create the audit database.
The supported combinations of ZENworks and Audit database are shown below:
ZENworks Database |
Audit Database |
---|---|
Embedded PostgreSQL |
|
External PostgreSQL |
|
Microsoft SQL Server |
Microsoft SQL Server |
Oracle |
Oracle |
On the Select Database type page, select one of the following, then click Next:
PostgreSQL: Sets up an existing PostgreSQL database for writing ZENworks information to it.
Microsoft SQL Server: Creates a ZENworks database on a Microsoft SQL Server.
Oracle: Specifies a user schema that you can use to set up an external Oracle database schema for use with ZENworks.
IMPORTANT:The server hosting the database must have time synchronization with all of the Primary Servers in the Management Zone.
Refer to the following information for details on the installation data that you need to know (you can also click the Help button for similar information):
Installation Information |
Explanation |
---|---|
PostgreSQL Server Configuration |
|
PostgreSQL Access Configuration |
This server must have a PostgreSQL database installed. Defaults are provided for some of this information, which can be changed as necessary.
|
Review Database Information |
Review the database configuration information. The database driver information is automatically detected by the ZENworks Database installer. |
Review SQL Scripts |
Review the SQL scripts to be executed during the creation of the database. |
Review Database Creation Commands |
Review the database commands used to create the database. |
Installation Information |
Explanation |
---|---|
External Database Server Configuration |
The database server must have an MS SQL database installed. Defaults are provided for some of this information, which can be changed as necessary:
|
|
|
External Database Configuration > Database Location (applicable only for the new database) |
Specify the path of the existing MS SQL database file on the SQL server. By default, it is c:\database. NOTE:Ensure that the specified path exists on the device hosting the database before the installation starts. |
Review Database Information |
Review the database configuration information. |
Review SQL Scripts |
Review the SQL scripts to be executed during the creation of the database. You can only view the scripts. |
Installation Information |
Explanation |
---|---|
Oracle User Schema Options |
During ZENworks installation, you can select to create a new user schema or specify an existing schema that resides on a server in your network. To use an existing user schema, the user schema must be created separately by using the ZENworks database installation method (setup.sh -c). ZENworks requires tablespaces to be created on the Oracle database. A tablespace can be created either by ZENworks or Database Administrator. For an existing user schema, specify the information for the tablespace that is already created by using ZENworks database installation method. |
Oracle Server information |
The database server must have an Oracle database installed. Defaults are provided for some of this information, which can be changed as necessary.
|
Oracle Administrator (applicable only for the new user schema) |
|
Oracle Access User |
|
Review Database Information |
Review the database configuration information. |
Review SQL Scripts |
Review the SQL scripts to be executed during the creation of the database. |