Tuesday 14 March 2017

Delete Oracle RAC Database on Oracle Database Appliance (ODA HA X5-2)

This doc describe how to delete Oracle RAC Database on Oracle Database Appliance (ODA HA X5-2)

On ODA we use oakcli command line to delete the database.



1. Execute oakcli delete database command as root user and provide database name.
2. Enter password for SYS
3. Enter Y to confirmation.
4. Verify the database.



[root@ABC1x5-2]# oakcli delete database -db LONDON
INFO: 2017-03-07 16:14:50: Look at the log file '/opt/oracle/oak/log/ABC1x5-2/tools/12.1.2.9.0/deletedatabase_LONDON_8564.log' for more details

Please enter the 'SYS'  password :
Please re-enter the 'SYS' password:

All the storage volumes created for the database 'LONDON' will be deleted. Do you want to continue [Y|N]:Y
INFO: 2017-03-07 16:15:15: Deleting the database LONDON. It will take few minutes. Please wait...
INFO: 2017-03-07 16:15:18: Setting up SSH
...SUCCESS: Ran /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --

exclude=*rpm and it returned: RC=0

.........
SUCCESS: All nodes in /opt/oracle/oak/onecmd/tmp/db_nodes are pingable and alive.
INFO: 2017-03-07 16:16:18: SSH has been successfully established
INFO: 2017-03-07 16:17:08: Successfully deleted the database 'LONDON'


Verify the database with below command.

[root@ABC1x5-2 bin]# oakcli show databases


cheers!!!

Generate a Database configuration file on Oracle Database Appliance (ODA HA X5-2)

This doc describe how to generate a database configuration file  on Oracle Database Appliance (ODA HA X5-2)

On ODA we use oakcli command line to generate a database configuration file.

1. Execute oakcli create db_config_params command as root user.
2. Select the Database Block Size.
3. Specify the  Database Language.
4. Specify the  Database Characterset.
5. Press Enter key to display more available database charactorset.
6. Specify the  Database Territory.
7. Specify the  Component Language.
8. Select NLS Characterset.
9. Verify the newly created Database Configuration  file.


Check the existing default DB-Config-Patams


[root@ABC1x5-2]# oakcli show db_config_params
The available DB configuration files are :
default


Use oakcli create db_config_params command to generate Database Configuration File.

[root@ABC1x5-2]# oakcli create db_config_params -conf odadbconfig
Please select one of the following for Database Block Size  [1 .. 4] :
1    => 4096
2    => 8192
3    => 16384
4    => 32768
2
The selected value is : 8192

Specify the  Database Language (1. AMERICAN 2. Others) [1] : 1
The selected value is : AMERICAN

Specify the  Database Characterset (1. AL32UTF8 2. Others) [1] : 2

Please select one of the following for Database Characterset [0 .. 10] :
0    => Others
1    => AL32UTF8
2    => AR8ADOS710
3    => AR8ADOS720
4    => AR8APTEC715
5    => AR8APTEC715T
6    => AR8ARABICMACS
7    => AR8ASMO8X
8    => AR8HPARABIC8T
9    => AR8ISO8859P6
10    => AR8MSWIN1256


Please select one of the following for Database Characterset  [0 .. 21] :
11    => AR8MUSSAD768
12    => AR8MUSSAD768T
13    => AR8NAFITHA711
14    => AR8NAFITHA711T
15    => AR8NAFITHA721
16    => AR8NAFITHA721T
17    => AR8SAKHR706
18    => AR8SAKHR707
19    => AR8SAKHR707T
20    => AZ8ISO8859P9E
21    => BG8MSWIN


Please select one of the following for Database Characterset  [0 .. 32] :
22    => BG8PC437S
23    => BLT8CP921
24    => BLT8ISO8859P13
25    => BLT8MSWIN1257
26    => BLT8PC775
27    => BN8BSCII
28    => CDN8PC863
29    => CEL8ISO8859P14
30    => CL8ISO8859P5
31    => CL8ISOIR111
32    => CL8KOI8R


Please select one of the following for Database Characterset  [0 .. 43] :
33    => CL8KOI8U
34    => CL8MACCYRILLICS
35    => CL8MSWIN1251
36    => EE8ISO8859P2
37    => EE8MACCES
38    => EE8MACCROATIANS
39    => EE8MSWIN1250
40    => EE8PC852
41    => EL8DEC
42    => EL8ISO8859P7
43    => EL8MACGREEKS


Please select one of the following for Database Characterset  [0 .. 54] :
44    => EL8MSWIN1253
45    => EL8PC437S
46    => EL8PC851
47    => EL8PC869
48    => ET8MSWIN923
49    => HU8ABMOD
50    => HU8CWI2
51    => IN8ISCII
52    => IS8PC861
53    => IW8ISO8859P8
54    => IW8MACHEBREWS


Please select one of the following for Database Characterset  [0 .. 65] :
55    => IW8MSWIN1255
56    => IW8PC1507
57    => JA16EUC
58    => JA16EUCTILDE
59    => JA16SJIS
60    => JA16SJISTILDE
61    => JA16VMS
62    => KO16KSC5601
63    => KO16KSCCS
64    => KO16MSWIN949
65    => LA8ISO6937


Please select one of the following for Database Characterset  [0 .. 76] :
66    => LA8PASSPORT
67    => LT8MSWIN921
68    => LT8PC772
69    => LT8PC774
70    => LV8PC1117
71    => LV8PC8LR
72    => LV8RST104090
73    => N8PC865
74    => NE8ISO8859P10
75    => NEE8ISO8859P4
76    => RU8BESTA


Please select one of the following for Database Characterset  [0 .. 87] :
77    => RU8PC855
78    => RU8PC866
79    => SE8ISO8859P3
80    => TH8MACTHAIS
81    => TH8TISASCII
82    => TR8DEC
83    => TR8MACTURKISHS
84    => TR8MSWIN1254
85    => TR8PC857
86    => US8PC437
87    => UTF8


Please select one of the following for Database Characterset  [0 .. 98] :
88    => VN8MSWIN1258
89    => VN8VN3
90    => WE8DEC
91    => WE8DG
92    => WE8ISO8859P1
93    => WE8ISO8859P15
94    => WE8ISO8859P9
95    => WE8MACROMAN8S
96    => WE8MSWIN1252
97    => WE8NCR4970
98    => WE8NEXTSTEP


Please select one of the following for Database Characterset  [0 .. 109] :
99    => WE8PC850
100    => WE8PC858
101    => WE8PC860
102    => WE8ROMAN8
103    => ZHS16CGB231280
104    => ZHS16GBK
105    => ZHT16BIG5
106    => ZHT16CCDC
107    => ZHT16DBT
108    => ZHT16HKSCS
109    => ZHT16MSWIN950


Please select one of the following for Database Characterset  [1 .. 113] :
110    => ZHT32EUC
111    => ZHT32SOPS
112    => ZHT32TRIS
113    => US7ASCII

'' is not within the range. Please provide the input again : 1
The selected value is : AL32UTF8

Specify the  Database Territory (1. AMERICA 2. Others) [1] : 2

Please select one of the following for Database Territory [0 .. 10] :
0    => Others
1    => ALBANIA
2    => ALGERIA
3    => AMERICA
4    => ARGENTINA
5    => AUSTRALIA
6    => AUSTRIA
7    => AZERBAIJAN
8    => BAHRAIN
9    => BANGLADESH
10    => BELARUS


Please select one of the following for Database Territory  [0 .. 21] :
11    => BELGIUM
12    => BRAZIL
13    => BULGARIA
14    => CANADA
15    => CATALONIA
16    => CHILE
17    => CHINA
18    => COLOMBIA
19    => COSTA RICA
20    => CROATIA
21    => CYPRUS
1
The selected value is : ALBANIA

Specify the  Component Language (1. en 2. Others) [1] : 1
The selected value is : en
Please select one of the following for NLS Characterset  [1 .. 2] :
1    => AL16UTF16
2    => UTF8
1
The selected value is : AL16UTF16

Successfully generated the Database parameter file 'odadbconfig'


Verify the newly created Database Configuration  file.

[root@ABC1x5-2]# oakcli show db_config_params
The available DB configuration files are :
odadbconfig
default



Cheers!!!

Create Oracle Single Instance Database on Oracle Database Appliance (ODA HA X5-2)

This doc describe  Oracle Single Instance Database creation  on Oracle Database Appliance (ODA HA X5-2)

On ODA we use oakcli command line to create the database.

I'm using default database parameter file.

1. Execute oakcli create database command as root user and provide oracle home.
2. Enter password for SYSASM (default is welcome1)
3. Enter Database type.
4. Choose Database Deployment type.Enter 1 Enterprise Edition to create Single Instance Database.
5. Select the Node to host the Single Instance database.
6. Choose Database class to allocate number of cores and memory for particular database.
7. Choose EM DB console.
8. Verify the database.



[root@ABC1x5-2]# oakcli create database -db LONDON -oh OraDb11204_home1
INFO: 2017-03-07 10:55:44: Please check the logfile  '/opt/oracle/oak/log/ABC1x5-2/tools/12.1.2.9.0/createdb_LONDON_25792.log' for more details
INFO: 2017-03-07 10:55:45: Database parameter file is not provided. Will be using default parameters for DB creation

Please enter the 'SYSASM'  password : (During deployment we set the SYSASM password to 'welcome1'):
Please re-enter the 'SYSASM' password:
Please select one of the following for Database type  [1 .. 2] :
1    => OLTP
2    => DSS
1
The selected value is : OLTP
Please select one of the following for Database Deployment  [1 .. 3] :
1    => EE : Enterprise Edition
2    => RACONE
3    => RAC
1
The selected value is : EE
Please select one of the following for Node Number  [1 .. 2] :
1    => ABC1x5-2
2    => ABC2x5-2
1
The selected value is : ABC1x5-2

Specify the  Database Class (1. odb-01 '1 core, 8 GB memory'   2. Others) [1] : 2

Please select one of the following for Database Class [1 .. 7] :
1    => odb-01s  (   1 cores ,     4 GB memory)
2    =>  odb-01  (   1 cores ,     8 GB memory)
3    =>  odb-02  (   2 cores ,    16 GB memory)
4    =>  odb-04  (   4 cores ,    32 GB memory)
5    =>  odb-06  (   6 cores ,    48 GB memory)
6    =>  odb-12  (  12 cores ,    96 GB memory)
7    =>  odb-16  (  16 cores ,   128 GB memory)
5
The selected value is : odb-06  (   6 cores ,    48 GB memory)

Do you want to setup the EM DB Console for this database [ Y | N ] ? : N
INFO   : Logging all actions in the file /opt/oracle/oak/onecmd/tmp/ABC1x5-2-20170307105648.log and traces in the file /opt/oracle/oak/onecmd/tmp/ABC1x5-2-

20170307105648.trc
INFO   : Loading the configuration file /opt/oracle/oak/onecmd/create_database.params...
INFO   : Creating the node list files...
INFO   : Setting up ssh for root...
INFO   : Setting up SSH across the Private Network...
...INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.27 /root/DoAllcmds.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.28 /root/DoAllcmds.sh
INFO   : Background process 32756 (node: 192.168.16.27) gets done with the exit code 0
INFO   : Background process 32817 (node: 192.168.16.28) gets done with the exit code 0
INFO   : Setting up SSH completed successfully
INFO   : Running the command /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --

exclude=*trc --exclude=*rpm to sync directory</opt/oracle/oak/onecmd> on node <192.168.16.28>
SUCCESS: Ran /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --

exclude=*rpm and it returned: RC=0

...INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /root/DoAllcmds.sh
INFO   : Background process 34017 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /root/DoAllcmds.sh
INFO   : Background process 34087 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105730.sh
INFO   : Background process 34234 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105730.sh
INFO   : Background process 34311 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Setting up SSH for user oracle...
...INFO   : checking nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
...
SUCCESS: All nodes in /opt/oracle/oak/onecmd/tmp/db_nodes are pingable and alive.
INFO   : Checking SSH setup for user (oracle) on nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105756.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105756.sh
INFO   : Background process 36647 (node: ABC1x5-2) gets done with the exit code 0
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105756.sh
INFO   : Background process 36708 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Setting up ACFS storage
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/acfsm_25792.sh
INFO   : Background process 37061 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/acfsm_25792.sh
INFO   : Background process 37122 (node: ABC2x5-2) gets done with the exit code 0
INFO: 2017-03-07 10:58:10: Successfully setup the storage structure for the database 'LONDON'
SUCCESS: Successfully setup ACFS storage for the database LONDON
INFO   : Creating Database using DBCA...
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105810.sh
INFO   : Background process 40834 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105810.sh
INFO   : Background process 40895 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running DBCA using /opt/oracle/oak/onecmd/tmp/dbca-LONDON.sh on ABC1x5-2 as oracle...
INFO   : Check output in /opt/oracle/oak/onecmd/tmp/dbca-LONDON-20170307105648.log on ABC1x5-2
...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/dbca-LONDON.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/dbca-LONDON.sh
         Instance LONDON is running on node ABC1x5-2
INFO   : One or more Instances running on the cluster nodes.
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl setenv database -d LONDON -t

'TZ=Asia/Manila' to set DB timezone
INFO   : Running the command /u01/app/12.1.0.2/grid/bin/crsctl stat resource ora.LONDON.db -p
...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/dbupdates-LONDON.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/dbupdates-LONDON.sh
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl stop database -d LONDON
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl start database -d LONDON
INFO: 2017-03-07 11:05:53: Successfully set the RMAN SNAPSHOT control file
SUCCESS: 2017-03-07 11:05:54: Successfully created the Database : LONDON


Verify the database.


[root@ABC1x5-2]# oakcli show databases
Name     Type       Storage   HomeName             HomeLocation                                       Version
-----    ------     --------  --------------       ----------------                                   ----------
ORCL      RAC        ACFS      OraDb11204_home1     /u01/app/oracle/product/11.2.0.4/dbhome_1          11.2.0.4.161018(24006111,23054319)
LONDON    SINGLE     ACFS      OraDb11204_home1     /u01/app/oracle/product/11.2.0.4/dbhome_1          11.2.0.4.161018(24006111,23054319)


Cheers.

Create Oracle Single Instance Database on Oracle Database Appliance (ODA HA X5-2)

This doc describe  Oracle Single Instance Database creation  on Oracle Database Appliance (ODA HA X5-2)

On ODA we use oakcli command line to create the database.

I'm using default database parameter file.

1. Execute oakcli create database command as root user and provide oracle home.
2. Enter password for SYSASM (default is welcome1)
3. Enter Database type.
4. Choose Database Deployment type.Enter 1 Enterprise Edition to create Single Instance Database.
5. Select the Node to host the Single Instance database.
6. Choose Database class to allocate number of cores and memory for particular database.
7. Choose EM DB console.
8. Verify the database.



[root@ABC1x5-2]# oakcli create database -db LONDON -oh OraDb11204_home1
INFO: 2017-03-07 10:55:44: Please check the logfile  '/opt/oracle/oak/log/ABC1x5-2/tools/12.1.2.9.0/createdb_LONDON_25792.log' for more details
INFO: 2017-03-07 10:55:45: Database parameter file is not provided. Will be using default parameters for DB creation

Please enter the 'SYSASM'  password : (During deployment we set the SYSASM password to 'welcome1'):
Please re-enter the 'SYSASM' password:
Please select one of the following for Database type  [1 .. 2] :
1    => OLTP
2    => DSS
1
The selected value is : OLTP
Please select one of the following for Database Deployment  [1 .. 3] :
1    => EE : Enterprise Edition
2    => RACONE
3    => RAC
1
The selected value is : EE
Please select one of the following for Node Number  [1 .. 2] :
1    => ABC1x5-2
2    => ABC2x5-2
1
The selected value is : ABC1x5-2

Specify the  Database Class (1. odb-01 '1 core, 8 GB memory'   2. Others) [1] : 2

Please select one of the following for Database Class [1 .. 7] :
1    => odb-01s  (   1 cores ,     4 GB memory)
2    =>  odb-01  (   1 cores ,     8 GB memory)
3    =>  odb-02  (   2 cores ,    16 GB memory)
4    =>  odb-04  (   4 cores ,    32 GB memory)
5    =>  odb-06  (   6 cores ,    48 GB memory)
6    =>  odb-12  (  12 cores ,    96 GB memory)
7    =>  odb-16  (  16 cores ,   128 GB memory)
5
The selected value is : odb-06  (   6 cores ,    48 GB memory)

Do you want to setup the EM DB Console for this database [ Y | N ] ? : N
INFO   : Logging all actions in the file /opt/oracle/oak/onecmd/tmp/ABC1x5-2-20170307105648.log and traces in the file /opt/oracle/oak/onecmd/tmp/ABC1x5-2-

20170307105648.trc
INFO   : Loading the configuration file /opt/oracle/oak/onecmd/create_database.params...
INFO   : Creating the node list files...
INFO   : Setting up ssh for root...
INFO   : Setting up SSH across the Private Network...
...INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.27 /root/DoAllcmds.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.28 /root/DoAllcmds.sh
INFO   : Background process 32756 (node: 192.168.16.27) gets done with the exit code 0
INFO   : Background process 32817 (node: 192.168.16.28) gets done with the exit code 0
INFO   : Setting up SSH completed successfully
INFO   : Running the command /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --

exclude=*trc --exclude=*rpm to sync directory</opt/oracle/oak/onecmd> on node <192.168.16.28>
SUCCESS: Ran /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --

exclude=*rpm and it returned: RC=0

...INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /root/DoAllcmds.sh
INFO   : Background process 34017 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /root/DoAllcmds.sh
INFO   : Background process 34087 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105730.sh
INFO   : Background process 34234 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105730.sh
INFO   : Background process 34311 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Setting up SSH for user oracle...
...INFO   : checking nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
...
SUCCESS: All nodes in /opt/oracle/oak/onecmd/tmp/db_nodes are pingable and alive.
INFO   : Checking SSH setup for user (oracle) on nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105756.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105756.sh
INFO   : Background process 36647 (node: ABC1x5-2) gets done with the exit code 0
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105756.sh
INFO   : Background process 36708 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Setting up ACFS storage
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/acfsm_25792.sh
INFO   : Background process 37061 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/acfsm_25792.sh
INFO   : Background process 37122 (node: ABC2x5-2) gets done with the exit code 0
INFO: 2017-03-07 10:58:10: Successfully setup the storage structure for the database 'LONDON'
SUCCESS: Successfully setup ACFS storage for the database LONDON
INFO   : Creating Database using DBCA...
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105810.sh
INFO   : Background process 40834 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307105810.sh
INFO   : Background process 40895 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running DBCA using /opt/oracle/oak/onecmd/tmp/dbca-LONDON.sh on ABC1x5-2 as oracle...
INFO   : Check output in /opt/oracle/oak/onecmd/tmp/dbca-LONDON-20170307105648.log on ABC1x5-2
...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/dbca-LONDON.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/dbca-LONDON.sh
         Instance LONDON is running on node ABC1x5-2
INFO   : One or more Instances running on the cluster nodes.
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl setenv database -d LONDON -t

'TZ=Asia/Manila' to set DB timezone
INFO   : Running the command /u01/app/12.1.0.2/grid/bin/crsctl stat resource ora.LONDON.db -p
...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/dbupdates-LONDON.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/dbupdates-LONDON.sh
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl stop database -d LONDON
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl start database -d LONDON
INFO: 2017-03-07 11:05:53: Successfully set the RMAN SNAPSHOT control file
SUCCESS: 2017-03-07 11:05:54: Successfully created the Database : LONDON


Verify the database.


[root@ABC1x5-2]# oakcli show databases
Name     Type       Storage   HomeName             HomeLocation                                       Version
-----    ------     --------  --------------       ----------------                                   ----------
ORCL      RAC        ACFS      OraDb11204_home1     /u01/app/oracle/product/11.2.0.4/dbhome_1          11.2.0.4.161018(24006111,23054319)
LONDON    SINGLE     ACFS      OraDb11204_home1     /u01/app/oracle/product/11.2.0.4/dbhome_1          11.2.0.4.161018(24006111,23054319)


Cheers.

Thursday 9 March 2017

Create Oracle RAC Database on Oracle Database Appliance (ODA HA X5-2)

This doc describe  Oracle RAC Database creation  on Oracle Database Appliance (ODA HA X5-2)

On ODA we use oakcli command line to create the database.

I'm using default database parameter file.

1. Execute oakcli create database command as root user and provide oracle home.
2. Enter password for SYSASM (default is welcome1)
3. Enter Database type.
4.Choose Database Deployment type.
5.Choose Flash Storage.
6. Choose Database class to allocate number of cores and memory for particular database.
7. Choose EM DB console.
8.Verify the database.






[root@ABC1x5-2 bin]# oakcli create database -db ORCL -oh OraDb11204_home1
INFO: 2017-03-07 10:38:59: Please check the logfile  '/opt/oracle/oak/log/ABC1x5-2/tools/12.1.2.9.0/createdb_ORCL_61414.log' for more details
INFO: 2017-03-07 10:39:01: Database parameter file is not provided. Will be using default parameters for DB creation

Please enter the 'SYSASM'  password : (During deployment we set the SYSASM password to 'welcome1'):
Please re-enter the 'SYSASM' password:
Please select one of the following for Database type  [1 .. 2] :
1    => OLTP
2    => DSS
1
The selected value is : OLTP
Please select one of the following for Database Deployment  [1 .. 3] :
1    => EE : Enterprise Edition
2    => RACONE
3    => RAC
3
The selected value is : RAC

Do you want to keep the data files on FLASH storage? : : [ Y | N ]?N

Specify the  Database Class (1. odb-01 '1 core, 8 GB memory'   2. Others) [1] : 2

Please select one of the following for Database Class [1 .. 9] :
1    => odb-01s  (   1 cores ,     4 GB memory)
2    =>  odb-01  (   1 cores ,     8 GB memory)
3    =>  odb-02  (   2 cores ,    16 GB memory)
4    =>  odb-04  (   4 cores ,    32 GB memory)
5    =>  odb-06  (   6 cores ,    48 GB memory)
6    =>  odb-12  (  12 cores ,    96 GB memory)
7    =>  odb-16  (  16 cores ,   128 GB memory)
8    =>  odb-20  (  20 cores ,   160 GB memory)
9    =>  odb-24  (  24 cores ,   192 GB memory)
5
The selected value is : odb-06  (   6 cores ,    48 GB memory)

Do you want to setup the EM DB Console for this database [ Y | N ] ? : N
INFO   : Logging all actions in the file /opt/oracle/oak/onecmd/tmp/ABC1x5-2-20170307104009.log and traces in the file /opt/oracle/oak/onecmd/tmp/ABC1x5-2-20170307104009.trc
INFO   : Loading the configuration file /opt/oracle/oak/onecmd/create_database.params...
INFO   : Creating the node list files...
INFO   : Setting up ssh for root...
INFO   : Setting up SSH across the Private Network...
...INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.27 /root/DoAllcmds.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.28 /root/DoAllcmds.sh
INFO   : Background process 69884 (node: 192.168.16.27) gets done with the exit code 0
INFO   : Background process 69945 (node: 192.168.16.28) gets done with the exit code 0
INFO   : Setting up SSH completed successfully
INFO   : Running the command /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --exclude=*rpm to sync directory</opt/oracle/oak/onecmd> on node <192.168.16.28>
SUCCESS: Ran /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --exclude=*rpm and it returned: RC=0

...INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /root/DoAllcmds.sh
INFO   : Background process 71369 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /root/DoAllcmds.sh
INFO   : Background process 71439 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307104050.sh
INFO   : Background process 71577 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307104050.sh
INFO   : Background process 71647 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Setting up SSH for user oracle...
...INFO   : checking nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
...
SUCCESS: All nodes in /opt/oracle/oak/onecmd/tmp/db_nodes are pingable and alive.
INFO   : Checking SSH setup for user (oracle) on nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307104117.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307104117.sh
INFO   : Background process 73261 (node: ABC1x5-2) gets done with the exit code 0
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307104117.sh
INFO   : Background process 73331 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Setting up ACFS storage
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/acfsm_61414.sh
INFO   : Background process 73770 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/acfsm_61414.sh
INFO   : Background process 73842 (node: ABC2x5-2) gets done with the exit code 0
INFO: 2017-03-07 10:41:32: Successfully setup the storage structure for the database 'ORCL'
SUCCESS: Successfully setup ACFS storage for the database ORCL
INFO   : Creating Database using DBCA...
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307104132.sh
INFO   : Background process 77322 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307104132.sh
INFO   : Background process 77383 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running DBCA using /opt/oracle/oak/onecmd/tmp/dbca-TWO.sh on ABC1x5-2 as oracle...
INFO   : Check output in /opt/oracle/oak/onecmd/tmp/dbca-ORCL-20170307104009.log on ABC1x5-2
...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/dbca-ORCL.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/dbca-ORCL.sh
         Instance ORCL1 is running on node ABC1x5-2
         Instance ORCL2 is running on node ABC2x5-2
INFO   : One or more Instances running on the cluster nodes.
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl setenv database -d ORCL -t 'TZ=Asia/Manila' to set DB timezone
INFO   : Running the command /u01/app/12.1.0.2/grid/bin/crsctl stat resource ora.orcl.db -p
.INFO   : Did not do scp for node : ABC1x5-2
..
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak/onecmd/tmp/dbupdates-ORCL.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/dbupdates-ORCL.sh
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl stop database -d ORCL
INFO   : Running export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1;/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/srvctl start database -d ORCL
INFO: 2017-03-07 10:52:48: Successfully set the RMAN SNAPSHOT control file
SUCCESS: 2017-03-07 10:52:49: Successfully created the Database : ORCL


Verify the database.


[root@ABC1x5-2 bin]# oakcli show databases
Name     Type       Storage   HomeName             HomeLocation                                       Version
-----    ------     --------  --------------       ----------------                                   ----------
ORCL      RAC        ACFS      OraDb11204_home1     /u01/app/oracle/product/11.2.0.4/dbhome_1          11.2.0.4.161018(24006111,23054319)



Cheers.



Create Oracle Database 11gr2 home on ODA X5-2 with virtualization

This doc describe the steps to create additional Oracle database home with different version.

we are creating Oracle database 11gr2 home. Oracle database 12c is the default database home.


1. Download the End-User RDBMS Clone files from MOS 888888.1

I have downloaded below one.

End User RDBMS Clone file for 11.2.0.4.161018 Patch 17770873

2. Transfer the End user RDBMS clone to ODA. Use Winscp.

3. Check the existing database homes on the ODA.

[root@ bin]# oakcli show dbhomes
Oracle Home Name      Oracle Home version                  Home Location
----------------      -------------------                  ------------
OraDb12102_home1      12.1.0.2.161018(24006101,23854735)  /u01/app/oracle/product/12.1.0.2/dbhome_1

4. Unpack the patch bundle p17770873_121290_Linux-x86-64.zip using the following oakcli command on first node as root user

cd /opt/oracle/oak/bin

[root@ bin]# oakcli unpack -package /tmp/p17770873_121290_Linux-x86-64.zip
Unpacking will take some time,  Please wait...
Successfully unpacked the files to repository.

5. Create the home with new db version 11.2.0.4.161018

[root@ABC1x5-2 bin]# oakcli create dbhome -version 11.2.0.4.161018
INFO: 2017-03-07 09:53:26: Please check the logfile  '/opt/oracle/oak/log/ABC1x5-2/tools/12.1.2.9.0/createdbhome_929                                                 96.log' for more details

Please enter the 'root'  password :
Please re-enter the 'root' password:

Please enter the 'SYSASM'  password : (During deployment we set the SYSASM password to 'welcome1'):
Please re-enter the 'SYSASM' password:
INFO: 2017-03-07 09:54:08: Installing a new Home : OraDb11204_home1 at /u01/app/oracle/product/11.2.0.4/dbhome_1
INFO   : Logging all actions in the file /opt/oracle/oak/onecmd/tmp/ABC1x5-2-20170307095412.log and traces in the fi                                                 le /opt/oracle/oak/onecmd/tmp/ABC1x5-2-20170307095412.trc
INFO   : Loading the configuration file /opt/oracle/oak/onecmd/create_database.params...
INFO   : Creating the node list files...
INFO   : Setting up ssh for root...
INFO   : Setting up SSH across the Private Network...
............Completed
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.27 /root/DoAllcmds.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.28 /root/DoAllcmds.sh
INFO   : Background process 97409 (node: 192.168.16.27) gets done with the exit code 0
INFO   : Background process 97473 (node: 192.168.16.28) gets done with the exit code 0
INFO   : Setting up SSH completed successfully
INFO   : Running the command /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd -                                                 -exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --exclude=*rpm to sync directory</opt/oracle/oak/onecmd> on n                                                 ode <192.168.16.28>
SUCCESS: Ran /usr/bin/rsync -tarqvz /opt/oracle/oak/onecmd/ root@192.168.16.28:/opt/oracle/oak/onecmd --exclude=*zip --                                                 exclude=*gz --exclude=*log --exclude=*trc --exclude=*rpm and it returned: RC=0

............Completed
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /root/DoAllcmds.sh
INFO   : Background process 98681 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /root/DoAllcmds.sh
INFO   : Background process 98751 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095457.sh
INFO   : Background process 98924 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095457.sh
INFO   : Background process 99055 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Setting up SSH for user oracle...
...INFO   : checking nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
...
SUCCESS: All nodes in /opt/oracle/oak/onecmd/tmp/db_nodes are pingable and alive.
INFO   : Checking SSH setup for user (oracle) on nodes in /opt/oracle/oak/onecmd/tmp/db_nodes...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak                                                 /onecmd/tmp/DoAllcmds-20170307095523.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095523.sh
INFO   : Background process 1000 (node: ABC1x5-2) gets done with the exit code 0
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC2x5-2 /opt/oracle/oak                                                 /onecmd/tmp/DoAllcmds-20170307095523.sh
INFO   : Background process 1061 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Creating DB homes on the nodes ABC1x5-2 ABC2x5-2....
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095524.sh
INFO   : Background process 1153 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095524.sh
INFO   : Background process 1214 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095524.sh
INFO   : Background process 1390 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095524.sh
INFO   : Background process 1462 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running /usr/bin/scp /opt/oracle/oak/pkgrepos/orapkgs/DB/11.2.0.4.161018/Base/db112.tar.gz root@192.168.16.28:                                                 /opt/oracle/oak/pkgrepos/orapkgs/DB/11.2.0.4.161018/Base/db112.tar.gz to copy DB clone to the other node...
SUCCESS: Ran /usr/bin/scp /opt/oracle/oak/pkgrepos/orapkgs/DB/11.2.0.4.161018/Base/db112.tar.gz root@192.168.16.28:/opt                                                 /oracle/oak/pkgrepos/orapkgs/DB/11.2.0.4.161018/Base/db112.tar.gz and it returned: RC=0

INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095541.sh
INFO   : Background process 2505 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095541.sh
INFO   : Background process 2577 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095542.sh
INFO   : Background process 2726 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095542.sh
INFO   : Background process 2798 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Restoring the copy of DB home on all nodes...
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak                                                 /onecmd/tmp/DoAllcmds-20170307095543.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095543.sh
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC2x5-2 /opt/oracle/oak                                                 /onecmd/tmp/DoAllcmds-20170307095543.sh
INFO   : Background process 2941 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Background process 3015 (node: ABC2x5-2) gets done with the exit code 0
INFO   : INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095644                                                 .sh
Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095644.sh
INFO   : Background process 6243 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Background process 6316 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Cloning and relinking RAC home
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/fuser_mv.sh
INFO   : Background process 6470 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/fuser_mv.sh
INFO   : Background process 6541 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running clone.pl on RAC home. Look at /opt/oracle/oak/onecmd/tmp/racclonepl.sh-20170307095412-log for more det                                                 ails
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/racclonepl.sh
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/racclonepl.sh
INFO   : Background process 6746 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Background process 6685 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Runing root.sh on all nodes...
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095756.sh
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20170307095756.sh
INFO   : Background process 13152 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Background process 13217 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Removing temporary templates
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/remove_temp.sh
INFO   : Background process 13421 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/remove_temp.sh
INFO   : Background process 13482 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running asmgid
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC1x5-2 /opt/oracle/oak                                                 /onecmd/tmp/set_asm_gid.sh
INFO   : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/set_asm_gid.sh
INFO   : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle ABC2x5-2 /opt/oracle/oak                                                 /onecmd/tmp/set_asm_gid.sh
INFO   : Background process 13644 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Background process 13715 (node: ABC2x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /opt/oracle/oak/onecmd/tmp/fuser_mv_bk.sh
INFO   : Background process 14141 (node: ABC1x5-2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /opt/oracle/oak/onecmd/tmp/fuser_mv_bk.sh
INFO   : Background process 14211 (node: ABC2x5-2) gets done with the exit code 0
SUCCESS: 2017-03-07 09:58:01: Successfully created the Database Home : OraDb11204_home1
INFO   : Resecuring the environment... ABC1x5-2 ABC2x5-2
INFO   : Removing the SSH setup for root...

INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 chmod 751 /opt/oracle/oak/onecmd/tmp

INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 chmod 751 /opt/oracle/oak/onecmd/tmp
INFO   : Running as root: /usr/bin/ssh -l root ABC2x5-2 /bin/rm -rf /root/.ssh
INFO   : Running as root: /usr/bin/ssh -l root ABC1x5-2 /bin/rm -rf /root/.ssh



6. Verify the newly created database home.


[root@ bin]# oakcli show dbhomes

Oracle Home Name      Oracle Home version                  Home Location
----------------      -------------------                  ------------
OraDb11204_home1      11.2.0.4.161018(24006111,23054319)  /u01/app/oracle/product/11.2.0.4/dbhome_1
OraDb12102_home1      12.1.0.2.161018(24006101,23854735)  /u01/app/oracle/product/12.1.0.2/dbhome_1


References:- READme and ODA Admin guide.

Cheers.






Tuesday 7 March 2017

Error encountered Oakcli Deploy Failed at step 17 GiConfigAssists on ODA X5-2 With Virtualization

This doc based on the Error encountered during Oakcli Deploy Failed at step 17 GiConfigAssists  on ODA X5-2 With Virtualization.

below are the screen shots of the error.




Solution:- we need to complete the step 17 manually. 

Run the following step on both nodes

1) /u01/app/12.1.0.2/grid/bin/oclumon manage -repos changerepossize 3895
2) Setting ASM cardinality to all ==> srvctl modify asm -count all 
3) sed -i 's/CRS_LIMIT_OPENFILE=.*/CRS_LIMIT_OPENFILE=65536/' /etc/rc3.d/S96ohasd

(If the task does not give any error, it works successful.)


Now we need to complete the rest of steps manually.

use below command to complete the steps from 18 to 24 on Virtualization env. 

cd /opt/oracle/oak/onecmd/

check for configration file and execute the below command.

GridInst.pl -o -r 18-24


after successful completion look into the logs file for steps 18-24.

Reference MOS doc id 2203864.1

Cheers.

ntpdate synchronizing with time server failed (at step 10 validateEnv) during ODA X5-2 with VM deployment

This doc will be helpful for those experiencing NTP time synchronization during ODA deployment.

I have encountered this issue. ntpdate synchronizing with time server failed (at step 10 validateEnv) during ODA x5-2 with Virtualization Deployment.

below are the screen shot of the issue.



To resolve the issue we can try to check the status and start the ntpd on both DB nodes.

service ntpd status
service ntpd start

then try start the installation.  In my case this didnt work.

Second workaround is to skip the NTP. This worked in my case.

Start the installation again and remove the NTP IP from the config file. Cluster Time Synchronization Service (CTSS) will take care of time sync.  

cheers.