Blade silent install
Posted in 1999
Topics: Installation, Setup & Upgrades
Hi folks; Does anyone know how to install a blade (any blade) in a newly created database without using the Blade Manager, since the latter is interactive and we need a silent install... Any idea/former experience is highly appreciated. TIA, Noam
Noam,
If you're dealing with a DataBlade that you've written yourself, you
could choose to use the "test.sql" script that BladeSmith generates
instead of using blademanager. You could install it this way:
% dbaccess mydb < test.sql
If you wanted it to be really silent:
% dbaccess mydb < test.sql >& /dev/nullor Bourne shell:
% dbaccess mydb < test.sql > /dev/null 2>&1
But if you're dealing with a DataBlade that someone else built, e.g.,
Excalibur Text, you're stuck with blademanager. This is not to say
you can't make blademanager run silently or non-interactively. Using
the Bourne shell:
% blademgr > /dev/null 2>&1 <<END
register someblade.1.0 mydb
y
quit
END
BTW, using blademanager is highly recommended.
www
Noam Atzmon wrote:
> Hi folks;
>
> Does anyone know how to install a blade (any blade) in a newly created
> database without using the Blade Manager, since the latter is
> interactive and we need a silent install...
>
> Any idea/former experience is highly appreciated.
>
> TIA, Noam
Hi William,
One important fact which I forgot to mention...: We are using the
(glorious and highly appreciated) NT, and It's not our blade...
Well???
By the way, using the test.sql with a production system, prevents
upgrade of your blade...
TIA, Noam.
"William W. White" wrote:
> Noam,
>
> If you're dealing with a DataBlade that you've written yourself, you
> could choose to use the "test.sql" script that BladeSmith generates
> instead of using blademanager. You could install it this way:
>
> % dbaccess mydb < test.sql>
> If you wanted it to be really silent:
>
> % dbaccess mydb < test.sql >& /dev/null> or Bourne shell:
> % dbaccess mydb < test.sql > /dev/null 2>&1>
> But if you're dealing with a DataBlade that someone else built, e.g.,
> Excalibur Text, you're stuck with blademanager. This is not to say
> you can't make blademanager run silently or non-interactively. Using
> the Bourne shell:
>
> % blademgr > /dev/null 2>&1 <<END
> register someblade.1.0 mydb
> y
> quit
> END
>
> BTW, using blademanager is highly recommended.
>
> www
>
> Noam Atzmon wrote:
>
>> Hi folks;
>>
>> Does anyone know how to install a blade (any blade) in a newly
>> created database without using the Blade Manager, since the latter
>> is interactive and we need a silent install...
>>
>> Any idea/former experience is highly appreciated.
>>
>> TIA, Noam
>
Noam,
Noam Atzmon wrote:
> Does anyone know how to install a blade (any blade) in a newly created
> database without using the Blade Manager, since the latter is
> interactive and we need a silent install...
Bill White has already point out that you can run blademgr from a shell
script. You should also know that when blademgr is executed it looks
for a file named blademgr.run containing commands to perform.
Included at the end of this message is a Makefile I commonly use to
create and drop databases and register DataBlade modules. If the
Makefile is set up properly, you can create a database and register the
DataBlade modules you want in that database by simply executing the
following command at the shell prompt.
make cd rg
Regards,
-- Chris
DATABASE:sh =basename $PWD
DBACCOPT=-e
DBSPACE=dbspace1
SBSPACE=sbspace1
IFXBLADE=ifxbuiltins.1.1
LLDBLADE=LLD.1.20.UC2
TXTBLADE=TXT.1.10.UC2
ETXBLADE=ETX.1.11.UC3
VTSBLADE=VTS.1.10.UC1
IFDBLADE=IFD.1.11.UC1
FRSBLADE=FRS.1.11.UC1
IPDBLADE=IPD.1.11.UC1
TMSBLADE=TimeSeries.3.20.UC3
RLTBLADE=ifxrltree.2.00
SPABLADE=spatial.2.21.UC1
GEOBLADE=geodetic.2.12.UC2
SPWBLADE=SpatialWare.4.0
VIDBLADE=video.1.20.UC1
WEBBLADE=web.3.32.UC6
cd:
echo "create database $(DATABASE) in $(DBSPACE) with log" |
dbaccess
dd:
echo "drop database $(DATABASE)" | dbaccess
rg:
echo set confirm off > blademgr.run
# echo register $(IFXBLADE) $(DATABASE) >> blademgr.run
# echo register $(LLDBLADE) $(DATABASE) >> blademgr.run
# echo register $(TXTBLADE) $(DATABASE) >> blademgr.run
# echo register $(ETXBLADE) $(DATABASE) >> blademgr.run
# echo register $(VTSBLADE) $(DATABASE) >> blademgr.run
# echo register $(IFDBLADE) $(DATABASE) >> blademgr.run
# echo register $(FRSBLADE) $(DATABASE) >> blademgr.run
# echo register $(IPDBLADE) $(DATABASE) >> blademgr.run
# echo register $(TMSBLADE) $(DATABASE) >> blademgr.run
# echo register $(RLTBLADE) $(DATABASE) >> blademgr.run
# echo register $(SPABLADE) $(DATABASE) >> blademgr.run
# echo register $(GEOBLADE) $(DATABASE) >> blademgr.run
# echo register $(SPWBLADE) $(DATABASE) >> blademgr.run
# echo register $(VIDBLADE) $(DATABASE) >> blademgr.run
# echo register $(WEBBLADE) $(DATABASE) >> blademgr.run
echo bye >> blademgr.run
blademgr
Noam Atzmon wrote:
> Hi William,
>
> One important fact which I forgot to mention...: We are using the
> (glorious and highly appreciated) NT, and It's not our blade...
>
> Well???
You can do this with MKS Toolkit. If you don't have that, you might
be able to do it with DOS.
Take a look in your $INFORMIXDIR directory, and you'll see a file
called <servername>.cmd. If you execute that command file in a
DOS window, you'll be able to use things like dbaccess and the
command line version of blademgr.
I'm not a DOS person, but I'm sure a mature operating system
interface like that must provide a way to do simple unix-ish things
like the examples I posted.
>
>
> By the way, using the test.sql with a production system, prevents
> upgrade of your blade...
Right -- that's why blademanager is recommended. You didn't specify, so
I gave you both options.
Good luck,
www
>
>
>
> TIA, Noam.
>
>
>
> "William W. White" wrote:
>
>> Noam,
>>
>> If you're dealing with a DataBlade that you've written yourself, you
>>
>> could choose to use the "test.sql" script that BladeSmith generates
>> instead of using blademanager. You could install it this way:
>>
>> % dbaccess mydb < test.sql>>
>> If you wanted it to be really silent:
>>
>> % dbaccess mydb < test.sql >& /dev/null>> or Bourne shell:
>> % dbaccess mydb < test.sql > /dev/null 2>&1>>
>> But if you're dealing with a DataBlade that someone else built,
>> e.g.,
>> Excalibur Text, you're stuck with blademanager. This is not to say
>> you can't make blademanager run silently or non-interactively. Using
>>
>> the Bourne shell:
>>
>> % blademgr > /dev/null 2>&1 <<END
>> register someblade.1.0 mydb
>> y
>> quit
>> END
>>
>> BTW, using blademanager is highly recommended.
>>
>> www
>>
>> Noam Atzmon wrote:
>>
>> > Hi folks;
>> >
>> > Does anyone know how to install a blade (any blade) in a newly
>> > created database without using the Blade Manager, since the latter
>> > is interactive and we need a silent install...
>> >
>> > Any idea/former experience is highly appreciated.
>> >
>> > TIA, Noam
>>