Ocenite etot tekst:


Opisyvaetsya  versiya  7.11,  dlya  versii  5.0  imeyutsya nekotorye
otlichiya.  Vse dejstviya vypolnyayutsya s logina  informix,  stoya  v
ego domashnem kataloge /usr/informix



INFORMIXDIR=/usr/informix         # neobyazatel'no
ONCONFIG=onconfig                 # neobyazatel'no
INFORMIXTERM=termcap              # zhelatel'no (ili terminfo,
                                  #  no togda cvetov ne budet)
TERMCAP=$INFORMIXDIR/etc/termcap
PATH=$PATH:$INFORMIXDIR/bin
INFORMIXSERVER=online             # your_online_system

# tol'ko esli versiya 7. a 4GL versii 4.12
SQLEXEC=sqlrm
#        esli versiya 5 to
SQLEXEC=$INFORMIXDIR/bin/sqlturbo

export INFORMIXDIR ONCONFIG INFORMIXTERM TERMCAP PATH
export INFORMIXSERVER SQLEXEC



Reshit'  na kakom portu server budet ozhidat' soedineniya i kak my
etot port nazovem. Naprimer na 1521 pod imenem informix.
V fajl /etc/services
vpisyvaem strochku

informix      1521/tcp     # Informix-OnLine connect port



Predpolozhim vash host nazyvaetsya t01
V fajl $INFORMIXDIR/etc/sqlhosts
vpisyvaem strochki

# lyuboe    libo onipcshm    sm. fajl     sm. fajl
#          libo onsoctcp   /etc/hosts  /etc/services
#          libo sesoctcp
#
# dbname     NET-type        host       port-service-name

online_shm   onipcshm        t01          informix
online       onsoctcp        t01          informix



 > /usr/informix/chunk1
 chown informix /usr/informix/chunk1
 chgrp informix /usr/informix/chunk1
 chmod 660      /usr/informix/chunk1



Dlya  arhivacii  samoj  bazy  nuzhen odin strimmer, dlya arhivacii
logicheskih protokolov -  drugoj.  Dlya  nachal'nyh  uprazhnenij  s
bazoj  rekomenduyu i tot i drugoj sdelat' /dev/null, togda vashej
baze  ne  grozit   zavisnut'   posredi   rabochego   dnya   iz-za
perepolneniya logicheskih protokolov.



Primernyj    fajl    s    obrazcom    konfiguracii    lezhit   v
$INFORMIXDIR/etc/onconfig.std . Kopiruem ego v fajl  onconfig i
redaktiruem obychnym tekstovym redaktorom.

  cp etc/onconfig.std etc/onconfig
  vi etc/onconfig



 onmonitor

   zahodim v menyu  "Parameters" --> "Initialize"
   i akkuratnen'ko zapolnyaem vse polya razumnymi znacheniyami.

 ESC, ESC..., paru  raz  otvetit'  "Y" - i vot
 "... check for space...", i
 "...root dbspace" prochishchen, i proinicializirovan nachisto, i
 "...recovering..."
 i nakonec "...question mode..."

  zatem perehodim v menyu "Mode" --> "OnLine"

 vse. Server zapushchen.



V  katalog  s  RC  komandami  (skoree  vsego v /etc/rc3.d ili v
/sbin/rc3.d ili v fajl /etc/rc.local ) pomestit' fajl

        S99informix.sh takogo soderzhaniya:

# Zapusk servera Informix-OnLine pri nachal'noj zagruzke
#
INFORMIXDIR=/usr/informix
ONCONFIG=onconfig
export INFORMIXDIR ONCONFIG
$INFORMIXDIR/bin/oninit
######## konec fajla ##############

        i K99informix.sh takogo soderzhaniya:

# Vyklyuchenie servera Informix-OnLine pri shutdown'e
#
INFORMIXDIR=/usr/informix
ONCONFIG=onconfig
export INFORMIXDIR ONCONFIG
$INFORMIXDIR/bin/onmode -k -y
######## konec fajla ##############



Delat' nado prakticheski vse tozhe samoe, tol'ko vse komandy,
nazyvaemye v versii 7.0   on* dolzhny nazyvat'sya tb*

I vmesto peremennoj ONCONFIG - peremennaya TBCONFIG
peremennaya  SQLEXEC=$INFORMIXDIR/bin/sqlturbo

I  posle  starta  servera  (vo  vremya nachal'noj zagruzki) nuzhno
otdel'no zapuskat' Informix-STAR'ovskij  demon  priema  setevyh
soedinenij  sqlexecd  -  i  znachit  fajl  S99informix.sh  budet
vyglyadet' tak:

# Zapusk servera Informix-OnLine 5.0 pri nachal'noj zagruzke
#
INFORMIXDIR=/usr/informix
TBCONFIG=tbconfig
export INFORMIXDIR TBCONFIG
$INFORMIXDIR/bin/tbinit
$INFORMIXDIR/bin/sqlexecd sqlturbo
######## konec fajla ##############

Last-modified: Tue, 15 Jun 1999 14:34:26 GMT
Ocenite etot tekst: