Translate Tulkot

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/NorwegianÖversätta till Svensk/Swedishहिन्दी अनुवाद करने के लिए/Hindi
Tradueix al català/CatalanTulkot uz latviešu/LatvianPreložiť do slovenčiny/SlovakVertaal aan het Nederlands/Dutchترجمة الى العربية/ArabicTraduzca al Español/SpanishTraduisez au Français/French
Traduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese TraditionalПереклад на українську/Ukrainian
Installing Oracle 11g Release 2 on Fedora 13 Instalēšana Oracle 11g Release 2 gada 13 Fedora

Oracle Orākuls Database 11g Release 2 is not certified to run on Database 11g Release 2 nav sertificēta, lai darbotos ar Fedora Fedora 13 (Goddard) but I wanted to use it to debug a problem with a particular application which used this database. 13 (Goddard), bet es gribēju izmantot, lai atkļūdot problēma ar konkrētu pieteikumu, kas izmanto šo datu bāzi. I checked on the Internet for details about how to install this version of the Oracle database on Fedora 13 but did not come across comprehensive instructions. I pārbauda internetā informāciju par to, kā instalēt šo versiju Oracle datu bāzes gada 13 Fedora bet nav saskārušies vispusīgu instrukcijas. I therefore decided to write this post as a guide for others who may also wish to install this database on Fedora 13. Tāpēc es nolēmu rakstīt šo amatu kā rokasgrāmata cilvēkiem, kas var arī vēlas, lai instalētu šo datu bāzi 13 Fedora.

First of all you need to add a number of kernel parameters to /etc/sysctl.conf if they do not already exist in this file or have values less then what is shown here. Vispirms jums ir nepieciešams pievienot vairākus kodola parametru / etc / sysctl.conf ja tie nav jau šajā failā vai vērtības mazāk nekā to, kas ir parādīts šeit. These are minimum required values by the way; they can be higher. Tās ir obligātās prasības vērtībām, kā, tie var būt augstākas.

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


Compared to Salīdzinājumā ar Sybase ASE Sybase ASE which only requires kernel.shmmax , an Oracle database requires significantly more kernel parameter tweeking. kas tikai pieprasa kernel.shmmax, Oracle datu bāzi ievērojami vairāk kodola parametru tweeking.

The current value of a kernel parameter can be displayed using the following command: Pašreizējo vērtību kodola parametru var apskatīt, izmantojot šādu komandu:

# /sbin/sysctl -a | grep


If you do not want to reboot your system, just execute the following command to update the kernel with the new parameters: Ja jūs nevēlaties, lai atsāknēšana jūsu sistēmā, vienkārši izpildīt šādu komandu, lai atjauninātu kodolu ar jauniem parametriem:

# /sbin/sysctl -p


You need to install a number of software packages on your system if the packages are not already installed. Jums nepieciešams instalēt vairākas programmatūras iepakojumu jūsu sistēmā, ja iepakojumi ir nav jau instalēti. If you have installed the Development Tools package group, the majority of the necessary packages will already be installed. Ja jums ir instalēta Development Tools paketi grupā lielākā daļa nepieciešamo iepakojumu jau būs instalēta. Install the Development Tools package group and the following packages if not already installed: Instalējiet Development Tools paketi grupu un šādiem iepakojumiem, ja tie nav jau instalēti:

  • binutils binutils
  • libaio, libaio-devel libaio, libaio-attīstības
  • ksh ksh
  • sysstat sysstat
  • unixODBC, unixODBC-devel unixODBC, unixODBC-attīstības
  • compat-libstdc++-33 compat-libstdc + + -33

Next, you need to modify PAM (Plugable Authentication Module) to increase session limits for the oracle user which we will create later on. Nākamais, jums ir nepieciešams mainīt PAM (Plugable autentifikācijas modulis), lai palielinātu sesija ierobežojumus orākuls lietotājs, kas mums radīs vēlāk. Add the following line to /etc/pam.d/login if it does not already exist: Pievieno šādu līniju / etc / pam.d / login, ja tā jau nav:

    session    required     pam_limits.so


and add the following lines to /etc/security/limits.conf : un pievieno šādas rindas uz / etc / drošības / limits.conf:

    oracle     soft    nproc   2047
    oracle     hard    nproc   16384
    oracle     soft    nofile  1024
    oracle     hard    nofile  65536


Note that this file may not currently exist on your system. Ņemiet vērā, ka šis fails nedrīkst pašlaik jūsu sistēmā. You may have to create it. Jums var būt, lai radītu to.

Now create a number of new users and groups as follows: Tagad izveidot vairākus jaunu lietotāju un grupu šādi:

groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin

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


and set a password for the new oracle user. un iestatīt paroli, lai jauno orākuls lietotājs.

You must disable Secure Linux (SELINUX) while installing the database. Jums nepieciešams atslēgt Secure Linux (SELINUX), bet uzstādot datu bāzē. Edit /etc/selinux/config as follows: Rediģēt / etc / selinux / config šādi:

SELINUX=disabled


and execute setenforce off . un izpildīt setenforce off.

Edit the /etc/redhat-release file replacing the current release information – Fedora release 13 (Goodwin) – with the following: Rediģēt / etc / RedHat darbības failu aizstāt pašreizējo izplatīšanu informācija - Fedora atbrīvošanas 13 (Goodwin), - ar šādu:

redhat release 5


You must create the directories in which the Oracle database software will be installed. Jums ir izveidot direktoriju, kurā Oracle datu bāzes programmatūras tiks uzstādīti. In our example, the directory is /app/oracle and the SID is dbhome1 . Mūsu Piemēram, direktorija ir / app / orākuls un SID ir dbhome1.

mkdir -p /app/oracle/product/11.2.0/dbhome_1
chown -R oracle:oinstall /app
chmod -R 775 /app


The remaining steps require that you are logged in as oracle . Atlikušos soļus nepieciešams, ka jūs esat autorizējies kā orākuls. As user oracle , download Oracle Database 11g R2 from Kā lietotājam orākuls, lejupielādēt Oracle Database 11g R2 no Oracle Orākuls and place the two files you downloaded into the same subdirectory. un vieta diviem failus lejupielādēt uz pašu apakšdirektorijā. I placed them in ~oracle/tmp but you are free to choose any subdirectory. Es ievieto tos ~ Oracle / tmp, bet jūs esat brīvi izvēlēties jebkuru apakšdirektorijā. Then unzip both files. Tad unzip abus failus.

# unzip linux.x64_11gR2_database_1of2.zip
# unzip linux.x64_11gR2_database_2of2.zip
# ls -d */
database/
#


A single subdirectory called database is created. Vienu apakšdirektorijā nosaukumu datubāze ir izveidota. This subdirectory contains the unzipped files. Šī apakšdirektorijā satur unzipped failus.

Assuming that the user oracle is using the bash shell, add the following lines to the oracle user's .bash_profile file, changing ORACLE_HOSTNAME , ORACLE_HOME , etc. as required to suit your particular requirements: Pieņemot, ka lietotājs orākuls izmanto bash čaulas, pievieno šādas rindas uz Oracle lietotāja. Smagie ieroči failu, mainot ORACLE_HOSTNAME, ORACLE_HOME uc, kā vajadzīgs, lai atbilstu jūsu īpašajām prasībām:

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=ultra.xfpmurphy.com; export ORACLE_HOSTNAME
ORACLE_UNQNAME=dbhome_1; export ORACLE_UNQNAME
ORACLE_BASE=/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=dbhome_1; 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 LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/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


If you are using a different shell, you will need to set up these enviromental variables and limits using the appropriate shell syntax and shell initialization file. Ja lietojat citu čaumalu, jums būs nepieciešams, lai izveidotu šos vides mainīgo un ierobežojumi, izmantojot atbilstošas čaumalas sintakse un apvalks inicializācijas failu. You may also need to set the NLS_LANG environmental variable to match your country, language and desired character set, eg germany_germany.we8iso8859p1 . Jums var būt arī nepieciešams noteikt NLS_LANG vides mainīgo, lai atbilstu jūsu valsti, valodu un vajadzīgo rakstzīmju kopu, piemēram, germany_germany.we8iso8859p1.

Oracle databases are installed using the Oracle Universal Installer (OUI) which is GUI-based and uses the X Window system. Oracle datu bāzes ir uzstādīti, izmantojot Oracle Universal Installer (oui), kas ir GUI balstītu un izmanto X Window sistēmu. There is no equivalent command line installer. Nav līdzvērtīga komandrindas uzstādītājam. You may need to set the your DISPLAY environmental variable and use the xhost utility to configure server access. Jums var būt nepieciešams noteikt jūsu DISPLAY vides mainīgo un izmantot xhost lietderība konfigurēt servera piekļuves. Start OUI by issuing the runInstaller command in the ~oracle/tmp/database directory. Sākt oui izdodot runInstaller komandu ~ Oracle / tmp / datubāzē direktorijā.

If OUI cannot determine your IP address because it is not in /etc/hosts then you will get the following error: Ja oui nevar noteikt jūsu IP adresi, jo tas nav / etc / hosts, tad jūs iegūsiet šādu kļūdu:

[INS-06101] IP address of localhost could not be determined


If you see an error message similar to one of the following: “Failed to connect to server”, “Connection refused by server” or “Can't open display”, then you have a problem with X Windows, either with permissions or the DISPLAY variable. Ja redzat kļūdas paziņojumu, līdzīgs vienai no šādām: "Neizdevās savienoties ar serveri", "Savienojums atteikt serveris" vai "Nevar atvērt displejs", tad jums ir problēmas ar X Windows, vai nu ar atļaujas vai DISPLAY mainīgs. I am going to assume you know how to fix such problems. Es esmu gatavojas pieņemt, jūs zināt, kā noteikt šādām problēmām.

After answering a few basic questions, you should see the following Typical Install Configuration screen: Pēc tam, kad atbildot uz pāris vienkāršiem jautājumiem, jums vajadzētu redzēt šādu Tipiski Install konfigurācija ekrāns:

orākuls uzstādītājs screenshot. gada 8 4 posma

Check the settings carefully before proceeding further. Pārbaudiet iestatījumus uzmanīgi pirms turpināt tālāk.

Next OUI checks that the installed software development and runtime packages are correct: Nākamās oui pārbaudes, instalētās programmatūras izstrādes un runtime iepakojumi ir pareizi:

orākuls uzstādītājs screenshot

Fedora 13 will fail all these checks. 13 Fedora nebūs visām minētajām pārbaudēm. Just tick the check box Ignore All on the top right hand to ignore these errors. Vienkārši atzīmējiet izvēles rūtiņu Ignorēt Visi augšējā labajā ignorēt šīs kļūdas. So long as you have the latest version of each of these packages installed, all will be fine. Tik ilgi, kamēr jums ir jaunākā versija katrs no šiem uzstādītas iepakojumu, visiem būs labi. Note that you do not need to install pdksh (Public Domain Korn Shell) if you have ksh installed. Ievērojiet, ka jums nav nepieciešams instalēt pdksh (Public Domain Korn Shell), ja Jums ir ksh uzstādīta.

During the installation, OUI will popup a dialog window advising you that an error has occurred with ins_emagent.mk . Instalēšanas laikā, oui būs uznirstošo dialoga logu konsultēt jūs, ka kļūda ir notikusi ar ins_emagent.mk. See below: Skatīt zemāk:

orākuls uzstādītājs screenshot

This error is due to a change in the GCC linker in Fedora 13. Šī kļūda ir saistīta ar izmaiņām GCC linker 13 Fedora. The announcement is Paziņojums ir here šeit . . The fix is to edit $ORACLE_HOME/sysman/lib/ins_emagent.mk , search for the line $(MK_EMAGENT_NMECTL) and replace the line with $(MK_EMAGENT_NMECTL) -lnnz11 as shown above. Noteikt ir rediģēt $ ORACLE_HOME / sysman / lib / ins_emagent.mk, līnija meklēt $ (MK_EMAGENT_NMECTL) un aizstāt saskaņā ar $ (MK_EMAGENT_NMECTL)-lnnz11, kā parādīts iepriekš.

After saving the changed file, select the Retry option, and the install should successfully continue. Pēc glābšanas mainīti failu, izvēlieties Atkārtot opciju, un uzstādīt, būtu sekmīgi jāturpina. Eventually you should see the Database Configuration Assistant screen as shown below: Galu galā jums vajadzētu redzēt Datu bāzes konfigurācijas Palīgs ekrāns, kā parādīts zemāk:

orākuls uzstādītājs screenshot

Do not ignore the Password Management button; press it and change the passwords for SYS and SYSTEM . Nelietojiet ignorēt Parole vadības poga, nospiediet to, un mainīt paroles SYS un SYSTEM.

You are now ready to do a basic smoketest of the installed database software. Tagad Jūs esat gatavs darīt pamata smoketest par uzstādīto datubāzes programmatūru.

$ id
uid=502(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin)
$ cd $ORACLE_HOME
$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 06-AUG-2010 20:47:56

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Starting /app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /app/oracle/diag/tnslsnr/ultra/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ultra.xxxxxxxxxx.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                06-AUG-2010 20:47:58
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /app/oracle/diag/tnslsnr/ultra/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ultra.xxxxxxxxxx.com)(PORT=1521)))
The listener supports no services
The command completed successfully
$

$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://ultra.xxxxxxxxxxx.com:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ...... started.
------------------------------------------------------------------
Logs are generated in directory /app/oracle/product/11.2.0/dbhome_1/ultra.xxxxxxxxxx.com_orcl/sysman/log
$

$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 6 20:50:12 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area  839282688 bytes
Fixed Size		    2217992 bytes
Variable Size		  524290040 bytes
Database Buffers	  306184192 bytes
Redo Buffers		    6590464 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$


If you have got this far with your installation of Oracle 11g, all is well. Ja jums ir ieguvuši tik tālu ar savu uzstādīšanu 11g Oracle, viss ir labi. The core Oracle 11g database software is installed and working. Kodols Oracle 11g datubāzes programmatūra ir instalēta un darbojas. You may have some tweaking to do for your particular requirements but that is outside the scope of this post. Jums var būt dažas tweaking jādara jūsu īpašās prasības, bet tas ir ārpus šī post. Note the listener supports no services message; we will address this shortly. Piezīme klausītājs atbalsta ne pakalpojumu ziña; mēs atrisinātu šo drīz.

First, as root , we need to fix up a couple of files. Pirmkārt, kā root, mums ir nepieciešams noteikt pat pāris failus. Edit the /etc/oratab file setting the restart flag for each instance to Y : Rediģēt / etc / oratab dokumentus, kuros restart karogu, par katru piemēram, Y:

DB11G:/u01/app/oracle/product/11.2.0/db_1:Y


Edit the /etc/redhat-release file to restore the original release information: Rediģēt / etc / RedHat darbības failu, lai atjaunotu sākotnējo izplatīšanu informācija:

Fedora release 13 (Goodwin)


At this stage you should be able to invoke the Oracle sqldeveloper GUI by invoking $ORACLE_HOMEsqldeveloper/sqldeveloper/bin/sqldeveloper . Šajā posmā Jums vajadzētu būt iespējai izmantot Oracle sqldeveloper GUI, atsaucoties $ ORACLE_HOMEsqldeveloper / sqldeveloper / bin / sqldeveloper. Once you have configured a valid connection, you should see a screen similar to this: Kad esat konfigur derīga savienojumu, jums vajadzētu redzēt ekrāna līdzīgs šim:

orākuls sqldeveloper screenshot

If you configure listener.ora you can also access the Oracle Enterprise Console via the Web as shown here: Ja jums konfigurēt listener.ora Jūs varat piekļūt arī Oracle Enterprise konsoles caur Web, kā parādīts šeit:

orākuls uzņēmuma vadība screenshot

Here is what is in my listener.ora : Lūk, kas ir manā listener.ora:

$ cat $ORACLE_HOME/admin/listener.ora
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = ultra.xfpmurphy.com)(PORT = 1521))
    )
  )

SID_LIST_LISTENER =
   (SID_LIST =
     (SID_DESC =
       (GLOBAL_DBNAME = DBHOME)
       (ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)
       (SID_NAME = orcl)
     )
   )

ADR_BASE_FPM = /app/oracle
$


You will obviously have to use different values for HOST and possibly SID_NAME , ORACLE_HOME and GLOBAL_DBNAME . Jūs, protams, ir izmantot dažādas vērtības uzņēmējas un, iespējams, SID_NAME, ORACLE_HOME un GLOBAL_DBNAME.

To automatically start and shop the Oracle database during system startup and shutdown you need to place an appropriate script in the /etc/rc.d/init.d directory and symbolically link it to the appropriate rc directories. Lai automātiski sāktu un veikalu Oracle datubāzes laikā sistēmas starta un izslēgšanu jums ir jāievieto atbilstoši skriptu / etc / rc.d / init.d direktorijā un simboliski saistīt to ar atbilstošu rc katalogi. Here is a script to start or stop the Oracle database using dbinit : Šeit ir skripts, lai sāktu vai apturētu Oracle datu bāzi, izmantojot dbinit:

#!/bin/bash
#
# init file for starting and stopping Oracle 11g database using dbstart/dbstop
#
# chkconfig: 35 80 30
# description: Oracle database startup and shutdown script
#

. /etc/rc.d/init.d/functions

ORACLE_BASE=/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
ORACLE_SID=dbhome_1

case "$1" in
   start)
       echo -n $"Starting Oracle DB:"
       su - oracle -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
       echo "OK"
       ;;
   stop)
      echo -n $"Stopping Oracle DB:"
      su - oracle -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
      echo "OK"
      ;;
   *)
     echo $"Usage: $0 {start|stop}"
esac


and here is an alternative script to start and stop the Oracle database using Oracle Enterprise Manager Database Control: un šeit ir alternatīva skripts, lai sāktu un apturētu Oracle datu bāzi, izmantojot Oracle Enterprise Manager Database Control:

#!/bin/bash
#
# init file for starting and stopping Oracle 11g database using emctl
#
# chkconfig: 35 80 30
# description: Oracle database startup and shutdown script using Enterprise manager console
#

. /etc/rc.d/init.d/functions

ORACLE_BASE=/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
ORACLE_SID=dbhome_1

case "$1" in
   start)
      echo -n $"Starting Oracle Enterprise Manager Database Console:"
      su - oracle -c "$ORACLE_HOME/bin/emctl start dbconsole"
      echo "OK"
      ;;
   stop)
      echo -n $"Stopping Oracle Enterprise Manager Database Console:"
      su - oracle -c "$ORACLE_HOME/bin/emctl stop dbconsole"
      echo "OK"
      ;;
   *)
      echo $"Usage: $0 {start|stop}"
esac


I assume that you know how to install a new init script so I am not going to describe the process here. Es pieņemu, ka jūs zināt, kā uzstādīt jaunu init skripts tāpēc es neesmu dodas, lai aprakstītu šo procesu šeit.

Please let me know if I left out anything important that you feel would of been of help to you in installing Oracle 11g on Fedora 13 and I will add it to this post. Lūdzu, dariet man zināmu, ja es izlaist kaut ko svarīgu, ka jums liekas, ka tas ir bijis par palīdzēt jums uzstādīt Oracle 11g gada 13 Fedora un es pievienot to uz šo amatu.

Leave a Comment Leave a Comment