手机版
你好,游客 登录 注册
背景:
阅读新闻

Ubuntu 12.04 32bit 安装Oracle 11g 及常见错误

[日期:2013-05-16] 来源:Linux社区  作者:lilysea2012 [字体: ]

安装完即可----------解决方法如下:
 
桌面型
 Oracle_base: /u01/app/oracle
 安装目录位置/u01/app/oracle/product/11.2.0/dbhome_1
 数据库文件位置:/u01/app/oracle/oradata
 企业版 3.95G
 字符集 AL32UTF8
 OSDBA 组:dba
 全局数据库名 orcl
 管理密码:自己设
 

---------------------------各种问题汇总----------------------------------------
 10.链接错误处理,link进度到69%报错处理
 

Problem1
 ---------------------------------------------------------------
 Error in invoking target 'agent nmhs' of makefile '/opt/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk'
 ---------------------------------------------------------------
 sed -i 's/^\(\s*\$(MK_EMAGENT_NMECTL)\)\s*$/\1 -lnnz11/g' /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk
 ----------------------------------------------------------------
 
Problem2
 ---------------------------------------------------------------
 Error in invoking target 'all_no_orcl' of makefile '/opt/oracle/product/11.2.0/db_1/rdbms/lib/ins_rdbms.mk'.
 -------------------------------------------------------------
  sed -i 's/^\(\$LD \$LD_RUNTIME\) \(\$LD_OPT\)/\1 -Wl,--no-as-needed \2/g'  /u01/app/oracle/product/11.2.0/dbhome_1/bin/genorasdksh
 
sed -i 's/^\(ORACLE_LINKLINE.*\$(ORACLE_LINKER)\) \(\$(PL_FLAGS)\)/\1 -Wl,--no-as-needed \2/g'  /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/env_rdbms.mk
 
sed -i 's/^\(\s*\)\(\$(OCRLIBS_DEFAULT)\)/\1  -Wl,--no-as-needed \2/g' /u01/app/oracle/product/11.2.0/dbhome_1/srvm/lib/ins_srvm.mk
 
sed -i 's/^\(TNSLSNR_LINKLINE.*\$(TNSLSNR_OFILES)\) \(\$(LINKTTLIBS)\)/\1 -Wl,--no-as-needed \2/g'  /u01/app/oracle/product/11.2.0/dbhome_1/network/lib/env_network.mk
 ---------------------------------------------------------------------
 

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&77
 本次安装oracle database configuration assistant 安装失败
 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 

-------安装最后一步 改 root权限结果-----------------
 /u01/app/oraInventory/orainstRoot.sh
 更改权限/u01/app/oraInventory.
 添加组的读取和写入权限。
 删除全局的读取, 写入和执行权限。
 

更改组名/u01/app/oraInventory 到 oinstall.
 脚本的执行已完成。
 root@bupt:/etc/security# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
 Running Oracle 11g root.sh script...
 

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/11.2.0/dbhome_1
 Enter the full pathname of the local bin directory: [/usr/local/bin]: /usr/local/bin
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ...
    Copying coraenv to /usr/local/bin ...
 
Creating /etc/oratab file...
 Entries will be added to the /etc/oratab file as needed by
 Database Configuration Assistant when a database is created
 Finished running generic part of root.sh script.
 Now product-specific root actions will be performed.
 
Finished product-specific root actions.
 

 

-----------------使用oracle-------------------------
 
启动的问题汇总
 SQL> startup
 ORA-01078: failure in processing system parameters
 LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initoral.ora'
 解决
 cd /u01/app/oracle/admin/orcl/pfile
 cp init.ora.xxxxxxxx /u01/app/oracle/product/11.2.0/dbhome_1/dbs
 cd /u01/app/oracle/product/11.2.0/dbhome_1/dbs
 mv init.ora.415201319241 initoral.ora

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

linux
相关资讯       Oracle 11g  Ubuntu安装Oracle 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款