0% found this document useful (0 votes)
78 views5 pages

Upgrading Oracle 11g To 12c For DLP 15

The document provides steps to upgrade an Oracle database from 11g to 12c for a Symantec DLP installation using the same hardware with two CPUs. It involves downloading and unpacking the Oracle 12c software, preparing for disaster recovery of the existing 11g database, installing Oracle 12c, setting the Oracle environment variables, upgrading the database using the Database Upgrade Assistant, creating a new Oracle 12c listener, recreating net services, and testing the connection to the DLP enforcement console.

Uploaded by

atiffita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views5 pages

Upgrading Oracle 11g To 12c For DLP 15

The document provides steps to upgrade an Oracle database from 11g to 12c for a Symantec DLP installation using the same hardware with two CPUs. It involves downloading and unpacking the Oracle 12c software, preparing for disaster recovery of the existing 11g database, installing Oracle 12c, setting the Oracle environment variables, upgrading the database using the Database Upgrade Assistant, creating a new Oracle 12c listener, recreating net services, and testing the connection to the DLP enforcement console.

Uploaded by

atiffita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Upgrading Oracle 11g to 12c for DLP 15.

1 and Same Hardware (Two CPUs)


General Overview
❏ Download and unpack software
❏ Prepare for disaster recovery and New Oracle 12c Install
❏ Install new Oracle 12c
❏ Set Oracle Environment variables (HOME_PATH, ORACLE_SID, ORACLE_PATH)
❏ Upgrade DB
❏ Create new Oracle 12c Listener
❏ Recreate Local Net services
❏ Fire up DLP services and test Enforce Console connectivity

Download and unpack software

Download Zipped Oracle installer and tools form here


https://symantec.flexnetoperations.com/control/symc/download​?
Files to download: 12.2.0.1_64_bit_Installation_Tools, Oracle_12.2.0.1.0_Server_Win64_1of2,
Oracle_12.2.0.1.0_Server_Win64_2of2

Note: Installation tools can be found inside DLP 15.1 Platform installation download
Symantec_DLP_15.1_Platform_Win-IN_15.1.0.25023\DLP\15.1\New_Installs\Oracle_Configurat
ion

Note: Downloading and unpacking Oracle is a challenge, it requires unpacking twice as there
are zipped files after the first unzip process. Unzip all the files, then place them into two
directories named c:\temp\oracle\database and c:\temp\oracle\tools. Once everything is settled
down, the unpacked files will look like:

C:\temp\oracle\database\ \install,\response,\stage, setup.exe and welcome.html

C:\temp\oracle\tools\ \responsefiles, \templates, \oracle_create_user.bat, and


\oracle_create_user.sql
Prepare for disaster recovery and New Oracle 12c Install

Assumption: You have a Server system recovery plan that includes full server backup or at least
full Oracle DB backup.

Copy System Variable PATH to a safe place ….Contains Oracle 11g path variable
Note: Windows Advanced System Settings->System Properties and Environmental variables
Copy Oracle_home variable

Examples:
Old ORACLE_HOME C:\oracle\product\11.2.0.4\db_1
Old ORACLE_PATH
C:\oracle\product\11.2.0.4\db_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files
(x86)\Mail
Enable\BIN;C:\SymantecDLP\Protect\lib\native;;C:\SymantecDLP\jre\bin;C:\SymantecDLP\jre\bi
n\client;C:\oracle\product\11.2.0.3\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%Syste
mRoot%\System32\Wbem;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Mail Enable\BIN64;C:\Program Files\PGP Corporation\PGP Command
Line\;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Program Files
(x86)\Gpg4win\..\GnuPG\bin

Copy files located in ..\oracle\product\11.2.0.4\db_1\NETWORK\ADMIN to a safe location


Copy file ..\SymantecDLP\Protect\config\Jdbc.properties to a safe location
Note: These files are the connection assurance to DLP to the old Oracle 11g DB.

Oracle 12c Installation requires an Oracle Home User. For understand what is it, please read:
Check Oracle documentation
https://www.oracle.com/technetwork/database/windows/tech-info/oraclehomeuser-windowsdb-1
2c-1970558.pdf
Note: If creating account is failing at installation or any time, use the “Windows Built in user”

Oracle says to unset the Oracle path before installation but, they don’t say how to accomplish
that. The trick is to restart the Shell (Close command line and open anew one) after removing
the ORACLE_HOME environmental variable from the path in Windows; remove anything that
says Oracle in the Path environment variable (Assuming there is a backup already).
After restarting the shell, Oracle could continue installing.
Install new Oracle 12c
Assumptions: ZIP files containing Oracle 12c SE2 software were extracted into a single temporary
directory: C:\temp\Oracle\database, and the 12.2.0.1_64_bit_Installation_Tools.zip extracted files into the
temporary directory C:\temp\Oracle\tools
1. Stop all Symantec Data Loss Prevention services except the Update service:
https://www.symantec.com/docs/DOC9258​ (page 83 for DLP 15.1, Page 61 for DLP 15.0)
2. Open a Command line with Admin rights and Run the following command:
C:\temp\Oracle\database\setup.exe -noconfig -responsefile C:\temp\Oracle\tools\responsefiles
\Oracle_12.2.0.1_Standard_Edition_Installation_WIN.rsp
Note: Preinstallation values are loaded so no need to change a selection value: step 2= Install DB
software only; step 3= Single instance DB install; step 4= STD edition; step 5= Windows Built in
account or create one; step 6= C:\oracle\product\12.2.0.1\db_1 or Customer Oracle Installation
location.
Note: The Oracle Home User is the Windows user account that runs Windows services for
%ORACLE_HOME. It is not the Symantec Data Loss Prevention Oracle user account.
Note: On step 6 of 10 installation might error out complaining about ORACLE_HOME being set.
Remove everything from the PATH Environmental variable that has Oracle in it (e.g.
C:\oracle\product\11.2.0.4\db_1\bin ) and ORACLE_HOME environmental variable if exist. You
will have to restart the installer unfortunately.
3. On the Finish panel, click Close to exit the installer application. You can safely ignore the
configuration note that displays on this panel.

Set Oracle Environment variables (HOME_PATH, ORACLE_SID, ORACLE_PATH)


Open a Command line with Admin right and execute the following commands:

set ORACLE_HOME=c:\oracle\product\12.2.0.1\db_1
set ORACLE_SID=protect
set PATH=%PATH%:%ORACLE_HOME%\bin

Upgrade DB
Confirm that the OracleServicePROTECT service is running.

Start the Database Upgrade Assistant by running the following command:

%ORACLE_HOME%/bin/dbua

Step 1. Ignore the SYSDBA username and password. However, it might error out due to
Windows authentication issues, input account. The following error might occur:
Correct it by starting OracleServiceProtect service.

Step 2. Errors and warnings will most likely be present, they have to be fixed before continuing
(As picture below shows, after clicking on Details).

If errors are not fixed, Database Upgrade Assistance will complain with the following Warning
Message box:

They might be able to be fixed by the Upgrade Wizard by clicking on the Fix & Check Agein
button:

In order to fix these errors manually, Oracle 11g will have to be fired back up again: at this point,
services are down and ORACLE_HOME and ORACLE_PATH are set for Oracle 12c, so it is
tricky. Furthermore, all of these changes have to be reset again for Oracle 12c, after fixing
issues in order to continue with upgrade.

Fixing Invalid Objects manually:

Note: Errors related to sys

Create new Oracle 12c Listener

Recreate Local Net services

Note: Make sure Oracle 11g services are disabled.


Fire up DLP services and test Enforce Console connectivity

*************************
Potential Errors:

Creating Control Files


https://docs.oracle.com/html/E25494_01/control003.htm#i1006360

You might also like