每次都要在新的debian下安装oracleXE. 留下记号,以查询,等有空写个on-stop-shop 脚本。
我的系统是在vmware上的镜像:
debian:/home/james# uname -a
Linux debian 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux
查看swap: is it enough?, oracle require 1G swap.
debian:/home/james# free
total used free shared buffers cached
Mem: 256972 105764 151208 0 4964 86600
-/+ buffers/cache: 14200 242772
Swap: 409616 0 409616
才400多MB的swap,不够,所以要加。do it as root.
定义swap file 的空间大小:
debian:/home/james# dd if=/dev/zero of=/swapFile bs=1M count=600
600+0 records in
600+0 records out
629145600 bytes (629 MB) copied, 9.38158 seconds, 67.1 MB/s
建立swap空间:
debian:/home/james# mkswap /swapFile
Setting up swapspace version 1, size = 629141 kB
no label, UUID=91b67b96-b916-4f86-8c3c-514571ed9612
激活swap空间:
debian:/home/james# swapon /swapFile
check it out:
debian:/home/james# free
total used free shared buffers cached
Mem: 256972 250680 6292 0 1556 232620
-/+ buffers/cache: 16504 240468
Swap: 1024008 52 1023956
好了。要让它一开机就是激活我把它设置在/etc/fstab里面了:
proc /proc proc defaults 0 0
/dev/sda5 none swap sw 0 0 《--系统原有的。
/swapFile none swap sw 0 0 〈--复制系统的然后改一下前面的名字。
加入apt-get 源:
deb http://oss.oracle.com/debian unstable main non-free
为了方便快捷加入比较快的源,日本或者台湾的服务器源:
自己玩所以用testing
##########japan#########
deb http://ftp.jp.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.jp.debian.org/debian/ testing main contrib non-free
#########taiwan###############
deb http://ftp.tw.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.tw.debian.org/debian/ testing main contrib non-free
choose one, and update
# wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | apt-key add -
# apt-get update
# apt-get install oracle-xe-uiv(国际版本)
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
so run it /etc/init.d/oracle-xe configure
set what the system tell you to do.
remember the system name and password
OK