-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listener Configuration fails with /etc/init.d/oracle-xe-18c configure #491
Comments
@CMacFly Listener configuration for Oracle Database 18c XE requires specific hostname and network configuration. The OracleDatabase/18.4.0-XE project in this repository avoids the "Listener configuration failed" problem by explicitly setting the VM's hostname to "localhost" in the Vagrantfile. ("localhost" is the default hostname, but it can be overridden if another Vagrantfile that specifies a hostname is merged with your project's Vagrantfile, so it's safer to set it explicitly.) I recommend destroying the VM, then adding the following line to your config.vm.hostname = "localhost" Also, comment out or remove any After these changes, listener configuration should succeed when you build the VM again. I hope this helps. |
@PaulNeumann I copied the repository from github and did'nt modify the Vagrantfile. The vm hostname is set to "localhost". |
@CMacFly I misread your initial post to mean that you had built your own Vagrantfile, rather than using the one from this repository. My apologies. I can't reproduce the error on an Ubuntu 22.04.3 LTS host (fully patched, 6.2.0-31-generic kernel) with VirtualBox 7.0.10 r158379 and Vagrant 2.3.7. Both VirtualBox and Vagrant were downloaded from the vendors' sites, not from the Ubuntu repositories. VM provisioning succeeded with no errors. The error messages you posted seem to be from the second (or later) run of I'd suggest destroying the VM ( When you build the VM again, please use |
@PaulNeumann Thank you for your answer. I also have to apologize: 1st of answering so late (I only have a small amount of time to experiment with future versions of our oracle database) and 2nd of writing "try to configure". That leads to misunderstandings, I now see. Okay, back to our topic:
According to the log files I may have a java problem, but I admit: those logs arent't helpful to me. I hope, they tell you, what's going on and how to fix it ... I don't think that it is helpful to copy and paste all logs to this posting, instead I attached them: netca_OraHomeXE-2309188PM5107.log |
@CMacFly No need to apologize for the delay. It's no problem. Thanks for posting the logs. I don't think this is a Java issue. The Unfortunately, I'm still not able to reproduce the error, and I don't see an obvious cause in the logs. I saw that you're using the vagrant-vbguest plugin, so I installed that, and I changed the character set to WE8MSWIN1252. The build still succeeded on my machine. So, apparently I'm missing something. A couple of questions:
|
@PaulNeumann Output of I installed vagrant-vbguest, because my first attempt to install 18c XE after your first answer to my issue was stopped, because of the wrong version of virtualbox guestadditions (virtualbox 7.0 with guestadditions 6.3???). No Vagrantfile in Meanwhile (just not to do nothing ...) I installed ora 19.3.0 without any problems. I don't konw if this helps in any way. I just wanted to know if an other version of Oracle database would run on my system. |
@CMacFly I apologize for the delay in getting back to you. I still think the issue is network-related, but I don't know what's different about our machines. I'm glad to hear that the 19.3.0 project works for you. The relevant difference between that project and the 18.4.0-XE project is that 19.3.0 creates the Oracle Database network configuration files (sqlnet.ora, listener.ora and tnsnames.ora) directly, without calling netca. Which got me thinking about a workaround... I've attached a modified version of the 18.4.0-XE To use the modified script:
The script worked correctly on my machine, but that's the only host I've tested it on. Obviously, it isn't officially supported. I hope this helps. Please let me know how it goes. Modified script: |
Hello,
I try to configure a vagrantbox with oracle linux 7 and oracle database 18c XE. Host system is Ubuntu 22.04, vagrant runs with virtualbox 6.1.38. But every attempt I made failed, the listener configuration stops with an error:
oracle18c-xe-vagrant: /opt/oracle/product/18c/dbhomeXE/bin/netca: line 182: 31310 Aborted $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*
oracle18c-xe-vagrant: Listener configuration failed. Check log '/opt/oracle/cfgtoollogs/netca/netca_configure_out.log' for more details.
The log says:
Oracle Net Services Configuration:
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f71e467a88c, pid=31310, tid=0x00007f722889f700
# JRE version: Java(TM) SE Runtime Environment (8.0_171-b11) (build 1.8.0_171-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.171-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libclntsh.so.18.1+0x63588c] snlinGetAddrInfo+0x9dc
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
This error was also reported here: https://community.oracle.com/tech/developers/discussion/4180595/etc-init-d-oracle-xe-18c-configure-fails . As suggested in the error message I tried
ulimit -c unlimited
with no effect. Also a reboot of the vagrantbox and the suggested double execution of
/etc/init.d/oracle-xe-18c configure
does not help. The installation of 18c XE breaks with the failing listener configuration at every attempt.
Has anyone an idea how to solve this problem?
Thanks & regards
Christoph
The text was updated successfully, but these errors were encountered: