oracle ebs系统match,oracle ebs database升级11.1.0.7到11.2.04-

EBS R12.1.3 - DatabaseUpgrade 11.1.0.7 to 11.2.0.4·Interoperability NotesEBS 12.0 and 12.1 with Database 11gR2 (Doc ID 1058763.1)·Complete Checklist toUpgrade the Database to 11gR2 Using DBUA (Doc ID 870814.1)·Patchset 13390677 –Oracle Database 11.2.0.4 SoftwareAppsTier– Oracle EBS R12.1.3 on Oracle Linux EL 6.7 64bitDatabaseTier– Database 11.1.0.7 on Oracle Linux EL 6.7 64bitInstanceName: VISAccounts– applmgr (Apps Tier) and oravis (DB tier)HostNames: ebsapps.oracle (Apps tier) and ebsdb.oracle(db tier)RequiredPatches download:·Patch 8919489·Patch 9738085·Patch 9852070·Patch 1268661011.2.0.4 – Patches:·Patch 4247037·Patch 17402822·Patch 17468141·Patch 17501296·Patch 17892268·Patch 19393542·Patch 9151516 (Optional for EDI Gate way)ApplicationEnvironment set to applmgr user (VIS_ebsapps.env)DatabaseEnvinoment set to oravis user(VIS_ebsdb.env)

Check OraTab:$cat /etc/oraTab – On DB TierIgnore this, if it available it should be “NO” as autostartAuto Config Check:·Validate the patchapplied status,select * from ad_bugswhere bug_number in( '8919489', '9738085', '9852070',’12686610')·If not applied,Login Apps tier withapplmgr account and enable maintenance mode$ adadmin -·Apply below patcheswith adpath, follow the sequence$/mnt/software/Patches/9738085$ adpatchoPatch 8919489 – Should be applied with 12.1.3 upgrade patchsetAfter Apply, complete bellow process:1.1. On the Application Tier (as the APPLMGRuser):1.1.1. Source the environment file.1.1.2. Create the appsutil.zip file by executing:$ADPERLPRG $AD_TOP/bin/admkappsutil.pl(On Windows: %ADPERLPRG% %AD_TOP%\bin\admkappsutil.pl)This will create appsutil.zip under $INST_TOP/admin/out1.2.    On the Database Tier (as the ORACLE user):1.2.1. Copy or FTP the appsutil.zip file to the1.2.2. cd $ORACLE_HOME1.2.3. $unzip -o appsutil.zip1.2.4. Run AutoConfig by executing:              $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh·Apply Patch 9738085$/mnt/software/Patches/9738085$ adpatch·Patch 9852070$/mnt/software/Patches/9852070$ adpatch·Patch 12686610$/mnt/software/Patches/12686610$ adpatch-This will run theautoconfigValidate all patch logs for errors andwarnings.

Apply patch:·Apply patch 6400501(conditional):Apply with Opatch –Check Read meStop Services:·Stop Applications –Apps tier$ cd$ADMIN_SCRIPTS_HOME$ adstpall.sh apps/apps·Shutdown database –Database tierSqlplus / as sysdbaSql> shutdownimmediate·Stop listeners –Database tier$ lsnrctl stop

·Take context filebackupApps tier:$ cp$INST_TOP/appl/admin/VIS_ebsapps.xml $INST_TOP/appl/admin/VIS_ebsapps.xml_beforedbupdateDB Tier:·$cp$ORACLE_HOME/appsutil/VIS_ebsdb.xml$ORACLE_HOME/appsutil/VIS_ebsdb.xml_beforedbupdate11gR4 Install – Software Only:·Remove the environmentfile (env) from bash_profile for oravis user if you are going to use same accountfor 11.2.0.4 database (recommended to oravis account, because EBS Database wasinstalled by using same account. All other files are owned by same account)$vi .bash_profleComment bellow line# . /u01/oraR12/VIS/db/tech_st/11.1.0/VIS_ebsdb.envSave and ExitLogout and login backto oravis account.$echo $ORACLE_HOMEAbove command shouldreturn nothing·Use the VNS session orinstall at server location, you should not lose the session while upgrading thedatabase, it takes time based on your database size, Vision instance is around200 GB.·Create new directorymkdir /u01/oraR12/VIS/db/tech_st/11.2.0$chmod 775 –r  /u01/oraR12/VIS/db/tech_st/11.2.0·Set following variables$exportORACLE_BASE=/u01/oraR12/VIS/db/tech_st$export ORACLE_SID=VIS$export ORACLE_HOME=/u01/oraR12/VIS/db/tech_st/11.2.0$exportPATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH$exportLD_LIBRARY_PATH=$ORACLE_HOME/lib$exportPERL5LIB=$ORACLE_HOME/perl/lib/5.10.:$ORACLE_HOME/perl/lib/site_perl/5.10.0$export  OPTACH_HOME=$ORACLE_HOME/OPatch·Install 11gR4 -  software only with “oravis” account$cd /mnt/software/software/database– database software location$./runInstallerIgnore Step1 & 2Step3: Select “Install database softwareonly”Step6: Select “Enterprice Edition” –Vision Instance installed on EE

·Verify Installation,log file will be located at oraInventory/log/Install Screens:Welcome Screen:

Install1.jpg

Install2.jpg

Install3.jpg

Install4.jpg

Install5.jpg

Install6.jpg

Install7.jpg

Install8.jpg

Install9.jpg

Install10.jpg

Install11.jpg

Create nls/data/9idata directory:·Execute followingcommand on new database 11.2.0.4$ perl$ORACLE_HOME/nls/data/old/cr9idata.pl

·After creating thedirectory, make sure that the ORA_NLS10 environment variable is set to the fullpath of the 9idata directory whenever you enable the 11g Oracle home. $exportORA_NLS10=$ORACLE_HOME/nls/data/9idataApply Additional 11.2.0.4 RDMSPatches:·Opatch - Applyadditional 11.2.0.4 RDBMS patches – Database tier$cd $HOME/Patches –Make sure opatch is in pathoPatch 4247037oPatch 17402822oPatch 17468141oPatch 17501296§Postinstallation§$cd 17501296§$ sqlplus /nolog§SQL> CONNECT / AS SYSDBA§SQL> @postinstall.sql§Check the output for any errorsoPatch 17892268oPatch 19393542

·Set new optatch path:$cd $ORACLE_HOME/OPatch$exportPATH=$PATH:$ORACLE_HOME/OPatch

·Apply 4247037 Opatch:$cd/mnt/software/RDBMS_patches/4247037$opatch apply

·Apply 17402822 Opatch:$cd/mnt/software/RDBMS_patches/17402822$opatch apply·Apply 17468141 Opatch:$cd/mnt/software/RDBMS_patches/17468141$opatch apply

·Apply 17501296 Opatch:$cd/mnt/software/RDBMS_patches/17501296$opatch apply

·Apply 17892268 Opatch:$cd/mnt/software/RDBMS_patches/17892268$opatch apply

·Verify patchapplication statusBack up old TNS:Need to check:$cp -r/u01/oraR12/VIS/db/tech_st/11.1.0/network/admin/VIS_ebsdb/u01/oraR12/VIS/db/tech_st/11.2.0/network/admin/

Start Old Database:·Login with oravisaccount$ ./appsora.env$sqlplus / as sysdbaSQL> startupNote:Do not start the listeners and makesure all application services are down.

Pre Upgrade Process:·Copy utlu112i.sql (Fromnew database):$Login with oravis andset new database 11.2.0.4 env values$cp $ORACLE_HOME/rdbms/admin/utlu112i.sql$HOME/$cd $HOME$ ./appsora.env (frombash_profile)$ sqlplus '/ as sysdba'SQL> spoolupgrade_info.logSQL> @utlu112i.sqlSQL> spool offReview the IssuesIssues:·WARNING: --> Yourrecycle bin contains 3011 object(s)..... It is REQUIREDthat the recycle bin is empty prior to upgrading.... yourdatabase.  The command:PURGEDBA_RECYCLEBIN.... must be executedimmediately prior to executing your upgrade.Sol:     SQL> purge dba_recyclebin;

·Remove hidden parameters:To view existing hiddenparameters execute the following command while connected AS SYSDBA:SQL>hidden_parameters.logSQL> SELECTname,description from SYS.V$PARAMETER WHERE name LIKE '\_%' ESCAPE '\' ;SQL> spool offSQL>Create pfile from spfileand commend out all the lines starting with _Shutdown the databaseCreate spfile frompfilecomment all hiddenparametersStartup the databaseRun the sql above andmake sure it returns no rows.

·Review events:Oracle recommendsreviewing any defined events prior to upgrading. To view existing non-defaultevents execute the following commands while connected AS SYSDBA:Events:SQL> SELECT(translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2 WHERE  UPPER(name) ='EVENT' AND  isdefault='FALSE' ;no rows selectedSQL> SELECT(translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2 WHERE UPPER(name)= '_TRACE_EVENTS' AND isdefault='FALSE' ;no rows selectedSQL>

·Invalid Objects recompile – Source databaseSQL> select count(1)from dba_objects where status='INVALID';If it returns more thanzeroSQL> connect"/ as sysdba"SQL> @utlrp.sqlNote: If any others issues needs to resolvebefore upgrading.

·Optimizer Statistics:$ sqlplus "/assysdba"SQL> EXECDBMS_STATS.GATHER_DICTIONARY_STATS;Note: Do not shutdown source database and newdatabase

Listeners Stop:·Stop Listeners – SourceDatabase$lsnrctl stop

·Remove Local Listenersfrom Source Database$sqlplus / as sysdbaSQL>create pfilefrom spfile;$cd $ORACLE_HOME/dbs$ls -lrt$vi initVIS.oraAnd remove line frompfile*.local_listener='VIS'Save and exit

·oratab file edit  it should be old oracle home path andadditionally end must be Y$vi /etc/oratabVIS:/u01/oraR12/VIS/db/tech_st/11.1.0:Y

·Save and exitDatabase Upgrade -11.2.0.4:·Set following values:$exportORACLE_BASE=/u01/oraR12/VIS$export ORACLE_SID=VIS$exportORACLE_HOME=/u01/oraR12/VIS/db/tech_st/11.2.0$exportLD_LIBRARY_PATH=$ORACLE_HOME/lib;$exportTNS_ADMIN=/u01/oraR12/VIS/db/tech_st/11.2.0/network/admin/VIS_ebsdb$exportORA_NLS10=$ORACLE_HOME/nls/data/9idata$PERL5LIB=/u01/oraR12/VIS/db/tech_st/11.2.0/perl/lib/5.10.0:/u01/oraR12/VIS/db/tech_st/11.2.0/perl/lib/site_perl/5.10.0:$ORACLE_HOME/appsutil/perl$exportPATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin$exportPATH=$ORACLE_HOME/perl:$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/bin:$PATH

·Invoke the dbua$cd $ORACLE_HOME/bin./dbua

Follow the screens.Validate all log filesScreens:

dbua1.jpg

dbua2.jpg

dbua3.jpg

dbua4.jpg

dbua5.jpg

dbua6.jpg

dbua7.jpg

dbua8.jpg

dbua9.jpg

dbua10.jpgAfter Upgrade:·After complete updaterestarts the database:$sqlplus / as sysdbaSQL> shutdown immediateSQL> startupSQL> exit

·Listeners Validation:$lsnrctl stop VIS$lsnrctl start VIS

·Run adgrants.sql:If it is not updated one copy $APPL_TOP/admin/adgrants.sqlfrom apps tier to DB tier$cp $HOME < adgrants copied oravis user home location>$sqlplus / as sysdba·SQL>@adgrants.sqlappsDatabase Validation:dv1.jpg

CTXSYS Changes:·Copy the adctxprv.sqlfile to db tier from apps tierLogin Apps tier copy file from $AD_TOP/patch/115/sql/locationCopy to oravis home location on db tier (through winscp orothers)Login to db tier with$cd $HOMEExecute: sqlplus apps/[APPS password] @adctxprv.sql \[SYSTEM password] CTXSYS$sqlplus apps/apps @adctxprv.sql \ manager CTXSYS

·Set CTXSYS parameter:$sqlplus / as sysdbaSQL> execctxsys.ctx_adm.set_parameter('file_access_role', 'public');Validate Workflow Rule:·Copy the wfaqupfix.sqlfile to db tier from apps tierLogin Apps tier copy file from $FND_TOP/patch/115/sql/locationCopy to oravis home location on db tier (through winscp orothers)Login to db tier with$cd $HOMEExecute: sqlplus [APPS user]/[APPS password]@wfaqupfix.sql\ [APPLSYS user] [APPS user]$sqlplus apps/apps @ wfaqupfix.sql \ applsys appsCopy Autoconfig:·Copyappsutil.zipfrom apps tier, if not exist create new oneLogin to apps tier withapplmgr account$perl$AD_TOP/bin/admkappsutil.plappsutil.zip will be createdCopyappsutil.ziptooravis home location on db tier (through winscp or others)Login to db tier with oravis$cd $ORACLE_HOME or/u01/oraR12/VIS/db/tech_st/11.2.0$cp $HOME/appsutil.DB JRE Copy:·Copy JRE folder fromsource database to new databaseLogin to db tier withoravis$cp -r/u01/oraR12/VIS/db/tech_st/11.1.0/appsutil/jre/u01/oraR12/VIS/db/tech_st/11.2.0/appsutil/New Context File:·Generate the DatabaseContext File$perl$ORACLE_HOME/appsutil/bin/adbldxml.plRequired apps password

Note: Error - Perl libversion (5.10.0) doesn't match executable version (v5.10.1) at Workaround -$export ORACLE_HOME=/u01/oraR12/VIS/db/tech_st/11.2.0 export$PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/site_perl/5.10.0:$ORACLE_HOME/appsutil/perlexport PATH=$ORACLE_HOME/perl:$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/bin:$PATHDB Auto Config:·Auto Config on newdatabaseLogin to apps tier withapplmgr account$cd $ADMIN_SCRIPTS_HOME$adstpall.sh apps/appsLogin to db tier withoravis$cd$ORACLE_HOME/appsutil/scripts$adautocfg.shOR·Run adconfig  on the Database tier from xml file (it willcreate environment file for db tire )$ORACLE_HOME/appsutil/bin/adconfig.shcontextfile=/u01/oraR12/VIS/db/tech_st/11.2.0/appsutil/VIS_ebsdb.xml

·Stop All services on DBtier$sqlplus / as sysdbaSQL> shutdownimmediateSQL> exit$lsnrctl stop

·Start all services onDB tier$sqlplus / as sysdbaSQL> startupSQL> exit$lsnrctl startNote:Database is started with all new configuration

Gather statistics for SYS schema:·Copy the adstats.sqlfile to db tier from apps tierLogin Apps tier copy file from $APPL_TOP/admin/ locationCopy to oravis home location on db tier (through winscp orothers)Login to db tier with oravis account$cd $HOME$ sqlplus "/ as sysdba"SQL> alter system enable restricted session;SQL> @adstats.sql

$ sqlplus "/ as sysdba"SQL> alter system disable restricted session;SQL> exit;

Apps Autoconfig:·Auto config on Appstier$login to apps tierwith applmgr account$cd $ADMIN_SCRIPTS_HOME$adstpall.sh apps/apps$adautocfg.sh$adstrtal.sh apps/appsNote: Apps tier and DB Tier started with allnew configuration

app1.jpg

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值