清除过滤器
文章
Claire Zheng · 十一月 8, 2021
快速了解InterSystems客户服务理念,以及InterSystems TrakCare、HealthShare、IRIS数据平台的最新产品动态!
文章
Jingwei Wang · 九月 6, 2022
在Windows中,InterSystems IRIS 会将Python引擎一起安装在安装目录中,可以将Python的代码在InterSystems IRIS内核中运行,允许Python代码与ObjectScript代码混合运行,以获得最佳开发性能。一般基于UNIX的操作系统会自带一个Python,所以不会随InterSystems IRIS安装包自动安装Python引擎。
在InterSystems IRIS 2021.2 以上的版本中才支持Embedded Python,其余版本不支持使用Embedded Python
步骤 - Windows
在Microsoft Windows 上安装InterSystems IRIS 2022.2版本
Python 引擎同InterSystems IRIS 安装包安装在C:\InterSystems\IRISHealth\lib\python 文件夹下(如果使用默认安装路径)。
在C:\InterSystems\IRISHealth\lib\python 文件夹下,查看Python的版本,版本应为Python 3.9.5
C:\InterSystems\IRISHealth\lib\python>python --version
使用pip下载pandas库,其中InterSystems\IRIS\mgr\python路径根据安装路径进行更改。(其他python库,也按照此方法下载)
C:\InterSystems\IRISHealth\bin>irispip install --target C:\InterSystems\IRIS\mgr\python pandas
将Data.Titanic数据导入InterSystems IRIS,或者创建一个其它的表,然后插入任何数据。
使用InterSystems IRIS Studio创建一个Sample.EmbeddedPython类,其中Data.Titanic 可以改为任意你自己创建好的表。[ Language = python ]表示此方法为一个Python方法,里面使用的是Python开发语言。
/// Embedded Python examples from summer 2022
Class Sample.EmbeddedPython Extends %RegisteredObject
{
ClassMethod dfexample() As %Status
{
set st = ..CreateDataFrame("Name, Super, TimeCreated")
}
// Execute a SQL query from Python and import it into a pandas dataframe
ClassMethod CreateDataFrame(myfields As %String) As %Numeric [ Language = python ]
{
import iris
import pandas as pd
#; works with all IRIS installs
#; rs = iris.sql.exec("SELECT " + myfields + " FROM %Dictionary.ClassDefinition WHERE Name %STARTSWITH '%Net.'")
#; works with Titanic sample data
rs = iris.sql.exec("SELECT * FROM Data.Titanic")
df = rs.dataframe()
print(df.describe())
return True
}
}
在InterSystems IRIS Terminal执行,即可通过Python查看Data.Titanic 表中所有的数据。
do ##class(Sample.EmbeddedPython).dfexample()
步骤 - UNIX
在UNIX操作系统上安装InterSystems IRIS 2022.2版本
一般基于UNIX的操作系统会自带一个Python, 也可以按照下列方式重新安装Python。
macOS: Install Python 3.9 using Homebrew (https://formulae.brew.sh/formula/python@3.9Opens in a new tab)
Ubuntu: apt-get install python3
Red Hat Enterprise Linux or Oracle Linux: yum install python3
SUSE: zypper install python3
使用pip下载pandas库,其中InterSystems\IRIS\mgr\python路径根据安装路径进行更改。(其他python库,也按照此方法下载)
$ pip3 install --target /InterSystems/IRIS/mgr/python numpy
将Data.Titanic数据导入InterSystems IRIS,或者创建一个其它的表,然后插入任何数据。
使用InterSystems IRIS Studio创建一个Sample.EmbeddedPython类,其中Data.Titanic 可以改为任意你自己创建好的表。[ Language = python ]表示此方法为一个Python方法,里面使用的是Python开发语言。
/// Embedded Python examples from summer 2022
Class Sample.EmbeddedPython Extends %RegisteredObject
{
ClassMethod dfexample() As %Status
{
set st = ..CreateDataFrame("Name, Super, TimeCreated")
}
// Execute a SQL query from Python and import it into a pandas dataframe
ClassMethod CreateDataFrame(myfields As %String) As %Numeric [ Language = python ]
{
import iris
import pandas as pd
#; works with all IRIS installs
#; rs = iris.sql.exec("SELECT " + myfields + " FROM %Dictionary.ClassDefinition WHERE Name %STARTSWITH '%Net.'")
#; works with Titanic sample data
rs = iris.sql.exec("SELECT * FROM Data.Titanic")
df = rs.dataframe()
print(df.describe())
return True
}
}
在InterSystems IRIS Terminal执行,即可通过Python查看Data.Titanic 表中所有的数据。
do ##class(Sample.EmbeddedPython).dfexample()
注意事项
如果你得到一个 "Failed to load python " 或者python3 distinct from irispython not found: No such file or directory的错误,这意味着你要么没有安装Python,要么在你的系统上安装了一个其他的Python版本。请通过上述方式,安装Python。
为了防止运行嵌入式Python时出现IRIS_ACCESSDENIED错误,请启用%Service_Callin。在管理门户中,进入系统管理 > 安全 > 服务,选择 %Service_CallIn,并选中已启用的服务框。
在基于 UNIX 的系统上,你需要用 pip3 命令来安装 Python 包。如果你还没有安装 pip3,用你系统的软件包管理器安装 python3-pip 包。
公告
Claire Zheng · 三月 12, 2021
亲爱的社区开发者们,
北京时间3月19日下午14:00-16:00,我们将举办一次线上直播,聚焦InterSystems 数据平台与WRC服务,为您答疑解惑!今天隆重向大家介绍此次直播的主讲人!
主讲人:刘皆良
演讲主题:告诉你从Caché数据库升级到InterSystems IRIS数据平台的N个理由
本次演讲将分别从数据引擎的性能提升、互操作性的支持提升以及IntegratedML(自动化机器学习)、API全生命周期管理器等全新应用,来全方位多维度阐述从Caché数据库升级到InterSystems IRIS数据平台N个理由。
主讲人:杨乐乐
演讲主题:InterSystems全球响应中心服务介绍
通过演讲您将了解到InterSystems全球响应中心(Worldwide Response Center)提供的全面服务以及独特之处,更重要的是,作为InterSystems用户,您将如何获取快速响应、并高效得到您想要的技术支持服务!
欢迎点击进入直播!
公告
Claire Zheng · 四月 27, 2021
亲爱的社区开发者们:
InterSystems开发者工具编程大赛 顺利结束. 感谢大家对激动人心的编码马拉松的支持参与!
是时候宣布此次竞赛优胜者啦!
掌声送给以下参赛者和他们贡献的优秀应用!
🏆 专家提名奖(Experts Nomination)- 获奖者由我们特别挑选的专家团选出:
🥇 第一名,奖金$4,000 ,项目 Server Manager for VSCode ,提交者 @John.Murray
🥈 并列第二名,奖金 $1,500 ,项目 Config-API ,提交者 @Lorenzo.Scalese
🥈 并列第二名,奖金 $1,500 ,项目 zpm-explorer ,提交者 @Henrique.GonçalvesDias 和 @José.Pereira
🏆 社区提名奖(Community Nomination) - 获得总投票数最多的应用:
🥇 第一名,奖金 $750 ,项目 Server Manager for VSCode ,提交者 @John.Murray
🥈 第二名,奖金 $500 ,项目 zpm-explorer ,提交者 @Henrique.GonçalvesDias and @José.Pereira
🥉 第三名,奖金 $250 ,项目 Config-API ,提交者 @Lorenzo.Scalese
恭喜所有获奖者和参赛者!
感谢大家对本次大赛的关注和在本次大赛中付出的努力!
下一场竞赛是什么时候呢?
我们即将发布最新竞赛信息,敬请期待!
公告
Claire Zheng · 一月 30, 2023
亲爱的开发者们!是时候公布2022 年 InterSystems 开发者社区杰出贡献者了🎉
我们很高兴为所有社区站点(英文、西文、葡语、日文、中文和法语)中最活跃的贡献者提供奖励,包括:
顶级作者——热门作者;
顶级专家——InterSystems专家;
顶级舆论制造者——意见领袖;
还有一个最新提名......年度突破奖!
在我们分享最好的之前,我们想介绍一个令人兴奋的新徽章——年度突破奖。这是一个从今年开始并为我们社区的发展做出最大贡献的人。
让我们共同见证2022年的社区名人墙,用热烈的掌声向大家致意! 👏🏼
徽章名称
优胜者(来自社区)
优胜者(来自InterSystems)
提名:年度突破奖
授予在 2022 年开始做出贡献并在 2022 年拥有最多帖子、点赞、翻译和观看次数的成员。
2022年度突破奖
@Lucas.Enard2487
@Smythe.Smythee
@Mark.OReilly
–
提名:InterSystems 热门作者
授予其文章在 2022 年获得最多浏览量的作者。
第一名:2022 金牌热门作者
@Yuri Marx
@Toshihiko Minamoto
第二名:2022 银牌热门作者
@Lucas.Enard2487
@Michael Lei
第三名:2022 青铜热门作者
@姚 鑫
@Evgeny Shvarov
4 - 10 名:2022 热门作者
@Muhammad Waseem
@Evgeniy Potapov
@Robert Cemper
@José Roberto Pereira
@Lorenzo Scalese
@Iryna Mykhailova
@Dmitry Maslennikov
@Guillaume Rongier
@Mihoko Iijima
@Eduard Lebedyuk
@Qiao Peng
@Alberto Fuentes
@Megumi Kakechi
@Ricardo Paiva
提名:InterSystems 专家
授予在 2022 年获得最多接受答案的作者。
第一名:2022 金牌专家
@Robert Cemper
@Eduard Lebedyuk
第二名:2022 银牌专家
@Julius Kavay
@Michael Lei
第三名:2022 铜牌专家
@Vitaliy Serdtsev
@Alexander Koblov
4 - 10 名:2022 社区专家
@Dmitry Maslennikov
@Jeffrey Drumm
@David Hockenbroch
@Cristiano Silva
@John Murray
@Yaron Munz
@Julian Matthews
@Vic Sun
@Marc Mundt
@Timothy Leavitt
@Guillaume Rongier
@Alex Woodhead
@Ben Spead
@Evgeny Shvarov
提名:InterSystems 意见领袖
授予在 2022 年帖子和答案获得最高赞数的作者。
第一名:2022 金牌意见领袖
@Yuri Marx
@Angelo Bruno Braga
第二名:2022 银牌意见领袖
@Robert Cemper
@Eduard Lebedyuk
第三名:2022 铜牌意见领袖
@Dmitry Maslennikov
@Guillaume Rongier
4 - 10 名:2022 社区意见领袖
@王喆
@Muhammad Waseem
@Lorenzo Scalese
@姚 鑫
@Lucas Enard
@Kurro Lopez
@Julius Kavay
@Evgeny Shvarov
@Ben Spead
@Rochael Ribeiro
@Timothy Leavitt
@Bob Kuszewski
@Danusa Calixto
@Raj Singh
热烈祝贺以上优胜者!感谢你们在 2022 年为 InterSystems 开发者社区做出的巨大贡献!
欢迎参与我们的年度调查,帮助我们变得更好:
👉🏼 InterSystems 开发者社区年度调研(2022) 👈🏼 Congratulations to @姚 鑫 @王喆 @Michael Lei @Qiao Peng
文章
Claire Zheng · 四月 7, 2022
众所周知,InterSystems IRIS的产品设计理念源于互操作性(Interoperable)、稳定性(Reliable)、直观(Intuitive)、可扩展性(Scalable),在云时代,InterSystems IRIS的云上操作与本地一样便捷,令用户体验有了明显提升,除此之外,为了更高效地对InterSystems IRIS进行配置,我们还提供了哪些新特性?为了便捷地进行数据迁移,InterSystems IRIS最新版本提供了哪些解决方案?点击查看视频,或浏览文字版。
马浩 @Hao.Ma (老马 ):
我想介绍一下杨乐乐(Ida),她是我们资深的WRC(全球响应中心)人员,几乎所有我们现有客户提出的技术问题都会汇集到WRC中,那么Ida,关于如何为客户提供更好的开发体验,有什么好的内容跟我们分享吗?
杨乐乐 @Ida.Yang (Ida):
大家好,我是杨乐乐,很高兴和大家分享这一主题。我先给大家介绍一下InterSystems IRIS的产品发布与部署。InterSystems IRIS 的产品发布主要有两条线,主版本和持续交付(CD,Continuous Delivery)版本,其中主版本一年发布一次,主版本的发布包括安装包和容器映像两种形式,比如2021.1.0;持续交付版本一个季度发布一次,仅仅会以容器映像的形式发布,比如2020.2.0、2020.3.0、2020.4.0。
在Docker容器中部署InterSystems IRIS®是灵活的、高度可复用的,并且非常适合公共云平台。容器将代码和数据干净地分开,并支持持续集成CI/持续交付CD和DevOps,可以更快地将产品的改进推向市场,我们的季度发布版本正是为了助力客户加速这一过程。
为了更高效地对InterSystems IRIS进行配置,我们还提供配置合并功能,这个功能可以让您在一次操作中对InterSystems IRIS实例的配置做任意多的修改。实现方式也十分直接明了,您只需在一个声明性的配置合并文件中声明配置信息,无论是在实例初始部署时还是以后的修改配置,都可将声明中的配置信息应用于实例。配置合并可以很容易地用于从同一个容器映像或工具包中自动部署具有不同配置的多个实例,以及同时重新配置多个运行中的实例,实现集群或其他多实例部署场景下的的自动重新配置。
除了针对实例的配置合并,InterSystems IRIS还提供配备非常直观的云管理器,InterSystems Cloud Manager(ICM),通过ICM我们可以直接配置公共或私有云的基础设施并在其上部署服务,它为InterSystems产品的容器化部署带来了自动化和基础设施即代码(IaC)的所有优势。通过将API编入可共享和版本化的声明性配置文件,ICM让你安全、可预测地持续创建、修改和改进生产基础设施及服务。
ICM现在支持的基础设施即服务(IaaS)公共云平台包括谷歌云、亚马逊AWS、Microsoft Azure和腾讯云,当然您也可以在您的私有VMware云中轻松配置和部署InterSystems IRIS。除此之外ICM也支持您在现有的基础设施上进行部署。
InterSystems IRIS提供的另外一个对容器化的支持是InterSystems Kubernetes Operator(IKO),众所周知,Kubernetes是一个开源的协调引擎,用于自动部署、扩展和管理容器化工作。IKO通过对Kubernetes的扩展,支持在任何Kubernetes平台上为InterSystems IRIS®部署集群、分布式缓存集群以及独立实例,包括部署时可以选择是否配置我们的高可用性镜像。同时,IKO还增加了特定的集群管理功能,比如它实现了向集群添加节点的自动化等等。
吕正之 @Louis.Lu (Louis):
云确实是一种趋势,很高兴听到InterSystems对于云支持特性的相关总结,对于云上的操作可以和在本地操作一样方便,突出了一个自动化和便捷性的特点,这对客户体验是一个明显的提升。
杨乐乐 @Ida.Yang(Ida):
确实是这样。
除了以上对云平台、容器化支持的内容,我还想跟大家分享两个新特性。
第一个是InterSystems IRIS现在也可部署于基于ARM架构的平台,包括完整的安装版和容器版。通过对ARM架构的支持,客户对于平台的选择可以更加灵活,能够将他们的应用程序部署到具有成本效益的硬件平台上,包括物理平台和云平台。
另外一个是与客户日常运维相关的一个更新,同时这个更新也是对于从Caché、Ensemble就存在的一个旧有问题的答复。相对于传统关系型数据库以表格行和列的方式储存,IRIS的前身Caché采取的是紧密型的存储方式,这样的好处是,同样的数据,Caché所使用的存储空间会减少30%-40%。但是另一个方面Caché为了保证数据的高速写入以及数据的一致性等问题,采用了多段写入的方式,这样一来就会产生很多记录数据库操作的日志,也就是Journal日志,特别是在业务高峰期,或者我们在大批量处理历史数据的时候,Journal日志所在的磁盘空间会长得非常快。同时另外一方面随着越来越多文档数据、流数据的保存,这一部分格式的数据在所有数据中的比例也越来越大。为了解决上面的问题,节约空间占用,InterSystems IRIS即将推出的下一个版本中,会加入对Journal日志以及流数据压缩算法的优化,使用优化后的压缩算法磁盘所占空间将会缩减30%,其中XML和其他文档类型的压缩率甚至能够高达80%。
吕正之 @Louis.Lu (Louis):
真不错,日志所占磁盘空间的快速增长确实是很多客户关心的问题,很高兴现在我们在新的版本中做出了这么大的改进。这让我想到了另一个问题,也是很多客户关心的,就是数据迁移,不管是从其他的数据库或者是CSV文件中如何快速方便的将数据迁移到InterSystems IRIS,有什么好的方式推荐吗?
杨乐乐 @Ida.Yang(Ida):
是的,数据迁移也是客户日常会碰到的挑战。现在好消息是,在最新版本中我们加入了Data Loader的功能,它可以方便快捷地从CSV文件或通过JDBC加载源数据到InterSystems IRIS SQL表中。它可以使用类似于SQL语句中的INSERT语句那样,以COLUMNS和VALUES子句的方式来完善该命令,以适用更多的应用场景,这很类似于前面IntegratedML中可以使用USING子句。
吕正之 @Louis.Lu (Louis):
嗯,真高兴我们可以在InterSystems IRIS的下一个版本中看到这么多好的功能,所有的这些功能都是为了更好提升客户的开发、使用感受。
大家都知道我们的IRIS是由互操作性(Interoperable)、稳定性(Reliable)、直观(Intuitive)、可扩展性(Scalable)四个单词首字母的缩写构成,这代表了IRIS的四个主要特点和核心设计理念,但同时在我们内部还有另一个缩写,也代表了我们的设计初衷,这就是It Really Is Simple,也就是“它真的很简单”的意思。我们尽可能将构建一个富数据应用所需的所有工具汇集到一个平台中,不需要开发者寻找适合数据存储、数据处理、业务流程编辑、数据分析等不同部分的不同技术框架,省去了不同的知识堆栈、异构系统集成、多开发调试环境切换的烦恼,产品根据市场技术发展、客户需求等不断做出调整与更新,但变化不离其宗—— 它真的很简单(It Really Is Simple)。
好了,这次我们的分享就到这里,再次感谢各位的观看。
文章
Michael Lei · 四月 25, 2022
Kong提供了一个开源的配置管理工具(用Go语言编写),称为decK(代表声明式Kong)
通过deck ping检查deck是否能识别你的Kong Gateway安装
deck ping
Successfully connected to Kong!
Kong version: 2.3.3.2-enterprise-edition
通过deck dump把 Kong Gateway配置倒出到 "kong.yaml" 文件
deck dump
修改 kong.yaml以后通过deck diff 通过把区别显示出来
deck diff
updating service alerts {
"connect_timeout": 60000,
- "host": "172.24.156.176",
+ "host": "192.10.10.18",
"id": "3bdd7db4-0b75-4148-93b3-2ff11e961f64",
"name": "alerts",
"path": "/alerts",
"port": 50200,
"protocol": "http",
"read_timeout": 60000,
"retries": 5,
"write_timeout": 60000
}
Summary:
Created: 0
Updated: 1
Deleted: 0
通过 deck sync应用这些变化
deck sync
updating service alerts {
"connect_timeout": 60000,
- "host": "172.24.156.176",
+ "host": "192.10.10.18",
"id": "3bdd7db4-0b75-4148-93b3-2ff11e961f64",
"name": "alerts",
"path": "/alerts",
"port": 50200,
"protocol": "http",
"read_timeout": 60000,
"retries": 5,
"write_timeout": 60000
}
Summary:
Created: 0
Updated: 1
Deleted: 0
deck sync -s workspace1.yaml --workspace workspace1
deck sync -s workspace2.yaml --workspace workspace2
更多信息 :
https://docs.konghq.com/deck/1.11.x/guides/getting-started/
https://docs.konghq.com/deck/1.11.x/guides/best-practices/
问题
Michael Lei · 五月 10, 2021
我想安装Windows版本的管理门户引擎来创建Cache InterSystems数据库我想为Cache InterSystems创建一个样本数据库,并想通过Cache Entity Framework Provider访问它。但是,我无法找到一个特定的管理门户引擎来创建数据库。
你能指导一下如何在Windows中安装管理门户吗?
I want to install Management Portal Engine for Windows to create Cache InterSystems DB
I want to create a Sample Database for Cache InterSystems and want to access it via Cache Entity Framework Provider. But, I cannot find a particular engine of Management Portal to create a database.
Can you guide how to install Management Portal in Windows? 文档:https://docs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=GCI_windows 其他相关讨论:https://community.intersystems.com/post/i-want-install-management-portal-engine-windows-create-cache-intersystems-db
文章
Claire Zheng · 三月 23, 2021
2021年3月19日,在InterSystems极客俱乐部首次进行的直播课中,InterSystems中国售前支持专家刘皆良( @Jieliang.Liu )分享了一个有趣的主题:告诉你从Caché数据库升级到InterSystems IRIS数据平台的N个理由。直播视频贴上,欢迎大家围观。
文章
Jingwei Wang · 九月 16, 2022
此篇文章给大家介绍一个使用pyodbc连接到 InterSystems IRIS数据库的示例,详情如下:
InterSystems IRIS 安装在Redhat 操作系统中,使用pyodbc在Mac操作系统中连接到Redhat 操作系统中InterSystems IRIS数据库。
下载测试代码
使用vscode打开测试代码,并在Solutions文件夹下安装pyodbc
pip install pyodbc
在Mac操作系统中安装ODBC驱动
brew update
brew install unixodbc
安装后,查看Mac操作系统中的odbcinst.ini文件,此时odbcinst.ini文件应该是空的。
Mac操作系统中/usr/local/bin下使用下列命令注册驱动 或者 配置DSN
注册ODBC驱动
odbcinst -i -d -f pyodbc_wheel/mac/odbcinst.ini
配置本地DSN
pyodbc_wheel/mac/odbcinst.iniodbcinst -i -s -h -f odbc.ini_unixODBCtemplate
配置系统DSN
odbcinst -i -s -l -f pyodbc_wheel/mac/odbcinst.ini
执行后,查看Mac操作系统中的odbcinst.ini文件,此时odbcinst.ini文件应该是空的, 安装如下信息更改odbcinst.ini文件。
[InterSystems ODBC]
Description=InterSystems ODBC
Driver=pyodbc_wheel/mac/libirisodbc35.so
Setup=pyodbc_wheel/mac/libirisodbc35.so
UsageCount=1
将connection.config连接配置文件里面的内容改成Redhat 操作系统中InterSystems IRIS的连接信息。
ip: 192.168.157.XX
port: 51773
namespace: USER
username: user
password: pwd
运行pyodbcplaystocksTask1.py 文件。会显示“Connected to InterSystems IRIS”,表示成功连接到InterSystems IRIS 。
公告
Michael Lei · 四月 15, 2021
开发者们现在可以下载一套InterSystems ObjectScript扩展插件,并开始使用微软的Visual Studio Code IDE编写应用程序。我们培训部门的新VS Code资源指南提供了大量开发人员入门需要的内容,包括:
连接到InterSystems实例:安装和使用VS Code的ObjectScript扩展VS Code开发应用程序文档:使用开源社区。 播客集: 在VS代码中编写ObjectScript (20m) 开发者社区文章。如何报告问题 Github Repository。InterSystems语言服务器 Github Repository。InterSystems服务器管理器 Github Repository。VS代码的InterSystems ObjectScript扩展 了解IDE。 微软文档。Visual Studio代码 - 入门 微软视频。Visual Studio代码入门 (5m)
更多详情欢迎访问:https://learning.intersystems.com/course/view.php?id=1678&ssoPass=1
公告
Claire Zheng · 四月 10, 2023
InterSystems已修复一个缺陷,该缺陷在罕见情况下会导致ECP客户端不稳定。
该缺陷存在于以下产品和基于这些产品的任何InterSystems产品中。
受影响的版本是2022.1.x、2022.2和2022.3:
InterSystems IRIS®
InterSystems IRIS for Health™
HealthShare® Health Connect
受影响的版本是2022.2(只针对部署ECP的客户):
InterSystems HealthShare®
这个问题只发生在ECP客户端系统中。当这个问题被触发时,进程可能遇到<SYSTEM>或<DATABASE>错误。出错后,ECP客户端会出现不稳定;在某些情况下,实例可能会挂起。对数据没有影响,ECP数据库服务器不受影响。
要清除不稳定性,必须重新启动ECP客户端实例。
如果您的 IRIS、IRIS for Health 或 Health Connect 实例受到影响,补救措施是升级到版本 2023.1 或 2022.1.3,这两个版本都将很快发布。
如果您有受影响的 HealthShare 实例,一组单独的警报文档和补救建议将很快发布。
该缺陷的修复被识别为 TR1162,将包含在InterSystems IRIS®、InterSystems IRIS for Health™和HealthShare® Health Connect以及基于它们的任何InterSystems产品的所有未来版本。
这个修复也可以通过补丁Ad hoc获得。
如果您对这个警报有任何疑问,请联系全球响应中心。
公告
Michael Lei · 十一月 11, 2021
分析
学习路径: 使用自适应分析建立数据模型
学习路径: 使用IRIS 商业智能BI建立数据模型
学习路径: 用InterSystems IRIS BI分析器BI Analyzer构建模型
其他
资源指南: 迁移资源指南
视频: 用交互式方式将应用从Cache迁移IRIS 演示Demo
学习路径: 实施合作伙伴起步 (金融行业) 和 所有行业
视频: 在Docker里运行InterSystems IRIS 社区版
视频: 开发和部署InterSystems Containers容器的工具
开发
视频: 什么是嵌入式 Embedded Python?
视频: 为多个ObjectScript 连接配置vs代码实现工作空间 Workspaces
视频: 在VS Code中用Objectscript 类进行客户端编辑
视频: 在InterSystems IRIS for Health 中将历史数据转化为HL7 FHIR R4
服务
视频与练习: HealthShare 信息转化服务演示Demo与练习 exercise (S3 和 HealthLake 版本)
系统管理
课程 (更新): InterSystems 安全基础 (原Caché 安全概览)
视频: 配置 InterSystems Web Gateway 网关
文章
姚 鑫 · 九月 24, 2022
# 第四十二章 使用多个 IRIS 实例(二)
# 控制 `IRIS` 实例
`iris` 命令支持终端以外的许多功能,并以 `iris function instname arguments` 格式调用,其中 `instname` 是在安装期间选择的实例名称,参数取决于函数。
重要提示: `iris help` 命令显示所有命令函数和参数; `IRISHelp.html` 文件位于 `install-dir\Help` 目录中。 `iris` 命令的某些功能在本文档中没有列出,但在帮助显示中显示。
```java
C:\InterSystems\IRISHealth\bin>iris help
usage:
iris start []
to start instance , optionally using the specified .cpf file.
An optional /EmergencyId=Username,Password can be used to start
InterSystems IRIS in emergency mode. When the EmergencyId argument
is supplied, the system starts up in emergency mode in which only the
baseline databases are mounted and access to InterSystems IRIS is
governed by InterSystems IRIS login using that username and password.
Emergency mode is supplied to give access in the event that privileged
users are not available or their password is forgotten. Emergency
startup is only available from an administrator account.
When InterSystems IRIS is started in emergency mode, the IRIS control
service is not used. This means that if you log out of Windows, all
the InterSystems IRIS processes will immediately exit.
or: iris startnostu
to start instance without running ^STU.
or: iris stop
to shut down instance .
or: iris stopnoshut
to shut down instance without running user shutdown routines.
or: iris stopstart
to shut down and restart instance .
Note: An optional /nofailover argument can be specified for stop,
stopnoshut, or stopstart to not trigger a mirror failover.
or: iris force
to force down instance .
or: iris [ run OR console OR terminal ]
to run InterSystems IRIS in programmer mode with
[ no-device OR console OR terminal ] for $Principal.
or: iris [ run OR console OR terminal ]
to run InterSystems IRIS routine in application mode with
[ no-device OR console OR terminal ] for $Principal.
or: iris [ run OR console OR terminal ]
to run InterSystems IRIS routine in in application
mode with [ no-device OR console OR terminal ] for $Principal.
or: iris runw []
to run InterSystems IRIS routine in application mode with
no input/output device for $Principal using the optional namespace.
When run from a batch script, iris will wait for the InterSystems IRIS
process to terminate before returning. The exit code from the InterSystems
IRIS process will be returned by iris.
Note: An optional /Title="Title string" can specify the console
or terminal title bar text.
or: iris iristraystart
to start IRISTray for instance .
or: iris iristraystop
to stop IRISTray for instance .
or: iris licmanagerstop
to stop licmanager running in instance .
or: iris all [> outputfile]
to list all installed instances.
or: iris allw [> outputfile]
to list (wide format) all installed instances.
or: iris list [] [> outputfile]
to list information about all installed instances or the
specified instance.
or: iris qlist [] [> outputfile]
to display a quick list of information about all installed
instances or the specified instance, in a format suitable
for parsing in command scripts.
The record for an instance contains fields separated by "^" (carats):
Field 1: instance name
Field 2: instance directory
Field 3: version identifier
Field 4: current status for the instance
Field 5: configuration file name last used
Field 6: SuperServer port number
Field 7: WebServer port number
Field 8: JDBC Gateway port number
Field 9: Instance status (e.g., ok, warn, alert)
Field 10: Product name of the instance
Field 11: Mirror Member Type (e.g., Failover, Disaster Recovery)
Field 12: Mirror Status (e.g., Primary, Backup, Connected)
or: iris serverlist [> outputfile]
to list information about all defined servers.
Note: When [> outputfile] is present, output is redirected
to the file instead of being displayed on the terminal.
or: iris telnetstop
to stop the InterSystems IRIS TELNET daemon.
or: iris telnettrace
to toggle the TELNET trace state.
or: iris iristrmdstop
to stop the InterSystems IRIS terminal daemon.
Note: iris often displays error information in a message box.
You can suppress the message box containing error information
by adding "quietly" (without the quotation marks) as the
final argument to the iris command.
or: iris help [display]
to show this help. If display is specified the help
is displayed in a browser window.
```
IRISHelp.html
```
IRIS.EXE USAGE:
iris start []
Starts InterSystems IRIS instance , optionally using the specified .cpf file.
Note: An optional /EmergencyId=Username,Password can be used
to start InterSystems IRIS in emergency mode. When the EmergencyId
argument is supplied, the system starts up in emergency mode in which
only the baseline databases are mounted and access to InterSystems IRIS is governed
by InterSystems IRIS login using that username and password. Emergency mode is supplied
to give access in the event that privileged users are not available or their password
is forgotten. Emergency startup is only available from an administrator account.
When InterSystems IRIS is started in emergency mode, the IRIS control service is not used.
This means that if you log out of Windows, all the InterSystems IRIS processes will immediately exit.
iris startnostu
Starts instance without running ^STU.
iris stop
Shuts down instance .
iris stopnoshut .
Shuts down instance without running user shutdown routines.
iris stopstart
Shuts down and restarts instance .
Note: An optional /nofailover argument can be specified for stop, stopnoshut,
or stopstart. Specifying this option prevents triggering a mirror failover.
iris force
Forces down instance .
iris [ run OR console OR terminal ]
Runs InterSystems IRIS in programmer mode with
[ no-device OR console OR terminal ] for $Principal.
iris [ run OR console OR terminal ]
Runs InterSystems IRIS routine in application mode with
[ no-device OR console OR terminal ] for $Principal.
iris [ run OR console OR terminal ]
Runs InterSystems IRIS routine in in application mode with
[ no-device OR console OR terminal ] for $Principal.
iris runw []
Runs InterSystems IRIS routine in application mode with
no input/output device for $Principal using the optional namespace.
When run from a batch script, iris will wait for the InterSystems IRIS process to
terminate before returning. The exit code from the InterSystems IRIS process will be
returned by iris.
Note: An optional /Title=”Title string” can specify the console
or terminal title bar text.
Examples:
Run ^%SS in a console in the i181u instance:
iris console i181u ^^%SS
Run ^%SS in an InterSystems IRIS terminal in the i181u instance:
iris terminal i181u ^^%SS
Start ^%SS running in an InterSystems IRIS terminal in the i181u instance from a batch file (extra % required):
iris terminal i181u ^^%%SS
Run sub^test(“hello”) in an InterSystems IRIS terminal in the USER namespace of the IRIS instance i181u:
iris terminal i181u sub^^test(\"hello\") USER
Note: The namespace parameter only works if the login record for the user does not specify a namespace. If the user security record specifies a namespace, then it will override the namespace parameter.
iris iristraystart
Starts IRISTray for instance .
iris iristraystop
Stops IRISTray for instance .
iris licmanagerstop
Stops the licmanager process running in instance .
iris all [> outputfile]
Lists all installed instances.
The status for each instance is indicated by:
"dn" - InterSystems IRIS instance is not running
"st" - InterSystems IRIS instance is starting or stopping.
"up" - InterSystems IRIS instance is running on this machine
" " - (blank) status unavailable. Instance is probably partly up without ^STU completing. Logins are disabled.
iris allw [> outputfile]
Lists all installed instances in wide format.
iris list [] [> outputfile]
Lists brief information about all installed instances, or the specified instance.
The status for each instance is indicated by:
"down" - InterSystems IRIS instance is not running
"starting or stopping" - InterSystems IRIS instance is starting or stopping.
"running" - InterSystems IRIS instance is running on this machine
"Incomplete start or stop, logins disabled" " - Instance is probably partly up without ^STU completing. Logins are disabled.
iris qlist [] [> outputfile]
Display a quick list of information about all installed instances, or the specified instance, in a format suitable for parsing in command scripts.
The record for an instance contains fields separated by "^" (carats):
Field 1: instance name
Field 2: instance directory
Field 3: version identifier
Field 4: current status for the instance
Field 5: configuration file name last used
Field 6: SuperServer port number
Field 7: WebServer port number
Field 8: JDBC Gateway port number
Field 9: Instance status (e.g., ok, warn, alert)
Field 10: Product name of the instance
Field 11: Mirror Member Type (e.g., Failover, Disaster Recovery)
Field 12: Mirror Status (e.g., Primary, Backup, Connected)
iris serverlist [> outputfile]
Lists information about all defined servers.
Note: When [> outputfile] is present, output is redirected to the file
instead of being displayed on the terminal.
iris telnetstop
Stops the InterSystems IRIS TELNET daemon.
iris iristrmdstop
Stops the InterSystems IRIS terminal daemon.
iris help [display]
Writes the help text to the terminal or, if display is specified,
displays the help in a browser window.
Error reporting:
Return value: If the control command succeeds, it returns 0. Otherwise it usually returns 1 or some other
non-zero value to indicate an error. You can check the return value by inspecting the ErrorLevel environment
variable.
Message box: iris often displays error information in a message box.
You can suppress the message box containing error information by adding “quietly”
(without the quotation marks) as the final argument to the iris command.
This may be useful when running an unattended .bat script. For example:
iris stop xxxx quietly
if not errorlevel 0 …
```
`iris` 命令的行为因平台而异,如下表所述:
## `Unix®`、`Linux` 和 `macOS` 上的 iris 命令
**注意: `iris` 命令通常会在消息框中显示错误信息。可以通过安静地添加作为 `iris` 命令的最后一个参数来抑制此消息框,该命令以非交互方式运行该命令,并带有最少的对话框。此参数对其他命令也很有用,例如当想要关闭实例而无需确认命令时。**
- `iris all` 列出所有已安装实例的摘要信息,每行一个实例,如下所述。
```java
C:\InterSystems\IRISHealth\bin>iris all
Instance Version ID Port Directory
------------- ---------- ---- ---------
up irishealth 2022.1.0.114.0 51773 c:\intersystems\irishealth
```
注意:如果需要完整的信息,例如用于解析或报告目的,请使用 `iris list`。
```java
C:\InterSystems\IRISHealth\bin>iris list
Instance 'IRISHealth' (Custom installation)
directory: 'C:\InterSystems\IRISHealth'
versionid: '2022.1.0.114.0'
conf file: 'c:\intersystems\irishealth\iris.cpf' (SuperServer port = 51773, WebServer port = 52773)
status : 'running, since Sun Sep 4 16:16:54 2022'
Product : InterSystems IRISHealth
```
- `iris allw` 为每个实例列出与 `iris all` 相同的信息,而不包含长字段值。可能会产生超过 `80` 个字符的行。
```java
C:\InterSystems\IRISHealth\bin>iris allw
Instance Name Version ID Port Directory
------------------------------- ---------------------------- ----- --------------------------------
up irishealth 2022.1.0.114.0 51773 c:\intersystems\irishealth
```
- `iris console instname [arguments]` 在操作系统命令窗口而不是`Terminal` 窗口中打开 `Terminal` 。同 `iris terminal`

- `iris force instname` 强制关闭实例。
```java
C:\InterSystems\IRISHealth\bin>iris force irishealth
```
- `iris help` [参数] 显示有关 `iris` 命令的最新信息。`start`, `stop`, `force` — 显示启动、停止和强制功能的特定功能帮助。
```java
C:\InterSystems\IRISHealth\bin>iris help force
C:\InterSystems\IRISHealth\bin>iris help start
C:\InterSystems\IRISHealth\bin>iris help stop
```
- `iris list [arguments]` 显示有关已安装 `IRIS` 实例的信息,如下所述。
`instname` — 可以选择指定 `IRIS` 实例名称以仅显示有关该实例的信息。例如,`iris list MyIRIS` 仅显示有关 `MyIRIS` 实例的信息。
```
C:\InterSystems\IRISHealth\bin>iris list irishealth
Instance 'irishealth' (Custom installation)
directory: 'C:\InterSystems\IRISHealth'
versionid: '2022.1.0.114.0'
conf file: 'c:\intersystems\irishealth\iris.cpf' (SuperServer port = 51773, WebServer port = 52773)
status : 'running, since Sun Sep 4 16:16:54 2022'
Product : InterSystems IRISHealth
```
- `iris merge instname [arguments]` 将配置合并文件应用于实例,更新其 `CPF`(请参阅使用配置合并自动配置 `IRIS`)。
`merge-file [existing-CPF]` — 可以指定要应用的合并文件的位置,可以选择后跟目标 `CPF` 的位置。例如,`iris merge MyIRIS /tmp/merge.cpf` 将合并文件 `/tmp/merge.cpf` 应用于名为 `MyIRIS` 的实例。如果不带参数调用,则使用以下默认值:
- 对于合并文件,默认值是 `ISC_CPF_MERGE_FILE` 环境变量的值。
- 对于现有的 `CPF`,默认是位于以下位置的 `iris.cpf` 文件:
- 对于已安装的实例,安装目录。
- 对于容器,由 `ISC_DATA_DIRECTORY` 环境变量指定的目录;如果未使用持久 `%SYS` 和 `ISC_DATA_DIRECTORY`,则使用 `ISC_PACKAGE_INSTALLDIR` 环境变量指定的目录。
- `iris qall` 为每个实例列出与 `iris all` 相同的信息,除了长行被截断为 `78` 个字符外加一个终止波浪号 (`~`)。
```java
C:\InterSystems\IRISHealth\bin>iris qall
```
- `iris qlist` [参数] 与 `iris list` 类似,但有附加信息。每个实例的输出(如下所述)在一行中给出,字段由插入符号 (`^`) 分隔。
`instname` — 可以选择指定 `IRIS` 实例名称以仅显示有关该实例的信息。例如,`iris qlist MyIRIS` 仅显示有关 `MyIRIS` 实例的信息。
```java
C:\InterSystems\IRISHealth\bin>iris qlist irishealth
irishealth^C:\InterSystems\IRISHealth^2022.1.0.114.0^running, since Sun Sep 4 16:16:54 2022^c:\intersystems\irishealth\iris.cpf^51773^52773^^^IRISHealth^^
```
- `iris rename instname newname` 重命名实例。
- `iris restart instname [参数]` 重启实例;相当于 `iris stop instname restart`
`nofailover` — 指定此可选参数以防止触发镜像故障转移。
- `iris start instname [参数]` 启动实例。
注意:系统可能会提示以“紧急模式”启动;如果是这样,请参阅紧急访问了解更多信息。
完整的`CPF` 路径 — 默认情况下, `IRIS` 从位于 `/mgr` 目录中的 `iris.cpf` 文件中读取某些设置。可以提供另一个 `.cpf` 文件的完整路径以供使用。 `nostu` — 启动指定的实例而不运行 `^STU`。
- `iris stat instname` 检索与 `irisstat` 实用程序相同的系统统计信息。
- `iris stop instname [参数]` 关闭实例。
`restart` — 关闭实例后启动实例。 `nofailover` — 指定此可选参数以防止触发镜像故障转移。
- `iris stopnoshut instname [参数]` 使用 `INTNOSHUT^SHUTDOWN` 关闭命名实例。
注意:只有实例所有者和 `irisusr` 可以在不登录终端的情况下运行 `INTNOSHUT^SHUTDOWN`。
`nofailover` — 指定此可选参数以防止触发镜像故障转移。
- `iris terminal instname [参数]` 打开实例的 `Terminal` 。
`B` — 允许系统管理员紧急登录终端。 `-b partition_size` — 指定进程的最大分区大小(以 `KB` 为单位)。 `"[label[+offset]]^routine"` — 指定要在用户模式下运行的 `ObjectScript` 程序的名称。除了指定的格式之外,还可以传递由字符串和/或数字文字组成的参数列表,以及省略的 (void) 参数,如下所示:
- `"routine[([parameter-list])]"`
- `"[label]^routine[([parameter-list])]"`
- `"##CLASS(package.class).method[([parameter-list])]"`
其中,例如,参数列表以“字符串文字”的形式指定,`-+-000123.45600E+07`,省略的参数作为 `$Data(parameter)=0` 传递给目标。
**注意:空格和 `shell` 元字符必须以依赖于操作系统的形式引用。**
`U` 命名空间 — 指定终端登录命名空间。
**注意:如果使用指定了启动命名空间的用户帐户启动 `IRIS`,则 `-U` 参数无效(请参阅用户帐户属性)。**
问题
j ay · 三月 22, 2023
1、java如何连接cache2016数据库
2、java如何调用cache的函数
"Backup.General", "ExternalFreeze", Using the JDBC Driver | Using Java with InterSystems Software | InterSystems IRIS for Health 2023.1请参阅这个文档来使用jdbc 链接cache 数据库,
Native SDK for Java | InterSystems IRIS for Health 2023.1 如果要调用任何的 cache 服务器端的代码,可以使用Native SDK for Java 使用方法请参阅上面的文档