Downgrade نسخه GRID از 19.11 به 18.5

اگر بعد از ارتقا نسخه Grid Infrastructure به 19c تصمیم گرفتید آن را دوباره به نسخه قبل برگردانید، پیشنهاد می کنیم متن پیش رو که در ان مراحل Downgrade نسخه Grid از 19.11 به 18.5 توضیح داده شده را مطالعه بفرمایید.

عملیات Downgrade در کلاستری با دو نود انجام شده که دستورات زیر اطلاعاتی را در مورد نسخه جاری Grid ارائه می کنند:

 [grid@RAC2 ~]$ crsctl query crs activeversion

Oracle Clusterware active version on the cluster is [19.0.0.0.0]

SQL> select BANNER_FULL  from v$version;

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 – Production

Version 19.11.0.0.0

عملیات Downgrade را در طی 7 مرحله انجام خواهیم داد.

مرحله اول: به نودی که  MGMTDB در آن در حال اجرا است وصل شده و دیتابیس MGMTDB را حذف می کنیم(البته ممکن است در محیط شما از MGMTDB استفاده نشده باشد در این صورت، بدیهی است که نیازی به انجام این مرحله نخواهد بود):

 

[root@RAC3 ~]# ps -eaf|grep pmon

grid      7728     1  0 15:59 ?        00:00:00 asm_pmon_+ASM1

grid     14147     1  0 17:01 ?        00:00:00 mdb_pmon_-MGMTDB

 [root@RAC3 ~]# su – grid

 [grid@RAC3 ~]$ srvctl status mgmtdb

Database is enabled

Instance -MGMTDB is running on node rac3

[grid@RAC3 ~]$ dbca -silent -deleteDatabase -sourceDB –MGMTDB

Prepare for db operation

32% complete

Connecting to database

35% complete

39% complete

42% complete

65% complete

Updating network configuration files

68% complete

Deleting instance and datafiles

84% complete

100% complete

Database deletion completed.

Look at the log file “/grid18c/base/cfgtoollogs/dbca/-MGMTDB/-MGMTDB.log” for further details.

 

مرحله دوم: در این مرحله، اسکریپت Downgrade را در همه نودهای کلاستر اجرا می کنیم:

نود اول:

[root@RAC3 ~]# /grid19R11/home/crs/install/rootcrs.sh -downgrade

Using configuration parameter file: /grid19R11/home/crs/install/crsconfig_params

The log of current session can be found at:

  /grid19R11/base/crsdata/rac3/crsconfig/crsdowngrade_rac3_2021-07-05_05-46-05PM.log

2021/07/05 17:48:04 CLSRSC-591: successfully downgraded Oracle Clusterware stack on this node

2021/07/05 17:48:35 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.

نود دوم:

[root@RAC2 ~]# /grid19R11/home/crs/install/rootcrs.sh -downgrade

Using configuration parameter file: /grid19R11/home/crs/install/crsconfig_params
The log of current session can be found at:
/grid19R11/base/crsdata/rac2/crsconfig/crsdowngrade_rac2_2021-07-05_05-48-41PM.log

CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start ‘ora.evmd’ on ‘rac2’
CRS-2672: Attempting to start ‘ora.mdnsd’ on ‘rac2’
CRS-2676: Start of ‘ora.mdnsd’ on ‘rac2’ succeeded
CRS-2676: Start of ‘ora.evmd’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.gpnpd’ on ‘rac2’
CRS-2676: Start of ‘ora.gpnpd’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.cssdmonitor’ on ‘rac2’
CRS-2672: Attempting to start ‘ora.gipcd’ on ‘rac2’
CRS-2676: Start of ‘ora.cssdmonitor’ on ‘rac2’ succeeded
CRS-2676: Start of ‘ora.gipcd’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.cssd’ on ‘rac2’
CRS-2672: Attempting to start ‘ora.diskmon’ on ‘rac2’
CRS-2676: Start of ‘ora.diskmon’ on ‘rac2’ succeeded
CRS-2676: Start of ‘ora.cssd’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.crf’ on ‘rac2’
CRS-2672: Attempting to start ‘ora.ctssd’ on ‘rac2’
CRS-2672: Attempting to start ‘ora.cluster_interconnect.haip’ on ‘rac2’
CRS-2676: Start of ‘ora.crf’ on ‘rac2’ succeeded
CRS-2676: Start of ‘ora.ctssd’ on ‘rac2’ succeeded
CRS-2676: Start of ‘ora.cluster_interconnect.haip’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.asm’ on ‘rac2’
CRS-2676: Start of ‘ora.asm’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.storage’ on ‘rac2’
CRS-2676: Start of ‘ora.storage’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.crsd’ on ‘rac2’
CRS-2676: Start of ‘ora.crsd’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.crf’ on ‘rac2’
CRS-2672: Attempting to start ‘ora.storage’ on ‘rac2’
CRS-2676: Start of ‘ora.storage’ on ‘rac2’ succeeded
CRS-2676: Start of ‘ora.crf’ on ‘rac2’ succeeded
CRS-2672: Attempting to start ‘ora.crsd’ on ‘rac2’
CRS-2676: Start of ‘ora.crsd’ on ‘rac2’ succeeded
2021/07/05 17:54:32 CLSRSC-338: Successfully downgraded OCR to version 18.0.0.0.0
CRS-5702: Resource ‘ora.crsd’ is already running on ‘rac2’
CRS-4000: Command Start failed, or completed with errors.
2021/07/05 17:55:13 CLSRSC-591: successfully downgraded Oracle Clusterware stack on this node
2021/07/05 17:55:14 CLSRSC-640: To complete the downgrade operation, ensure that the node inventory on all nodes points to the configured Grid Infrastructure home ‘/grid18c/home’.
2021/07/05 17:55:15 CLSRSC-592: Run ‘crsctl start crs’ from home /grid18c/home on each node to complete downgrade.

مرحله سوم: در این مرحله، GRID HOME مربوط به 19cR11 را از oraInventory حذف کرده و oraInventory را بروزرسانی می کنیم:

[grid@RAC2 ~]$ /grid19R11/home/oui/bin/runInstaller -nowait -waitforcompletion -ignoreSysPrereqs -updateNodeList -silent CRS=false ORACLE_HOME=/grid19R11/home “CLUSTER_NODES=RAC2,RAC3” –doNotUpdateNodeList

Starting Oracle Universal Installer…
Checking swap space: must be greater than 500 MB. Actual 18231 MB Passed
The inventory pointer is located at /etc/oraInst.loc
You can find the log of this install session at:
/oraInventory/logs/UpdateNodeList2021-07-05_06-01-01PM.log
‘UpdateNodeList’ was successful.

این دستور را صرفا در یکی از نودهای کلاستر اجرا کنید.

مرحله چهارم: به عنوان قدم بعدی، GRID HOME مربوط به اوراکل 18cR5 را در oraInventory فعال می کنیم:

[grid@RAC2 ~]$ /grid18c/home/oui/bin/runInstaller -nowait -waitforcompletion -ignoreSysPrereqs -updateNodeList -silent CRS=true ORACLE_HOME=/grid18c/home “CLUSTER_NODES=RAC2,RAC3”

Starting Oracle Universal Installer…
Checking swap space: must be greater than 500 MB. Actual 18231 MB Passed
The inventory pointer is located at /etc/oraInst.loc
‘UpdateNodeList’ was successful.

این دستور را صرفا در یکی از نودهای کلاستر اجرا کنید.

مرحله پنجم: کلاستر را از مسیر Grid Infrastructure نسخه 18c استارت می کنیم:

[root@RAC2 ~]# /grid18c/home/bin/crsctl start crs

CRS-4123: Oracle High Availability Services has been started.

[root@RAC3 ~]# /grid18c/home/bin/crsctl start crs

CRS-4123: Oracle High Availability Services has been started.

بعد از مدت زمان کوتاهی، همه سرویسهای کلاستر استارت خواهند شد و نسخه فعلی با دستورات زیر قابل رویت خواهد بود:

[grid@RAC3 ~]$ crsctl query crs activeversion

Oracle Clusterware active version on the cluster is [18.0.0.0.0]

SQL> select BANNER_FULL  from v$version;

Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 – Production

Version 18.5.0.0.0

عملیات Downgrade با موفقیت انجام شد. بازسازی MGMTDB در اوراکل 18cR5 اجباری نیست و بعد از عملیات Downgrade در صورت نیاز می توان MGMTDB را با استفاده از ابزار dbca ایجاد کرد.

ارائه خدمات مشاوره ، پشتیبانی و نصب و راه اندازی پایگاه داده اوراکل در سراسر کشور...................... تلفن: 09128110897 ایمیل:vahidusefzadeh@gmail.com

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *