暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

LightDB23.3新特性 Oracle模式支持spool输出日志

原创 姚崇 2023-08-14
134

从23.3开始,LightDB Oracle模式支持Oracle spool 输入日志到系统文件,下面我们来看下

lightdb@postgres=# \c test test
Password for user test: 
You are now connected to database "test" as user "test".
compatible type: oracle
test@test=# spool objects.log
test@test=# select object_name,object_type from dba_tables;
ERROR:  column "object_name" does not exist
LINE 1: select object_name,object_type from dba_tables;
               ^
test@test=# select object_name,object_type from dba_objects;
test@test=# spool off;
test@test=# exit
复制

推出之后看下系统文件

$ more objects.log
                    object_name                     |    object_type     
----------------------------------------------------+--------------------
 PG_SHOW_PLANS                                      | VIEW
 DUAL                                               | VIEW
 UTL_FILE_DIR_DIRNAME_KEY                           | INDEX
 UTL_FILE_DIR                                       | TABLE
 DB_PIPES                                           | VIEW
 PG_STATISTIC                                       | TABLE
 PG_TYPE                                            | TABLE
 LT_STAT_ACTIVITY                                   | VIEW
 PG_STAT_STATEMENTS                                 | VIEW
 SAMPLE_ACTIVITY_HISTORY_ID_SEQ                     | SEQUENCE
 DUAL                                               | VIEW
 DBA_SEQUENCES                                      | VIEW
 ALL_SEQUENCES                                      | VIEW
 USER_SEQUENCES                                     | VIEW
 SAMPLE_ACTIVITY_PROFILE_ID_SEQ                     | SEQUENCE
 DBA_SYNONYMS                                       | VIEW
 ALL_SYNONYMS                                       | VIEW
 PG_FOREIGN_TABLE                                   | TABLE
 PG_AGGREGATE_FNOID_INDEX                           | INDEX
 PG_AM_NAME_INDEX                                   | INDEX
复制
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文章被以下合辑收录

评论