将 Oracle 转换为 Db2 查询
Convert Oracle to Db2 query
我正在尝试将以下 oracle 查询转换为 Db2。下面是 Oracle 查询
select stat.owner
,stat.OBJECT_NAME
,stat.STATISTIC_NAME
,stat.VALUE AcsValue
from v$segment_statistics stat
我想将其转换为 DB2 11 数据库支持的查询。上面的查询是为了找到 table 使用的频率。到目前为止,我已经尝试找到等效的元数据 tables 。我对 DB2 很陌生。任何帮助将不胜感激。
试试 MON_GET_TABLE
table 函数 https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.sql.rtn.doc/doc/r0053945.html
这将 return 诸如 table 的逻辑读取之类的事情。 https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.admin.mon.doc/doc/r0058774.html
我正在尝试将以下 oracle 查询转换为 Db2。下面是 Oracle 查询
select stat.owner
,stat.OBJECT_NAME
,stat.STATISTIC_NAME
,stat.VALUE AcsValue
from v$segment_statistics stat
我想将其转换为 DB2 11 数据库支持的查询。上面的查询是为了找到 table 使用的频率。到目前为止,我已经尝试找到等效的元数据 tables 。我对 DB2 很陌生。任何帮助将不胜感激。
试试 MON_GET_TABLE
table 函数 https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.sql.rtn.doc/doc/r0053945.html
这将 return 诸如 table 的逻辑读取之类的事情。 https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.admin.mon.doc/doc/r0058774.html