Sie sind auf Seite 1von 4

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONVERTING RACONENODE to RAC
https://www.red-gate.com/simple-talk/sql/oracle/rac-one-node/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ srvctl -h | grep convert


Usage: srvctl convert database -d <db_unique_name> -c RAC [-n <node>]
Usage: srvctl convert database -d <db_unique_name> -c RACONENODE [-i <instname>] [-
w <timeout>]

[oracle@oraracn2 dbs]$ srvctl convert database -d rone -c RAC

srvctl add instance -d rone -i rone1 -n oraracn1

[oracle@oraracn2 dbs]$ srvctl add instance -d rone -i rone2 -n oraracn2


PRCD-1051 : Failed to add instance to database rone
PRCD-1023 : An instance has already been added to node oraracn2 for database rone
[oracle@oraracn2 dbs]$

[oracle@oraracn2 dbs]$ srvctl config database -d rone


Database unique name: rone
Database name: rone
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +DATA/rone/spfilerone.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: rone
Database instances: rone1,rone_2
Disk Groups: DATA,CRS
Mount point paths:
Services: rones
Type: RAC
Database is administrator managed
[oracle@oraracn2 dbs]$

[oracle@oraracn2 dbs]$ srvctl modify service -d rone -s rones -i rone_2 -t rone2


PRKO-2007 : Invalid instance name: rone2
[oracle@oraracn2 dbs]$

[oracle@oraracn2 dbs]$ srvctl remove instance -d rone -i rone_2


Remove instance from the database rone? (y/[n]) y
PRKO-3147 : Instance rone_2 cannot be removed because it is the only preferred
instance for service(s) rones for database rone
[oracle@oraracn2 dbs]$

[oracle@oraracn2 dbs]$ srvctl config service -d rone


Service name: rones
Service is enabled
Server pool: rone_rones
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: rone_2
Available instances:
[oracle@oraracn2 dbs]$

--Need to update preferred node list

Usage: srvctl modify service -d <db_unique_name> -s <service_name> -n -i


"<preferred_list>" [-a "<available_list>"] [-f]
[oracle@oraracn2 dbs]$ srvctl modify service -d rone -s rones -n -i "rone1,rone_2"

[oracle@oraracn2 dbs]$ srvctl config service -d rone


Service name: rones
Service is enabled
Server pool: rone_rones
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: rone1,rone_2
Available instances:
[oracle@oraracn2 dbs]$

[oracle@oraracn2 dbs]$ srvctl remove instance -d rone -i rone_2


Remove instance from the database rone? (y/[n]) y
[oracle@oraracn2 dbs]$

[oracle@oraracn2 dbs]$ srvctl add instance -d rone -i rone2 -n oraracn2


[oracle@oraracn2 dbs]$ srvctl config database -d rone
Database unique name: rone
Database name: rone
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +DATA/rone/spfilerone.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: rone
Database instances: rone1,rone2
Disk Groups: DATA,CRS
Mount point paths:
Services: rones
Type: RAC
Database is administrator managed
[oracle@oraracn2 dbs]$

[oracle@oraracn2 dbs]$ srvctl start database -d rone


PRCR-1079 : Failed to start resource ora.rone.db
CRS-5017: The resource action "ora.rone.db start" encountered the following error:
ORA-29760: instance_number parameter not specified
. For details refer to "(:CLSN00107:)" in
"/u01/app/11.2.0/grid/log/oraracn1/agent/crsd/oraagent_oracle/oraagent_oracle.log".

CRS-5017: The resource action "ora.rone.db start" encountered the following error:
ORA-29760: instance_number parameter not specified
. For details refer to "(:CLSN00107:)" in
"/u01/app/11.2.0/grid/log/oraracn2/agent/crsd/oraagent_oracle/oraagent_oracle.log".

CRS-2674: Start of 'ora.rone.db' on 'oraracn1' failed


CRS-2674: Start of 'ora.rone.db' on 'oraracn2' failed
CRS-2632: There are no more servers to try to place resource 'ora.rone.db' on that
would satisfy its placement policy
[oracle@oraracn2 dbs]$

update below parameter in pfile:

*.cluster_database_instances=2
*.cluster_database=true
*.remote_listener='orarac-scan:1521'
rone1.instance_number=1
rone2.instance_number=2
rone1.thread=1
rone2.thread=2
rone1.undo_tablespace='UNDOTBS1'
rone2.undo_tablespace='UNDOTBS2'

Create spfile from modified pfile.

[oracle@oraracn2 dbs]$ cat initrone2.ora


SPFILE='+DATA/rone/spfilerone.ora' # line added by Agent
[oracle@oraracn2 dbs]$ sqlplus

SQL*Plus: Release 11.2.0.4.0 Production on Sat Jun 1 02:29:30 2019

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Enter user-name: /as sysdba


Connected to an idle instance.

SQL> create spfile='+DATA/rone/spfilerone.ora' from pfile='/tmp/pfile_rone_2.ora';

File created.

SQL> Disconnected
[oracle@oraracn2 dbs]$ srvctl start database -d rone

[oracle@oraracn2 dbs]$ srvctl status database -d rone


Instance rone1 is running on node oraracn1
Instance rone2 is running on node oraracn2
[oracle@oraracn2 dbs]$

2.6 Check the logs

It is strongly advised to check all the logs related to Cluster, Database and
instances when you perform installation, system changes or patch updates�etc. Make
sure to check the log files to see the unexpected issues, if any.

CRS_HOME/log/hostname/crsd/ � The log files for the CRS daemon


CRS_HOME/log/hostname/cssd/ � The log files for the CSS daemon
CRS_HOME/log/hostname/evmd/ � The log files for the EVM daemon
CRS_HOME/log/hostname/client/ � The log files for the Oracle Cluster Registry (OCR)
CRS_HOME/log/hostname/racg/ � The log files for the Oracle RAC high availability
component
CRS_HOME/log/hostname/racg � The log files for the Oracle RAC high availability
component
CRS_HOME/log/hostanme/alert.log � The alert.log for Clusterware issues.

Das könnte Ihnen auch gefallen