Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

Embed Size (px)

DESCRIPTION

Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

Citation preview

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    1/15

    Upgrade Project for

    DB (9.2.0.8)=>(11.2.0.1)

    Apps (11.5.10.2)=>(12.1.3)

    (1) Make CLONE Instance

    1- Patches Should be On Prod

    6365595

    7283719

    2- OS Requirements for 11.5.10.2

    #RPMs* compat-libstdc++-egcs-1.1.2-11

    * compat-libcwait-2.1-11

    * compat-oracle-el5-1.0-51

    * openmotif21-2.1.30-11.EL51

    * binutils-2.152* libXp-1.0.0-8.1.el5

    * compat-libgcc-296-2.96-138

    * compat-libstdc++-33-3.2.3-61

    * compat-db-4.2.52-5.1[root@erpdev ~]$ ldconfig -v

    ----

    #Better to install last JAVA JDK (jdk-6u23-linux-i586-rpm.bin)[root@erpdev ~]$ chmod a+x jdk-6u23-linux-i586-rpm.bin

    [root@erpdev ~]$ ./jdk-6u23-linux-i586-rpm.bin

    ----

    #Glibc

    Oracle Linux 5 2.3.4-2.26

    ----

    #/etc/resolv.conf file on each server node:options attempts:5

    options timeout:15

    ----

    #Verify that the /etc/hosts file is formatted as follows:

    127.0.0.1 localhost.localdomain localhost

    .

    172.16.0.132 erpdev.customs.gov.qa erpdev----

    #Verify that the /etc/sysconfig/network file is formatted as follows:

    HOSTNAME= erpdev.customs.gov.qa

    #If the /etc/sysconfig/networking/profiles/default/network file exists, remove it.

    #Open the /etc/security/limits.conf* hard nofile 65535

    * soft nofile 4096

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    2/15

    * soft nproc 2047

    * hard nproc 16384

    ----

    #Open the /etc/sysctl.conf file and change the valuenet.ipv4.ip_local_port_range = 10000 65000

    kernel.shmall = 2097152

    kernel.shmmax = 2147483648

    kernel.shmmni = 4096

    kernel.sem = 250 32000 100 128fs.file-max = 65536

    net.core.rmem_default = 1048576

    net.core.wmem_default = 262144

    net.core.rmem_max = 1048576

    net.core.wmem_max = 262144

    ----

    #For Oracle Linux 5 and Red Hat Enterprise Linux 5 only :[root@erpdev ~]$ ln -s /usr/bin/ld215 /usr/bin/ld After Installing 12.1.1 file system return it back

    ----

    #Download and apply the OS library patch 6078836 from My Oracle Support and create the following symbolic link:[root@erpdev ~]$ cp libdb.so.2 /usr/lib

    [root@erpdev ~]$ ln -s /usr/lib/libdb.so.2 /usr/lib/libdb.so.3

    ----

    #Unzip Backup[root@erpdev ~]$ gunzip < oracleas.tar.gz | tar xf -

    [root@erpdev ~]$ gunzip < prodcomn.tar.gz |tar --extract --file=cbz.tar css

    *extract Specific folder[root@erpdev ~]$ gunzip < sherif.tar.gz |tar -xvf - sherif/1

    ----

    #CREATING Groups[root@erpdev ~]$ groupadd dba;[root@erpdev ~]$ groupadd oinstall

    #Creating Users[root@erpdev ~]$ mkdir /u01/apps

    [root@erpdev ~]$ useradd -G dba -g oinstall -d /u01/apps/oracle oracle;

    [root@erpdev ~]$ useradd -G dba -g oinstall -d /u01/apps/applmgr applmgr;

    [root@erpdev ~]$ chown -R oracle:oinstall /u01/apps/oracle ;

    [root@erpdev ~]$ chown -R applmgr:oinstall /u01/apps/applmgr ;

    [root@erpdev ~]$ chmod -R 775 /u01/apps/oracle ;

    [root@erpdev ~]$ chmod -R 775 /u01/apps/applmgr ;

    #Create oraInst.loc file with root[root@erpdev ~]$ cd /etc/[root@erpdev etc]# touch oraInst.loc

    [root@erpdev etc]# chmod 777 oraInst.loc

    [root@erpdev etc]# chown oracle:oinstall oraInst.loc

    *ADD this 2 linesinventory_loc=/etc/oraInventory

    inst_group=oinstall

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    3/15

    3- Make Clone on the new OS

    RHEL 5 case for

    Before AppsTier Clone post script

    cd Clone/jre/jre/lib/

    Copy "jvm.cfg"from Prod into $COMMON_TOP/Clone/jre/jre/lib/ and also $COMMON_TOP/Clone/jre/jre/lib/i386/

    jvm.cfg

    #IF Mergingstop services

    # Finishing tasks

    * Log in to the target system application tier node as the APPLMGR user.

    * Run the following tasks in adadmin for all products:

    o generate JAR files

    o generate message files

    o relink executables

    o copy files to destination

    * Depending on which tier you chose as the primary node, certain files may be missing. Run adadmin to verify files

    required at runtime. If any files are listed as missing files, you must manually copy them to the merged APPL_TOP.

    * Remove the temporary directory /clone/appl to reduce disk space usage.

    ############### DID NOT Need IT##################################

    #### cd /u01/apps/applmgr/prodappl/jtf/11.5.0/admin/scripts ####

    #### perl ojspCompile.pl --compile --quiet ####

    ###############################################################

    (2)Upgrade Database

    #Determine the Upgrade Path if 9.2.0.81-Install Opatch "6880880" to apply the following bug

    5495695

    2-apply 11i patches

    * 5903765 11i.ATG_PF.H.RUP6

    3865683

    5970422

    5910548

    * 9535311 TXK AUTOCONFIG AND TEMPLATES ROLLUP PATCH U

    * 9835302

    * 8815204 INTEROPERABILITY PATCH FOR R11I ON 11.2 RDBMS

    * 5644137

    * 6400762

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    4/15

    3- Prepare to create the 11.2.0 Oracle home

    #RPMrun oracle-validated-1.0.0-22.el5.i386 to check what is needed

    libaio-devel is needed by oracle-validated-1.0.0-22.el5.i386

    sysstat is needed by oracle-validated-1.0.0-22.el5.i386

    unixODBC-devel is needed by oracle-validated-1.0.0-22.el5.i386

    numactl-devel-0.9.8-2.el5.i386

    # /etc/sysctl.conf parameterfs.suid_dumpable = 1

    fs.fs.aio-max-nr = 1048576

    4- Install the base 11.2.0 software ONLY

    #BEFORE INSTALL: "AS root"[root@erpdev ~]$ cd /usr/bin

    [root@erpdev ~]$ mv gcc gcc.old

    [root@erpdev ~]$ mv g++ g++.old

    [root@erpdev ~]$ ln -s gcc34 gcc[root@erpdev ~]$ ln -s g++34 g++

    [root@erpdev ~]$ cd /u01/

    [root@erpdev ~]$ mkdir oracle

    [root@erpdev ~]$ chown oracle:oinstall oracle/

    [root@erpdev ~]$ chmod 775 oracle/

    [root@erpdev ~]$ cd oracle/

    [root@erpdev ~]$ mkdir apps12

    [root@erpdev ~]$ chown oracle:oinstall apps12/

    [root@erpdev ~]$ chmod 775 apps12/

    # Set the oracle home and run the installer[oracle@erpdev ~]$ export ORACLE_HOME=/u01/oracle/apps12/product/11.2.0/dbhome_1

    #Install Oracle Database 11g Products from the 11g Examples CD

    #11g env values[oracle@erpdev ~]$ export ORACLE_HOME=/u01/oracle/apps12/product/11.2.0/dbhome_1;

    [oracle@erpdev ~]$ export PATH=/u01/oracle/apps12/product/11.2.0/dbhome_1/bin:$PATH;

    [oracle@erpdev ~]$ export LD_LIBRARY_PATH=/u01/oracle/apps12/product/11.2.0/dbhome_1/lib;

    [oracle@erpdev ~]$ export

    PERL5LIB=/u01/oracle/apps12/product/11.2.0/dbhome_1/perl/lib/5.10.0:/u01/oracle/apps12/product/11.2.0/dbhome_1/perl/lib

    e_perl/5.10.0;

    #as 11g ENV Create nls/data/9idata directory[oracle@erpdev ~]$ cd /u01/oracle/apps12/product/11.2.0/dbhome_1/nls/data/old

    #add to ".bash_profile"[oracle@erpdev ~]$ export ORA_NLS10=/u01/oracle/apps12/product/11.2.0/dbhome_1/nls/data/9idata

    #apply patches on Oracle new11g Home

    * 8570322

    * 8685327

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    5/15

    * 8761974

    * 8771297

    * 8772028

    * 8796511

    * 8897784

    * 8964142 --> Do not apply any of the patch special instructions. The scripts are run as part of the upgrade

    * 8405205

    ############# DID NOT NEED IT ################ ###

    ## Drop SYS.ENABLED$INDEXES ###

    ## ###

    ##########################################

    #Shut down Applications server processes and database listener

    5- Prepare to upgrade

    # download utlu112i_2.sql from How to Download and Run Oracle's Database Pre-Upgrade Utility [ID 884522.1]

    #Fix Problems Faced:

    (A) Gather statistics

    EXECUTE dbms_stats.gather_schema_stats('CTXSYS',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMN

    SIZE AUTO',cascade=>TRUE);

    EXECUTE dbms_stats.gather_schema_stats('DBSNMP',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUM

    SIZE AUTO',cascade=>TRUE);

    EXECUTE dbms_stats.gather_schema_stats('MDSYS',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMN

    SIZE AUTO',cascade=>TRUE);

    EXECUTE dbms_stats.gather_schema_stats('ORDPLUGINS',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALLCOLUMNS SIZE AUTO',cascade=>TRUE);

    EXECUTE dbms_stats.gather_schema_stats('ORDSYS',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUM

    SIZE AUTO',cascade=>TRUE);

    EXECUTE dbms_stats.gather_schema_stats('OUTLN',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMN

    SIZE AUTO',cascade=>TRUE);

    EXECUTE dbms_stats.gather_schema_stats('SYS',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMNS S

    AUTO',cascade=>TRUE);

    EXECUTE dbms_stats.gather_schema_stats('SYSTEM',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUM

    SIZE AUTO',cascade=>TRUE);

    (B) Database Links

    #save data in SYS.LINK$ in case of downgrade

    && RevokedpriUSERS.xlsx

    (C) Connect Role

    #identify which users and roles in your database are granted the CONNECT role

    SELECT grantee FROM dba_role_privs WHERE granted_role = 'CONNECT' and grantee NOT IN ('SYS', 'OUTLN', 'SYSTEM

    'CTXSYS', 'DBSNMP','LOGSTDBY_ADMINISTRATOR', 'ORDSYS','ORDPLUGINS', 'OEM_MONITOR', 'WKSYS',

    'WKPROXY','WK_TEST', 'WKUSER', 'MDSYS', 'LBACSYS', 'DMSYS','WMSYS', 'EXFSYS', 'SYSMAN',

    'MDDATA','SI_INFORMTN_SCHEMA', 'XDB', 'ODM');

    #and after upgrade grant the required privileges : dblinks.xlsx

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    6/15

    ###############################Did Not NEED THAT###############################

    ### (D) Network ACLs ###

    ### ###

    ### .... USER APPS has dependent objects ###

    ### Identify the following SQL: ###

    ### SELECT * FROM DBA_DEPENDENCIES ###

    ###WHERE referenced_name IN ('UTL_TCP','UTL_SMTP','UTL_MAIL','UTL_HTTP', ###

    ### 'UTL_INADDR') AND owner NOT IN ('SYS','PUBLIC','ORDPLUGINS'); ###

    ##############################################################################

    (E) Check Time Zone to Upgrade After Full Upgrade

    Installing utltzver.sql to 9i $ORACLE_HOME/rdbms/admin

    SQL> conn / as sysdba

    Connected.

    SQL> @utltzver.sql

    Version 1

    (F) make SYSTEM table space auto extend on by:

    select file_id,file_name from dba_data_files where tablespace_name='SYSTEM';

    #Choose files to make it auto extend

    alter database datafile 1 autoextend on maxsize unlimited;

    (G) Make sure of Temp free space

    Resize Command

    ALTER DATABASE DATAFILE 31 RESIZE 500m;

    #and for temp replace 31 with the data file name

    6- Upgrade the database instance(Manual Upgrade)

    1- before upgrade copy pfile from 9i to 11g/dbs and modify it dut to the utlu112i_2.sql report specially the

    "compatible" parameter EXAMPLE "BEFOREinitCLONE.ora"2- shut every process

    3- export 11g env + 9i SID

    4- Steps

    /as sysdba

    SQL>startup upgrade

    #create SYSAUX tablespace with th 9i datafiles

    SQL>CREATE TABLESPACE sysaux DATAFILE '/u01/apps/oracle/proddata/sysaux01.dbf' SIZE 500M REUSE EXTENT

    MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO ONLINE;

    SQL>Spool upgrade.log

    SQL>@catupgrd.sql (under .../rdbms/admin/) --- > it takes about 3 hours on SPARC 8GB

    SQL>@utlu102s.sql --- To see the results of upgrade

    5- Bounce the database

    6- Modify initialization parameters due to Database Initialization Parameters for Oracle Applications Release 11i [ID

    216205.1]

    and restart the database again EXAMPLE "AFTERinitCLONE.ora"

    7-

    SQL> drop database link EDW_APPS_TO_WH;

    8- compile invalids

    SQL> @utlrp.sql

    Run utlrp.sql to recompile any remaining stored PL/SQL and Java code. --- > it takes about 7 hours on SPARC 8GB

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    7/15

    7- After Upgrade

    (1) Time Zone Upgrade

    Script location to check the last available version

    11g $ORACLE_HOME/oracore/zoneinfo

    #Upgrading a time zone file and timestamp with time zone data contains the followingsteps:

    1. Shut down the database.

    2. Start up the database in UPGRADE mode.

    4. Execute DBMS_DST.BEGIN_UPGRADE(11);

    5- shutdown immediate;

    6- startup

    7- to check the changes and the current state

    select property_name, substr(property_value, 1, 30) value from database_properties where property_name like 'DST

    order by property_name;8- check the will be updated table isa

    select owner, table_name, upgrade_in_progress from all_tstz_tables where owner='SYSMAN';

    9- ***Run The coming Mandatory even if the last query returns Null***Update the tables

    set serveroutput on;

    declare num_of_failures number;

    begin

    dbms_dst.upgrade_database(num_of_failures);

    dbms_output.put_line(num_of_failures);

    dbms_output.put_line(num_of_failures);

    end

    ;

    /

    10- End Upgrade

    set serveroutput on;

    declare num_of_failures number;

    begin

    dbms_dst.end_upgrade(num_of_failures);

    dbms_output.put_line(num_of_failures);

    dbms_output.put_line(num_of_failures);

    end

    ;/

    (2)Upgrade Statistic Tables

    EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE('APPLSYS', 'FND_STATTAB');

    #################DID NOT NEED ###########

    ###Install Oracle Data Mining and OLAP ###

    #########################################

    (3)Fix Korean lexers (conditional)

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    8/15

    sqlplus "/ as sysdba" @$ORACLE_HOME/ctx/sample/script/drkorean.sql

    (4)Create and Start the new database listener

    make Directory "SID_hosname" under the network/admin then Create Listner called CLONE[oracle@erpdev ~]$ export TNS_ADMIN=/u01/oracle/apps12/product/11.2.0/dbhome_1/network/admin/CLONE_erpdev

    [oracle@erpdev ~]$ netca

    #start the listener

    lsnrctl start

    (5)Run adgrants.sql

    Copy $APPL_TOP/admin/adgrants.sql

    sqlplus "/ as sysdba" @adgrants.sql APPS

    (6)Grant create procedure privilege on CTXSYS

    Copy $AD_TOP/patch/115/sql/adctxprv.sql

    sqlplus apps/apps @adctxprv.sql manager CTXSYS

    # Set CTXSYS parameter

    $ sqlplus "/ as sysdba"

    SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public');

    (7)Implement and run AutoConfig

    [oracle@erpdev ~]$ cd /u01/oracle/apps12/product/11.2.0/dbhome_1/

    [oracle@erpdev ~]$ cp /u01/apps/applmgr/prodappl/admin/out/appsutil.zip .

    #as Oracle user and 11g env(home-path-sid-TNS_ADMIN "make sure that Oracle home does not end with / make i

    like --> ../db_1") -

    #after copying ADMIN_TOP/out/appsutil.zip to ORACLE_HOME AND extracting it

    #from ../appsutil/bin:[oracle@erpdev ~]$ perl adbldxml.pl tier=db

    [oracle@erpdev ~]$ perl adconfig.pl contextfile=../ EX: CLONE_erpdev.xml

    (8)Gather statistics for SYS schema

    Copy $APPL_TOP/admin/adstats.sql

    $ sqlplus "/ as sysdba"

    SQL> shutdown normal;

    SQL> startup restrict;

    SQL> @adstats.sql

    SQL> shutdown normal;

    SQL> startup;

    SQL> exit;

    8- Additional apps steps

    (1)Apply Oracle Human Resources (HRMS) patch

    7721754

    (2)With Adadmin Re-create grants and synonyms

    (3)fix ORA-29532 after database upgrade in APPS environment

    #Check first

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    9/15

    select owner,object_name, object_type from dba_objects where object_name

    in('DBMS_XMLQUERY','DBMS_XMLSAVE','XMLGEN','DBMS_XMLGEN');

    #Then

    Drop package apps.DBMS_XMLQUERY;

    Drop package apps.DBMS_XMLGEN;

    Drop package apps.DBMS_XMLSAVE;

    Drop package apps.XMLGEN;

    Drop public synonym DBMS_XMLQUERY;

    Drop public synonym DBMS_XMLSAVE;Drop public synonym DBMS_XMLGEN;

    Drop public synonym XMLGEN;

    Create public synonym DBMS_XMLQUERY for sys.DBMS_XMLQUERY;

    Create public synonym DBMS_XMLSAVE for sys.DBMS_XMLSAVE;

    Create public synonym DBMS_XMLGEN for sys.DBMS_XMLGEN;

    Create public synonym XMLGEN for sys.DBMS_XMLGEN;

    Unsupported Products with 11i on 11g

    1. Oracle Enterprise Planning and Budgeting (EPB)

    2. Oracle Enterprise Data Warehouse (EDW)

    3. Oracle Balance Scorecard Expert (BSC Expert).

    9- Enterprise Manager

    ### #Create password file

    @@ you may need to create password file

    @@remote_login_passwordfile=NONE

    reboot DB

    @@orapwd file=/home/apps/oracle/rhel1db/9.2.0/dbs/orapw password=sys entries=4

    set again

    @@remote_login_passwordfile=EXCLUSIVE

    ####create both DB Control Configuration Files and DB Control Repository byemca -config dbcontrol db -repos create

    #### To Delete or drop EM

    emca -deconfig dbcontrol db -repos drop

    #### control EM with:

    emctl start|status|stop dbconsole

    ####after creating em console

    alter user dbsnmp identified by dbsnmp account unlock

    restart dbconsol

    (3) Upgrade Application

    1- OS Prepare

    #RPMxorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386

    #SYSTEM Parameter /etc/sysctl.confParameter Value

    kernel.semmsl 256 ----

    kernel.semmns 32000

    kernel.semopm 100

    kernel.semmni 142

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    10/15

    kernel.shmall 2097152

    kernel.shmmax Half the size of the physical memory (in bytes), and at least 2147483648

    kernel.shmmni 4096

    kernel.msgmax 8192

    kernel.msgmnb 65535

    kernel.msgmni 2878

    fs.file-max 131072

    net.ipv4.ip_local_port_range 10000 65000

    net.core.rmem_default 262144net.core.rmem_max 4194304

    net.core.wmem_default 262144

    net.core.wmem_max 262144

    #apply p6078836_101330_LINUX.zipLink to Motif library for Oracle Application Server 10.1.2 (on Oracle Linux 5 and RHEL 5 only)[root@erpdev ~]$ unlink /usr/lib/libXtst.so.6

    [root@erpdev ~]$ ln -s /usr/X11R6/lib/libXtst.so.6.1 /usr/lib/libXtst.so.6

    if run ldconfig -v reply this step

    2- 11i preparation

    #Apply 11i.AD.I.7 & TUMS patches:7429271

    7705743

    #run TUMS Report and open it to revise which step you will do in the following stepssqlplus apps/apps @adtums.sql /usr/tmp

    #Prepration script in patch7197489

    A- sqlplus apps/apps @adgncons.sql apps appsB- edit the adcrtbsp.sql created script by changing the path of new tablespace created

    sqlplus system/manager @adcrtbsp.sql

    C- run adgrants.sqlsqlplus /nolog

    @adgrants.sql apps

    #Run Concurrent Request toGather schema statistics for ALL

    3- Run Rapid Install

    #Execute the Following while the DB and listener are UP and 11i services are DOWN1- Choose to upgrade > install file system > input the upgrade DB Info (Port-SID,Hostname)

    2- enter the rest parameter (Apps user and new pathes "Again new pathes for the new APPL-COMMON- ORACLE HOM

    - ORA")

    Don't care abou DB oracle home installed that u won't use later and you will use the upgraded Home

    3- After finishing run Rapidwiz again and choose Upgrade > Config and give him the path

    appl/admin/~~~~~~~.xml> and he will run Autoconfig and will finish with all OK except the "Login Page"

    #Drop MRC schema

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    11/15

    cd APPL_TOP/admin

    sqlplus system/manager @addrpmrc.sql apps FORCE

    #Apply db Patches

    * 8328200

    * 8993052

    * 9081430

    * 9218789

    opatch napply -skip_subset -skip_duplicate

    ## There is post steps

    * 9318214

    * 9500046

    * 9535951

    * 9644960

    * 9657344

    ## There is post steps

    * 9719541

    * 9756939

    ########### DID NOT NEED IT ######

    ##Apply Oracle Service Patch: ######

    ##5880762 ######

    ###############################

    #Apply parametr changes as required in Notes

    Database Initialization Parameters for Oracle Applications Release12396009.1

    Database Preparation Guidelines for an E-Business Suite Release 12.1.1 Upgrade761570.1

    Before Upgrade I have add*._disable_fast_validate=TRUE

    *._shared_pool_reserved_min_alloc=4100

    *._sqlexec_progression_cost=2147483647

    After I have removed them

    EX:

    initCLONE.oraAF

    initCLONE.oraBEF

    Issue

    alter user APPLSYSPUB IDENTIFIED BY PUB account unlock;Return back the ldlibrary

    ln -s /usr/bin/ld_old /usr/bin/ld

    4- Upgrade Steps

    WITH 12 ENV

    Enable Maintenance Mode

    #Apply Patch 7461070

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    12/15

    if failed run it With the comming command and don't care to R12.AD.A pre patch

    adpatch options=nocopyportion,nogenerateportion

    Then re apply it normal again

    #Apply Full Upgrade

    Before running upgrade patch u can do :

    ** While Running worker fail because :ORA-33292 Insufficient permissions to access analytic workspace APPS.ODPCOFollow Note [ID 1054417.1] PATCH 6678700 WORKER FAILS ORA-33292 INSUFFICIENT PERMISSIONS APPS.ODPCOD

    ORA-33262 Analytic workspace ODPCODE does not exist

    begin

    dbms_aw.execute('aw create odpcode');

    end;

    # u6678700.drv[applmgr@erpdev ~]$ cd /u01/oracle/apps/apps_st/appl/au/12.0.0/patch/115/driver

    [applmgr@erpdev ~]$ adpatch options=nocopyportion,nogenerateportion

    Trouble Shooting

    ##if worker fail to

    (A)ORA-00054: resource busy and acquire with NOWAIT specified

    ##check the blocked object

    select object_name from all_objects

    where object_id in (select object_id from v$locked_object)

    and upper(object_name) like 'FND%';

    ## get session ID from

    select * from v$locked_object;

    ## and kill it's session by any tool like PL/SQL Developer and restart the worker

    Tools>sessions

    (B) Skip errors

    ORA-20001: The name 'CALCULATION_HOURS_WORKED' is already used by a Function

    5- after upgrade

    #the Advanced Supply Chain Planning (ASCP) executables.To fix this problem, users are required to replace the following line under the Linux

    section of the $AD_TOP/bin/adrelinknew.sh:

    CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh'

    with

    CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh -Wl,--noinhibit-exec'

    After making this change, users are then required to run the adadmin utility and relink application executables.

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    13/15

    #NLS1- adadmin > mantain multilangual step for make sure

    2- apply the following patches

    8576725

    NLS V16151-01

    #Copy jre from $ORACLE_HOME/jdk to appsutil directory

    cd $ORACLE_HOME/appsutilcp -r ../jdk/jre .

    #12.1.3 pre and post patches:

    9239089

    9239090

    9239095

    98177709966055

    7303032 Online Help for Oracle E-Business Suite 12.1.2 Release Update Pack (RUP2)

    6746000 arabic online Help

    #Auto ConfigRun AutoConfig on the APPL_TOP.

    Run the admkappsutil.pl utility to create the file appsutil.zip in the /admin/out directory.

    perl /bin/admkappsutil.pl

    Run AutoConfig on the ORACLE_HOME after extracting appsutil.zip in it

    Useful and helpful at

    How To Get A Clean Autoconfig Environment [ID 391406.1]

    perl /bin/adgentns.pl appspass= contextfile= -removeserver

    Login Workaround

    http://erpdev.customs.gov.qa:8000/OA_HTML/fndvald.jsp?username=sysadmin&password=sysadmin

    Login wrong redirection

    Profile Options

    POS: Internal URL

    Application Framework Agent for GUEST

    6- Requesting Translation Synchronization Patches [ID 252422.1]

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    14/15

    Apply Translation patch

    EX: p11674631_R12_ar

    (4) After Application Upgrade

    ## Arabic fonts in Concurrent output

    1-Autoconfig values in OAM

    (NLS_LANG - Tools OH NLS_LANG - iAS OH NLS_LANG)= AR8ISO8859P6 *Even if the DB is AR8MSWIN1256 *

    Then Run Auto config

    2- Edit the following files

    (A)$FND_TOP/resources/pasta.cfg

    #ADD

    direction=rtl

    dolayout=n

    doshaping=y

    bidi_algorithm=oracle#Modify to be

    %% ============== Font Name ======================== %%Font.Default.Plain=//ADUO.ttf ==> Put the physical path for /

    Font.Default.Bold=//ADUOB.ttf ==> Put the physical path for /

    ============= Language Specific Settings ============== %%Font.Default.Plain=//ADUO.ttf ==> Put the physical path for /

    Font.Default.Bold=//ADUOB.ttf ==> Put the physical path for /

    3- PSTDL.prt, PSTLL.prt, PSTPL.prt, PSTWL.prt, L.prt, W.prt, and P.prt in $FND_TOP/reports should contain the followi

    layout:

    nls locale "arabic"

    nls datastorageorder "logical"

    nls contextuallayout "no"nls contextualshaping "yes"

    code "4" esc "[4m"

    code "5" esc "[5m"

    4-From the System Administrator responsibility

    >Install >Viewer Options

    ADD new record

    File Format: 'Text'

    Mime Type: 'apps/bidi'

    Description: 'Pasta Viewer for bi-di'thetype of the printer to be:

    --Pasta Universal instead of Pasta Post Script

    4- Set the profile option:

    'Viewer: Application for Text' = 'Pasta viewer for bi-di'

    'Viewer: Text' to 'Browser'.

    FND: NATIVE CLIENT ENCODING= AR8ISO8859P6

    ICX: Client IANA Encoding = Arabic (ISO-8859-6)

  • 5/26/2018 Upgrade 11.5.10.2 to 12.1.3 Database and E-business suite

    15/15

    ## Apply HR Patch

    9765011_R12.PER.B_R12

    ##Delete obsolete products which appears in adadminDELETE FROM FND_PRODUCT_INSTALLATIONS WHERE APPLICATION_ID IN (505,506,875);

    ### XML Standard report Issue

    1-Edit the Temp path if it doesnt exist

    XML Publisher Administrator: Home > Administration >Properties -> General -> Temporary Directory

    Output Post Processor Log File Contains java.io.FileNotFoundException (No such file or directory)Error [ID 463388.1]

    !!!! /u01/oracle/inst/apps/CLONE_erpdev/ora/10.1.3/j2ee/oacore/configOc4j.properties

    #http.proxyHost=

    #http.proxyPort=

    ##### cash management request issue

    Apply solution in note

    MSCPLD - Loader Worker With Direct Load Option Errors With usdsop: exec failed during spawnsqllPermission denied APP-FND-01630 [ID 1081447.1]

    ### Purchasing patches990700910329412#### Financial Patch

    8768005

    ####DB Patch

    8730312

    ===================

    ## Gather schema statistics issue as noted in

    Gather Schema Statistics fails with Ora-20001 errors after 11G database upgrade