楼主: Puber

[精华] 同学笔记:OracleAS 10g(9.0.4) Administrator's Guide

 关闭 [复制链接]
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
41#
 楼主| 发表于 2005-6-21 19:04 | 只看该作者
[B]5.3.3 Changing Oracle HTTP Server Ports[/B]
[B]5.3.3.1 Changing the Oracle HTTP Server Non-SSL Listen Port(with Web Cache)[/B]
[B]Step 1 : Modify the Oracle HTTP Server Listen Directive[/B]
■ 通过AS Control Console来改,步骤如下:
-1. 打开AS home page,并点击[B]Ports[/B].
-2. 在Ports Page中,找到相应的HTTP Server Listen port,并点击Configure column中的icon.
-3. 在Server Properties Page中,中Listening Addresses and Ports部分,输入新的port number. (在这里可能会显示多个监听端口.按选择旧的port number是个好办法).
-4. 在页面的底部,点击[B]Apply[/B].
-5. 在Confirmation Page中,点击[B]No[/B],表示现在不想重启HTTP Server.
■ 手动修改,步骤如下:
-1. 编辑ORACLE_HOME/Apache/Apache/conf/httpd.conf文件.
-2. 将Listen更新为新的port number.但别直接更新Port. 在这个文件中可能有多个Listen,只需更改其中未被SSL virtual host container封装的Listen. 按旧的端口号在此文件中找查找是最方便的定位方法.
-3. 保存并关闭httpd.conf文件.
-4. 运行以下命令.
    dcmctl updateConfig -ct ohs[/COLOR]

[B]Step 2 : Enable Oracle HTTP Server to Run as Root for Ports<1024 on UNIX[/B]
缺省情况下,Oracle HTTP Server是以non-root用户(安装AS的用户)运行的.在UNIX系统上,如果你想让OralceAS non-SSL的listen port number小于1024时,你就得允许OracleAS以root运行,步骤如下:
-1. 以root用户login.
-2. 运行middle-tier Oracle home下的命令:

cd ORACLE_HOME/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
[/COLOR]

[B]Step 3 : Update the Application Server Control Console[/B]
-1. 编辑以下文件 ORACLE_HOME/sysman/emd/targets.xml
-2. 用新port替换该文件中的每个旧port.
    这个文件是有多少个旧port取决于你的configuration.请注意只能更新Oracle HTTP Server listen port,而不能update Web Cache listener port或其它port numbers.[/COLOR]
-3. 保存并关闭targets.xml.
-4. reload AS Control Console: emctl reload[/COLOR]

[B]Step 4 : Update OracleAS Web Cache[/B]
-1. 使用OracleAS Control Console, 打开Web Cache home page.
-2. 在Administration段,点击[B]Web Cache Administration.[/B]则可login到Web Cache Administrator.
-3. 在导航栏中,选择[B]Origin Server,Sites, and Load Balancing > Origin Servers[/B].则会显示Origin Servers page.
-4. 选择在Protocol列中有HTTP的Oracle HTTP Server port. 点击[B]Edit Seleted[/B].
-5. 在Port域中输入新的port number,点击[B]Submit[/B].
-6. 点击[B]Apply Changes[/B].

[B]Step 5 : Restart the Middle-Tier Instance[/B]
运行以下命令:
opmnctl stopall
opmnctl startall[/COLOR]

[B]真的好复杂啊!!![/B][/COLOR]

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
42#
 楼主| 发表于 2005-6-22 00:07 | 只看该作者
[B]5.3.3.2 Changing the Oracle HTTP Server SSL Listen Port(with Web Cache)[/B]
[B]Step 1 : Modify the Oracle HTTP Server Listen Directive[/B]
-1. 编辑ORACLE_HOME/Apache/Apache/conf/ssl.conf文件.
-2. 更新Listen项为新的port number,但不能更改Port项.
-3. 保存并关闭ssl.conf文件.
-4. 运行以下命令dcmctl updateConfig -ct ohs[/COLOR]

[B]Step 2 : Enable Oracle HTTP Server to Run as Root for Ports < 1024 on UNIX[/B]
如果你想将port改为小于1024,则需执行此步骤.
-1. 以root登录系统.
-2. 在middle-tier的Oracle home中执行以下命令.
cd ORACLE_HOME/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
[/COLOR]

[B]Step 3: Update the Application Server Control Console[/B]
-1. 编辑文件 ORACLE_HOME/sysman/emd/targets.xml
-2. 以新的port number 更新其中出现的每个Oracle HTTP Server SSL listen port number.这个文件是有多少个旧port取决于你的configuration.请注意只能更新Oracle HTTP Server SSL listen port,而不能update non-SSL listen port, Web Cache listener port或其它port numbers.[/COLOR]
-3. 保存并关闭targets.xml文件.
-4. Reload AS Control COnsole:
emctl reload[/COLOR]

[B]Step 4: Update OracleAS Web Cache[/B]
-1. 使用AS Control Console,打开Web Cache home page.
-2. 在Administration段,点击[B]Web Cache Administration[/B].则可login到Web Cache Administrator.
-3. 在导航栏中,选择[B]Origin Server,Sites, and Load Balancing > Origin Servers[/B].则会显示Origin Servers page.
-4. 选择在Protocol列中有HTTP的Oracle HTTP Server port. 点击[B]Edit Seleted[/B].
-5. 在Port域中输入新的port number,点击[B]Submit[/B].
-6. 点击[B]Apply Changes[/B].


[B]Step 5: Restart the Middle-Tier Instance[/B]
运行以下命令:
opmnctl stopall
opmnctl startall[/COLOR]

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
43#
 楼主| 发表于 2005-6-22 00:53 | 只看该作者
[B]5.3.3.3 Changing the Oracle HTTP Server Non-SSL Listen Port(No Web Cache)[/B]
■ 通过AS Control Console来改,步骤如下:
-1. 打开instance home page并点击[B]Ports[/B].
-2. 在Ports Page,定位到Oracle HTTP Server Listen port并点击Configure column的icon.
-3. 在Server Properties Page中:
-3.1 在Default Port域中输入new port.这是更改配置文件中Port值的.
-3.2 在Listening Port列中输入new port.这是更改配置文件中Listen值的. 列表中可能有多个.建议用旧的port来定位.
-4. 在页面的底部,点击[B]Apply[/B].
-5. 在Confirmation Page中点击[B]No[/B],表示现在不想restart.

■ 手动修改,步骤如下:
-1. 编辑文件ORACLE_HOME/Apache/Apache/conf/httpd.conf
-2. 用new port number替换non-SSL的Listen和Port值. 两都的值必须一致.可能有多个Listen和Port值,建议用old port number查找并替换.
-3. 保存并关闭httpd.conf文件.
-4. 运行命令dcmctl updateConfig -ct ohs[/COLOR]

[B]Step 2 : Enable Oracle HTTP Server to Run as Root for Ports < 1024 on UNIX[/B]
-1. 以root用户log in .
-2. 在middle-tier的Oracle home执行以下命令:
cd ORACLE_HOME/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl[/COLOR]

[B]Step 3 : Update the Application Server Control Console[/B]
-1. 编辑文件ORACLE_HOME/sysman/emd/targets.xml
-2. 以新的port number更新其中出现的每个Oracle HTTP Server listen port number.这个文件是有多少个旧port取决于你的configuration.建议用new port number来替换old port number.
-3. 保存并关闭targets.xml文件.
-4. Reload AS Control Console.
emctl reload[/COLOR]

[B]Step 4 : Re-register mod_osso[/B]
如果使用了Single Sign-On,则需将new port number注册到mod_osso.
-1. (UNIX only)确认LD_LIBRARY_PATH environment variable包含$ORACLE_HOME/lib
-2. 通过以下命令来将new port number注册到mod_osso.
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path [B]middle_tier_oracle_home[/B]
-site_name [B]middle_tier_hostname:new_http_port_number[/B]
-config_mod_osso TRUE
-mod_osso_url [B]mod_osso_url[/B]
-u user[/COLOR]

其中user指滴是启动Oracle HTTP Server的Operation System用户.缺省情况下是安装OracleAS的用户.如果使用小于1024的port number,则这个用户应该是root.
下面有个demo,其中新port为7779,而middle-tier的host为myhost:
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path /disk1/oracleas
-site_name myhost:7779
-mod_osso_url  ht tp://myhost.mydomain:7779
-u oracle[/COLOR]
详见<<Oracle Application Server Single Sign-On Administrator's Guide>>.

[B]Step 5 : Restart the Middle-Tier Instance[/B]
运行以下命令:
opmnctl stopall
opmnctl startall[/COLOR]

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
44#
 楼主| 发表于 2005-6-22 01:28 | 只看该作者
[B]5.3.3.4 Changing the Oracle HTTP Server SSL Listen Port(No Web Cache)[/B]
-1. 编辑文件ORACLE_HOME/Apache/Apache/conf/ssl.conf
-2. 用new port number替换Listen和Port值. 两都的值必须一致.
-3. 保存并关闭ssl.conf文件.
-4. 运行命令dcmctl updateConfig -ct ohs[/COLOR]

[B]Step 2 : Enable Oracle HTTP Server to Run as Root for Ports < 1024 on UNIX[/B]
-1. 以root用户log in .
-2. 在middle-tier的Oracle home执行以下命令:
cd ORACLE_HOME/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl[/COLOR]

[B]Step 3 : Update the Application Server Control Console[/B]
-1. 编辑文件ORACLE_HOME/sysman/emd/targets.xml
-2. 以新的port number更新其中出现的每个Oracle HTTP Server SSL listen port number.这个文件是有多少个旧SSL port取决于你的configuration.建议用new port number来替换old SSL port number.请注意只能更新Oracle HTTP Server SSL listen port,而不能update non-SSL listen port或其它port numbers.[/COLOR]
-3. 保存并关闭targets.xml文件.
-4. Reload AS Control Console.
emctl reload[/COLOR]

[B]Step 4 : Re-register mod_osso[/B]
如果使用了Single Sign-On,则需将new port number注册到mod_osso.
-1. (UNIX only)确认LD_LIBRARY_PATH environment variable包含$ORACLE_HOME/lib
-2. 在Middle-tier的Oracle Home目录下执行以下命令来将new port number注册到SSL virtual host.
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path [B]middle_tier_oracle_home[/B]
-site_name [B]middle_tier_hostname:new_https_port_number[/B]
-config_mod_osso TRUE
-mod_osso_url [B]mod_osso_url[/B]
-virtualhost -u user[/COLOR]

其中user指滴是启动Oracle HTTP Server的Operation System用户.缺省情况下是安装OracleAS的用户.如果使用小于1024的port number,则这个用户应该是root.
下面有个demo,其中新port为4445,而middle-tier的host为myhost:
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path /disk1/oracleas
-site_name myhost:4445
-mod_osso_url ht tps://myhost.mydomain:4445
-virtualhost -u oracle[/COLOR]
详见<<Oracle Application Server Single Sign-On Administrator's Guide>>.

[B]Step 5 : Restart the Middle-Tier Instance[/B]
运行以下命令:
opmnctl stopall
opmnctl startall[/COLOR]

使用道具 举报

回复
论坛徽章:
0
45#
发表于 2005-6-24 07:36 | 只看该作者
加油!  我是你的FAN!

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
46#
 楼主| 发表于 2005-6-25 12:08 | 只看该作者
[B]5.3.4 Changing the Web Cache Non-SSL Listener Port(Middle-Tier Installations)[/B]
[B]Step 1: Change the Web Cache Non-SSL Listener Port[/B]
-1. 使用Application Server Control Console,打开Web Cache home page.
-2. 在Administration部分,点击[B]Web Cache Administration[/B]. 登录到Web Cache Administratior.
-3. 在导航栏中,选择Ports > Listen Ports. 则可显示Listen Ports page.
-4. 选择含有HTTP Protocol的相应的port,点击[B]Edit Selected[/B].
-5. 在Port field中输入新的port number,点击[B]Submit[/B].
-6. 点击[B]Apply Changes[/B]. 此时不必重启Web Cache,因为在整个流程的最后会需要重启middle-tier instance(当然也包含Web Cache).

[B]Step 2: Change the Web Cache Logical Site Port[/B]
如果Logical Site Port与Web Cache Non-SSL listener port相同,则需按以下步骤更新logical site port.
-1. 在Web Cache Manager的导航栏中,选择Origin Servers,Sites,and Load Balancing > Site Definitions.
-2. 在Site Definitions page,用旧port number找到相应的site.若没有site使用old port number,则表明Web Cache listener和site没共用port.可以跳过步骤[I]Step 3: Enable Web Cache to Run as Root for Ports<1024 on UNIX[/I].
-3. 用old port number找到相应的site, 点击[B]Edit Site[/B].
-4. 在Edit Site对话框中,输入new port number,点击[B]Submit[/B].
-5. 在导航栏中,选择Origin Servers, Sites,and Load Balancin >Site-to-Server Mapping.
-6. 在Site-to-Server Mapping page中,你可能会看到一个或多个使用old port number的mappings.应对每个site作如下操作:
--6.a 选择Site并点击[B]Edit Seleted[/B].
--6.b 在Edit/Add Site-to-Server Mapping对话框中,将Port Number field中的值该为new port number. 并点击[B]Submit[/B].
-7. 点击[B]Apply Changes[/B].

[B]Step 3: Enable Web Cache to Run as Root for Ports<1024 on UNIX[/B]
缺省情况下,Web Cache是以non-root用户(安装AS的用户)运行的.在UNIX系统上,如果你想让Web Cache non-SSL的listen port number小于1024时,你就得允许Web Cache以root运行,步骤如下:
-1. 登录到OracleAS,运行以下命令以停止Web Cache:
opmnctl stopproc ias-component=WebCache[/COLOR]
-2. 以root登录.
-3. 在Middle-tier Oracle home下运行以下命令:
ORACLE_HOME/webcache/bin/webcahe_setuser.sh setroot [I]userID[/I][/COLOR]
其中[I]userID[/I]指滴是运行Web Cache的Operation System用户.缺省情况下是安装OracleAS的用户.这个用户显示在Web Cache Manager中的Process Identity画面中.
-4. 以安装OracleAS的用户登录,并执行以下命令以启动Web Cache:
opmnctl startproc ias-component=WebCache[/COLOR]

[B]Step 4: Update the Oracle HTTP Server Port Directive[/B]
-1. 编辑文件ORACLE_HOME/Apache/Apache/conf/httpd.conf
-2. 用new port number更新原来的Port的值. 不能修改Listen的值.Web Cache port必须与Oracle HTTP Server的Port值相同[/COLOR].
-3. 保存文件.
-4. 运行以下命令:
dcmctl updateConfig -ct ohs[/COLOR]

[B]Step 5: Update the Application Server Control Console[/B]
-1. 编辑文件ORACLE_HOME/sysman/dmd/targets.xml
-2. 用new port number替换文中出现滴每个old Web Cache listener port.(直接按旧值查找并替换成新值是最简单滴办法).
-3. 保存并关闭文件.
-4. 用以下命令重启Application Server Control Console:
emctl reload[/COLOR]

[B]Step 6: Update mod_osso[/B]
-1. (Unix only)确认LD_LIBRARY_PATH含有以下路径$ORACLE_HOME/lib.
-2. 在Middle-tier滴Oracle home目录下运行以下命令,以将new port number注册到mod_osso.
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path [B]middle_tier_oracle_home[/B]
-site_name [B]middle_tier_hostname:new_http_port_number[/B]
-config_mod_osso TRUE
-mod_osso_url [B]mod_osso_url[/B]
-u user[/COLOR]

其中user指滴是启动Oracle HTTP Server的Operation System用户.缺省情况下是安装OracleAS的用户.如果使用小于1024的port number,则这个用户应该是root.
下面有个demo,其中新port为7779,而middle-tier的host为myhost:
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path /disk1/oracleas
-site_name myhost:7779
-config_mod_osso TRUE
-mod_osso_url  ht tp://myhost.mydomain:7779
-u oracle[/COLOR]
详见<<Oracle Application Server Single Sign-On Administrator's Guide>>.

[B]Step 7: Update OracleAS Portal[/B]
如果使用了OracleAS Portal,则按以下步骤将new port number更新到Portal.
-1. 运行Application Server Control Console,打开Portal home page.
-2. 在Administration部分, 点击Portal Web Cache Settings.
■  若Listening Port SSL Enabled值为No,则需在Listening Port域中输入new port number,并点击[B]OK[/B].
■  若Listening Port SSL Enabled值为Yes,则毋需作任何更改,点击[B]Cancel[/B]退出.

[B]Step 8: Update the Web Providers with OracleAS Portal[/B]
如果Web Providers与OracleAS Portal一起使用(这两者应改运行在同一个middle-tier instance中),则还需更新Web Providers,步骤如下:
-1. 以Administrator登录到OracleAS Portal(例如,PORTAL).
-2. 点击Administrator tab.
-3. 点击Portlets sub-tab.
-4. 按以下步骤修改所有已注册到Portal中的locally hosted Web Providers.
--4.a 在Remote Providers portlet中,在Name域中输入provider name(例如:WEBCLIPPING).点击[B]Edit[/B].
--4.b 点击Connection tab.
--4.c 在URL域中,输入new port number. 点击[B]OK[/B].

[B]Step 9: Update OracleAS Wireless[/B]
如果使用了Wireless,则按以下步骤来更新:
-1. 在Middle-tier主机上运行下命令,它的作用是将Wireless重新注册到SSO.
ORACLE_HOME/wireless/bin/reRegisterSSO.sh [I]new_wireless_url  oracle_Home  administrator_dn[/I]
其中各参数含义如下:
[I]new_wireless_url[/I]: 使用了new Web Cache listener port的新Wireless HTTP URL
[I]oracle_home[/I]: 改动Web Cache port的Middle-tier滴Oracle home
[I]administrator_dn[/I]: OID administator.
例如: 如果new Web Cache listener port值为7779, middle-tier安装在主机myhost的/home/oacle目录下:
ORACLE_HOME/wireless/bin/reRegisterSSO.sh http://myhost:7779/ptg/rm   /home/oracle   cn=orcladmin
-2. 更新Wireless HTTP配置信息,步骤如下:
--2.a 在Application Server Control Console中打开Wireless home page.
--2.b 点击Site Administration连接.
--2.c 在General Configuration段,点击HTTP,HTTPS Configuration连接.
--2.d 在URL段,用新的URL(含新的non-SSL Web Cache listener port)替换旧的URL.
--2.e 点击[B]OK[/B].
-3. 更新实例的URLs,步骤如下:
--3.a 在Application Server Control Console中打开Wireless home page.
--3.b 在Instance Configuration段,点击Instance URLs连接.
--3.c 在Instance URLs page中作如下操作:
---3.c.1 如果Use the Wireless Site URLs已被选中,则毋需作任何改动.
---3.c.2 如果Use the Wireless Instance URLs已被选中,则需用新的URL(含新的non-SSL Web Cache listener port)替换每个旧的URL.
--3.d 点击[B]OK[/B].

[B]Step 10: Update OracleAS Discoverer[/B]
如果使用了OracleAS Discoverer,并且在Discoverer Portlet Provider的URL中用了non-SSL port,则需更新这个port number.
步骤详见<<Application Server Discoverer Configuration Guide>>中的"How to edit Discoverer Portlet Provider".

[B]Step 11: Update OracleAS Reports Services[/B]
毋需对Reports Service作任何改,但需改动含有指向Reports Service的网页中的link的port.

[B]Step 12: Restart the Middle-Tier Instance[/B]
用以下命令来重启middle-tier instance:
opmnctl stopall
opmnctl startall[/COLOR]


[B]偶看,大伙还是改别的应用的port,也别改这个port了.[/B][/COLOR]

使用道具 举报

回复
论坛徽章:
0
47#
发表于 2005-6-27 15:09 | 只看该作者
come on!

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
48#
 楼主| 发表于 2005-6-27 22:15 | 只看该作者
[B]5.3.5 Changing the Web Cache SSL Listener Port(Middle-Tier Installations)[/B]
[B]Step 1: Change the Web Cache SSL Listener Port[/B]
-1. 使用Application Server Control Console,打开Web Cache home page.
-2. 在Administration部分,点击[B]Web Cache Administration[/B]. 登录到Web Cache Administratior.
-3. 在导航栏中,选择Ports > Listen Ports. 则可显示Listen Ports page.
-4. 选择含有HTTP Protocol的相应的port,点击[B]Edit Selected[/B].
-5. 在Port field中输入新的port number,点击[B]Submit[/B].
-6. 点击[B]Apply Changes[/B]. 此时不必重启Web Cache,因为在整个流程的最后会需要重启middle-tier instance(当然也包含Web Cache).

[B]Step 2: Change the Web Cache Logical Site Port[/B]
如果Logical Site Port与Web Cache SSL listener port相同,则需按以下步骤更新logical site port.
-1. 在Web Cache Manager的导航栏中,选择Origin Servers,Sites,and Load Balancing > Site Definitions.
-2. 在Site Definitions page,用旧port number找到相应的site.若没有site使用old port number,则表明Web Cache listener和site没共用port.可以跳过步骤[I]Step 3: Enable Web Cache to Run as Root for Ports<1024 on UNIX[/I].
-3. 用old port number找到相应的site, 点击[B]Edit Site[/B].
-4. 在Edit Site对话框中,输入new port number,点击[B]Submit[/B].
-5. 在导航栏中,选择Origin Servers, Sites,and Load Balancin >Site-to-Server Mapping.
-6. 在Site-to-Server Mapping page中,你可能会看到一个或多个使用old port number的mappings.应对每个site作如下操作:
--6.a 选择Site并点击[B]Edit Seleted[/B].
--6.b 在Edit/Add Site-to-Server Mapping对话框中,将Port Number field中的值该为new port number. 并点击[B]Submit[/B].
-7. 点击[B]Apply Changes[/B].

[B]Step 3: Enable Web Cache to Run as Root for Ports<1024 on UNIX[/B]
缺省情况下,Web Cache是以non-root用户(安装AS的用户)运行的.在UNIX系统上,如果你想让Web Cache non-SSL的listen port number小于1024时,你就得允许Web Cache以root运行,步骤如下:
-1. 登录到OracleAS,运行以下命令以停止Web Cache:
opmnctl stopproc ias-component=WebCache[/COLOR]
-2. 以root登录.
-3. 在Middle-tier Oracle home下运行以下命令:
ORACLE_HOME/webcache/bin/webcahe_setuser.sh setroot [I]userID[/I][/COLOR]
其中[I]userID[/I]指滴是运行Web Cache的Operation System用户.缺省情况下是安装OracleAS的用户.这个用户显示在Web Cache Manager中的Process Identity画面中.
-4. 以安装OracleAS的用户登录,并执行以下命令以启动Web Cache:
opmnctl startproc ias-component=WebCache[/COLOR]

[B]Step 4: Update the Oracle HTTP Server Port Directive[/B]
-1. 编辑文件ORACLE_HOME/Apache/Apache/conf/ssl.conf
-2. 用new port number更新原来的Port的值. 不能修改Listen的值.Web Cache SSL port必须与Oracle HTTP Server的Port值相同[/COLOR].
-3. 保存文件.
-4. 运行以下命令:
dcmctl updateConfig -ct ohs[/COLOR]

[B]Step 5: Update the Application Server Control Console[/B]
-1. 编辑文件ORACLE_HOME/sysman/dmd/targets.xml
-2. 用new port number替换文中出现滴每个old Web Cache SSL listener port.(直接按旧值查找并替换成新值是最简单滴办法).
-3. 保存并关闭文件.
-4. 用以下命令重启Application Server Control Console:
emctl reload[/COLOR]

[B]Step 6: Update mod_osso[/B]
-1. (Unix only)确认LD_LIBRARY_PATH含有以下路径$ORACLE_HOME/lib.
-2. 在Middle-tier滴Oracle home目录下运行以下命令,以将new port number注册到mod_osso.
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path [B]middle_tier_oracle_home[/B]
-site_name [B]middle_tier_hostname:new_https_port_number[/B]
-config_mod_osso TRUE
-mod_osso_url [B]mod_osso_url[/B]
-u user[/COLOR]

其中user指滴是启动Oracle HTTP Server的Operation System用户.缺省情况下是安装OracleAS的用户.如果使用小于1024的port number,则这个用户应该是root.
下面有个demo,其中new Web Cache SSL Listen port为4445,而middle-tier的host为myhost:
ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar
-oracle_home_path /disk1/oracleas
-site_name myhost:4445
-config_mod_osso TRUE
-mod_osso_url  ht tps://myhost.mydomain:4445
-virtualhost -u oracle[/COLOR]
详见<<Oracle Application Server Single Sign-On Administrator's Guide>>.

[B]Step 7: Update OracleAS Portal[/B]
如果使用了OracleAS Portal,则按以下步骤将new SSL port number更新到Portal.
-1. 运行Application Server Control Console,打开Portal home page.
-2. 在Administration部分, 点击Portal Web Cache Settings.
■  若Listening Port SSL Enabled值为Yes,则需在Listening Port域中输入new port number,并点击[B]OK[/B].
■  若Listening Port SSL Enabled值为No,则毋需作任何更改,点击[B]Cancel[/B]退出.
-3. 在以下文件中用new port number替换old port number.
ORALE_HOME/Apache/modplsql/conf/dads.conf[/COLOR]
-4. 运行以下命令:
dcmctl updateConfig[/COLOR]
-5. 更新以下文件中的httpsports参数:
ORACLE_HOME/j2ee/OC4J_Portal/applications/portal/portal/WEB-INF/web.xml[/COLOR]

[B]Step 8: Update Wireless[/B]
如果使用了Wireless,则按以下步骤来更新:
-1. 在Middle-tier主机上运行下命令,它的作用是将Wireless重新注册到SSO.
ORACLE_HOME/wireless/bin/reRegisterSSO.sh [I]new_wireless_url  oracle_Home  administrator_dn[/I]
其中各参数含义如下:
[I]new_wireless_url[/I]: 使用了new Web Cache listener port的新Wireless HTTPS URL
[I]oracle_home[/I]: 改动Web Cache port的Middle-tier滴Oracle home
[I]administrator_dn[/I]: OID administator.
例如: 如果new Web Cache SSL listener port值为80, middle-tier安装在主机myhost的/home/oacle目录下:
ORACLE_HOME/wireless/bin/reRegisterSSO.sh https://myhost:80/ptg/rm   /home/oracle   cn=orcladmin
-2. 更新Wireless HTTPS配置信息,步骤如下:
--2.a 在Application Server Control Console中打开Wireless home page.
--2.b 点击Site Administration连接.
--2.c 在General Configuration段,点击HTTP,HTTPS Configuration连接.
--2.d 在URL段,用新的URL(含新的non-SSL Web Cache listener port)替换旧的URL.
--2.e 点击[B]OK[/B].
-3. 更新实例的URLs,步骤如下:
--3.a 在Application Server Control Console中打开Wireless home page.
--3.b 在Instance Configuration段,点击Instance URLs连接.
--3.c 在Instance URLs page中作如下操作:
---3.c.1 如果Use the Wireless Site URLs已被选中,则毋需作任何改动.
---3.c.2 如果Use the Wireless Instance URLs已被选中,则需用新的URL(含新的SSL Web Cache listener port)替换每个旧的URL.
--3.d 点击[B]OK[/B].

[B]Step 9: Update OracleAS Discoverer[/B]
如果使用了OracleAS Discoverer,并且在Discoverer Portlet Provider的URL中用了non-SSL port,则需更新这个port number.
步骤详见<<Application Server Discoverer Configuration Guide>>中的"How to edit Discoverer Portlet Provider".

[B]Step 10: Update OracleAS Reports Services[/B]
毋需对Reports Service作任何改,但需改动含有指向Reports Service的网页中的link的port.

[B]Step 11: Restart the Middle-Tier Instance[/B]
用以下命令来重启middle-tier instance:
opmnctl stopall
opmnctl startall[/COLOR]

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
49#
 楼主| 发表于 2005-6-30 09:34 | 只看该作者
[B]5.3.6 Changing the Web Cache Administration Port[/B]
不管使用了何种topology或安装了何种组件,步骤都是一样滴.
[B]Step 1: Change the Web Cache Administration Port[/B]
-1. 打开Web Cache Manager, URL如下:
h ttp://web_cache_hostname : current_web_cache_admin_port/webcacheadmin[/COLOR]
例如: h ttp://web_cahce_hostname:4000/webcacheadmin[/COLOR]
-2. 以ias_admin或administrator登录到Web Cache Manager
-3. 在导航栏中,选择[B]Ports > Operations Ports[/B],则会出现Operations Ports page.
-4. 选择要修改滴port, 点击[B]Edit Selected[/B].
-5. 在ADMINSTRATION行,修改Port Number域,然后点击[B]Submit[/B].
-6. 点击[B]Apply Changes[/B].
-7. 退出Web Cache Manger.
-8. 重启动Web Cache
请注意,这时一定要用command-line模式来重启web cache,而不能使用Web Cache Manager. 可按以下两种方式重启web cache.
--8.a 最好滴办法是:opmnctl restartproc ias-component=WebCache[/COLOR]
--8.b 若不想重启Web Cache server,而可只重启Web Cache Manager: opmnctl restartproc process-type=WebCacheAdmin[/COLOR]
如果用这个方法,Web Cache还是可以正常运行滴,但在Web Cache重启之前,Web Cache Manager中会一直显示信息:
Web Cache server:"Restart Web Cache to make configuration changes take effect."[/COLOR]

[B]Step 2: Update the Application Server Control Console[/B]
-1. 编辑文件ORACLE_HOME/sysman/emd/targets.xml.
-2. 用new port number更新<Target TYPE="oracle_webcache" ....>中的AdminPort属性.
-3. 保存并关闭targets.xml.
-4. reload新配置文件emctl reload[/COLOR].

[B]Step 3: Update OracleAS Portal[/B]
如果将Web Cache作为Portal的前端,则需告诉Portal,Web cache已使用了new administration port number了.
-1. 运行Application Server Control Console,进入Port home page.
-2. 在Administration段,点击Port Web Cache Settings.
-3. 用new port number更新Administration Port域,然后点击[B]OK[/B].

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
50#
 楼主| 发表于 2005-6-30 10:08 | 只看该作者
[B]5.3.7 Changing the Web Cache Invalidation Port[/B]
不管使用了何种topology或安装了何种组件,步骤都是一样滴.
这个Invalidation Port究竟是个什么port?
To invalidate documents in the cache, send an HTTP POST message from the invalidator or administrator account through an invalidation listening port.


[B]Step 1: Change the Web Cache Invalidation Port[/B]
-1. 打开Web Cache Manager, URL如下:h ttp://web_cache_hostname : current_web_cache_admin_port/webcacheadmin[/COLOR]
-2. 以ias_admin或administrator登录到Web Cache Manager
-3. 在导航栏中,选择[B]Ports > Operations Ports[/B],则会出现Operations Ports page.
-4. 选择要修改滴invalidation port, 点击[B]Edit Selected[/B].
-5. 在INVALIDATION行,修改Port Number域,然后点击[B]Submit[/B].
-6. 点击[B]Apply Changes[/B].
-7. 点击[B]Restart[/B]

[B]Step 2: Update OracleAS Portal[/B]
如果将Web Cache作为Portal的前端,则需告诉Portal,Web cache已使用了new invalidation port number了.
-1. 运行Application Server Control Console,进入Port home page.
-2. 在Administration段,点击Port Web Cache Settings.
-3. 用new port number更新Invalidattion Port域,然后点击[B]OK[/B].

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表