The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the steps required to set up your Oracle Database 11g server and to set up the Cisco Configuration Engine with Prime Provisioning.
Prime Provisioning comes with an embedded Sybase DBMS. This section is relevant to you only if you choose to use an external Oracle DBMS. You are responsible for the installation, licensing, and administration of the Oracle DBMS.
This section describes how to set up an Oracle Database 11g (Enterprise Edition Release 11.2.0.3.0 - 64 bit Production server) and Oracle Database 12c (Enterprise Edition 12.1.0.2.0 - 64 bit Production server) that works with Cisco Prime Provisioning. This section is intended for database administrators who are familiar with Oracle.
Note Prime Provisioning 7.2 was tested with Oracle Database 11g, Enterprise Edition Release 11.2.0.3.0 - 64 bit Production and Oracle Database 12c, Enterprise Edition 12.1.0.2.0 - 64 bit Production. If you would like to use another version of Oracle, see Oracle’s compatibility information.
This chapter does not cover all the details about installing and setting up this Oracle server. For the complete information, see the Oracle Installation Guide. Prime Provisioning provides schema files to be loaded on an Oracle server. The Prime Provisioning customer must decide on the Oracle server configuration.
3. Verifying and Launching Oracle
4. Setting Up Your Oracle Files
5. Testing Your Oracle Database Connection for Oracle User Prime
6. Prime Provisioning Software Installation
7. Verify Prime Provisioning Installation with Oracle
8. Importing an Oracle Repository Dump
This section also contains a “Troubleshooting” section.
Prime Provisioning support for an Oracle database is for Oracle Database 11g (Enterprise Edition Release 11.2.0.3.0 - 64 bit Production) and Oracle Database 12c (Enterprise Edition 12.1.0.2.0 - 64 bit Production). This is the version of Oracle with which Prime Provisioning 7.2 was tested. If you would like to use another version, see Oracle’s compatibility information.
The remaining prerequisites are as specified in the following Cisco Prime Provisioning 7.2 steps:
Step 1 You must install Oracle and Prime Provisioning on different servers connected to the same network.
Step 2 When the Oracle server is set up, the following initialization parameters should be in the database init file:
Step 3 Record the following information about the server setup. This information is needed during the Prime Provisioning installation:
Note This is specified in Step 18, “Installing Prime Provisioning Using the GUI Installer”, Chap: 3.
Note Create an Oracle database userid and password. This is needed during Prime Provisioning installation. Do not use the system or sys account for Prime Provisioning data. Use a separate table space other than the system table space.
Step 4 Before loading the Prime Provisioning database schema, make sure the Oracle database has been successfully started and the database user has proper privileges. See the Oracle Administration Guide for detailed instructions about how to set up the database and manage user accounts.
Step 5 Proceed to the section “Installing Oracle.”
The following information about an Oracle installation is just one example.
You must install Oracle before you install the Cisco Prime Provisioning software (or at least know your Oracle home directory, host machine, and Oracle Server ID), and your database and its listener must be running when you launch the Prime Provisioning servers.
If you intend to use the same Oracle installation with more than one installation of the Prime Provisioning servers, you must create a unique Oracle SID and Oracle tablespace for each Prime Provisioning installation.
This file should already exist in the /dbs subdirectory of your Oracle installation. (The filename contains your database’s SID in place of ORACLE_SID. For example, if you named your database PP, this file is named initPP.ora.)
The oratab file should be located in the /var/opt/oracle directory on the machine on which the database is installed. It is used by Oracle’s dbstart utility to identify your database.
The oratab file must contain the following line:
database_name : location_of_your_Oracle_executables :Y
If your Oracle home directory is /oracle/10.2.0 and your database SID is PP, the oratab entry would be as follows:
This file identifies the name and location of your database for the Oracle utility dbstart (and its companion dbshut). The dbstart utility starts Oracle; the “Y” at the end of the oratab entry tells the dbstart utility to open the database named Prime Provisioning. (Substitute your database name for Prime Provisioning in the sample. List the path to your Oracle installation as an absolute path, not a relative path.)
To make this happen automatically following a reboot (after a power interruption, for example), execute the dbstart utility from a script in the /etc/init.d directory on the Oracle host machine.
The SQLNET.ALLOWED_LOGON_VERSION parameter is deprecated in Oracle 12c database. It has been replaced with two new Oracle Net Service parameters:
SQLNET.ALLOWED_LOGON_VERSION_SERVER
SQLNET.ALLOWED_LOGON_VERSION_CLIENT
In Oracle 11g database, SQLNET.ALLOWED_LOGON_VERSION is 8 by default. But when you are upgrading it to Oracle 12c database, the SQLNET.ALLOWED_LOGON_VERSION_SERVER is set to 11 by default. For installing Prime Provisioning successfully, you have to set this value to 8 manually in the sqlnet.ora file present in the $ORACLE_HOME/network/admin directory as below:
Your Oracle database must be open before you can install or use the Prime Provisioning software.
First, verify the Oracle processes, as described in the following section. If the processes are running, you can skip the succeeding section.
Log into the Oracle host machine and enter the following on the command line to see if the Oracle processes are running:
If there is no output displayed from the ps command, Oracle is not running.
If Oracle is running and the listener process is running, you should see something similar to the following:
oracle 328 1 0 14:25:18 0:00 ora_pmon_ISC
oracle 328 1 0 14:25:18 0:00 ora_dbwr_ISC
oracle 328 1 0 14:25:18 0:00 ora_lgwr_ISC
oracle 328 1 0 14:25:18 0:00 ora_ckpt_ISC
oracle 328 1 0 14:25:18 0:00 ora_smon_ISC
oracle 328 1 0 14:25:18 0:00 ora_reco_ISC
oracle 328 1 0 14:25:18 0:00 ora_wmon_ISC
oracle 328 1 0 14:25:18 0:00 tnslsnr LISTENER -inherit
These are the Oracle processes currently running (your output might not match this list exactly, depending on which Oracle components are installed).
Your Oracle database must be open before you can install or use the Prime Provisioning software.
If Oracle is not currently running, you must use the startup utilities located in the /bin subdirectory of your Oracle installation.
To open your database, you must be logged into the Oracle host workstation under the Oracle administrator (DBA) user ID; you then locate your $ORACLE_HOME/bin subdirectory.
On the command line, enter the following:
The dbstart script starts the database identified in the oratab file. If the database starts successfully, you should see several lines of output, including the following:
SQL> Connected to an idle instance.
...and ending with the following:
Database "Prime Provisioning" warm started.
If the listener process is not running, you must also start that process. On the command line, enter the following:
You should see several lines of output as the process is invoked, then you should see output similar to the following:
To configure your database to work with the Prime Provisioning software, you must create a tablespace and configure several files.
You must be logged into the Oracle host using the user ID (such as oracle) created during the Oracle installation procedure.
You must create an Oracle tablespace for your Prime Provisioning tables.
To create the tablespace, Oracle must be running and your database must be open.
Log into the Oracle host using the oracle user ID. Identify (or create) the directory where your Prime Provisioning data should be stored, and grant write permission to the oracle user ID. Be sure your ORACLE_SID and ORACLE_HOME environment variables are set correctly, then launch the Oracle utility sqlplus, which is located in the $ORACLE_HOME/bin directory.
At the SQL prompt, enter the following on the command line:
DATAFILE '/ your_data_directory /ISC_DAT_01.dbf' size 500M
The data directory you specify must already exist. The TABLESPACE and DATAFILE names are arbitrary. You can use any names that help you keep track of which files are associated with which database. The only requirement is that the name given to the tablespace at the time of its creation ( PP_DAT in the example) must be the same as the default tablespace listed when you create the prime user account.
The autoextend option allows ORACLE to automatically extend your data file. The maximum size of the data file is limited only by the available space on the file’s disk.
Before invoking an Oracle installation, you need to grant ‘create and view’ permissions to an Oracle user. To grant these permissions, execute the SQL query as shown in the following steps:
While sqlplus is still running, create a prime user account using your PP_DAT tablespace as follows:
CREATE USER prime IDENTIFIED BY cisco
GRANT SELECT ON sys.dba_constraints TO prime;
You should use the username and password created in these steps when entering Oracle information in the script prime.configure.
Note In Oracle 11g, creating a user with the role specified as “Resource” grants UNLIMITED TABLESPACE privilege by default to the user. But in Oracle 12c specifying the role as “Resource” does not grant UNLIMITED TABLESPACE privilege by default. So you need to manually set this option as follows: alter user <user> quota unlimited on <table_space>;
When you have configured your database and listener file, enter the following (for the Oracle user prime and for the database named Prime Provisioning) on the command line:
sqlplus <username> / <password>
<username> is a database username (in our previous example, we used prime).
<password> is a database password (in our previous example, we used cisco).
If your system is set up properly (and your Oracle database is running), you should see a message advising you that you are connected to Oracle. Enter quit on the command line to exit the database.
Note The Prime Provisioning database schema files are loaded during the installation.
Step 1 Follow the custom install instructions in “Installing Prime Provisioning” section, and log in, as explained in the “Logging In for the First Time” section.
Step 2 Proceed to the section “$paratext>” section.
To verify the Prime Provisioning installation with Oracle, do the following:
Step 1 Run sqlplus <oracle_id> / <oracle_password> on the Oracle server.
Step 2 From the SQL> prompt, run select host_name from vpnsc_host;
This command returns the installed Prime Provisioning hostname.
Step 3 Log into the Prime Provisioning server.
Step 4 Check the file /opt/Prime Provisioning /etc/vpnsc.properties and make sure that the <oracle server> and <ORACLE_SID> are correct in the following entry in the file:
repository.persistence.url=jdbc:oracle:thin:@ <oracle server> : <ORACLE_SID>
Step 5 Execute the schema verification script to verify the repository schema version, as follows:
./checkSchemaVer.sh <oracle_id> / <oracle_password>
where: <oracle_id> is the Prime Provisioning userid in the Oracle database and <oracle_password> is its password.
Step 6 The output from the script should be “Current schema version = 6.8”. If that is not the output from the script, Prime Provisioning might not have been installed properly or the Prime Provisioning repository might not have been upgraded successfully.
To import the Oracle repository dump in Prime Provisioning, do the following:
Step 1 Log into the Oracle Webapp.
Step 2 Create the User and Tablespace.
Step 3 Log into the Oracle Server and source the enviornment:
<Oracle Server Name> Specify the Oracle Server Name that is being used.
Step 4 Enter: su - <user name>
Step 5 Enter: cd $ORACLE_HOME/bin
Step 7 Enter: setenv ORACLE_HOME to $ORACLE_HOME/bin
Step 8 Enter: setenv ORACLE_SID to orcl
Step 9 Copy the.dmp file to a directory on the Oracle Server.
Step 10 Enter: cd $ORACLE_HOME/bin
When you run this script, you are asked to enter the values for the following prompts:
a. Import file: <specify the full path to.dmp file>
b. Enter insert buffer size: 30720 (accept the default value)
c. List contents of import file only: no (accept the default value)
d. Ignore create error due to object existence: no (accept the default value)
e. Import grants: no (accept the default value)
g. Import entire export file: yes
In addition to having already installed Prime Provisioning and followed the steps required to configure an Oracle server, you must follow these steps when using Oracle Real Application Clusters (RAC). Prime Provisioning does not support client load balancing with Oracle RAC.
Note A limitation of Oracle RAC is that any uncommitted transactions made during an instance or node failure and recovery period are lost. The recovery of these transactions is not supported. For this reason, the behavior of tasks that are running at the time as an instance or node fail over is undetermined. These tasks should be redeployed.
In case of a failure, for more information see the Oracle RAC documentation for database instance recovery time details.
Step 1 Verify that the new Oracle RAC servers are available and have an Prime Provisioning tablespace with user configured. If you need help setting this up, see the “$paratext>” section.
Step 2 Modify $PRIMEF_HOME/runtime.properties to have the correct values for the following parameters:
Step 3 Prepopulate the database user name and password into the database
./pime.sh execjava.sh com.cisco.vpnsc.common.BootStrapHelper put repository <oracle username> <oracle password>
Step 4 If running, use the ./prime.sh stop command to stop Prime Provisioning.
Step 5 Verify that the value for the DCPL property watchdog/server/dbpoller/connectionextend is still set to the default: 5. See Appendix G, “DCPL Properties,” in the Cisco Prime Provisioning 7.2 User Guide.
Step 6 To update the database with the changes, enter:
Step 7 Use ./prime.sh stop to stop the database.
Step 8 Then enter ./prime.sh start to start Prime Provisioning.
See the Backup and Restore of Prime Provisioning Repository chapter in the Administration Guide.
This section lists Oracle database-related trouble shooting tips based on the following error messages:
If you receive this message, it is typically an Oracle server storage configuration issue. This problem occurs when the tablespace for Prime Provisioning exceeds the limit set by the database configuration. To prevent this, plan proper storage before Prime Provisioning is set up. If this problem occurs, increase the initial or next extent, increase the growth percentage (such as, PCT_INCREASE), or reset the number of max extents (can be unlimited). The Prime Provisioning data must be exported and imported to the tablespace with the new tablespace parameters.
If you receive this message on Prime Provisioning and are unable to log in, this might be because Prime Provisioning cannot connect to the Oracle database. To avoid this situation, increase the number of Oracle server processes.
If you cannot log into the Inventory Manager or Topology Manager, verify that the Oracle hostname is accessible from a client machine, either by DNS or a host file.
If the Oracle ID and password change after the Prime Provisioning installation, you must execute the following:
a. execjava.sh com.cisco.vpnsc.common.BootStrapHelper put repository <oracle_id> <oracle_password>
b. update etc/spe/cns.properties and modify these two properties:
Cisco Prime Provisioning was supporting both Solaris and Linux platforms till 6.4.x release but this support has been removed from 6.5.x. Hence, if the customers using Prime Provisioning on Solaris server wants to upgrade to any release after 6.5.x has to migrate to Linux server.The listed below scenarios explains about the migration procedure:
Step 1 Stop the existing Prime Provisioning server using./prime.sh stop command in Solaris and Linux servers respectively.
Step 2 In Linux server, install the same version of Prime Provisioning as of Solaris.
Step 3 Update the below parameter values of the Linux server available in <PRIMEF_HOME>/runtime.properties file with the new values:
Note In Linux server, you need to provide the same Oracle user id and password details as used in Solaris
Step 4 Execute the below commands from <PRIMEF_HOME>:
Step 5 To start the database, use./prime.sh startdb command:
Step 6 To incorporate the changes into the Repository by initializing the database, use./prime.sh initdb.sh command.
Step 7 Restart the Prime Provisioning server using./prime.sh start command.
Step 1 Stop the existing Prime Provisioning server using./prime.sh stop command in Solaris and Linux servers respectively.
Step 2 In Linux server, install the same Prime Provisioning version as of Solaris with the embedded Sybase database.
For more information, refer to the section “Installing Prime Provisioning” section.
Step 3 Remove the repository directory that is available along with the installed version of Prime Provisioning in Linux server.
rm -rf <PRIMEF_HOME>/Repository
Step 4 Tar up the full Repository directory from Solaris and place it in <PRIMEF_HOME> directory.
Step 5 Copy the tar file from Solaris to <PRIMEF_HOME> directory of Linux server
Step 6 Untar this file in the same location.
Step 7 To start the database, use./prime.sh startdb command:
Step 8 To incorporate the changes into the Repository by initializing the database, use./prime.sh initdb.sh command.
Step 9 If you have the upgraded version of Prime Provisioning in Linux server then you need to update the repository using the upgrade script. For more information, refer to the section “Using the Repository Upgrade Tool” section.
Step 10 Restart the Prime Provisioning server using./prime.sh start command.