Oracle 10g portal sso 配置
jkjava@163.com
部署环境
硬件:sun v240小型机2台
操作系统:solaris 10 (SunOS PTCL-DHCP02 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V240)
oracle软件版本:Oracle Application Server 10g Release 2 (10.1.2.0.2)
升级包版本:Portal Upgrade (10.1.4)
2台机器一台安装oracle infranstructure,一台安装oracle portal
部署完portal application后进行如下配置,使用户能通过
www.abc.com 7777访问portal包括单点登陆,用户管理等等。
以下操作在midtier机器管理控制台中进行
1.登录进管理控制台后进入Web Cache --->Administration-->Origin Servers
选择create创建一个新的的origin server,在输入infranstructure机器的机器名和端口名,提交.
2.进入web Cache-AdministratorSite
在Server Mapping for Unnamed Site栏中创建下面印射
Host: Prefix port origin host
www.abc.com /pls/orasso 7777 infranstructure host
www.abc.com /sso 7777 infranstructure host
www.abc.com /oiddas 7777 infranstructure host
www.abc.com 7777 midtier host
3.访问
http://midtiehost:9400/
进入oracle webcache manager 用户名ias_admin
进入Origin Servers, Sites, and Load Balancing --->Site-to-Server Mapping
查看所创建的映射一定要保证上面的顺序,如果顺序错乱,进行调整.
以下操作在infranstructure 机器上操作
1.root用户在/etc/hosts文件中添加
midtier内网ip midtier机器名
2. oracle用户运行 $ORACLE_HOME/sso/bin/ssocfg.sh http
www.abc.com 7777
3. $ORACLE_HOME/sso/bin/ssoreg.sh -oracle_home_path $ORACLE_HOME -site_name
www.abc.com -config_mod_osso TRUE -mod_osso_url
http://www.abc.com:7777 -virtualhost
4. 编辑$ORACLE_HOME/Apache/Apache/conf/httpd.conf
在文件末尾添加
LoadModule certheaders_module libexec/mod_certheaders.so
NameVirtualHost *:7777
<VirtualHost *:7777>
Port 7777
ServerName
www.abc.com
RewriteEngine On
RewriteOptions inherit
</VirtualHost>
5. $ORACLE_HOME/dcm/bin/dcmctl updateConfig -ct ohs
6.重启infranstructure(通过管理控制台restartall)
7.运行oidadmin 登录目录服务器(用户cn=orcladmin)
选择Entry management -> OracleContext -> products -> DAS -> OperationURLs
更新orcldasurlbase为
http://www.abc.com:7777/
Apply后退出
以下操作在midtier机器上操作
1. 用root用户编辑/etc/hosts 添加
midtier内网ip
www.abc.com
infranstructure ip infranstructure机器名
2 备份$ORACLE_HOME/Apache/Apache/conf/ osso/osso.conf
3 拷贝infranstructure 机器中 $ORACLE_HOME/Apache/Apache/conf/ osso/osso.conf至$ORACLE_HOME/Apache/Apache/conf/ osso/osso.conf
4 $ORACLE_HOME/Apache/Apache/bin/ssotransfer $ORACLE_HOME/Apache/Apache/conf/osso/osso.conf
5 编辑$ORACLE_HOME/Apache/Apache/conf/httpd.conf
在最后加上
LoadModule certheaders_module libexec/mod_certheaders.so
NameVirtualHost *:7778
<VirtualHost *:7778>
Port 7777
ServerName
www.abc.com
RewriteEngine On
RewriteOptions inherit
</VirtualHost>
保存退出
$ORACLE_HOME/dcm/bin/dcmctl updateConfig -ct ohs
7.编辑$ORACLE_HOME/j2ee/OC4J_Portal/applications/portal/portal/WEB-INF/web.xml
在
<servlet-class>oracle.webdb.page.ParallelServlet</servlet-class>下添加如下内容
<init-param>
<param-name>useScheme</param-name>
<param-value>http</param-value>
</init-param>
<init-param>
<param-name>usePort</param-name>
<param-value>7777</param-value>
</init-param>
保存退出
8$ORACLE_HOME/dcm/bin/dcmctl updateConfig -ct oc4j
9 在midtier管理控制台中
Select the "Portal

ortal" componnent link
Select the "Portal WebCache Settings" link
Change the Published Host and Port to:
www.abc.com 7777
click apply.
10 $ORACLE_HOME/portal/conf/ptlconfig -dad portal
11.重启midtier ,在midtier管理控制台中restartall