升级到4.8后、SCO备份失败
适用场景
- 适用于Oracle的SnapCenter 插件(SCO) 4.8
- 升级后
问题描述
将SCO升级到4.8后、备份失败、并显示以下两条错误消息之一:
在 SC UI中为作业显示错误:
"Activity 'Discovering Oracle Database Files' failed with error: Discovery failed for object <SID> with error PL-SCO-20006: Discovery of database files failed for database <SID> on host <HOSTNAME> with error Operation Exception occured during oracle databaseconnection, reason: Unexpected Operation occured."
在中出现错误 spl_<JOBID>.log
:
DEBUG DisRes-MAE c.n.c.e.AbstractShellExecutor - EXE-00000: Executing shell command:
0:sudo /opt/NetApp/snapcenter/spl/bin/sc_command_executor oracle export SC_PWD=/opt/NetApp/snapcenter/spl/lib PATH=/oracle/<SID>/19/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ORACLE_SID=<SID>
ORACLE_HOME=/oracle/<SID>/19 TNS_ADMIN=/.../profile/oracle
LD_LIBRARY_PATH=/oracle/MAE/19/lib:/oracle/<SID>/19/lib32:/oracle/<SID>/19/bin:/oracle/<SID>/19/rdbms/lib;
"/opt/NetApp/snapcenter/spl/plugins/sco/.././../plugins/sco/bin/launch-java""com.netapp.common.remote.RemoteObjectFactoryImpl""127.0.0.1""27216""c1a6b8a039c649dc7fe5f9366390dc88"
1:export SC_PWD=/opt/NetApp/snapcenter/spl/lib PATH=/oracle/MAE/19/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ORACLE_SID=MAE ORACLE_HOME=/oracle/MAE/19 TNS_ADMIN=/usr/sap/MAE/SYS/profile/oracle LD_LIBRARY_PATH=/oracle/MAE/19/lib:/oracle/MAE/19/lib32:/oracle/MAE/19/bin:/oracle/MAE/19/rdbms/lib; /opt/NetApp/snapcenter/spl/plugins/sco/.././../plugins/sco/bin/launch-java com.netapp.common.remote.RemoteObjectFactoryImpl 127.0.0.1 27216 c1a6b8a039c649dc7fe5f9366390dc88
然后是实际错误-对于 launch-java:
DEBUG DisRes-MAE c.n.c.r.RemoteObjectFactoryFactory - Waiting for RemoteObjectFactory to be registered with GUID <UID> ...
DEBUG Execution Monitor Thread [export SC_PWD=/opt/NetApp/snapcenter/spl/lib PATH=/oracle/MAE/19/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ORACLE_SID=<ORA_SID> ORACLE_HOME=/oracle/<ORA_SID>/19 TNS_ADMIN=/.../SYS/profile/oracle LD_LIBRARY_PATH=/oracle/MAE/19/lib:/oracle/MAE/19/lib32:/oracle/MAE/19/bin:/oracle/MAE/19/rdbms/lib;
/opt/NetApp/snapcenter/spl/plugins/sco/.././../plugins/sco/bin/launch-java com.netapp.common.remote.RemoteObjectFactoryImpl 127.0.0.1 27216 <UID>]
c.n.c.e.ShellResult - EXE-00001: Shell result [0:00:00.458] (Exit Value: 1):
export: Command not found.
Error: Could not find or load main class com.netapp.common.remote.RemoteObjectFactoryImpl
ERROR DisRes-MAE c.n.c.r.RemoteObjectFactoryFactory - REMOTE-00001: Unable to connect to spawned helper process. Error: export: Command not found
运行 srvCTT时出错:
ERROR SMCore_15094PID=[3828] TID=[139] ErrorCode (10001), ErrorMessage ( Discovery failed for object
<ORA_SID> with error PL-SCO-20006: Discovery of databasefiles failed for database <ORA_SID> on host <host_name> with error
ORACLE-00300: Error executing srvctl command export LC_ALL=C;srvctl config database -d <ORA_SID>. The command returned: [-bash: srvctl:command not found].)