The following sections explain how to configure the Inventory database for Oracle; in this setup, the Inventory database is not mounted with other Oracle databases.
To use ZfD 3.2 Inventory Database on Oracle 8i for Linux and Solaris, see Using the ZfD 3.2 Inventory Database on Oracle 8i for Linux and Solaris in Workstation Inventory in Administration. To upgrade the ZfD 3.2 Inventory Database on Oracle 8.1.x, see Upgrading the ZfD 3.2 Inventory Database on Oracle 8.1.x in Workstation Inventory in Administration.
You must manually install the Inventory database for Oracle on NetWare servers.
Prerequisites for configuring the database include the following:
To configure the database:
Extract the INVORACLE8INW.ZIP file from the \ZENWORKS\PRODUCTS\DATABASE\ORACLE directory in the ZfD 3.2 Program CD to any volume other than SYS: on the NetWare server.
After extraction, you will see the following list of system files and Database Space files in this directory.
Copy the MGMTDBO.NCF file from volume\ZFD3\ORACLE to the SYS:\SYSTEM directory on the database server.
where volume is the volume on which the .ZIP file was extracted.
Specify the site details of the database.
Copy the _DBINIT.SQL file from volume\ZFD3\ORACLE to the SYS:\SYSTEM directory on the database server.
where volume is the volume on which the .ZIP file was extracted.
Edit the following lines in the _DBINIT.SQL file to specify the site ID and site name for the database:
siteid:=site_ID;
siteName:='site_name';
where site_ID uniquely identifies the database and 'site_name' provides a description for the database site.
If you do not specify the site ID, the default values specified in the file apply.
Save the changes you make.
Create the Oracle Control file.
Edit the ALTERCTRL.SQL file located in volume\ZFD3\ORACLE to specify the path to which you have extracted the .ZIP file.
where volume is the volume on which the .ZIP file was extracted.
For example, modify the existing DATA:\ZFD3\ORACLE\DATABASE path to ORACLE:\ZFD3\ORACLE\DATABASE in ALTERCTRL.SQL.
In this .SQL file, modify the path for these parameters, if required.
startup nomount pfile=oracle:\zfd3\oracle\database\INIT.ORA
logfile group 1 'oracle:\zfd3\oracle\database\log1.ora' size 256K,
logfile group 2 'oracle:\zfd3\oracle\database\log2.ora' size 256K
datafile 'oracle:\zfd3\oracle\database\sys1.ora',
'oracle:\zfd3\oracle\database\rbs1.ora',
'oracle:\zfd3\oracle\database\cim1.ora',
'oracle:\zfd3\oracle\database\cim2.ora',
'oracle:\zfd3\oracle\database\cim3.ora',
'oracle:\zfd3\oracle\database\cim4.ora',
'oracle:\zfd3\oracle\database\cim5.ora',
'oracle:\zfd3\oracle\database\cim6.ora',
'oracle:\zfd3\oracle\database\cim7.ora',
'oracle:\zfd3\oracle\database\cim8.ora',
'oracle:\zfd3\oracle\database\cim9.ora',
'oracle:\zfd3\oracle\database\tmp1.ora'
Save the changes.
Edit the INIT.ORA file located in volume\ZFD3\ORACLE\DATABASE to specify the path to which you have extracted the .ZIP file.
where volume is the volume on which the .ZIP file was extracted.
Modify the path for the following parameters:
control_files=location_of_CTLl.ORA\CTL1.ORA
background_dump_dest=location_of_TRACE_dir\TRACE
user_dump_dest=location_of_TRACE_dir\TRACE
Save the changes.
To load Oracle, enter oraload.
To load the Oracle Server Manager, enter svrmgr31.
Connect as an administrator. For example, if the administrator's internal name is internal, enter connect internal/password_for_administrator at the Server Manager prompt.
Enter shutdown normal.
At the Server Manager prompt, enter @complete_path_of_alterctrl.sql\alterctrl.
You should see the window, which indicates that the database is mounted and loaded.
To exit the Server Manager, enter exit.
Copy volume\ZFD3\ORACLE\_START.SQL to SYS:\SYSTEM directory on the database server.
where volume is the volume on which the .ZIP file was extracted.
Load the Inventory database. At the database server console, enter mgmtdbo > type the password for the Database Administrator (DBA).
Initialize the database.
To load the Oracle Server Manager, enter svrmgr31.
To connect to the database, at the Server Manager prompt, enter connect mw_dba/novell.
At the Server Manager prompt, enter @sys:\system\_dbinit.sql. This command initializes the database.
To verify that the initialization was successful: at the Server Manager prompt, enter select getsiteid() from dual; to display the site ID of the database. To display the site name of the database, enter select * from zenworks.site;
At the Server Manager prompt, enter disconnect.
To exit the Server Manager, enter exit.
You must manually install the Inventory database for Oracle on Windows NT/2000 servers.
Prerequisites for configuring the database include the following:
To configure the database:
Extract the INVORACLE8INT.ZIP file from the \ZENWORKS\PRODUCTS\DATABASE\ORACLE directory located in the ZfD 3.2 Program CD to a drive, which preferably has NTFS.
After extraction, you will see the following list of system files and Database Space files in this directory:
Specify the site details of the database.
Edit the following lines in the _DBINIT.SQL file to specify the site ID and site name for the database.
siteid:=site_ID;
siteName:='site_name';
where site_ID uniquely identifies the database, and 'site_name' provides a description for the database site.
If you do not specify a site ID, the default values specified in the file apply.
Save the changes you make.
Create the Oracle Control file.
Edit the ALTERCTRL.SQL located in drive\ZFD3\ORACLE to specify the path strings to which you have extracted the file.
where drive is the drive on which the .ZIP file was extracted.
For example, modify the existing D:\ZFD3\ORACLE\DATABASE path to C:\ZFD3\ORACLE\DATABASE in ALTERCTRL.SQL.
In this .SQL file, modify the path for these parameters, if required.
startup nomount pfile=c:\zfd3\oracle\database\INIT.ORA
logfile group 1 'c:\zfd3\oracle\database\log1.ora' size 256K,
logfile group 2 'c:\zfd3\oracle\database\log2.ora' size 256K
datafile
'c:\zfd3\oracle\database\sys1.ora',
'c:\zfd3\oracle\database\rbs1.ora',
'c:\zfd3\oracle\database\cim1.ora',
'c:\zfd3\oracle\database\cim2.ora',
'c:\zfd3\oracle\database\cim3.ora',
'c:\zfd3\oracle\database\cim4.ora',
'c:\zfd3\oracle\database\cim5.ora',
'c:\zfd3\oracle\database\cim6.ora',
'c:\zfd3\oracle\database\cim7.ora',
'c:\zfd3\oracle\database\cim8.ora',
'c:\zfd3\oracle\database\cim9.ora',
'c:\zfd3\oracle\database\tmp1.ora'
Save the changes.
Edit the INIT.ORA located in drive\ZFD3\ORACLE\DATABASE.
where drive is the drive on which the .ZIP file was extracted.
Modify the path for the following parameters:
control_files=location_of_CTLl.ORA\CTL1.ORA
background_dump_dest=location_of_TRACE_dir\TRACE
user_dump_dest=location_of_TRACE_dir\TRACE
Save the changes.
Ensure that Oracle is loaded on the database server.
Load the Oracle Server Manager, click Start from the Windows taskbar > Run > enter svrmgrl.
Connect as an administrator. For example, if the administrator's internal name is internal, at the Server Manager prompt, enter connect internal/password_for_administrator.
Enter shutdown normal.
At the Server Manager prompt, enter @complete_path_of_alterctrl.sql\alterctrl.
You should see the window, which indicates that the database is mounted and loaded.
To exit the Server Manager, enter exit.
Copy drive\ZFD3\ORACLE\_START.SQL to the \ZFD3\ORACLE on the database server. where drive is the drive on which the .ZIP file was extracted.
Load the Inventory database: At the database server from the path where the MGMTDBO.BAT is located, enter mgmtdbo.
Type the password for the Database Administrator (DBA).
Initialize the database.
To load the Oracle Server Manager, enter svrmgrl. To connect to the database, enter connect mw_dba/novell at the Server Manager prompt.
To initialize the database, enter @complete_location_of_dbinit.sql\dbinit.sql at the Server Manager prompt
To verify that the initialization was successful, enter select getsiteid() from dual; at the Server Manager prompt.
To display the site ID of the database, enter select * from zenworks.site to display the site name of the database.
At the Server Manager prompt, enter disconnect.
To exit the Server Manager, enter exit.
The following sections explain the steps for configuring and running multiple Oracle* 8i database instances:
Prerequisites for configuring the database include the following:
To configure and run multiple Oracle database instances:
Unload Oracle. At the database server prompt, enter oraunld.
Invoke the Net8 configuration utility. At the database server prompt, run easycfg.ncf to load the Net8 Easy configuration window.
Define a unique Oracle instance.
Click Config > Listener > Database > Add.
Assign values for Database Instance and Database Name in the Adding Instances Address window.
For example, assign Database Instance=zfd3 and Database Name=mgmtdb. In this configuration, the database instance is zfd3. You can specify any database instance name. The Database Domain field should be left blank.
Click Accept > Save.
Configure the Listener for IPC. To run an Oracle system, the IPC and TCP addresses should be already be configured.
Create an IPC alias.
Click Config > Database Alias. The window will list the aliases for IPC, SPX, TCP, and others. Click Add to add an alias name for the new instance.
Enter the following details:
Click Accept > Save.
To verify the configured alias name in the list window: Click Config > Database Alias > select the newly created alias > click View.
View the properties of the database alias. Ensure that the properties are correct.If the property settings are incorrect, delete the alias (click Delete) and repeat the step 5.
Exit the EasyCfg tool. Click Config > Exit.
Create a password file for logging as Internal user for this instance. Enter load orapwd81 file=oracle_volume:oracle_home\database\pwddatabase_instance.ora password=password entries=2 where oracle_volume is the NetWare volume name of your Oracle installation, PWDdatabase_instance.ORA is the password file name, and password is any password that you specify.
For example, load orapwd81 file=oracle:\orahome1\database\pwdzfd3.ora password=mgmtdb entries=2. This password file will be created in the oracle_volume:\DATABASE directory. Ensure that the file exists in the directory.
Load the Oracle NLMTM software. At the database server prompt, enter oraload.
To set the newly created ZfD instance, load the Oracle Server Manager. At the database server prompt, enter svrmgr31.
Enter the following commands: set instance servername-databaseinstance. For example, set instance austr-zfd3-ipc. This displays that the newly created ZfD3 instance is started.
Enter connect internal/password where password is the password created in Step 7.
Mount the Inventory database. Extract the INVORACLE8INW.ZIP file from the \ZENWORKS\PRODUCTS\DATABASE\ORACLE directory in the ZfD 3.2 Program CD to any volume other than SYS: on the NetWare server. After extraction, you will see the following list of system files and Database Space files in this directory.
Copy the MGMTDBO.NCF file from volume\ZFD3\ORACLE to the SYS:\SYSTEM directory on the database server, where volume is the volume on which the .ZIP file was extracted.
Specify the site details of the database. Copy the _DBINIT.SQL file from volume\ZFD3\ORACLE to the SYS:\SYSTEM directory on the database server, where volume is the volume on which the .ZIP file was extracted.
Edit the following lines in the _DBINIT.SQL file to specify the site ID and site name for the database:
siteid:=site_ID;
sitename:='site_name';
where site_ID uniquely identifies the database and 'site_name' provides a description for the database site. If you do not specify the site ID, the default values specified in the file apply. Save the changes you make.
Create the Oracle Control file. Edit the ALTERCTRL.SQL file located in volume\ZFD3\ORACLE to specify the path to which you have extracted the .ZIP file, where volume is the volume on which the .ZIP file was extracted. For example, modify the existing DATA:\ZFD3\ORACLE\DATABASE path to ORACLE:\ZFD3\ORACLE\DATABASE in ALTERCTRL.SQL. In this .SQL file, modify the path for these parameters, if required.
startup nomount pfile=oracle:\zfd3\oracle\database\INIT.ORA
logfile group 1 'oracle:\zfd3\oracle\database\log1.ora' size 256K,
logfile group 2 'oracle:\zfd3\oracle\database\log2.ora' size 256K,
datafile'oracle:\zfd3\oracle\database\sys1.ora'
'oracle:\zfd3\oracle\database\rbs1.ora';
'oracle:\zfd3\oracle\database\cim1.ora';
'oracle:\zfd3\oracle\database\cim2.ora';
'oracle:\zfd3\oracle\database\cim3.ora';
'oracle:\zfd3\oracle\database\cim4.ora';
'oracle:\zfd3\oracle\database\cim5.ora';
'oracle:\zfd3\oracle\database\cim6.ora';
'oracle:\zfd3\oracle\database\cim7.ora';
'oracle:\zfd3\oracle\database\cim8.ora';
'oracle:\zfd3\oracle\database\cim9.ora';
'oracle:\zfd3\oracle\database\tmp1.ora';
Save the changes.
Edit the INIT.ORA file located in volume\ZFD3\ORACLE\DATABASE to specify the path to which you have extracted the .ZIP file.
where volume is the volume on which the .ZIP file was extracted.
Modify the path for the following parameters:
control_files=location_of_CTL1.ORA\CTL1.ORA
background_dump_dest=location_of_TRACE_dir\TRACE
user_dump_dest=location_of_TRACE_dir\TRACE
Save the changes.
At the Server Manager prompt, enter @complete_path_of_ alterctrl.sql\alterctrl
You should see the window, which indicates that the database is mounted and loaded.
Exit the Server Manager. Enter exit.
Modify the _START.SQL file located in SYS:\SYSTEM. Enter the following lines in the file:
set instance servername-databaseinstance-IPC
shutdown normal
Create the Database object. In ConsoleOne, right-click a location in the tree for the Database object > click New > Object > ZENworks Database > OK.
Type a name for the Database object > click OK
Configure the Database Server options of the Database object. In ConsoleOne, right-click the Database object > click Properties > click ZENworks Database.
Browse for the DN of the server or type the IP address of the server.
Type the values for the following options:
Click OK.
Ensure that the JDBC Driver properties are correct for your database configuration. In ConsoleOne, right-click the Database object > click Properties > Jdbc Driver Information > Populate Fields with Default Values for an Oracle Database > Populate Now.
The database settings for Oracle are:
Driver: oracle.jdbc.driver.OracleDriver
Protocol: jdbc:
SubProtocol: oracle:
SubName: thin:@
Port: 1521
SID Service Name (Service ID of the Oracle database): orcl. The value for the SID is the same as assigned for the Database Instance. See Step 5.
Click OK.
At the database server prompt, enter mgmtdbo > enter the password created in Step 7.
Start other Oracle database instances. Run the Oracle Server Manager, set the applications instance, and mount the database.
If you are loading multiple databases in separate Oracle instances, then each database reserves a separate Oracle SGA memory, where Oracle keeps all the database resources. In such environments, you should increase the amount of memory on the server. Refer to the documentation provided by Oracle.
Prerequisites for configuring the database include the following:
To configure and run Oracle instances:
At the database server, run the Oracle Database Configuration Assistant. From the desktop Start menu, click Programs > Oracle > Database Administration > Oracle Database Configuration Assistant.
Click Create a Database > Next > Typical > Next > Copy Existing Database Files from the CD > Next.
Enter the following details:
Click Finish.
This allows for Oracle database creation. This process takes a significant amount of time. Ensure that the OracleServiceMGMTDB service is created and started.
Load the Inventory database.
Run the Oracle Server Manager. From the desktop menu, click Start > Run > SVRMGRL. Enter the following commands:
set instance mgmtdb
connect internal/password_for_administrator
Mount the Inventory database.
Extract the INVORACLE8INT.ZIP file from the \ZENWORKS\PRODUCTS\DATABASE\ORACLE directory located in the ZfD 3.2 Program CD to a drive, which preferably has NTFS.
After extraction, you will see the following list of system files and Database Space files in this directory:
Specify the site details of the database.
Edit the following lines in the _DBINIT.SQL file to specify the site ID and site name for the database.
siteid:=site_ID;
sitename:='site_name';
where site_ID uniquely identifies the database, and ' site_name' provides a description for the database site. If you do not specify a site ID, the default values specified in the file apply.
Save the changes you make.
Create the Oracle Control file.
Edit the ALTERCTRL.SQL file located in drive\ZFD3\ORACLE to specify the path strings to which you have extracted the file, where drive is the drive on which the .ZIP file was extracted.
For example, modify the existing D:\ZFD3\ORACLE\DATABASE path to C:\ZFD3\ORACLE\DATABASE in ALTERCTRL.SQL.
In this .SQL file, modify the path for these parameters, if required.
startup nomount pfile=c:\zfd3\oracle\database\INIT.ORA
logfile group 1 'c:\zfd3\oracle\database\log1.ora' size 256K,
logfile group 2 'c:\zfd3\oracle\database\log2.ora' size 256K datafile
'c:\zfd3\oracle\database\sys1.ora',
'c:\zfd3\oracle\database\rbs1.ora',
'c:\zfd3\oracle\database\cim1.ora',
'c:\zfd3\oracle\database\cim2.ora',
'c:\zfd3\oracle\database\cim3.ora',
'c:\zfd3\oracle\database\cim4.ora',
'c:\zfd3\oracle\database\cim5.ora',
'c:\zfd3\oracle\database\cim6.ora',
'c:\zfd3\oracle\database\cim7.ora',
'c:\zfd3\oracle\database\cim8.ora',
'c:\zfd3\oracle\database\cim9.ora',
'c:\zfd3\oracle\database\tmp1.ora',
Save the changes.
Edit the INIT.ORA located in drive\ZFD3\ORACLE\DATABASE, where drive is the drive on which the .ZIP file was extracted.
Modify the path for the following parameters:
control_files=location_of_CTLl.ORA\CTL1.ORA
background_dump_dest=location_of_TRACE_dir\TRACE
user_dump_dest=location_of_TRACE_dir\TRACE
Save the changes.
Ensure that Oracle is loaded on the database server.
Load the Oracle Server Manager. Click Start from the Windows taskbar > Run > enter svrmgrl.
Connect as an administrator. For example, if the administrator's internal name is internal, enter connect internal/password_for_ administrator at the Server Manager prompt.
Enter shutdown normal.
At the Server Manager prompt, enter @complete_path_of_alterctrl.sql\alterctrl.
You should see the window that indicates that the database is mounted and loaded.
Enter exit to exit the Server Manager.
Copy drive\ZFD3\ORACLE\_START.SQL to the \ZFD3\ORACLE directory on the database server, where drive is the drive on which the .ZIP file was extracted. Modify the _START.SQL file. Enter the following line in the file:
set instance mgmtdb
shutdown normal
Modify the properties of the database object. Create the Database object. In ConsoleOne, right-click a location in the tree for the Database object > click New > Object > ZENworks Database > OK.
Type a name for the Database object > click OK.
In ConsoleOne, right-click the Database object > click Properties > ZENworks Database.
Browse for the DN of the server or type the IP address of the server.
Type the values for the following options:
Click OK.
Ensure that the JDBC Driver properties are correct as per your database configuration. In ConsoleOne, right-click the Database object > click Properties > Jdbc Driver Information > Populate Fields with Default Values for an Oracle Database > click Populate Now.
The database settings for Oracle are:
Driver: oracle.jdbc.driver.OracleDriver
Protocol: jdbc:
SubProtocol: oracle:
SubName: thin:@
Port: 1521
SID Service Name (Service ID of the Oracle database): mgmtdb. The value for the SID is the same as assigned for the Database Instance. See Step 5.
At the database server console, from the path where the MGMTDBO.BAT(\ZFD3\ORACLE) is located, enter mgmtdbo > enter the password for the Database Administrator (DBA).
Start other Oracle database instances. Run the Oracle Server Manager, set the applications instance, and mount the database.
If you are loading multiple databases in separate Oracle instances, then each database reserves a separate Oracle SGA memory, where Oracle keeps all the database resources. In such environments, you should increase the amount of memory on the server. Refer to the documentation provided by Oracle.
On NetWare servers, the MGMTDBO.NCF file in the SYS:\SYSTEM directory loads the Inventory database, MGMTDB (db_name), which is maintained in Oracle.
To load the database:
Enter mgmtdbo, at the server console > type the password for the Database Administrator (DBA).
To load the Inventory database, MGMTDB (db_name) on a Windows NT/2000 server:
Enter mgmtdbo at the database server console, from the path where the MGMTDBO.BAT(\ZFD3\ORACLE) is located > enter the password for the Database Administrator (DBA).