查找

问题
· 七月 15, 2024

Setting EnsLib.SQL.Snapshot = "" vs EnsLib.SQL.Snapshot.Clean()

In tracking down some of our Orphaned message issues, I was wondering if setting our EnsLib.SQL.Snapshot variable equal to "" was the same as calling the .Clean() method on EnsLib.SQL.Snapshot? Are they the same?

should I be possibly using ##class(EnsLib.SQL.Snapshot).%Delete() instead?

2 Comments
讨论 (2)1
登录或注册以继续
问题
· 七月 15, 2024

How to enable multiple branches for different users in Git for Shared Development Environments on IRIS?

We have installed IRIS on a separate server that we access remotely and copied all code and data to it so we can test IRIS before we do the move. We develop directly on the server. We Use VsCode to code but sometimes we might need to go to cache studio for some tasks.

We were interested in git for Shared Development Environments, we have installed it on a server with IRIS 2021 and configured it by following the instructions and videos of InterSystems summits we found online. We initialised a local repository on the server, added some files to start testing branches.

While testing the Git for Shared Development Environments we noticed that the settings for namespace are the same for all users and settings for user are different for each user, but setting for a user are only the username and email. We also noted the when a user checks out a branch it is not checked out for himself only but also for the other users accessing the server. Any changes done from any user are all on the same branch. We cannot find a way for different users to work on multiple branches simultaneously. 

Could you kindly give us an indication of what we are missing?

4 Comments
讨论 (4)4
登录或注册以继续
问题
· 七月 10, 2024

Error iniciar Docker IRIS Community

Buenas tardes,

Estoy intentando arrancar una instancia de la Community Edition con Docker y me da el siguiente error. 

He probado a descargar directamente el template de object-script del OpenExchange, pero me pasa siempre una de estas dos cosas:

 

1 - Se queda iniciando eternamente

[+] Building 147.0s (7/8)                                                                                                                                                                          docker:desktop-linux
 => [iris internal] load build definition from Dockerfile                                                                                                                                                          0.1s
 => => transferring dockerfile: 787B                                                                                                                                                                               0.0s
 => [iris internal] load metadata for docker.io/intersystemsdc/iris-community:latest                                                                                                                               1.1s
 => [iris internal] load .dockerignore                                                                                                                                                                             0.1s
 => => transferring context: 62B                                                                                                                                                                                   0.0s
 => CACHED [iris stage-0 1/4] FROM docker.io/intersystemsdc/iris-community:latest@sha256:9c8422ae510320d23bf9c67f600c0b8bfcd3fc9707f0a0d92e9ef9db5a08bd86                                                          0.0s
 => [iris internal] load build context                                                                                                                                                                             0.1s
 => => transferring context: 19.13kB                                                                                                                                                                               0.1s
 => [iris stage-0 2/4] WORKDIR /home/irisowner/dev                                                                                                                                                                 0.2s
 => [iris stage-0 3/4] COPY .iris_init /home/irisowner/.iris_init                                                                                                                                                  0.0s
 => [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test obj  145.5s
 => => # Using 'iris.cpf' configuration file                                                                                                                                                                           
 => => # Starting Control Process                                                                                                                                                                                      
 => => # Global buffer setting requires attention.  Auto-selected 25% of total memory.                                                                                                                                 
 => => # Allocated 1536MB shared memory                                                                                                                                                                                
 => => # 978MB global buffers, 97MB routine buffers   

 

O me devuelve este error:

Ejecutando tarea: docker compose -f "docker-compose.yml" up -d --build 

[+] Building 1.9s (8/8) FINISHED                                                                                                                                                                   docker:desktop-linux
 => [iris internal] load build definition from Dockerfile                                                                                                                                                          0.0s
 => => transferring dockerfile: 787B                                                                                                                                                                               0.0s
 => [iris internal] load metadata for docker.io/intersystemsdc/iris-community:latest                                                                                                                               0.9s
 => [iris internal] load .dockerignore                                                                                                                                                                             0.0s
 => => transferring context: 62B                                                                                                                                                                                   0.0s
 => [iris stage-0 1/4] FROM docker.io/intersystemsdc/iris-community:latest@sha256:9c8422ae510320d23bf9c67f600c0b8bfcd3fc9707f0a0d92e9ef9db5a08bd86                                                                 0.0s
 => [iris internal] load build context                                                                                                                                                                             0.0s
 => => transferring context: 1.52kB                                                                                                                                                                                0.0s
 => CACHED [iris stage-0 2/4] WORKDIR /home/irisowner/dev                                                                                                                                                          0.0s
 => CACHED [iris stage-0 3/4] COPY .iris_init /home/irisowner/.iris_init                                                                                                                                           0.0s
 => ERROR [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test  0.9s
------                                                                                                                                                                                                                  
 > [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test objectscript-template -v -only",1,1)") &&     iris stop IRIS quietly:                                                                                                                                                                
0.209 Using 'iris.cpf' configuration file                                                                                                                                                                               
0.423
0.499 Starting Control Process                                                                                                                                                                                          
0.499 Global buffer setting requires attention.  Auto-selected 25% of total memory.
0.499 Allocated 1536MB shared memory
0.499 978MB global buffers, 97MB routine buffers
0.818 This copy of InterSystems IRIS has been licensed for use exclusively by:
0.818 InterSystems IRIS Community
0.818 Copyright (c) 1986-2024 by InterSystems Corporation
0.818 Any other use is a violation of your license agreement
0.820 Starting IRIS
0.820 Unexpected failure: The target process received a termination signal 4.
0.820 Operation aborted.
------
failed to solve: process "/bin/sh -c iris start IRIS && \tiris session IRIS < iris.script &&     ([ $TESTS -eq 0 ] || iris session iris -U $NAMESPACE \"##class(%ZPM.PackageManager).Shell(\\\"test $MODULE -v -only\\\",1,1)\") &&     iris stop IRIS quietly" did not complete successfully: exit code: 1
 *  El proceso del terminal "/bin/zsh '-l', '-c', 'docker compose -f "docker-compose.yml" up -d --build'" finalizó con el código de salida 17.
 *  Las tareas reutilizarán el terminal, presione cualquier tecla para cerrarlo. 

 

Estoy usando Docker Desktop para MacOS versión 4.31.0.

El repositorio que me he clonado del OpenExchange es este:

https://github.com/intersystems-community/objectscript-docker-template

https://openexchange.intersystems.com/package/objectscript-docker-template

 

¿Alguna idea de porque no puede arrancar?

Gracias!

3 Comments
讨论 (3)2
登录或注册以继续
文章
· 七月 10, 2024 阅读大约需 5 分钟

IRISでシャドウイングの代わりにミラーリングを構成する方法-プログラム編

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

こちらの記事では、「IRISでシャドウイングの代わりにミラーリングを構成する方法」を紹介しました。

今回は、「プログラムでシャドウイングの代わりにミラーリングを構成する方法(Windows版)」を紹介します。


【今回のサンプル・ミラー構成について】

  正サーバ(ミラー・プライマリ) 副サーバ(ミラー・非同期)
ミラー名 MIRRORSET MIRRORSET
ミラーメンバ名 MACHINEA MACHINEC
IPアドレス 35.77.84.159 54.248.39.237


では、ミラーの構成手順をご紹介します。手順は以下になります。
 

<ミラーリングのプライマリ設定>     // MACHINEA(正サーバ)

1. ISCAgentの自動起動設定および起動         ※Windowsコマンドプロンプトで実行

C:\Users\Administrator>sc config ISCAgent start=auto
C:\Users\Administrator>sc start ISCAgent

 

2. [システム管理] > [構成] > [ミラーサービスの有効化]     ※IRISターミナルで実行

zn "%SYS"
set status=##class(Security.Services).Get("%Service_Mirror", .svcProps)
set svcProps("Enabled") = 1
set status=##class(Security.Services).Modify("%Service_Mirror", .svcProps)

 

3. [システム管理] > [構成] > [ミラーの作成]     ※IRISターミナルで実行

zn "%SYS"
set MirrorSetName="MIRRORSET"
set SystemName = "MIRRORA"     // 任意で設定。設定しない場合、既定で$sysytem 変数の内容を利用(例:<デバイス名>/IRIS)
set MirrorInfo("UseSSL") = 0
set MirrorInfo("ECPAddress") = "xxx.xxx.xxx.xxx"      // this is the SuperServer Address, default value is result of $System.INetInfo.LocalHostName().
set sc = ##class(SYS.Mirror).CreateNewMirrorSet(MirrorSetName, SystemName, .MirrorInfo)
write $system.Mirror.GetMemberType()
// (出力) Failover
write $system.Mirror.GetStatus()
// (出力) PRIMARY、TRANSITIONの場合は少し待って再度実行

 

4. ローカルデータベースの作成(ミラー属性の追加)     ※IRISターミナルで実行

zn "%SYS"
/// ローカルデータベースの作成
Set Directory="c:\intersystems\iris\mgr\mirrordb\"
Set x=$ZF(-100, "/shell", "mkdir", Directory)
Set db=##Class(SYS.Database).%New()
Set db.Directory=Directory
Set status=db.%Save()
Set DBName="MIRRORDB"
Set status=##class(Config.Configuration).AddDatabase(DBName,Directory)
Set NSName=DBName
Set status=##class(Config.Configuration).AddNamespace(NSName,DBName)

/// ミラー属性の追加(プライマリフェイルオーバーメンバのみ)
set status=##class(SYS.Mirror).AddDatabase(Directory)
set db=##Class(SYS.Database).%OpenId(Directory)
write db.Mirrored
// (出力) 1           ; Mirror DB の場合1
kill

 

<ミラーリングのDR非同期設定>     // MACHINEC(副サーバ)

1. ISCAgentの自動起動設定および起動         ※Windowsコマンドプロンプトで実行

C:\Users\Administrator>sc config ISCAgent start=auto
C:\Users\Administrator>sc start ISCAgent


2. ミラーサービスの有効化
 *[システム管理] > [構成] > [ミラーサービスの有効化]     ※IRISターミナルで実行

zn "%SYS"
set status=##class(Security.Services).Get("%Service_Mirror", .svcProps)
set svcProps("Enabled") = 1
set status=##class(Security.Services).Modify("%Service_Mirror", .svcProps)


3. 非同期としてミラーに参加
 *[システム管理] > [構成] > [非同期として参加]     ※IRISターミナルで実行

zn "%SYS"
set MirrorSetName="MIRRORSET"
set InstanceName="IRIS"            // primary instanace name
set AgentAddress="xxx.xxx.xxx.xxx" // primary member DNS name or IPaddress
set AsyncMemberType=0              // DR:0, Reporting R only:1, Reporting R/W:2
set SystemName = "MIRRORC"         // 任意で設定。設定しない場合、既定で$sysytem 変数の内容を利用
set LocalInfo("ECPAddress") = "yyy.yyy.yyy.yyy" // this is the SuperServer Address, default value is result of $System.INetInfo.LocalHostName().
set status=##class(SYS.Mirror).JoinMirrorAsAsyncMember(MirrorSetName,SystemName  ,InstanceName,AgentAddress,,AsyncMemberType,.LocalInfo)
write $system.Mirror.GetMemberType()
// (出力) Disaster Recovery
write $system.Mirror.GetStatus()
// (出力) CONNECTED、TRANSITIONの場合は少し待って再度実行


4. ミラーデータベースの準備

非同期の副サーバ:MACHINEC に、正サーバ:MACHINEA のバックアップファイルをリストアします。

【補足】
データベースファイル(IRIS.DAT)のコピーによるバックアップの場合は(=正サーバで Backup.Generalクラスの ExternalFreeze()/ExternalThaw() を利用してバックアップを取っている場合)、非同期データベースをディスマンとした状態でデータベースファイル(IRIS.DAT)を置換します。

※ローカルデータベースの作成手順は、正サーバ:MACHINEAと同じです。
  (4の「ローカルデータベースの作成」、ミラー属性の追加 以外を行います)

※外部/オンラインバックアップ・リストアについては、以下の記事で詳細手順を説明していますので、参考になさってください。
外部バックアップについて
オンラインバックアップについて


5. ミラーモニターでのジャーナルの有効化、キャッチアップ     ※IRISターミナルで実行

zn "%SYS"
set Directory="c:\intersystems\iris\mgr\mirrordb\"
set status=##class(SYS.Mirror).ActivateMirroredDatabase(Directory)  // 有効化
set db=##class(SYS.Database).%OpenId(Directory)
set sfn= db.SFN  // sfn system file number データベーステーブル(内部情報)内の番号
kill db
set status=##class(SYS.Mirror).CatchupDB($lb(sfn))  // キャッチアップ
write status     // 1 でキャッチアップ成功。それ以外の場合は write $SYSTEM.Status.DisplayError(status) でエラーの内容を確認


6. 管理ポータルで、キャッチアップしたことを確認(こちらで構成は終了です)
 *[システムオペレーション] > [ミラーモニタ]

 
 

各種設定の詳細は以下のドキュメントをご覧ください。
Security.Services
SYS.Mirror
$SYSTEM.Mirror


enlightened【ご参考】
Cache Mirroring 101:簡単なガイドとよくある質問  
ミラーリングの機能について
ミラージャーナルファイルの削除のタイミングと要件
IRISでシャドウイングの代わりにミラーリングを構成する方法

讨论 (0)0
登录或注册以继续
InterSystems 官方
· 七月 9, 2024

InterSystems Reports version 24.1 Release Announcement

InterSystems Reports version 24.1 is now available from the InterSystems Software Distribution site in the Components section.  The software is labeled InterSystems Reports Designer and InterSystems Reports Server and is available for Mac OSX, Windows and Linux operating systems.  

This new release brings along some great enhancements from our partner, insightsoftware.  InterSystems Reports 24.1 is powered by Logi Report Version 24.1SP2 and includes:

  • Add external files as attachments to the labels and fields (including DBFields, formula fields, parameter fields, summary fields, and special fields) to your report.  For more information, go to this link.
  • Support for common HTML tags when rendering reports in Design mode.
  • Additional capabilities in Page Report Studio to allow for more flexibility when editing reports on the Reports Server

For more information about these features and others, see the release notes available from insightsoftware.

Note that the InterSystems Reports 24.1 installation requires JDK version 11 or 17 for the installation to execute.  Please upgrade if you are using JDK 8 prior to the InterSystems Reports installation.

For more information about InterSystems Reports, see the InterSystems documentation and learning services  content.

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