We have two ami for oracle ebs on amazon ec2 one is dbTier and appTier. we set up using clone scripts. Now our requirement is to stop them when we are not using them and start it whenever we need for billing purpose. But when I started the instance as amazon changes the public and private IP services wont start. I also tried to associated with elastic IP but that did not work either.
Is there any way I can write a script to preserve the IP settings? any suggestion? Thanks in advance.
I too came across with similar situation.
Would like to suggest you to follow below steps to kept same hostname which you have used while installation.
1.Edit /etc/hosts and change IP address, which we got from the output of ifconfig eth0|grep "inet addr“ from DB & APPS node.
2. Repeat step 1 on APPS node.
3. DB Node enter command >> hostname <enter same hostname which you used while installation>
4. APPS Node enter command >> hostname <enter same hostname which you used while installation>
5. Start DB/APPS services
Let me know if need more inputs.