最近换新电脑了,然后直接不安装cache2016了,直接上IRIS啊。然后碰到几个坑,一是在win11不知道是兼容性不好还是怎么了。每次重启电脑后数据库就无法启动,为此祭出多年保存的方子(在cache时候存的)。
数据库有东西没执行完启动不了命令
C:\Users\Administrator>C:\InterSystems\Cache\bin\cache -sc:\InterSystems\Ensemble\mgr -B
%SYS>Do ^STURECOV
Journal recovery options
--------------------------------------------------------------
1) Display the list of errors from startup
2) Run the journal restore again
3) Bring down the system prior to a normal startup
4) Dismount a database
5) Mount a database
6) Database Repair Utility
7) Check Database Integrity
8) Reset system so journal is not restored at startup
10) Display Journaling Menu (^JOURNAL)
--------------------------------------------------------------
H) Display Help
E) Exit this utility
--------------------------------------------------------------
Enter choice (1-10) or [Q]uit/[H]elp? 8
If you erase this information then journal restore and transaction
rollback will not occur when the system is brought up in multi-user
mode. Use this if you are going to restore the journal manually after
users are allowed on the system. The console log will contain the current
journal file name and the position in the journal file to start the
restore (the number preceeding the journal file name).
Are you sure you want to do this? No => yes
Journal recovery options
--------------------------------------------------------------
1) Display the list of errors from startup
2) Run the journal restore again
3) Bring down the system prior to a normal startup
4) Dismount a database
5) Mount a database
6) Database Repair Utility
7) Check Database Integrity
8) Reset system so journal is not restored at startup
10) Display Journaling Menu (^JOURNAL)
--------------------------------------------------------------
H) Display Help
E) Exit this utility
--------------------------------------------------------------
Enter choice (1-10) or [Q]uit/[H]elp? 3
Are you sure you want to do this? No => yes
Cache will now shut down.
Use the cube or 'ccontrol start CACHE' to start the system after shutdown.
Cache Shutdown Status: 5:00 pm 25 Feb 2014
0 interactive jobs (Telnet/Lat)
0 background jobs (from job command)
0 Cache Direct server jobs
0 CSP server jobs
0 ODBC server jobs
6 system jobs
Do you want to broadcast a message to anyone? No => No
Do you want to see the Cache status report? No => No
Do you want to run the user defined shutdown routine? Yes => Yes
Are you ready for the system to halt? Yes => Yes
17:01:30 Shutting down Cache
17:01:30 Notifying Clients
17:01:30 No user shutdown routines to execute
17:01:30 Stopping User Jobs
17:01:30 Stopping Network Servers
17:01:30 Withdrawing from License Domain
17:01:30 Waiting for users to stop
17:01:30 Stopping Client Networking
17:01:30 Removing database locks
17:01:30 Updating Journal File
17:01:31 Waiting for database updates to complete
17:01:31 Database updates complete
17:01:31 Stopping System Jobs
17:01:33 Shutdown complete
C:\Users\Administrator>
在IRIS下换成,按上面步骤恢复
C:\InterSystems\IRISHealth\bin>irisdb -s c:\intersystems\irishealth\mgr -B
节点: zhanglianzhu,实例: IRISHEALTH
用户名:
然后就是IRIS导出的M在cache2016导入会报错。在studio维护下面信息即可:
IRIS以2016格式导出
Studio->Tools->Options界面,Environment->Advanced的Export Flags中写入/exportversion=2016.2.1就可以在当前studio导出兼容2016的xml IRIS Cahce导出CLS到Cache 2016设置
然后每次重启电脑之后直接用数据库都报下面错误,要把库停止一下再启动才能用,奇怪
以上就是IRIS使用碰到的问题