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/17 13:35] – 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 34: | Zeile 34: | ||
| PAM: | PAM: | ||
| < | < | ||
| - | echo " | + | # echo " |
| </ | </ | ||
| Zeile 66: | Zeile 66: | ||
| 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=/ | ||
| Zeile 86: | Zeile 86: | ||
| < | < | ||
| - | C: | + | C: |
| </ | </ | ||
| Zeile 143: | Zeile 143: | ||
| ... | ... | ||
| </ | </ | ||
| + | |||
| + | 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 | ||
| + | </ | ||
| + | |||