Problems installing Oracle Database Express Edition 11g

前端 未结 7 2227
感动是毒
感动是毒 2021-02-19 13:14

I\'m trying to install Oracle Database in (X)ubuntu 13.04 64-bit using this guide. Everything goed well until I get to the following step:

$ sudo /etc/init.d/ora         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-19 13:26

    I was in the same boat, trying to configure XE on a virtual machine (openSUSE 13.01 64bit).

    The solution in my case was the missing hostname in /etc/hosts. You can examine the errors in /u01/app/oracle/product/11.2.0/xe/config/log/CloneRmanRestore.log at the very beginning (the path depends on your XE version).

    Search for an info similar to: ORA-00119: invalid specification for system parameter LOCAL_LISTENER ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=linux-cn65.site)(PORT=1521))

    So linux-cn65.site (the VM host) was missing. Add your host in /etc/hosts (as root):

    127.0.0.1 linux-cn65.site <-- your host here

    and run the configuration again (as root): sh /etc/init.d/oracle-xe configure

    Additional trickery

    • if you do not have the error files in the log folder, you may re-install XE without h flag, like this:

      • to find your package: sudo rpm -qa | grep -i oracle
      • to remove it: sudo rpm -e oracle-xe-11.2.0-1.0.x86_64 <-- your package here
    • install again without h flag: sudo rpm -iv oracle-xe-11.2.0-1.0.x86_64.rpm

    oh, replace the version (oracle-xe-11.2.0-1.0.x86_64.rpm) with yours. Cheers ;)

提交回复
热议问题