RSM 12 安装日志

/*********************************************************************
======                Hand Co,ltd                            =========
======                Copy Right 2008-2009 Reserved          ===
======                RSM 安装日志                           =========
–Created by       :  yunfang.shang@hand-china.com
–Creation Date    :  2008-9-18
–Version          :  1.0 
======                Update History                         ========
–2008-9-18  version 1.0  created

**********************************************************************/
1\ 安装Oracle Application Server

   1.1 安装 Oracle application Server 10.1.3.1.0  (soa_linux_x86_101310_disk1.cpio)
       可在download.oracle.com 下载. 按照Oracle Application Server 10G Document -Install Guide进行安装(文档也可在downolad.oracle.com 下载)
      
       备注,因为我们的Demo环境是在同一台机器上安装数据库和application Server;
       安装RMS的Application Server(10.1.2.2.0)-Form&Reports时所做的Pre-install动作已经完全满足application Server的pre-install.
       所以,安装application Server 时如果还是以oracle用户进行,就基本不需要再考虑pre-install动作. 仅需完成如下内容:
       
      
       a) OEL4.4 x86_64 上安装as10gR3 必须先打OS补丁Patch 6002484 ,否则操作系统不被支持,详情参考 Note:445202.1
      

           
       b) 添加如下package  gcc4-java-4.1.0-18EL4(Disk4)
                           gcc4-gfortran-4.1.0-18.EL4(Disk3)
                           gcc4-c++-4.1.0-18.EL4(Disk3)
                           gcc-objc-3.4.5-3.1(Disk3)
                           gcc-gnat-3.4.6-3.1(Disk3)
                          
                           glibc-utils-2.3.4-2.25(Disk4)                          
                           glibc-profile-2.3.4-2.25(Disk4)
                                                     
                           compat-gcc-32-3.2.3-47.3(Disk3)
                           compat-glibc-2.3.2-95.30(Disk3)                         
                           compat-libgcc-296-2.96-132.7.2(Disk3)
                           openmotif-devel-2.2.3-10.RHEL4.5(Disk3)
                           gnome-libs-devel-1.4.1.2.90-44.2(Disk4)
                           compat-glibc-headers-2.3.2-95.30(Disk3)
                          
                           由于依赖关系比较多,建议在图形桌面中,在文件上右健使用 Open with “install packages” 进行安装.
      
       建立安装目标目录: /d01/app/oracleas10r3
       建立安装Stage目录: /d01/oracleas10gr3_stage
       上传soa_linux_x86_101310_disk1.cpio 到 /d01/oracleas10gr3_stage
       cd /d01/oracleas10gr3_stage
       cipo -idvm < soa_linux_x86_101310_disk1.cpio
       切换到VNC窗口(或者本地机显示器)
      
       为了避免端口重复,安装前先编辑端口(如果Application Server 分开安装在不同机器上则不需要此动作)
       cp /d01/oracleas10gr3_stage/stage/Response/staticports.ini  /d01/app/oracleas10gr3
       vi staticports.ini
      
        Oracle HTTP Server port = 2000
 Oracle HTTP Server SSL port =2001
 Oracle Notification Server Request port = 2002
 Oracle Notification Server Local port = 2003
 Oracle Notification Server Remote port = 2004
 ASG port = 2005     
 
      
       xhost +
       #以oracle用户进行安装
       su oracle
       cd /d01/oracleas10gr3_stage
      
       ./runInstaller  PREREQ_CONFIG_LOCATION=/d01/oracleas10gr3_stage/prereq  -paramFile /d01/oracleas10gr3_stage/oraparam.ini
       选择 advance 安装
       选择 第2个 J2eeserver and web Server ( 第1个Soa Suit含Content Database,我们不需要)
       指定端口配置时选择:Manaule
      
       As instance Name : oracleas10gr3
       As administrator password: hello1
       勾选择 Configure this as an administration Oc4j instance
       Next->Next 按照向导安装即可.
       注意最后一屏,里面有使用此AS 的相关信息. 这些信息会存放与$ORACLE_HOME/insall/readme.txt中
      

   1.2 安装 Patch 升级到 Oracle application Server 10.1.3.4.0
  
       建立安装Stage目录: /d01/oracleas10gr4patch_stage
       上传ias_linux_x86_101340.zip 到 /d01/oracleas10gr4patch_stage
       cd /d01/oracleas10gr4patch_stage
       unzip ias_linux_x86_101340.zip
       按照Disk1 中的Readme进行安装
      
       先备份 as 10.1.3.1
       #跟数据库相关的upgrade脚本不需要执行,因为我们没有安装这些东西.
       
       ORACLE_HOME=/d01/app/oracleas10gr3
       export ORACLE_HOME  
      
       #安装文挡指出,如果在opmn.xml 里面指定了java-bin的路径的话,需要停服务,去掉这个配置再重启动.
       #10.1.3.1.0 安装后没有 java-bin这个ID,因此不需要做这一步.
      
       $ORACLE_HOME/owsm 目录不存在,所以第6步不许要ensure.
      
       cd /d01/oracleas10gr4patch_stage/Disk1
       linux32 bash
       ./runInstaller
      
       #Specify file location
       name:选择oracleas2  对应的地址是我们刚才安装的 /d01/app/oracleas10gr3
       2008-9-18 15:55
       Next->Next 按照安装向导操作即可.
       最后成功完成.
      
2\ 安装RSM 数据库
      
      
       su oretail
       cd /d01/app/retail  
       mkdir rsm      
       #上传 rsm_12.0_install.zip 到 /d01/app/retail/rsm
       unzip rsm_12.0_install.zip      
            
       INSTALL_DIR=/d01/app/retail/rsm/dbserverunix
       export INSTALL_DIR
       cd $INSTALL_DIR
       unzip rsm12dbschema.zip
      
      
      
       #切换到VNC界面,打开一个终端
       xhost + 
       chmod -R 777 /d01/app/retail/rsm    
      
       ORACLE_HOME=/d01/app/oracle/product/10.2.0/db_1
       export ORACLE_HOME
       ORACLE_SID=RETL
       export ORACLE_SID
       NLS_LANG=AMERICAN_AMERICA.UTF8
       export NLS_LANG
       PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin:$INSTALL_DIR/rms/oracle/lib/src:$PATH
       export PATH
       JAVA_HOME=/d01/app/oracle/product/10.2.0/db_1/jre/1.4.2
       export JAVA_HOME
       INSTALL_DIR=/d01/app/retail/rsm/dbserverunix
       export INSTALL_DIR
      
       cd $INSTALL_DIR/rsm/dbschema
       su oracle
       #确认数据库和listener已经启动
       ./install.sh
       Next->Next  按向导进行,成功完成.
      
      
3\ 安装RSM Application
      
   3.1 Create a New OC4J Instance for RSM
       su oracle
       ORACLE_HOME=/d01/app/oracleas10gr3
       export ORACLE_HOME
       $ORACLE_HOME/bin/createinstance -instanceName rsm
       #password: hello1
       #成功创建
       $ORACLE_HOME/opmn/bin/opmnctl startproc process-type=rsm
       $ORACLE_HOME/opmn/bin/opmnctl status -l
       #显示已经成功启动
      
       cd $ORACLE_HOME/Apache/Apache/conf
       vi mimi.types
       #添加 application/x-java-jnlp-file jnlp
       #重启Apach
       $ORACLE_HOME/opmn/bin/opmnctl restartproc process-type=HTTP_Server
   3.2 准备安装文件   
       #准备安装文件
       INSTALL_DIR=/d01/app/retail/rsm/appserverunix
       export INSTALL_DIR
       cd $INSTALL_DIR
       unzip rsm12application.zip
       cd $INSTALL_DIR/rsm/application
       #上传 hibernate2.jar 到 $INSTALL_DIR/rsm/
      
   3.3 安装RSM应用  
     
       #Run the RSM Application Installer
       #切换到VNC界面,打开一个终端
       xhost +
       ORACLE_HOME=/d01/app/oracleas10gr3
       export ORACLE_HOME
       ORACLE_SID=RETL
       export ORACLE_SID
       NLS_LANG=AMERICAN_AMERICA.UTF8
       export NLS_LANG
       PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin:$INSTALL_DIR/rms/oracle/lib/src:$PATH
       export PATH
       JAVA_HOME=/d01/app/oracleas10gr3/jre/1.4.2
       export JAVA_HOME
       INSTALL_DIR=/d01/app/retail/rsm
       export INSTALL_DIR
      
       cd $INSTALL_DIR/rsm/application
       su oracle
       #确认数据库和listener已经启动
       ./install.sh
       #身份验证选择 xml文件( 仅用于Demo环境,正式环境需要使用LDAP服务器,一般是使用Oralce Internet Directory)
       #Data Source Detail : RSM12 jdbc url:schema/schemapassword: rsm12dev/rsm12dev
       #Manue deploy option : Yes
       #Clinet File on Http server:Yes
       #Clinet Destnation : 默认值
       #Oc4j Server type: managed
       #opmn request port:2002
       #application deployment details :RSM 12 oc4j instance:rsm ,其他默认
       #oracle other retail application: RPM 12 oc4j instance:rpm,其他默认
       #oc4j administrator user/password:oc4jadmin/hello1
       #Oracle retail application urls: 默认值
       #Install progerss: Install
      
       #安装失败,查看日志
       more rsm12install*.log
            oas.deploy:
              [echo] Deploying ear file to deployer URI deployer:cluster:opmn://syfr12:2002/rsm-oc4j-instance
              [oracle:deploy] Unable to get a deployment manager.
             
       # 检查了几种可能的情况均不存在,看rsm-120-ig-addendum.pdf 文档指出只有在RSM12.0.2以后,Linux 平台才被支持.
       # 所以…
      
       cd /d01/app/retail/rsm
       mkdir 12.0.1
       mkdir 12.0.2
       mkdir 12.0.3
       mkdir 12.0.4
       #把各版本的Patch  上传到相应的目录  解压缩后发现12.0.1-12.0.4版本均是仅仅包含Application 的Patch, 没有dbpatch.
       #而且各patch版本打包是采用完全覆盖方式,所以没有必要逐版本升级.
      
       INSTALL_DIR=/d01/app/retail/rsm      
       PATCH_STAGE=/d01/app/retail/rsm/12.0.4
       export INSTALL_DIR  PATCH_STAGE
      
       cd $INSTALL_DIR/appserverunix
       rm -fr *
       cp -f $PATCH_STAGE/appserverunix/rsm12application.zip  $INSTALL_DIR/appserverunix/rsm12application.zip
       unzip rsm12application.zip
       cd $INSTALL_DIR
       cp $INSTALL_DIR/hibernate2.jar  $INSTALL_DIR/appserverunix/rsm/application/hibernate/
      
       按照rsm-1204-ig.pdf  进行:
       $ORACLE_HOME/opmn/bin/opmnctl stopall
       $ORACLE_HOME/bin/removeinstance -instancename rsm
       $ORACLE_HOME/bin/createinstance -instancename rsm -groupname rsm_group
      
       回到3.3 重新执行install
       这次就成功了,没有错误.
      
      
       #添加用户      
       cd /d01/app/oracleas10gr3/j2ee/rsm/applications/rsm12/conf/retek
       vi users_rsm.xml
       添加用户admin.rsm:
<users>
        <user username=”Valid.User” firstname=”Valid” lastname=”User” password=”PaSsW0rD”/>
        <user username=”admin.rsm”  firstname=”admin” lastname=”rsm”  password=”rsm12dev”/>
</users>
       #重启应用?(实践证明不需要)
       #$ORACLE_HOME/opmn/bin/opmnctl @cluster restartproc ias-component=rsm_group
      
       测试:
       http://syfr12:2000/rsm/rsm.jnlp
       输入用户名:admin.rsm  密码:rsm12dev
       可以正常进入