发布新帖

查找

问题
· 八月 29, 2017

pButtons: WDphase - Phase of the Write Daemon- 8: Databases are being updated. What does it mean?

Caché Version String: Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2016.2.1

 

We have a mirrored Ensemble system (110,  backup and 210, primary). At one time (14:00) there is a disruption in the production. The messages are not being processed. 

Looking at the pButtons (every 10 seconds) I see the following abnormal at the WDphase


and the backup

The different values of WDphase are:

0: Idle (WD is not running)

5: WD is updating the Write Image Journal (WIJ) file.

7: WD is committing WIJ and Journal.

8: Databases are being updated.

 

Can anyone explain what the different phase of the write daemon mean, and what can be the cause that the backup site of the mirror keeps giving the WD phase 8.

PS

We have looked at the storage on server 110. We did not see any thing.

3 Comments
讨论 (3)0
登录或注册以继续
问题
· 八月 24, 2017

Automatic Run process

Hi All,
I want to run the routine automatically when the system gets login.How to do that?

7 Comments
讨论 (7)0
登录或注册以继续
文章
· 八月 23, 2017 阅读大约需 2 分钟

Light weight EXCEL download

I worked through the Community for proposals to provide end users
in an easy way with data formatted as EXCEL sheet.

There is a great article Tips & Tricks - SQL to Excel

there's an important message embedded: "EXCEL can interpret HTML tables and display them as usual"

Where's the light weight export to EXCEL ?
Good old CSP is well equipped to produce HTML tables accepted from EXCEL as input.
With modern Browsers you don't even need <head> and  <body> tags.
So the required code around your SQL result set is really slim.
And you are free to add any formatting you need either by HTML or in SQL.

The final trick to move your table from browser to EXCEL:
In the method OnPreHTTP inherited from %CSP.Page you
set %response.ContentType="application/vnd.ms-excel"

Now when you call the class with your browser you get asked to open or to save it.
Next , because the extenison is .cls you get asked for the program to open it.

And if you select EXCEL the table is ready for the user to work with it.

 

Summary:

This could be a slim solution for rater static SQL queries.
Well suited to serve a wide distributed population of users.

- No need for additional EXCEL installation on Caché server
- No need for new Caché version + license upgrades to run ZENreports
- No need for extra transport to move results to users
- No need for local installed installed software (Squirrel)
- No need for additional management of SQL access rights

Rather small size of code with simple structure

Now you will understand why I titled the article "Light Weight"

 GitHub

1 Comment
讨论 (1)4
登录或注册以继续
问题
· 八月 17, 2017

Replacing all strings of special kind with macro calls

Hello everybody.

What I have is a criteria how to select "my" strings. What I need is to replace all of them with macro calls (using the same strings as arguments) in all classes of current namespace.

I was ready to write straightforward code, but at the last moment decided to ask the community: maybe I've overlooked a smarter option?

Any comments and advices would be great appreciated.

6 Comments
讨论 (6)2
登录或注册以继续
讨论 (8)3
登录或注册以继续