提交 b7258cd7 编写于 作者: S serge-rider

#3505 Oracle: sessions query running time

上级 526637ce
......@@ -415,6 +415,8 @@ meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.state.name=S
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.state.description=Wait state
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.event.name=Event
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.event.description=Resource or event for which the session is waiting
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.elapsedTime.name=Elapsed Time
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.elapsedTime.description=If the session STATUS is currently ACTIVE, then the value represents the elapsed time in seconds since the session has become active.\nIf the session STATUS is currently INACTIVE, then the value represents the elapsed time in seconds since the session has become inactive.
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.logonTime.name=Logon Time
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.logonTime.description=Time of logon
meta.org.jkiss.dbeaver.ext.oracle.model.session.OracleServerSession.serviceName.name=Service
......
......@@ -35,6 +35,7 @@ public class OracleServerSession implements DBAServerSession {
private String state;
private String sql;
private String event;
private String elapsedTime;
private Timestamp logonTime;
private String serviceName;
......@@ -52,6 +53,7 @@ public class OracleServerSession implements DBAServerSession {
this.state = JDBCUtils.safeGetString(dbResult, "STATE");
this.sql = JDBCUtils.safeGetString(dbResult, "SQL_FULLTEXT");
this.event = JDBCUtils.safeGetString(dbResult, "EVENT");
this.elapsedTime = JDBCUtils.safeGetString(dbResult, "LAST_CALL_ET");
this.logonTime = JDBCUtils.safeGetTimestamp(dbResult, "LOGON_TIME");
this.serviceName = JDBCUtils.safeGetString(dbResult, "SERVICE_NAME");
......@@ -101,13 +103,19 @@ public class OracleServerSession implements DBAServerSession {
return event;
}
@Property(category = "Session", order = 7)
@Property(category = "Session", viewable = true, order = 7)
public String getElapsedTime()
{
return elapsedTime;
}
@Property(category = "Session", order = 8)
public Timestamp getLogonTime()
{
return logonTime;
}
@Property(category = "Session", order = 8)
@Property(category = "Session", order = 9)
public String getServiceName()
{
return serviceName;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册