ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Fedora 14 x86-64 install oracle 10g 64 bit

Fedora 14 x86-64 install oracle 10g 64 bit

原创 Linux操作系统 作者:lnwxzyp 时间:2011-08-22 14:43:49 0 删除 编辑
     前不久机器新加了一个4G的内存,现在内存达到了6个G,做一些虚拟机之类的应该就很轻松了,刚开始装了一个Fedora 15 x86-64位版,发现gnome 3的变化很大,仔细琢磨,应该还是为16:9的系统量身打造的系统界面,而且15的系统驱动做的很不错,我的机器nvs 3100的显卡直接可以识别到,不过我这可是16:10的经典宽屏比例,所以等以后换用16:9的屏幕之后再来玩gnome 3吧。 由于是64位的系统所以数据库肯定也要装64位的,sqldeveloper没有找到专门标注64位的,实际上我下载下来试用之后在64位系统下一样可以跑的很欢。还有64位的SecureCRT,虽然只是试用,不过比起系统自带的ssh还是要好用不少阿。 好了闲话少叙述,现在来说一下,在这个系统下安装oracle10g 的经历,由于www.oracle-base.com上面对类似的这些安装有非常详细的介绍,但是从Fedora 11 之后作者似乎在从事oracle 11g的数据库工作了,所以对10g也就没有介绍,实际上从网上搜索了一圈下来对64位的安装讲的很少,于是把自己这次的安装进行一下记录。
       有过相关经验的朋友应该都知道,实际上在Fedora包括ubunut这些系统下安装,主要是不知道需要安装那些包,只要这一步解决了其他的都很简单,因此来看看我安装前所安装的rpm有哪些:
yum install binutils
yum install compat-libstdc++-33
yum install compat-libstdc++-33.i686
yum install elfutils-libelf
yum install elfutils-libelf-devel
yum install gcc
yum install gcc-c++
yum install glibc
yum install glibc.i686
yum install glibc-common
yum install glibc-devel
yum install glibc-devel.i686
yum install glibc-headers
yum install ksh
yum install libaio
yum install libaio.i686
yum install libaio-devel
yum install libaio-devel.i686
yum install libgcc
yum install libgcc.i686
yum install libstdc++
yum install libstdc++.i686
yum install libstdc++-devel
yum install make
yum install numactl-devel
yum install sysstat
yum install unixODBC
yum install unixODBC.i686
yum install unixODBC-devel
yum install unixODBC-devel.i686
yum install compat-gcc-34-3.4.6
yum install compat-gcc-34-c++-3.4.6
yum install libXext.so.6
yum install libXt.so.6
yum install libXtst.so.6
yum install libXp
yum install libXp.i686
这些安装完成之后,修改/etc/redhat-release 其余的步骤就省略了,这里就参考了http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnFedora14.php的文章,没有什么好说的,不过要注意的是这老兄有一个地方有个问题,至少是不适用于10g的:
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
这里rmem_max 和 wmem_max的值和default保持一致(262144)就可以了,不然后面还会遇到错误。做完之后开始./runInstaller  安装,因为我要在建库前就打上10.2.0.5.0的补丁集,因此我选择的install software only选项,结果在83%的时候遇到了错误 Error in invoking target 'collector' of makefile '/u01/app/oracle/product/10.2.0/db_1/sysman/lib/lis_emdb.mk';
google之后没有找到解决办法,最后在support.oracle.com 上面看到一篇在suse下也遇到同样的文章,说这个是一个Bug:8993720,解决办法是忽略该错误即可,然后解压10205的补丁之后安装,结果一直提示不是认证的系统,我明明已经将/etc/redhat-ralease改成了redhat-4,解决办法是加一个忽略  ./runInstaller -ignoresysprereqs 就可以了, 然后这一步也是在安装到最后的时候出现刚才遇到的错误,直接忽略掉,最后执行root.sh就可以了, 由于10205的oem还是有bug(oracle的bug杂就那么多呢。。。) 于是先从support.oracle.com下载适合OPatch的最新版本p6880880_102000_Linux-x86-64.zip,然后下载关键补丁,补丁号:8350262,然后将原来$ORACLE_HOME/OPatch 改名后将新的OPatch移动到ORACLE home目录,另外还要在.bash_profile当中将OPatch的路径加入到PATH当中
OPATCH=/u01/app/oracle/product/10.2.0/db_1/OPatch; export OPATCH
PATH=$ORACLE_HOME/bin:$OPATCH:$PATH; export PATH
生效: source ~/.bash_profile
然后解压8350262的补丁,进入到同名目录8350262,执行 opatch apply 详细如下:
oracle@lnwxzyp [/home/oracle/Downloads/8350262] opatch apply
Invoking OPatch 10.2.0.5.1

Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : /u01/app/oracle/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 10.2.0.5.1
OUI version       : 10.2.0.5.0
OUI location      : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-08-22_23-21-17PM.log

Patch history file: /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt

ApplySession applying interim patch '8350262' to OH '/u01/app/oracle/product/10.2.0/db_1'

Running prerequisite checks...
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name: 

You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  y

OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.

Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '8350262' for restore. This might take a while...
Backing up files affected by the patch '8350262' for rollback. This might take a while...

Patching component oracle.sysman.agent.core, 10.2.0.5.0a...
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/RootCert.class"
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/SecConstants.class"
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/RootCert.class"
Updating jar file "/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/SecConstants.class"
ApplySession adding interim patch '8350262' to inventory

Verifying the update...
Inventory check OK: Patch ID 8350262 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 8350262 are present in Oracle Home.

OPatch succeeded.

--------------------------------------------------------------------------------
Installed Top-level Products (2): 

Oracle Database 10g                                                  10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 4                            10.2.0.5.0
There are 2 products installed in this Oracle Home.


Interim patches (1) :

Patch  8350262      : applied on Mon Aug 22 23:21:42 CST 2011
Unique Patch ID:  13011832
   Created on 13 Sep 2010, 14:09:12 hrs GMT
   Bugs fixed:
     8350262



--------------------------------------------------------------------------------

OPatch succeeded.
然后运行dbca来建库,但奇怪的是组后建库OEM部分还是报错,可能跟我使用了DHCP有关,由于时间关系,明天再去解决。 完成字后不要忘了把/etc/redhat-release里面的内容改为Fedora release 14 (Laughlin)。
今天重建了一下EM,问题得到解决
[oracle@lnwxzyp ~]$ emca -repos drop

STARTED EMCA at Aug 24, 2011 10:20:25 PM
EM Configuration Assistant, Version 10.2.0.5.0 Production
Copyright (c) 2003, 2009, Oracle. All rights reserved.

Enter the following information:
Database SID: demo
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:

----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------

Do you wish to continue? [yes(Y)/no(N)]: y
Aug 24, 2011 10:22:47 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/demo/emca_2011-08-24_10-20-25-PM.log.
Aug 24, 2011 10:22:47 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Aug 24, 2011 10:22:47 PM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Aug 24, 2011 10:24:24 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 24, 2011 10:24:24 PM

[oracle@lnwxzyp ~]$ emca -repos create

STARTED EMCA at Aug 24, 2011 10:27:28 PM
EM Configuration Assistant, Version 10.2.0.5.0 Production
Copyright (c) 2003, 2009, Oracle. All rights reserved.

Enter the following information:
Database SID: demo
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:

Do you wish to continue? [yes(Y)/no(N)]: y
Aug 24, 2011 10:27:41 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/demo/emca_2011-08-24_10-27-28-PM.log.
Aug 24, 2011 10:27:42 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Aug 24, 2011 10:29:49 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 24, 2011 10:29:49 PM
[oracle@lnwxzyp ~]$ emca -config dbcontrol db

STARTED EMCA at Aug 24, 2011 10:30:41 PM
EM Configuration Assistant, Version 10.2.0.5.0 Production
Copyright (c) 2003, 2009, Oracle. All rights reserved.

Enter the following information:
Database SID: demo
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /u01/app/oracle/product/10.2.0/db_1

Local hostname ................ lnwxzyp
Listener port number ................ 1521
Database SID ................ demo
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Aug 24, 2011 10:31:08 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/demo/emca_2011-08-24_10-30-41-PM.log.
Aug 24, 2011 10:31:13 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Aug 24, 2011 10:31:33 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Aug 24, 2011 10:31:33 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Aug 24, 2011 10:33:09 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Aug 24, 2011 10:33:09 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://lnwxzyp:1158/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 24, 2011 10:33:09 PM


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12216142/viewspace-705547/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-04-25

  • 博文量
    129
  • 访问量
    696744