首页 > 代码库 > 风景在路上

风景在路上




  1. 创建webgateohs共享实例,copy文件到ohs实例目录。

    1)进入webgage部署工具目录

         Cd  /%webgate_home%/webgate/ohs/tools/deployWebGate

             2)执行部署命令:

        ./deployWebGateInstance.sh –w /%wt_home%/ /instances/instance1/config/OHS/ohs1–oh /%webgate_home%

               -w 参数后跟的是 OHS实例的文件夹路径

         -oh 参数后跟的是WebGate根目录。

  2. Webgate配置域登记。使用EditHttpdConf组件拷贝webate配置模板到实例目录下,并修改http.conf文件。

    1)设置PATH

    export  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/%wt_home%/lib

    2)使用EditHttpdConf配置

          cd  /%webgate_home%/webgate/ohs/tools/setup/InstallTools

          ./EditHttpConf –w /%wt_home%/instances/instance1/config/OHS/ohs1-oh        /%webgate_home% -owebgate.conf

    EditHttpConf命令参数: -w<WebGate_instancedir> [-oh <WebGate Oracle Home>] [-o<output_file> ]

    完成后可以查看http.conf文件中会插入一行:

  3. 配置OAM代理

    1)修改配置文件:

    /%OAM_HOME%/oam/server/rreg/input/OAM11GRequest.xml

    2)修改oamreg.sh权限

    Chmod 777 /%OAM_HOME%/oam/server/rreg/bin/oamreg.sh

    3)保证weblogic是启动状态,执行以下命令

    exportJAVA_HOME=/home/oracle/jdk1.6.0_31

    Cd /%OAM_HOME%/oam/server/rreg

    ./bin/oamreg.sh inband input/OAM11GRequest.xml

    4)输入weblogic用户名密码

    5)以下两个提示都输入n

    “ Do you want to enter a webgatepassword ?(y/n)”

    Do you want to import an URIs file?(y/n)”

    6)完成后会生成两个文件

    /%OAM_HOME%/oam/server/rreg/output/RREG_OHSOAM11G

    7)把生成的两个配置文件拷贝到webgate实例目录中

    cd /%OAM_HOME%/oam/server/rreg/output/RREG_OHSOAM11G

    cp ObAccessClient.xml cwallet.sso   /%WT_HOME%/instances/instance1/config/OHS/ohs1/webgate/config 

  4. 重启服务

    /home/oracle/Oracle/Middleware/Oracle_WT1/instances/instance_wt/bin/opmnctlstartall

    /home/oracle/Oracle/Middleware/user_projects/domains/oam_domain/bin/startWebLogic.sh

     

    /home/oracle/Oracle/Middleware/user_projects/domains/oam_domain/bin/startManagedWebLogic.shoam_server1http://192.168.56.102:7010

     

  5. 在浏览器访问

    Http://192.168.56.102:7777会自动跳转到OAM登录界面,实现了OAM的访问控制。