适用于Oracle数据库的SnapCenter插件发现失败、并显示错误"java.lang.StringIndexOutOf"bandsException:string index out of range:-206.
适用场景
适用于Oracle的SnapCenter插件(SCO)
问题描述
适用于Oracle数据库发现的SnapCenter插件失败、并显示以下错误。
SPL日志:
DEBUG Execution Monitor Thread [sudo /opt/NetApp/snapcenter/spl/bin/sc_command_executor root "test -f '/etc/oracle/olr.loc' && echo true || echo false"] c.n.c.e.ShellResult - EXE-00001: Shell result [0:00:00.124] (Exit Value: 0):
/root/.bash_profile: line 13: unexpected token `newline', conditional binary operator expected
/root/.bash_profile: line 13: syntax error near `return'
/root/.bash_profile: line 13: `[[ himBH == *i* || return '
false
DEBUG qtp1756732975-21 c.n.o.c.s.d.DiscoveryService - Entering method findAllDatabaseInstances with the parameters Empty input.
DEBUG qtp1756732975-21 c.n.o.c.s.d.DiscoveryService - Completed method findAllDatabaseInstances with the return parameters Empty output.
DEBUG qtp1756732975-21 c.n.o.c.s.d.DiscoveryService - failed to complete method findAllDatabaseInstances with JVM free memory 3.3 GB and used memory 1.9 GB.
ERROR qtp1756732975-21 c.n.o.c.s.d.DiscoveryService - An exception thrown during the execution of method findAllDatabaseInstances and the exception message is String index out of range: -206.
java.lang.StringIndexOutOfBoundsException: String index out of range: -206
at java.lang.String.substring(String.java:1931)
INFO qtp1756732975-23 c.n.s.s.p.b.o.BackupOperationResource - SCO-LOG-1074: Discovered 0 databases in /etc/oratab and srvctl config command as applicable, Ensure that all database entries are available in /etc/oratab and srvctl config command as applicable.