我想知道在不连接数据库的情况下查找数据库名的不同方法,既不使用sqlplus也不使用srvctl。 srvctl status database -d pstest Instancepstest2 is running on node2
但是,如何使<db_name>在不使用srvctl或sqlplus的情况下在srv
.*** password123 "srvctl status database -d mydb" spawn ssh oracle@192.168.***.*** {srvctl***'s password: 但是,当我没有将命令作为函数的参数传递时,它可以很好地工作:function#Execute the command and capture the output
EXPECT