![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 1600317.1 : ODA How to Alter the DNS Names Post-Deployment Using GridInst.pl and the Oracle Database Appliance onecommand.params File
How to alter or create DNS Names using GridInst.pl + onecommand.params file for the Oracle Database Appliance ODA Applies to:Oracle Database Appliance X3-2 - Version All Versions to All Versions [Release All Releases]Oracle Database Appliance - Version All Versions to All Versions [Release All Releases] Oracle Database Appliance X4-2 - Version All Versions to All Versions [Release All Releases] Information in this document applies to any platform. GoalHow to change the DNS Names for your ODA SolutionHow to change the DNS Post-Deployment for the Oracle Database Appliance (ODA): This note is only regarding DNS Server entries for the ODA:
To change the dns information the steps are: 1. Reset the root password to the default value "welcome1" on both nodes 2. Identify the steps fpr SetupSSHroot and SetupDNS#. Start with setting up the root user SSH. # cd /opt/oracle/oak/onecmd
#./GridInst.pl -o -l |grep SetupSSHroot o Step 3 = SetupSSHroot • Setup the ssh # ./GridInst.pl -o s 3 -- Use -s for the Step# and -o for Virtualized Platform ODAVP
- or - # ./GridInst.pl -s 3 -- Use -s for the Step# on Bare Metal -- This completes the rootSSH configuration --
3. Update the /opt/oracle/oak/onecommand.params for the new or additional DNS address (Example) # grep -i dns /opt/oracle/oak/onecmd/onecommand.params
IsDNSUSED=true DNS_SERVERS=(130.45.67.89 130.33.222.11 ) Modify the above entries as needed.
o Identify the step# /opt/oracle/oak/onecmd/GridInst.pl -l |grep SetupDN
Step 4 = SetupDNS o Make the changes by executing the SetupDNS step ./GridInst.pl -o s 4
./GridInst.pl -s 4 -- Use -s for the Step# on Bare Metal -- This completes the DNS steps --
5. Re-secure the machine : # /opt/oracle/oak/onecmd/GridInst.pl -o -l |grep -i ResecureMachine
Step 23 = ResecureMachine -- Confirm the step as this is version specific o Make the changes by executing the ResecureMachine step ./GridInst.pl -o s 23 -- Use -o for ODAVP
./GridInst.pl -s 23 - - Use -s only on Bare Metal
Use "oakcli configure firstnet" or update the /etc/resolv.conf manually for changing the dns settings in dom-0
1) Log into the ODA as root To run the suggested script step #5 below you will need to change the password to default(welcome1) cd /opt/oracle/oak/onecmd
cat /etc/resolv.conf
e.g. [root@odarm1 onecmd]# cat /etc/resolv.conf
# Following added by OneCommand search anywhere.oracle.com nameserver 144.20.199.99 nameserver 192.135.12.123 # End of section
4) Review the onecommand.params file to confirm that this matches [root@odarm1 onecmd]# view onecommand.params Example # onecommand.params generated by GUI tool ... # SCAN INFO
cp onecommand.params onecommand.params.old
5) Use ./GridInst.pl -l to confirm the current steps for the specific version used -- The order and number of steps can change between versions! [root@odarm1 onecmd]# ./GridInst.pl -l
12c no longer uses DBcontrol 6) Now we are ready to change the values #onecommand.params generated by GUI tool
# Confuration information CONFIGVERSION=2.7.0.0.0 ... ... -- continue down to the DNS_SERVERS entry ...
... # SCAN INFO SCAN_NAME=odarm-scan SCAN_IPS=(10.148.12.344 10.148.12.345) SCAN_PORT=1521 IsDNSUSED=true DNS_SERVERS=(144.20.199.99 192.111.12.123 192.111.45.67) << edit this line - this example adds a new DNS Server address NTP_SERVERS=... - save as onecommand.params with your new DNS server value [root@odarm1 onecmd]# ./GridInst.pl -s XX -- where XX is the Single Step Number
optionally you can use ./GridInst.pl -r xx-yy -- where xx-yy is a Range of consecutive step
Issue .GridInt.pl from /opt/oracle/oak/onecmd for proper steps
If you are executing the above steps and you are using a non-default password you may get an error similar to the following ./GridInst.pl -r 0-5 ----- SUCCESS: All nodes in /opt/oracle/oak/onecmd/tmp/priv_ip_group are pingable and alive. INFO : Setting up ssh across the private network... .....ERROR: cannot open file /tmp/setssh-root/tmpfile at GridSteps.pm line 5750 ACTION: Change the password to welcome1 for all steps used Example (excerpt) # ./GridInst.pl -r 0-5 -- This command runs steps 0-5 using the GridInst.pl -r xx-yy [RANGE] flag. The script will stop at the current step if there is a failure ...
INFO : Logging all actions in /opt/oracle/oak/onecmd/tmp/STEPS-3-4-20131114124438.log and traces in /opt/oracle/oak/onecmd/tmp/STEPS-3-4-20131114124438.trc INFO : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params... INFO : Creating nodelist files... ================================================================================== INFO : 2013-11-14 12:44:39 INFO : Step 3 SetupSSHroot ... ... etc ... INFO : Step 4 SetupDNS INFO : Setting up DNS across all nodes... INFO : did not do scp for node: odarm1 INFO : Running as root: /usr/bin/ssh -l root odarm1 /opt/oracle/oak/onecmd/tmp/updatedns.sh INFO : Background process 29670 (node: odarm1) gets done with the exit code 0 INFO : Running as root: /usr/bin/ssh -l root odarm2 /opt/oracle/oak/onecmd/tmp/updatedns.sh INFO : Background process 29721 (node: odarm2) gets done with the exit code 0 INFO : Time spent in step 4 SetupDNS is 1 seconds. ================================================================================== INFO : Log file is /opt/oracle/oak/onecmd/tmp/STEPS-3-4-20131114124438.log... Exiting...
#./GridInst.pl -s 24
8) Confirm your new DNS server has been added # Following added by OneCommand
search for anywhere.oracle.com nameserver 144.20.199.99 nameserver 192.111.12.123 nameserver192.111.45.67 # End of section
Deployment error on Step 16 IsDNSUSED=false
DNS_SERVERS=( ) INFO : Step 16 GIConfigAssists INFO : Running post configuration assistants INFO : This is root, will become grid and run: /bin/su grid -c /usr/bin/ssh ... ... ERROR : /bin/su grid -c "/u01/app/12.1.0.2/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/opt/oracle/oak/onecmd/tmp/postcfgassts.rsp > /opt/oracle/oak/onecmd/tmp/configToolAllCommands-rac06box1-log 2>&1" did not complete successfully. Exit code 3 #Step 16# INFO : Time in GIConfigAssists is 828 seconds. Exiting...
mv /etc/resolve.conf /etc/resolve.conf.old
2) Rerun the deployment from step 16* cd /opt/oracle/oak/onecmd/
./GridInst.pl -s 16 If this is successful then run the rest of the steps* ./GridInst.pl -r 17-23
For more complete information on changing network IP addresses please refer to INTERNAL -
References<NOTE:1504734.1> - ODA: How to Change Oracle Database Appliance IP Addresses Post Deployment<NOTE:1519975.1> - How to change the Timezone in your ODA (Oracle Database Appliance) Attachments This solution has no attachment |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|