Change Oracle port from port 8080

后端 未结 8 2208
终归单人心
终归单人心 2020-12-22 16:07

How do I change Oracle from port 8080? My Eclipse is using 8080, so I can\'t use that.

相关标签:
8条回答
  • 2020-12-22 16:50

    Execute Exec DBMS_XDB.SETHTTPPORT(8181); as SYS/SYSTEM. Replace 8181 with the port you'd like changing to. Tested this with Oracle 10g.

    Source : http://hodentekhelp.blogspot.com/2008/08/my-oracle-10g-xe-is-on-port-8080-can-i.html

    0 讨论(0)
  • 2020-12-22 16:58

    Oracle (database) can use many ports. when you install the software it scans for free ports and decides which port to use then.

    The database listener defaults to 1520 but will use 1521 or 1522 if 1520 is not available. This can be adjusted in the listener.ora files.

    The Enterprise Manager, web-based database administration tool defaults to port 80 but will use 8080 if 80 is not available.

    See here for details on how to change the port number for enterprise manager: http://download-uk.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/manage_oem.htm#i1012853

    0 讨论(0)
  • 2020-12-22 16:59

    I assume you're talking about the Apache server that Oracle installs. Look for the file httpd.conf.

    Open this file in a text editor and look for the line
    Listen 8080
    or
    Listen {ip address}:8080

    Change the port number and either restart the web server or just reboot the machine.

    0 讨论(0)
  • 2020-12-22 17:04

    From this blog post:

    XE: Changing the default http port

    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.

    EDIT:

    Update 8080 port to which port(9090 for example) you like

    SQL> -- set http port
    SQL> begin
     2    dbms_xdb.sethttpport('9090');
     3  end;
     4  /
    

    After changing the port, when we start Oracle it will go on port 8080, we should type manually new port(9090) in the address bar to run Oracle XE.

    0 讨论(0)
  • 2020-12-22 17:05

    From Start | Run open a command window. Assuming your environmental variables are set correctly start with the following:

    C:\>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 26 10:40:44 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    SQL> connect
    Enter user-name: system
    Enter password: <enter password if will not be visible>
    Connected.
    
    SQL> Exec DBMS_XDB.SETHTTPPORT(3010); [Assuming you want to have HTTP going to this port]    
    PL/SQL procedure successfully completed.
    
    SQL>quit 
    

    then open browser and use 3010 port.

    0 讨论(0)
  • 2020-12-22 17:06

    Just open Run SQL Command Line and login as sysadmin and then enter below command

    Exec DBMS_XDB.SETHTTPPORT(8181);
    

    That's it. You are done.....

    0 讨论(0)
提交回复
热议问题