Upgrading Oracle 11g To 12c For DLP 15
Upgrading Oracle 11g To 12c For DLP 15
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:
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
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_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.
%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.
*************************
Potential Errors: