標籤:客制化 oracle ebs12.2.6 cux
一、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使用者,並授權。相關命令如下:
--(1)建立cux使用者 CREATE USER CUX IDENTIFIED BY CUX DEFAULT TABLESPACE APPS_TS_TX_DATA TEMPORARY TABLESPACE TEMP1 PROFILE DEFAULT ACCOUNT UNLOCK; --(2)給出現使用者授權 GRANT CONNECT, RESOURCE TO CUX; GRANT CREATE ANY CONTEXT TO CUX; GRANT CREATE ANY TYPE TO CUX; GRANT CREATE CLUSTER TO CUX; GRANT CREATE DATABASE LINK TO CUX; GRANT CREATE DIMENSION TO CUX; GRANT CREATE INDEXTYPE TO CUX; GRANT CREATE LIBRARY TO CUX; GRANT CREATE MATERIALIZED VIEW TO CUX; GRANT CREATE OPERATOR TO CUX; GRANT CREATE PROCEDURE TO CUX; GRANT CREATE PUBLIC SYNONYM TO CUX; GRANT CREATE SEQUENCE TO CUX; GRANT CREATE SYNONYM TO CUX; GRANT CREATE TABLE TO CUX; GRANT CREATE TRIGGER TO CUX; GRANT CREATE TYPE TO CUX; GRANT CREATE VIEW TO CUX;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.txt4、izupord.txt重新命名為cuxprod.txt,izuterr.txt 重新命名為cuxterr.txt。相關命令如下: mv izupord.txt cuxprod.txt mv izuterr.txt cuxterr.txt 5、使用文字編輯器開啟cuxprod.txt檔案,將izu替換為cux,將IZU替換為CUX . %%% Splicer control file format 12.0.A # # $Header: newprods.txt 120.1 2006/09/20 12:57:45 jaobrien noship $ # # # Section for Oracle Support Diagnostic Tools 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 # end of Oracle Support Diagnostic Tools 6、使用文字編輯器開啟cuxprod.txt,完成一下操作: (1)將cuxprod.txt文檔中所有的izu替換為cux,IZU替換為CUX。 (2)修改產品的applID,將278修改為50000以上沒有被使用的APPLID。檢查APPLID 的SQL語句如下:
SQL>select decode(count ,0, ‘Selected number is Available‘, ‘Selected number already in use‘) Status, &&enter_custom_applID selected_number from ( select count(*) as count from ( select ‘x‘ from fnd_oracle_userid where oracle_id= &&enter_custom_applID union select ‘x‘ from fnd_application where application_id= &&enter_custom_applID) ); 如果想將278修改為50303,那麼就在enter_custom_applID輸入50303。若出現Selected number is Available 表示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, 2012 Oracle Corporation Redwood Shores, California, USA AD Splicer Version 12.2.0NOTE: You may not use this utility for custom development unless you have written permission from Oracle Corporation.Your default directory is ‘/home/oraebs/apps/PROD/fs1/EBSapps/appl‘.Is this the correct APPL_TOP [Yes] ? AD Splicer records your AD Splicer session in a text fileyou specify. Enter your AD Splicer log file name or press [Return]to accept the default file name shown in brackets.Your default directory is ‘/u01/app/oracle/fs1/EBSapps/appl‘.Is this the correct APPL_TOP [Yes] ?Filename[adsplice.log] : adsplice_xxont.logYou areabout to install or upgrade Oracle E-Business Suite product tablesin your ORACLE database ‘D599‘using ORACLE executables in ‘/u01/app/oracle/fs1/EBSapps/10.1.2‘.Is this the correct database [Yes] ?Enterthe password for your ‘SYSTEM‘ ORACLE schema:Enterthe ORACLE password of Application Object Library [APPS] :Pleaseenter the directory where your AD Splicer control file is located.The default directory is [/u01/app/oracle/fs1/EBSapps/appl/admin] :Please enter the name of your AD Splicer control file [newprods.txt] :Do youwish to regenerate your environment file [Yes] ?Checkingif AutoConfig is enabled....RunningAutoConfig on : All products ...
11、通過以下SQL語句,檢查 adsplice 和 autoconfig 執行後的結果。
select * from fnd_application where application_short_name = ‘CUX‘;select * from fnd_product_installations where APPLICATION_ID = 50303;select * from dba_users where username = ‘CUX‘;
登入使用者節點,檢查系統內容。
$ env|grep XXONTXXONT_TOP=/u01/app/oracle/fs1/EBSapps/appl/xxont/12.0.0$ ls $XXONT_TOPadmin log mesg out sql
如果您正在使用共用的APPL_TOP,則需要在其中一個節點上執行所有這些過程,然後在其他節點上運行autoconfig。你不必重新運行adsplice。如果APPL_TOP未共用,請重複步驟8,9,10和11。
本文出自 “奮鬥不止” 部落格,轉載請與作者聯絡!
Oracle EBS12.2 註冊客制化應用