Oracle Application Server 10g Administrator's Guide 10g (9.0.4) Part Number B10376-01 |
|
This chapter describes how to view and change Oracle Application Server port numbers. It contains the following topics:
Many Oracle Application Server components and services use ports. As an administrator, it is important to know the port numbers used by these services, and to ensure that the same port number is not used by two services on your host.
Most port numbers are assigned during installation. Every component and service has an allotted port range, which is the set of port numbers Oracle Application Server attempts to use when assigning a port. Oracle Application Server starts with the lowest number in the range and performs the following checks:
The installation may be up or down at the time; Oracle Application Server can still detect if the port is used.)
This could be any process on the host, even a non-Oracle Application Server process.
/etc/services
files?
If the answer to any of the above questions is yes, Oracle Application Server moves to the next highest port in the allotted port range and continues checking until it finds a free port.
You can override this behavior for some ports, and specify a port number assignment during installation. To do this, you edit a template file called staticports.ini
, and launch Oracle Universal Installer with special options.
See Also:
Appendix C, "Oracle Application Server Port Numbers" for a complete list of allotted port ranges. Refer to Oracle Application Server 10g Installation Guide for directions on overriding port assignments during installation with |
You can view port numbers in the following ways:
ORACLE_HOME
/install/portlist.ini
If you change a port number, it is not updated in this file, so you can only rely on this file immediately after installation.
ORACLE_HOME
/Apache/Apache/setinfo.txt
Since the Application Server Control port number cannot be changed, this is always a good place to locate the URL for Application Server Control. However, you may change the HTTP Server port after installation, so it is not reliable for that.
If you have JServ configured, you can query the runtime port used by JServ with the following URL:
http://hostname.domain
:http_port
/oprocmgr-status
This section provides complete instructions for changing port numbers in middle-tier instances. The instructions explain how to change the port number, and update any other components that might be affected.
See Also:
Appendix C, "Oracle Application Server Port Numbers" for more information on changing port numbers |
Note: You can change a port number to any number you want, as long as it is an unused port. You do not have to use a port in the allotted port range for the component. |
It contains the following topics:
You cannot change Oracle Enterprise Manager ports after installation.
This section describes how to change the following OC4J port numbers:
By default, Oracle Application Server does not specify a single port number for each OC4J port. Instead, it specifies a port range for each type of OC4J port and that range is the same for all instances on the host. During runtime, each instance is assigned a single free port from the range.
For example, the default AJP range for every OC4J instance on a host is 3301-3400. Each OC4J instance is assigned a single free port from that range for its AJP port.
In order to change an OC4J port number, you typically change the range of port numbers for a service, and then a free port from that range will be assigned.
You can change OC4J port numbers using Application Server Control or manual steps:
ORACLE_HOME
/opmn/conf/opmn.xml
home
instance, locate this element:
<process-type id="home" ...>
port
element for each type of port. For example:
<port id="ajp" range="3301-3400"/> <port id="rmi" range="3201-3300"/> <port id="jms" range="3701-3800"/> <port id="iiop" range="3401-3500"/> <port id="iiops1" range="3501-3600"/> <port id="iiops2" range="3601-3700"/>
Modify the range parameter for the port you would like to change.
opmnctl reload
opmnctl restartproc process-type=OC4J_instance
For example, if you changed a port number in the home
instance:
opmnctl restartproc process-type=home
dcmctl updateConfig
This section describes how to change the Oracle HTTP Server Listen directive on a middle-tier instance. It contains the following procedures:
Follow this procedure to change the Oracle HTTP Server Listen port on a middle-tier instance. In this procedure, you update the Oracle HTTP Server Listen directive and register the new port number with Web Cache. The Web Cache port and the Oracle HTTP Server Port directive remain unchanged.
Follow this procedure to change the Oracle HTTP Server SSL Listen port on a middle-tier instance. In this procedure, you update the Oracle HTTP Server SSL Listen directive and register the new port number with Web Cache. The Web Cache SSL port and the Oracle HTTP Server SSL Port directive remain unchanged.
Follow this procedure on a J2EE and Web Cache installation that does not have Web Cache configured. It involves changing the Listen directive and Port directive with the new port number.
Follow this procedure on a J2EE and Web Cache installation that does not have Web Cache configured. It involves changing the SSL Listen directive and SSL Port directive with the new port number.
This section describes how to change the Oracle HTTP Server non-SSL listen port on an installation that has Web Cache front-ending the Oracle HTTP Server.
You can do this using Application Server Control or manual steps:
ORACLE_HOME
/Apache/Apache/conf/httpd.conf
Listen
directive with the new port number. Do not update the Port
directive.
There may be multiple Listen
directives in this file. Modify the Listen
directive that is not enclosed in an SSL virtual host container. The easiest way to locate the proper Listen
directive is to search the file for the old listen port number.
dcmctl updateConfig -ct ohs
Perform this step if you are changing the port to a number < 1024.
By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle Application Server non-SSL listen port number to a value less than 1024, you must enable Oracle Application Server to run as root, as follows:
cd ORACLE_HOME
/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Oracle HTTP Server listen port, or it may contain many occurrences. The listen port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Oracle HTTP Server listen port number, and replace them with the new port number. Be sure to update only the Oracle HTTP Server listen port; do not update the Web Cache listener port or any other port numbers.
ORACLE_HOME
/bin/emctl reload
HTTP
in the Protocol column. Click Edit Selected.
Restart the middle-tier instance:
opmnctl stopall opmnctl startall
This section describes how to change the Oracle HTTP Server non-SSL listen port on an installation that has Web Cache front-ending the Oracle HTTP Server.
ORACLE_HOME
/Apache/Apache/conf/ssl.conf
Listen
directive with the new port number. Do not update the Port
directive.
ORACLE_HOME
/dcm/bin/dcmctl updateConfig -ct ohs
Perform this step if you are changing the port to a number < 1024.
By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle Application Server SSL listen port number to a value less than 1024, you must enable Oracle Application Server to run as root, as follows:
cd ORACLE_HOME
/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Oracle HTTP Server SSL listen port, or it may contain many occurrences. The listen port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Oracle HTTP Server SSL listen port number, and replace them with the new port number. Be sure to update only the Oracle HTTP Server SSL listen port; do not update the Oracle HTTP Server non-SSL listen port, the Web Cache listener port, or any other port numbers.
ORACLE_HOME
/bin/emctl reload
HTTPS
in the Protocol column.Click Edit Selected.
Restart the middle-tier instance:
opmnctl stopall opmnctl startall
This section describes how to change the Oracle HTTP Server non-SSL listen port on an installation that does not have Web Cache front-ending the Oracle HTTP Server.
You can do this using Application Server Control or manual steps:
Port
directive.
Listen
directive. There may be more than one listening port listed. The only way to tell which is the non-SSL listen port is to choose the one with the old non-SSL listen port value.
ORACLE_HOME
/Apache/Apache/conf/httpd.conf
Listen
and Port
directives with the new port number. The value for Listen
and Port
must be the same port number, for example, to change the listener port to 7779
:
Listen 7779 Port 7779
There may be multiple Listen
and Port
directives in this file. Modify the Listen
and Port
directives that are not enclosed in an SSL virtual host container. The easiest way to locate the proper Listen
and Port
directives is to search the file for the old listen port number.
dcmctl updateConfig -ct ohs
Perform this step if you are changing the port to a number < 1024.
By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle Application Server non-SSL listen port number to a value less than 1024, you must enable Oracle Application Server to run as root, as follows:
cd ORACLE_HOME
/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Oracle HTTP Server listen port, or it may contain many occurrences. The listen port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Oracle HTTP Server listen port number, and replace them with the new port number.
ORACLE_HOME
/bin/emctl reload
If you are using Single Sign-On, re-register mod_osso
with the new port number:
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
$ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar -oracle_home_pathmiddle_tier_oracle_home
-site_namemiddle_tier_hostname
:
new_http_port_number
-config_mod_osso TRUE -mod_osso_urlmod_osso_url
-uuser
Note that user
is the user that starts Oracle HTTP Server. By default, this is the user that installed Oracle Application Server. If you have changed the Oracle HTTP Server listen port number to a value < 1024, then this user is root.
For example, if you want to change the Oracle HTTP Server listen port to 7779 on 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 http://myhost.mydomain:7779 -u oracle
See Also:
Oracle Application Server Single Sign-On Administrator's Guide for more information on registering mod_osso. |
Restart the middle-tier instance:
opmnctl stopall opmnctl startall
This section describes how to change the Oracle HTTP Server SSL listen port on an installation that has Web Cache front-ending the Oracle HTTP Server.
ORACLE_HOME
/Apache/Apache/conf/ssl.conf
Listen
and Port
directives with the new port number. The value for Listen
and Port
must be the same port number, for example, to change the listener port to 4445
:
Listen 4445 Port 4445
dcmctl updateConfig -ct ohs
Perform this step if you are changing the port to a number < 1024.
By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle Application Server SSL listen port number to a value less than 1024, you must enable Oracle Application Server to run as root, as follows:
cd ORACLE_HOME
/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Oracle HTTP Server SSL listen port, or it may contain many occurrences. The listen port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Oracle HTTP Server SSL listen port number, and replace them with the new port number. Be sure to update only the Oracle HTTP Server SSL listen port; do not update the Oracle HTTP Server non-SSL listen port or any other port numbers.
ORACLE_HOME
/bin/emctl reload
If you have registered your SSL virtual host as an SSO partner application, follow these steps to re-register your SSL virtual host:
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
$ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar -oracle_home_pathmiddle_tier_oracle_home
-site_namemiddle_tier_hostname
:
new_https_port_number
-config_mod_osso TRUE -mod_osso_urlmod_osso_url
-virtualhost -uuser
Note that user
is the user that starts Oracle HTTP Server. By default, this is the user that installed Oracle Application Server. If you have changed the Oracle HTTP Server listen port number to a value < 1024, then this user is root.
For example, if you want to change the Oracle HTTP Server SSL listen port to 4445 on 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 https://myhost.mydomain:4445 -virtualhost -u oracle
See Also:
Oracle Application Server Single Sign-On Administrator's Guide for more information on registering |
Restart the middle-tier instance:
opmnctl stopall opmnctl startall
This section describes how to change the Web Cache non-SSL listener port. It involves changing the Web Cache port number and updating other components in the middle tier with the new port number.
If the Web Cache non-SSL listener port is the same as the logical site port, update the logical site port as follows:
Perform this step if you are changing the port to a number < 1024.
By default, Web Cache runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Web Cache non-SSL listener port number to a value less than 1024, you must enable Web Cache to run as root, as follows:
opmnctl stopproc ias-component=WebCache
ORACLE_HOME
/webcache/bin/webcache_setuser.sh setrootuserID
Where userid
is the current user Web Cache is running under. This is usually the user that installed Oracle Application Server. This user is listed on the Process Identity screen in Web Cache Manager.
opmnctl startproc ias-component=WebCache
ORACLE_HOME
/Apache/Apache/conf/httpd.conf
Port
directive with the new port number. Do not modify the Listen
directive. The Web Cache port must equal the Oracle HTTP Server Port directive.
dcmctl updateConfig -ct ohs
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Web Cache listener port, or it may contain many occurrences. The listener port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Web Cache listener port number, and replace them with the new port number.
ORACLE_HOME
/bin/emctl reload
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
mod_osso
with the new port number by running the following command in the middle-tier Oracle home:
$ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar -oracle_home_pathmiddle_tier_oracle_home
-site_namemiddle_tier_hostname
:
new_http_port_number
-config_mod_osso TRUE -mod_osso_urlmod_osso_url
-uuser
Note that user
is the user that starts Oracle HTTP Server. By default, this is the user that installed Oracle Application Server. If you have changed the Oracle HTTP Server listen port number to a value < 1024, then this user is root.
For example, if you want to change the Web Cache listener port to 7779 on 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 http://myhost.mydomain:7779 -u oracle
See Also:
Oracle Application Server Single Sign-On Administrator's Guide for more information on registering |
If you have OracleAS Portal configured, update Portal with the new listener port number.
If you are using Web Providers with OracleAS Portal, you must update them as follows (note that locally hosted Web Providers run on the same middle-tier instance as OracleAS Portal):
If you have OracleAS Wireless configured, update Wireless with the new port number:
ORACLE_HOME
/wireless/bin/reRegisterSSO.shnew_wireless_url
oracle_home
administrator_dn
new_wireless_url
: Wireless HTTP URL with the new Web Cache listener port.
oracle_home
: Middle-tier Oracle home whose Web Cache port you are changing.
administrator_dn
: OID administrator.
For example, if you have changed the Web Cache listener port to 7779
on the middle-tier installation in /home/oracle
on host myhost
:
ORACLE_HOME
/wireless/bin/reRegisterSSO.sh http://myhost:7779/ptg/rm
/home/oracle cn=orcladmin
If you have OracleAS Discoverer configured, and you are using the non-SSL port for the URL of the Discoverer Portlet Provider, edit the URL of the Discoverer Portlet Provider to use the new port number.
See Also:
Refer to the instructions on "How to edit Discoverer Portlet Provider" in Oracle Application Server Discoverer Configuration Guide. |
You do not need to make any configuration changes to Reports Service to reflect the change. However, if you have built any Web pages that contain links to the middle-tier Reports Service, you need to update those Web pages with the new port number.
Restart the middle-tier instance:
opmnctl stopall opmnctl startall
This section describes how to change the Web Cache SSL listener port. It involves changing the Web Cache port number and updating other components in the middle tier with the new port number.
If the Web Cache SSL listener port is the same as the logical site port, update the logical site port as follows:
By default, Web Cache runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Web Cache SSL listener port number to a value less than 1024, you must enable Web Cache to run as root, as follows:
opmnctl stopproc ias-component=WebCache
ORACLE_HOME
/webcache/bin/webcache_setuser.sh setrootuserID
Where userid
is the current user Web Cache is running under. This is usually the user that installed Oracle Application Server. This user is listed on the Process Identity screen in Web Cache Manager.
opmnctl startproc ias-component=WebCache
ORACLE_HOME
/Apache/Apache/conf/ssl.conf
Port
directive with the new port number. Do not modify the Listen
directive. The Web Cache SSL port must equal the Oracle HTTP Server SSL Port directive.
dcmctl updateConfig -ct ohs
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Web Cache SSL listener port, or it may contain many occurrences. The listen port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Web Cache SSL listener port number, and replace them with the new port number. Be sure to update only the Web Cache SSL listener port; do not update any other port numbers.
ORACLE_HOME
/bin/emctl reload
If you have registered your SSL virtual host as an SSO partner application, follow these steps to re-register your SSL virtual host:
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
mod_osso
with the new port number by running the following command in the middle-tier Oracle home:
$ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar -oracle_home_pathmiddle_tier_oracle_home
-site_namemiddle_tier_hostname
:
new_https_port_number
-config_mod_osso TRUE -mod_osso_urlmod_osso_url
-virtualhost -uuser
Note that user
is the user that starts Oracle HTTP Server. By default, this is the user that installed Oracle Application Server. If you have changed the Oracle HTTP Server listen port number to a value < 1024, then this user is root.
For example, if you want to change the Web Cache SSL listen port to 4445 on 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 https://myhost.mydomain:4445 -virtualhost -u oracle
See Also:
Oracle Application Server Single Sign-On Administrator's Guide for more information on registering |
If you have OracleAS Portal configured, update Portal with the new SSL listener port number.
ORACLE_HOME
/Apache/modplsql/conf/dads.conf
dcmctl updateConfig
httpsports
parameter in the following file:
ORACLE_HOME
/j2ee/OC4J_Portal/applications/portal/portal/WEB-INF/web.xml
If you have Wireless configured, update Wireless with the new port number:
ORACLE_HOME/
wireless/bin/reRegisterSSO.shnew_wireless_url
oracle_home
administrator_dn
new_wireless_url
: Wireless HTTPS URL with the new Web Cache SSL listener port.
oracle_home
: Middle-tier Oracle home whose Web Cache port you are changing.
administrator_dn
: OID administrator.
For example, if you have changed the Web Cache SSL listener port to 80
on the middle-tier installation in /home/oracle
on host myhost
:
ORACLE_HOME/
wireless/bin/reRegisterSSO.sh https://myhost:80/ptg/rm
/home/oracle cn=orcladmin
If you have OracleAS Discoverer configured, and you are using the SSL port for the URL of the Discoverer Portlet Provider, edit the URL of the Discoverer Portlet Provider to use the new port number.
See Also:
Refer to the instructions on "How to edit Discoverer Portlet Provider" in Oracle Application Server Discoverer Configuration Guide. |
You do not need to make any configuration changes to Reports Services to reflect the change. However, if you have built any Web pages that contain links to the middle-tier Reports Service, you need to update those Web pages with the new port number.
Restart the middle-tier instance:
opmnctl stopall opmnctl startall
To change the Web Cache administration port on any installation type:
http://web_cache_hostname
:current_web_cache_admin_port
/webcacheadmin
For example:
http://web_cache_hostname
:4000/webcacheadmin
ias_admin
or administrator
.
Note that you must restart from the command-line; do not use the Web Cache Manager to restart. You can restart in either of the following ways:
ORACLE_HOME
/opmn/bin/opmnctl restartproc ias-component=WebCache
ORACLE_HOME
/opmn/bin/opmnctl restartproc process-type=WebCacheAdmin
If you choose this method, Web Cache will operate properly, however, Web Cache Manager will display the following message until you restart the entire Web Cache server: "Restart Web Cache to make configuration changes take effect."
Update the Application Server Control with the new Web Cache administration port number as follows:
ORACLE_HOME
/sysman/emd/targets.xml
oracle_webcache
, update the AdminPort
property with the new port number.
ORACLE_HOME
/bin/emctl reload
If the Web Cache is front-ending Portal, update Portal with the new administration port number:
To change the Web Cache invalidation port on any installation type:
If the Web Cache is front-ending Portal, update Portal with the new invalidation port number.
To change the Web Cache statistics port on any installation type:
This section describes how to change the DCM Java Object Cache port number in any installation type. To change the DCM Java Object Cache port number:
ORACLE_HOME
/dcm/config/dcmCache.xml
<communication>
element, update the discovery-port
parameter in the <coordinator>
element with the new port number. For example:
<coordinator discovery-port="7110" original="true" />
emctl stop iasconsole opmnctl stopproc ias-component=dcm-daemon
It is important that you make sure all Application Server Control instances and DCM daemons in the farm are stopped before you proceed to the next step.
opmnctl startproc ias-component=dcm-daemon emctl start iasconsole
This section describes how to change the Java Object Cache port number in any installation type. To change the Java Object Cache port number:
ORACLE_HOME
/javacache/admin/javacache.xml
<communication>
element, update the discovery-port
parameter in the <coordinator>
element with the new port number. For example:
<coordinator discovery-port="7010" />
dcmctl restart -co OC4J_INSTANCE
This section describes how to change the JServ Servlet Engine port number in any installation type. To change the JServ Servlet Engine port:
ORACLE_HOME
/Apache/Jserv/etc/jserv.properties
port
parameter with the new port number.
opmnctl stopproc ias-component=HTTP_Server opmnctl startproc ias-component=HTTP_Server
This section describes how to change the Log Loader port on any installation type. To change the Log Loader port:
This section describes how to change any of the following port numbers:
You can change ONS port using Application Server Control or manual steps:
local
, remote
, or request
parameter, as desired, in the <port>
element. For example:
<port local="6101" remote="6201" request="6004"/>
opmnctl stopall opmnctl startall
ORACLE_HOME
/opmn/conf/opmn.xml
<notification-server>
element, modify the local
, remote
, or request
parameter, as desired, in the <port>
element. For example:
<port local="6101" remote="6201" request="6004"/>
opmnctl reload opmnctl stopall opmnctl startall
This section describes how to change the Oracle HTTP Server Diagnostics port number in any installation type. To change the Oracle HTTP Server Diagnostics port number:
ORACLE_HOME
/Apache/Apache/conf/dms.conf
Listen
directive, OpmnHostPort
directive, Redirect
directive, and the Virtual Host.
opmnctl stopproc ias-component=HTTP_Server opmnctl startproc ias-component=HTTP_Server
This section describes how to change the Port Tunneling port on any installation type. To change the Port Tunneling port number:
ORACLE_HOME
/opmn/conf/opmn.xml
<ias-component id="IASPT">
element, update the range parameter in the <port>
element with the new range. For example:
<port id="ajp" range="7501-7503"/>
Note that the port number range specified in opmn.xml
overrides any port number specified in iaspt.conf
. So you only need to update the port number in opmn.xml
.
opmnctl reload opmnctl stopall opmnctl startall
This section contains the following topics:
OracleAS Portal uses the Web Cache HTTP server port on the instance.
OracleAS Wireless uses the Web Cache HTTP server port on the instance.
This section contains the following topics:
The OracleAS Discoverer OSAgent port cannot be changed after installation. Other OracleAS Discoverer services use the Web Cache HTTP server port on the instance.
OracleAS Forms Services uses the Web Cache HTTP server port on the instance.
To change the Reports Services SQL*Net port number:
tnsnames.ora
file. The default location is:
ORACLE_HOME
/network/admin/tnsnames.ora
In the REP_
HOSTNAME
entry, update the PORT
parameter with the new port number.
tnsnames.ora
file. In the REP_
HOSTNAME
entry, update the PORT
parameter with the new port number.
This section contains the following topics:
First, determine if it is necessary to change the Metadata Repository listener port number. If you are concerned about the fact that you have another database on your host using the same port, it is possible that the Metadata Repository and the other database can use the same port.
The following are guidelines for port usage by multiple databases on the same host:
If you want to run two listeners that use the same key value on one host, refer to Section 5.6.1.1, "Changing the KEY value for an IPC Listener"
Note:
If you determine that you would like to change the Metadata Repository Listener Port, follow the steps in this section. A Metadata Repository may be used in several different ways. Use the following table to determine the steps that are required for changing your type of Metadata Repository:
If the Metadata Repository is used as follows: | Follow these steps to change its Net Listener port: |
---|---|
Step 1: Make Sure OID and SSO Are Running Step 2: Change the Metadata Repository Net Listener Port Step 3: Update Oracle Internet Directory Step 5: Update OracleAS Certificate Authority |
|
Step 1: Make Sure OID and SSO Are Running Step 2: Change the Metadata Repository Net Listener Port Step 3: Update Oracle Internet Directory |
|
Step 1: Make Sure OID and SSO Are Running Step 2: Change the Metadata Repository Net Listener Port |
|
If the Metadata Repository is registered with OID, make sure that the Identity Management instance (SSO and OID) is up and running before you proceed.
On the Metadata Repository host:
ORACLE_HOME
environment variable and ORACLE_SID
are set.
lscnrctl stop
ORACLE_HOME
/network/admin/listener.ora
Under the LISTENER
entry, update the value for PORT
.
tnsnames.ora
file. The default location is:
ORACLE_HOME
/network/admin/tnsnames.ora
Update the PORT
value in each entry that applies to the Metadata Repository.
lsnrctl start
On the Identity Management host, update OID with the new Net Listener port number:
ORACLE_HOME
/bin/oidadmin
PORT
parameter in the orclnetdescstring
field with the new port number.
On the SSO host:
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
ORACLE_HOME
/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoca.jar reassoc -repos
$ORACLE_HOME
If the Identity Management installation has OracleAS Certificate Authority:
https://infrastructure_hostname
:http_ssl_port
/oca/admin
Where http_ssl_port
is the HTTP SSL listener port.
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Locate the oracle_ldap
target and update the PORT
parameter in the ConnectDescriptor
value with the new port number. The easiest way to find this is to search the file for the old port number.
ORACLE_HOME
/bin/emctl reload
In each middle-tier Oracle home uses the Metadata Repository for its Management (DCM) schema:
ORACLE_HOME
/config/iasschema.xml
<SchemaConfigData>
entry for the DCM
schema.
<DBConnect>
entry with the new port number.
opmnctl restartproc ias-component=dcm-daemon
In each middle-tier Oracle home that uses the Metadata Repository, update the following file with the new Net Listener port number:
ORACLE_HOME
/network/admin/tnsnames.ora
It is not possible to run two listeners at the same time that are configured to use the same KEY value in their IPC protocol address. By default, the OracleAS Metadata Repository listener has its IPC KEY value set to EXTPROC. Hence, if your computer has another IPC listener that uses the EXTPROC key, you should configure the Metadata Repository listener to use some other key value such as EXTPROC1.
To change the KEY value of an IPC listener:
ORACLE_HOME
/bin/lsnrctl stop
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
to something like:
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
ORACLE_HOME
/bin/lsnrctl start
This section describes how to change the Oracle Internet Directory port on an Identity Management installation. When you change this port number, you must update any middle-tier instances that use the Identity Management installation.
The following procedures contain complete instructions for updating the Oracle Internet Directory port number on Identity Management, including updating other components in the Infrastructure and updating the middle-tier instances that use the port:
This procedure describes how to change the Oracle Internet Directory non-SSL port on an Identity Management installation. Review all steps before you begin.
Follow this step only if the Identity Management installation is being used by middle-tier instances. On each middle-tier instance that uses Identity Management, stop the middle-tier instance as follows:
It is important that you leave Application Server Control running in each of the middle-tier instances while you perform this procedure.
mod.ldif
with the following contents (you can create the file in any directory):
dn:cn=configset0, cn=osdldapd, cn=subconfigsubentry
changetype:modify
replace:orclnonsslport
orclnonsslport:new_port_number
ORACLE_HOME
/bin/ldapmodify -D cn=orcladmin -wpassword
-poid_port
-f mod.ldif
opmnctl stopproc ias-component=OID opmnctl startproc ias-component=OID
ORACLE_HOME
/network/admin/ldap.ora
Modify the following line to contain the new non-SSL port number:
DIRECTORY_SERVERS=(myhost.myco.com:non_ssl_port
:ssl_port
)
Save and close the file.
ORACLE_HOME
/config/ias.properties
Change the value of OIDport
to the new non-SSL port number.
Save and close the file.
Follow this step if you are using OCA:
ORACLE_HOME
/oca/bin/ocactl changesecurity -server_auth_portport_number
Where port_number
is the OCA Server Authentication Virtual Host (SSL) port; the default is 4400
.
See Also:
Oracle Application Server Certificate Authority Administrator's Guide for more information |
Restart the Identity Management instance:
emctl stop iasconsole opmnctl stopall opmnctl startall emctl start iasconsole
On each middle-tier instance that uses the Identity Management installation, run the Change Identity Management Services wizard and start the instance:
This procedure describes how to change the Oracle Internet Directory SSL port on an Identity Management installation. Review all steps before you begin.
Follow this step only if the Identity Management installation is being used by middle-tier instances. On each middle-tier instance that uses Identity Management, stop the middle-tier instance as follows:
It is important that you leave Application Server Control running in each of the middle-tier instances while you perform this procedure.
mod.ldif
with the following contents (you can create the file in any directory):
dn:cn=configset0, cn=osdldapd, cn=subconfigsubentry
changetype:modify
replace:orclsslport
orclsslport:new_ssl_port_number
ORACLE_HOME
/bin/ldapmodify -D cn=orcladmin -wpassword
-poid_port
-f mod.ldif
opmnctl stopproc ias-component=OID opmnctl startproc ias-component=OID
ORACLE_HOME
/network/admin/ldap.ora
Modify the following line to contain the new SSL port number:
DIRECTORY_SERVERS=(myhost.myco.com:non_ssl_port
:ssl_port
)
Save and close the file.
ORACLE_HOME
/config/ias.properties
Change the value of OIDsslport
to the new SSL port number.
Save and close the file.
Follow this step if you are using OCA:
ORACLE_HOME
/oca/bin/ocactl changesecurity -server_auth_portport_number
Where port_number
is the OCA Server Authentication Virtual Host (SSL) port; the default is 4400
.
See Also:
Oracle Application Server Certificate Authority Administrator's Guide for more information |
Restart the Identity Management instance:
emctl stop iasconsole opmnctl stopall opmnctl startall emctl start iasconsole
On each middle-tier instance that uses the Identity Management installation, run the Change Identity Management Services wizard and start the instance:
This section describes how to change the Oracle HTTP Server listen port on an Identity Management installation. When you change this port number, you also effectively change the Single Sign-On (SSO) port number. This means you must update any middle-tier instances that use the Single Sign-On port.
The following procedures contain complete instructions for updating the Oracle HTTP Server port number on Identity Management, including updating other components in the Infrastructure and updating the middle-tier instances that use the port:
This procedure describes how to change the non-SSL listen port on an Identity Management installation. When you do this, you must update both the Listen and Port directives with the new port number.
Follow this step only if the Identity Management installation is being used by middle-tier instances. On each middle-tier instance that uses Identity Management, stop the middle-tier instance as follows:
It is important that you leave Application Server Control running in each of the middle-tier instances while you perform this procedure.
Change both the Listen and Port directive to the new port number. You can perform this step using Application Server Control or manual steps.
Port
directive.
Listen
directive. There may be more than one listening port listed. The only way to tell which is the non-SSL listen port is to choose the one with the old non-SSL listen port value.
ORACLE_HOME
/Apache/Apache/conf/httpd.conf
Listen
and Port
directives with the new port number. The value for Listen
and Port
must be the same port number, for example, to change the listener port to 7779
:
Listen 7779 Port 7779
There may be multiple Listen
and Port
directives in this file. Modify the Listen
and Port
directives that are not enclosed in an SSL virtual host container. The easiest way to locate the proper Listen
and Port
directives is to search the file for the old port number.
dcmctl updateConfig -ct ohs
Perform this step if you are changing the port to a value less than 1024.
By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle Application Server non-SSL listen port number to a value less than 1024, you must enable Oracle HTTP Server to run as root, as follows:
cd ORACLE_HOME
/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Oracle HTTP Server listen port, or it may contain many occurrences. The listen port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Oracle HTTP Server listen port number, and replace them with the new port number.
ORACLE_HOME
/bin/emctl reload
Perform this step if SSO is configured to use the non-SSL Oracle HTTP Server listen port in the installation where you are changing the port.
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
ORACLE_HOME
/sso/bin/ssocfg.sh httphostname
new_port_number
Where:
hostname
is the host on which SSO is running
new_port_number
is the new non-SSL Oracle HTTP Server listen port number
Re-register mod_osso
as follows:
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
mod_osso
to take care of the default partner applications by running the following command in the Identity Management Oracle home:
$ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar -oracle_home_pathmiddle_tier_oracle_home
-site_namemiddle_tier_hostname
:
new_http_port_number
-config_mod_osso TRUE -mod_osso_urlmod_osso_url
-uuser
Note that user
is the user that starts Oracle HTTP Server. By default, this is the user that installed Oracle Application Server. If you have changed the Oracle HTTP Server listen port number to a value < 1024, then this user is root
.
For example, if you want to change the Oracle HTTP Server listen port to 7779 on 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 http://myhost.mydomain:7779 -u oracle
Oracle Application Server Single Sign-On Administrator's Guide for more information on registering
See Also:
mod_osso
.
If you have DAS configured, and DAS uses the non-SSL port number, follow these steps to update the DAS URL entry in Oracle Internet Directory.
Note: You can find out what port DAS uses with the following command:
ORACLE_HOME
/bin/ldapsearch -hoid_host
-poid_port
-D "cn=orcladmin" -w "password
" -b "cn=OperationURLs,cn=DAS,cn=Products,cn=OracleContext" -s base "objectclass=*" orcldasurlbase
mod.ldif
with the following contents (you can create the file in any directory):
dn:cn=OperationURLs,cn=DAS,cn=Products,cn=OracleContext
changetype:modify
replace:orcldasurlbase
orcldasurlbase:http://hostname:new_http_port_number/
Note the slash at the end of the orcldasurlbase
URL.
ORACLE_HOME
/bin/ldapmodify -D cn=orcladmin -w password -p oid_port -f
mod.ldif
If you are using OracleAS Certificate Authority:
ORACLE_HOME
/oca/bin/ocactl changesecurity -server_auth_portport_number
Where port_number
is the OCA Server Authentication Virtual Host (SSL) port; the default is 4400
.
See Also:
Oracle Application Server Certificate Authority Administrator's Guide for more information |
oca
instance in the OCA Oracle home:
opmnctl stopproc ias-component=HTTP_Server opmnctl stopproc process-type=oca opmnctl startproc ias-component=HTTP_Server opmnctl startproc process-type=oca
Restart the Identity Management instance:
opmnctl stopall opmnctl startall
If OCA is configured in this instance, restart it:
ORACLE_HOME
/oca/bin/ocactl start
On each middle-tier instance that uses the Identity Management installation, run the Change Identity Management Services wizard and start the instance:
This procedure describes how to change the SSL listen port on an Identity Management installation. When you do this, you must update both the SSL Listen and SSL Port directives with the new port number.
Follow this step only if the Identity Management installation is being used by middle-tier instances. On each middle-tier instance that uses Identity Management, stop the middle-tier instance as follows:
It is important that you leave Application Server Control running in each of the middle-tier instances while you perform this procedure.
Change both the SSL Listen and SSL Port directives to the new port number. You must do this using manual steps.
ORACLE_HOME
/Apache/Apache/conf/ssl.conf
Listen
and SSL Port
directives with the new port number. The value for Listen
and Port
must be the same port number, for example, to change the listener port to 4445
:
Listen 4445 Port 4445
dcmctl updateConfig -ct ohs
Perform this step if you are changing the port to a value less than 1024.
By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle Application Server non-SSL listen port number to a value less than 1024, you must enable Oracle HTTP Server to run as root, as follows:
cd ORACLE_HOME
/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
Update Application Server Control with the new port number:
ORACLE_HOME
/sysman/emd/targets.xml
Depending on your configuration, this file may not contain any occurrences of the Oracle HTTP Server SSL listen port, or it may contain many occurrences. The listen port may occur as a parameter on its own, or it may be part of a URL. The easiest way to edit this file is to search for all occurrences of the old Oracle HTTP Server SSL listen port number, and replace them with the new port number. Be sure to update only the Oracle HTTP Server SSL listen port; do not update the Oracle HTTP Server non-SSL listen port or any other port numbers.
ORACLE_HOME
/bin/emctl reload
Perform this step if SSO is configured to use the non-SSL Oracle HTTP Server listen port in the installation where you are changing the port.
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
ORACLE_HOME
/sso/bin/ssocfg.sh httpshostname
new_port_number
Where:
hostname
is the host on which SSO is running
new_port_number
is the new SSL Oracle HTTP Server listen port number
Re-register mod_osso
as follows:
LD_LIBRARY_PATH
environment variable contains $ORACLE_HOME/lib
.
mod_osso
to take care of the default partner applications by running the following command in the Identity Management Oracle home:
$ORACLE_HOME/jdk/bin/java -jar $ORACLE_HOME/sso/lib/ossoreg.jar -oracle_home_pathmiddle_tier_oracle_home
-site_namemiddle_tier_hostname
:
new_https_port_number
-config_mod_osso TRUE -mod_osso_urlmod_osso_url
-virtualhost -uuser
Note that user
is the user that starts Oracle HTTP Server. By default, this is the user that installed Oracle Application Server. If you have changed the Oracle HTTP Server listen port number to a value < 1024, then this user is root.
For example, if you want to change the Oracle HTTP Server listen port to 4445 on 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 https://myhost.mydomain:4445 -virtualhost -u oracle
Oracle Application Server Single Sign-On Administrator's Guide for more information on registering
See Also:
mod_osso
.
If you have DAS configured, and DAS uses the SSL port number, update the DAS URL entry in Oracle Internet Directory.
Note: You can find out what port DAS uses with the following command:
ORACLE_HOME
/bin/ldapsearch -hoid_host
-poid_port
-D "cn=orcladmin" -w "password
" -b "cn=OperationURLs,cn=DAS,cn=Products,cn=OracleContext" -s base "objectclass=*" orcldasurlbase
mod.ldif
with the following contents (you can create the file in any directory):
dn:cn=OperationURLs,cn=DAS,cn=Products,cn=OracleContext changetype:modify replace:orcldasurlbase orcldasurlbase:https://hostname
:new_https_port_number
/
Note the slash at the end of the orcldasurlbase URL.
ORACLE_HOME
/bin/ldapmodify -D cn=orcladmin -wpassword
-poid_port
-f mod.ldif
If you are using OracleAS Certificate Authority:
ORACLE_HOME
/oca/bin/ocactl changesecurity -server_auth_portport_number
Where port_number
is the OCA Server Authentication Virtual Host (SSL) port; the default is 4400
.
See Also:
Oracle Application Server Certificate Authority Administrator's Guide for more information |
oca
instance in the OCA Oracle home:
opmnctl stopproc ias-component=HTTP_Server opmnctl stopproc process-type=oca opmnctl startproc ias-component=HTTP_Server opmnctl startproc process-type=oca
Restart the Identity Management instance:
opmnctl stopall opmnctl startall
If OCA is configured in this instance, restart it:
ORACLE_HOME
/oca/bin/ocactl start
On each middle-tier instance that uses the Identity Management installation, run the Change Identity Management Services wizard and start the instance:
This section describes how to change the following port numbers:
To change either of these port numbers:
ORACLE_HOME
/Apache/Apache/conf/ocm_apache.conf
sqlplus oca/oca_admin_password
@$ORACLE_HOME/oca/sql/ocaportchg
ORACLE_HOME
/oca/bin/ocactl changesecurity -server_auth_portport_number
Where port_number
is the OCA Server Authentication Virtual Host (SSL) port; the default is 4400
.
See Also:
Oracle Application Server Certificate Authority Administrator's Guide for more information |
opmnctl restartproc type=ohs
opmnctl restartproc type=oc4j instancename=oca
ORACLE_HOME
/oca/bin/ocactl start
|
![]() Copyright © 2002, 2003 Oracle Corporation. All Rights Reserved. |
|