Ocenite etot tekst:


 * O RUSIFIKACII INFORMIX na BESTA'h.
 * PEREMENNYE OKRUZHENIYA I INFORMIX.
 * O NASTROJKE INFORMIX NA TERMINAL.
 * PEREGENERACIYA UNIX  POD INFORMIX.



Tol'ko v Informix na Besta-88.
(Na nastoyashchih mashinah rusifikaciya delaetsya cherez NLS)

Dannye  tipa  char  v  INFORMIX  imeyut  dlinu 8 bit na simvol i
poetomu mogut hranit' kak anglijskie, tak i russkie bukvy.

Vstroennoj   sortirovki   po   russkomu  alfavitu  INFORMIX  ne
realizoval. Dlya russkoj sortirovki pol'zujtes'  predvaritel'noj
perekodirovkoj.    (Sm.    naprimer   podprogrammku   koder   v
demonstracionnoj baze ZAWOD).

Vo  vremya vvoda pol'zovatel' dolzhen pereklyuchat'sya s russkogo na
anglijskij klavishej CONTROL-O, a s anglijskogo na russkij  kla-
vishej CONTROL-N.

Dolzhna byt' ustanovlena peremennaya okruzheniya
KEYBMAP="marshrutnoe imya fajla s perekodirovochnoj tablicej"

Po umolchaniyu  primenyaetsya  KEYBMAP=/usr/informix/keybmap/dasher
kotoraya ustanavlivaet klaviaturu "YAVERTY" pod standart termina-
lov BESTY, i nachal'nyj alfavit - russkij.

KEYBMAP=/usr/informix/keybmap/dasherE export KEYBMAP
Takoj komandoj ustanavlivayut klaviaturu "YAVERTY",  i  nachal'nyj
alfavit - anglijskij

KEYBMAP=/usr/informix/keybmap/dasherD export KEYBMAP
Klaviatura "JCUKEN" pod standart personal'nogo komp®yutera.

KEYBMAP=/usr/informix/keybmap/dasherP export KEYBMAP
Klaviatura "JCUKEN" pod standart russkoj pishushchej mashinki.

V  fajle  /usr/informix/keybmap/dasher  lezhit  tablica perevoda
vvedennyh s klaviatury latinskih simvolov v sootvetstvuyushchie  im
russkie. Perekodirovochnaya tablica  sootvetstvuet  "QWERTY"-ang-
lijskoj klaviature. (T.e. 'a' perevoditsya v 'a', 'c' perevodit-
sya  v  'c' i t.d.). Sozdaetsya fajl /usr/informix/keybmap/dasher
programmoj, lezhashchej v /usr/informix/keybmap/crmap_dasher.c

CHtoby ustanovit' drugoe raspolozhenie russkih bukv na klaviature
peredelajte  etu  programmu. Dlya etogo perestav'te v nuzhnom vam
poryadke soderzhimoe massiva russmap.

V  programme  /usr/informix/keybmap/crmap_dasher.c  staticheskaya
peremennaya  init opredelyaet, v kakom alfavite nachinaetsya rabota
INFORMIX. Esli init=1, to snachala ustanavlivaetsya russkij alfa-
vit, esli init=0, to snachala ustanavlivaetsya latinskij alfavit.

Peredelannuyu programmu, estestvenno, nuzhno ne zabyt' otkompili-
rovat' i zapustit' na vypolnenie.

Interesnym sposobom bor'by s rusifikaciej INFORMIX, vypolnennoj
pri portirovanii onoj yavlyaetsya polnyj ot nee otkaz i  ispol'zo-
vanie russkogo drajvera klaviatury dlya UNIX.



Dlya nastrojki INFORMIX ispol'zuet peremennye okruzheniya. Vy  mo-
zhete izmenit' lyuboe iz dopushchenij, prinimaemyh INFORMIX po umol-
chaniyu, ustanovkoj  odnoj  ili  neskol'kih peremennyh okruzheniya,
raspoznavaemyh INFORMIX.

Naprimer  sdelat' tak, chtoby peremennye tipa MONEY izobrazhalis'
ne v formate $149.50, a v formate rub 149.50 kop mozhno komandoj
        DBMONEY='rub . kop' export DBMONEY

DBPATH  ukazyvaet  spisok  direktorij  gde   (pomimo   tekushchej)
INFORMIX ishchet bazy dannyh i svyazannye s nimi fajly.
        DBPATH=/udd/iwanow:/udd/petrow export DBPATH
Zastavit  iskat' bazy dannyh ne tol'ko v tekushchej direktorii, no
i v direktoriyah Petrova i Ivanova
        DBPATH=//hostname                               *OnL*
Zastavit iskat' bazy dannyh OnLine na udalennom komp®yutere.

Obychno  zhe ustanavlivayut peremennye konkretno dlya vashej rabochej
stancii v fajle /etc/profile  kotoryj  avtomaticheski  vypolnyaet
fajl /config/profiles/informix.sh

# primernoe soderzhanie fajla /config/profiles/informix.sh

INFORMIXDIR=/usr/informix export INFORMIXDIR
DBPRINT=pp export DBPRINT       # programma pechati - pp
DBEDIT='rk -E' export DBEDIT    # pol'zovatel'skij redaktor
# DBDATE=DMY4. export DBDATE    # format daty 24.09.1991
# DBMONEY='. rub' export DBMONEY# sovkovyj standart deneg
PATH=$PATH:$INFORMIXDIR/bin export PATH # vypolnyaemye moduli
SQLEXEC=$INFORMIXDIR/lib/sqlexec export SQLEXEC # server - SE
TERMCAP=$INFORMIXDIR/etc/termcap export TERMCAP
case $TERM in                 # tablica rusifikacii klaviatury
d460* | d211* | cham | vt* )
   KEYBMAP=$INFORMIXDIR/keybmap/dasher  # yaverty/qwerty
 # KEYBMAP=$INFORMIXDIR/keybmap/dasherE # qwerty/yaverty
 # KEYBMAP=$INFORMIXDIR/keybmap/dasherD # jcuken/qwerty IBM PC
 # KEYBMAP=$INFORMIXDIR/keybmap/dasherP # jcuken/qwerty pishmash
 export KEYBMAP
 ;;
esac

Podrobnosti sm. v  fajle h4rappendC ili v Prilozhenii  C  "Usta-
novka  peremennyh  okruzheniya  INFORMIX" v REFERENCE MANUAL 4GL.




Dlya nastrojki na terminaly UNIX ispol'zuet fajl termcap ili ba-
zu dannyh terminfo, v kotoryh sobrany opisaniya vseh (ili  pochti
vseh)  terminalov,  sushchestvuyushchih  v prirode. Vyyasniv, kakoj tip
terminala podklyuchen k mashine (a zadaetsya eto v peremennoj okru-
zheniya TERM (naprimer TERM=d460 ili  TERM=d211)),  UNIX  nahodit
opisanie  etogo  terminala baze opisaniya terninalov i nastroiv-
shis' po hranyashchejsya tam informacii, mozhet adekvatno  vosproizvo-
dit' na nem informaciyu, podlezhashchuyu vyvodu.

INFORMIX  imeet svoj sobstvennyj termcap fajl s opisaniyami ter-
minalov, v nem podderzhivaetsya bol'she vozmozhnostej po  sravneniyu
so  standartnym  termcap  UNIX'a. CHtoby INFORMIX pol'zovalsya im
nuzhno prisvoit'  ego  marshrutnoe  imya  v  peremennuyu  okruzheniya
TERMCAP=/usr/informix/etc/termcap

Terminaly TATUNG i DASHER-460 mozhno nastraivat'  v  dva  raznyh
rezhima: STANDARTNYJ, i ANSI.

STANDARTNYJ REZHIM  zadaetsya  standartnym  znacheniem  peremennoj
TERM.  Dlya  TATUNG  TERM=d211, dlya DASHER-460 TERM=d460. V etom
rezhime ya i rekomenduyu vam rabotat'. Vklyuchaetsya on po umolchaniyu.

STANDARTNYJ REZHIM imeet sleduyushchie nedostatki:

1.  Nekotorye  CONTROL-klyuchi  v  nem  ne rabotayut, poskol'ku ih
ASCII kody sovpadayut s kodami "strelok" vpravo/vlevo/vverh/vniz
|to bylo by legko perezhit',  esli  by  etimi  klyuchami  ne  byli
CONTROL-W  - klyuch, vyzyvayushchij HELP-podskazku v srede INFORMIX i
CONTROL-X - klyuch "unichtozhit' simvol".

Sleduet  zametit', chto terminaly, rabotayushchie v ANSI rezhime (po-
sylayushchie funkcional'nymi klavishami  dlinnye  ESC-posledovatel'-
nosti) ploho perenosyat rusifikaciyu klaviatury:

2. Nedostatok rezhima ANSI odin: funkcional'nye klavishi i strel-
ki na nem periodicheski sboyat.

Vyglyadit  eto tak: desyat' raz vy nazhimaete na "strelku vlevo" i
ona srabatyvaet kak "strelka vlevo"  a  v  odinadcatyj  (ili  v
vos'moj)  raz  ona  srabatyvaet kak celaya pachka nazhatyh klavish:
ESC, '[', '1', 'D'. Inogda eto mozhet okazat'sya ves'ma  nepriyat-
no,  osobenno  esli za terminalom sidit neopytnyj pol'zovatel'.
Predstav'te: vy nahodites' v ekrannoj forme, nazhimaete  strelku
chtoby  sdvinut'sya,  a  vmesto dvizheniya u vas srabatyvaet ESCAPE
("zavershit' vvod") a potom klavisha 'D', na kotoroj v menyu chasto
byvaet naveshano chto-nibud' tipa Drop ili Delete.

Ustanavlivaetsya  ANSI REZHIM tak: ustanovite znachenie peremennoj
TERM=d211-tansi ili TERM=d460-tansi sootvetstvenno. Sdelat' eto
mozhno i v obshchem profajle /config/profiles/informix.sh, i v lich-
nom profajle .profile, ili neposredstvenno  vruchnuyu  s  pomoshch'yu
komandy

        TERM=d460-tansi export TERM

ili tol'ko na vremya raboty INFORMIX,  startovav ego tak:

        TERM=$TERM-tansi     r4gl

Reshat', kakoj rezhim - STANDARTNYJ s nerabotayushchimi ^W i ^X,  ili
ANSI  so  sboyashchimi  klavishami - emu menee protiven, imeet smysl
kazhdomu pol'zovatelyu individual'no, ishodya iz lichnyh vkusov.

  Spisok dopustimyh sleduyushchie znacheniya peremennoj TERM dlya TATUNG ET10:

TERM=d211         Standartnoe znachenie ("Prostoj")
TERM=d211-tansi   Vremennyj ANSI rezhim  (ANSI)
TERM=d211-132     "SHirokoekrannyj" rezhim (132 simvola v stroke)
TERM=vt220        |mulyaciya vt220 (vt200 v 7-mi bitnom rezhime)

  Dopustimy sleduyushchie znacheniya TERM dlya dlya DASHER D460:

TERM=d460         Standartnoe znachenie
TERM=d460-tansi   Vremennyj ANSI rezhim dlya DASHER D460
TERM=d460-127     Ne realizovan

Obespechivaetsya takzhe rabota s drugimi  tipami  terminalov.  Sm.
nachalo fajla /usr/informix/etc/termcap



        Esli pri zapuske neskol'kih processov INFORMIX program-
my  nachinayut  sletat' s soobshcheniem 1250 "Unable create a pipe",
znachit v vashej sisteme slishkom malo socketov. A trebuetsya ih po
4 shtuki na kazhduyu zapuskaemuyu programmu INFORMIXa.

        Korrektiruyushchie dejstviya: sozdajte nedostayushchie sockety v
kataloge /dev/so , zadajte im normal'nye prava dostupa, i pere-
generite sistemu, ukazav v dfile ih novoe kolichestvo.

VNIMANIE! Ne unichtozhajte staryj unix, poka  ne  ubedites',  chto
novyj gruzitsya normal'no!!!



Klient v moment ustanovki connection posylaet serveru peremennye okruzheniya:

ARC_DEFAULT
ARC_KEYPAD
COLLCHAR
DBDATE
DBMONEY
DBPATH
DBNLS
DBREMOTECMD
DBSPACETEMP
DELIMIDENT
INFORMIXSHBASE
INFORMIXSTACKSIZE
LC_COLLATE
LC_TYPE
LC_MONETARY
LC_NUMERIC
LC_TIME
PSORT_DBTEMP
PSORT_NPROC

Ostal'nye peremennye klient peresylaet serveru
posle ustanovki connection, pered pervym sql-operatorom
(Togda zhe oni i vychislyayutsya)

|to peremennye:

DBLANG
DBTEMP
DBTIME
DBUPSPACE
OPTCOMPIND
PDQPRIORITY

Peremennye 7.1

INFORMIXCONRETRY
INFORMIXCONTIME
OPTCOMPIND
PDQPRIORITY

Last-modified: Wed, 09 Sep 1998 08:03:33 GMT
Ocenite etot tekst: