manual de oracle fedora - ingles

Upload: mario-alberto-chan-balan

Post on 14-Apr-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 Manual de Oracle Fedora - Ingles

    1/13

    1

    TOP TECHNOLOGY INSTITUTE ESCARCEGA

    Computer Systems Engineering

    SUBJECT

    Database administration

    Manual installation of a database manager

    MEMBERS:

    Mario Alberto Chan BalanRub Esmeralda Espinoza Martnez

    David Montiel RamrezRigo Alberto Rodrguez Mex

    Daniel Magaa RodrguezJazmn Montiel Ramrez

    ISMA- 618-04-2013

  • 7/30/2019 Manual de Oracle Fedora - Ingles

    2/13

    2

    Introduction ---------------------------------------------------------------------------3

    Requirements ------------------------------------------------------------------------3

    Installation Development -------------------------------------------------------4

    conclusion --------------------------------------------------------------------------13

  • 7/30/2019 Manual de Oracle Fedora - Ingles

    3/13

    3

    INTRODUCCIN

    In this tutorial we will see step by step installation of OracleDatabase XE 11g R2 Express Edition as well as some relevantinformation about the DBMS, this is on the Windows platform, ie the

    can follow this guide if you operating system is Windows XP,Windows Vista, Windows 7, Windows Server 2003, Windows Server2008 and Windows Server 2008 R2, for those who are installing onWindows Vista or Windows 7 have to do it this way, select theexecutable, press right mouse button and a menu will appear, andselect - Run as administrator - this is important because if you dothen you can have problems during installation or if the installationis complete we will either unforeseen errors.

    DBMS INFORMATION

    Oracle Database 11g R2 includes Oracle Application Expressrelease 2.1 graphical development environment for building Webapplications with database. Oracle Database XE is a reduced versionof Oracle with the same characteristics and potential of OracleDatabase. It should be emphasized that supports all data types inOracle Database XE.

    Oracle Database 11g R2 includes the following utilities:

    SQL Command Line (SQL * Plus) to execute SQL commands and PL /SQL and execute scripts

    SQL * Loader to insert data into the database

    Utilities to import, export and database dump

  • 7/30/2019 Manual de Oracle Fedora - Ingles

    4/13

    4

    STEPS TO INSTALL ORACLE DATABASE 11G R2

    After downloading the zip have to unzip:

    unzip linux.x64_11gR2_database_1of2.zipunzip linux.x64_11gR2_database_2of2.zip

    If all went well you created a folder called database

    Now we have to modify the / etc / hosts because you have to have allthe server name.

    For this we logeamos as root. The file must be of the following form:

    Ahora vamos a agregar unos parametros a /etc/sysctl.conf (comoroot)

    fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500

    net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586

    Ahora corremos el siguiente comando para aplicar los nuevosparametros:/sbin/sysctl -p

    Ahora debemos agregar la siguientes lineas en el"/etc/security/limits.conf"oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536

    And now we have to modify "/ etc / pam.d / login" and add thefollowing line if it exists:

    session required pam_limits.so

  • 7/30/2019 Manual de Oracle Fedora - Ingles

    5/13

    5

    Then we have to disable the firewall that can be done with theapplication firewall {on itself to

    Now to disable SELINUX for this edit "/ etc / selinux / config" andedit the line

    SELINUX and put:SELINUX=disabled

    Ahora a Instalar librerias:

    yum install binutilsyum install compat-libstdc++-33

    yum install compat-libstdc++-33.i686yum install elfutils-libelfyum install elfutils-libelf-develyum install gccyum install gcc-c++yum install glibcyum install glibc.i686yum install glibc-commonyum install glibc-develyum install glibc-devel.i686yum install glibc-headers

    yum install kshyum install libaioyum install libaio.i686yum install libaio-develyum install libaio-devel.i686yum install libgccyum install libgcc.i686yum install libstdc++yum install libstdc++.i686yum install libstdc++-develyum install makeyum install numactl-develyum install sysstatyum install unixODBCyum install unixODBC.i686yum install unixODBC-develyum install unixODBC-devel.i686

    Ahora debemos crear los siguientes grupos:

    groupadd oinstall

    groupadd dbagroupadd oper

  • 7/30/2019 Manual de Oracle Fedora - Ingles

    6/13

    6

    groupadd asmadmin

    useradd -g oinstall -G dba,oper,asmadmin oraclepasswd oracle

    Ahora creamos el directorio donde oracle va a ser instalado:

    mkdir -p /u01/app/oracle/product/11.2.0/db_1chown -R oracle:oinstall /u01chmod -R 775 /u01

    Vamos a editar el archivo "/etc/redhat-release" y simulamos que esun red-hat borrando lo que tiene y escribiendo:

    redhat release 5

    por ultimo tenemos que ir al .bash_profile logeados como usuariooracle y agregamos

    # Oracle SettingsTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIR

    ORACLE_HOSTNAME=fedora14.localdomain; exportORACLE_HOSTNAMEORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME

    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; exportORACLE_HOMEORACLE_SID=DB11G; export ORACLE_SIDORACLE_TERM=xterm; export ORACLE_TERMPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATH

    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; exportLD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE

    _HOME/rdbms/jlib; export CLASSPATH

    if [ $USER = "oracle" ]; thenif [ $SHELL = "/bin/ksh" ]; then

    ulimit -p 16384ulimit -n 65536

    elseulimit -u 16384 -n 65536

    fifi

  • 7/30/2019 Manual de Oracle Fedora - Ingles

    7/13

    7

    Now we leave the secion and we logeamos as oracle and run. / runInstaller and follow the wizard ...Then we will leave the following windowIn this window is configured to receive updates

    This window gives the option to create a configuration for thedatabase

    This window is to select the type of system

    http://3.bp.blogspot.com/-Y4082AmXNh0/UEQTnXYFy2I/AAAAAAAABW4/H1vKgWBhIG4/s1600/Pantallazo-1.pnghttp://2.bp.blogspot.com/-puyAQJsEoqE/UEQT10sEKMI/AAAAAAAABX4/moCPVt2Wr1k/s1600/Pantallazo.png
  • 7/30/2019 Manual de Oracle Fedora - Ingles

    8/13

    8

    This window configures the installation, I recommend leaving thedefault brings Oracle 11g R2 or modify it according to your needs

    http://3.bp.blogspot.com/-pYa0vYs49A8/UEQTqcT8MHI/AAAAAAAABXI/54bwGC3TPSM/s1600/Pantallazo-3.pnghttp://2.bp.blogspot.com/-GilbfH6yRU8/UEQToxf0BuI/AAAAAAAABXA/sbG4Fi9kAqA/s1600/Pantallazo-2.png
  • 7/30/2019 Manual de Oracle Fedora - Ingles

    9/13

    9

    In this part of the Oracle 11g Installer Wizard determine which willbe the ORACLE_BASE directory and in that directory will install theunit is to choose I would always recommend using Oracle's proposedstructure.

    Once this verification can sharecroppers Ventada which describesthe possible failures that Oracle Client installer is detected, you willhave to fix them but in some cases may be faults that are not totally

    real, if you continue tikar in the check box 'Ignore All 'activate thenext button and press.

    http://1.bp.blogspot.com/-a9zWcsD8Fgk/UEQTt41klXI/AAAAAAAABXY/uKki-Uqdw6Y/s1600/Pantallazo-5.pnghttp://4.bp.blogspot.com/-Ukwqle4w8-c/UEQTsRVuneI/AAAAAAAABXQ/GxCujJFVCNc/s1600/Pantallazo-4.png
  • 7/30/2019 Manual de Oracle Fedora - Ingles

    10/13

    10

    This wizard window will be giving us information about installing theOracle11g R2

    http://2.bp.blogspot.com/-KtJXbuLxVFA/UEQTyE1gILI/AAAAAAAABXo/8O8J52BYznY/s1600/Pantallazo-7.pnghttp://3.bp.blogspot.com/-w-SEd9SeCUQ/UEQTvFHrrtI/AAAAAAAABXg/enTOen1QPmE/s1600/Pantallazo-6.png
  • 7/30/2019 Manual de Oracle Fedora - Ingles

    11/13

    11

    http://2.bp.blogspot.com/-qK_1dHjFWoM/UEQWVA-w5JI/AAAAAAAABYI/dsvGfyrj6Gg/s1600/Pantallazo-9.pnghttp://1.bp.blogspot.com/-b5bm0p7V_KE/UEQT0R9ae6I/AAAAAAAABXw/_jAJMvD0aB0/s1600/Pantallazo-8.png
  • 7/30/2019 Manual de Oracle Fedora - Ingles

    12/13

    12

    And so ends the installation.

    http://1.bp.blogspot.com/-raO-2tP8788/UEQaRoMfDqI/AAAAAAAABYw/_bVORYYeHSk/s1600/Pantallazo-10.png
  • 7/30/2019 Manual de Oracle Fedora - Ingles

    13/13

    13

    CONCLUSION

    To conclude, this tool is very good from my point of view, becauseyou can do everything that is needed for database design,implementation and management of the same, and it is easier andconvenient to use this software if you you are interested indatabases.