暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
oracle 11G GI 更换目录.txt
326
3页
2次
2022-12-15
10墨值下载
官方文档:
https://docs.oracle.com/cd/E25156_01/doc/install.11203/e22489/rem_orcl.htm
GI 服务:
[grid@asm ~]$ crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed
resources on 'asm'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'asm'
CRS-2673: Attempting to stop 'ora.OCR.dg' on 'asm'
CRS-2673: Attempting to stop 'ora.orcl.db' on 'asm'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'asm'
CRS-2677: Stop of 'ora.FRA.dg' on 'asm' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on 'asm' succeeded
CRS-2677: Stop of 'ora.orcl.db' on 'asm' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'asm'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'asm' succeeded
分离目录:
[grid@asm ~]$ ls -l $ORACLE_HOME/ora*.loc
-rw-r----- 1 grid oinstall 56 Nov 1 06:21 /u01/app/grid/11.2.0/oraInst.loc
[grid@asm ~]$ cd $ORACLE_HOME/oui/bin
./detachHome.sh -silent -local -invPtrLoc /u01/app/grid/11.2.0/oraInst.loc
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 2047 MB Passed
The inventory pointer is located at /u01/app/grid/11.2.0/oraInst.loc
The inventory is located at /u01/app/oraInventory
'DetachHome' was successful.
移动目录:
# mv /u01/app/grid/11.2.0/* /u01/app/11.2.0/grid/
指定新目录:
[grid@asm ~]$ export ORACLE_HOME=/u01/app/11.2.0/grid
[grid@asm ~]$ cd $ORACLE_HOME/clone/bin
[grid@asm ~]$
perl clone.pl ORACLE_BASE=/u01/app/grid ORACLE_HOME=/u01/app/11.2.0/grid
INVENTORY_LOCATION=/u01/app/oraInventory
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/grid"
"ORACLE_HOME=/u01/app/11.2.0/grid" "INVENTORY_LOCATION=/u01/app/oraInventory"
-defaultHomeName -silent -noConfig -nowait
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 2047 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-11-
01_07-59-14AM. Please wait ...Oracle Universal Installer, Version 11.2.0.3.0
Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.
You can find the log of this install session at:
/u01/app/oraInventory/logs/cloneActions2020-11-01_07-59-14AM.log
................................................................................
.................... 100% Done.
Could not backup file /u01/app/11.2.0/grid/rootupgrade.sh to
/u01/app/11.2.0/grid/rootupgrade.sh.ouibak
Could not backup file /u01/app/11.2.0/grid/root.sh to
/u01/app/11.2.0/grid/root.sh.ouibak
Installation in progress (Sunday, November 1, 2020 7:59:30 AM CST)
........................................................................
72% Done.
Install successful
Linking in progress (Sunday, November 1, 2020 7:59:32 AM CST)
Link successful
Setup in progress (Sunday, November 1, 2020 7:59:51 AM CST)
................. 100% Done.
Setup successful
End of install phases.(Sunday, November 1, 2020 8:00:13 AM CST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
/u01/app/11.2.0/grid/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
Run the script on the local node.
The cloning of OraHome1 was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2020-11-01_07-59-14AM.log'
for more details.
日志尾部如下:
Run the script on the local node.
INFO:
*** End of Installation Page***
The cloning of OraHome1 was successful.
INFO: Checkpoint:Failed Checkpoint found returning it for
getAllFailedCheckPoints.
INFO: Checkpoint:Failed Checkpoint found returning null for
getLastFailedCheckPoint.
INFO: Checkpoint:Index file written and updated
INFO: Checkpoint:Transfer of file done from remote node
刷新目录后启动 GI
root# cd /u01/app/11.2.0/grid/crs/install
root# perl roothas.pl -patch
[grid@asm install]$ perl roothas.pl -patch
You must be logged in as root to run this script.
Log in as root and rerun this script.
2020-11-01 08:05:00: Not running as authorized user
Insufficient privileges to execute this scripts
[root@asm install]# perl roothas.pl -patch
Using configuration parameter file: ./crsconfig_params
CRS-4563: Insufficient user privileges.
CRS-4000: Command Start failed, or completed with errors.
[root@asm install]# cat /etc/oracle/olr.loc
olrconfig_loc=/u01/app/grid/11.2.0/cdata/localhost/asm.olr
crs_home=/u01/app/grid/11.2.0
[root@asm install]# ls -l /u01/app/grid/11.2.0/cdata/localhost/asm.olr
of 3
10墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜