Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| computer:linux:oracle_database_11g_auf_centos [2011/03/14 17:10] – christian | computer:linux:oracle_database_11g_auf_centos [2011/03/18 13:50] (aktuell) – christian | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| Abhängigkeiten: | Abhängigkeiten: | ||
| < | < | ||
| - | 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 |
| </ | </ | ||
| Gruppen und Benutzeraccount: | Gruppen und Benutzeraccount: | ||
| < | < | ||
| - | #groupadd oinstall | + | # groupadd oinstall |
| - | #groupadd dba | + | # groupadd dba |
| - | #groupadd oper | + | # groupadd oper |
| - | #groupadd asmadmin | + | # groupadd asmadmin |
| - | #useradd -g oinstall -G dba, | + | # useradd -g oinstall -G dba, |
| - | #passwd oracle | + | # passwd oracle |
| </ | </ | ||
| Zeile 17: | Zeile 17: | ||
| < | < | ||
| # yum install xorg-x11*utils | # yum install xorg-x11*utils | ||
| + | </ | ||
| + | |||
| + | Kernel-Parameter: | ||
| + | < | ||
| + | # nano / | ||
| + | ... | ||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | PAM: | ||
| + | < | ||
| + | # echo " | ||
| + | </ | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | Entpacken: | ||
| + | < | ||
| + | # 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/ | ||
| </ | </ | ||
| Dateien und Profil: | Dateien und Profil: | ||
| < | < | ||
| - | # mkdir -p / | + | # mkdir -p / |
| # chown -R oracle: | # chown -R oracle: | ||
| # chmod -R 775 /u01 | # chmod -R 775 /u01 | ||
| # su oracle | # su oracle | ||
| - | # nano ~/ | + | $ nano ~/ |
| ... | ... | ||
| # Oracle Settings | # Oracle Settings | ||
| Zeile 31: | Zeile 63: | ||
| TMPDIR=$TMP; | TMPDIR=$TMP; | ||
| - | ORACLE_HOSTNAME=oel45.localdomain; export ORACLE_HOSTNAME | + | ORACLE_HOSTNAME=< |
| ORACLE_BASE=/ | ORACLE_BASE=/ | ||
| - | ORACLE_HOME=$ORACLE_BASE/ | + | ORACLE_HOME=$ORACLE_BASE/ |
| - | ORACLE_SID=DB11G; export ORACLE_SID | + | ORACLE_SID=orcl; export ORACLE_SID |
| ORACLE_TERM=xterm; | ORACLE_TERM=xterm; | ||
| PATH=/ | PATH=/ | ||
| - | PATH=$ORACLE_HOME/ | + | PATH=$ORACLE_HOME/ |
| LD_LIBRARY_PATH=$ORACLE_HOME/ | LD_LIBRARY_PATH=$ORACLE_HOME/ | ||
| Zeile 54: | Zeile 86: | ||
| < | < | ||
| - | C: | + | C: |
| </ | </ | ||
| Zeile 69: | Zeile 101: | ||
| </ | </ | ||
| + | Installation (Screenshots) | ||
| - | < | ||
| - | ./ | ||
| - | Oracle Universal Installer wird gestartet... | ||
| - | |||
| - | Temporärer Speicherplatz wird geprüft: muss größer sein als 80 MB. | ||
| - | Swap-Speicher wird geprüft: muss größer sein als 150 MB. | ||
| - | Monitor wird geprüft: muss so konfiguriert sein, dass mindestens 256 Farben angezeigt werden. | ||
| - | Vorbereitung für das Starten von Oracle Universal Installer aus / | ||
| - | </ | ||
| - | |||
| - | Installation (Screenshots) | ||
| < | < | ||
| Zeile 112: | Zeile 134: | ||
| Finished product-specific root actions. | Finished product-specific root actions. | ||
| </ | </ | ||
| + | |||
| + | Oratab: | ||
| + | < | ||
| + | $ exit | ||
| + | # nano /etc/oratab | ||
| + | ... | ||
| + | orcl:/ | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | Initskript: | ||
| + | < | ||
| + | # nano / | ||
| + | ... | ||
| + | #!/bin/sh | ||
| + | # chkconfig: 345 99 10 | ||
| + | # description: | ||
| + | # | ||
| + | # 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=/ | ||
| + | ORA_OWNER=oracle | ||
| + | |||
| + | if [ ! -f $ORA_HOME/ | ||
| + | then | ||
| + | echo " | ||
| + | exit | ||
| + | fi | ||
| + | |||
| + | case " | ||
| + | ' | ||
| + | # Start the Oracle databases: | ||
| + | # The following command assumes that the oracle login | ||
| + | # will not prompt the user for any values | ||
| + | su - $ORA_OWNER -c " | ||
| + | su - $ORA_OWNER -c " | ||
| + | su - $ORA_OWNER -c " | ||
| + | touch / | ||
| + | ;; | ||
| + | ' | ||
| + | # Stop the Oracle databases: | ||
| + | # The following command assumes that the oracle login | ||
| + | # will not prompt the user for any values | ||
| + | su - $ORA_OWNER -c " | ||
| + | su - $ORA_OWNER -c " | ||
| + | su - $ORA_OWNER -c " | ||
| + | rm -f / | ||
| + | ;; | ||
| + | esac | ||
| + | |||
| + | ... | ||
| + | # chmod 750 / | ||
| + | # chkconfig --add dbora | ||
| + | # chkconfig --list dbora | ||
| + | dbora | ||
| + | </ | ||
| + | |||