Modify ports 1521 and 8080 occupied by Oracle XE Listener

Source: Internet
Author: User

When I was installing OracleXE for developer Demon today, there was a prompt:

  1. Destination Folder: D: \ oraclexe \
  2. PortFor 'Oracle Database Listener'1521
  3. PortFor 'Oracle Services for Microsoft Transaction Server'2030
  4. PortForHTTP Listener: 8080

It can be seen that the default web console service port is 8080 and cannot be changed during installation. After installation, it conflicts with Tomcat, Jboss, and other servers, so many problems may occur. There is such an SQL statement in the XE installation file that can be used to change the http port.
In the D: \ oraclexe \ app \ oracle \ product \ 10.2.0 \ server \ config \ scripts \ postDBCreation. SQL file. There is such an SQL code:

  1. Begin
  2. Dbms_xdb.sethttpport ('123');
  3. Dbms_xdb.setftpport ('0');
  4. End;
  5. /
Take a look at the log file D: \ oraclexe \ app \ oracle \ product \ 10.2.0 \ server \ config \ log \ postDBCreation. log, which contains the following records:
  1. SQL>Begin
  2. 2 dbms_xdb.sethttpport ('123');
  3. 3 dbms_xdb.setftpport ('0');
  4. 4End;
  5. 5/PL/SQLProcedureSuccessfully completed.
We can see that Oracle XE uses it to set the http port and open the SQL * Plus console. Use sys or system to log on. Then run:
  1. Begin
  2. Dbms_xdb.sethttpport ('123');
  3. Dbms_xdb.setftpport ('0');
  4. End;
  5. /

In this way, the port is set to 8081.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.