How to disable oracle XDB

Source: Internet
Author: User

Oracle 9i contains the XDB feature by default when creating a database. Once the database and Listener are started, Oracle XDB starts the http service.

It is easy to disable the XDB service of oracle. just remove the initialization parameters of the corresponding database:
 

Edit the $ ORACLE_HOME/dbs/initSID. ora file and remove the following lines:
Dispatchers = '(PROTOCOL = TCP) (SERVICE = XDB )'
Restart Database

Shutdown immediate;
Create spfile from pfile;
Startup;

Modify the XDB service Port:

The http service of XDB occupies port 8080, which is in conflict with default ports such as JBoss and Tomcat. The port settings of Oracle XDB are not in the configuration file, but in the database. Modify the http and ftp service ports of XDB as follows:


Use sys to log on to sqlplus and use dbms_xdb to modify port settings

SQL> -- Change the HTTP/WEBDAV port from 8080 to 8081
SQL> call dbms_xdb.cfg_update (updateXML (
2 dbms_xdb.mongo_get ()
3, '/xdbconfig/sysconfig/protocolconfig/httpconfig/HTTP-Port/text ()'
(4, 8081 ))
5/

Call completed.

SQL> -- change the ftp port from 2100 to 2111
SQL> call dbms_xdb.cfg_update (updatexml (
2 dbms_xdb.mongo_get ()
3, '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-Port/text ()'
(4, 2111 ))
5/

Call completed.

SQL> commit;

Commit complete.

SQL> exec dbms_xdb.mongo_refresh;

PL/SQL procedure successfully completed.

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.