Установка Oracle 12с на Debian
1) Oracle XE Debian repository
2)
addgroup –system oinstall
addgroup –system dba
adduser –system –ingroup oinstall –shell /bin/bash oracle
adduser oracle dba
3)
fs.file-max = 65536
fs.aio-max-nr = 1048576
semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
(Oracle recommends total machine Ram -1 byte)
kernel.shmmax = 2147483648
kernel.shmall = 2097152
kernel.shmmni = 4096
net.ipv4.ip_local_port_range = 1024 65000
vm.hugetlb_shm_group = 111
vm.nr_hugepages = 64
—
sysctl -p /etc/sysctl.d/oracle.conf
4)
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
—-
/etc/security/limits.d/oracle.conf
6)
Create a directory structure required to install Oracle DataBase.
mkdir -p /opt/oracle/product/12.1.0.2
mkdir -p /opt/oraInventory
chown -R oracle:dba /opt/oracle/
chown -R oracle:dba /opt/oraInventory
7)
apt-get install build-essential binutils libcap-dev gcc g++ libc6-dev ksh libaio-dev make libxi-dev libxtst-dev libxau-dev libxcb1-dev sysstat rpm xauth
oracle@oracle:~$ unzip linuxamd64_12XXX_database_1of2.zip
oracle@oracle:~$ unzip linuxamd64_12XXX_database_2of2.zip
9)
export ORACLE_HOSTNAME=localhost
export ORACLE_OWNER=oracle
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/12.1.0.2/dbhome_1
export ORACLE_UNQNAME=orcl
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/bin/lib:/lib/x86_64-linux-gnu/:/usr/lib64
ORACLE_OWNER: User with permission on Oracle files.
ORACLE_BASE: Directory that will store the distinct Oracle Services.
ORACLE_HOME: Directory that will store the Oracle database.
ORACLE_UNQNAME: Unique name of database.
ORACLE_SID: Service Identifier of Listener.
PATH: Path to binary files.
LD_LIBRARY_PATH: Path to library.
10)
11)
13)
Errors
- Error
делаем:
снова запуск:
2)
Could not initialize class sun.awt.X11.XToolkit
3)
Добиться чтобы работал X11Forwarding
В процесс инсталяции:
Ошибка в логе:
На этапе запуска рутовых скриптов потребовалось: