s_join=""" %s or (svr_ip = '%s' and svr_port = %s ) """%(s_join,a[0],a[1])
s_join=""" %s or (svr_ip = '%s' and svr_port = %s ) """%(s_join,a[0],a[1])
stat_ids="stat_id in (10000,10004,10005,10006,30007,30008,30009,40000,40001,40002,40003,40004,40005,40006,40007,40008,40009,40010,40011,40012,40013,50000,50001,50002,50003,50004,50005,50006,50007,50008,50009,50010,50011,60000,60002,60003,60005,130000,130001,130002,130004) "
stat_ids="stat_id in (10000,10004,10005,10006,30007,30008,30009,"\
sql2=""" select current_time(), stat.con_id, stat.svr_ip, stat.svr_port, stat.name, stat.value from gv\$sysstat stat where stat.class IN (1,4,8,16,32) and con_id = %s and (%s) """%(str(self.get_current_tenant()),stat_ids)
sql2=""" select current_time(), stat.con_id, stat.svr_ip, stat.svr_port, stat.name, stat.value from gv\$sysstat stat where stat.class IN (1,4,8,16,32,4096) and con_id = %s and (%s) """%(str(self.get_current_tenant()),stat_ids)