Benutzer-Werkzeuge

Webseiten-Werkzeuge


computer:linux:oracle_database_11g_auf_centos

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
computer:linux:oracle_database_11g_auf_centos [2011/03/15 09:15]
christian
computer:linux:oracle_database_11g_auf_centos [2011/03/18 13:50] (aktuell)
christian
Zeile 1: Zeile 1:
 Abhängigkeiten:​ Abhängigkeiten:​
 <​code>​ <​code>​
-yum install binutils elfutils-libelf-0.* glibc-2.* glibc-common-2.* libgcc-4.* libstdc++* make* elfutils-libelf-devel-0.* glibc-devel-2.* gcc-4.* gcc-c++-4.* unixODBC-2.* libaio libaio-devel unixODBC-devel sysstat compat-libstdc++* pdksh+yum install binutils elfutils-libelf-0.* glibc-2.* glibc-common-2.* libgcc-4.* libstdc++* make* elfutils-libelf-devel-0.* glibc-devel-2.* gcc-4.* gcc-c++-4.* unixODBC-2.* libaio libaio-devel unixODBC-devel sysstat compat-libstdc++* pdksh
 </​code>​ </​code>​
  
 Gruppen und Benutzeraccount:​ Gruppen und Benutzeraccount:​
 <​code>​ <​code>​
-#groupadd oinstall +# groupadd oinstall 
-#groupadd dba +# groupadd dba 
-#groupadd oper +# groupadd oper 
-#groupadd asmadmin +# groupadd asmadmin 
-#useradd -g oinstall -G dba,​oper,​asmadmin oracle +# useradd -g oinstall -G dba,​oper,​asmadmin oracle 
-#passwd oracle+# passwd oracle
 </​code>​ </​code>​
  
Zeile 17: Zeile 17:
 <​code>​ <​code>​
 # yum install xorg-x11*utils # yum install xorg-x11*utils
 +</​code>​
 +
 +Kernel-Parameter:​
 +<​code>​
 +# nano /​etc/​sysctl.conf
 +...
 +kernel.sem = 250 32000 100 128
 +net.ipv4.ip_local_port_range = 32768 61000
 +net.core.rmem_default=4194304
 +net.core.rmem_max=4194304
 +net.core.wmem_default=262144
 +...
 +# sysctl -p
 +</​code>​
 +
 +PAM:
 +<​code>​
 +# echo "​session ​   required ​    ​pam_limits.so"​ >> /​etc/​pam.d/​login
 +</​code>​
 +
 +<note important>​SELinux muss zwingend deaktiviert sein, um 11g zu verwenden.</​note>​
 +
 +Entpacken:
 +<​code>​
 +# unzip linux_11gR2_database_1of2.zip
 +...
 +# unzip linux_11gR2_database_2of2.zip
 +...
 +# chmod 775 database
 +# chmod 775 database/* -Rf
 +# chmod 775 database/.* -Rf
 +# cd database/
 </​code>​ </​code>​
  
 Dateien und Profil: Dateien und Profil:
 <​code>​ <​code>​
-# mkdir -p /​u01/​app/​oracle/​product/​11.1.0/db_1+# mkdir -p /​u01/​app/​oracle/​product/​11.2.0/db_1
 # chown -R oracle:​oinstall /u01 # chown -R oracle:​oinstall /u01
 # chmod -R 775 /u01 # chmod -R 775 /u01
 # su oracle # su oracle
-nano ~/​.bash_profile+nano ~/​.bash_profile
 ... ...
 # Oracle Settings # Oracle Settings
Zeile 31: Zeile 63:
 TMPDIR=$TMP;​ export TMPDIR TMPDIR=$TMP;​ export TMPDIR
  
-ORACLE_HOSTNAME=oel45.localdomain; export ORACLE_HOSTNAME+ORACLE_HOSTNAME=<​Hostname>​.<​Domäne>​; export ORACLE_HOSTNAME
 ORACLE_BASE=/​u01/​app/​oracle;​ export ORACLE_BASE ORACLE_BASE=/​u01/​app/​oracle;​ export ORACLE_BASE
 ORACLE_HOME=$ORACLE_BASE/​product/​11.2.0/​db_1;​ export ORACLE_HOME ORACLE_HOME=$ORACLE_BASE/​product/​11.2.0/​db_1;​ export ORACLE_HOME
-ORACLE_SID=DB11G; export ORACLE_SID+ORACLE_SID=orcl; export ORACLE_SID
 ORACLE_TERM=xterm;​ export ORACLE_TERM ORACLE_TERM=xterm;​ export ORACLE_TERM
 PATH=/​usr/​sbin:​$PATH;​ export PATH PATH=/​usr/​sbin:​$PATH;​ export PATH
Zeile 54: Zeile 86:
  
 <​code>​ <​code>​
-C:​\Programme\Xming>​xming -ac -multiwindow -clipboard+C:​\Programme\Xming>​ xming -ac -multiwindow -clipboard
 </​code>​ </​code>​
  
Zeile 69: Zeile 101:
 </​code>​ </​code>​
  
 +Installation (Screenshots)
  
  
-<​code>​ 
-./​runInstaller 
-Oracle Universal Installer wird gestartet... 
- 
-Temporärer Speicherplatz wird geprüft: muss größer sein als 80 MB.   ​Tatsächlich 4324 MB    Erfolgreich 
-Swap-Speicher wird geprüft: muss größer sein als 150 MB.   ​Tatsächlich 3967 MB    Erfolgreich 
-Monitor wird geprüft: muss so konfiguriert sein, dass mindestens 256 Farben angezeigt werden. ​   Tatsächlich 16777216 ​   Erfolgreich 
-Vorbereitung für das Starten von Oracle Universal Installer aus /​tmp/​OraInstall2011-03-14_02-36-44PM. Bitte haben Sie einen Moment Geduld... 
-</​code>​ 
- 
-Installation (Screenshots) 
  
 <​code>​ <​code>​
Zeile 112: Zeile 134:
 Finished product-specific root actions. Finished product-specific root actions.
 </​code>​ </​code>​
 +
 +Oratab:
 +<​code>​
 +$ exit
 +# nano /etc/oratab
 +...
 +orcl:/​u01/​app/​oracle/​product/​11.2.0/​db_1:​Y
 +...
 +</​code>​
 +
 +Initskript:
 +<​code>​
 +# nano /​etc/​init.d/​dbora
 +...
 +#!/bin/sh
 +# chkconfig: 345 99 10
 +# description:​ Oracle auto start-stop script.
 +#
 +# Set ORA_HOME to be equivalent to the $ORACLE_HOME
 +# from which you wish to execute dbstart and dbshut;
 +#
 +# Set ORA_OWNER to the user id of the owner of the
 +# Oracle database in ORA_HOME.
 +
 +ORA_HOME=/​u01/​app/​oracle/​product/​11.2.0
 +ORA_OWNER=oracle
 +
 +if [ ! -f $ORA_HOME/​db_1/​bin/​dbstart ]
 +then
 +    echo "​Oracle startup: cannot start"
 +    exit
 +fi
 +
 +case "​$1"​ in
 +    '​start'​)
 +        # Start the Oracle databases:
 +        # The following command assumes that the oracle login
 +        # will not prompt the user for any values
 +        su - $ORA_OWNER -c "​$ORA_HOME/​db_1/​bin/​lsnrctl start"
 +        su - $ORA_OWNER -c "​$ORA_HOME/​db_1/​bin/​dbstart"​
 +        su - $ORA_OWNER -c "​$ORA_HOME/​db_1/​bin/​emctl start dbconsole"​
 +        touch /​var/​lock/​subsys/​dbora
 +        ;;
 +    '​stop'​)
 +        # Stop the Oracle databases:
 +        # The following command assumes that the oracle login
 +        # will not prompt the user for any values
 +        su - $ORA_OWNER -c "​$ORA_HOME/​db_1/​bin/​emctl stop dbconsole"​
 +        su - $ORA_OWNER -c "​$ORA_HOME/​db_1/​bin/​dbshut"​
 +        su - $ORA_OWNER -c "​$ORA_HOME/​db_1/​bin/​lsnrctl stop"
 +        rm -f /​var/​lock/​subsys/​dbora
 +        ;;
 +esac
 +
 +...
 +# chmod 750 /​etc/​init.d/​dbora
 +# chkconfig --add dbora
 +# chkconfig --list dbora
 +dbora           ​0:​off ​  ​1:​off ​  ​2:​off ​  ​3:​on ​   4:on    5:on    6:off
 +</​code>​
 +
computer/linux/oracle_database_11g_auf_centos.1300176933.txt.gz · Zuletzt geändert: 2011/03/15 09:15 von christian