HowTo increase the swap file of linux for install OracleXE database
[root@new-host ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 9.3G 4.5G 4.4G 51% /
/dev/hda1 92M 8.5M 78M 10% /boot
none 125M 0 125M 0% /dev/shm
.host:/ 18G 14G 3.5G 80% /mnt/hgfs
[root@new-host ~]# cat /proc/swaps
Filename Type Size Used Priority
/dev/hda2 partition 522104 336 -1
[root@new-host ~]# free -m
total used free shared buffers cached
Mem: 249 248 1 0 1 222
-/+ buffers/cache: 24 225
Swap: 509 0 509
[root@new-host home]# cd ..
[root@new-host /]# dd if=/dev/zero of=/home/swap bs=1024 count=1024000
1024000+0 records in
1024000+0 records out
[root@new-host /]# mkswap /home/swap
Setting up swapspace version 1, size = 1048571 kB
[root@new-host ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 9.3G 4.5G 4.4G 51% /
/dev/hda1 92M 8.5M 78M 10% /boot
none 125M 0 125M 0% /dev/shm
.host:/ 18G 14G 3.5G 80% /mnt/hgfs
[root@new-host ~]# cat /proc/swaps
Filename Type Size Used Priority
/dev/hda2 partition 522104 336 -1
[root@new-host ~]# free -m
total used free shared buffers cached
Mem: 249 248 1 0 1 222
-/+ buffers/cache: 24 225
Swap: 509 0 509
[root@new-host home]# cd ..
[root@new-host /]# dd if=/dev/zero of=/home/swap bs=1024 count=1024000
1024000+0 records in
1024000+0 records out
[root@new-host /]# mkswap /home/swap
Setting up swapspace version 1, size = 1048571 kB
[root@new-host /]# swapon /home/swap
[root@new-host /]# free -m
total used free shared buffers cached
Mem: 249 248 1 0 1 221
-/+ buffers/cache: 25 224
Swap: 1509 0 1509
[root@new-host /]# cat /proc/swaps
Filename Type Size Used Priority
/dev/hda2 partition 522104 328 -1
/home/swap file 1023992 0 -2
[root@new-host /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 9.3G 5.4G 3.4G 62% /
/dev/hda1 92M 8.5M 78M 10% /boot
none 125M 0 125M 0% /dev/shm
.host:/ 18G 14G 3.5G 80% /mnt/hgfs
[root@new-host /]# cd /home/
[root@new-host home]# ls
oracle postgres swap
[root@new-host /]# vi /etc/fstab
[root@new-host /]# free -m
total used free shared buffers cached
Mem: 249 248 1 0 1 221
-/+ buffers/cache: 25 224
Swap: 1509 0 1509
[root@new-host /]# cat /proc/swaps
Filename Type Size Used Priority
/dev/hda2 partition 522104 328 -1
/home/swap file 1023992 0 -2
[root@new-host /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 9.3G 5.4G 3.4G 62% /
/dev/hda1 92M 8.5M 78M 10% /boot
none 125M 0 125M 0% /dev/shm
.host:/ 18G 14G 3.5G 80% /mnt/hgfs
[root@new-host /]# cd /home/
[root@new-host home]# ls
oracle postgres swap
[root@new-host /]# vi /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda2 swap swap defaults 0 0
/home/swap swap swap defaults 0 0
# Beginning of the block added by the VMware software
.host:/ /mnt/hgfs vmhgfs defaults,ttl=5 0 0
# End of the block added by the VMware software
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda2 swap swap defaults 0 0
/home/swap swap swap defaults 0 0
# Beginning of the block added by the VMware software
.host:/ /mnt/hgfs vmhgfs defaults,ttl=5 0 0
# End of the block added by the VMware software
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
-------------------------------------------------------
[root@new-host /]# cd /mnt/hgfs/linux\ share/
[root@new-host linux share]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
Preparing... ########################################### [100%]
1:oracle-xe-univ ########################################### [100%]
Executing Post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to
configure the database.
[root@new-host linux share]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
Preparing... ########################################### [100%]
1:oracle-xe-univ ########################################### [100%]
Executing Post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to
configure the database.
[root@new-host linux share]# /etc/init.d/oracle-xe configure
Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:7070
Specify a port that will be used for the database listener [1521]:1521
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y
Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:7070/apex"
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:7070/apex"
Your sincere,
------------
Henry Zhu
2007-03-26
没有评论:
发表评论