一、Oracle APP和DB的基本信息
1、应用和数据库环境:
Application Node in Linux7.3
Database Node on Linux 7.3
2、Oracle EBS 应用版本:
R12.2.6 on Linux7.3 x_86(64bit)
3、数据库信息:
Oracle Database R12.1.0.2 on Linux 7.3 x_86(64bit)
二、实现步骤
--(1)创建cux用户 createuserCUXIDENTIFIEDBYCUX DEFAULTTABLESPACEAPPS_TS_TX_DATA TEMPORARYTABLESPACETEMP1 PROFILEDEFAULT ACCOUNTUNLOCK; --(2)给出现用户授权 GRANTCONNECT,RESOURCetoCUX; GRANTCREATEANYCONTEXTTOCUX; GRANTCREATEANYTYPetoCUX; GRANTCREATECLUSTERTOCUX; GRANTCREATEDATABASELINKTOCUX; GRANTCREATEDIMENSIONTOCUX; GRANTCREATEINDEXTYPetoCUX; GRANTCREATELIBRARYTOCUX; GRANTCREATEMATERIALIZEDVIEWTOCUX; GRANTCREATEOPERATORTOCUX; GRANTCREATEPROCEDURetoCUX; GRANTCREATEPUBLICSYNONYMTOCUX; GRANTCREATESEQUENCetoCUX; GRANTCREATESYNONYMTOCUX; GRANTCREATETABLetoCUX; GRANTCREATETRIGGERTOCUX; GRANTCREATETYPetoCUX; GRANTCREATEVIEWTOCUX; 2、在Oracle官方网站下载3636980补丁,补丁为p3636980_R12_GENERIC.zip。 3、解压补丁p3636980_R12_GENERIC.zip,并将一下三个文件从p3636980_R12_GENERIC\3636980\izu\admin 下copy到当前用户的desktop/下。文件如下: izuprod.txt izuterr.txt newprods.txt 4、izupord.txt重命名为cuxprod.txt,izuterr.txt重命名为cuxterr.txt。相关命令如下: mvizupord.txtcuxprod.txt mvizuterr.txtcuxterr.txt 5、使用文本编辑器打开cuxprod.txt文件,将izu替换为cux,将IZU替换为CUX. %%%splicercontrolfileformat12.0.A # #$Header:newprods.txt120.12006/09/2012:57:45jaobriennoship$ # # #SectionforOracleSupportDiagnosticTools product=cux base_product_top=*APPL_TOP* oracle_schema=cux sizing_factor=100 main_tspace=APPS_TS_TX_DATA index_tspace=APPS_TS_TX_IDX temp_tspace=TEMP1 default_tspace=APPS_TS_TX_DATA #endofOracleSupportDiagnosticTools 6、使用文本编辑器打开cuxprod.txt,完成一下操作: (1)将cuxprod.txt文档中所有的izu替换为cux,IZU替换为CUX。 (2)修改产品的applID,将278修改为50000以上没有被使用的APPLID。检查APPLID的sql语句如下:
sql>select decode(count,'SelectednumberisAvailable','Selectednumberalreadyin use')Status,&&enter_custom_applID selected_number from ( selectcount(*)ascountfrom ( select'x'fromfnd_oracle_userid whereoracle_id=&&enter_custom_applID union select'x'fromfnd_application whereapplication_id=&&enter_custom_applID) ); 如果想将278修改为50303,那么就在enter_custom_applID输入50303。若出现SelectednumberisAvailable 表示50303可用。
7、使用文本编辑器打开cuxterr.txt,执行如下操作:
(1)将izu替换为cux,将IZU替换为CUX 。
(2)将 Oracle_Support_Diagnostic_Tools 修改为 abcd_custom_appl
8、将以下三个文件拷贝到$APPL_TOP/admin 目录下。
cuxprod.txt
cuxterr.txt
newprods.txt
9、切换到$APPL_TOP/admin目录下,执行如下命令
$adsplice copyright(c)2002,2012OracleCorporation RedwoodShores,California,USA ADSplicer Version12.2.0 NOTE:Youmaynotusethisutilityforcustomdevelopment unlessyouhavewrittenpermissionfromOracleCorporation. Yourdefaultdirectoryis'/home/oraebs/apps/PROD/fs1/EBSapps/appl'. IsthisthecorrectAPPL_TOP[Yes]? ADSplicerrecordsyourADSplicersessioninatextfile youspecify.EnteryourADSplicerlogfilenameorpress[Return] toacceptthedefaultfilenameshowninbrackets. Yourdefaultdirectoryis'/u01/app/oracle/fs1/EBSapps/appl'. IsthisthecorrectAPPL_TOP[Yes]? Filename [adsplice.log]:adsplice_xxont.log Youare abouttoinstallorupgradeOracleE-BusinessSuiteproducttables inyourORACLEdatabase'D599' usingORACLEexecutablesin'/u01/app/oracle/fs1/EBSapps/10.1.2'. Isthisthecorrectdatabase[Yes]? Enter thepasswordforyour'SYstem'ORACLEschema: Enter theORACLEpasswordofApplicationObjectLibrary[APPS]: Please enterthedirectorywhereyourADSplicercontrolfileislocated. Thedefaultdirectoryis[/u01/app/oracle/fs1/EBSapps/appl/admin]: PleaseenterthenameofyourADSplicercontrolfile[newprods.txt]: Doyou wishtoregenerateyourenvironmentfile[Yes]? Checking ifAutoConfigisenabled.... Running AutoConfigon:Allproducts...
11、通过以下sql语句,检查 adsplice 和 autoconfig 执行后的结果。
select*fromfnd_applicationwhereapplication_short_name='CUX'; select*fromfnd_product_installationswhereAPPLICATION_ID=50303; select*fromdba_userswhereusername='CUX';
$env|grepXXONT XXONT_TOP=/u01/app/oracle/fs1/EBSapps/appl/xxont/12.0.0 $ls$XXONT_TOP adminlogmesgoutsql
如果您正在使用共享的APPL_TOP,则需要在其中一个节点上执行所有这些过程,然后在其他节点上运行 autoconfig。你不必重新运行adsplice。如果APPL_TOP未共享,请重复步骤8,9,10和11。