Linux(PC-UNIX)との出会い
Turbo Linux 2.0J lite 導入
SAMBA FTPD Apacheの導入
rlp|remote printer:\ :lp=/dev/lp1:sh:\ :sd=/var/spool/lpr/rlp:\ :mx#0:\ :sh:\ :sf:\ :lf=/var/spool/lpr/rlp: |
WWWサ−バ−の立ち上げ、CGI動作確認
2台目のデータベースサーバーの構築
Oracle8.0.5 PostgreSQL 6.3.2の導入
export USERNAME BASH_ENV PATH export PATH=$ORACLE_HOME/bin:$PATH export ORACLE_BASE=/home/oracle export ORACLE_HOME=/home/oracle/8.0.5 export ORACLE_SID=ORCL export ORACLE_TERM=vt100 export LD_LIBRARY_PATH=$ORACLE_HOME/lib export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data export PATH=/bin:/usr/bin:/usr/local/bin:$ORACLE_HOME/bin export NLS_LANG=japanese_japan.ja16euc |
Oracle8.0.5 PostgreSQL 6.3.2へのデ−タ移行
接続: Oracle8 Release 8.0.5.0.0 - Production
PL/SQL Release 8.0.5.0.0 - Production
IMP-00003: Oracleエラー:942が発生しました。
ORA-00942: 表またはビューが存在しません。
IMP-00021: OSエラーが発生しました−エラー・コード(dec:84,hex:0x54)。
IMP-00023: インポート・ビューはインストールされていません。DBAに連絡してください
。
IMP-00021: OSエラーが発生しました−エラー・コード(dec:84,hex:0x54)。
IMP-00000: エラーが発生したためインポートを終了します。
IMP-00021: OSエラーが発生しました−エラー・コード(dec:84,hex:0x54)。
|
./libphp.a(crypt.o): In function `Crypt':crypt.o(.text+0x93): undefined reference to `crypt' /usr/local/pgsql/lib/libpq.a(fe-auth.o): In function`pg_password_sendauth': fe-auth.o(.text+0x17): undefined reference to `crypt'make: *** [httpd] Error 1 |
NT 対 Linuxの対決
Oracle8 Release 8.0.5.0.0 - Production
PL/SQL Release 8.0.5.0.0 - Productionに接続されました。
SQL> update emp set syain_gokei=444;
11004行が更新されました。
SQL> rollback 2 ;
ロールバックが完了しました。
|
Apache1.2.6+PHP/FI(2.0)+PostgreSQL6.3.2
32379 ? S 0:00 sleep 600 32370 ? S 0:00 /usr/local/etc/httpd/httpd -d /usr/local/etc/httpd 32371 ? S 0:00 /usr/local/etc/httpd/httpd -d /usr/local/etc/httpd 32372 ? S 0:00 /usr/local/etc/httpd/httpd -d /usr/local/etc/httpd 32373 ? S 0:00 /usr/local/etc/httpd/httpd -d /usr/local/etc/httpd 32374 ? S 0:00 /usr/local/etc/httpd/httpd -d /usr/local/etc/httpd 32375 ? S 0:00 /usr/local/etc/httpd/httpd -d /usr/local/etc/httpd 2373 ? S 0:00 (postmaster) 31970 p0 S 0:00 -bash 32104 ? S 0:00 ora_pmon_ORCL 32106 ? S 0:01 ora_dbw0_ORCL 32108 ? S 0:01 ora_lgwr_ORCL 32110 ? S 0:00 ora_ckpt_ORCL 32112 ? S 0:01 ora_smon_ORCL 32114 ? S 0:00 ora_reco_ORCL 32117 ? S 0:00 /home/oracle/8.0.5/bin/tnslsnr LISTENER -inherit |
Web連携の為のDBの作成、PHPスクリプトに挑戦
[postgres@pokemon pgsql]$ psql
Welcome to the POSTGRESQL interactive sql monitor:
Please read the file COPYRIGHT for copyright terms of POSTGRESQL
type \? for help on slash commands
type \q to quit
type \g or terminate with semicolon to execute query
You are currently connected to the database: postgres
postgres-> \l
datname |datdba|datpath
---------+------+---------
template1| 100|template1
postgres | 100|postgres
testdb | 100|testdb
syain | 100|syain
url_mgr | 100|url_mgr
drink | 100|drink
|
drink=> select * from coffee; email |name | tel| address|age|feel|dm|sex ------------------------------+----------+------------+-------+---+----+--+--- ritsuo@mxy.mesh.ne.jp |藤井律男 |0865-00-0000|笠岡市 | 42| 3| 1| 1 r_fujii@fukuyama.kkmiura.co.jp|藤井 |0865-00-0000|笠岡 | 12| 3| 2| 2 t_tomoko@mmm.biglobe.ne.jp |高橋 |0862-00-0000|倉敷市 | 16| 3| 2| 2 |
DNS、Sendmail、tcp_wrapperの設定に挑戦
[root@pokemon /]$ nslookup
Default Server: pokemon.linux.xxx.yyyx.co.jp
Address: xxx.yyy.zzz.150
Aliases: 150.zzz.yyy.xxx.in-addr.arpa
> xxx.yyy.zzz.150
Server: pokemon.linux.xxx.yyy.co.jp
Address: xxx.yyy.zzz.150
Aliases: 150.zzz.yyy.xxx.in-addr.arpa
Name: pokemon.linux.xxx.yyy.co.jp
Address: xxx.yyy.zzz.150
Aliases: 150.zzz.yyy.xxx.in-addr.arpa
|
Linux(NT)サ−バ−による業務開発に初挑戦
#!/usr/bin/perl
use 5.004;
use CGI qw(:standard);
use Postgres;
print header, start_html("Postgres connection test");
$conn = db_connect("drink")
or die "coud not connect -- $Postgres::error";
print p("Connected Database: ", $conn->db());
print p("Connected Host: ", $conn->host());
print p("Connected Options: ", $conn->options());
print p("Connected Port: ", $conn->port());
print p("Connected tty: ", $conn->tty());
print p("Connected Error Message: ", $conn->errorMessage());
print end_html;
|
Can't locate Postgres.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl . at chap7-6.pl line 5. BEGIN failed--compilation aborted at chap7-6.pl line 5. |
install_driver(pg) failed: Can't locate File/Spec.pm in @INC (@INCcontains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 |
Linuxサ−バ−+Oracle8.05によるWEB業務開発に挑戦
$name=DATA[0];
while ($name =<>) {
&jcode'convert(*name, 'euc'); }
|
最後に一言
更なる挑戦
現在までに使用した、書籍
Linux Oracle関連のリンク集