发布新帖

查找

文章
· 三月 5, 2021 阅读大约需 3 分钟

Using ECP across IRIS and Caché

Migration from Caché to IRIS can be quite a challenge if your code is grown over many years
and probably not so clean structured as you may like it. So you face the need to check your
migrated code against some reference data. A few samples might not be a problem,
but some hundred GB of data for testing might be.

A possible step could be to have your fresh code in IRIS but leave your huge datastore on Caché and connect both environments over ECP. I have created a demo project that gives you the opportunity to try this based on 2 Docker images with IRIS and with Caché connected over ECP.

2 Comments
讨论 (2)1
登录或注册以继续
公告
· 三月 5, 2021

How to Become a Helpful Member of Developer Community

Hi Developers!

Recently we are getting a lot of requests on how to become an active and helpful member of the InterSystems Developer Community.

The terms are very simple:

1. Answer questions

we have a lot of unanswered questions, and questions without an accepted answer. You are very welcome to share your knowledge and help other members of the community.

2. Contribute articles

Write articles that describe your experience with InterSystems technology: your solution, your know-how on development, tips and tricks on debugging, deployment, and other approaches in robust development.

There are a lot of examples of articles that became very helpful to the community.

Or translate articles to other languages on regional communities.

3. Contribute Open Exchange applications

Share your libraries, solutions, and tools on Open Exchange - via Github, Gitlab, or any other public repositories.

Please don't hesitate to ask your questions in this post and let's discuss how to make this community more and more helpful for engineers working with InterSystems technology all over the world.

17 Comments
讨论 (17)11
登录或注册以继续
问题
· 三月 3, 2021

ODBC CACHE DRIVERS FOR WINDOWS

Where can I download the Cache ODBC drivers?

Where can I download the Cache ODBC drivers for Windows?

I need to connect to a cache database by odbc but the FPTs that I have found do not work, 
could you tell me where to download the ODBC drivers

16 Comments
讨论 (16)2
登录或注册以继续
问题
· 三月 3, 2021

How to update Ensemble - Business Hosts settings (default and custom settings) through code ?

Hi ,

I have a requirement to programmatically fetch and update a Business Process Setting . It's a custom property , added in extended class .

I am trying find a sample, but no luck. 

Could any one help me ? 

3 Comments
讨论 (3)0
登录或注册以继续
文章
· 三月 2, 2021 阅读大约需 2 分钟

$ZF(-100) で実行したコマンドの結果をファイルに出力する方法

これは InterSystems FAQ サイトの記事です。
 

以下の方法で、$ZF(-100) で実行したコマンドの出力を取得することが可能です。
 

★$ZF(-100) での実行でコマンドキーワードを使用する方法:

/STDOUT や /STDERR などの便利なキーワードを指定して、$ZF(-100) でコマンドを実行することが可能です。

USER>write $zf(-100,"/SHELL/STDOUT=c:\temp\result.log/STDERR=c:\temp\error.log","net","use","\\testsrv\public","/user:testuser","password")
2
USER>!type c:\temp\result.log                                                    

USER>!type c:\temp\error.log
システム エラー 1219 が発生しました。
同じユーザーによる、サーバーまたは共有リソースへの複数のユーザー名での複数の接続
は許可されません。サーバーまたは共有リソースへの以前の接続をすべて切断してから、
再試行してください。
USER>write $zf(-100,"/SHELL/STDOUT=c:\temp\result.log/STDERR=c:\temp\err.log","netstat","-anp","tcp")
0
USER>!type "c:\temp\result.log"
アクティブな接続
 
  プロトコル  ローカル アドレス      外部アドレス           状態
  TCP         0.0.0.0:23             0.0.0.0:0              LISTENING
  TCP         0.0.0.0:80             0.0.0.0:0              LISTENING
  TCP         0.0.0.0:135            0.0.0.0:0              LISTENING
  :
USER>!type "c:\temp\err.log"
USER>

コマンドキーワードについては、以下のドキュメントをご覧ください。
$ZF(-100) で指定できる便利なキーワード
※ /STDOUT と /STDERR に同じファイルを指定した場合、両方のタイプのデータがそのファイルに書き込まれます。


★標準エラー出力(2) を 標準出力(1) へリダイレクトする方法:

以下の方法で、標準エラー出力(2) を 標準出力(1) へリダイレクトし、さらにコマンドの 標準出力 を ファイル(result.log) へ出力する方法が使用できます。

USER>Set st = $ZF(-100, "/shell", "net", "use", "\\server1\Public", "/user:name", "password", ">result.log", "2>&1")
 
USER>write st    // 戻り値が0(成功)以外の時、ログを見て原因を調査してみる
2


上記コマンドの場合、実行したネームスペースのデフォルトデータベースのフォルダに result.log が出力されます。
内容は以下のような標準出力が記録されています。

/* result.log */

システム エラー 1219 が発生しました。

同じユーザーによる、サーバーまたは共有リソースへの複数のユーザー名での複数の接続は許可されません。サーバーまたは共有リソースへの以前の接続をすべて切断してから、再試行してください。



enlightened【ご参考】
$ZF(-100) で指定できる便利なキーワード

1 Comment
讨论 (1)0
登录或注册以继续