Professional Documents
Culture Documents
ARABSAT
+966508374239
2012
Instructions for upgrading an Oracle E-Business Suite Release 12 database server and instance from Oracle 10g Release 2 (10.2.0 to the latest version of Oracle Database 11g Release 2 (11.2.0).
I.
3. Update application tier context file with new database listener port number (conditional)
2012
Verify shudown ps ef in prodappl should be less 20
3|P a g e
2012
4.
The 11.2.0 Oracle home must be installed on the database server node in a different directory than the current Oracle home. Read Chapters 1 and 2 of the Oracle Database Installation Guide 11g Release 2 (11.2) for your platform. Also read Chapter 1 and the "System Considerations and Requirements" section of Chapter 3 of the Oracle Database Upgrade Guide 11g Release 2 (11.2). Make sure you thoroughly understand the installation and upgrade processes. Perform any step that is relevant for your environment.
Login oracle for DB Server Prepare environment file export ORACLE_BASE=/oracle/app export ORACLE_HOME=/oracle/app/11.2.0 export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/l ib/site_perl/5.10.0 export ORA_NLS10=/oracle/app/11.2.0/nls/data/9idata export TNS_ADMIN=/oracle/app/11.2.0/network/admin export ORACLE_SID=R12
4|P a g e
2012
5|P a g e
2012
Select Languages
6|P a g e
2012
7|P a g e
2012
8|P a g e
2012
9|P a g e
2012
10 | P a g e
2012
Export ORA_NLS10=$ORACLE_HOME/nls/data/9idata 8. Apply additional 11.2.0.2 RDBMS patches Apply the following patches: For all UNIX/Linux platforms: 4247037 10149223 10160615 30
11 | P a g e
2012
III.
Database Upgrade:
Task Steps Down time [Min] Comments
9. Shut down Applications server processes and database listener 10. Drop SYS.ENABLED$INDEXES (conditional)
If the SYS.ENABLED$INDEXES table exists, use SQL*Plus to connect to the database as SYSDBA and running the following command to drop it:
SQL> drop table sys.enabled$indexes;
Not Applicable
Select DBUA Method Determine Location of Oracle home Develop a test plan Prepare backup strategy
240
12 | P a g e
2012
$ unset ORA_TZFILE
$ dbua
13 | P a g e
2012
14 | P a g e
2012
15 | P a g e
2012
16 | P a g e
2012
17 | P a g e
2012
18 | P a g e
2012
14. Modify initialization parameters 15. Perform patch post-install instructions 16. Natively compile PL/SQL code (optional)
Copy jumpstart& Jumpstop scripts Run only the catmgdidcode.sql and utlrp.sql scripts for the post install instructions. The other scripts are run as part of the dbua upgrade You can choose to run Oracle E-Business Suite 12.1 PL/SQL database objects in natively compiled mode with Oracle Database 11g. See the "Compiling PL/SQL Program Units for Native Execution" section of Chapter 12 of Oracle Database PL/SQL Language Reference 11g Release 2 (11.2).
19 | P a g e
2012
Copy $APPL_TOP/admin/adgrants.sql (adgrants_nt.sql for Windows) from the administration server node to the database server node. Use SQL*Plus to connect to the database as SYSDBA and run the script using the following command:
$ sqlplus "/ as sysdba" @adgrants.sql (or adgrants_nt.sql) [APPS schema name]
RPM need to install as attached below This patch will apply on APPLTOP
copy $AD_TOP/patch/115/sql/adctxprv.sql from the administration server node to the database server node. Use SQL*Plus to connect to the database as APPS and run the script using the following command: $ sqlplus apps/[APPS password] @adctxprv.sql [SYSTEM password] CTXSYS
Use SQL*Plus to connect to the database as SYSDBA and run the following command:
$ sqlplus "/ as sysdba"
On the administration server node, use SQL*Plus to connect to the database as APPS and run the 20 | P a g e
2012
No Need 30
Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12 [ID 387859.1] {Section : 3.2} Apply patch Patch 8919489 for 12.1.X customers $sqlplus apps/asat123 @/R12b/R12/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adset mmd.sql ENABLE $ adpatch $sqlplus apps/asat123 @/R12b/R12/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adset mmd.sql DISABLE Copy AutoConfig to the RDBMS ORACLE_HOME Update the RDBMS ORACLE_HOME file system with the new AutoConfig files delivered in the above patch following Step 2 in Section 3.1. Copy AutoConfig to the RDBMS ORACLE_HOME Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps: On the application tier (as the APPLMGR user): Log in to the APPL_TOP environment (source the environment file) Create appsutil.zip file $perl $AD_TOP/bin/admkappsutil.pl This will create appsutil.zip in $INST_TOP/admin/out
21 | P a g e
2012
perl adbldxml.pl
Starting context file generati on for db tier.. Using JVM from /R 12b/app/oracle/j dk/jre/bi n/java to execute java programs.. APPS Pass word: xxx The log file for this adbldxml sessi on is loc ated at: /R12b/app/oracle/appsutil/log/adbldxml_10311618.log
AC-00013: Error: File: /R 12b/app/oracle/network/admin/listener.ora is not a valid file as database SID could not be found for connect string: R12b Could not C onnect to the Database with the above parameters, Pl ease answer the Questi ons below Enter H ostname of Database s er ver: r12db1.arabs at.c om.sa Enter Port of Database ser ver: 1522 Enter SID of Database s erver: R12b Enter the value for Display Variable: 0:0
22 | P a g e
2012
$ cd $ORACLE_HOME/appsutil/bin $ adconfig.sh contextfile= appspass= Execute the following command to run AutoConfig on the database tier.
sh <RDBMS_ORACLE_HOME>/appsutil/scripts/<CONTEX T_NAME>/adautocfg.sh
Copy $APPL_TOP/admin/adstats.sql from the 10 administration server node to the database server node. Note that adstats.sql has to be run in restricted mode. Use SQL*Plus to connect to the database as SYSDBA and use the following commands to run adstats.sql in restricted mode:
$ scp $APPL_TOP/admin/adstats.sql r12orab@10.1.3.28:/home/r12orab $ sqlplus "/ as sysdba" SQL> alter system enable restricted session; SQL> @adstats.sql $ sqlplus "/ as sysdba" SQL> alter system disable restricted session; SQL> exit;
Not Applicable
$ sqlplus apps/[apps password]
2012
The EDW_APPS_TO_WH and APPS_TO_APPS database links, if they exist, should have been updated with the new port number by AutoConfig in the previous step. If you have custom self-referential database links in the database instance, use the following commands to drop and re-create them:
$ sqlplus apps/[apps password] SQL> drop database link [custom database link]; SQL> create database link [custom database link] connect to [user] identified by [password] using '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=[hostname]) (PORT=[port number]))(CONNECT_DATA=(SID=[ORACLE_SID])))';
10
28. Enable Database Vault 29. Restart Applications Server Processes 30. Synchronize Workflow views 10
Not Applicable
Log on to Oracle E-Business Suite with the "System Administrator" responsibility. Click Requests > Run > Single Request and the OK button. Enter the following parameters:
10
2012
p_Check_Dangling = Yes Add missing user/role assignments = Yes Update WHO columns in WF tables = No
25 | P a g e
2012
1.2. Grant the resolve priv ilege for users that need use the special functions: 1.2.1 . Run select to see all of users :
SELECT OWNER, REFERENCED_NAME FROM DBA_DEPENDENCIES WHERE referenced_name IN ('UTL_TCP','UTL_SMTP','UTL_MAIL','UTL_HTTP','UTL_INADDR') AND owner NOT IN ('SYS','PUBLIC','ORDPLUGINS') order by OWNER;
Return ex ample: JAVAUTIL,UTL_HTTP SY SCLI,UTL_SMTP 1.2.2. Grant to user JAVAUTIL and SY SCLI (re member to commit) :
BEGIN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE( acl => 'acl_list.xml', principal => 'JAVAUTIL', is_grant => true, privilege => 'connect'); END;
26 | P a g e
2012
BEGIN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE( acl => 'acl_list.xml', principal => 'SYSCLI', is_grant => true, privilege => 'connect'); END; / commit;
2. Errors using java class in database. Oracle Error: The class is not compiled In 11 g database the JDBC driv er has changed, and classes tha t use JDBC driv er must import the new. Solution: 2.1. Change the import class: From : import oracle.jdbc.driver*; To: import oracle.jdbc.*; 3. Ambiguous column in the query . Oracle Error: ORA -0091 8: column ambiguously defined According to Oracle this is an ex pected behav ior and 11 g from the need to qualify ambiguous names in select list (DOC ID 8357 01.1)
27 | P a g e
2012
4. Error in procedure or function when change user password. Oracle Error: ORA -0600 In 11 g database, the password column on view sys.dba_users, no longer contains the users password. Solution: 4.1. Change the queries to use sy s.user$ v iew. 5. Implicit data conversion is no longer allowed in some times Oracle Error: ORA -06502: PL/SQL: numeric or value error Implicit and ex plicit conv ersion for numeric values may also suffer from the analogous problem, as the conversion result may depend on the session parameter NLS_NUMERIC_CHARACTERS. This parameter defines the decimal and group separator characters. If the decimal separator is defined to be the quotation mark or the double quotation mark, some potential for SQL injection emerges. Solution: 5.1. Check NLS_NUMERIC_CHARACTERS or change the queries to use quotes.
28 | P a g e
2012
When you create or modify user accounts, by default, passwords are case sensitive. To control the use of case sensi tivity in passwords, set the SEC_CASE_SENSITIV E_LOGON initialization parameter. Only users who have the ALTER SY STEM priv ilege can set the SEC_CASE_SENSIT IV E_LOGON parameter. Set it to TRUE to enable case sensitivity or FALSE to disable case sensitiv ity. Solution: 6.1. Set init parameter sec_case_sensitive_logon to false : *.sec_case_sensitive_logon=false 7 . Error using cursor with DBMS_SQL Oracle Error: ORA -2947 1: DBMS_SQL access denied In 11g database, oracle has introduced some security changes to the DBM S_SQL package to prevent cursor injection. The better solution is create the cursors using explicitly security level, for ex ample: curs = dbms_sql.open_cursor(lev el); The lev el 1 requires the executing/binding and parsing user IDs to be the same. Lev el 2 i s more strict and requires id and roles are the same for all operations like binds, describes, executes, fetches etc. Workaround to ignore the security cursor: 7 .1. Set init parameter _dbms_sql_security _level to zero: *._dbms_sql_security _level=0
29 | P a g e
2012
Attached Note s:Please ta ke a look on the Doc 564174.1. ################################################################### Any insta llat ion of Oracle Application Server 10g Re lease 2 (10.1.2.0.2) on O EL 5.x or R HEL 5.x in which Reports is getting i nstalled will fail with reports re linking errors Example output from installActions log: /usr/lib/libXtst.so.6: undef ined reference to `__stack_chk_fail@GLIBC_2.4' /usr/lib/libXtst.so.6: undef ined reference to `__fprintf_chk@GLIBC_2.3.4' /usr/lib/libXtst.so.6: undef ined reference to `__sprintf_chk@GLIBC_2.3.4' collect2: ld returne d 1 exit status ma ke: *** [rwrun] Error 1 End output from spawned process. Exception thrown from a ction: ma ke Exception Na me: Ma kefileException Exception String: Error in invoking target 'proxy_insta ll runm_insta ll server_install cgi_insta ll cli_install conv_install qv_install' of makef ile '/opt/oracle /Forms10gR2/reports/lib/ins_re ports. mk'
In order to prevent this, download and apply the required RPM listed be low: [http://oss.oracle.com/projects/compat-oracle/dist/files/Enterprise_Linux/xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm] As root, you ca n insta ll this RPM package by issuing the following command # rpm -i xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm After the RPM, is installed, you will a lso need to override the /usr/lib/libXtst.so.6 with the one from /usr/X11R6/lib/libXtst.so.6. As r oot, issue the commands: # mv /usr/lib/libXtst.so.6 /usr/lib/libXtst.so.6.ORG # ln -s /usr/X11R6/lib/libXtst.so.6 /usr/lib/libXtst.so.6
30 | P a g e
2012
Invalid Objects Before Upgrade:SQL> select substr(object_name,1,40) object_name,substr(owner,1,15) owner,object_type From dba_objects where status='INV ALID' order by owner,object_type; 2
OBJECT_TYP E VIEW VIEW FUNCTION PACKAGE BODY PACKAGE BODY PACKAGE BODY PACKAGE BODY
31 | P a g e
2012
OBJECT_NAME IBY_AR_UTILS XX_ARABSAT_SR_PKG_27Jul12 DT_S ETP ROP ERTYBYID XX_PROCESS_ITEMS FV_FACTS_TRX_V FV_BUDGET_DISTRI BUTION_HDR_V FV_FACTS_TB_V IBY_XML_FNDCPT_DOC_LINE_V IBY_XML_FNDCPT_DOC_LINES _V IBY_XML_FNDCPT_DOC_HEADER_V IBY_XML_FNDCPT_DOC_HEADERS_V CS_KB_F_CTX_P KG
OWNER APPS APPS APPS APPS APPS APPS APPS APPS APPS APPS APPS CTXSYS
OBJECT_TYP E PACKAGE BODY PACKAGE BODY PROCEDURE PROCEDURE VIEW VIEW VIEW VIEW VIEW VIEW VIEW PACKAGE BODY
32 | P a g e
2012
XXARABS AT
33 | P a g e
2012
owner,object_type order by owner,object_type ; 2 OWNER APPLSYS APPS APPS APPS APPS CTXSYS JUNK_PS ORDSYS OWAPUB PUBLI C SYS XXARABS AT OBJECT _TYP E VIEW FUNCTION PACKAGE BODY PROCEDURE VIEW PACKAGE BODY SYNONYM PACKAGE BODY PACKAGE BODY SYNONYM PACKAGE BODY PACKAGE BODY COUNT(*) 2 1 10 2 7 1 4 2 3 7 1 1
34 | P a g e
2012
--------------- Upgrade Util -------------SQL> @/R12b/app/oracle/rdbms/admin/utlu112i.sql Oracle Database 11.2 Pre-Upgrade Information Tool 10-30-2012 15:00:05 Script Version: 11. 2.0.2.0 Build: 001 . ********************************************************************** Database: ********************************************************************** --> name: R12B --> version: 10.2.0.5.0 --> compatible: 10.2.0 --> blocksize: 8192 --> platform: Linux IA (32-bit) --> timezone file: V4 . ********************************************************************** Tablespaces: [make adjustments in the current environment] ********************************************************************** --> SYSTEM tablespace is adequate for the upgrade. .... minimum required size: 10034 MB --> APPS_UNDOTS1 tablespace is adequate for the upgrade. .... minimum required size: 3395 MB --> TEMP tablespace is adequate for the upgrade. .... minimum required size: 61 MB --> APPS_TS _QUEUES tablespace is adequate for the upgrade. .... minimum required size: 238 MB --> APPS_TS _TX_DATA tablespace is adequate for the upgrade. .... minimum required size: 17890 MB --> CTX D tablespace is adequate for the upgrade. .... minimum required size: 43 MB --> ODM tablespace is adequate for the upgrade. .... minimum required size: 15 MB
35 | P a g e
2012
36 | P a g e
2012
37 | P a g e
2012
38 | P a g e
2012
39 | P a g e