Pesquisar

記事
· 2022年7月11日 2m read

ルーチンやクラスメソッドをWindowsのコマンドプロンプトから呼び出す方法

iris コマンドを使用することで実行できます。
iris コマンド(iris.exe)は、<インストールディレクトリ>\bin にインストールされています。 書式:

iris run インスタンス名 tag^routine([parameter-list]) ネームスペース名
iris run インスタンス名 ##CLASS(package.class).method([parameter-list]) ネームスペース名

インスタンス名は、管理ポータル(システム管理ポータル)の右上にある [インスタンス:] に表示されている文字列です。


実行する環境に応じて一部の文字 ^ や " をエスケープする必要があります。

Windowsの場合は、以下のようなエスケープが必要となります。

 

 

 

例: USERネームスペースで do info^test(123,"abc") を実行します。

c:\InterSystems\IRIS\bin>iris terminal IRIS info^^test(123,\"abc\") USER

 

例: USERネームスペースで do ##class(Test.Class1).test(123,"abc") を実行します。

c:\InterSystems\IRIS\bin>iris run IRIS ##class(Test.Class1).test(123,\"abc\") USER

 

【注意】

ris run 等でルーチンやクラスメソッドが呼び出せないときは、%Service_Consoleサービスの認証設定をご確認ください。
iris コマンドを使用する場合、通常のパスワード認証を行うことができません。
認証なしで実行するか、オペレーティング・システム認証を使用する必要があり、これを、%Service_Consoleの「許可された認証法」で指定しておく必要があります。[管理ポータル]>システム管理 > セキュリティ管理 > サービス > %Service_Consoleを選択

 

オペレーティング・システム認証の詳細については、関連トピックをご確認ください。

オペレーティング・システム・ベースの認証構成について

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
記事
· 2022年7月11日 3m read

InterSystems IRISをインストールする場合の最低システム要件

CPU:サポート対象OSが問題なく動作するもの

以下のページをご参考ください。

 サポート対象プラットフォーム


ディスク容量:アプリケーションの要件を除外した場合、 IRISをインストールするためには、最低1.5GB以上の空き容量が必要です。
 

ストレージの計画

 

 実際に必要となる容量は、インストーラでセットアップタイプで "カスタム(Custom)"

を選択すると、インストールコンポーネント毎にご確認いただけます。


メモリ:推奨メモリー値は、アプリケーションや物理メモリサイズによるため

一概には言えませんが、IRISの全プロセスで使用するメモリサイズは以下になります。


①プロセスパーティション * ⑤プロセス数

 +

②データベースキャッシュ

 +

③ルーチンキャッシュ

 +

④一般ヒープメモリ


計算式でのこれらのパラメータは、業務アプリケーションの特性により異なってきます。


以前に導入実績のある業務アプリケーションの場合、既存システムでどの様に設定されたかも参考にしてください。

 

 ①プロセスパーティション(プロセスあたりの最大メモリ)

   管理ポータルで設定します。既定値は 262,144(KB)です。
 

   [システム管理] > [構成 > [システム構成] > [メモリと開始設定] > [プロセスあたりの最大メモリ(KB)]
 

   メモリの計画


②データベースキャッシュ

   業務アプリケーションにて必要と思われるサイズに調整します。

   以下FAQトピックをご参照ください

データベースキャッシュおよびルーチンキャッシュの最適値

③ルーチンキャッシュ

   業務アプリケーションにて必要と思われるサイズに調整します。

   以下FAQトピックをご参照ください

データベースキャッシュおよびルーチンキャッシュの最適値

④一般ヒープメモリ

   既定値は 37,568(KB)です。

   ロックテーブルを大きくする場合など調整する必要があります。


⑤プロセス数

   業務で同時にIRIS使用するプロセス数。

   パラメータとして最大数の指定はありません。


以下もあわせて参考にしてください。
 

構成マネージャのメモリ関連設定項目について教えてください。

InterSystems製品のプロセスが使用するメモリ量を教えてください。

データベースキャッシュおよびルーチンキャッシュの最適値を設定したいです

メモリ要件の見積もり

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
記事
· 2022年7月11日 1m read

外部の Pythonファイル を Embedded Python で呼び出す方法

IRISがc:\InterSystems\IRISにインストールされているとします。

(1) a.py を C:\InterSystems\IRIS\lib\python に置きます。

a.py
 

def test():  
  print('Hello World!')

 

(2) それを IRISのクラスから実行します。
 

ClassMethod xx() [ Language = python ]
{
    import a
    a.test()
}

 

USER>do ##class(User.test).xx()
Hello World!

 

もし、a.py を別のディレクトリ C:\temp に置きたい場合は、C:\temp\ をPythonのPATHに指定する必要があります。


以下の方法があります。

 

(A)  管理ポータル>システム管理>構成>追加設定>メモリ詳細>PythonPath

の値に C:\tempを設定し、a.pyをそのディレクトリに置き、 IRISを再起動します。
 

ClassMethod xx() [ Language = python ]
{
   import a
   a.test()
}
ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
記事
· 2022年7月5日 4m read

IRIS Data to Google Big Query - InterSystems Cloud SQL via Dataflow

        

How to include IRIS Data into your Google Big Query Data Warehouse and in your Data Studio data explorations.  In this article we will be using Google Cloud Dataflow to connect to our InterSystems Cloud SQL Service  and build a job to persist the results of an IRIS query in Big Query on an interval. 

If you were lucky enough to get access to Cloud SQL at Global Summit 2022 as mentioned in "InterSystems IRIS: What's New, What's Next", it makes the example a snap, but you can pull this off with any publicly or vpc accessible listener you have provisioned instead.

 

Prerequisites

 
Provision InterSystems Cloud SQL for temporary use
 
Setup Google Cloud Platform

Google Dataflow Job
If you followed the steps above you should have the following in your inventory to execute the job to read your InterSystems IRIS data and ingest it into Google Big Query using Google Dataflow.

In the Google Cloud Console, head over to Dataflow and select "Create Job from Template"

 
This is a rather unnecessary/exhaustive illustration on how to instruct you to fill out a form with the generated pre-requisites, but it calls out the source of the components...

 

 ... to round it out, make sure you expand the bottom section and supply your credentials for IRIS.

 

For the ones who found those screenshots offensive to your intelligence, here is the alternate route to go to keep you inside your comfort zone in the CLI to run the job:

gcloud dataflow jobs run iris-2-bq-dataflow \
--gcs-location gs://dataflow-templates-us-central1/latest/Jdbc_to_BigQuery \
--region us-central1 --num-workers 2 \
--staging-location gs://iris-2-datastudio/tmp \
--parameters connectionURL=jdbc:IRIS://k8s-c5ce7068-a4244044-265532e16d-2be47d3d6962f6cc.elb.us-east-1.amazonaws.com:1972/USER,driverClassName=com.intersystems.jdbc.IRISDriver,query=SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE, SELF_REFERENCING_COLUMN_NAME, REFERENCE_GENERATION, USER_DEFINED_TYPE_CATALOG, USER_DEFINED_TYPE_SCHEMA, USER_DEFINED_TYPE_NAME, IS_INSERTABLE_INTO, IS_TYPED, CLASSNAME, DESCRIPTION, OWNER, IS_SHARDED FROM INFORMATION_SCHEMA.TABLES;,outputTable=iris-2-datastudio:irisdata.dataflowtable,driverJars=gs://iris-2-datastudio/intersystems-jdbc-3.3.0.jar,bigQueryLoadingTemporaryDirectory=gs://iris-2-datastudio/input,username=SQLAdmin,password=Testing12!

Once you have kicked off your job, you can bask in the glory a successful job run:

 
Results

Taking a look at our source data and query in InterSystems Cloud SQL...

 

... and then Inspecting the results in Big Query, it appears we do in fact, have InterSystems IRIS Data in Big Query.

 
Once we have the data in Big Query, it is trivial to include our IRIS data into Data Studio by selecting Big Query as the data source... this example below is missing some flair, but you can quickly see the IRIS data ready for manipulation in your Data Studio project.


 
 

3 Comments
ディスカッション (3)2
続けるにはログインするか新規登録を行ってください
質問
· 2022年6月18日

Documentation en français

Bonjour

J'espère être dans le bon forum. Notre entreprise-mère basée aux Etats-Unis m'a chargé de télécharger la documentation InterSystems pour la gestion des finances de notre succursale en France. Je dois avouer que j'ai du mal à m'y retrouver, mon niveau d'anglais étant médiocre. Nous travaillons dans la livraison de fleurs et notre société-mère souhaite unifier nos systèmes de reporting en utilisant InterSystems aux USA et ici en France. Existe-t-il une documentation en français pour les débutants?

Merci d'avance et meilleures messages

1 Comment
ディスカッション (1)2
続けるにはログインするか新規登録を行ってください