Ellhniko Database-SQL-RDBMS HOW-TO gia Linux (PostgreSQL
-Antikeimenostrafes Sxesiako Susthma Bashs Dedomenwn)
Al Dev (Alavoor Vasudevan) alavoor@yahoo.com
v11.0, 8 Ianoyarioy 1999
Ayto to keimeno einai enas "praktikos odhgos" gia na egkatasthsete
grhgora thn SQL Database engine kai ta front end ergaleia ths se ena
susthma Unix. Mila epishs gia th Die8nh glwssa Protupwn (International
Standard language) ANSI/ISO SQL kai ejetazei ta pleonekthmata ths SQL
database engine poy exei anaptyx8ei apo to world-wide internet katw
apo ena "anoikto periballon anaptyjhs". Prokeitai gia to PWS (HOW-TO)
na egkatasthsete thn Antikeimenostrafh Sxesiakh SQL Bash epomenhs
genias "PostgreSQL" se ena susthma Unix to opoio mporei na xrhsi
mopoih8ei san Application Database Server h san Web Database Server. H
PostgreSQL ylopoiei ena yposunolo toy Die8nous Protupoy ISO kai ANSI
SQL 1998,92,89. Ayto to keimeno dinei epishs plhrofories gia ta pro
grammata diasundeshs me th bash opws ta Front End GUIs, gia ergaleia
RAD (Rapid Application Development), gia interfaces glwsswn programma
tismou "C", "C++", Java, Perl, ODBC, JDBC odhgous kai ergaleia sun
deshs ths bashs me Web kai programmata grafikhs diasundeshs. Oi plhro
fories poy dinontai edw isxuoyn gia oles tis platformes Unix kai gia
alles baseis epishs kai 8a einai polu xrhsimes se atoma nea sto xwro
twn Basewn, ths glwssas SQL kai ths PostgreSQL. Ayto to keimeno exei
epishs odhgo ekma8hshs ths SQL, kai h suntajh SQL 8a fanei polu
xrhsimh stoys arxarioys. Oi empeiroi 8a broyn xrhsimo ayto to keimeno
san proxeiro odhgo anaforas. Gia toys foithtes, oi plhrofories poy
dinontai edw 8a toys kanei ikanous na paroyn ton phgaio kwdika apo th
sxesiakh bash dedomenwn PostgreSQL, ap' opoy mporoun na ma8oyn pws
grafetai mia sxesiakh SQL bash dedomenwn.
______________________________________________________________________
Table of Contents
1. Eisagwgh
2. Alles Morfes aytou toy keimenoy
3. Oi nomoi ths Fysikhs efarmozontai sto logismiko!
4. Ti einai h PostgreSQL ;
5. Pou mporw na th brw ;
6. H PostgreSQL yposthrizei ejairetika megales baseis, megaluteres apo 200 Gig
7. Pws mporw na empistey8w thn PostgreSQL ; To paketo Regression gia test anaptussei to ais8hma empistosunhs ston pelath
8. Grafiko programma epikoinwnias (GUI FrontEnd Tool) me thn PostgreSQL
9. Ergaleia enos Oloklhrwmenoy Systhmatos Anaptyjhs gia PostgreSQL (GUI IDE)
10. Odhgoi Diasundeshs me thn PostgreSQL
10.1 ODBC Drivers gia thn PostgreSQL
10.2 UDBC Drivers gia thn PostgreSQL
10.3 JDBC Drivers gia thn PostgreSQL
10.4 Java gia PostgreSQL
11. Perl Database Interface (DBI) Driver gia PostgreSQL
11.1 Diasundesh Perl 5 me PostgreSQL
11.2 Perl Database Interface DBI
11.2.1 TI EINAI TO DBI ;
11.2.2 Odhgos DBI gia thn PostgreSQL - DBD-Pg-0.89
11.2.3 Texnikh yposthrijh gia to DBI
11.2.4 Ti einai ta DBI, DBperl, Oraperl kai *perl;
11.2.5 Prodiagrafes DBI
11.2.6 Problhmata Metaglwttishs h alliws "Kophke stis Ejetaseis!"
11.2.7 Yposthrizetai to DBI katw apo platformes Windows 95 / NT ;
11.2.8 Ti einai to DBM; Kai giati 8a prepei na xrhsimopoiw to DBI sth 8esh toy;
11.2.9 Yposthrizetai [lt ] to tade xarakthristiko [gt ] sto DBI;
11.2.10 Xrhsimeuei ka8oloy to DBI gia programmatismo se CGI;
11.2.11 Pws petyxainw taxuteroys xronoys sundeshs me DBD Oracle kai CGI;
11.2.12 Pws epitygxanw monimes (persistent) syndeseis metaju DBI kai CGI
11.2.13 ``Otan trexw ena perl script apo thn grammh entolhs, doyleuei, alla otan to trexw apo ton httpd, apotygxanei!'' Giati;
11.2.14 Mporw na kanw multi-threading me to DBI;
11.2.15 Pws mporw na kalesw stored procedures me to DBI;
11.2.16 Pws mporw na parw tis times poy epistrefontai apo tis stored procedures me to DBI;
11.2.17 Pws mporw na dhmioyrghsw h na katastrecw mia bash dedomenwn me to DBI;
11.2.18 Pws diaxeirizetai to DBI tis times NULL ;
11.2.19 Ti einai aytes oi me8odoi func (func methods);
11.2.20 Emporikh Yposthrijh kai Ekpaideysh
12. Ergaleia Diaxeirishs ths PostgreSQL
12.1 PGACCESS - Ena grafiko ergaleio gia th diaxeirish ths PostgreSQL
12.2 Windows Interactive Query Tool gia PostgreSQL (WISQL h MPSQL)
12.3 Interactive Query Tool(ISQL) gia thn PostgreSQL - Onomazetai PSQL
12.4 MPMGR - Ergaleio Diaxeirishs Basewn gia PostgresSQL
13. Ry8mizontas pollapla koytia PostgreSQL se mia o8onh
14. Efarmoges kai Ergaleia gia thn PostgreSQL
14.1 Glwssa 4hs genias (4GL) PostgreSQL gia efarmoges me web kai bash dedomenwn - Platforma anaptyjhs AppGEN
14.2 WWW Web interface gia PostgresSQL - DBENGINE
14.3 Apache Webserver Module gia PostgreSQL - NeoSoft NeoWebScript
14.4 Oi HEITML epektaseis ths HTML ston server kai mia glwssa 4hs genias gia thn PostgreSQL
14.5 America On-line AOL Web server gia PostgreSQL
14.6 Problem/Project Tracking System Application Tool gia PostgreSQL
14.7 Metatroph arxeiwn dbase dbf se PostgreSQL
15. Ergaleio gia Sxediasmo/Ylopoihsh Web Basewn Dedomenwn gia thn PostgreSQL - EARP
15.1 Ti einai to EARP ;
15.2 Ylopoihsh
15.3 Ti xreiazeste gia na trejete to EARP
15.4 Pws doyleuei ;
15.5 Pou 8a to brw ;
16. PHP Hypertext Preprocessor, mia scripting glwssa gia thn PostgreSQL h opoia enswmatwnetai se html kai ekteleitai sto Server
16.1 Kuria xarakthristika
16.2 Anagnwrish/Eyxaristies
16.3 PHP 3 - Suntomo Istoriko
16.4 Ti mporw na kanw, loipon, me to PHP/FI ;
16.5 Ena aplo paradeigma
16.6 CGI Redirection
16.6.1 Shmeiwseis gia ton Apache 1.0.x
16.6.2 Netscape HTTPD
16.6.3 NCSA HTTPD
16.7 Trexontas to PHP/FI apo th grammh entolwn
17. Diasundesh me PostgreSQL mesw Python
17.1 Pou mporw na brw to PyGres ;
17.2 Plhrofories kai yposthrijh
18. Epikoinwnia metaju PostgreSQL kai WWW - WDB-P95
18.1 Sxetika me to wdb-p95
18.2 Einai aparaithto o diakomisths ths PostgreSQL, to pgperl, kai to httpd na einai ston idio host;
19. Programmatistikes diasyndeseis gia "C", "C++", ESQL/C kai Dyadikoi Telestes gia thn PostgreSQL
19.1 Diasundesh glwssas "C" me thn PostgreSQL
19.2 Interface glwssas "C++" gia thn PostgreSQL
19.3 ESQL/C gia PostgreSQL
19.4 Dyadikoi Telestes gia thn PostgreSQL
20. Japanese Kanji Kwdikas gia thn PostgreSQL
21. Metafora ths PostgreSQL se Windows 95/Windows NT
22. Listes allhlografias
22.1 Apokthste ena dwrean logariasmo e-mail
22.2 Agglikh Lista Allhlografias
22.3 Arxeio ths Listas Allhlografias
22.4 Ispanikh Lista Allhlografias
23. Tekmhriwsh kai Bibliografia
23.1 Odhgoi ekma8hshs kai Egxeiridia
23.2 Online Tekmhriwsh
23.3 Xrhsimh Bibliografia Anaforas
23.4 Keimena prodiagrafwn ANSI/ISO SQL - SQL 1992, SQL 1998
23.5 Suntajh ANSI/ISO SQL 1992
23.6 Suntajh ANSI/ISO SQL 1998
23.7 Odhgos ekma8hshs SQL gia arxarioys
23.8 Proswrinh epektash (extension) sto SQL92
23.9 Tmhma 0 - Apoktwntas ta keimena ISO/ANSI SQL
23.10 Tmhma 1 - Trexoysa katastash toy ISO/ANSI SQL
23.11 Tmhma 2 - ISO/ANSI SQL Foundation
23.12 Tmhma 3 - ISO/ANSI SQL Call Level Interface
23.13 Tmhma 4 - ISO/ANSI SQL Persistent Stored Modules
23.14 Tmhma 5 - Typopoihseis - Desmeuseis ISO/ANSI SQL/ ISO/ANSI SQL/Bindings
23.15 Tmhma 6 - ISO/ANSI SQL XA Interface Specialization (SQL/XA)
23.16 Part 7 - ISO/ANSI SQL Temporal
23.16.1 EISAGWGH
23.16.2 MIA MELETH- APO8HKEYSH SYGXRONWN/TREXOYSWN PLHROFORIWN
23.16.3 MELETH - APO8HKEYSH ISTORIKWN PLHROFORIWN
23.16.4 MELETH - PROBOLH (PROJECTION)
23.16.5 MELETH - SYSXETISMOS (JOIN)
23.16.6 MELETH - A8ROISTIKOI TELESTES (AGGREGATES)
23.16.7 PERILHYH
23.17 Tmhma 8 - ISO/ANSI POLYMESA SQL (SQL MULTIMEDIA - SQL/MM)
24. Texnikh yposthrijh gia thn PostgreSQL
25. Oikonomika kai Epaggelmatika 8emata
26. Lista allwn basewn dedomenwn
27. Xrhsimes symboyles gia anazhthseis sto Internet World Wide Web
28. Symperasma
29. Syxna Diatypwmenes Erwthseis sxetika me thn PostgreSQL
30. Shmeiwsh Pneymatikwn Dikaiwmatwn
31. Pararthma A - Suntajh toy ANSI/ISO SQL 1992
32. Pararthma B - Odhgos Ekma8hshs SQL gia arxarioys
32.1 Odhgos Ekma8hshs gia PostgreSQL
32.2 Deiktes Internet diey8unsewn
33. Appendix C - Odhgies gia grhgorh egkatastash Linux
______________________________________________________________________
1. Eisagwgh
O skopos aytou toy keimenoy einai na dwsei katanohtous deiktes/URLs
gia na sthsete grhgora thn PostgreSQL kai epishs na yperaspistei ta
pleonekthmata enos Anoiktou Systhmatos Phgaioy Kwdika (Open Source
Code) opws h PostgreSQL, Linux.
Ka8e susthma ypologisth ston kosmo xreiazetai mia bash dedomenwn gia
na apo8hkeuei /anakta plhrofories. O kurios logos poy xrhsimopoioume
ton ypologisth einai gia na apo8hkeuoyme, na anaktoume kai na
epejergazomaste thn plhroforia kai na ta kanoyme ola ayta grhgora,
ejoikonomwntas etsi xrono. Taytoxrona, to susthma prepei na einai
aplo, ajiopisto, oikonomiko kai polu eukolo sth xrhsh toy. H Bash
Dedomenwn einai SYSTHMA ZWTIKHS SHMASIAS gia ka8e etairia ston kosmo
mia kai se ayth apo8hkeuontai polu shmantikes plhrofories. Ta pio
dhmofilh systhmata basewn dedomenwn basizontai stis SQL prodiagrafes
toy Die8nous Organismou Protupwn ISO (International Standard
Organisation) oi opoies basizontai me th seira toys sto protypo ANSI
SQL (Amerikaniko). Oi trexoyses prodiagrafes poy xrhsimopoiountai
eyrews einai oi ISO/ANSI SQL 1992. To mellontiko protypo einai to SQL
1998/99 gnwsto kai san SQL-3 kai anaptussetai akomh. Dhmofileis baseis
opws h Oracle, h Sybase kai Informix einai systhmata basismena se ayta
ta protypa h prospa8oun na ta ylopoihsoyn.
Opws fainetai se ayto to keimeno, yparxoyn perissotera apo 20
diaforetika systhmata basewn dedomenwn, emporika/basismena sto
internet, poy xrhsimopoiountai se olo ton kosmo kai polla perissotera
8a emfanistoun sto prosexes mellon. Xwris ena protypo opws to
ANSI/ISO SQL, 8a htan polu duskolo gia ton pelath na anaptujei mia
efarmogh mia mono fora kai na th trexei se ola ta systhmata basewn
dedomenwn. O shmerinos pelaths 8elei na anaptujei mia efarmogh mia
fora xrhsimopoiwntas ISO SQL, ODBC, JDBC kai na thn poylhsei wste na
xrhsimopoieitai se ola ta diaforetika systhmata basewn dedomenwn ston
kosmo.
H dhmofilesterh pagkosmiws DWREAN bash, poy ylopoiei tmhma toy ISO
SQL, ANSI SQL/98, SQL/92 kai ANSI SQL/89 RDBMS einai h PostgreSQL. H
PostgreSQL einai h Antikeimenostrafhs Sxesiakh SQL Bash epomenhs
genias kai ta mellontika protypa ANSI SQL opws to SQL 1998 (SQL-3) kai
pera 8a asxolountai olo kai perissotero me Antikeimenostrafeis Baseis
kai tupoys dedomenwn Antikeimenoy (Object data types). H PostgreSQL
einai to mono dwrean RDBMS ston kosmo poy yposthrizei
Antikeimenostrafeis Baseis kai SQL. Ayto to keimeno 8a sas pei pws na
egkatasthsete th bash kai, epishs, ola ta paketa sxetika me baseis,
pws na egkatasthsete Web database, application database, grafika
programmata epikoinwnias kai xeirismou (front end GUIs kai programmata
interface). Sas symboyleuoyme na gracete OPWSDHPOTE tis efarmoges
basewn 100 % symbates me ta protypa ISO/ANSI SQL, ODBC, JDBC, etsi
wste h efarmogh sas na einai metafersimh se polles baseis opws oi
PostgreSQL, Oracle, Sybase, Informix klp.
Me thn PostgreSQL, 8a exete thn ychloterh poiothta kai polla alla
xarakthristika mia kai akoloy8ei to 'Anoikto Montelo Anaptyjhs Phgaioy
Kwdika' (Open Source Code development). To Anoikto montelo Anaptyjhs
Phgaioy Kwdika einai to mono toy opoioy mporeite na parete olon ton
phgaio kwdika, kai h anaptyjh ginetai sto internet apo ejairetika
megalo diktyo an8rwpinwn myalwn. H mellontikh moda problepei oti h
megaluterh anaptyjh logismikou 8a ginetai sthn apokaloumenh
"Yperlewforo Plhroforiwn" (Information Super-Highway) poy diatrexei
olo ton kosmo. Sta xronia poy erxontai, h anaptyjh toy internet 8a
einai ekrhktikh h opoia me th seira ths 8a pyrodothsei th grhgorh
yio8ethsh ths PostgreSQL apo toys pelates.
Efarmozontas tis arxes ths fysikhs (kbantomhxanikh, klassikh,
8ermodynamikh), twn ma8hmatikwn kai ths statistikhs sthn poiothta toy
logismikou, pairnete thn ychloterh poiothta logismikou mono se ena
'Anoikto Susthma Phgaioy Kwdika' opws h PostgreSQL anoigontas ton
phgaio kwdika se ena pelwrio ari8mo an8rwpinwn myalwn diasyndedemenwn
mesw ths Yperlewforoy Plhroforiwn. Oso megaluteros o ari8mos twn
an8rwpwn poy ergazontai panw s' ayto, toso kaluterh 8a einai h
poiothta toy logismikou. To Anoikto Montelo Phgaioy Kwdika 8a
empodisei epishs thn anakalych toy troxou apo thn arxh , 8a meiwsei th
diplh doyleia kai 8a einai polu oikonomiko, 8a ejoikonomei xrono sth
dianomh kai akoloy8ei toys nomoys ths monternas oikonomias gia
beltistopoihsh twn e8nikwn kai genikwn porwn. Otan mia ergasia
logismikou exei ginei apo alloys, tote DEN xreiazetai na thn kanete
eseis pali. De 8a spatalhsete ton polutimo xrono sas se kati poy exei
hdh ginei kala. Ka8ws 8a mpainoyme ston 21o aiwna, 8a yparxei allagh
ston tropo poy pairnoyme to logismiko gia xrhsh. Oi pelates 8a
protimoun ta anoikta systhmata logismikou opws h PostgreSQL, to Linux
klp.
An agorasete ektelesima programmata, de 8a parete kai ton kwdika kai
ta dikaiwmata toy. O phgaios kwdikas einai anektimhto stoixeio enw ta
ektelesima den exoyn kamia ajia. To na agorasete logismiko mporei na
anhkei sto parel8on. Gia na agorasete kalo yliko (hardware), ajizei
na jodecete xrhmata kai na parete to logismiko apo to internet.
Shmantiko shmeio einai to yliko toy ypologisth to opoio kanei ton
kurio ogko ths doyleias. To yliko einai to alogo poy kanei th doyleia
enw to logismiko apla to odhgei. To yliko twn ypologistwn einai polu
poluploko kai mono 6 apo tis 180 xwres ston kosmo mexri twra exoyn
epideijei thn ikanothta sxediasmou kai kataskeyhs plaketwn/ylikou
ypologistwn. O sxediasmos kai h kataskeyh chips ypologistwn einai
prohgmenh texnologia. Einai mia polu sun8eth diadikasia, dapanhrh,
apaitei megales ependuseis se ergostasia kai mhxanes paragwghs poy
doyleuoyn me texnologia 0.18 micron. Se ena mikro chip silikonhs
ekatommuria tranzistors/kyklwmata einai stena paketarismena. Etaireies
opws oi AMD, Intel, Cyrix, Hitachi, IBM kai alles jodecan shmantiko
ari8mo apo an8rwpoxronia gia na ginoyn kurioi ychlwn texnologiwn opws
h mikrohlektronikh (Micro-electronics) kai h nanohlektronikh (Nano-
electronics). Micro shmainei (ena-ekatommyriosto toy metroy 10^-6),
Nano shmainei (ena-disekatommyriosto toy metroy 10^-9). H trexoysa
texnologia xrhsimopoiei mikrohlektronikh gurw sta 0.35 micron
xrhsimopoiwntas agwgous aloyminioy, kai mege8h twn 0.25 micron
xrhsimopoiwntas agwgous hlektroniwn apo xalko. Sto kontino mas mellon
8a xrhsimopoih8ei texnologia twn 0.10 micron me xalko kai
nanohlektronikh gia na ftiajoyn tsipakia ypologisth. Oi agwgoi
aloyminioy 8a antikatasta8oun apo xalko sta chips twn ypologistwn,
ka8ws o xalkos einai kaluteros agwgos twn hlektroniwn. Sth
fwtoli8ografia, 8a xrhsimopoih8oun texnikes yperiwdoys aktinobolias,
aktines X h desmhs hlektroniwn gia xarajh kyklwmatwn me mellontika
mege8h mikrotera twn 0.15 micron.
Se 20 xronia apo twra, ta tsip silikonhs 8a antikatasta8oun apo
moriakous ypologistes kai biotsips poy 8a einai disekatommuria fores
grhgorotera apo ta tsip silikonhs. Ta moria einai ena sunolo atomwn.
Kai ta atoma einai ta mikra swmatidia poy apoteloun o,ti blepete se
ayto ton kosmo. Oi moriakoi ypologistes 8a xrhsimopoioun ta moria ths
ulhs san ypergrhgoroys diakoptes on/off. Otan o diakopths einai ON
shmainei 1, kai otan einai OFF shmainei 0. Ola ta programmata se ayton
ton kosmo basizontai sto dyadiko susthma.
O parakatw pinakas deixnei th proodo kai tis mellontikes taseis
proodoy twn chips twn ypologistwn.
Advancement of chip capabilities in future
********************************************
+--------------------------+---------+---------+---------+---------+--------+---------+
| Item/Year | 1997 | 1999 | 2001 | 2003 | 2012 | 2020 |
+--------------------------+---------+---------+---------+---------+--------+---------+
| Feature size(micron) | 0.25 | 0.18 | 0.15 | 0.13 | 0.05 |< 0.00001|
+--------------------------+---------+---------+---------+---------+--------+---------+
| Wafer size(mm) | 200 | 300 | 300 | 300 | 450 | Mol/Bio |
+--------------------------+---------+---------+---------+---------+--------+---------+
| Min Operating Voltage | 1.8-2.5 | 1.5-1.8 | 1.2-1.5 | 1.2-1.5 | 0.5-0.6| < 0.001 |
+--------------------------+---------+---------+---------+---------+--------+---------+
| Max power dissipation | 70 | 90 | 110 | 130 | 175 | 600 |
+--------------------------+---------+---------+---------+---------+--------+---------+
| On-chip frequencey (MHz) | 750 | 1,250 | 1,500 | 2,100 | 10,000 | > 50,000|
+--------------------------+---------+---------+---------+---------+--------+---------+
| DRAM capacity | 256 MB | 1 GB | 2 GB | 4 GB | 256 GB | > 1000GB|
+--------------------------+---------+---------+---------+---------+--------+---------+
Opws blepete, to yliko einai ychlhs texnologias kai shmantiko enw to
logismiko einai ligotero duskolh texnologia. Ara, h kataskeyh
ylikou/ylikwn-aga8wn einai zwtikhs shmasias gia thn e8nikh oikonomia!
Etaireies opws oi Compaq, Dell, Sun Microsystems, HP, IBM poy
kataskeyazoyn ypologistes einai oi kurioi syneisferontes sthn
oikonomia ths Amerikhs shmera kai sto mellon!!
Apo thn allh, ka8e xwra anejairetws ston kosmo anaptussei/ftiaxnei
logismiko. Sthn pragmatikothta, opoiosdhpote ston kosmo me ena mikro
PC xamhlou-kostoys mporei na dhmioyrghsei ena susthma mias bashs
dedomenwn san thn Oracle . Alla 8a toy epairne 10 xronia (o
diakomisths ths Oracle einai peripoy 10 an8rwpo-eth doyleia). Ena
an8rwpo-etos einai ena atomo poy doyleuei me plhrh apasxolhsh gia ena
oloklhro etos. An 10 an8rwpoi ergazontai gia 10 eth tote exoyn
jodeytei 10 an8rwpo-eth.
Baseis opws oi Oracle, Informix, Sybase, IBM DB2 (Unix) grafthkan se
glwssa "C" kai ta ektelesima dhmioyrgh8hkan metaglwttizontas ton
kwdika kai meta apostal8hkan stoys pelates. Oi baseis Oracle, Sybase,
Informix einai programmata 100 % "C"!!
Mia kai exei ginei pollh doyleia sthn PostgreSQL ta teleytaia 12
xronia, den exei nohma janadhmioyrghsoyme apo thn arxh mia allh bash
poy na ikanopoiei to protypo ANSI/ISO SQL. Einai megalo pleonekthma na
xrhsimopoihsoyme ton yparxonta kwdika kai na pros8esoyme ta
xarakthristika poy leipoyn h pros8hkes sthn PostgreSQL kai na
arxisoyme na th xrhsimopoioume amesws.
H PostgreSQL den einai apla mia dwrean bash alla ena kalhs poiothtas
'Proion Internet'. Problepetai oti h zhthsh proiontwn "Made By
Internet" 8a ayjh8ei ek8etika mia kai einai ikano na diathrei ychlh
poiothta, xamhlo kostos, ejairetika megalh bash xrhstwn kai atomwn poy
anaptussoyn kwdika. Ayta ta e8nh poy de xrhsimopoioun ta proionta
'Made By Internet' 8a xasoyn sobara thn "Epanastash World-wide
Internet" kai 8a meinoyn polu pisw apo tis alles xwres. O logos einai
oti to idio to "Internet" einai h megaluterh etaireia paragwghs
logismikou se olo ton kosmo!
2. Alles Morfes aytou toy keimenoy
Ayto to keimeno einai typwmeno se 10 diaforetikes morfes, onomastika -
DVI, Postscript, Latex, LyX, GNU-info, HTML, RTF (Rich Text Format),
Plain-text, Selides boh8eias Unix (Unix man pages) kai SGML.
· Mporeite na parete ayto to keimeno HOWTO san ena arxeio tar se
morfh HTML, DVI, Postscript h SGML apo to -
· H aplh morfh keimenoy brisketai sto:
· Gia sxolia, parathrhseis, dior8wseis, enhmerwseis peri ths
Ellhnikhs metafrashs aytou toy HOWTO, steilte email sthn Boula
Sanida : voulariba@hellug.gr h ston Eyripidh Papakwsta :
evris@hellug.gr kai enallaktika : ep@rocketmail.com
· Metafraseis se alles glwsses opws Gallika, Germanika, Ispanika,
Kinezika, Giapwnezika briskontai sto
Opoiadhpote boh8eia
gia metafrash se alles glwsses einai eyprosdekth.
To keimeno grafthke xrhsimopoiwntas ta "ergaleia SGML" ta opoia 8a
ta breite sto - Afou
metaglwttisete ton kwdika 8a exete entoles opws
· sgml2html databasehowto.sgml (gia na dhmioyrghsete arxeia html)
· sgml2rtf databasehowto.sgml (gia na dhmioyrghsete arxeia RTF)
· sgml2latex databasehowto.sgml (gia na dhmioyrghsete arxeia
latex)
To keimeno brisketai sto -
·
Mporeite epishs na breite to keimeno sta parakatw mirrors sites -
·
·
·
·
· Alla mirror sites konta sas (network-address-wise) mporeite na
breite sto dialejte ena
site kai phgainete ston katalogo /LDP/HOWTO/PostgreSQL-HOWTO.html
Gia na deite to keimeno se morfh dvi, xrhsimopoihste to programma
xdvi. To programma xdvi brisketai sto paketo tetex-xdvi*.rpm sto
Redhat Linux to opoio brisketai sta koympia ControlPanel |
Applications | Publishing | TeX menu. Gia na diabasete keimeno dvi
dwste thn entolh -
xdvi -geometry 80x90 howto.dvi
kai allajte to mege8os toy para8uroy me to pontiki. Deite th selida
boh8eias gia to xdvi.
Gia na metakinh8eite xrhsimopoihste ta belakia, ta plhktra Page Up,
Page Down, mporeite na xrhsimopoihsete epishs ta grammata 'f', 'd',
'u', 'c', 'l', 'r', 'p', 'n' gia na metakinh8eite pros ta panw, katw,
sto kentro, sthn epomenh selida, sthn prohgoumenh selida klp.
Gia na apenergopoihsete to expert menou pathste 'x'. Mporeite na
diabasete arxeia postscript xrhsimopoiwntas to 'gv' (ghostview) h
'ghostscript'. To programma ghostscript brisketai sto paketo
ghostscript*.rpm kai to programma gv sto paketo gv*.rpm sto Redhat
Linux to opoio brisketai sta koympia twn menou ControlPanel |
Applications | Graphics. To programma gv einai polu pio filiko sto
xrhsth apo to ghostscript. To ghostscript kai to gv einai epishs
dia8esima kai se alles platformes opws se OS/2, Windows 95 kai NT,
blepete ayto to keimeno akomh kai se aytes tis platformes.
Gia na diabasete keimeno postscript dwste thn entolh -
gv howto.ps
Gia na xrhsimopoihsete to ghostscript thn entolh -
ghostscript howto.ps
PROSOXH: To keimeno ayto einai megalo, o synolikos ari8mos selidwn (se
postscript) an typw8ei 8a einai peripoy 113 selides sta Agglika (sta
ellhnika 8a prepei na einai perissoteres).
Mporeite na diabasete to keimeno se morfh HTML xrhsimopoiwntas
Netscape Navigator, Microsoft Internet explorer, Redhat Baron Web
browser h opoiodhpote apo toys alloys 10 web browsers.
Mporeite na diabasete thn ejodo toy se latex, LyX xrhsimopoiwntas to
LyX, ena X-Windows grafiko programma diasundeshs me latex.
3. Oi nomoi ths Fysikhs efarmozontai sto logismiko!
Se ayto to kefalaio, 8a sas deijoyme pws h episthmh paizei shmantiko
rolo sth dhmioyrgia diaforwn antikeimenwn opws to logismiko, to
sumpan, ta atoma, thn energeia akoma kai esas toys idioys! Ayto to
kefalaio 8a sas deijei epishs giati h gnwsh ths episthmhs einai polu
shmantikh PRIN na jekinhsete na xrhsimopoieite ta proionta ths. Ta
antikeimena perilambanoyn o,tidhpote - gia paradeigma h PostgreSQL, o
xronos, h maza, h energeia, oi planhtes, o hlios, to feggari, ta
asteria, oi galajies, oi an8rwpoi klp... einai antikeimena
dhmioyrghmata ths episthmhs. Ayto to kefalaio perigrafei epishs pws
oi nomoi ths episthmhs kai h statistikh eynooun ta systhmata open-
source code opws h PostgreSQL kai to Linux. Ka8ws h taxuthta sto
diadiktyo ayjanetai ka8hmerina, kai to diadiktyo ginetai oloena kai
pio sta8ero, ta systhmata open-source code gnwrizoyn grhgorh anaptyjh.
Kai an oi statistikoi kanones kai oi nomoi ths fysikhs einai swstoi,
ta systhmata closed source-code 8a afanistoun telika apo ton planhth.
Oi paragrafoi poy akoloy8oun parakatw 8a sas deijoyn - "poso aperanth
einai h episthmh, poso shmantikh einai gia ton an8rwpo kai pws epidra
se erga logismikou opws h PostgreSQL, to Linux".
To na anaptujete ena project opws h PostgreSQL, apaitei energeia kai
xrono, ara h PostgreSQL einai proion energeias kai xronoy. Mia kai h
energeia kai o xronos mporoun na ejhgh8oun mono episthmonika, yparxei
mia amfidromh sxesh metaju ths fysikhs kai twn ergwn logismikou opws h
PostgreSQL, to Linux.
Oi episthmonikoi nomoi (Fysikh) efarmozontai pantou, synexeia, se o,ti
kanete akomh kai sta erga logismikou opws systhmata basewn dedomenwn.
H Fysikh efarmozetai akomh kai otan milate (hxhtika kumata), perpatate
(tribh metaju edafoys kai pelmatos), diabazete ena biblio h grafete
logismiko. Polloi kladoi ths episthmhs opws h fysikh, h xhmeia klp.
sygxwneuontai se mia eyreia perioxh, ta Ma8hmatika (epishs gnwsta kai
san th Basilissa olwn twn Episthmwn). Otidhpote se ayto ton kosmo
exei ba8ies rizes sta ma8hmatika, symperilambanomenhs ths PostgreSQL.
H PostgreSQL xrhsimopoiei th 'Monterna Algebra' ,ena polu mikro
parakladi twn ma8hmatikwn . H 'Monterna Algebra' asxoleitai me th
'8ewria Synolwn', th 'Sxesiakh Algebra', episthmh twn Groups, Rings,
Collections, Sets, Unions, Intersections, Exclusions, Domains, Lists,
klp...
Logismiko opws h PostgreSQL yparxei shmera logw ths energeias kai toy
xronoy. H energeia einai ayth poy dhmiourghse ton kosmo, ton
an8rwpino egkefalo kai polla alla pragmata! H maza kai h energeia
einai h IDIA ONTOTHTA! To gegonos oti h maza kai h energeia einai to
idio pragma htan agnwsto stoys an8rwpoys 100 xronia prin!
Oi kyceles ston an8rwpino egkefalo katanalwnoyn energeia ka8ws
epejergazontai (paragoyn logismiko) metatrepontas th xhmikh energeia
se 8ermikh energeia. Akomh kai twra poy diabazete ayth thn paragrafo,
oi kyceles ston egkefalo sas kaine benzinh kai xrhsimopoioun thn
energeia. Gi' ayto STAMATHSTE NA DIABAZETE TWRA! H energeia twn
neyrwnwn (kyceles ston egkefalo) mporei na metrh8ei sta ergasthria.
Gia paradeigma, yparxoyn polla organa opws oi "Anixneytes Yematwn" kai
alla iatrika organa poy mporoun na metrhsoyn thn energeia poy
katanalwnei o egkefalos.
Ola ayta yponooun oti o an8rwpinos egkefalos einai mia 8ermodynamikh
phgh energeias. Epeidh o an8rwpos einai mia 8ermodynamikh phgh
energeias, oi nomoi ths 8ermodynamikhs efarmozontai ston egkefalo kai
etsi h 8ermodynamikh exei emmesa apotelesmata se logismiko opws h
PostgreSQL.
Opws se ka8e episthmh, einai adunato na xtisete opoiodhpote susthma h
8ewria (symperilambanomenoy enos systhmatos basewn dedomenwn) poy na
einai 100 % teleio kai xwris sfalmata. Einai sa na kynhgate enan
anemostrobilo , de 8a kataferoyme POTE na ftiajoyme to teleio susthma
h 8ewria. Leptomereis ma8hmatikes ejiswseis/syzhthseis gia thn
apodeijh ths uparjhs enos 'teleioy systhmatos' einai adunato na ginoyn
edw ka8ws jeperna to skopo aytou toy keimenoy.
Kai mia tetoia ma8hmatikh syzhthsh asxoleitai me ton apeiro ari8mo
diastasewn poy yparxoyn sth fush. Dystyxws, oi an8rwpoi mporoun na
doyn h na niwsoyn 4 diastaseis alla ta ma8hmatika mporoun na
ejereynhsoyn eukola kai alles diastaseis.
Alles diastaseis einai 'apeira mikroteres' apo ta atoma kai ta idia ta
atoma einai me th seira toys polu mikra kai to an8rwpino mati de
mporei na ta jexwrisei! Ta Ma8hmatika einai polu isxyra mia kai
mporoun na analusoyn kai na ejhghsoyn th gennhsh/ 8anato olhs ths
yfhlioy. O kosmos mas exei sxedon mhdeniko mege8os an ton koitajete
apo allo sumpan kai antistrofa. Ayto shmainei oti o kosmos mas den
einai oratos (den yparxei) gia ta atoma poy briskontai se allo sumpan.
Kai antistrofa! 8ewrhtika, mporeite na bgeite apo ton kosmo mas kai
na tajidecete megales apostaseis (disekatommuria eth fwtos) se
elaxisto xrono kai na janampeite ston kosmo mas se ena diaforetiko
shmeio toy xwroxronoy! H apostash metaju toy kosmoy mas kai twn allwn
kosmwn einai pragmatika mhdenikos!
Akomh kai an yparxei apeiros ari8mos diastasewn, mporoun oles na
prokucoyn/ dhmioyrgh8oun apo ena mikro ari8mo KYRIWN diastasewn.
Apeiros ari8mos diastasewn mporoun na syndyastoun kai na katalhjoyn
se kuries diastaseis. Oi kuries diastaseis apla aporrofoun tis alles
diastaseis xwris aytes na katastrefontai. Oi ma8hmatikoi
xrhsimopoioun aytes tis kuries diastaseis gia na katanohsoyn th
gennhsh kai to 8anato toy sumpantos. O kosmos ston opoio zeite shmera
dhmioyrgh8hke me to BIG BANG disekatommuria xronia prin (sxedon 20
disekatommuria xronia prin) to opoio dhmioyrgh8hke apo
allhlepidraseis atomikwn swmatidiwn allwn diastasewn. Ligo prin to
big bang yphrxe ena polu mikro shmeio opoy to mhkos, to platos kai to
ucos htan MHDEN (dhladh, o kosmos mas den yphrxe ekei!!) enw yphrxe to
ypoloipo sumpan kai oi kuries diastaseis. Ekeinh th xronikh stigmh den
yphrxan atoma, asteria, planhtes kai galajies! Ta atoma mesa sto swma
sas den yphrxan ekei! Exoyn ginei, loipon, tosa polla pragmata PRIN
na gennh8eite!
To Big bang kai epomenws kai h gennhsh toy kosmoy mas proklh8hke apo
liga atoma kuriwn diastasewn. KAPOIOS (kati;) prokalese th syntribh
elaxistwn polu mikrwn atomwn allwn diastasewn me apotelesma th
dhmioyrgia toy kosmoy mas, kai gennh8hkan nees diastaseis xronoy,
mhkoys, platoys, ucoys ! Blepoyme to xeri kapoioy se ayth th
diadikasia. Ayth h diadikasia den einai kai polu katanohth apo ton
an8rwpo.
O an8rwpos prospa8ei na dhmioyrghsei enan allo kosmo sto ergasthrio
prosomoiwnontas to gegonos big bang (brisketai ypo kataskeyh enas
terastios epitaxynths sthn Eyrwph, allh mia kataskeyh sto Ntalas, h
Amerikh stamathse logw perikopwn ston proupologismo). Yparxoyn atoma
allwn diastasewn, opws exoyme ki emeis atoma ston diko mas kosmo.
8ewrhtika, mporeite na dhmioyrghsete/paragete apeiro ari8mo kosmwn!
Ayth h diadikasia einai antistrepth, dhladh o kosmos mas mporei na
syrriknw8ei se merika atoma allwn diastasewn! Einai paromoio me to na
gennh8hkate apo duo mikroskopikes kyceles oi opoies 8a sygkroystoun
gia na dhmioyrghsoyn mia mono kycelh. Ayth h monh mikroskopikh
kycelida diaire8hke kai pollaplasiasthke se 6 trisekatommuria
kycelides mexri na ginei enas an8rwpos ucoys 6 podia (dhladh eseis!).
Yparxoyn merikes omoiothtes metaju an8rwpoy kai sumpantos, to sumpan
gennietai kai argotera pe8ainei opws kai oi an8rwpoi. Mia kai einai
adunath mia TELEIA katastash (opws kai h APOLYTWS MH TELEIA
katastash), oi kosmoi san toys dikous mas genniountai kai pe8ainoyn
argotera me mia kyklikh diadikasia. ALLA den yparxei TELEIOS 8anatos,
mono metasxhmatismos epitrepetai apo thn episthmh! O kosmos mas
megalwnei me taxutato ry8mo, den einai statikos, anti8eta einai polu
dynamikos. Aytos o kosmos 8a synexisei na megalwnei wspoy na
paremblh8ei kati poy 8a katastrecei ton kosmo mas efarmozontas
dynameis me ejwterikes diastaseis poy 8a aporrofhsoyn kai 8a
ejafanisoyn ton kosmo mas! Yparxoyn duo pi8anothtes - na apomakryn8ei
h maza apo ton kosmo mas mesw twn maurwn trypwn (argh diadikasia), h
na proste8ei kai allh maza ston kosmo mas mesw twn asprwn trypwn
(grhgorh diadikasia megalhs sugkroyshs). Mporei na yparxoyn
ekatommuria kosmoi alla ligoi einai aytoi poy dhmioyrgh8hkan apo
kuries diastaseis. Den exete ftiaxtei mono apo atoma aytou toy kosmoy
alla kai apo atoma allwn diastasewn! Stis maures trupes ta atoma kai
ta swmatidia toy kosmoy mas menoyn egklwbismena kai metasxhmatizontai
kai metatrepontai teleiws se swmatidia allwn diastasewn! Sto kentro
mias maurhs trupas o xronos, to platos kai to ucos einai mhden! Kai h
maurh trupa einai h porta E3ODOY/EISODOY pros kai apo alloys kosmoys.
Portes EISODOY/E3ODOY pros alloys kosmoys mporoun na anoijoyn pantou,
akomh kai mesa sto swma sas! Mporei na yparxei apeiros ari8mos
xrwmatwn, glwsswn ypologisth, sxediwn tsip ypologisth kai 8ewries alla
DEN MPOREI na yparjei ENA MONO TELEIO xrwma, glwssa ypologisth, sxedio
h susthma! Ayto poy mporeite na exete einai mono ena SXEDON TELEIO
xrwma (euros kumatos), susthma, bash dedomenwn h 8ewria! H fush einai
opws ena Kaleidoskopio.
Syndyazontas thn energeia ekatommyriwn an8rwpwn se olo ton kosmo mesw
internet, einai dynato na epiteyx8ei ena SXEDON TELEIO susthma
(symperilambanomenoy enos systhmatos basewn dedomenwn). H energeia toy
ka8e an8rwpoy atomika einai elaxisth, alla diasyndeontas ena megalo
ari8mo an8rwpwn, h synolikh energeia 8a einai terastia gia na
dhmioyrghsei ena sxedon teleio susthma. Oi an8rwpoi einai onta me
periorismenh energeia kai apo8emata, kai polu syxna se aytous
ofeilontai la8h apo apla mexri kai polu sobara. Epeidh h tash mas gia
la8h poikillei se ka8e an8rwpo analoga me tis idiaiteres
epidejiothtes, th sygkekrimenh empeiria poy exei o ka8enas kai tis
sygkyries ths sygkekrimenhs stigmhs, h anakalych kai h elattwsh twn
la8wn logismikou (bugs) poy dhmioyrgountai apo kapoio an8rwpo
dieykolunetai me th sygkentrwsh pollwn ejypnwn an8rwpwn-myalwn gia na
antimetwpisoyn to sygkekrimeno problhma. Perissotera atoma
synepagetai perissoteres an8rwpowres gia kwdika kai thn antistoixh
leitoyrgia toy.
Einai jeka8aro oti to internet mporei na diasyndesei ena terastio
ari8mo an8rwpwn, opoy oloi mazi dia8etoyn polu energeia kai xrono. Me
to syndyasmo toys mporoun na parax8oun proionta logismikou ychloterhs
poiothtas se polu ligotero xrono se sugkrish me emporikes etaireies.
Akomh kai megales etaireies opws h Microsoft, h IBM de mporoun na
yperisxusoyn kai na agnohsoyn toys nomoys ths Fysikhs alla 8a
YPOTAX8OYN telika se aytous!
Shmera, yparxoyn toses polles baseis dedomenwn se olo ton kosmo poy
stoxeuoyn mono stis prodiagrafes ANSI/ISO SQL. Oi an8rwpoi den prepei
na xaramizoyn to xrono toys gia na dhmioyrghsoyn tosa polla
PAROMOIA/OLOIDIA paketa logismikou enw yparxoyn tosoi alloi tomeis
ths episthmhs poy xreiazontai prosoxh. To symperasma einai to ejhs :
ejaitias twn nomwn ths episthmhs, ta 'anoixta systhmata phgaioy
kwdika' opws h PostgreSQL, to Linux 8a einai panta polu kalutera apo
ta 'kleista systhmata phgaioy kwdika' kai ayto einai dynato na
apodeixtei kai episthmonika.
4. Ti einai h PostgreSQL ;
H PostgreSQL ekdosh 6.4 einai mia dwrean bash, me thn opoia sas
dinetai olos o phgaios kwdikas kai einai ena Susthma
Antikeimenostrafhs-Sxesiakh Bashs Dedomenwn sxedon symbath me
(plhsiazei olo kai perissotero) me to ANSI SQL1998,92,89 kai trexei se
diaforetikes platformes hardware kai Leitoyrgika systhmata.
Merikes fores bgainoyn se kykloforia ektaktes dior8wseis, mpalwmata (patches) gia dior8wseis
la8wn meta thn ekdosh GA PostgreSQL. Mporeite na efarmosete ta proairetika patches
analoga me tis anagkes ths efarmoghs sas. Akoloy8hste ta parakatw
bhmata gia na efarmosete ta patches -
Phgainete ston katalogo poy brisketai o kwdikas ths postgresql
cd /usr/src/postgresql6.3.1
patch -p0 < patchfile
make clean
make
Deite epishs th selida boh8eias grafontas 'man patch'
Ta arxeia gia patch briskontai sto
· PostgreSQL patches :
O apolytos skopos kai o telikos stoxos ths PostgreSQL einai ginei 100
% symbath me thn ANSI/ISO SQL kai na ginei epishs h noumero ENA
Anoikth Genikh Bash ston kosmo. H PostgreSQL epishs 8a odhghsei,
diey8unei, elegjei, parakoloy8hsei kai ypagoreusei to mellon ths
ANSI/ISO SQL. Ayto giati, h ylopoihsh kai oi idees ginontai prwta
sthn PostgreSQL kai epeita enswmatwnontai sthn ANSI/ISO SQL.
O Informix Universal server (ekdo8hke to 1997) basizetai se
prohgoumenh ekdosh ths PostgreSQL epeidh h Informix agorase thn
Illustra Inc. kai enopoih8hke me thn Informix. H bash Illustra htan
plhrws basismenh sthn Postgres (prohgoumenh ekdosh ths PostgreSQL).
H PostgreSQL einai mia epektash toy systhmatos diaxeirishs ths bashs
dedomenwn POSTGRES, ena epomenhs genias protypo ereynas DBMS. Enw h
PostgreSQL diathrei to dynamiko montelo dedomenwn kai toys plousioys
tupoys dedomenwn ths POSTGRES, antika8ista thn glwssa erwthsewn
PostQuel me ena ektetameno yposunolo ths SQL.
H anaptyjh ths PostgreSQL ginetai apo mia omada programmatistwn sto
Internet poy einai oloi grammenoi sth lista allhlografias anaptyjhs
ths PostgreSQL. Syntonisths ths omadas einai o Marc G. Fournier
· scrappy@postgreSQL.org
Ayth h omada einai ypeu8ynh gia olh thn trexoysa kai mellontikh
anaptyjh ths PostgreSQL. Fysika, o idios o pelaths basewn
dedomenwn einai aytos poy anaptussei thn PostgreSQL! To fortio ths
anaptyjhs dianemetai se ena polu megalo ari8mo telikwn xrhstwn
basewn sto internet.
Oi syggrafeis ths PostgreSQL 1.01 einai oi Andrew Yu kai Jolly Chen.
Polloi alloi syneiseferan se ayth th metafora, to testarisma, thn
aposfalmatwsh kai thn epektash toy kwdika. O arxikos kwdikas ths
Postgres, ap' opoy proekyce h PostgreSQL, htan h prospa8eia pollwn
apofoitwn spoydastwn, metaptyxiakwn, kai proswpikou programmatistwn
poy doulecan katw apo thn epiblech toy Ka8hghth Michael Stonebraker
sto Panepisthmio ths Kalifornia, sto Berkeley.
To arxiko onoma toy logismikou sto Berkeley htan Postgres. Otan
proste8hke h leitoyrgikothta gia SQL to 1995, to onoma allaje se
Postgres95. To onoma allaje pali sto telos toy 1996 se PostgreSQL.
Ekatommuria PostgreSQL exoyn egkatasta8ei ws diakomistes basewn
dedomenwn, Web database serverskai Application data servers. Einai
polu proxwrhmenh, kai einai antikeimenostrafhs sxesiakh bash
dedomenwn (ORDBMS).
H PostgreSQL mporei na apo8hkeusei perissoteroys tupoys dedomenwn apo
toys paradosiakous tupoys dedomenwn opws integer, characters, klp. -
mporeite na dhmioyrghsete toys dikous sas orismenoys tupoys,
synarthseis, klhronomikothta klp. H PostgreSQL trexei se Solaris,
SunOS, HPUX, AIX, Linux, Irix, Digital Unix, BSDi,NetBSD, FreeBSD, SCO
unix, NEXTSTEP, Unixware kai se opoiodhpote tupo Unix. H metafora ths
se Windows 95/NT einai se ejelijh.
· Titlos: PostgreSQL SQL RDBMS Database (Susthma
Diaxeirishs Antikeimenostrafous Sxesiakhs Bashs Dedomenwn)
· Trexoysa ekdosh: 6.4
· Xronologia: H PostgreSQL einai 12 xronwn. Anaptussetai apo to
1985
· Syggrafeis: Anaptussetai apo
ekatommuria/panepisthmia/etaireies sto internet gia ta teleytaia 12
xronia
H PostgreSQL kai ta sxetika kommatia toy keimenoy ypokeintai sthn
parakatw PNEYMATIKH IDIOKTHSIA.
PostgreSQL Susthma Diaxeirishs Bashs Dedomenwn
Pneymatikh Idiokthsia (c) toy panepisthmioy ths California
Adeia gia xrhsh, antigrafh, metabolh, kai dianomh aytou toy logismiko kai ths
tekmhriwshs toy gia opoiodhpote skopo, xwris telh, kai xwris grapth symfwnia
parexetai, me thn proupo8esh oti to shmeiwma pneymatikhs idiokthsias kai
ayth kai oi parakatw duo paragrafoi 8a emfanizontai se oles tis kopies.
ME KANENAN TROPO, DEN 8A 8EWRH8EI TO PANEPISTHMIO THS KALIFORNIA NOMIKA YPEY8YNO
GIA AMESH, EMMESH, EIDIKH, TYXAIA, H PARAGWMENH ZHMIA, SYMPERILAMANOMENHS KAI THS
APWLEIAS KERDWN POY PROEKYYE APO THN XRHSH AYTOY TOY LOGISMIKOY KAI THS
TEKMHRIWSHS TOY, AKOMA KAI AN TO PANEPISTHMIO THS KALIFONIA EXEI EIDOPOIH8EI GIA
THN PI8ANOTHTA MIAS TETOIAS ZHMIAS.
TO PANEPISTHMIO THS KALIFORNIA EIDIKA APARNEITAI KA8E EGGYSHSH, SYMPERILAMBANOMENHS,
ALLA OXI PERIORISMENHS MONO SE AYTHN, THS YPONOOYMENHS EGGYHSHS XRHSHS, KAI XRHSHS
GIA KAPOIO SYGKEKRIMENO SKOPO. TO LOGISMIKO POY PAREXETAI EDW EINAI SE BASH "WS EXEI"
KAI TO PANEPISTHMIO THS KALIFORNIAS DEN EXEI YPOXREWSH GIA PAROXH SYNTHRHSHS, ENHMERWSEWN,
EMPLOYTISMWN, H TROPOPOIHSEWN.
5. Pou mporw na th brw ;
Mporeite na agorasete to CDROM Redhat Linux, Debian Linux h to
Slackware Linux poy periexoyn hdh thn Postgresql se morfh paketoy (kai
o phgaios kwdikas kai ta ektelesima) apo ta :
· Linux System Labs Web site: 7 (U.S.
dolaria)
· Cheap Bytes Inc Web site: 7 (U.S.
dolaria)
· Debian Kentriko Web site :
O organismos PostgreSQL poyla epishs ena 'PostgreSQL CDROM' poy
periexei olon ton phgaio kwdika kai ektelesima gia polla leitoyrgika
systhmata Unix kai plhrh tekmhriwsh.
· To CDROM ths PostgreSQL 8a to breite apo to kentriko Web site ths
sto : gia 29 (Amerikanika dolaria)
Dianomh ths PostgreSQL mono me ektelesima:
· Mporeite na trejete thn PostgreSQL xwris na metaglwttisete ton
kwdika. Egkatasthste ta ektelesima gia Intel-Linux apo to arxeio
postgresql-6.4.i386.rpm.
Ayto einai ena redhat 'rpm' paketo kai periexei kai ton kwdika kai
ta ektelesima gia thn PostgreSQL.
· Site me ektelesima gia Solaris, HPUX, AIX, IRIX, Linux :
An metaglwttisete ton kwdika
gia opoiadhpote platforma, parakalw steilte to sto site, mporei na
einai xrhsimo gia toys ypoloipoys.
· ftp site : Parte ta ektelesima gia Intel-Linux apo to arxeio
postgresql-6.4.i386.rpm.
Ayto einai ena redhat 'rpm' paketo kai periexei kai ton kwdika kai
ta ektelesima gia thn PostgreSQL.
WWW Web sites:
· Kentriko Web site:
· Deutero Web site:
·
·
·
·
Ta ftp sites paroysiazontai parakatw :-
· Primary FTP:
· Secondary FTP:
·
·
·
·
·
·
·
·
·
·
O phgaios kwdikas ths PostgreSQL einai epishs dia8esimos se ola ta
mirror sites toy sunsite unc (sunolo peripoy 1000 sites se olo ton
kosmo). Brisketai epishs sth dianomh toy Red Hat Linux sto arxeio
/pub/contrib/i386/postgresql.rpm .
· Gia th lista twn mirror sites phgainete sto
6. H PostgreSQL yposthrizei ejairetika megales baseis, megaluteres
apo 200 Gig
H apodosh twn 32-bit mhxanwn cpu 8a pesei grhgora otan to mege8os ths
bashs jeperasei ta 5 gig. Mporeite na trejete bash twn 30 gig se mia
32-bit cpu alla h apodosh de 8a einai kai polu entypwsiakh. Yparxoyn
periorismoi poy epiballontai apo to mege8os ths mnhmhs RAM (megisto 2
gig mono), periorismoi apo ta mege8h toy systhmatos arxeiwn kai epishs
apo to leitoyrgiko susthma.
An xreiazetai na xrhsimopoihsete ejairetika megales baseis, sas
symboyleuoyme na xrhsimopoihsete mhxanes twn 64-bit opws Digital Alpha
cpu, Sun Ultra-sparc 64-bit cpu, Silicon graphics 64-bit cpu, Intel
Merced IA-64 cpu, mhxanes HPUX 64bit, IBM 64-bit. Metaglwttiste thn
PostgreSQL se mia 64-bit cpu kai 8a mporei na yposthrizei terasties
baseis kai megala queries. H apodosh ths PostgreSQL gia erwthseis se
megaloys pinakes kai baseis 8a einai polles fores taxuterh apo thn
PostgreSQL se mhxanes me cpu 32-bit. To pleonekthma twn mhxanwn 64-bit
einai oti h deiktodothsh toy xwroy mnhmhs einai polu megalh kai to
leitoyrgiko susthma mporei na yposthrijei systhmata megalwn arxeiwn,
parexei kaluterh apodosh me megales baseis, yposthrizei polu
perissoterh mnhmh (RAM), exoyn perissoteres dynatothtes klp.
7. anaptussei to ais8hma empistosunhs ston pelath Pws mporw na emp
istey8w thn PostgreSQL ; To paketo Regression gia test
To paketo Regression gia test (src/test/regress) perilambanetai sth
dianomh kai afhste ton ypologisth sas na epalh8eusei tis stantar
leitoyrgies SQL kai tis dynatothtes epektashs ths PostgreSQL. To
paketo gia test periexei hdh ekatontades SQL test programmata.
8a prepei na xrhsimopoihsete th dunamh toy ypologisth gia na elegjete
thn PostgreSQL, anti na xrhsimopoihsete th dunamh toy an8rwpinoy
egkefaloy. Oi ypologistes mporoun na ektelesoyn test gia to logismiko
regression ekatommuria h akomh kai disekatommuria fores grhgorotera
apo oti oi an8rwpoi.
Sto prosexes mellon h taxuthta twn ypologistwn 8a einai arketa
trisekatommuria fores grhgoroteroi apo ton an8rwpino egkefalo!
Etsi, exei nohma na xrhsimopoihsoyme th dunamh toy ypologisth gia na
elegxoyme logismiko.
Mporeite na pros8esete kai alla test se periptwsh poy to xreiazeste,
kai mporeite na ta steilete sto kentriko web site ths PostgreSQL an
nomizete oti 8a einai xrhsimo se alloys sto internet. To paketo
Regression gia test enisxuei thn empistosunh toy pelath sthn
PostgreSQL kai eykolunei th grhgorh efarmogh ths PostgreSQL se
systhmata paragwghs.
To paketo Regression gia test mporei na 8ewrh8ei san ena "POLY
STA8ERO" texniko keimeno symfwnhmeno amoibaia metaju twn
programmatistwn kai twn telikwn xrhstwn. Oi programmatistes ths
PostgreSQL xrhsimopoioun ektetamena to paketo regression gia test kata
thn periodo ths anaptyjhs kai epishs prin thn ekdosh toy logismikou
sto koino gia na diasfalisoyn thn kalh poiothta.
Oi dynatothtes ths PostgreSQL antikatroptizontai sto paketo gia test
regression. Se periptwsh poy mia dynatothta, suntajh h xarakthristiko
den perilambanetai sto paketo den shmainei pws kaluptetai anagkastika
apo thn PostgreSQL. Mporeite na to elegjete, parola ayta, eseis kai na
enswmatwsete to test sas sto paketo.
8. Grafiko programma epikoinwnias (GUI FrontEnd Tool) me thn Post
greSQL
H dianomh ths PostgreSQL perilambanei mia biblio8hkh se Tcl/Tk, poy
onomazetai 'pgTcl'. H Tcl/Tk einai ena ergaleio gia grhgorh anaptyjh
efarmogwn kai mia polu dynath scripting glwssa. Anaptussete mia fora
thn efarmogh sas kai thn trexete pantou : se NT, Win 95, Linux, OS/2
kai ola ta systhmata unix. Tcl einai ta arxika toy 'Tool Command
Language' kai Tk toy 'Tool Kit'. Yparxei ena oloklhrwmeno periballon
anaptyjhs (IDE - integrated development environment) gia thn Tcl/Tk
poy legetai SpecTcl. Koitajte gi ayto to rpm paketo sth dianomh Redhat
linux h sto sunscript site poy dinetai parakatw.
Synistoume thn Perl gia glwssa programmatismou mia kai einai h pio
diadedomenh glwssa, polu isxyrh kai diati8etai gia ola ta mhxanhmata
kai oles tis platformes leitoyrgikwn. Sas symboyleuoyme na
xrhsimopoihsete Perl-Tk h Perl-Qt h C++ QtEZ h C++ Lesstiff. O
syndyasmos Perl, C kai Tk 8a ikanopoihsei tis anagkes twn perissoterwn
projects, lambanontas ypoch to dia8esimo xrono, thn taxuthta twn
ektelesimwn kai thn eykolia programmatismou. Shmeiwste oti ta
programmata se Java trexoyn polu arga. Akomh kai ta programmata poy
einai grammena se C++ trexoyn pio arga apo ta programmata poy
grafontai se C. Ta programmata se C ektelountai taxutera apo ta
antistoixa programmata grammena se opoiadhpote allh glwssa
programmatismou.
H Perl xrhsimopoieitai gia ton programmatismo toy 90 % twn internet
scripts ston kosmo. Etsi 8a exete mono mia glwssa, thn "Perl", gia
oles sas tis anagkes, se efarmoges oso kai sto internet. Deite to
Perl Database Interface aytou toy keimenoy sto ``''
8a prepei na melethsete ta dynata shmeia ths Perl se sugkrish me thn
Tcl/Tk prin jekinhsete kapoio project se Tcl. H Tcl/TK dinetai
synh8ws me ka8e linux cdrom. Mporeite epishs na th breite sta sites -
· Tcl/Tk
· Antikeimenostrafes extension ths Tcl poy onomazetai INCR sto
· Visual TCL site
· Visual TCL Redhat rpm sto
·
·
·
· Biblia anaforwn: Polla texnika biblia gia TCL/TK diati8entai sthn
agora.
9. Ergaleia enos Oloklhrwmenoy Systhmatos Anaptyjhs gia PostgreSQL
(GUI IDE)
Koitajte ta parakatw ergaleia anaptyjhs ta opoia mporeite na
xrhsimopoihsete se syndyasmo me odhgous ODBC/JDBC. Aytoi einai
paromoioi me Borland C++ Builder, Borland JBuilder.
To Vibe einai Java kai C++ IDE (Integrated Development Environment)
kai kerdise sthn Unix Episkophsh gia ta oloklhrwmena systhmata
anaptyjhs ths xronias.
· Perissoteres plhrofories gia to Vibe sto
· To 'QT' einai mia platforma anaptyjhs efarmogwn gia Windows95/NT
kai Unix kai to ftp site toy einai to
Mporeite epishs na xrhsimopoihsete Borland C++ Builder, Delphi,
Borland JBuilder, PowerBuilder se Windows95 kai na synde8eite me
thn PostgreSQL se ena susthma unix mesw odhgwn ODBC/JDBC.
Deite epishs to PERL Database Interface se ayto to keimeno sto ``'' H
Perl kai C/C++ synistantai entona san epiloges glwssas gia IDE.
Dwrean ergaleia IDE -
Deite to CDROM ths dianomhs redhat linux.
· Lesstiff Mottif Tool
· FreeBuilder
· SpecTCL
· JccWarrior
· Kanchenjunga Java RAD Tool for PostgreSQL
· Applixware Tool
· XWPE X Windows Programming Environment
· XWB X Windows Work Bench
· NEdit
10. Odhgoi Diasundeshs me thn PostgreSQL
10.1. ODBC Drivers gia thn PostgreSQL
ODBC einai akrwnumio toy 'Open DataBase Connectivity', ena dhmofiles
protypo gia prosbash se plhrofories apo diafores baseis apo
diaforetikous pwlhtes. Oi efarmoges poy exoyn graftei xrhsimopoiwntas
ODBC drivers, eggyountai oti 8a doylecoyn me diafores baseis opws
PostgreSQL, Oracle, Sybase, Informix klp.
· To PostODBC exei symperilhf8ei hdh sth dianomh. Deite to kentriko
web site . Symperilambanetai sto CDROM
ths PostgreSQL.
· H Open Link Software Corporation
poylaei ODBC gia PostgreSQL kai alles baseis. H Open Link dinei
epishs dwrean ODBC (periorismeno ari8mo xrhstwn) - tsekarete to.
· Insight ODBC gia thn PostgreSQL
Ayto einai to epishmo site
toy PostODBC.
Yparxei kapoio ergo poy onomazetai FreeODBC Pack Package. Den yparxei
s' ayto ekdosh gia PostgreSQL, isws mporeite na boh8hsete.
· Ayth einai h dwrean ekdosh
gia ODBC.
10.2. UDBC Drivers gia thn PostgreSQL
To UDBC einai mia statikh ekdosh ODBC anejarthth apo diaxeiristes
odhgwn (driver managers) kai yposthrijh DLL, xrhsimopoieitai gia na
pros8etei yposthrijh apey8eias diasundeshs me bash mesa stis
efarmoges.
· H etaireia Open Link Software poyla UDBC
gia thn PostgreSQL kai alles baseis. H Open Link dinei epishs
dwrean UDBC (periorismeno ari8mo xrhstwn) - tsekarete to.
10.3. JDBC Drivers gia thn PostgreSQL
JDBC einai akrwnumio toy 'Java DataBase Connectivity'. H Java einai
mia glwssa programmatismou anejarthtoy platformas poy anaptux8hke apo
thn Sun Microsystems. Oi programmatistes Java en8arrunontai na
grafoyn efarmoges basewn dedomenwn xrhsimopoiwntas JDBC gia na
dieykolunoyn th metafersimothta metaju basewn opws h PostgreSQL,
Oracle, informix, klp. An gracete efarmogh se Java mporeite na parete
toys odhgous JDBC gia PostgreSQL apo ta parakatw sites:
O odhgos JDBC perilambanetai hdh sth dianomh ths PostgreSQL.
· Diasundesh Java
(ths Sun) me PostgreSQL
·
· H etaireia Open Link Software poyla
JDBC gia PostgreSQL kai alles baseis. H Open Link dinei epishs
dwrean JDBC (periorismeno ari8mo xrhstwn) - tsekarete to.
· JDBC UK site
· JDBC FAQ site
Ta JDBC home, guide kai FAQ briskontai sta -
· JDBC HOME
· JDBC guide
· JDBC FAQ
10.4. Java gia PostgreSQL
Oi programmatistes Java mporei na 8ewrhsoyn ta parakatw sites polu
xrhsima gia thn PostgreSQL.
· kai deite to postgresql-
jdbc-*.rpm
·
11. Perl Database Interface (DBI) Driver gia PostgreSQL
11.1. Diasundesh Perl 5 me PostgreSQL
PERL einai akrwnumio toy 'Practical Extraction kai Report Language'.
H Perl einai dia8esimh sxedon se ka8e leitoyrgiko kai platforma
hardware. Mporeite na xrhsimopoihste Perl se Windows95/NT, ola ta Unix
(Solaris, HPUX, AIX, Linux, Irix, SCO klp.), se mainframe MVS, desktop
OS/2, OS/400, Amdahl UTS kai polla alla. H Perl trexei AKOMH kai se
polla mh dhmofilh/genika agnwsta leitoyrgika systhmata kai ylika!!
Etsi, mhn ekplageite an deite thn perl na trexei se polla oxi syxna
xrhsimopoioumena leitoyrgika.
Mporeite na fantasteite thn terastia bash xrhstwn kai programmatistwn
se Perl.
H diasundesh Perl me PostgreSQL perilambanetai sth dianomh ths
PostgreSQL. Koitajte ston katalogo src/pgsql_perl5.
· To Email gia epikoinwnia sxetika me thn Pgsql_perl5 :
E.Mergl@bawue.de
· Allh phgh einai ta -
· Perl Home page:
· Ekma8hsh ths Perl, cajte gia titlo Tutorial sto :
· To Perl FAQ einai sto :
· Grafiko periballon gia Perl, Perl-Qt :
kai cajte gia to
PerlQt-1.06-1.i386.rpm
· Grafiko periballon gia Perl, Perl-Qt :
· Grafiko periballon gia Perl, Perl-XForms :
kai cajte gia to arxeio
Xforms4Perl-0.8.4-1.i386.rpm
· Grafiko periballon gia Perl, Perl-Tk :
· Perl GUIkits :
· Perl Database Interfaces :
· Metafrasths apo Perl se "C" : kai cajte gia to Compiler-a3.tar.gz
· Metafrasths apo Perl se kelyfos Bourne :
· apo awk se perl a2p kai apo sed se perl s2p perilambanetai me th
dianomh ths PERl.
· Deite epishs ta newsgroups gia PERL sto comp.lang.perl.*
11.2. Perl Database Interface DBI
11.2.1. TI EINAI TO DBI ;
To parakatw einai apospasma apo thn kentrikh selida toy Perl DBI.
To Perl Database Interface (DBI) einai ena programmatistiko interface
(API) se Perl gia diasundesh me baseis dedomenwn. Oi prosdiorismoi
toy Perl DBI API orizoyn ena sunolo apo roytines, metablhtes kai
symbaseis poy parexoyn ena synektiko interface bashs dedomenwn
anejarthto apo thn pragmatikh bash poy xrhsimopoieitai. Oi
plhrofories gia ayto to tmhma DBI prohl8e apo to keimeno 'DBI FAQ' to
opoio exei gracei o Alligator Descartes to anaparagagame me thn adeia
toy.
· Mporeite na epikoinwnhsete me ton Alligator Descartes Hermetica sto
descarte@hermetica.com
11.2.2. Odhgos DBI gia thn PostgreSQL - DBD-Pg-0.89
Katebaste to DBD-Pg-0.89.tar.gz apo ta
· DBD-Pg-0.89 :
· Comprehensive Perl Archive Network CPAN
· Lista odhgwn DBI kai selides DBI module
· Plhrofories gia to DBI 8a breite sto
· Kentriko ftp site
· Diafora DBI link
· Diafora DBI link
· Diafora DBI link
· H bash PostgreSQL
APAITHSEIS:
· - na xtisete, na testarete kai na egkatasthsete thn Perl 5
(toylaxiston thn 5.002)
· - na xtisete, na testarete kai na egkatasthsete to module DBI
(toylaxiston to 0.89)
· - na xtisete, na testarete kai na egkatasthsete thn PostgreSQL
(toylaxiston thn 6.2)
11.2.3. Texnikh yposthrijh gia to DBI
Parakalw steilte ta sxolia sas kai anafores la8wn sto
· E.Mergl@bawue.de
Symperilabete parakalw thn ejodo ths entolh perl -v, kai perl -V, thn
ekdosh ths PostgreSQL, thn ekdosh toy DBD-Pg, kai thn ekdosh toy DBI
sthn anafora la8wn.
11.2.4. Ti einai ta DBI, DBperl, Oraperl kai *perl;
Opws eipe kai o Tim Bunce, o sxediasths kai syggrafeas toy DBI:
``To DBI einai ena programmatistiko interface (API) se Perl gia
diasundesh me diasundesh me baseis dedomenwn. Oi prosdiorismoi toy DBI
API orizoyn ena sunolo apo roytines, metablhtes kai symbaseis poy
parexoyn ena synektiko interface bashs dedomenwn anejarthto apo thn
pragmatikh bash poy xrhsimopoieitai.''
Me apla logia, to DBI interface epitrepei stoys xrhstes na exoyn
diafanh prosbash se pollaplous tupoys basewn. Etsi, an syndeeste thn
Oracle, Informix, mSQL, Sybase h opoiadhpote allh bash, de xreiazetai
na gnwrizete toys ypokeimenoys mhxanismous toy epipedoy 3GL. To API
poy orizetai apo to DBI 8a doylecei se oloys toys tupoys basewn.
Ena paromoio pleonekthma einai h ikanothta na synde8eite se duo baseis
diaforetikou tupoy mesw toy idioy perl script, px, 8elete na
diabasete dedomena apo mia bash Oracle kai na ta eisagete se mia bash
Informix mesa sto idio programma. To epipedo DBI sas epitrepei na to
kanete ayto apla kai isxyra.
DBperl einai to palio onoma gia tis prodiagrafes toy interface.
Xrhsimopoieitai synh8ws gia na ypodhlwsei ta perl4 modules gia
diasundesh me baseis, opws, oraperl, isqlperl, ingperl kai loipa. Ayta
ta interfaces den eixan stantar API kai genika den yposthrizontai.
Na mia lista apo DBperl modules, to antistoixo DBI tairi toys kai
plhrofories yposthrijhs. Erwthseis sxetika me ton odhgo DBI 8a prepei
na apey8unontai sth lista allhlografias dbi-users .
Onoma Module Apaitoumenh Bash Syggrafeas DBI
------------ ----------------- ---------- ---
Sybperl Sybase Michael Peppler DBD::Sybase
http://www.mbay.net/~mpeppler
Oraperl Oracle 6 & 7 Kevin Stock DBD::Oracle
Ingperl Ingres Tim Bunce & DBD::Ingres
Ted Lemon
Interperl Interbase Buzz Moschetti DBD::Interbase
Uniperl Unify 5.0 Rick Wargo -
Pgperl Postgres Igor Metz DBD::Pg
Btreeperl NDBM John Conover SDBM;
Ctreeperl C-Tree John Conover -
Cisamperl Informix C-ISAM Mathias Koerber -
Duaperl X.500 Directory Eric Douglas -
User Agent
Parola ayta, merika DBI modules exoyn epipeda prosomoiwshs DBperl.
Etsi, h DBD::Oracle erxetai me ena epipedo prosomoiwshs Oraperl, poy
sas epitrepei na trejete klhronomika oraperl scripts xwris allages. To
epipedo prosomoiwshs metafrazei tis klhseis toy oraperl API se klhseis
DBI kai tis ektelei mesw toy DBI switch.
Na enas pinakas me plhrofories gia ta epipeda prosomoiwshs :
Module Epipedo prosomoiwshs Katastash
------ --------------------- ------
DBD::Oracle Oraperl Oloklhrwmeno
DBD::Informix Isqlperl Ypo anaptyjh
DBD::Sybase Sybperl Doyleuei; (xreiazetai epalh8eysh )
DBD::mSQL Msqlperl Ekdo8hke peiramatika me thn
DBD::mSQL-0.61
H prosomoiwsh Msqlperl einai mia eidikh periptwsh. To Msqlperl einai
enas odhgos perl5 gia mSQL baseis, alla de symmorfwnetai me tis prodi
agrafes toy DBI. H xrhsh apodokimazetai rhta gia xarh toy DBD::mSQL.
Mporeite na katebasete thn Msqlperl apo th CPAN apo to:
·
11.2.5. Prodiagrafes DBI
Yparxoyn liges phges plhroforias gia DBI.
· Prodiagrafes DBI
Yparxoyn duo prodiagrafes dia8esimes se ayto to link, oi nees
Proxeires (Draft) DBI prodiagrafes, ayto to keimeno allazei ka8hmerina
ka8ws h omada anaptyjhs badizei oros ena sta8ero interface, kai oi
palies istorikes DBperl prodiagrafes apo tis opoies anaptux8hke to
trexon DBI interface.
To teleytaio keimeno prepei na diabastei mono kai mono apo istoriko
endiaferon kai na mh xrhsimopoih8ei ws egxeiridio programmatismou, h
ws egkyro me opoiadhpote ennoia. Parola ayta, paramenei mia akomh
xrhsimh phgh anaforas.
Tekmhriwsh POD Ta PODs einai kommatia tekmhriwshs poy enswmatwnontai
synh8ws se programmata perl poy tekmhriwnoyn ton kwdika ``in place'',
parexontas ena xrhsimo boh8hma gia programmatistes kai xrhstes
modules. To POD gia DBI kai drivers ginetai olo kai perissotero
koinotopo, kai h tekmhriwsh gia ayta ta modules mporei na diabastei me
tis parakatw entoles.
Prodiagrafes DBI Ta POD gia prodiagrafes DBI mporei na diabastei me
thn entolh:
perldoc DBI
Oraperl Oi xrhstes toy epipedoy prosomoiwshs Oraperl poy erxetai mazi
me thn DBD::Oracle, mporoun na synexisoyn na diabasoyn gia to pws na
programmatisoyn me to Oraperl plhktrologwntas:
perldoc Oraperl
Ayto 8a paragei ena enhmerwmeno antigrafo ths arxikhs selidas boh8eias
oraperl, poy grafthke apo ton Kevin Stock gia perl4. To API ths
oraperl emfanizetai kai perigrafetai ekei plhrws.
DBD::mSQL Oi xrhstes toy DBD::mSQL module mporoun na diabasoyn gia
merikes private functions kai idiomorfies aytou toy odhgou (driver)
plhktrologwntas:
perldoc DBD::mSQL
Syxna Diatypwmenes Erwthseis (FAQ)
To keimeno, Frequently Asked Questions einai epishs dia8esimo ws
tekmhriwsh se POD ! Mporeite na to diabasete sto diko sas susthma,
plhktrologwntas:
perldoc DBI::FAQ
Ayto mporei na einai bolikotero gia an8rwpoys poy den einai
syndedemenoi monima h aneta, sto Internet.
To POD genika Plhroforhsh gia th syggrafh POD, kai gia thn filosofia
toy POD genikotera, mporei na diabastei grafontas:
perldoc perlpod
Xrhstes poy exoyn egkatasthsei to Tk module isws na endiaferontai na
ma8oyn pws yparxei dia8esimos enas POD anagnwsths basismenos se Tk poy
legetai tkpod, kai diamorfwnei POD se mia bolikh kai anagnwsimh morfh.
``Periplanhseis'', ``Mezedakia'' kai Parathrhseis Yparxei mia seira
apo peristasiakes ``periplanhseis'' apo diaforoys stis listes
allhlografias gia DBI.
·
``DBI -- The perl5 Database Interface'' Ayto einai ena ar8ro apo ton
Alligator Descartes kai ton Tim Bunce gia th domh toy DBI.
Dhmosieuthke sto teuxos 5 toy ``The Perl Journal''. Einai yperbolika
kalo. Phgainete kai agoraste to periodiko. Edw poy ta leme, agoraste
ola ta teuxh! ``The Perl Journal''s WWW site is:
·
``DBperl'' Ayto to ar8ro, to opoio dhmosieuthke sthn ekdosh Noembrioy
toy 1996 ``Dr. Dobbs Journal'' asxoleitai me DBperl.
``The Perl5 Database Interface'' Ayto einai ena biblio grammeno apo
ton Alligator Descartes kai ekdo8hke apo toys O'Reilly kai Associates.
Listes Allhlografias yparxoyn treis listes allhlografias gia DBI poy
diaxeirizetai o Ted Lemon. Se oles mporeite na grafteite kai na
jegrafteite apo to World Wide Web sth dieu8ynsh :
· Listes allhlografias
Oi listes stis opoies mporoun na symmetexoyn oi xrhstes einai:
dbi-announce Ayth h lista allhlografias mono gia anakoinwseis. An den
mporeite na xrhsimopoihsete thn forma ths parapanw WWW selidas,
eggrafeite sth lista me ton akoloy8o tropo:
· Email: dbi-announce-request@fugue.com
me keimeno sto swma (body) toy mhnumatos 'subscribe'
dbi-dev H lista ayth stoxeuei se xrhsh apo toys programmatistes poy
kanoyn anaptyjh, poy syzhtane idees kai ennoies gia ta twn DBI
interface, API kai driver. An den mporeite na xrhsimopoihsete thn
forma ths parapanw WWW selidas, eggrafeite sth lista me ton akoloy8o
tropo:
· Email: dbi-dev-request@fugue.com
me keimeno sto swma (body) toy mhnumatos 'subscribe'
dbi-users Ayth h lista allhlografias einai mia lista genikwn
syzhthsewn poy xrhsimopoieitai gia anafores sfalmatwn, syzhthsh
problhmatwn kai genikes anazhthseis. An den mporeite na
xrhsimopoihsete thn forma ths parapanw WWW selidas, eggrafeite sth
lista me ton akoloy8o tropo:
· Email: dbi-users-request@fugue.com
me keimeno sto swma (body) toy mhnumatos 'subscribe'
Xronika/Arxeia twn Listwn Allhlografias
· Amerikanika Arxeia Listwn Allhlografias
· Eyrwpaika Arxeia Listwn Allhlografias
11.2.6. Problhmata Metaglwttishs h alliws "Kophke stis Ejetaseis!"
An exete core dump, dokimaste to module Devel::CoreStack gia na
dhmioyrghsete ena stack trace apo to core dump. To Devel::CoreStack
brisketai sto CPAN sto:
·
Steilte Email sth lista dbi-users to stack trace, thn ekdosh twn
modules, ths perl, ta test poy kanate, thn ekdosh toy leitoyrgikou
systhmatos kai opoies alles sxetikes plhrofories. Oses perissoteres
plhrofories steilete, toso grhgorotera 8a anixneusoyn oi
programmatistes ta problhmata. An de mas steilte tipota, tote mhn
perimenete tipota kai apo emas.
-->
11.2.7. Yposthrizetai to DBI katw apo platformes Windows 95 / NT ;
H metafora twn DBI kai DBD::Oracle Win32 einai twra ena stantar tmhma
toy DBI, etsi, an katebasete ekdosh toy DBI megaluterh toy 0.81 8a
prepei na doyleuei mia xara. Mporeite na exete prosbash stis baseis
Microsoft Access kai SQL-Server apo to DBI mesw ODBC. Mazi me to
DBI-0.79 (kai metepeita) dinetai ena peiramatiko DBI 'epipedo
prosomoiwshs' gia to module Win32::ODBC. Onomazetai DBI::W32ODBC. 8a
xreiasteite to module Win32::ODBC.
· Win32 DBI
· Win32 ODBC
11.2.8. toy; Ti einai to DBM; Kai giati 8a prepei na xrhsimopoiw to
DBI sth 8esh
To UNIX eylogh8hke apo thn arxh me aples ``baseis'' basismenes se
epipeda arxeia, gnwstes san susthma dbm. To dbm sas epitrepei na
apo8hkeuete dedomena se arxeia, kai na anaktate ta dedomena grhgora
Parolayta, ayto exei kai sobara meionekthmata.
Kleidwma Arxeiwn (File Locking)
Ta systhmata dbm den pareixan idiaitera isxyres dynatothtes gia
kleidwma arxeiwn, oute kamia ikanothta gia th dior8wsh problhmatwn poy
proekyptan apo taytoxrones eggrafes [sth bash].
Ay8airetes Domes Dedomenwn (Arbitrary Data Structures)
Ta systhmata dbm epitrepoyn mono mia sta8erh domh dedomenwn: zeygaria
kleidiwn-timwn (key-value pairs). Ayth h timh mporei na einai ena
sun8eto antikeimeno, opws ena [ C ] struct, alla to kleidi prepei na
einai monadiko. Ayto htan megalos periorismos sth xrhsimothta twn
systhmatwn dbm.
Parolayta, ta systhmata dbm akoma einai xrhsima gia xrhstes me apla
sunola dedomenwn kai periorismenoys poroys, mia kai einai grhgora,
dynata kai ejairetika kala elegmena. Ta modules ths Perl gia thn
prosbash se systhmata dbm exoyn enswmatw8ei twra sthn dianomh ths,
mesw toy module AnyDBM_File.
Perilhptika, to DBM einai mia ikanopoihtikotath lush gia (kata kanona)
read-only baseis, h mikra kai apla sunola dedomenwn. Parolayta, gia
perissotero isxyra kai epektasima sunola dedomenwn, xwris oute kan na
anafer8oume kai se ajiopisto transactional locking, synistoume stoys
xrhstes na xrhsimopoihsoyn DBI.
11.2.9. Yposthrizetai < to tade xarakthristiko > sto DBI;
8ewrwntas oti to xarakthristiko poy zhthsate einai ena mh-stantar,
ejartwmeno apo kapoia sygkekrimenh bash, xarakthristiko, tote h
apanthsh einai oxi.
To DBI antanakla ena geniko API poy 8a doylecei gia tis perissoteres
baseis, kai den parexei kamia epipleon leitoyrgikothta gia kapoia
sygkekrimenh bash dedomenwn (database-specific functionality).
Parolayta, oi syggrafeis twn odhgwn mporoun, an to epi8ymoun, na
symperilaboyn hooks pros ejeidikeymenes leitoyrgies/xarakthristika
kapoias bashs dedomenwn mesw ths me8odoy func poy orizetai sto DBI
API. Osoi anaptussoyn scripts 8a prepei na shmeiwsoyn pws h
leitoyrgikothta poy parexetai mesw twn me8odwn func einai api8ano na
metafer8ei se alles baseis.
11.2.10. Xrhsimeuei ka8oloy to DBI gia programmatismo se CGI;
Me mia lejh, nai! To DBI einai ejairetika xrhsimo gia programmatismo
se CGI! Sthn pragmatikothta, 8a tolmousa na pw oti o programmatismos
se CGI einai mia apo tis kuries xrhseis toy DBI.
To DBI dinei thn ikanothta stoys programmatistes CGI na enisxusoyn tis
baseis poy exoyn WWW-fronted, pragma poy parexei stoys xrhstes th
dynatothta na paijoyn me terasties posothtes domhmenwn dedomenwn.
Epishs, sthn periptwsh poy ena site exei perissoterh kinhsh apo oti o
server ths bashs dedomenwn mporei na antimetwpisei, to DBI dinei th
dynatothta anaba8mishs toy server ths bashs dedomenwn sto paraskhnio,
xwris allages sta cgi scripts.
11.2.11. Pws petyxainw taxuteroys xronoys sundeshs me DBD Oracle kai
CGI;
O Apache httpd diathrei mia dejamenh (pool) apo paidia toy (httpd
children) gia na ejyphretoun tis aithseis twn clients.
Xrhsimopoiwntas to module toy Apache mod_perl toy Doug MacEachern, o
metafrasths ths perl (perl interpreter) enswmatwnetai sta paidia toy
httpd. Ta CGI, DBI, kai ta ypoloipa agaphmena sas modules mporoun na
fortw8oun kata thn ekkinhsh ka8e paidiou (child). Ayta ta modules de
8a janafortw8oun ean den allajoyn sto disko.
Gia perissoteres plhrofories sxetika me ton Apache, deite to Apache
Project's WWW site:
· Apache Project WWW site
· Mod_perl module
11.2.12. Pws epitygxanw monimes (persistent) syndeseis metaju DBI kai
CGI
Xrhsimopoiwntas to module Apache::DBI module toy Edmund Mergl, ta
logins sth bash dedomenwn apo8hkeuontai kai antistoixizontai se ena
httpd child. An h efarmogh sas basizetai se enan mono xrhsth ths
bashs dedomenwn, h sundesh mporei na ginetai me ka8e child. Mexri
shmera, oi syndeseis stis baseis dedomenwn den mporoun na moirazontai
metaju diaforetikwn paidiwn toy httpd.
Mporeite na katebasete to Apache::DBI apo th CPAN mesw:
·
11.2.13. to trexw apo ton httpd, apotygxanei!'' Giati; ``Otan trexw
ena perl script apo thn grammh entolhs, doyleuei, alla otan
Basika, enas logos gia ton opoio mporei na symbainei ayto einai oti o
xrhsths apo ton opoio trejate to script sth grammh entolwn exei swsta
ry8mismena tis metablhtes toy periballontos, sthn periptwsh toy
DBD::Oracle, metablhtes opws $ORACLE_HOME, $ORACLE_SID h TWO_TASK.
H diergasia httpd trexei synh8ws katw apo to xrhsth nobody, pragma poy
shmainei oti den exei ry8mismeno to periballon toy. Opoiodhpote script
epixeirhsei na trejei katw apo aythn thn katastash 8a apotuxei
sigoyra.
Gia na lusete ayto to problhma, 8este to periballon gia th bash sas se
ena mplok BEGIN ( ) sthn arxh toy script sas. Etsi 8a dior8w8ei to
problhma.
Paromoia, 8a prepei na elegjete to logfile me ta httpd la8h gia tyxon
endeijeis, opws kai ta ``Idiot's Guide To Solving Perl / CGI
Problems'' kai ``Perl CGI Programming FAQ'' gia perissoteres
plhrofories. Einai api8ano to problhma na exei sxesh me to DBI.
Diabaste kai ta duo ayta keimena prosektika!
· To ``Idiot's Guide To Solving Perl / CGI Problems'' 8a to breite
sto:
11.2.14. Mporw na kanw multi-threading me to DBI;
Mexri thn hmeromhnia aytou toy FAQ, oxi. H perl den yposthrizei
multi-threading. Parolayta, to multi-threading anamenetai na ginei
meros toy pyrhna ths dianomhs ths perl sthn ekdosh 5.005, poy shmainei
oti to DBI 8a mporei na yposthrizei multi-threading arketa suntoma
meta ap' ayto.
Gia na deite paradeigmata kwdika OCI gia thn Oracle poy exei multi-
threaded entoles SELECT, phgainete sto:
·
11.2.15. Pws mporw na kalesw stored procedures me to DBI;
An ypo8esoyme oti exete dhmioyrghsei mia stored procedure mesa se
kapoia bash, px, sthn Oracle, mporeite na xrhsimopoihsete to $dbh->do
gia na ektelesete amesa th diadikasia (procedure). Gia paradeigma,
$dbh->do( "BEGIN someProcedure END" );
11.2.16. Pws mporw na parw tis times poy epistrefontai apo tis stored
procedures me to DBI;
8ymh8eite, omws, na kanete elegxo gia la8h!
$sth = $dbh->prepare( "BEGIN foo(:1, :2, :3); END;" );
$sth->bind_param(1, $a);
$sth->bind_param_inout(2, \$path, 2000);
$sth->bind_param_inout(3, \$success, 2000);
$sth->execute;
11.2.17. Pws mporw na dhmioyrghsw h na katastrecw mia bash dedomenwn
me to DBI;
H dhmioyrgia kai diagrafh mias bashs einai ennoies polu afhrhmenes gia
na yposthrizontai ikanopoihtika apo to DBI. Gia paradeigma, h Oracle
den yposthrizei kan thn ennoia ths diagrafhs ths bashs! Sthn Oracle
epishs, o diakomisths ths bashs dedomenwn (database server) einai
oysiastika h bash, enw sthn mSQL, h diergasia toy diakomisth (server
process) trexei mia xara xwris na exei dhmioyrgh8ei kamia bash se
ayton. To problhma einai toso anomoio gia na to 8ijoyme.
Gi' ayto to logo, merikoi odhgoi yposthrizoyn dhmioyrgia kai diagrafh
basewn mesw twn private func methods. Deite thn tekmhriwsh twn odhgwn
poy xrhsimopoieite gia na deite an yposthrizoyn ayto to mhxanismo.
11.2.18. Pws diaxeirizetai to DBI tis times NULL ;
Oi times NULL sto DBI antimetwpizontai opws h timh undef. Oi times
NULL mporoun kataxwrh8oun stis baseis ws NULL, gia paradeigma:
$rv =
$dbh->do( "INSERT INTO table VALUES( NULL )" );
alla otan erwth8oun, oi times NULL 8a prepei na sygkri8oun me thn
undef. Ayto einai stantar gia oloys toys odhgous.
11.2.19. Ti einai aytes oi me8odoi func (func methods);
H me8odos func orizetai sto DBI san to shmeio eisodoy gia
leitoyrgikothta ejartwmenh apo th bash, px, h ikanothta na
dhmioyrghsete h na diagracete baseis. To na kalesete aytes tis
me8odoys poy ejartwntai apo toys odhgous einai aplo, gia paradeigma,
gia na kalesete th me8odo createDatabase poy pairnei mia parametro, 8a
grafame:
$rv =
$dbh->func( 'argument', 'createDatabase' );
Osoi anaptussoyn logismiko 8a prepei shmeiwsoyn oti oi me8odoi func
den einai metafersimes metaju diaforetikwn basewn.
11.2.20. Emporikh Yposthrijh kai Ekpaideysh
To Interface ths Perl5 gia baseis einai ena DWREAN logismiko. ERXETAI
XWRIS KAMIA EGGYHSH OPOIOYDHPOTE EIDOYS.
Parolayta, merikoi organismoi parexoyn eite texnikh yposthrijh eite
programmata ekma8hshs toy DBI.
Perl Clinic : H Perl Clinic mporei na kleisei symbolaia gia emporikh
yposthrijh se Perl, DBI, DBD::Oracle kai Oraperl. Yposthrijh parexetai
apo thn etaireia sthn opoia doyleuei o Tim Bunce, o syggrafeas toy
DBI. Gia perissoteres yphresies sxetika me tis yphresies toys, deite
to :
·
12. Ergaleia Diaxeirishs ths PostgreSQL
12.1. PGACCESS - Ena grafiko ergaleio gia th diaxeirish ths Post
greSQL
To PgAccess einai ena Tcl/Tk interface gia thn PostgreSQL.
Symperilambanetai hdh sth dianomh ths PostgreSQL. Rijte mia matia se
ayto to web site gia neoterh ekdosh
·
· An exete opoiodhpote sxolio, protash gia beltiwsh, mh distasete na
steilete e-mail sto : teo@flex.ro
Xarakthristika toy PgAccess
Para8yra toy PgAccess : Kentriko para8yro , dhmioyrgia pinakwn (table
builder) , Emfanish pinakwn (erwthsewn) (table(query) view),
dhmioyrgia erwthsewn optika (visual query builder).
Pinakes
· - emfanish pinakwn, megisto 200 eggrafes (allazei apo to menou
preferences)
· - allagh mege8oys sthlhs, sernontas thn ka8eth grammh (kalutera sto
xwro toy pinaka apo oti sthn epikefalida toy pinaka)
· - text wrap sta kelia - apo8hkeysh ths emfanishs ka8e pinaka
· - import/export se ejwterika arxeia (SDF,CSV)
· - dynatothtes filtrarismatos (dwste ena filtro san price>3.14)
· - dynatothtes tajinomhshs (dwste xeirokinhta to(ta) pedia pros
tajinomhsh)
· - editing in place
· - beltiwmeno boh8hma gia paragwgh pinakwn (table generator
assistant)
· - beltiwmenes dynatothtes dior8wshs pediwn
Erwthseis (Queries)
· - dhmioyrgei, dior8wnei kai apo8hkeuei "erwthseis poy ka8orizei o
xrhsths"
· - apo8hkeuei erwthseis san views
· - ektelei erwthseis
· - emfanish apotelesmatwn erwthsewn tupoy select
· - diagrafh kai allagh onomatos erwthshs
· - Grafiko xtisimo erwthshs me dynatothtes drag & drop. Gia osoys
apo esas eixate sthsei to Tcl/Tk plugin gia to Netscape Navigator,
mporeite na to deite na doyleuei patwntas edw
Sequences
· - dhmioyrgia sequences, diagrafh kai elegxos toys Synarthseis
· - dhmioyrgia, elegxos kai diagrafh synarthsewn se glwssa SQL
Mellontikes ylopoihseis
· - sxediasmos pinakwn (pros8hkh newn pediwn, allagh onomatos, klp.)
· - ka8orismos synarthshs
· - dhmioyrgia report
· - basiko scripting
An exete opoiodhpote sxolio, protash gia beltiwsh, mh distasete na
steilete e-mail sto :
· teo@flex.ro
Perissoteres plhrofories gia th biblio8hkh libgtcl
8a xreiasteite epishs na dhlwsete pros xrhsh th biblio8hkh diasundeshs
PostgreSQL se Tcl san ena Tcl/Tk 'load'-able module. Onomazetai
libpgtcl kai o phgaios kwdikas ths brisketai ston katalogo ths
PostgreSQL /src/interfaces/libpgtcl. 8a xreiasteite idiaitera, mia
biblio8hkh libpgtcl poy na mporei na fortw8ei apo Tcl/Tk. Ayto einai
diaforetiko texnika apo ena typiko PostgreSQL loadable object arxeio,
epeidh h libpgtcl einai mia syllogh apo object arxeia. Katw apo Linux,
onomazetai libpgtcl.so. Mporeite na katebasete apo edw mia ekdosh hdh
metaglwttismenh gia systhmata Linux i386. Apla antigracte to
libpgtcl.so ston katalogo biblio8hkwn toy systhmatos (/usr/lib)kai
jekinhste. Mia lush einai na afairesete apo ton phgaio kwdika th
grammh poy periexei to fortwma ths libpgtcl.so kai na fortwsete th
pgaccess.tcl oxi me wish, alla me pgwish (h wishpg) ayto to wish me to
opoio eixe ginei link me th biblio8hkh libpgtcl.
12.2. Windows Interactive Query Tool gia PostgreSQL (WISQL h MPSQL)
H MPSQL parexei stoys xrhstes ena grafiko SQL interface gia thn
PostgresSQL. H MPSQL einai paromoia me to SQL Worksheet ths Oracle
kai to ergaleio erwthsewn toy Microsoft SQL Server WISQL. Exei wraio
grafiko interface kai istoriko entolwn. Epishs mporeite na kanete cut
kai paste kai exei kai alla wraia xarakthristika poy beltiwnoyn thn
paragwgikothta.
·
· Email: keidav@whidbey.com
· sto arxeio tcl_syb/wisql.html
·
· Email: de@ucolick.org
12.3. Interactive Query Tool(ISQL) gia thn PostgreSQL - Onomazetai
PSQL
To ISQL einai gia termatika me Character command line. Perilambanetai
sth dianomh, kai legetai PSQL. Moiazei polu me to ISQL ths Sybase, kai
to SQLplus ths Oracle. Sto unix prompt dwste thn entolh 'psql' h opoia
8a sas bgalei se psql> prompt.
Pathste \h gia na deite th boh8eia twn entolwn.
Polu filiko sto xrhsth kai eukolo sth xrhsh. Mporeite na exete pros
bash se ayto kai apo scripts toy kelyfoys.
12.4. MPMGR - Ergaleio Diaxeirishs Basewn gia PostgresSQL
To MPMGR parexei ena grafiko interface diaxeirishs ths PostgresSQL. 8a
to breite sto
·
· Email: keidav@mutinybaysoftware.com
·
· Email: keidav@whidbey.com
· in file tcl_syb/wisql.html
· WISQL gia thn PostgreSQL
· Email: de@ucolick.org
13. Ry8mizontas pollapla koytia PostgreSQL se mia o8onh
Mporeite na stoibajete ta koytia-cpu kai na synde8eite se mia o8onh
kai na xrhsimopoihsete to diakopth gia na dialejete to host. Ayto
ejoikonomei xwro kai de xreiazeste polles o8ones, plhktrologia kai
pontikia (ejoikonomeite peripoy 100 me 500 US dolaria ana set) kai
glitwnete epishs apo thn akatastasia.
Xrhsimopoiwntas ayth thn texnikh, mporeite na stoibajete pollous
PostgreSQL servers (gia anaptyjh, elegxo, paragwgh), Web servers, ftp
servers, Intranet servers, Mail servers, News servers se ena polu chlo
rafi. O diakopths mporei na xrhsimopoih8ei epishs gia koytia me
Windows 95/NT h OS/2.
Rijte mia matia sta parakatw sites:
· Thlefwnikes paraggelies apo thn DataComm Warehouse Inc, se 24wrh
bash, olh thn ebdomada, sto 1-800-328-2261. Parexoyn ka8e tupo
ylikou H/Y . To 4-8yro KVM switch
(PS/2) kostizei gurw sta $89.99. Part No. DDS1354
· Network Technologies Inc
(120 dolaria/PC 8
ports) to opoio exei listes gia 'Server Switches' kai 'switches
mono gia Video '
· Scene Double Inc, Agglia
· Cybex corporation
· Raritan Inc
· RealStar Solutions Inc
· Belkin Inc
· Better Box Communications Ltd.
· Phgainete sto plhsiestero magazi hardware kai zhthste to "Server
Switch" gnwsto kai san "KVM Auto Switches".
Yajte sth mhxanh anazhthshs yahoo gia na breite perissoteres etaireies
me "Server Switches" h "KVM Switches".
Synistatai idiaitera na exete ena unix box eidika afierwmeno gia ka8e
PostgreSQL data-server gia kaluterh apodosh. Kamia allh
efarmogh/diergasia den prepei na trexei se ayto to mhxanhma. Deite to
tmhma "Epaggelmatika" stis topikes efhmerides gia topikous pwlhtes poy
pwloun mono koytia intel, 13" monoxrwmes o8ones (o8onh polu xamhlou
kostoys). Oi topikoi pwlhtes pwloun mono to hardware xwris Microsoft
Windows/DOS (etsi ejoikonomeite $ 150). De xreiazeste egxrwmh o8onh
gia to diakomisth ths bashs dedomenwn, ka8ws mporeite na kanete
apomakrysmenh diaxeirish (remote administration) apo egxrwmo sta8mo
ergasias. Parte to RedHat (h kapoia allh dianomh) Linux cdrom apo to
-
· Linux System Labs Web site: 7 (U.S.
dolaria)
· Cheap Bytes Inc Web site: 7 (U.S.
dolaria)
Sigoyreyteite oti to yliko poy agorasate yposthrizetai apo to
Redhat Linux. Deite to ftp site hs Redhat prin agorasete yliko, gia
proteinomenoys SCSI adapters, kartes binteo klp. Me $ 600 mono
mporeite na parete ena isxyro koyti intel me Redhat Linux poy
trexei PostgreSQL. Xrhsimopoihste odbc/jdbc/perl/tcl gia na
synde8eite me thn PostgreSQL apo Windows95, OS/2, Unix Motif h
kapoio web browser (p.x. Redbaron, Opera, Netscape, 20 alloi). (oi
Web browsers exoyn ginei pia standard client).
Me ayth thn idea mporeite na elegxete polla koytia cpu me mia o8onh
kai ena plhktrologio!
Parakatw 8a breite ena apospasma apo thn networktechnic Inc gia
"Server Switches"
Paraggeilete twra sto 800-742-8324 (xwris dasmous gia Amerikh)
Gia na labete ton katalogo mas parakalw steilte Email sth dieu8ynsh:
sales@networktechinc.com
XEIRISTEITE PERISSOTERA APO ENA PC me ena plhktrologio, o8onh kai
pontiki Oi hlektronikoi diakoptes epitrepoyn me ena plhktrologio,
o8onh kai pontiki na xeiris8eite 64 PC. Enswmatwmenoi mikroupologistes
prosomoiwnoyn thn paroysia plhktrologioy, o8onhs kai pontikiou me ola
ta prosarthmena PC 100% toy xronoy.
Xarakthristika kai Efarmoges
· Plhktrologio, xeiristhrio panw sth syskeyh h thlexeiristhrio
· 9 pin D Serial h 6 pin miniDIN yposthrijh gia pontiki
· 5 pin DIN h 6 pin miniDIN yposthrijh plhktrologioy
· 1600x1200 analysh o8onhs
· Xrhsimopoiei koina kalwdia
· Se Desktop kocimo h kai gia rack
Prodiagrafes - Plhktrologio
· Ola ta busmata einai 8hlyka
· 5 pin DIN h 6 pin miniDIN
· Mporei na ekkinei opoiadhpote stigmh opoiondhpote H/Y
Xeiristhrio - Mprostina Koympia
· Synde8eite se enan H/Y me to pathma enos koympiou
· Krathste pathmeno opoiodhpote koympi gia perissotero apo miso
deyterolepto kai mpeite se tropo leitoyrgias SCAN, BROADCAST h
COMMAND
· Ta LEDs ypodeiknuoyn ton tropo leitoyrgias toy plhktrologioy
· Pathste CTRL+* kai mpeite se tropo leitoyrgias COMMAND
· Einai dia8esimoi oi SCAN, BROADCAST kai COMMAND tropoi leitoyrgias
Pontiki
* 9 pin D serial
· o diakopths NTI poy prosomoiwnei to seiriako pontiki ths Microsoft
· o 9 pin D arseniko gia pontiki
· o 9 pin D 8hlyko gia toys H/Y
* 6 pin miniDIN
· o diakopths NTI poy prosomoiwnei to pontiki IBM PS/2
· o Ola ta busmata einai 8hlyka
Kalwdiako xeiristhrio/thlekontrol
· Proairetiko --8a prepei na agorastei jexwrista
· Kanei tis doyleies toy "Xeiristhrioy - Mprostinwn Koympiwn"
O8onh-VGA
· Euros 150 MHz
· 1600X1200 analysh xwris paramorfwsh
· 1/4la ta busmata einai 8hlyka
14. Efarmoges kai Ergaleia gia thn PostgreSQL
14.1. Glwssa 4hs genias (4GL) PostgreSQL gia efarmoges me web kai
bash dedomenwn - Platforma anaptyjhs AppGEN
To AppGEN mporeite na to katebasete apo to
·
· .
To AppGEN einai mia ychlou epipedoy, tetarths genias glwssa kai
platforma anaptyjhs efarmogwn gia thn paragwgh efarmogwn basismenwn
sto World Wide Web (WWW). Aytes oi efarmoges typika xrhsimopoiountai
sto internet h sto intranet enos organismou. Oi efarmoges toy AppGEN
ylopoiountai ws C scripts poy akoloy8oun ta protypa toy Common Gateway
Interface (CGI), ta opoia yposthrizontai apo toys perissoteroys Web
Servers.
Gia na xrhsimopoihsete to AppGEN 8a xreiasteite ta akoloy8a :-
Thn PostgresSQL, susthma diaxeirishs sxesiakwn basewn dedomenwn
Enan web server poy na yposthrizei CGI opws o HTTPD toy NSCA
Enan metaglwttisth ansi C opws o GCC
To AppGEN apoteleitai apo ta akoloy8a ektelesima gia Unix (Linux) :-
· defgen, to opoio paragei mia basikh protyph efarmogh (template
application) apo kapoies logikes domes dedomenwn. Oi efarmoges
mporoun na eisagoyn, enhmerwnoyn, diagrafoyn kai caxnoyn eggrafes
sthn bash dedomenwn enw parallhla diathroun aytomata kai thn
akeraiothta twn dedomenwn (referential integrity).
· appgen, o metaglwttisths AppGEN poy metaglwttizei kwdika appgen se
ektelesimo CGI C kwdika kai keimena HTML etoima gia xrhsh se enan
web server.
· dbf2sql, mia efarmogh gia metatroph arxeiwn symbatwn me dBase III
.dbf se ektelesima SQL scripts. Ayto epitrepei se dedomena poy
fylassontai sta perissotera paketa basewn dedomenwn gia DOS/Windows
na metafer8oun se enan SQL server opws h PostgresSQL.
· Epipleon, to AppGEN parexei mia syllogh apo keimena HTML , arxeia
GIF kai Java applets poy xrhsimopoiountai apo to susthma, kai
fysika, opws ka8e kalo logismiko, symperilambanei kai ton plhrh
phgaio kwdika.
Mporeite na epikoinwnhsete me ton syggrafea, Andrew Whaley, sto
· andrew@arthur.smuht.nwest.nhs.uk
14.2. WWW Web interface gia PostgresSQL - DBENGINE
To dbengine einai ena plug 'n play Web interface gia thn PostgreSQL
poy dhmioyrgh8hke apo ton Ingo Ciechowski. Brisketai sto :
·
Sxetika me to DBENGINE : To dbengine einai ena interface diasundeshs
WWW kai Postgres95 poy parexei aplh prosbash se opoiadhpote bash mesa
se liga lepta.
To PHP 3 dinei mia glwssa poy moiazei me thn Perl sta keimena sas,
alla oxi pragmatikh Perl enw to AppGen kai to wdb-p95 apaitoun na
dhmioyrghsete merika arxeia ry8misewn gia ka8e mia apo tis baseis sas
-- moiazei san na prepei prwta ap' ola na ma8ete kapoio eidos neas
glwssas prin na jekinhsete.
Anti8eta me ta alla ergaleia, den apaiteitai na ma8ete eidiko
programmatismo h kapoia scripting language gia na jekinhsete na
doyleuete me to dbengine. Den yparxei epishs kapoio arxeio ry8misewn
gia ka8e bash, etsi de xreiazetai na ejoikeiw8eite me mia nea domh.
Parolayta - se periptwsh poy 8elete na exete prosbash se ola ta
xarakthristika toy dbengine 8a htan kalh idea na ma8ete th glwssa
Perl.
Olo to susthma mporei na ry8mistei mesw aplwn xeirismwn se mia
pros8eth bash dedomenwn poy periexei plhrofories sxetika me to pws na
optikopoihsete ta dedomena sas. Mporeite epishs na orisete virtual
Fields ta opoia ypologizontai amesws prin na emfanistoun sthn o8onh.
Adeia To dbengine einai dwrean logismiko katw apo toys idioys oroys
opws kai h Perl. Diabaste thn adeia ths an den eiste sigoyroi gia ti
mporeite h den mporeite na kanete. Se telikh analysh, ayth einai mia
elastikoterh kai pio hpia ekdosh apo thn GNU adeia -- den ephreazei th
doyleia sas an 8elete na "daneisteite" kati apo to dbengine h na
sygkentrwsete kommatia apo ayto san meros enos emporikou proiontos!
14.3. Apache Webserver Module gia PostgreSQL - NeoSoft NeoWebScript
O Apache einai enas polu gnwstos Web Server. Ena module diasundeshs
PostgreSQL me ton Apache Webserver brisketai sto -
·
To NeoWebScript einai mia glwssa programmatismou poy epitrepei kai
apla kai sun8eta programmata na enswmatw8oun se arxeia HTML.
Otan zhteitai mia selida HTML poy periexei enswmatwmeno kwdika
NeoWebScript, o webserver poy yposthrizei NeoWebScript ektelei to(a)
enswmatwmena script(s), kai paragei mia web selida me periexomeno
kommeno kai rammeno stis protimhseis toy programmatisth, h opoia
dhmioyrgh8hke me ayto to programma.
To NeoWebScript einai enas grhgoros, asfalhs, eukolos tropos gia na
ma8ete isxyro, server-based programmatismo ston kwdika HTML twn web
selidwn. Me to NeoWebScript, einai eukolo na ftiajete metrhtes
(counters), formes gia email, gkrafiti stis selides, guest books kai
na kratate stoixeia gia toys episkeptes, akomh kai gia enan arxario
programmatisth. Deite poso kala to NeoWebScript krata ta dika toy se
sugkrish me thn PERL kai to JavaScript.
An 8elete na egkatasthsete to NeoWebScript ston webserver sas, o
Webmaster sas prepei na diabasei to Sysop FAQ gia na jekinhsei. H
"8ewria twn Leitoyrgiwn" (Theory of Operations) 8a ejhghsei pws
doyleuei to NeoWebScript, enw h egkatastash 8a sas ka8odhghsei sta
diafora stadia ths. H diaxeirish asxoleitai me 8emata ru8mishs kai
ekteleshs toy server, diaforoi elegxoi epalh8euoyn th swsth leitoyrgia
twn NeoWebScript sas kai h aposfalmatwsh asxoleitai me ta problhmata
toy server.
Den yparxei kanena kostos gia th xrhsh toy NeoWebScript-2.2 gia ton
ISP sas, to intranet sas h to extranet sas. 8a deite thn plhrh adeia
xrhshs, otan eggrafeite gia na to katebasete, alla h oysia einai pws
8a 8elame 99 spartarista dolaria an 8elete na to enswmatwsete sta dika
sas proionta h na to xrhsimopoihsete se enan server emporikwn
syndiallagwn (p.x. SSL).
To NeoWebScript einai ena module gia ton Apache webserver poy sas
epitrepei thn enswmatwsh ths glwssas programmatismou Tcl/Tk stis
istoselides sas san ena ergaleio scripting. Epinoh8hke apo ton Karl
Lehenbauer, ton Texniko Diey8ynth ths NeoSoft, kai tekmhriw8hke,
employtisthke kai epekta8hke apo toys programmatistes kai texnikous
syggrafeis ths NeoSoft.
O Apache webserver einai o pleon dhmofilhs webserver ston kosmo,
xrhsimopoioumenos sto 68 % twn sites poy ejetasthkan.
H Tcl/Tk einai h panisxyrh, dwrean, anejarthth platformas glwssa
scripting, poy anaptux8hke apo ton Dr. John Ousterhout. Para8etoyme ta
logia toy
"H Tcl/Tk epitrepei stoys programmatistes logismikou na kanoyn thn
doyleia deka fores taxutera apo oti xrhsimopoiwntas ergaleio8hkes
(toolkits) basismenes se C h C++. Einai epishs mia teleia glwssa
enswmatwshs hdh yparxontwn efarmogwn poy tis kanei pio grafikes kai
tis ejoplizei me Internet-ikes dynatothtes".
O Karl Lehenbauer, Idryths kai Proistamenos toy Texnikou Tmhmatos ths
NeoSoft, apotelei meros ths anaptyjhs ths Tcl/Tk apo ta prwta ths
stadia. Mazi me ton Mark Diehkans, dhmiourghsan thn Extended Tcl,
gnwsth epishs kai ws TclX h NeoSoft Tcl, ena isxyro sunolo epektasewn
sth glwssa. Polles apo tis basikes entoles ths Tcl proekycan apo thn
Extended Tcl, kai meta eishx8hsan apo ton Dr. Ousterhout sto basiko
pyrhna ths glwssas.
NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA
14.4. gia thn PostgreSQL Oi HEITML epektaseis ths HTML ston server
kai mia glwssa 4hs genias
To ergaleio heitml einai enas allos tropos gia na epikoinwnei h
postgres me to world wide web. Gia perissoteres plhrofories
epikoinwnhste me ton
Helmut Emmelmann H.E.I. Informationssyteme GmbH
Wimpfenerstrasse 23 Thl. 49-621-795141
68259 Mannheim Germany Faj. 49-621-795161
· Steilte email ston K. Helmut Emmelmann sto emmel@h-e-i.de
· H kuria selida toy Heitml
· H deytereuoysa selida toy Heitml
To heitml einai epektaseis ths HTML sthn pleyra toy server kai
taytoxrona glwssa 4hs genias. Mporeite na gracete efarmoges gia to web
se styl HTML xrhsimopoiwntas HTML-oeidh tags.
To heitml (proferete "Xai"-TiEmEl) einai epektash toy HTML kai mia
plhrws ejoplismenh glwssa 4hs genias poy epitrepei se efarmoges Web na
allhlepidroun me dedomena poy fylassontai se SQL baseis, xwris na
katafeugoyn se periploka CGI scripts.
To heitml epekteinei to HTML sthn pleyra toy server, metatrepontas
dynamika arxeia ".hei" se HTML kai einai loipon symbato me ka8e web
browser. Xrhsimopoiei thn gnwrimh, euxrhsth suntajh HTML kai parexei
plouto prokataskeyasmenwn Tags kai Biblio8hkwn gia na lusoyn 8emata
poy mexri twra xreiazontan CGI. Opws kai to XML, to heitml parexei
tags orismena apo ton xrhsth. Me to heitml ta orismena apo ton xrhsth
tags metatrepontai se HTML kai stelnontai ston browser.
To heitml stoxeuei kai stoys sxediastes HTML kai stoys epaggelmaties
programmatistes. Oi sxediastes HTML mporoun na xrhsimopoioun heitml
Tags gia na xtistoun dynamikes selides web, na prospelaunoyn SQL
baseis, h na dhmioyrgoun sun8etes efarmoges web. Metrhtes, baseis me
stoixeia kataxwrhshs, formes anazhthshs, formes email , ierarxika
menou, ola mporoun na kataskeyastoun apla xrhsimopoiwntas
proka8orismena HTML-oeidh Tags poy briskontai stis diafores
Biblio8hkes.
Gia toys programmatistes, to heitml enswmatwnei mia plhrh glwssa 4hs
genias se HTML
(p.x. , , kai Tags),
syn isxyres dynatothtes ypologismou ekfrasewn me akeraioys, pragmatik
ous, dyadikous, alfari8mhtikous, tuples telestes. Ta Tuples antimetwp
izontai opws stis monternes antikeimenostrafeis glwsses kai fylasson
tai se metablhtes swrwn (heap variable). Oi metablhtes ths heitml,
symperilambanomenwn kai olwn twn sun8etwn domwn dedomenwn, fylassontai
sto swro diathrwntas tis arxikes toys times metaju twn selidwn xrhsi
mopoiwntas to Session Mode. Einai dynaton na orisete ta dika sas tags
h tags toy periballontos kai akoma kai na epanorisete ta HTML-tags.
To heitml kanei dynato to na
- - - anaptyx8oun Web Sites me ena domhmeno kai spondylwto tropo, wste
na meiw8ei drastika h ka8ysterhsh logw synthrhshs.
- - - anaptyx8oun ejypna kai allhlepidrastika Web Sites, me
periexomeno poy prosarmozetai dynamika stis anagkes toy xrhsth.
- - - emfanisete to periexomeno SQL basewn xwris na xreiastei ka8oloy
programmatismos ektos apo to na xrhsimopoihsete th biblio8hkh mas twn
proka8orismenwn "dba" Tags.
- - - anaptyx8oun efarmoges sun8etwn basewn dedomenwn kai katalogwn
agorwn xrhsimopoiwntas tis Session Variables
To heitml trexei se Linux me opoiondhpote Web Server poy xrhsimopoiei
CGI interface, kai einai idiaitera grhgoro (apofeugontas thn
ka8ysterhsh logw CGI) me ton APACHE Web Server xrhsimopoiwntas to
Apache API. Mexri twra yposthrizontai oi baseis MSQL (ekdosh 1 kai 2),
PostgreSQL (ekdosh 6), mysql, kai h yard. To heitml doyleuei epishs se
Linux, BSDi, Solaris kai SunOS, ka8ws kai se Windows NT me CGI kai
ISAPI kai ODBC kai Windows 95.
To heitml (se linux) einai dwrean gia ereynhtikh, mh-emporikh kai
idiwtikh xrhsh. Ta emporika Web Sites prepei na plhrwsoyn telh gia thn
adeia xrhshs. H plhrhs leitoyrgikh ekdosh toy heitml einai dia8esimh
na thn katebasete gia mia periodo dokimhs dwrean. (Shmeiwste,
parolayta, oti ka8e Web selida ".hei" poy anaptussete 8a emfanizei ena
mhnyma poy 8a to xarakthrizei san ekdosh gia mh emporikh xrhsh. Meta
thn eggrafh, 8a labete ena kleidi gia na ejafanisete ayto to mhnyma
xwris na xreiastei na epanegkatasthsete to programma.)
To heitml (proferetai "Xai"-TiEmEl) epekteinei kai employtizei
shmantika th leitoyrgikothta ths HTML me ton orismo tags kai
xarakthristika plhres programmatismou. Ayto kanei dynath thn uparjh
efarmogwn dynamikou periexomenoy kai basewn dedomenwn mesa ston kosmo
ths HTML, xwris CGI kai ejwteriko scripting h alles glwsses
programmatismou. Ayto shmainei oti eseis, san syggrafeas HTML,
mporeite na pros8esete efarmoges stis web selides sas, xrhsimopoiwntas
apla merika nea tags xwris CGI kai ka8oloy programmatismo. Apo thn
allh, san proxwrhmenos xrhsths h programmatisths mporeite na
dhmioyrghsete isxyres programmatistikes biblio8hkes me tag. Ayth h
proseggish kanei to heitml katallhlo toso gia toys neofertoys sthn
HTML oso kai gia toys epaggelmaties programmatistes. To heitml trexei
sto web server kai dhmioyrgei dynamika HTML, etsi wste to heitml na
einai symbato me ta stantar toy internet kai me opoiodhpote web
browser. Epitrepei plhrh prosbash se baseis enw prostateuei to xrhsth
apo thn peritth polyplokothta toy CGI. To heitml exei anaptyx8ei
sumfwna me prosfates ereynes kai se systhmata kataskeyhs
metaglwttistwn kai dosolhciwn (transaction).
Oi selides heitml anaptussontai opws kai oi selides HTML, me enan text
editor h enan HTML editor, kai topo8etountai sto web server me to
gnwsto tropo. Parolayta, oi selides mporoun na periexoyn twra dynamika
heitml tags kai biblio8hkes tag gia prosbash se baseis. Mporeite na
xrhsimopoihsete ayta ta tags gia na exete prosbash se baseis, na
dhmioyrghsete dynamiko periexomeno, na steilete emails, kai na
dhmioyrghsete akomh isxyres efarmoges opws eggrafh se baseis kai
systhmata agorwn.
Oi neofertoi sthn glwssa HTML kai oi epaggelmaties programmatistes 8a
meinoyn ekplhktoi me to poso grhgora kai eukola mporoun na sxediasoyn
endiaferoyses efarmoges opws to Interactive Guestbook xwris na
xreiazetai na ma8oyn na grafoyn sun8eta kai poluploka CGI scripts,
apla kai mono xrhsimopoiwntas ta ergaleia poy parexontai me th dba
biblio8hkh mas.
To heitml synodeuetai apo ena megalo plh8os tag biblio8hkwn, gia na
dhmioyrghsete guestbooks, efarmoges synthrhshs ths bashs, epektasimes
formes erwthsewn, isxyres formes email h na domhste to web site sas
xrhsimopoiwntas ena ierarxiko menou. Ayta ta ergaleia einai etoima,
apla pros8este ta antistoixa tags sto web site sas.
San empeiros programmatisths, mporeite na kanete plhrh xrhsh ths
heitml arxitektonikhs dynamikwn eggrafwn: To heitml den einai apla mia
scripting glwssa me dynamikous tupoys, isxyrh ston ypologismo
ekfrasewn, anadromikes roytines kai perasma ektetamenwn parametrwn,
alla xarakthrizetai epishs apo dynamikes eggrafes gia thn aytomath
diaxeirish twn dedomenwn enos session anejarthtoy mege8oys.
14.5. America On-line AOL Web server gia PostgreSQL
O dwrean emporikos webserver, AOLserver ekdoshs 2.3 yposthrizei
syndeseis sth bash PostgreSQL ekdosh 6.2.1 kai megaluterh. Gia
perissoteres plhrofories episkefteite to
· AOL Web Server
14.6. Problem/Project Tracking System Application Tool gia PostgreSQL
Brisketai sto :
·
14.7. Metatroph arxeiwn dbase dbf se PostgreSQL
To programma dbf2msql doyleuei acoga me mSQL kai PostgreSQL. Mporeite
na to breite sto
·
·
To programma ayto grafthke apo ton Maarten Boekhold, Faculty of
Electrical Engineering TU Delft, NL Computer Architecture and Digital
Technique section
· M.Boekhold@et.tudelft.nl
Mporeite na xrhsimopoihsete epishs python gia na diabasete arxeia dbf
kai na ta fortwsete se mia bash dedomenwn postgres.
· Deite to
15. Ergaleio gia Sxediasmo/Ylopoihsh Web Basewn Dedomenwn gia thn
PostgreSQL - EARP
·
· ston katalogo 'pub/unix/earp'.
15.1. Ti einai to EARP ;
To EARP einai ena ergaleio gia sxediasmo/ylopoihsh Web basewn, poy
ka8etai panw apo to susthma bashs dedomenwn PostgreSQL. Sth
leitoyrgikothta toy perilambanontai:
· Ena susthma grafikou sxediasmou.
· Ena interface gia sendmail. (mporei na xeiristei ta eiserxomena kai
ejerxomena mail)
· Ena ayjhmeno mhxanismo asfaleias.
· Enan odhgo cgi.
15.2. Ylopoihsh
H kuria ylopoihsh toy EARP einai ena ektelesimo CGI poy trexei katw
apo to daimona http kai parexei prosbash sto diakomisth ths bashs
dedomenwn. Ola ta ergaleia sxediasmou einai xtismena mesa ston odhgo,
o sxediasmos den ginetai para mono se web. Ta idia ta ergaleia
apaitoun ena grafiko browser, h symbatothta twn antikeimenwn poy
sxediazontai me ta ergaleia einai anejarthta toy tropoy ylopoihshs,
basismena sto sxediasmo atomikwn protimhsewn.
15.3. Ti xreiazeste gia na trejete to EARP
To EARP prepei na trexei pi8ana se polles platformes me ligo h ka8oloy
metafora. Oi gnwstes platformes poy trexei einai oi ejhs:
· Solaris 2.5
· Linux 1.2.13+
· GNU C++
· PostgreSQL (ekdosh 1.01 / 1.02 )
· netsite server
· NCSA httpd
· GNU C++
· PostgreSQL (ekdosh 1.01 / 1.02 )
· NCSA httpd
· Apache httpd
H trexoysa ekdosh (1.3) toy Earp sxediasthke panw sthn ekdosh toy
libpq poy erxetai me thn PostgreSQL v1.01/1.02. An xrhsimopoieite
mia pio prosfath ekdosh ths Postgres, na perimenete pws to
programma 8a xreiastei merikes allages gia na doylecei swsta. Sthn
anaptyssomenh ekdosh (Earp 2.0), h yposthrijh libpq enswmatwnetai
san module.
15.4. Pws doyleuei ;
Ena apo ta kyriotera xarakthristika toy EARP einai oti xrhsimopoiei
Antikeimenostrafh me8odo gia na paragei html selides poy epikoinwnoun
me th bash. Oi perissoteres selides apotelountai apo diafora
antikeimena (objects). Ka8e antikeimeno paragetai apo kapoioy tupoy
ergaleio kai afou toy do8ei ena onoma, ta antikeimena syndeontai
metaju toys se mia allhloyxia poy mporei na kalestei apo to ergaleio
ths selidas (page tool). Ta antikeimena einai mporoun na
xrhsimopoih8oun apo pollaples selides. Yparxoyn basika ergaleia gia
HTML, Erwthseis (Querys), na pairnete times apo tis formes, na
formarete erwthseis kai antikeimena eisodoy, kai na syndeete metaju
toys ta antikeimena se alla antikeimena. Perissotera ejeligmena
ergaleia perilambanoyn to ergaleio gia mail kai to multithreaded
ergaleio erwthsewn.
Allo xarakthristiko toy EARP einai h ejtra asfaleia. H prosbash se
diafores perioxes toy systhmatos EARP mporei na perioristei me
diaforoys tropoys. Gia na eykolunei thn ejtra asfaleia, to EARP
elegxei gia ka8e sundesh sto susthma, kai prosdiorizei se poia ids kai
gkroyp anhkei o syndedemenos agent. H prosbash se perioxes ka8orizetai
jexwrista, kai o syndyasmos apofasizei an epitrepetai h prosbash se
mia sygkekrimenh perioxh toy Earp. Epipleon, o,ti apaiteitai gia na
ylopoihsete ta xarakthristika asfaleias einai enas http server poy
yposthrizei basiko (h kalutera) user authentication.
15.5. Pou 8a to brw ;
Mporeite na katebasete to EARP me anonymous ftp apo to
· ston katalogo 'pub/unix/earp'.
16. PHP Hypertext Preprocessor, mia scripting glwssa gia thn Post
greSQL h opoia enswmatwnetai se html kai ekteleitai sto Server
Ergaleio diasundeshs me to WWW
·
·
To palio onoma einai Professional Home Pages (PHP 3) kai to neo
onoma einai PHP Hypertext Pre-Processor
· Yparxoyn Mirror sites se polles xwres opws to
www.COUNTRYCODE.php.net
·
·
·
Gia erwthseis, steilte e-mail sto :
· rasmus@lerdorf.on.ca
To PHP 3 einai mia scripting glwssa gia thn PostgreSQL h opoia
enswmatwnetai se html kai ekteleitai sto Server. Sas epitrepei na
grafete apla scripts sta arxeia .HTML paromoia me thn JavaScript, mono
poy anti8eta me thn JavaScript, to PHP 3 den ejartatai apo to browser.
To JavaScript einai mia glwssa h opoia enswmatwnetai se html kai
trexei sto client-meros enw to PHP 3 ekteleitai sto Server. To PHP 3
einai paromoio sthn sullhch me to proion ths Netscape LiveWire Pro. An
exete ta apaitoumena xrhmata, kai trexete ton emporiko Server ths
Netscape kai exete ena apo ta yposthrizomena leitoyrgika systhmata,
isws 8a prepei na rijete mia matia sto LiveWire Pro. An sas aresei to
dwrean, taxutata anaptyssomeno logismiko poy erxetai me olo ton phgaio
kwdika pi8ana na sas aresei to PHP 3.
16.1. Kuria xarakthristika
Yposthrijh stantar CGI, FastCGI kai Apache module. San ena stantar
programma CGI, to PHP 3 mporei na egkatasta8ei se opoiadhpote mhxanh
Unix kai na trejei se opoiodhpote Unix web server. Me thn yposthrijh
toy neoy stantar FastCGI, to PHP 3 exei to pleonekthma twn beltiwsewn
sthn taxuthta poy ofeilontai se ayto to mhxanismo. San Apache module,
to PHP 3 ginetai ejairetika isxyro kai tromaktika grhgorh enallaktikh
toy programmatismou se CGI.
· Katagrafh twn prosbasewn (Access Logging) Me th dynatothta
katagrafhs twn prosbasewn toy PHP 3, oi xrhstes mporoun na
synthrhsoyn to diko toys metrhth kai katagrafea prosbasewn (hit
counting and logging). De xrhsimopoiei me kanena tropo ta kentrika
arxeia prosbashs sto susthma, kai parexei parakolou8hsh prosbasewn
se pragmatiko xrono. To Log Viewer Script parexei mia suntomh
perilhch twn prosbasewn se ena sunolo selidwn gia ka8e jexwristo
xrhsth. Epipleon, to paketo mporei na ry8mistei wste na paragei ena
footer se ka8e selida to opoio deixnei plhrofories sxetika me thn
prosbash. Deite to telos ayths ths selidas gia ena paradeigma se
ayta.
· Elegxos prosbasewn Mia enswmatwmenh o8onh, basismenh sto web,
xeirizetai tis ry8miseis gia ton elegxo twn prosbasewn. Einai
dynato na dhmioyrghsete kanones gia oles h kapoies apo tis web
selides poy exei kapoio sygkekrimeno atomo, to opoio 8etei
diaforoys periorismous gia to poios mporei na blepei aytes tis
selides kai pws 8a tis blepei. Oi selides mporei na prostateuontai
me kwdiko, na einai plhrws apagoreymenes, na einai apenergopoihmenh
h katagrafh (logging disabled) kai akomh perissotera basismena sto
domain toy client, browser,th dieu8ynsh e-mail h akomh kai to
sxetiko keimeno.
· Yposthrijh gia Postgres H Postgres einai ena ejeligmeno dwrean
RDBMS. To PHP 3 yposthrizei thn enswmatwsh Postgres95 kai
PostgresSQL SQL erwthsewn katey8eian mesa se arxeia .html.
· Yposthrijh RFC-1867 Apostolh/Anebasma Arxeiwn (File Upload) To
Upload arxeiwn einai ena neo xarakthristiko sto Netscape 2.0.
Epitrepei stoys xrhstes na steiloyn (upload) ta arxeia toys sto web
server. To PHP 3 parexei to pragmatiko Mime decoding gia na to
kanei ayto na doylecei kai epishs parexei to plaisio gia na kanete
kati xrhsimo me to arxeio poy steilate, molos to labei o server.
· HTTP-based authentication control To PHP 3 mporei na xrhsimopoih8ei
gia na dhmioyrghsei mhxanismous authentication epi paraggelia,
basismenoys se HTTP, gia ton Apache web server.
· Metablhtes, Pinakes (arrays), Sysxetistikoi pinakes (Associative
Arrays) To PHP 3 yposthrizei metablhtes tupwn (typed variables),
pinakes kai akomh kai Perl-oeideis sysxetistikous pinakes
(associative arrays). Ola ayta mporoun na pernoun apo th mia web
selida sthn allh xrhsimopoiwntas tis me8odoys twn formwn, GET h
POST.
· Conditionals, While Loops To PHP 3 yposthrizei mia glwssa scripting
me ola ta xarakthristika ths C. Mporeite na exete syn8hkes
if/then/elseif/else/endif opws kai while loops kai dhlwseis
switch/case gia na perigracei th logikh roh toy pws 8a emfanizetai
h html selida.
· Extended Regular Expressions Ta Regular expressions
xrhsimopoiountai polu gia taytopoihsh (pattern matching),
antikatasthseis twn pattern kai geniko xeirismo alfari8mhtikwn. To
PHP 3 yposthrizei oloys toys koinous telestes kanonikwn ekfrasewn.
· Raw HTTP Header Control H dynatothta na kanoyme tis web selides na
stelnoyn eidika tropopoihmenes epikefalides HTTP analoga me kapoies
syn8hkes einai aparaithto gia sxediasmo web sites ychlou epipedoy.
Syxnh xrhsh aytou, einai h apostolh mias topo8esias: URL header gia
anakateu8ynsh toy pelath poy ekane thn klhsh pros allo URL. Mporei
na xrhsimopoih8ei epishs gia na apenergopoihsoyme to caching h na
epejergastoume thn teleytaia epikefalida enhmerwshs.
· Dhmioyrgia GIF eikonas epi topoy/ston aera (On-the-fly) To PHP 3
yposthrizei th GD biblio8hkh eikonwn toy Thomas Boutell h opoia sas
dinei th dynatothta na dhmioyrghsete GIF eikones epi topoy.
· Yposthrijh ISP "Safe Mode" To PHP 3 yposthrizei to monadiko "Safe
Mode" to opoio kanei asfales to na exete pollous xrhstes na trexoyn
PHP scripts ston idio server.
· Einai dwrean! Kai to teliko oysiastiko xarakthristiko. To paketo
einai entelws dwrean. Brisketai katw apo thn adeia GPL h opoia sas
epitrepei na xrhsimopoihsete to logismiko gia opoiodhpote skopo,
emporiko h opoiondhpote allo. Deite to keimeno ths dhmosias adeias
GNU gia perissoteres leptomereies.
16.2. Anagnwrish/Eyxaristies
* Megala kommatia aytou toy kwdika anaptux8hkan sto kai gia to
Panepisthmio toy Toronto. Polles eyxaristies ston Lee Oattes toy
Tmhmatos Anaptyjhs Diktuwn toy panepisthmioy gia tis synexeis
epoikodomhtikes kritikes toy.
* O kwdikas yposthrijhs ths PostgreSQL grafthke apo ton Adam Sussman
· asussman@vidya.com
* Anari8mhtoi alloi, boh8hsan sto na elegx8ei kai na aposfalmatw8ei to
paketo.
16.3. PHP 3 - Suntomo Istoriko
To PHP jekinhse thn zwh toy ws cgi kwdikas epikalychs (cgi wrapper)
grammenos se Perl. Den proorizotan gia tipota pera apo proswpikh
xrhsh. To onoma toy prwtoy aytou paketoy htan Personal Home Page
Tools, kai argotera egine Personal Home Page Construction Kit.
Grafthke ena ergaleio gia na enswmatwnei eukola erwthseis SQL se web
selides. Htan basika ena akoma CGI wrapper poy metefraze erwthseis SQL
kai ekane thn dhmioyrgia formwn kai pinakwn apo tis erwthseis mia
eukolh ypo8esh. To ergaleio ayto onomasthke FI (Form Interpreter).
To PHP/FI ekdosh 2.0 einai ena eniaio programma, ej'oloklhroy
janagrammeno, poy apotelei ton syndyasmo twn duo parapanw paketwn.
Exei twra pia ejelix8ei se shmeio poy einai mia aplh programmatistikh
glwssa enswmatwmenh se arxeia HTML. To arxiko akrwnumio, PHP, emeine.
Den einai kan antiproswpeytiko pia. To PHP/FI xrhsimopoieitai
perissotero apo oloklhra web sites shmera, para gia mikres
egkatastaseis Proswpikwn Selidwn (Personal Home Page). Me opoio onoma,
ejaleifei thn anagkh gia ta polyari8ma mikra Perl cgi programmata,
epitrepontas sas na balete mikra scripts apey8eias sta HTML arxeia
sas. Ayto epitaxunei thn olikh taxuthta twn web pages sas, mia poy h
ka8ysterhsh toy klwnismou (forking) ths Perl se pollapla antitypa exei
ejaleif8ei. Kanei epishs eykoloterh thn diaxeirish megalwn web sites
topo8etwntas ola ta systatika mias web page se ena mono html arxeio.
Enswmatwnontas yposthrijh gia diafores baseis, kanei thn anaptyjh
selidwn-me-dynatothtes-xrhshs-bashs tetrimmenh. Polloi briskoyn thn
enswmatwmenh fush toy programmatos polu eykoloterh para to na
prospa8oun na dhmioyrgoun jexwrista arxeia HTML kai CGI.
Kata th diarkeia ayths ths tekmhriwshs, ka8e anafora sto PHP, FI h sto
PHP/FI milaei gia to idio pragma. Oi diafora metaju toy PHP kai toy FI
einai mono 8ema antilhchs. Kai ta duo xtizontai apo ton kwdika ths
idias dianomhs. Twra to PHP/FI metonomasthke se PHP 3.
16.4. Ti mporw na kanw, loipon, me to PHP/FI ;
To prwto pragma poy 8a parathrhsete an trejete mia selida mesw toy
PHP/FI einai oti pros8etei ena footer me plhrofories sxetika me ton
ari8mo prosbasewn sth selida sas (an exete metaglwttisei thn katagrafh
prosbasewn sto ektelesimo). Ayto einai ena polu mikro deigma toy ti
mporei na kanei gia sas to PHP/FI. Paizei ton ejisoy shmantiko rolo
toy metafrasth cgi se formes, apo ekei bgainei kai to FI meros toy
onomatos. Gia paradeigma, an dhmioyrghsete mia forma se mia apo tis
web selides sas, xreiazeste kati gia na epejergastei thn plhroforia se
ayth th forma. Akomh kai an apla 8elete na perasete plhroforia se mia
allh selida, 8a prepei na xrhsimopoihsete ena programma cgi gia na to
kanete ayto. To PHP/FI kanei ejairetika eukolo to na parete dedomena
apo mia forma kai na kanete kati me ayta.
16.5. Ena aplo paradeigma
As ypo8esoyme oti exete mia forma: