Solution to the default port conflict between Oracle XDB and various App servers

Source: Internet
Author: User

XDBProvides an XDB Server Service for Oracle databases to operate XML Object objects, including XML structure management and XML access control management. But XDB is actually quite familiar, but XDB Server Service, because of itsDefault portThe setting is 8080, which is in conflict with various application servers (the http port of most app servers is 8080). Change the default port of XDB Server. Unfortunately, unlike most software, many ORACLE configurations are not stored in plain text configuration files, but in databases (/sys/xdbconfig. xml ). this requires you to modify the configuration through database operations.

Solution:

1. Log On As sysdba.

2. run the dbms_xdb.mongo_update () method SQL> call dbms_xdb.mongo_update (updateXML (batch (), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text ()', 9090 )); call completed.

3. SQL> commit; Commit complete. This statement is not necessary because dbms_xdb.cfg_update is auto-commit.

4. SQL> EXEC dbms_xdb.cfg_refresh; PL/SQL procedure successfully completed.

0-Production

The statement With the Partitioning, OLAP and Data Mining options is also unnecessary. This statement makes the current change take effect immediately in this session. even if this statement is not added, you can log on to sqlplus again (equivalent to re-opening an oracle session) to see the effect of oracle changes.

Many oracle configurations are "Hot change" (runtime config). After the changes, the changes will be made in other newly opened sessions.

5. view the results:

Here, we see an XMLType field:

 
 
  1. SQL> SELECT dbms_xdb.cfg_get FROM dual; pai_get
  2.  
  3. <Xdbconfig xmlns = "http://xmlns.oracle.com/xdb/xdbconfig.xsd" xmlns: xsi = "http: // w-only show this point, you need to reset the row mode page Mode
  4.  
  5. SQL> set long 100
  6.  
  7. SQL> set pagesize 100 SQL> SELECT dbms_xdb.pai_get FROM dual; pai_get
  8.  
  9. <Xdbconfig xmlns = "http://xmlns.oracle.com/xdb/xdbconfig.xsd"
  10. Xmlns: xsi = "http: // w
  11.  
  12. Ww.w3.org/2001/XMLSchema-instance "xsi: schemaLocation =" http://xmlns.oracle.com/x
  13.  
  14. Db/xdbconfig. xsd
  15.  
  16. Http://xmlns.oracle.com/xdb
  17.  
  18. /Xdbconfig. xsd ">
  19.  
  20. <Sysconfig>
  21.  
  22. <Protocolconfig>
  23.  
  24. <Ftpconfig>
  25.  
  26. <Ftp-port> 0 </ftp-port>
  27.  
  28. <Ftp-listener> local_listener </ftp-listener>
  29.  
  30. <Ftp-protocol> tcp </ftp-protocol>
  31.  
  32. <Logfile-path/>
  33.  
  34. <Log-level> 0 </log-level>
  35.  
  36. <Session-Time Out> 6000 </session-timeout>
  37.  
  38. <Buffer-size> 8192 </buffer-size>
  39.  
  40. </Ftpconfig>
  41.  
  42. <Httpconfig>
  43.  
  44. <Http-port> 9090
  45.  
  46. <Http-listener> local_listener
  47.  
  48. <Http-protocol> tcp
  49.  
  50. <Max-http-headers> 64 </max-http-headers>
  51.  
  52. <Max-header-size> 16384 </max-header-size>
  53.  
  54. <Max-request-body> 2000000000 </max-request-body>
  55.  
  56. <Session-Time Out> 6000 </session-timeout>
  57.  
  58. <Server-name> xdb http Server </server-name>
  59.  
  60. </Protocolconfig>
  61.  
  62. <Xdbcore-xobmem-bound> 1024 </xdbcore-xobmem-bound>
  63.  
  64. <Xdbcore-loadableunit-size> 16 </xdbcore-loadableunit-size>
  65.  
  66. </Sysconfig>
  67.  
  68. </Xdbconfig>

The solution to the conflict between the XDB and the default port of the APP Server of the Oracle database is described here. I hope this introduction will bring you some benefits. Thank you!

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.