返回首页

gbase数据、南大通用产品文档:GBase8s使用状态特征

更新日期:2024年09月11日

IfxLoStat 类存储关于智能大对象的某些统计信息,诸如大小、最后访问时间、最后修改时
间、最后状态更改,等等。下表展示您可取得的状态信息。
表 1. 智能大对象的状态信息
状态信

描述
最后访
问时间
最后访问智能大对象的时间,以秒计
仅当为智能大对象启用最后访问时间属性时,此值才可用。要获取更多信息,请
参阅 最后访问时间。
最后更
改时间
最后更改智能大对象的状态的时间,以秒计
状态更改包括元数据更改和用户数据更改(对引用数的数据更新和更改)。以从
19701 年 1 月 1 日以来的秒数来存储此系统时间。
最后修
改时间
最后修改智能大对象的时间,以秒计
修改仅包括对元数据和用户数据的更改
(数据更新)

以从 19701 年 1 月 1 日
以来的秒数来存储此系统时间。
在某些平台上,最后修改时间可能还有微秒组件,可单独从秒组件取得它。
大小
智能大对象的大小,以字节计
存储特

请参阅 使用存储特征。

GBase 8s JDBC Driver 程序员指南
南大通用数据技术股份有限公司
- 161
-
要取得对状态结构的引用,请调用 IfxSmartBlob 类中的下列方法:
IfxLoStat IfxLoGetStat(int lofd)
要取得状态信息的特别分类,请调用下表中展示的方法。
表 2. 取得状态信息的方法
状态信息
ifxLoStat 类中的方法签名
最后访问时间 int getLastAccessTime()
最后更改时间 int getLastStatusTime()
最后修改时间 int getLastModifyTimeM() - 以微秒计的时间
int getLastModifyTimeS() - 取整到秒的时间
大小
int getSize()
存储特征
ifxLobDescriptor getLobDescriptor()

函数说明
expr NOT REGEXP pat, expr NOT RLIKE pat 等价于NOT (expr REGEXP pat)。
如果表达式expr 匹配pat,返回0,否则返回1。如果expr 或pat 是NULL,那么
结果为NULL。
示例
示例1:expr 与pat 不匹配,返回1。
gbase>
SELECT NOT ('Monty!' REGEXP 'm%y%%' ) FROM dual;
+--------------------------------+
| not ('Monty!' REGEXP 'm%y%%' ) |
+--------------------------------+
|
1 |
+--------------------------------+
1 row in set
示例2:如果expr 或pat 是NULL,结果也是NULL。
gbase> SELECT NULL REGEXP 'David_', 'David!' REGEXP NULL FROM
dual;
+----------------------+-----------------------+
| NULL REGEXP 'David_' | 'David!' REGEXP NULL
|
+----------------------+-----------------------+
|
NULL |
NULL |
+----------------------+-----------------------+
1 row in set

获取帮助
模块命令行说明:
gs_dbmind component slow_query_diagnosis --help usage: [-h] -c DIRECTORY [--query
SLOW_QUERY]
[--start-time TIMESTAMP_IN_MICROSECONDS]
[--end-time TIMESTAMP_IN_MICROSECONDS] [--retention-days DAYS]
{show,clean}
Slow Query Diagnosis: Analyse the root cause of slow query positional arguments:
{show,clean}choose a functionality to perform

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
392
optional arguments:
-h, --help
show this help message and exit
-c DIRECTORY, --conf DIRECTORY
set the directory of configuration files
--query SLOW_QUERY set a slow query you want to retrieve
--start-time TIMESTAMP_IN_MICROSECONDS
set the start time of a slow SQL diagnosis result to be retrieved
--end-time TIMESTAMP_IN_MICROSECONDS
set the end time of a slow SQL diagnosis result to be retrieved
--retention-days DAYS
clear historical diagnosis results and set the maximum number of days to retain data