Oracleオラクル Database 11g Release 2 is not certified to run on Database 11gのリリースは、2で実行したことを証明されていません Fedoraフェドーラ 13 (Goddard) but I wanted to use it to debug a problem with a particular application which used this database. 13(ゴダード)が、私はそれを使用する手配は、このデータベースを使用し、特定のアプリケーションの問題をデバッグします。 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.私はFedoraの13日にOracleデータベースのこのバージョンをインストールする方法包括的な指示に遭遇しなかったの詳細についてはインターネット上でチェックされます。 I therefore decided to write this post as a guide for others who may also wish to install this database on Fedora 13.したがって、私はまた、Fedora 13日このデータベースをインストールすることがあります他のガイドとして、この記事を書くことにした。
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.最初のあるすべてのまたはファイルこの存在ではすでにない彼らはあなたが必要に追加の/ etc /番号をパラメータのカーネルは、sysctl.conf に応じて値少ないし、何を次に示します。 These are minimum required values by the way; they can be higher.これらの方法で最低限必要な値です。彼らが高くなることができます。
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に比べて Sybase ASE Sybase ASEの which only requires kernel.shmmax , an Oracle database requires significantly more kernel parameter tweeking.これだけのデータベースが必要ですkernel.shmmaxは 、Oracleのtweekingを必要とはるかにカーネルパラメータ。
The current value of a kernel parameter can be displayed using the following command:カーネルパラメータの現在の値は次のコマンドを使用して表示することができます:
# /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:あなたのシステムをリブートするだけで、次のコマンドを新しいパラメータでカーネルを更新するために実行しない場合:
# /sbin/sysctl -p
You need to install a number of software packages on your system if the packages are not already installed.あなたのシステム上のパッケージがある場合既にインストールされていないソフトウェアパッケージの数をインストールする必要があります。 If you have installed the Development Tools package group, the majority of the necessary packages will already be installed.パッケージ必要に応じてお持ちのインストール開発ツールの過半数のパッケージグループをインストールすることが既に。 Install the Development Tools package group and the following packages if not already installed:インストール開発ツールパッケージのグループと、次のパッケージがインストールした場合は、既に:
- binutils binutilsを
- libaio, libaio-devel libaioの、のlibaio - develを
- ksh kshの
- sysstat sysstatの
- unixODBC, unixODBC-devel unixODBCの、unixODBCの- develで
- compat-libstdc++-33 compatの- -33 libstdc + +の
Next, you need to modify PAM (Plugable Authentication Module) to increase session limits for the oracle user which we will create later on.次に、後で作成する必要が修正PAMを(プラグ可能でしょう我々はユーザーのOracle の制限のために認証モジュールセッション増加)する。 Add the following line to /etc/pam.d/login if it does not already exist:存在次の行を追加するの/ etc 既に / pam.d以下は / しないには、ログインする場合 :
session required pam_limits.so
and add the following lines to /etc/security/limits.conf :とlimits.confを/セキュリティの/ etcを追加次の行を/:
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.このファイルは、現在お使いのシステム上に存在しない場合があります。 You may have to create it.あなたはそれを作成する必要があります。
Now create a number of new users and groups as follows:今では新しいユーザーとしてグループの数を作成する次の:
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.およびユーザの新しいOracleの設定したパスワードのために。
You must disable Secure Linux (SELINUX) while installing the database.あなたは、Secure Linuxを(SELinux)は、データベースをインストール中に無効にする必要があります。 Edit /etc/selinux/config as follows:編集/ etc / selinuxには/として設定します:
SELINUX=disabled
and execute setenforce off .オンとオフ一緒にsetenforce実行します。
Edit the /etc/redhat-release file replacing the current release information – Fedora release 13 (Goodwin) – with the following:編集は、/ etc / redhat - releaseのファイルには、情報を交換する、現在のリリース- Fedoraのリリースを13(グッドウィン) -次のように:
redhat release 5
You must create the directories in which the Oracle database software will be installed.あなたは、Oracleのデータベースソフトウェアがインストールされるディレクトリを作成する必要があります。 In our example, the directory is /app/oracle and the SID is dbhome_1 .この例では私たちの、ディレクトリは/アプリケーション/ oracleとSIDがdbhome_1です。
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 .残りの手順は、Oracle が必要というように記録されますあなたは。 As user oracle , download Oracle Database 11g R2 from オラクルとしてユーザからのOracle Database 11gのR2のダウンロード Oracleオラクル and place the two files you downloaded into the same subdirectory.あなたは、同じサブディレクトリにダウンロードした2つのファイルを配置します。 I placed them in ~oracle/tmp but you are free to choose any subdirectory.私はtmpを/に配置して〜オラクルが、サブディレクトリをすべて選択している無料。 Then unzip both files.その後、両方のファイルを解凍します。
# unzip linux.x64_11gR2_database_1of2.zip # unzip linux.x64_11gR2_database_2of2.zip # ls -d */ database/ #
A single subdirectory called database is created. 1つのサブディレクトリと呼ばれるデータベースが作成されます。 This subdirectory contains the unzipped files.このサブディレクトリに解凍したファイルが含まれます。
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:仮定すると、そのユーザの bash オラクルは 、 使用してシェルを次の行を追加するoracleユーザーの。bash_profileにファイルを変更など ORACLE_HOSTNAMEを、ORACLE_HOMEを、要件 、 特定のお客様に合わせ必要に応じて移動:
# 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.別のシェルを使用している場合は、これらの環境変数を、制限、適切なシェルの構文とシェルの初期化ファイルを使用して設定する必要があります。 You may also need to set the NLS_LANG environmental variable to match your country, language and desired character set, eg germany_germany.we8iso8859p1 .あなたはgermany_germany.we8iso8859p1を可能性があります例えば、セットを設定NLS_LANGの環境は、国にマッチする変数をする言語を、必要な文字もする必要があります。
Oracle databases are installed using the Oracle Universal Installer (OUI) which is GUI-based and uses the X Window system. Oracleデータベースは、Oracle Universal Installerを(OUI)をどのGUIベースであり、X Windowシステムを使用して使用してインストールされます。 There is no equivalent command line installer.ない同等のコマンドラインインストーラがあります。 You may need to set the your DISPLAY environmental variable and use the xhost utility to configure server access.あなたはアクセスサーバーのディスプレイを可能性があります必要に設定され、環境設定します。xhost ユーティリティを使用して変数と。 Start OUI by issuing the runInstaller command in the ~oracle/tmp/database directory. [スタート] OUIのディレクトリデータベースを/ tmp /オラクルで〜 によって発行ンドを 。
If OUI cannot determine your IP address because it is not in /etc/hosts then you will get the following error: 等のアドレスを/ではないので、それがIPアドレスの場合は判断できないOUIをすることができます/エラーをホストし、次の必要になります取得:
[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.あなたは、エラーメッセージが次のいずれかのように表示する場合:"サーバ"に接続できませんでした"接続がサーバーによって拒否されました"または"することはできませんディスプレイ"を開くと、その後はX Windowsに問題がある、アクセス許可、またはいずれかでDISPLAY変数。 I am going to assume you know how to fix such problems.私はあなたが、このような問題を解決する知っていると仮定するつもりです。
After answering a few basic questions, you should see the following Typical Install Configuration screen:いくつかの基本的な質問に答えると、次の典型的なインストールの設定]画面が表示されます:

Check the settings carefully before proceeding further.慎重にさらに進む前に、設定を確認します。
Next OUI checks that the installed software development and runtime packages are correct:次のOUIのチェックは、インストールされたソフトウェアの開発およびランタイムパッケージが正しい:

Fedora 13 will fail all these checks. Fedoraは13のすべてのこれらのチェックに失敗します。 Just tick the check box Ignore All on the top right hand to ignore these errors.ただエラーを無視して、これらの手を無視すべてにチェック]チェックボックスを右上。 So long as you have the latest version of each of these packages installed, all will be fine.あなたは、これらの各パッケージがインストールの最新バージョンを持っている限り、すべての罰金になります。 Note that you do not need to install pdksh (Public Domain Korn Shell) if you have ksh installed.インストール注意する必要はありませんがpdkshの (パブリックドメインKornシェル)をインストールした場合kshの場合はあります。
During the installation, OUI will popup a dialog window advising you that an error has occurred with ins_emagent.mk .インストール時に、OUIはins_emagent.mk と 、エラーが発生したれるポップアップをアドバイスウィンドウをダイアログを開きます。 See below:下記をご覧ください:

This error is due to a change in the GCC linker in Fedora 13.このエラーは、Fedora 13のGCCのリンカの変更によるものです。 The announcement is発表は、 hereここに . 。 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.修正プログラムは、上記のようにlnnz11 MK_EMAGENT_NMECTL)です編集$ をORACLE_HOMEをlibに/ /クトリを/ ins_emagent.mk、検索のための( と $の行を行$(MK_EMAGENT_NMECTL)を置き換えると 。
After saving the changed file, select the Retry option, and the install should successfully continue.オプションファイルを選択再試行を変更した後に保存し、続行を正常にインストールしてください。 Eventually you should see the Database Configuration Assistant screen as shown below:以下のように最終的には、データベースコンフィギュレーションアシスタントの画面が表示されます:

Do not ignore the Password Management button; press it and change the passwords for SYS and SYSTEM . システムおよび SYSそれが変更パスワードのためにドント押しボタン、管理無視パスワード。
You are now ready to do a basic smoketest of the installed database software.あなたが現在インストールされてデータベースソフトウェアの基本的なsmoketestを行う準備が整いました。
$ 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.あなたはここまでのOracle 11gのインストールで、持っている場合は、すべてがうまくている。 The core Oracle 11g database software is installed and working.コアOracle 11gデータベースソフトウェアがインストールされて、作業。 You may have some tweaking to do for your particular requirements but that is outside the scope of this post.いくつかの調整を特定の要件に行う必要があるかもしれませんが、それはこの記事の範囲外です。 Note the listener supports no services message; we will address this shortly. リスナーを注意してくださいメッセージをサポートしていないサービス、私たちはすぐにこのアドレスです。
First, as root , we need to fix up a couple of files.まず、rootとして、我々はファイルのカップルを修正するまで必要があります。 Edit the /etc/oratab file setting the restart flag for each instance to Y :編集の/ etc / oratabファイルは、Yにファイルのインスタンスごとに起動フラグを設定する:
DB11G:/u01/app/oracle/product/11.2.0/dbhome_1:Y
Edit the /etc/redhat-release file to restore the original release information:編集は、/ etc / redhat - releaseの情報をリリース元のファイルに復元する:
Fedora release 13 (Goodwin)
At this stage you should be able to invoke the Oracle sqldeveloper GUI by invoking $ORACLE_HOMEsqldeveloper/sqldeveloper/bin/sqldeveloper .段階では、この場合はsqldeveloper /起動する必要がありますができるのOracleのbin / sqldeveloperドルをORACLE_HOMEsqldeveloper / sqldeveloperをGUIで呼び出す。 Once you have configured a valid connection, you should see a screen similar to this:したら、有効な接続を設定している場合は、画面は次のよう表示されます:

If you configure listener.ora you can also access the Oracle Enterprise Console via the Web as shown here:ここにいる場合のようには、Web構成のOracle Enterprise Consoleを介してすることができますlistener.oraファイルをあなたもアクセス:

Here is what is in my listener.ora :ここで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 .あなたはGLOBAL_DBNAMEをし、ORACLE_HOMEを 、おそらくSID_NAMEと値のためにホスト明らかに利用するために異なる。
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.ディレクトリに自動的に起動するrcに適切なデータベースを買い物Oracleの中にリンクを象徴init.dディレクトリに、シャットダウン、システムの起動すると、必要とする場所に適切なスクリプトを/ rc.dの/ の/ etc。 Here is a script to start or stop the Oracle database using dbinit :ここDBinit実行ですするためのスクリプトを起動を使用または停止データベースのOracle:
#!/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:とは、ここで別のスクリプトを起動し、Oracleデータベースを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.私はここで前提とそのプロセスを私が説明ですが行くことので、スクリプトを初期化新規インストールする方法を知っている。
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.してください私は、あなたが希望を感じる何か重要な取り残さなら、私に知らせて助けをあなたにFedoraの13でのOracle 11gのインストールにされて、私はこの記事に追加されます。























Hi Finnbarrハイフィンバー
Very helpful description.非常に有用な説明です。 Thanks a lot.どうもありがとう。 Sole problem I had, was the SID, which was not consistent in your description.唯一の問題は、私は、SIDは、あなたの説明に一貫性がないだったていた。 Would be helpful to use orcl only. orclとのみ使用すると便利でしょう。
And a another small problem I had wasまた、別の小さな問題は私がいた
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXRTPROC1521)))エラー時に聞いています:(DESCRIPTION =(アドレス=(プロトコル= IPC)は(キー= EXRTPROC1521)))
TNS-12555: TNS:permission deniedのTNS - 12555は:のTNS:許可が拒否さ
TNS-12560: TNS:protocol adapter errorのTNS - 12560:TNS:プロトコルアダプタエラー
TNS-00525: Insufficient privilege for operationのTNS - 00525:操作のための十分な権限
Linux Error: 1: Operation not permitted Linuxのエラーが発生しました:1:動作許可されません
Could solve this using this post: http://forums.oracle.com/forums/thread.jspa?threadID=931431, by replacing the KEY to EXRTPROC0この問題をこのポストを使用して:http://forums.oracle.com/forums/thread.jspa?threadID=931431をEXRTPROC0キーを置き換えることにより、解決できませんでした
Final wish: Maybe, you can also describe how to install a new init script.ファイナルは:たぶん、あなたはまた、新しいinitスクリプトをインストールする方法について説明できることを願う。 Then, your tutorial is complete in all terms :-)次に、チュートリアルでは、すべての面で完全です:-)
Encountered another issue:別の問題が発生しました:
Error in invoking target 'client_sharedlib' of makefile '/usr/local/applications/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'.エラー'メイク'/ usr/local/applications/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mkのclient_sharedlibを'ターゲット'呼び出しています。 See '/usr/local/applications/oraInventory/logs/installActions2010-08-30_06-30-14PM.log' for details.詳細を参照して'/ usr/local/applications/oraInventory/logs/installActions2010-08-30_06-30-14PM.log'です。
The file contains this reference to “client_sharedlib”:ファイルには、この参照を含む"client_sharedlib":
client_sharedlib: client_sharedlib:
$(GENCLNTSH) $(GENCLNTSH)
$(REMOVE_COMPATIBILITY_LINKS) $(REMOVE_COMPATIBILITY_LINKS)
$(CREATE_COMPATIBILITY_LINKS) $(CREATE_COMPATIBILITY_LINKS)
$(GENOCCISH) $(GENOCCISH)
$(GENAGTSH) $(LIBAGTSH) 1.0 $(GENAGTSH)$(LIBAGTSH)1.0
Any thoughts?任意の考えですか?
Check that all the requisite packages are installed.すべての必要なパッケージがインストールされて確認します。
Make sure that you have downloaded the correct version of Oracle for the platform you are on – x64 for x64 platform, etc.その場合は、プラットフォームの場合は、上にある - x64をx64プラットフォームなどのOracleの正しいバージョンをダウンロードして確認してください
Check that ORACLE_HOME and ORACLE_SID are correctly specified.そのORACLE_HOMEおよびORACLE_SIDが正しく指定されて確認します。