- Installation Overview
- Installation Requirements
- Preparing for Installation
- Preparing the Oracle External Database
- Installing the Prime Network Gateway and Units Using the Installation Wizard
- Installing the Prime Network Gateway Using CLI
- Installing Prime Network Units
- Installing the Vision, Events, and Administration Clients
- Installing the Prime Network Integration Layer
- Upgrading and Rolling Back Prime Network
- Uninstalling Prime Network
- Next Steps
- Using Chinese Characters in Business Tags
- Using an External Database: General Guidelines
- Creating an External Oracle Database
- Configuring the External Database
- Configuring the cursor_sharing System Parameter
- Retaining Partitioning Storage Behavior
- Configuring the job_queue_processes System Parameter
- Configuring the audit_trail System Parameter
- Disabling the Recycle Bin Option
- Setting the open_cursors Parameter
- Disabling Automatic Maintenance Jobs
- Changing Database Ports
- Configuring the Database Size and Disk Structure
- Configuring Oracle to Start Automatically When PrimeNetwork Restarts
- Preventing Passwords in the Default Profile from Expiring
- Maintaining the External Database
Preparing the Oracle External Database
This chapter describes how to configure an external Oracle database for use with Prime Network. Make sure you have the most recent version of the Oracle software documentation (see the Oracle Corporation website).
Using an External Database: General Guidelines
– The external Oracle server can be installed on the Prime Network gateway or on any other remote workstation.
– Preallocate the database storage by creating all required data files to their full sizes in advance. With the exception of pnuser and pnuser _admin, Prime Network tablespace data files are generated in 1 GB sizes with autoextend set to 256 MB and no size limit. (The data file can grow to 32 GB.)
– If the Oracle server is installed on the Prime Network gateway, no Oracle services can be installed on port 2100. If an Oracle listener is installed on port 2100, you must disable it or change the port number (see Table 4-2 ). By default, this port is used by the Oracle XML DB service.
– The mount directory should be available in both the active and standby nodes. If the mount folder directory does not exists in the standby node, then the installation fails.
– For deployment information and recommendations, contact your Cisco account representative.
– Prime Network does not manage the starting and stopping of Oracle processes for an external database. The database administrator is responsible for automatically restarting Oracle processes in the event of a power failure.
– If your system is configured for gateway high availability, start and stop Prime Network and Oracle using CLI commands. Stopping the applications using the regular application commands (without the awareness of the cluster software) can cause a failover.
– If you restart Oracle, you must also restart AVM 25 on both the gateway and units.
– The Oracle user should be called oracle, and it should be part of a group called dba.
– The database username and password that are related to the Prime Network application are created automatically during installation.
Creating an External Oracle Database
The database instance installation can be performed as part of the Oracle installation or separately using the Oracle database configuration assistant (DBCA) utility. This sect ion describes how to create an Oracle database instance using the DBCA utility (in ORACLEHOME/bin).
Download the Oracle patches from http://metalink.oracle.com.
Note After installing an Oracle patch, you must change the permissions for the newly installed files to enable all OS users to use Oracle on the workstation. You can do this by running the script ORACLEHOME\install\changePerm.sh.
The Prime Network database size is determined by the usage patterns and the expected load in your deployment. Contact your Cisco account representative for assistance in determining your database load profile and calculating your database memory and storage size requirements.
Prime Network provides sizing estimates for the following usage profiles, which vary according to the maximum expected rate of actionable events per second that your deployment can support:
- Up to 250—Represents a high-scale production environment with a maximum supported rate of database operations, including up to 250 actionable events per second, a maximum amount of services, and the highest rate of configuration archive and provisioning operations.
- Up to 200—Represents a high-scale production environment with a maximum supported rate of database operations, including up to 200 actionable events per second, a maximum amount of services, and the highest rate of configuration archive and provisioning operations.
- Up to 100—Represents a high-scale production environment with a maximum supported rate of database operations, including up to 100 actionable events per second, a maximum amount of services, and the highest rate of configuration archive and provisioning operations.
- Up to 50—Represents a medium- to high-scale production environment with a medium rate of database operations, including up to 50 actionable events per second, a medium amount of services, and a medium rate of configuration archive and provisioning operations.
- Up to 20—Represents a medium- to small-scale production environment with a low rate of database operations, including up to 20 actionable events per second, a small amount of services, and a low rate of configuration archive and provisioning operations.
- Up to 5—Represents a small environment with a low rate of database operations, including up to 5 actionable events per second, a small amount of services, and a low rate of configuration archive and provisioning operations.
- Up to 1—Represents a very small test or proof-of-concept environment with a single machine acting as a gateway, unit, and database (or with a separate unit), with no more than 50 VNEs and a low rate of events.
When installing a database instance, use the values in Table 4-1 for the Oracle initialization parameters. The values are in bytes.
For better performance, make sure you generate statistics for all tables in the database. Prime Network issues alerts if no statistics are generated, or if the current statistics are more than 2 weeks old.
Note The pnuser_admin user is a user with database administrator permissions who can run maintenance tasks—such as gathering statistics—on the other Prime Network database schemas. After the pnuser_admin user is created, a cron job runs every 24 hours to gather statistics on the pnuser (Fault Database). You no longer have to gather statistics manually.
If you expect a high scale in the first 24 hours, it might be necessary to manually force statistics gathering twice during the first day, 1 and 5 hours after noise start. To force statistics gathering, enter the following command as pnuser :
Table 4-2 describes the steps involved in creating an Oracle 12c database using DBCA.
If you are using an Oracle 12c database, please refer to the Cisco Prime Network 5.2 Installation Guide.
|
|
|
---|---|---|
In the Operations window, select the operation that you want to perform. |
||
In the Database Identification window, enter the Global Database Name and SID field. |
Enter mcdb. Do not check the Create As Container Database check box, and do not fill in any of the related data. Note Do not modify the default Service, instead, you can add additional Service (s) along with the default service. |
|
In the Management Options window, configure the fields in Enterprise Manager as required. |
Do not set any of the fields in Enterprise Manager and Automatic Maintenance task, and proceed to the next step. |
|
In the Listener Selection window, check the relevant listener check box. |
||
In Database File Locations window, specify the storage type and location for the database. Set recovery settings if you intend to configure a database backup policy. |
1. Select Storage Type as File System. 2. For Storage Location, browse for the common location for all database files (Example: /export/home/oracle/oradata/mcdb). 3. In Recovery Related Files, choose File System as the Storage Type. 4. Check the Enable Archiving check box. 5. Click Edit Archive Mode Parameters to set the location for archive logs. |
|
Make sure that the Oracle Label Security and Oracle Database Vault check boxes are not checked. The rest of the check boxes should be checked. |
||
In the Initialization Parameters window, configure the memory settings for the database. |
2. For the Memory Management field, select the Manual Shared Memory Management from the drop down. 3. Configure other initialization parameters. Refer to Table 4-1 for the values of various database initialization parameters based on profiles. 4. In the Sizing tab, change processes to 1000. 5. In the Character Sets tab, choose your preferred character set (AL32UTF8 is recommended). 6. In the Connection Mode tab, choose Dedicated Server Mode. |
|
In the Creation Options window, select the database creation options. |
Choose Create Database and click Customize Storage Locations to configure redo log settings. Contact your Cisco account representative for assistance in estimating the database size. To support high event rates, redo log files must be six online 2 GB files on raw devices or on a dedicated disk partition mounted with the directio option. The redo log files must reside on a physical disk separate from the Oracle data files. |
Configuring the External Database
This section includes details on configuring the database, such as the Oracle initialization parameters, ports, database size, and so forth.
Configuring the cursor_sharing System Parameter
The cursor_sharing system parameter must be set to FORCE. To configure the cursor_sharing system parameter:
Step 1 As the SYS user, enter the following command:
Step 2 Enter the following SQL*PLUS command to verify that the parameter is set correctly:
In the command output, you should see:
Retaining Partitioning Storage Behavior
To ensure that partitioning storage behavior is retained, ensure that the partitions are created with an extent size of 64 KB. To create partitions with extent size of 64 KB, set the hidden parameter (_partition_large_extents) to false.
Enter the following command as the SYS user:
ALTER SYSTEM SET "_partition_large_extents" =FALSE SCOPE=BOTH;
Note The partitioning storage behavior is not retained if the partitions are created with the default extent size (8 MB).
Configuring the job_queue_processes System Parameter
The job_queue_processes parameter specifies the maximum number of processes that can be created for the execution of jobs. It must be set to 1000. To configure the job_queue_processes parameter:
Step 1 As the SYS user, enter the following command:
Step 2 Enter the following SQL*PLUS command to verify that the parameter is set correctly:
In the command output, you should see:
Configuring the audit_trail System Parameter
Disable Oracle auditing by setting the audit_trail system parameter to NONE. To configure the audit_trail system parameter:
Step 1 As the SYS user, enter the following command:
Step 2 As the SYS user, enter the following command to start the database:
Step 3 As the SYS user, enter the following SQL*PLUS command to verify that the parameter is set correctly:
In the command output, you should see:
Disabling the Recycle Bin Option
If enabled, the Oracle recycle bin feature retains a version of each dropped object, which can lead to an accumulation of junk information in the Prime Network DB Segments table. To disable the recycle bin option:
Step 1 As the SYS user, enter the following command:
Step 2 Enter the following SQL*PLUS command to verify that the parameter has been disabled:
In the command output, you should see:
Step 3 (Optional) As pnuser, enter the following command to see the objects that are currently saved in the recycle bin:
Step 4 (Optional) As pnuser, enter the following command to empty the recycle bin:
Setting the open_cursors Parameter
Open cursors enable the reading and writing of data between the Oracle database and Cisco Prime Network. The open_cursors parameter defines the maximum number of cursors that can be opened concurrently, per session. The recommended maximum number of open cursors for use with Cisco Prime Network is 2000. An error is generated if the number of open cursors in a session exceeds the specified number.
To set the open_cursors parameter:
Step 1 To check the value of the open_cursors parameter, enter:
In the command output, you should see:
Step 2 If the integer value is less than 2000, enter:
SQL>
ALTER SYSTEM SET open_cursors = 2000 SCOPE=BOTH;
Step 3 To verify that the value has changed, enter:
SQL>
show parameter open_cursors
Note If the open_cursors integer value is still less than 2000, contact your local database administrator.
Disabling Automatic Maintenance Jobs
If you deploy Prime Network to handle a high event rate, it is recommended that you disable Oracle’s automatic maintenance jobs. Automatic maintenance significantly affects Oracle performance and increases event processing time.
Connect to the Oracle database as the SYS user and enter the following commands:
Changing Database Ports
If Oracle is installed on the Prime Network gateway, the Oracle services will be installed on port 2100. If an Oracle listener was installed on port 2100, you must disable it or change the port number. By default, this port is used by the Oracle XML DB service.
Note You must change the FTP port number if an Oracle listener was installed by default on port 2100.
Use this procedure to change the port numbers of the XML DB listeners, if required. This procedure applies only if you installed the Oracle XML DB service. If you disabled the Oracle XML DB service, skip this section.
Step 1 To log into Oracle SQL, enter:
Step 2 To change the HTTP port from 8080 to 8083, enter:
Step 3 To change the FTP port from 2100 to 2111, enter:
Step 4 To commit the update, enter:
Step 5 To refresh the settings, enter:
Step 6 To exit SQL Command Line, enter:
Configuring the Database Size and Disk Structure
The size of the stored data is determined mainly by the number of stored events. By default, Prime Network is configured to archive events for up to 14 days. The archive size, the supported event rates, and the average event size dictate the expected database growth on a daily basis. Events that are archived for a long time cause a significant load on the database and require additional disk space. You can change the default archive period using the Administration GUI, if necessary (see the Cisco Prime Network 5.2 Administrator Guide). Contact your Cisco account representative for assistance with sizing calculations.
Following is the recommended disk structure for an Oracle server based on the number of disks that the server holds:
- Oracle data files—The optimal location is an external disk array (preferably RAID 10).
- Online redo log files—The optimal location is an internal disk partition. The redo log files should not reside on the same disk as the data files.
- Archive files—Should not reside on the same disk as the data files.
- Backup files—Should not reside on the same disk as the data files.
Configuring Oracle to Start Automatically When Prime Network Restarts
By default, the Oracle application does not start automatically when Prime Network is rebooted. This is because the best practice is for the system database administrator to manually start the database in a controlled environment. However, if you want Oracle to start when the system is rebooted, there are multiple ways to accomplish this task. The following is one example; see the Oracle documentation for other implementations.
As the Oracle UNIX root user, create a file in the /etc/rc2.d directory named S99OracleDB, with the following contents:
Preventing Passwords in the Default Profile from Expiring
When you create a database, passwords of users that belong to the default profile expire after 180 days. Because Prime Network database users receive the default profile, their database password will expire after 180 days. To prevent this from occurring, complete the following steps:
Step 1 Log into the Oracle SQL as the sysdba.
Maintaining the External Database
After installation, maintaining the database can involve:
- Maintaining Archive Log File Disk Space—Ensure that there is sufficient space on a disk to store a large volume of archive logs caused by the large number of Cisco Prime Network updates to the database.
- Adding Data Files to the Tablespace—Add data files to enable the storage of event history logs for a longer period of time.
Note Refer to your Oracle documentation for instructions on how to back up the Oracle database.
Maintaining Archive Log File Disk Space
The large number of Prime Network updates to the database causes the size of the archive log to expand rapidly and consume a large amount of space on the disk partition. To maintain space on the disk partition, an Oracle database administrator should delete the archive log files periodically.
Adding Data Files to the Tablespace
After you install Prime Network and its database, you might need to add more data files, depending on the event rate per second. Here is an example showing how to add a data file to the existing tablespace:
where tablespace-name is pnuser _TABLESPACE, dwe_TABLESPACE.
The size can be changed and is subject to actual needs and availability.
Note With the exception of pnuser and pnuser_admin, Prime Network tablespace data files are generated in 1 GB sizes with autoextend set to 256 MB and no size limit. (The data file can grow to 32 GB.) It is recommended that you preallocate the database storage by creating all required data files to their full sizes in advance.