微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 rhpctl move database 切换回以前版本

[oracle@otherdb ~]$
/u01/app/oracle/product/19.9.0/db_1/bin/rhpctl move database -sid orcl2 \
> -sourcehome
/u01/app/oracle/product/19.10.0/db_1 \
> -desthome
/u01/app/oracle/product/19.9.0/db_1 \
> -stopoption IMMEDIATE -ignorewcpatches
otherdb: verifying versions of Oracle homes ...
otherdb: verifying owners of Oracle homes ...
otherdb: verifying groups of Oracle homes ...
otherdb: starting to move the following databases: "orcl2"
otherdb: restarting databases: "orcl2" ...
otherdb: sql*Plus: Release 19.0.0.0.0 - Production on Mon Apr 5 22:56:44 2021Version 19.10.0.0.0copyright (c) 1982, 2019, Oracle. All rights reserved.Connected to:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - ProductionVersion 19.10.0.0.0
sql> alter pluggable database all save state*ERROR at line 1:ORA-65090: operation only allowed in a container database
sql> disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - ProductionVersion 19.10.0.0.0 :successful
otherdb: stopping instances of databases "orcl2" ...
otherdb: sql*Plus: Release 19.0.0.0.0 - Production on Mon Apr 5 22:56:44 2021Version 19.10.0.0.0copyright (c) 1982, 2019, Oracle. All rights reserved.Connected to:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - ProductionVersion 19.10.0.0.0
sql> Database closed.Database dismounted.ORACLE instance shut down.
sql> disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - ProductionVersion 19.10.0.0.0 :successful
otherdb: trying datapatch run for orcl2, attempt### 1 ###
[oracle@otherdb ~]$
成功。
注意,一定不要忘了 -ignorewcpatches,否则,会报找不到补丁的错误
PRGO-1691 : The move operation was rejected because the patched working copy "
DEST_HOME_PATH_WC-1606998673" is missing the patches for bug numbers

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐