| ||
���� �������� ������, ��� ���������� Oracle ������ 8.1.x �� FreeBSD ����� ����� ���������� �� Linux, � ���������� ������������ ��� ������������� ������. ��� ����������� ���, ��� ���������� �� �������� Linux'� ����������� ������, ��� ���������� �� ��������� Oracle �� FreeBSD.
�� ���������, �� �������, ������ ����� �� ����, �� � ���� ������ � �������� ����������� ������������� ������ ������� ��������� Oracle 8.1.7 �� FreeBSD 4.2
�� ��������� Oracle 8.0.x �� FreeBSD ��� �������������� ���� � HandBook'e. ������� �������� ��������� Oracle 8.1.x �� 8.0.x �������� ����������� �� Jave. ���� ���� (������ ���� ���������) ���������������� �� ��� �������� ����� ������. �������������: ���� �� �� ����������� �� Java, ��������� Oracle �� FreeBSD ��������� �� ����� �������������.
������������� � ����������� �����������, ������������ ����������, ������� � ����� ��������� ������ �� ��������: http://www.tokuda.net/FreeBSD/oracle816.html ����������� ����������, � ������������ ������������ � AltaVist'�, ������ �� � �������� ��������� ������ � ��� ���������. ������, ���������� � ����� �������, ����������� ������� ��������� �� ��� ������. ���� ������, �� � ��� ����� �������� �����-���� ��������� ������� ���������, ����, �������, �������� �� ����� ������� ����� �� �������� �������. ����� � ���� ��������� �� ����, � �������� ����������� ������ ������ � Oracle � ��� �������������.
�� �������� ������, ������ � ������������ �������:
- ������ IBM, Pentium-III, 256+128Mb ���.
- ������������ ������� FreeBSD-4.2 Release, ����� �����������,
cvs-�� �� �����������.
- ����������� Oracle: linux81701.tar - 549.867.520 ����
��� ����� ��-��� root'� ������������� ��� �������: linux_base � linux_devtools
matrix# pkg_add linux_base-6.1.tgz
matrix# pkg_add linux_devtools-6.1.tgz
matrix# kldload linux
(�� ������� ����������� linux_enable="YES" � /etc/rc.conf, ��� ������ �����, ������ �������� ������..)
����� ����������� ���������, ���������� �������� ������ linux'�, ��-������, ������������ ������������ ��������� ��������� ������� linux'�, � ��-������, ����� ��������� ���������� � �����-���� �����, �������� /etc/passwd, ������������ ������� ����������� � ������ ������� ���� ��������� linux'�: /compat/linux/etc/passwd, � ��������� ������� ������ ������� �������� �������. ���� �� ���� - ��������� ���������� ������ ���� ������, ���� ��� ��� - ���� � ����� �������� ��� ���������: /etc/passwd.
�� ���� ����, ��� ������� �������� ������ ������������ ����� FreeBSD � Linux ���������, ��������� linux �� ��������� � ���� ��������� �������, � linux-���������� ��������� ���������� ����� ����� /etc/passwd �� ������������ FreeBSD.
������ ����������� Oracle ���������� ���������� � �������� �������� �������, ������� ���� � /etc/mtab. ���������� ������ ����� ���, ������� ��� ����� �������:
matrix# cp /etc/fstab /compat/linux/etc/mtab
��� �� ��� ����������, ����� linux-���������� �������� ���� /etc/mtab, "������������" ������� ��������� ���� /compat/linux/etc/mtab, ��� � ������ ��������� ����. ����� ������, ���� �� ���������� ������������ ����������� /etc �������, ������������ ������ linux-�����������.
������������������ �� � Unix'�� ���: /tmp, /usr/tmp, /var/tmp. �� ��������� ���� ��� �������� ����� ����� ��� �������� ������� / � /var, �� ��������� �����-�� �� ���� �������� �������� ������ �������� �� ���������� ����������, � ����� ���� ����������� ��������.
����� � ������ ��� ������� ����������� ���������, �� ����� ������������� ������ �����������, ���������� ���������, ���������� ����: "Problem opening staging area", � �������� ���������� ������� ����������� ��������� ��� ��� ������������ �������� ��������� ��������.
�� � ����������� �� tokuda.net, �� � Usenet-������������, � �� ���� ����� �������� �������� ��������. ������, �������� � ������� ��� ���� �� ��������� ������ � ���������� �� ������, �� � /tmp/OraInstall �������� ������ � ������ temp0. ���������� ������� ������ ������������ ktrace ��� ��������� ������ ��������� ������, � ��������� ������ �������� �������:
matrix# kdump | grep temp
---------------------------------------------------
47007 jre NAMI "/compat/linux/tmp/OraInstall/temp0"
47007 jre NAMI "/tmp/OraInstall/temp0"
47007 jre NAMI "/tmp/OraInstall/temp0"
47007 jre NAMI "/compat/linux/var/tmp/OraInstall/temp0"
47007 jre NAMI "/var/tmp/OraInstall/temp0"
�������, ����������� �������� ���� ������ � /tmp/OraInstall, � ����� � /var/tmp/OraInstall?
�������, ������ ��� �������� ���������, ������� ���������� � ������� ���������� �������� ������. � ����� ������������ �� ���� �������� ���������� ����, ���������, ����� ����� �������� �������� �������, ��� /compat/linux/tmp, /compat/linux/usr/tmp, /compat/linux/var/tmp ������ �� ����. �� ���� �� ���� � ������ ������� �� ����������, �� ���������� ������ �� ������ ����������.
matrix# rm /compat/linux/tmp
matrix# rm /compat/linux/usr/tmp
matrix# rm /compat/linux/var/tmp
�� ��������� ������� linux_base-6.1 ������� /compat/linux/usr/tmp, ������� ������ ���������� ������� �� /var/tmp. ��� �������, ��� ���������� �������. ����� ���� ���� ���� ������������� �������� �������� ������� � /compat/linux/... ������������ �� �����, ����� ������� ������������� ���������� � ���� /compat/linux ���������� ��������, � ���������� ���� ����� �������������� ������������ �������� /tmp, /var/tmp � /usr/tmp ����� �������.
�� ��� �� ���. ������ ��� �����, ����� /tmp, /var/tmp � /usr/tmp ������������ ���� � ��� �� �������. ������������, �� ����� �������� ������� � ��� ������ ����� �����: �� /, �� /var ��� �� /usr? � ���� �� /usr. ����� /usr/tmp ��������� �������� ���������, � /tmp � /var/tmp - ����������� �������� �� ����. ���� ���������� tmp-�� �� �����, ��� ����� ��������� ���:
matrix# rm -r /var/tmp/*
matrix# ln -s /usr/tmp /var/tmp
matrix# rm -r /tmp/*
matrix# ln -s /usr/tmp /tmp
����� ����� �������� ����� ���������� ���������� ���������, ��������� mysqld, ������� ����� ������� � /var/tmp ���� �����-������. ��� ��� ���� ������ ����������������� ������� ��������, �� ����� ����������� ������, �� ��������� ���������� ����.. (� ��� ��� ���������).
��� ���������� ��� ����, ����� ����������� Oracle ������ ����������� � ��������������� ��� ���������. ������ ������, ������������ �������� Oracle �������� � ���� ������ JRE, ������ ��� �������� �������������� ���������������� � FreeBSD (�� � � ���������� Linux'���, ��� ���������).
������� �� ��������� Blackdown JRE 1.1.8: jre118_v3-glibc-2.1.3.tar.bz2 - 7.156.122 ����
�������� ���� ������� � www.blackdown.org ��� �������� ������� ����� www.filesearch.ru
��������� ��������� ���� ����� bzip2, �� ��� ���������� ���������� ���������� ���� ��������� (���� �� � ��� �� ��� ��� �� ����������):
matrix# pkg_add bzip2-1.0.1.tgz
����� ������������� ����� � JRE:
matrix# cd /compat/linux/usr
matrix# tar --bzip2 -xvf /tmp/jre118_v3-glibc-2.1.3.tar.bz2
� �������� /compat/linux/usr ������ ��������� ���������� jre118_v3. �������� ������ ���� ������� linux, ������� ����� �������� ���������� ������� �� /compat/linux/usr/jre118_v3.
matrix# cd /compat/linux/usr/jre118_v3
matrix# ln -s . linux
��� ���������� ����� �� ����� �������� ��������� ������ Oracl'��� JRE Blackdown'������.
������� arch ������������ � linux ��� ������ ���������� �� ����������� ������. �� � ��������� /compat/linux/..., �� �� FreeBSD �������� ������� ���. ������� ������� �� ����, ����� ��� ���� �� ������:
matrix# echo echo i686 > /compat/linux/bin/arch
matrix# chmod +x /compat/linux/bin/arch
Blackdown JDK 1.2.2 �������������� ��� FreeBSD ���� � ������: /usr/ports/java/linux-jdk.
������ � ����������� ����������� ������ ����� �����. ��� ����� � ftp ����������� ���� ������� (������ � �������������): ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports-stable/java/linux-jdk � ������ ��� � /usr/ports/java/linux-jdk ������ �������������. ������, ������ �� �� ������������ ����������� ������ �����, ��� ������������ ��������� � ����� ������� - ������ ���. ���� ������ ������������, ��� ������-�� ��������� Blackdown JDK 1.1.8, �� ��, ��� ���� � linux-jdk (Blackdown JDK 1.2.2) ����� ������� �� �������. ��������� �����, ����� linux-jdk13, linux-jdk14, linux-sun-jdk12, linux-blackdown-jdk13, linux-ibm-jdk13 ���� ���� �� ��������.
����, ������������� ������� ���� �� ��������, ����������� � �������������:
matrix# cd /usr/ports/java/linux-jdk
matrix# make install
���� ��� ������ �������, ���� ����� ���������� � /usr/local/linux-jdk1.2.2 �� ��� ��� �� ���, �� ���� ����� ������� ���������� ������:
matrix# ln -s /usr/local/linux-jdk1.2.2 /compat/linux/usr/local/java
����� ��� ����� oracle:dba. �� ������ ������ � ��� ������ ������ oinstall, � ������� � ��� ������������ oracle.
����� �������, � ���� /etc/group � ���� ���������� ��� �������:
dba:*:94:
oinstall:*:95:oracle
������������� �������������� ����� GID � ��� ����� ���� �������.
������ ������� ������������ oracle - � ������� ������� vipw ��������� � ���� ������������� ��������� �������:
oracle:*:94:94::0:0:Oracle Server:/usr/oracle:/compat/linux/bin/bash
������ ����� 94 �������� UID ������������ oracle � ����� ���� �����, ������ - ��� GID ������ dba.
������������� ��� ������������ oracle ������ (� �������� ��������� ��� ����� ����������� login'����� ��� ��� � �������):
matrix# passwd oracle
matrix# mkdir /usr/oracle
������� ������� ������������ oracle � ������������� � ��� ��� ����������� ���������� ���������:
matrix# vim /usr/oracle/.profile
ORACLE_BASE=/usr/oracle; export ORACLE_BASE
ORACLE_HOME=/usr/oracle; export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
ORACLE_SID=ORCL; export ORACLE_SID
PATH=/compat/linux/bin:/compat/linux/sbin:/compat/linux/usr/bin:/compat/linux/usr/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:$ORACLE_HOME/bin
export PATH
�������� �������� ������� �� ���� ��� ���������� � ������������ ������������ � ������:
matrix# chown -R oracle:dba /usr/oracle
matrix# mkdir /usr/orainstall
matrix# cd /usr/orainstall
matrix# tar -xfv /tmp/linux81701.tar
���������� ������������ oracle - ���������� ���������� �������. � ����� ��� �� �������, ��� ��� �������� ������������, ��� � ��� ����������, ��-��� root'� - ������������ oracle ���������� �� ����� ����� ����� ������������� �� ���� ������������ ��������.
����� ���������� ���������, ��� ����������� ������������ ����� ������� Disk1, ������ �������� ��� ��������� �������� doc, install locks, patch, response � stage. ������ �����, ������������ ��������� ����� ���� � ������, � ����������� �� ������ ������������, �� ����� ���� �������� ������ ����� ����� ��� �� �����.
��������� ������� /usr/orainstall ������ � ������������� ������������� ����� ��������� Oracle ����� ����� �������.
������� ����������� ���� runInstaller:
matrix# cd /usr/orainstall/Disk1
matrix# cp runInstaller runInstaller.org
matrix# vim runInstaller
���� �������, ���������� THREADS_FLAG=native � �������� �� �� THREADS_FLAG=green
������ ������ oraparam.ini
matrix# cd /usr/orainstall/Disk1/install
matrix# cp oraparam.ini oraparam.org
matrix# vim oraparam.ini
���� ������� JRE_LOCATION=../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux
� �������� �� �� JRE_LOCATION=/compat/linux/usr/jre118_v3/linux
(�������� �������� �� �������� ������������ ��������� ����� �������:
...Expanded/linux -> /compat/linux/usr/jre118_v3/linux).
� ������ �� tokuda.net ���������, ��� ��������� Oracle �� ������� ��������� ���������� ����, � � ��� ��������� ������ ��� Oracle. � ���������, ��� �� ����� �� �����.
���� � �� ���������, ����� ����� ���� �������������� � ����, ��������� Oracle � ���� ��������� �������� �� 11 �������, � ���������� segmentation violation. ������ ��� ����������� ������ �����, ����� ��������� �������� ����������� ������ �������� �������� 35%
���������� ��� ���� top ��������� �����-���� ����� ��������� ������ ������������, � ����������� �������� �����, ����� ����� ���������� ������ �������� 750Mb - ����, ���� ������ top'�, swap ��� ����������� ����� �� 55%
������������� ktrace ������� �� ������, ������ ���������� ���, ��� � ������� ����� ����� ������� ���������� Oracle ������ ��������� ������ �����, � ������� ��������� ������������ �� �����������. ����� ����, ��������� ���������� ��������� ������� ��������� ��������, ��� ��� ���� �������� �� ����������� ������ ������: �� �����, ������� ��������� ��� ����������� ���������� �� ������ �������, � ������ ���� ������� ����������, � ������ �� SIGSEG #11 ���������� ���� �����.
� ����� 256+128Mb ��� � 512Mb swap � ������� ��� 1000Mb swap-file, �� �������� �� ����������: ���������� Oracle ��-��������� ����������� �� 750Mb ������, ����� ��� swap ������ ��� �������� �� �� 55% � �� 18%
�� ���������, �� ����� � ������ �� ������ ����������, ���� � �������� ��� ������� �� ����� "��������� �������" �� ���� ������� ��������� � ����, ����������� ������������:
��-������, � �������� maxusers � 32 �� 64 - ������, ���� ������ param.c �� ���� ������ ��� ������ �� ������.
��-������, � ������� ������� options MAXMEM="(1024*1024)" - ��� ���� ����� ������ �� ����, ��� ��� BIOS �� ����, � top ����� ����������� ������ ������ ��������� ���������.
� �������, ������ ���������, �������, �� ����� ������, � �������� ������ � �������� ������� ������������� signal 11 � segmentation violation. � �������:
options MAXDSIZ="(1024*1024*1024)"
options DFLDSIZ="(1024*1024*1024)"
� �������� ���� ���������� � ���� LINT ��������� ���������: "��������� ���������� ����� �������� �� 128Mb ������, ������� �� FreeBSD ���������� �������. ����������� ��� ���������, ����� ��������� ���� ������. MAXDSIZ - ��� ������������ ��������, ������� ����� ��������� ���� ������, DFLTDSIZ - ��� �������� �� ���������. ����� �������� DFLTDSIZ ������ MAXDSIZ, �� ����� ������� ��� ��������� ��������� ������� �������� ����� ������� �� MAXDSIZ, � ������� ���������� Shell
�� ������ �������, ��� ����� ������ ���� ����. ����� ����������, ��� � ���� ������ �� ����� �� ������� ��� "������" ��� "memory". ����� ��������, ��� ��� ����� ��������� �� � ������ ������, � � ����-�� �����. �� ��������� �������� ����� ����-�� �������� 128Mb, � ���� LINT �������������������, ��� ������� ���� ������ ������ 256Mb, � �� � ������� �������� ��������� ��� ������ 1024Mb. ������, ��������..
����, ������� ������ ��������� � ������������ ������ ����. � ���� ��� �������� ���:
matrix# cd /sys/i386/conf
matrix# vim ./MATRIX
� ���� ������� ��������� ������:
options SYSVSHM #SystemV-style shared memory
options SYSVMSG #SystemV-style message queues
options SYSVSEM #SystemV-style semaphores
(�� ��������� ��� ��� ������� �������� � ���� GENERIC FreeBSD-4.2Release)
options SHMMAXPGS=10000
options SHMMNI=100
options SHMSEG=10
options SEMMNS=200
options SEMMNI=70
options SEMMSL=61
(��� ��������� ��������� SystemV)
pseudo-device vn 1
(��� ����� ��� �������� swap-�����)
����� ���� ���� ���������� ������������ � �������������� ����� ����.
matrix# cd /sys/i386/conf
matrix# config MATRIX
matrix# cd ../../compile/MATRIX
matrix# make depend
matrix# make
matrix# make install
�� ������ �� �����������!
������, ������������ ��� ��� ���, ������ ���. ���� ��������� ����� ��� � swap'� �� ����� ������� ���������� ����� 1 Gb, ��, ��������, ����� �������� ��� swap-�����. � ��������� ������ � �� ����������� ��������� swap �� ���� �������� �������������� swap-�������� ��� swap-�����. � ���������, �������������� ����� �� ����� ��� swap-�������� � ���� �� ���������, ������� �������� ��� ������� swap-����.
������� ������� ���� vn (virtual-node) ����������:
matrix# cd /dev
matrix# sh ./MAKEDEV vn0
������ ������� ��� ���� �������� �������� 1 Gb:
matrix# dd if=/dev/zero of=/usr/swap0 bs=1024k count=1024
������������� ����� �� ����:
matrix# chmod 600 /usr/swap0
���������� ��������� ���� ��������. ��� ����� � /etc/rc.conf ���������� �������:
swapfile="/usr/swap0"
����� ���� �������-�� ����������� ������:
matrix# reboot
��� ����� ���������, ��� ��� swap-���� ������� ��������� � �������. ������ ����� ��� ������ � ���������..
����� ��������� ��������� linux'�:
matrix# kldload linux
Login'���� � ������� ��������� ������� ������������� Oracle. ������������ ������ ��� ������� ����� � �������, sell'�� � ���� ����� linux'���� bash, � ����������� ��������� ������ ����� ����� ���:
[oracle@matrix oracle]$
���������, ��� ��� ����������� ���������, ������� �� ������� � .profile ������������:
[oracle@matrix oracle]$ set | more
����� ���� ������� ��-��� ������������ oracle.
���� ��� ��������� 8.0.5 �� ��� ����� ����� � xterm ��������� ��������� ����������, ������� ����� ������� termcap, � ������� ����������� ������������ ����������� �� ����� �������� ��������, �� ������ ���� ���������� ������� ��� GUI.
� ����� �������, ������� KDE � ������ ������� ���������� �� �����������. ����� X-�, �� ����������� VGA ��������� 640x480 � 16 ������ ������ ��������. � ���� ���� ����������� ����� �������� ������ �� ���� �����, ��������� �� ���� ��������� ������ ���� �������� �� ����.
matrix# xdm
������ �����, ������� ��������, ����� ���� xterm'� � ������������ ����:
bash$
��� ��� �� ���������� bash, ������ � xterm'� �� ������� �� � ���� login shell'�, ������� �� ���� �� ���������� ��������� �� .profile ���������� ���������, ���, �������, ����� ���������:
bash$ set | more
������������� ��������� ORACLE_BASE � ORACLE_HOME �� ����� �� ������. ��� ����, ����� bash ������ �� .profile �������� ���� ����������, ��� ���������� ��������� � ���� login shell'�. ��� ����� ����� � xterm'e ��������:
bash$ bash -login
����������� ����� ��������� ��������� ��� [oracle@matrix oracle]$, � �������� �������:
[oracle@matrix oracle]$ set | more
���������� � ���, ��� �������� ���� ���������� �� .profile ���������� ���������.
������ ��������� ����������� �����. ���������� Oracle ���������� ������� �������� ���������� �����, � � ����������� �� ����� ���������� ��������� ������ ��� ������ ����������. � ����� ������� ��� ������, ������ ��� ������ ��������� � �������� ��������� �� ������� ����� �������, � ������ ������� � usenet ������������ ��������� ������, ��� ���������� �������� ��������� ����������� � �������� �������� ������������. �������, ����� ���� ���������, ��� ������ ��������� ����� �� ������� � ����� ������������ ���������������, ������ �������� ���������� ��������� LANG:
[oracle@matrix oracle]$ unset LANG
��� � ��� �� xterm'�, �� ����� ������������ oracle, ��������:
[oracle@matrix oracle]$ cd /usr/orainstall/Disk1
[oracle@matrix oracle]$ ./runInstaller
� ���� ������ �������� ��� ����, � �������� ����, �� �� ������� ������� ��������� "Inintializind Java Virtual Machine from /compat/linux/usr/jre118_v3/bin/jre. Please wait..", � ����� � ������ ����������� ������� Oracle Installer, ������������ �������, ����������� �� ����� Java.
���� �������� �� ���������, � runInstaller ��������� � ���������� �� ������, ������������ ���������������� ��� ���������. ������ ����� ��� ������� � �������������� JRE. ��������� ����� �� ���� ����������� ��������� ������ runInstaller � oraparam.ini, ��������� �� ����������� JRE. ������ ������, ���� ������ JRE ���������� glibc 2.1.3, � ������� linux_base-6.1 �� FreeBSD 4.2Release �������� glibc 2.1.2, ������ � ��� �� ���� �� ������, ����� � ���� ��������� ��������. �� ������� ���� � ���� Java-���������� ��������� � ������ �������, � � ���� ��������� ������� ������� ��������.
�������, ���� runInstaller � ��� �� ����������, ��������� ���� � JRE, ����� �� /usr/oracle � ��������� ��������, ������������ �������������� � �������� ������. ��� ��, �������, ����� �������� �� ���������.
������ ����� (Welcome) ����������.
�� ������ ������ ��� ���������� ������� source � destination locations. ���� ��� ���������� ��������� ��������� ��������� - � ���� ����� ��� ����� ������ ��������������� ����������. �������� Next.
������ Oracle ��������� ����� ��������� ����� ��������� "Product information", ����� ���� ������� UNIX Group Name - ������ ������������� ������� ����� ����� ����� �� ���������� ����������� Oracle. ��������� ������ ��������� � �� ��������� (�� � �� ����, ��� ��� �� ��������������� ��������� Oracle ����� ����������� �� FreeBSD), �� � ������ ������ dba. ��������, � ����� �� ������� ����� ���� ������������ ������ oinstall.
������ ������� ����������� ��������� ���������� �� Oracle Inventory - �����, ��� ����� ��������� ���������� �� ������������� ��������� Oracle � � ��� ������, ������� ����� ����� �������� ��� ����������. ��� ����� �� ����� ����������������� ����������: ��� �������� ��������� ��-��� root'� ���� /usr/oracle/orainstRoot.sh. ������������� �� ��������� �������, ������� root'�� � ��������� ���� ����:
matrix# cd /usr/oracle
matrix# ./orainstRoot.sh
��� �������� � �������� ����� /etc/oraInst.loc, ����������� ��� ����������� ����������. ���� �� Inventory-���� ����� ��������� � /usr/oracle/oraInventory. ��������, ���� ���������� ��������� (� ���������, ORACLE_HOME) ���� �� �� ����������, Oracle Installer ��� ����� ������� �� ���� ������� �� � ���, ��� ��� Inventory directory �����������.
����� ������ orainstRoot.sh ��������� � X'�, � ������� Retry.
���������� ������� � ���, ����� ������ ������� �� ������ ����������. ����� ������� Oracle 8i Enterprise Edition 8.1.7 (Oracle Management&Integration � Oracle Client ��� �� �����), � ������ Next.
������ ������ �������� ���� ���������. �������� Typical (Minimal � Custom ��� �� ��������). ���� Next.
����� ���� ���������� ������ �������� �������� �� ��������������� �����������: � ������ ������� ���� ���� �������� ���������, ������� ������ ���������� �����������.
������, � ������� ���� �����������: ���� X-���������� (�� ������� ���� Oracle Installer) ���-�� ����� ������ ������, � ��� ���������� ������������� ��������� ��������, �� ��� �� �� ����� ������������� � ������� ��� ���������� ����-�� ��������. ���� ��� � ���� �������� X'� �� ����� ����� ������������. �� ����, ��� ��� ����: X'��, Oracle Installer'� ��� JRE, �� �� ����� ���� �������, ��� ������ ��� �� �����.
�������� �� �������� ����������� XWindow � Oracle Installer'�, � ���� ������������ telnet'�� � ������ ������, ����� ������� �� ���������� ������� � ������� top'�.
��������� ����� (������ � ������ �������� ������ �������� �� ��������������� �����������) �������� ������ � Database Administrator Group � Database Operator Group. � ��� ������ dba, ������ ���� ���� ������� ��������� �� ����������, �� �������� ��� ���� ������, �� �������� ������ �������� � ��� ������������ oracle.
��������� ����� ������� ������ ���������� ���� � JDK 1.1.8 �� ��������� �� ��������� ��� /usr/local/java �������, �� ��������� ���������� ������:
/compat/linux/usr/local/java -> /usr/local/linux-jdk1.2.2
� �������, ��� �������� ������������? ���������, ����� Oracle Installer ������� ���� /usr/local/java, ������������ ������� ��������� /compat/linux/usr/local/java. � ��� ������ �������� ������� ����������, � �������� ���������� ������� �� ��� /usr/local/linux-jdk1.2.2
�� ������, ��� ���������? ������� ������ Browse.. ����� ���� GUI'���� ������, �� �������� �������� �����, ��� �� ������ Oracle Installer'� ����� /usr/local/java �������� �������� bin, demo, include, include-old, jre, lib. ���������?!
����� ���� � JDK ��������� /usr/local/java, � �������� Next..
Global Database Name � ���� ����� �� ��� � SID: ORCL
����� ���� ������ �������� � ����������� �����, � �� �������-�� ��������� ������� � ��������: ������ ������ Install. �� �� ���� ������ ������, �� ����� ���� � �������, ��� �� ��������� top'� (�����������, ������, � telnet-������ � ������ ������), jre ������ ���� � ��������� ��������� (��������� ������ � ������ �������� ������������) ���������� ����� 19% �������� ����� Pentium-III, � �������� ��� 311Mb ������! ���������� Java, ������ ��������� ������ ������..
�� ��� �, � �����: �������� ������ Install..
� �� ��� �������� ������� �� ��������� top'�, � ����������, ���� �� ����� jre ������� ������ ����.. ����� 35% ��������� �� ��������������� ����� ����������, � ����� ���������� ������ �������� ��������� ������. ��� �������� �� ���� 35% �������� �����������, ���� ������� ������, ��� ����� �� ����������� ����� ������, ������� �������� jre ������ � ~450 �� ~850 Mb, � � ����� ��������� �������� ~1005 Mb.
������, ��, ��� ������������ Oracle �� Linux ����������, ��� ����� ��� ���������, jre ��������� ����� 640Mb ������, ��� ���-���� ������ ��� 1Gb �� FreeBSD. ����� jre ����� 1 Gb ������, � ��� ��� � ��� ������, � �� ��� � ������������� �����. ����� ��� ����������� ���� ����������?.. ;)
����, ���� ������� ����������� ������ � ��������� ������ ������� �������, �� � ����� ��������� �� ������� ��� �������� ���������, ��� ����������� ��������� ����, ����� ��������� ������ /usr/oracle/root.sh, �������, ���, � ������� ��-��� root'�, � ��������� ��� ����.
������, ������ ��� �� ������� ���, ������� ���������, ��� �� ��� ������ � ����� �����, � ������ ����������� �����������:
� ����� ������ �����, � ����� ��� ��� ��������� � ��� ��������, ������������� ���� � ��������� ���������� Unix. ��� ������ ��� ���� ��� ����� � ���������. ������-�� ����� ��������� ��� ��� ���� ��������������, ��� ��� �� ������ � ������ Oracle ��� �����������.. �, ��������, ������ ��������� �����������:
� ������ �����:
CHOWN=/usr/sbin/chown
TEST=/bin/test
� �������� �����:
AWK=/usr/bin/awk
CHOWN=/usr/sbin/chown
GREP=/usr/bin/grep
SED=/usr/bin/sed
TEST=/bin/test
����� ����, ��������� ����:
matrix# cd /usr/oracle
matrix# ./root.sh
����� ������� ������ ������� ���� � �������� local bin:
Enter the full pathname of the local bin directory: [/usr/local/bin]:
� ������������ /usr/local/bin ����� ����������� � ��������� ������ Enter.
��������� � ��������� � ��������� ��. ��������� ������ ����� �������������� ������ Configuration tools, � �������� �������� ��������� ������� ������� ���������� (�� ������� �������� ��� �������), � �� ������� ��������� (� ������ Oracle database Configuration Assistandt) ������� ����������. ����� ���� �� ����� ����� �������� ���������:
One or more tools have failed. It is recommended...
������ ���������. ���� ������ �� �������� �������. �������� OK � ������� �� ������, ������� Next, � �����, ������ ������������ �� ��������� ���������, Exit.
������� � ��������� ������� ������������� oracle:
[oracle@matrix oracle]$ cd /usr/oracle
[oracle@matrix oracle]$ mkdir orcl
[oracle@matrix oracle]$ cd orcl
[oracle@matrix oracle]$ mkdir ddl data pfile archive bdump cdump udump
����� ����� ���� ����: http://pm.stu.lipetsk.ru/~oracle/orcl.tgz � ������������� ���:
[oracle@matrix oracle]$ cd /usr/oracle/orcl
[oracle@matrix oracle]$ tar zxfv /tmp/orcl.tgz
����� ���� ���������:
[oracle@matrix oracle]$ cd /usr/oracle/orcl/ddl
[oracle@matrix oracle]$ sh ./01crdb.sh
���� ��� ���������, �� ���������� ��������� Oracle � �������� �� ������� ������� �������� ���� ������, ������ �� ����� ����������, ��������� � ���������� ��������������...
[oracle@matrix oracle]$ sh ./02crdb.sh
[oracle@matrix oracle]$ sh ./03crdb.sh
[oracle@matrix oracle]$ sh ./05crtblsp.sh
[oracle@matrix oracle]$ sh ./06cruser.sh
�����������, �������� ����� ������������ � ������ � "��������" �� ��� ����. � ���� �� � tokuda.net � ���������������� ����. � ���������� ���������� ���������� ����� (06cruser.sh) ����� ������ ������������ demo � ������� demo, �������� ����� ������������� ��� ���������� ������ � ����� ������.
��� ����� ����� ������� �������:
[oracle@matrix oracle]$ sqlplus
SQL*Plus: Release 8.1.7.0.0 - Production on Mon Jun 3 10:59:53 2002
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Enter user-name: demo
Enter password: demo
Connected to:
Oracle 8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1
SQL> @07cr_tbl.sql
DROP TABLE T_GIJI CASCADE CONSTRAINTS
*
ERROR at line 1:
ORA-00942: table or view does not exist
Table created.
Table altered.
SQL> exit
[oracle@matrix oracle]$ svrmgrl
Oracle Server Manager Release 8.1.7.0.1 - Production
(c) Copyright 1997, 1999, Oracle Corporation. All Rights Reserved.
Oracle 8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1
SVRMGR> connect internal
Connected.
SVRMGR> shutdown normal
Database closed.
Database dismounted.
ORACLE instance shut down.
SWRMGR> quit
Server Manager complete.
[oracle@matrix oracle]$ vim /usr/oracle/orcl/pfile/initORCL.ora
� ���� ����� ��������������� �������, ���������� ���������� � ��������� ������:
rollback_segments = (rbs01, rbs02, rbs03, rbs04)
����� �� admin.tgz (���� �������� �� ������ http://pm.stu.lipetsk.ru/~oracle/admin.tgz
[oracle@matrix oracle]$ cd /usr/oracle/network/admin
[oracle@matrix oracle]$ tar zxvf /tmp/admin.tgz
��� ����� � /usr/oracle/network/admin ����� ������� �����: listener.ora, sqlnet.ora � tnsnames.ora.
listener.ora � tnsnames.ora ����� ��������� �� ������� ������������ ��������� �����. � ���� ��� matrix.pm.lstu.
[oracle@matrix oracle]$ vim /usr/oracle/network/admin/listener.ora
[oracle@matrix oracle]$ vim /usr/oracle/network/admin/tnsnames.ora
��� ����� ��-��� root'� � /usr/local/etc/rc.d ������ ���� oracle.sh �� ���������� ������: http://pm.stu.lipetsk.ru/~oracle/oracle.tgz
matrix# cd /usr/local/etc/rc.d
matrix# tar zxfv /tmp/oracle.tgz
������� /usr/oracle/bin/start.db, ���������� �����������:
connect internal;
startup pfile=$ORACLE_HOME/orcl/pfile/initORCL.ora;
quit;
� /usr/oracle/bin/stop.db:
connect internal;
shutdown normal;
quit;
����� ���� ����� ����������� ���������, ��������� Oracle:
matrix# /usr/local/etc/rc.d/oracle.sh start
� ����� sqlplus'�� ��� ������������� demo:
[oracle@matrix oracle]$ sqlplus
SQL*Plus: Release 8.1.7.0.0 - Production on Mon Jun 3 10:59:53 2002
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Enter user-name: demo
Enter password: demo
Connected to:
Oracle 8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1
SQL> exit
������ ����� Oracle:
matrix# /usr/local/etc/rc.d/oracle.sh stop
� ���������, ��� ������ ��� ��������� ����� ������������ �� ���� ��������� �������, ����������� ������.
matrix# reboot
������, ����� ������ ����� ����������, Oracle 8i ����� ������� � �������� ��� ����� ��������� ����������, ���������� �� FreeBSD!
1) Nick A. Leuta aka Skynick - �� ���� �������, ��������� ���, �� ���������� �������� ������ �������������, �� ������ � ������ � ��� � updat'� ��� �����������.
2) Yuriy Vostrikoff aka Mon - �� ������ ����� �� ktrace
3) Oleg V. Volkov aka Rover - �� �������� ������ � �������� � ���������
4) ������� ��� - �� "������ ������" ������ FreeBSD � ��������� Linux :)
5) www.tokuda.net - �� ������, ��� ������� ������ � ���� ������� �� ���������� ������ � ������� �� ����� ��� ����.
�� � �������, ������ ������� ���� ������, ������� ������� ��� ��� �����, ����������� � ��������� �� 22 ������..
���� ��� ������ ���� �������� ��������� ���� ���-�� ��������������, � ���� ������ ���!
���� � ����-�� ��������� (��� ��������, �� ���������) ����������
Oracle 8i �� FreeBSD - ������!
� ������ ��� ���������, ����� ���
��������� ������ ��� �������.
© 2002 Stas Kornienko korn@lglobus.ru 2:5036/32