XE: Changing the default http port
2013-10-31 10:38
302 查看
Oracle XE uses the embedded http listener that comes with the XML DB (XDB) to serve http requests. The default port for HTTP access is 8080.
It also supports the WebDAV protocol just as well as FTP.
You
can determine the current configuration using the following commands
when you connect to XE as the oracle user SYSTEM (or any other DBA):
You
can change the http port and the ftp port to whatever you like (keep in
mind that you need special privileges for ports < 1024 on Unix/Linux
systems).
If you only want to use the database without allowing access via http or ftp then you can disable both:
It also supports the WebDAV protocol just as well as FTP.
You
can determine the current configuration using the following commands
when you connect to XE as the oracle user SYSTEM (or any other DBA):
C:\WINDOWS\system32>sqlplus system@xe SQL*Plus: Release 10.1.0.2.0 - Production on Mi Jan 25 11:44:33 2006 Copyright (c) 1982, 2004, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta SQL> -- get current status SQL> select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual; HTTP-Port FTP-Port ---------- ---------- 8080 0
You
can change the http port and the ftp port to whatever you like (keep in
mind that you need special privileges for ports < 1024 on Unix/Linux
systems).
SQL> -- set http port and ftp port SQL> begin 2 dbms_xdb.sethttpport('80'); 3 dbms_xdb.setftpport('2100'); 4 end; 5 / PL/SQL procedure successfully completed. SQL> select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual; HTTP-Port FTP-Port ---------- ---------- 80 2100
If you only want to use the database without allowing access via http or ftp then you can disable both:
SQL> -- disable http and ftp access SQL> begin 2 dbms_xdb.sethttpport('0'); 3 dbms_xdb.setftpport('0'); 4 end; 5 / PL/SQL procedure successfully completed. SQL> -- get current status SQL> select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual; HTTP-Port FTP-Port ---------- ---------- 0 0
相关文章推荐
- Changing the default port in WebSphere Application Server
- Using shiro's native and the default http session
- Changing the headers for UIWebKit HTTP requests – Method Swizzling
- [warn] _default_ VirtualHost overlap on port 80, the first has precedence解决办法
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- Changing the default skins on a Button control in Flex
- Oracle OEM 配置报错: No value was set for the parameter DBCONTROL_HTTP_PORT 解决方法
- 解决:配置虚拟主机,重启apache,[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- Oracle OEM 配置报错: No value was set for the parameter DBCONTROL_HTTP_PORT 解决方法
- nginx: 400 Bad Request | The plain HTTP request was sent to HTTPS port
- Oracle OEM 配置报错: No value was set for the parameter DBCONTROL_HTTP_PORT 解决方法
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- Changing SharePoint Default port ( 80 ) to another port ( 79 ).
- Is it possible to change Agile Web Client login from port 7001 to the default port 80 in Weblogic?
- [warn] _default_ VirtualHost overlap on port 443, the first has precedence
- Oracle OEM 配置报错: No value was set for the parameter DBCONTROL_HTTP_PORT 解决方法
- Nginx:The plain HTTP request was sent to HTTPS port解决办法
- DefaultHttpFirewalls in the spring security
- Oracle OEM 配置报错: No value was set for the parameter DBCONTROL_HTTP_PORT 解决方法
- 关于Apache: [warn] _default_ VirtualHost overlap on port 80, the first has precedence Error and Solution的解决方案