Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use statistics On Databases

Hi all...

 

Attempt to log into the DB using the 'Use statistics' function.

 

If only 'On Files' is checked, it will work.

0683p000009M9Oi.png

 

But I want to put the log contents in the DB.

 

So created a table called ODS_LOGS...

CREATE TABLE ODS_LOGS
(
START_TIME     TIMESTAMP    ,
VAL1           VARCHAR2(20) ,
VAL2           VARCHAR2(20) ,
VAL3           VARCHAR2(20) ,
CNT1           NUMBER       ,
PROJECT_NM1    VARCHAR2(20) ,
JOB_NM1        VARCHAR2(20) ,
VAL4           VARCHAR2(20) ,
VERSION1       NUMBER(2,1)  ,
VAL5           VARCHAR2(20) ,
VAL6           VARCHAR2(20) ,
VAL7           VARCHAR2(20) ,
VAL8           VARCHAR2(20) ,
END_TIME       TIMESTAMP    ,
VAL9           VARCHAR2(20) ,
VAL10          VARCHAR2(20) ,
VAL11          VARCHAR2(20) ,
CNT2           NUMBER       ,
PROJECT_NM2    VARCHAR2(20) ,
JOB_NM2        VARCHAR2(20) ,
VAL12          VARCHAR2(20) ,
VERSION2       NUMBER(2,1)  ,
VAL13          VARCHAR2(20) ,
VAL14          VARCHAR2(20) ,
STATUS         VARCHAR2(20) ,
SUCC_YN        VARCHAR2(20) ,
CNT3           NUMBER
)
;

 

also, create Generic schema...

0683p000009M9On.png

 

And..changed option stats_logs...

0683p000009M9Ox.png

 

But.. i got this error...

0683p000009M9NH.png

 

 

What should I do?

 

I'd appreciate your reply. 0683p000009MACn.png

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
The DB table should have the same schema as tStatCatcher component, this component has pre-defined schema.

Regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi
The DB table should have the same schema as tStatCatcher component, this component has pre-defined schema.

Regards
Shong
Anonymous
Not applicable
Author

CREATE TABLE O_JOB_LOG
(
moment            TIMESTAMP     ,
pid               VARCHAR2(20)  ,
father_pid        VARCHAR2(20)  ,
root_pid          VARCHAR2(20)  ,
system_pid        NUMBER(8)     ,
project           VARCHAR2(50)  ,
job               VARCHAR2(255) ,
job_repository_id VARCHAR2(255) ,
job_version       VARCHAR2(255) ,
context           VARCHAR2(50)  ,
origin            VARCHAR2(255) ,
message_type      VARCHAR2(255) ,
message           VARCHAR2(255) ,
duration          NUMBER(8)      
)

 

THANKS YOU!! 0683p000009MACn.png