免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2177 | 回复: 2
打印 上一主题 下一主题

[求助] Ununtu 下如何安装Oracle [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-16 17:04 |只看该作者 |倒序浏览
大家好:
                            本人最近在Oracle官网上下载了Oracle Database 数据库linux.x64_11gR2_database_1of2和linux.x64_11gR2_database_2of2的zip压缩包,但是在ubuntu环境下解压后,不知道如何安装?里面有一个 runInstaller的文件但是运行后没有反应,不知道如何操作,请有类似经验的学者帮我一下,谢谢啦!是不是这个版本有问题呢?求您指导,谢谢啦!下面是 runInstaller的代码:
  1. #!/bin/sh

  2. # The environment variable $SRCHOME cannot be set during the installation
  3. unset SRCHOME

  4. AWK=/bin/awk
  5. SED=/bin/sed
  6. UNAME=/bin/uname
  7. GETCONF=/usr/bin/getconf

  8. BUNDLE=db

  9. if [ `$UNAME` = "AIX" ]; then
  10.    OSLEVEL=/bin/oslevel
  11.    UNAME=/bin/uname
  12.    CUT=/bin/cut

  13.    if [ "hello$IGNOREOSLEVEL" = "hello" ]; then
  14.         MAIN_VERSION=`$OSLEVEL -r | $CUT -d"-"  -f1`;
  15.         MinorVersion1=`$OSLEVEL -r | $CUT -d"-"  -f2`;

  16.         if [ $MAIN_VERSION -lt "5300" ]; then
  17.                 echo "\nrunInstaller needs minimum oslevel : "5300-05-06"\n";
  18.                 exit 0;
  19.         fi

  20.         if [ $MAIN_VERSION -eq "5300" ]; then
  21.                 if [ MinorVersion1 -lt "05" ]; then
  22.                         echo "\nrunInstaller needs minimum oslevel : "5300-05-06"\n";
  23.                         exit 0;
  24.                 else
  25.                         if [ $MinorVersion1 -eq "05" ]; then
  26.                                 MinorVersion2=`$OSLEVEL -s | $CUT -d"-"  -f3`;
  27.                                 if [ $MinorVersion2 -lt "06" ]; then
  28.                                         echo "\nrunInstaller needs minimum oslevel : "5300-05-06"\n";
  29.                                         exit 0;
  30.                                 fi
  31.                         fi
  32.                 fi
  33.         fi
  34.    fi
  35. fi


  36. if [ `$UNAME` = "SunOS" ]; then
  37.    OCR_LOC=/var/opt/oracle/ocr.loc
  38. else
  39.    OCR_LOC=/etc/oracle/ocr.loc
  40. fi

  41. if [ `$UNAME` = "Linux" ]; then
  42.   if  [  -e $GETCONF ]; then
  43.   value=`$GETCONF LONG_BIT`
  44.     if  [ $value != 64 ]; then
  45.          echo "\"You are attempting to install 64-bit Oracle on a 32-bit operating system.  This is not supported and will not work.\"";
  46.          exit 0;
  47.     fi
  48.   fi
  49. fi

  50. LOCALONLY=local_only
  51. LOCAL=TRUE
  52. SILENT=FALSE

  53. CMDDIR=`dirname $0`

  54. if [ "$CMDDIR" = "." ]; then
  55.     CMDDIR=`pwd`;
  56. fi

  57. # Replace relative path with fully qualified path.
  58. if [ ! "`echo $CMDDIR|grep '^/'`" ]; then
  59.     CMDDIR=`pwd`/$CMDDIR;
  60. fi

  61. if [ x${PATH} != x ]; then
  62.     PATH=/usr/bin:/usr/ccs/bin:$PATH:$CMDDIR/install
  63.     export PATH
  64. else
  65.     PATH=/usr/bin:/usr/ccs/bin:$CMDDIR/install
  66.     export PATH
  67. fi

  68. # Determine whether there is an existing CRS or not.
  69. # Local is value of local_only in ocr.loc.
  70. # False means there is an existing CRS installation on the system.
  71. if [ -r $OCR_LOC ]; then
  72.     LOCAL=`$AWK -F= /$LOCALONLY/'{print $2}' $OCR_LOC |\
  73.            $SED 'y/aeflrstu/AEFLRSTU/'`
  74. fi

  75. case "$BUNDLE" in
  76. db)
  77. # One-click: only if there is no cmd line argument and it's not on CRS node
  78. if [ $# -gt 0 -o "$LOCAL" = "FALSE" -o \
  79.      ! -r $CMDDIR/install/oneclick.properties ]; then
  80.     $CMDDIR/install/.oui $*
  81. else
  82.     $CMDDIR/install/.oui -oneclick
  83. fi
  84. ;;
  85. client)
  86.     $CMDDIR/install/.oui $* CLUSTER_NODES={}
  87. ;;
  88. crs)
  89.     $CMDDIR/install/.oui $* -formCluster
  90. ;;
  91. dv)
  92.     $CMDDIR/install/.oui $* -oneclick
  93. ;;
  94. dbbundle)
  95.     for arg in "$@"
  96.         do
  97.             arg=`echo $arg | $SED 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  98.         if [ "$arg" = "-silent" ]; then
  99.             SILENT=TRUE
  100.             break
  101.         fi
  102.     done
  103.         
  104.     if [ "$SILENT" = "TRUE" ]; then
  105.         $CMDDIR/install/.oui $*
  106.     else
  107.         $CMDDIR/install/.oui $* -oneclick -dbbundle
  108.     fi
  109. ;;
  110. *)
  111.     $CMDDIR/install/.oui $*
  112. ;;
  113. esac
复制代码

论坛徽章:
0
2 [报告]
发表于 2013-05-17 09:16 |只看该作者
首先,Oracle不支持Ubuntu,请选择Oracle安装指南中支持的Linux发行版,其次,去看Oracle的安装指南文档,那里面写得特别清楚。

论坛徽章:
0
3 [报告]
发表于 2013-05-19 10:55 |只看该作者
好的 非常感谢你
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP