修改oracle xdb占用的8080端口 - 范文中心

修改oracle xdb占用的8080端口

10/12

修改Oracle XDB占用的8080端口

Author: CopyFromWWW

Published: 2005/6/16

Read 29 times

Size 19.75 KB

XML DB Port Assignments

by Jeff Hunter, Sr. Database Administrator

Contents

Introduction

Repository Views and Default Ports

Changing XML DB Default Ports

Disabling the Port Assignment

Introduction

Oracle introduced the XML Database in release 9i. Along with this new feature, Oracle continues the practice of incorporating new, barely documented port assignments that often leave the DBA to search endlessly for possible configuration file(s) that define these port assignments. Well, when it comes to searching for where these port numbers related to XML DB are defined, you will not find them on the file system, but rather inside the database. This article will attempt to unravel some of the mysteries on managing port assignments related to Oracle XML DB. Repository Views and Default Ports

The key XML DB technologies can be grouped into two major classes - a XMLType that provides a native XML storage and retrieval capability strongly integrated with SQL, and a XML Repository that provides foldering, access control, versioning etc. for XML resources. Users view and manage XML objects like files and schemas in the XML Repository as a hierarchy of folders. This repository aspect of XML DB involves access through standard protocols such as HTTP/WebDAV and FTP. These servers will bind to ports 8080 and 2100 respectively by default.

DBA‘s will sometimes wonder why their Web Server, that always used to work, has all of the sudden been hijacked after installing Oracle9i and creating a database using DBCA. After some research, they attempt to shutdown the Oracle TNS listener and notice that the port in question (mostly 8080) is no longer being utilized. Unfortunately, there is little to tell the DBA that these ports are going to be used until they find out the hard way: When the database starts and steals the ports away from another process that hasn‘t yet started or when the other process errors and/or is unreachable.

Changing XML DB Default Ports

The following section describes the syntax that can be used to alter XML DB configuration information from within SQL*Plus. Ensure that you are logged into the database from a DBA account. In the following example, the default HTTP/WebDAV and FTP ports are changed from 8080 and 2100 to 8081 and 2111 respectively: SQL> -- Change the HTTP/WEBDAV port from 8080 to 8081 SQL> call dbms_xdb.cfg_update(updateXML( 2 dbms_xdb.cfg_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.cfg_get() 3 , ‘/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()‘ 4 , 2111)) 5 / Call completed. SQL> COMMIT; Commit complete. SQL> EXEC dbms_xdb.cfg_refresh; PL/SQL procedure successfully completed. SQL> -- Verify the change SQL> set long 100000 SQL> set pagesize 9000 SQL> SELECT dbms_xdb.cfg_get FROM dual;CFG_GET-------------------------------------------------------------------------------- 900 32 , 300 100 3600 1048576 au audio/basic avi video/x-msvideo bin application/octet-stream bmp image/bmp doc application/msword eml message/rfc822 gif image/gif htm text/html html text/html jpe image/jpeg jpeg image/jpeg jpg image/jpeg jsp text/html mid audio/mid mov video/quicktime movie video/x-sgi-movie mp3 audio/mpeg mpe video/mpg mpeg video/mpg mpg video/mpg msa application/x-msaccess msw application/x-msworks-wp pcx application/x-pc-paintbrush pdf application/pdf ppt application/vnd.ms-powerpoint ps application/postscript qt video/quicktime ra audio/x-realaudio ram audio/x-realaudio rm audio/x-realaudio rtf application/rtf rv video/x-realvideo sgml text/sgml tif image/tiff tiff image/tiff txt text/plain url text/plain vrml x-world/x-vrml wav audio/wav wpd application/wordperfect5.1 xls application/vnd.ms-excel xml text/xml zip application/x-zip-compressed en english gzip zip file tar tar file 50 6000 2111 local_listener tcp 6000 8081 local_listener tcp 6000 XDB HTTP Server 16384 2000000000 Basic realm="XDB" index.html index.htm /Test TestServlet /oradb/* DBURIServlet TestServlet Java XDB Test Servlet A servlet to test the internals of the XDB Servlet API xdbtserv xdb DBURIServlet DBURI C Servlet for accessing DBURIs authenticatedUser authenticatedUser Disabling the Port Assignment

One of the easist ways to disable Oracle from assigning both XML DB ports (FTP and HTTP/WebDAV) is to remove the following instance parameter from the database: dispatchers=‘(PROTOCOL=TCP) (SERVICE=XDB)‘This change would obviously require bouncing the database. A second way to disable the XML DB ports is to simply change their port assignments to the value of zero (0). This is an attractive option since it uses code that can be incorporated directly into database creation scripts so that the value can be tweaked each time you create a new database.

Modifying these ports to zero can also be accomplished using a GUI; Oracle Enterprise Manager (version 9.2.0.1 or higher). Simply open OEM, select and expand the database. Next, expend the XML Database item and click on Configuration. You should be able to see and change any of the XML DB configuration parameters on the right-hand side of the OEM console. Simply make your changes and click APPLY to make them permanent.

For more information on Managing Oracle XML DB Using Oracle Enterprise Manager, click here.


相关内容

  • 银监会专业笔试
    2015年的银监会计算机类专业科目笔试的真题.举例如下: [例1]"science"是XML 中一个元素的定义,其中元素的内容是( ). A.title B.style C.italic D.science [例2]SQ ...
  • 网络安全测评-于东升
    信息安全等级测评师培训 网络安全测评 公安部信息安全等级保护评估中心 于东升 1内容目录 1.前 言 2.检 查 范 围 3 .检 查 内 容 4 .现 场 测 评 步 骤 2标准概述 2007年43号文<信息安全等级保护管理办法&g ...
  • 华为路由器设置命令
    计算机命令 ~~~~~~~~~~ PCA login: root :使用root用户 password: linux :口令是linux # shutdown -h now :关机 # init 0 :关机 # logout # login ...
  • 华为路由器命令
    华为华为路由器交换机配置命令大全 一.计算机命令 PCAlogin:root 使用root用户 password:linux 口令是linux #shutdown-hnow 关机 #init 0 关机 #logout 用户注销 #login ...
  • 网络管理员需要具备哪些专业知识
    网络管理员需要具备哪些专业知识? 这要看什么样的网管,大网站的网管,其实也并不是一个全面手,若很全面,可能人家反而不会要你.有的精通UNIX ,有的则精通WinDows ,有的熟悉ASP ,有的则熟悉JSP 或是PHP 等等. 而对于网吧的 ...
  • 宽带接入服务器的选择配置和应用_谢喜秋
    专题:宽带接入技术 宽带接入服务器的选择配置和应用 谢喜秋 武 娟 彭巍 陈 绚 510630) (中国电信集团广州研究与开发中心网络技术研究部广州 摘 要 本文主要分析了影响宽带接入服务器性能的各种因素,介绍了如何选择宽带接入服务器,并针 ...
  • 实验3_交换机的基本配置
    实验3 交换机的基本配置 一.实验目的 通过本实验,掌握packet tracer的使用方法,以及Cisco交换机的基本配置. 二.实验环境 装有Cisco packet tracer仿真软件的计算机 三.实验内容 实验1 交换机基本信息的 ...
  • 计算机网络工程师笔试面试题汇总
    网路学员面试常见问题: 1.请你修改一下LINUX的视频驱动和声音驱动 答: redhatlinux中用sndconfig来设置声卡,如果没有某个模块,就需要重新编译内核(编译最新发布的linux 内核),如果还不行,只好用ALSA 音效驱 ...
  • 信息技术与信息安全20**年0712最全
    2014年度信息技术与信息安全公需科目(20140712更新) 第一部分单选题: 1.特别适用于实时和多任务的应用领域的计算机是(D). A.巨型机 B.大型机 C.微型机 D.嵌入式计算机 2.负责对计算机系统的资源进行管理的核心是(C) ...
  • 设备管理系统实施方案书
    设备管理系统 方 案 书 2011-7-1 - 1 - 一.系统介绍 系统均采用最新.NET技术,三层结构进行设计,面向对象的分布式三层结构的应用系统相比与传统的两层结构的系统具有相当大的优势,方便企业灵活应用. 1客户层,提供用户数据的录 ...