When I was installing OracleXE for developer Demon today, there was a prompt:
- Destination Folder: D: \ oraclexe \
- PortFor 'Oracle Database Listener'1521
- PortFor 'Oracle Services for Microsoft Transaction Server'2030
- 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:
- Begin
- Dbms_xdb.sethttpport ('123');
- Dbms_xdb.setftpport ('0');
- End;
- /
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:
- SQL>Begin
- 2 dbms_xdb.sethttpport ('123');
- 3 dbms_xdb.setftpport ('0');
- 4End;
- 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:
- Begin
- Dbms_xdb.sethttpport ('123');
- Dbms_xdb.setftpport ('0');
- End;
- /
In this way, the port is set to 8081.