ORACLE ORA-12505 after network IP addres change - oracle

we have a situation here. We are all working on a database installed into a virtual machine running on our laptops. The virtual machine is naturally configured to use NAT networking and all goes well.
We need to move this VM because its very RAM consuming and we found another machine to place it.
The new machine have an IP into a different subnet but is perfectly reachable by our laptops.
We configured the VM to use Bridged nwetorking so VM now have the same IP of the other subnet.
The guest OS is perfectly reachable from network so this is not a problem.
When I connect to VM's Oracle I obtain an ORA-12505 ...
Since I'm not a dba how to configure oracle to listen correctly from the new subnet ??
Thank in advance
EDIT:
another clue: when I connect to the VM and with the oracle user I give a LSNRCTL services I obtain
TNS-12541 no listener
When I switch back to the OLD subnet ALL works fine

SOLVED !!! The problem was on linux OPEN SUSE ! The network name was set to change according to DHCP.. The network name was not found on tnsnames.ora and the service did not start
Removing the option to change name according to DHCP all now seems to work properly

Related

SSH connect from local windows VM to Azure windows VM

I want to have a SSH connection from my local windows machine or VM on my computer to Azure windows server VM. I tried Cygwin and Putty but both of them gave timeout connection. I used public ip address and opened port 22 on Azure VM.
I will appreciate if some one can give me any hints or links.
There are multiple firewalls that can be the reason here. Fist you must have a rule on the server to allow incoming SSH requests (port 22). Then you need to configure the NSG(Network security group) to allow incoming on port 22. If it still doesn't work, you need to verify that you are allowed to do an outgoing SSH request from your computer.
Thanks for suggestions, I found the problem which was the host machine IP address(ipconfig) (where is a local VM inside domain) was different from the IP address that communicate outside the domain to internet. I was set in NSG of Azure VM to only accept this IP and because of that it gave time-out error. After changing the IP it works.

Access xampp from VMWARE to Public IP

Is it possible to access 127.0.0.1:8080 publicly i have a project application that is running on VM, What should I do?
Diagram:
VMachine( where xampp is installed) IP <-> Global(external) IP (167.1.174.21:8080)
I don't have any option left what should i do i'm really new to this. #respect
Yes, this is possible but there are multiple steps to the configuration and the details for each steps differ depending on the hardware/software used. In general though it can be accomplished like this:
VMware config
Configure the VM with a bridged network
Configure the guest OS to either have a dhcp reservation or static ip.
Router config
Add a dhcp reservation for the VM (if using DHCP)
Add a port forwarding rule pointing to the VM's IP address
XAMPP config
Make sure the XAMPP server is listening on all interfaces.
The key point is to make the Virtual Machine to have bridged connection.
You can do it by looking at this one.
After that do a Port Forwarding to the virtual machine like it a real machine on your LAN.
Step 1 : Apart from above solution, in your local network where xampp is installed, make your local ip as static one, like "192.168.1.125" from router settings->Address reservation option.
Once you reserve address
Step 2 : Open your router->port forwarding->set port & ip to forward.
Step 3 : Now you check your public ip, and bingo now you can go to your public ip from vmware or from any other network.
As long as the vm has a configured network and is therefor able to communicate with your LAN (using Bridged networks in the VM configuration is a good way to go) and the internet, it is possible to make it accessible to the external web/internet.
Therefor you would most likely need to define a port-redirect/port forwarding on your router, that all incoming packets on the external IP (167.1.174.21) on port 8080 gets forwarded to the local ip of your vm and the related xampp session.
A possible problem at that point might be changing IP addresses of the VM based on a possible DHCP configuration. Either use a fixed IP on the VM or configure some mac-based rule for fixed IP or increase the lease time of the dhcp-server (your router to unlimited)
That's the theory, but please think twice before you do so. Running a webserver which is available in the wild is not recommended if you are not used to IT security. And even if you decide to do so, using xampp sounds wrong to me ears. xampp is designed for local development & testing purposes, not for productive use.

How to access Oracle DB in VirtualBox from Host (windows)

I installed VirtualBox with a Oracle VM.
Now I simply try to access the Oracle Database of the VM from the host environment, but it doesn't work.
ipconfig on my host shows an IP number, but when I try to open this (Port 80), i get the content of localhost of the host system instead of the content of the server in the VirtualBox.
Which is the proper network setting ?
- Use Host-Only Networking on your guest machine
- See if the server (WEB, DB etc.) is running.
- Mouse-over network icon on status bar to note ip address
- From your host browser send a request to your quest server
I usually do a bridged connection so the vm will pick up an ip address from my router's dhcp; if that option is not available, your other option is to employ port forwarding where you assign an unused port on the host machine to forward to the port on the vm. The virtual box manual has a lot of useful info on both of these options. Let us know if you need additional info or examples.
Turn off the Windows Firewall on the Virtual PC. I've just fixed my HTTP request from Host to VM by turning off the firewall.
In the virtual box go to the settings->Network->Adapter and select Bridge Adapter for (Attached to) field. Don't forget to turn off your firewall in the machine.

xampp and acces Local area network

I create a local network between my physical machine (windows) and my virtual machine (Fedorat)
I installed xampp on fedorat and I want to access my web application located in / opt / lampp / htdocs / MyApplication from my physical machine by ip address of the virtual machine
http://192.168.0.2/
But its not working
What changes must I do that on xampp to make it accessible
Is your webserver running and is it possible to access the webserver locally (from your Fedora VM)?
What do you mean by not working? There are so many things that could be wrong... Do you receive a 404? Timeout? Are your machines on the same subnet? Are you able to ping your Fedora machine from Windows?
Had a similar problem once. In my case, it was because of firewall settings.
Try connecting your own machine to a LAN access point in the same router as the VM is connected.
I don't have much tech. background, but maybe if you narrow it to this specific case, someone else can help you.
Cheers.
I ping my VM from my physical machine and it works very well
How long have I install wamp on my physical machine and I set up for access to local network and I accessed from my VM
So the network between two machines running very well
my question is not about the establishment of networks between the two machines but rather how to configure XAMPP that it is accessible by
other machine in network
(I was already a problem on windows with wamp parail I solved by configuring wamp but I recall more of what I did)

Is it possible to make localhost work through a Virtual Machine?

I am using a Macbook running 10.6. I am using VMware Fusion to run an Ubuntu Server minimal virtual machine. Ubuntu Server is running your basic LAMP stack.
I do my development in Mac OS. I have VMware share a directory from Mac OS to the Ubuntu Server. Ubuntu Server uses that directory for apache.
I access my server is Mac OS in firefox using the ip address of my virtual machine. This is a pain because I have to find out what the ip address is of my virtual machine each time I boot it up. I could set a static ip address but this causes problems if I move my Macbook from network to network.
Is there any configuration (NAT or Bridged or something) that would let me access my virtual machine from the Mac OS using localhost or something similar?
Thanks
NAT should be OK. Your VM is on a different subnet that way, you can give it the static IP you like, and it won't interfere with the (dynamic) IP on your real network.
What you are looking for is the host-only networking adapter as opposed to the NAT or bridged adapters. This creates a network interface on the virtual machine that only connects the actual host. It is perfectly safe to set an IP address for this interface that does not change, and there will be no tricky NAT getting in the way. It's a little network that only exists for communication between the real host and the virtual host. It's exact purpose is so you can do development like this. I use the same feature on VirtualBox all the time, but VMWare has it as well.
Now, with a host-only adapter you might be worried that your VM now has no access to the Internet. The answer is simple. Just make two adapters. eth0, eth1. Make one of them a bridged or NAT adapter for Internet access. Make the other one the host-only adapter for your development. Most modern Linux distros will automatically route accordingly. I know for a fact that Ubuntu does, because I do it all the time. Again, this is with VirtualBox. Your mileage may vary with VMWare, but I can't imagine it's that different.
I'm using Virtual Box and typing in the computer local address (for instance 192.168.1.100) instead of localhost did the trick.
Maybe I'm misunderstanding your question but why not just add an entry in your hosts file for the virtual machine? That way you can access it with some arbitrarily assigned name (like testmachine) instead of the IP.
This is the first tutorial I found through google: http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/
This would work best if your VM has a static IP, BTW (either no DHCP or configure the DHCP server to give that MAC the same IP every time). That way you don't have to worry about changing the hosts entry every time the DHCP server gives the VM a different IP.

Resources