我对如何使用一个SQL查询显示所有Oracle实例启动时间感兴趣?
router.get('/Download', function(req, res) {
var fs = require('fs')
fs.writeFile('helloworld.txt', 'helloworld');
res.download('helloworld.txt');
})
答案 0 :(得分:3)
如果是RAC数据库,则有gv $视图。这对你有用吗?
select
instance_name,
to_char(startup_time,'mm/dd/yyyy hh24:mi:ss') as startup_time ,
systimestamp - startup as uptime
from gv$instance;