Cache installation steps on Red Hat Linux
Download the cache setup files for your Linux version. and then Uzip the files.
Start the Terminal window in Linux.
Go to the cache setup foldcer. eg. cd /root/cache-2007/
Run ./cinstall command
The cache installation script will be start and ask you some question regarding installation .
1 ) It will display the Linux version which is supported with this version of cache and ask you to choose by asking “Is this the correct type of your system”. Select accordingly.
2 ) Next it will ask “Enter instance name”. Type the name of the instance for example cache07.
3 ) Then it will ask “Enter directory name for this installation ”. Type the path for your installation e.g /xyz/abc/.
4 ) If the directory you provide does not exist it will ask “Do you want to create it”. Type Yes.
5 ) Next it will ask u about the setup type “Standard or Custom”. Type 1 for standard.
6 ) Next it will ask u about Unicode support. Reply accordingly.
7 ) Then it will ask u about Security Settings. Select accordingly.
8 ) Then it will ask u about the Group which is allowed to start and stop the cache instance.
9 ) Then it will ask u about licence key. “Are u want to enter the licence Key”. Type yes if you want to provide a licence key.
10) It will then show u the provide option as installation summary and will ask u to proced. Type yes … and the installation will start.
11) After the installation if every thing goes fine it will show u the URL of System Management Portal.
12) Done
Cache, Linux
Cache on Linux, installating Cache on Linux, Installing Cache on Linux
It is quite easy to restore the cache classes backup using cache studio but some times we have a scenario where we have to restore the cache classes backup from the cache terminal. Usually we need this in Linux. We can achive this goal by using a simple command.
$system.OBJ.Load(”path to the xml File”,”ck”)
Just start cache terminal go to the specific namespace by typeing
zn “Namespace Name”
and then run the command
w $system.OBJ.Load(”path to the xml File”,”ck”)
and the xml file will be restored in the current namespace.
Cache
cache backup restore, cache linux, cache linux backup, cache linux restore, cache restore
We can call a cache SP from SQL in the following way.
Define SP in Cache:-
Class User.test Extends %Persistent
{
ClassMethod t1(p as %String) As %String [ SqlProc ]
{
s ^Asad($H)=p
q 1
}
}
Query to Call this SP:-
select Test_t1(’Test1′) from SQLUser.Test
Example to calling SP if the class is in package:-
Class TestPkg.test Extends %Persistent
{
ClassMethod t1(p As %String) As %String [ SqlProc ]
{
s ^Asad($zdt($H))=p
q 1
}
}
SQL Query :-
select TestPkg.Test_t1(’Test1′) from TestPkg.Test
This is the way how you can call cache store procedures from SQL. This is very helpful in the scenarios when using cache with other languages like java or .net.
Cache
cache sp, cache store procedure, calling store procedures in cache, SP in cache, sql proc in cache
REACT^STU1 routine woks fine on cache version 5.21 (Linux). but surprisingly the command does not work in the cache 2007.x and cache 2008.x for Linux the command works fine for the windows version of cache but did not work accordingly in the Linux. This command is used to refresh the cache.cpf files changes in the cache without restarting the cache instance. for example if you change cache.cpf file programmatically and want cache to reflect those changes without restart you need to run the REACT^STU1 command on previous version of cache for Linux(5.21) but in cache 2007 and 2008 you need to add the following command before that command.
do ##class(Config.Configuration).CPFImport($p($zu(86),”*”,1))
and then write the following command
REACT^STU1($p($zu(86),”*”,1),0,2,1)
this will solve your problem .
Cache
cache Linux REACT, cache REACT, cache refresh, cache.cpf changes, REACT command, REACT^STU1