Vous êtes sur la page 1sur 4

en tant que root ---------------etape 1 editer /etc/hosts address-IP nom_de_machine.nom_de_domaine nom_de_machin e etape 2 editer /etc/sysctl (ajouter ou modifier) fs.

aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048586 etape 3 lancer la commande /sbin/sysctl -p etape 4 ajouter /etc/security/limits.conf oracle oracle oracle oracle etape 5 installer les packages yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum install install install install install install install install install install install install install install install install install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-headers glibc-devel.i686 ksh libaio libaio.i686 libaio-devel soft hard soft hard nproc nproc nofile nofile 2047 16384 1024 65536

yum yum yum yum yum yum yum yum yum yum yum yum yum yum etape 6

install install install install install install install install install install install install install install

libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make numactl numactl-devel sysstat unixODBC unixODBC.i686 unixODBC-devel unixODBC-devel.i686

creer les groupes et les utilisateurs groupadd groupadd groupadd groupadd oinstall dba oper asmadmin

useradd -g oinstall -G dba,oper,asmadmin oracle passwd oracle etape 7 creer les repertoires pour oracle: mkdir -p /opt/app/oracle/product/11.2.0/db_1 chown -R oracle:oinstall /opt chmod -R 775 /opt etape 8 lancer xhost + etape 9 editer /etc/redhat-release remplacer Fedora release 17 (Beefy Miracle) par redhat release 5 en tant que oracle ---------------etape 1 ajouter a bash_profile # Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_HOSTNAME=fedora17.localdomain; export ORACLE_HOST NAME ORACLE_UNQNAME=mabase; export ORACLE_UNQNAME ORACLE_BASE=/opt/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORA

CLE_HOME ORACLE_SID=mabase; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export L D_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOM E/rdbms/jlib; export CLASSPATH if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi etape 2 DISPLAY=<machine-name>:0.0; export DISPLAY (n'oublier pas de se reconnecter oracle) etape 3 lancer ./runInstaller (il faut ignorer les echecs car les pachag es des fedora sont plus recentes) aprs l'installation en tant que root ------------------------------------etape 1 remettre de fichier /etc/redhat-release a son origine /etc/redha t-release remplacer redhat release 5 par Fedora release 17 (Beefy Miracle) etape 2 editer /etc/oratab" remplacer N par Y mabase:/opt/app/oracle/product/11.2.0/db_1:Y etape 3 Automatiser le Startup et le Shutdown pour cela: creer le fichier /etc/init.d/dbora avec le script: #!/bin/sh # chkconfig: 345 99 10 # description: Oracle auto start-stop script. # # Set ORA_HOME to be equivalent to the $ORACLE_H OME # from which you wish to execute dbstart and dbs

hut; # # Set ORA_OWNER to the user id of the owner of t he # Oracle database in ORA_HOME. #ORA_HOME=/u01/app/oracle/product/10.2.0/db_1 #ORA_HOME=/u01/app/oracle/product/11.1.0/db_1 ORA_HOME=/u01/app/oracle/product/11.2.0/db_1 ORA_OWNER=oracle if [ ! -f $ORA_HOME/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 a ny values su - $ORA_OWNER -c "$ORA_HOME/bi n/dbstart $ORA_HOME" touch /var/lock/subsys/dbora ;; 'stop') # Stop the Oracle databases: # The following command assumes that the oracle login # will not prompt the user for a ny values su - $ORA_OWNER -c "$ORA_HOME/bi n/dbshut $ORA_HOME" rm -f /var/lock/subsys/dbora ;; esac etape 4 rendre le fichier dbora executable : chmod 750 /etc/init.d/dbora etape 5 rendre dbora un service: chkconfig --add dbora references : ---------documentation oracle /linux --------------------------http://docs.oracle.com/cd/E11882_01/install.112/e10840/toc.htm pour dbstart -----------http://docs.oracle.com/cd/E11882_01/server.112/e10839/strt_stp.h tm#BABGDGHF