本文介绍了在Mac OS X上安装ROracle-Oracle需要什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在设法在Mac OS X上安装RPostgreSQL和RMySQL之后,我今天尝试安装ROracle.不幸的是,Oracle网站使我发疯.我只是无法弄清楚我需要安装哪个最小软件包才能使用ROracle.凭直觉,我认为我只需要一个客户端并下载了即时客户端.

I tried to install ROracle today, after having managed to install RPostgreSQL and RMySQL on my Mac OS X. Unfortunately, the Oracle website drives me crazy. I just cannot figure out which minimum package I need to install in order to use ROracle. Intuitively I thought I just need a client and downloaded the instant client.

够了吗?我应该把解压缩后的即时客户端放在哪里?我也尝试了SQLDeveloper,但是我的安装程序似乎仍然缺少一些Oracle安装.如果我还是开始编译:

Is this enough? Where should I put the unzipped instant client?I also tried SQLDeveloper but my setup seems lack some Oracle installation seems still.If I start compiling anyway:

R CMD INSTALL Roracle.tar.gz 

我最终遇到以下错误:

您必须将外壳变量ORACLE_HOME设置为 Oracle所在的目录并重新运行R CMD INSTALL 例如,(使用Bourne shell语法):

You must set the shell variable ORACLE_HOME to the directory where Oracle resides and re-run R CMD INSTALL e.g., (using Bourne shell syntax):

  export ORACLE_HOME=/opt/oracle
  R CMD INSTALL ROracle

所以我的简单问题是,我需要安装哪个软件包以及推荐的位置?设置编译器不是这里的问题(至少到目前为止:))

So my simple question is, which package do I need to install and which location do you recommend? Setting up the compiler is not the problem here (at least so far :) )

注意,我只想连接到不在我的系统上的某个数据库,所以我真的只需要一个客户端(如果ROracle允许的话).

Note I just want to connect to some database which is NOT on my system, so I really should just need a client (if ROracle allows for that).

推荐答案

如果需要安装Oracle客户端,则应该可以使用Oracle Instant Client.有关文档和下载,请参见 Mac OS X(Intel x86)的即时客户端下载.根据您需要的客户类型,您可以在那里找到一个选择列表.基本客户端,您可以根据需要向其中添加补充包.基本的客户将为许多人工作.

If you need an Oracle client installation you should be able to use the Oracle Instant Client. For documentation and download see Instant Client Downloads for Mac OS X (Intel x86) . Depending on what type of client you need you have a list of choices there.The Basic Client is allways needed and you could add a supplemental package to it depending on your needs. The basic client will work for many.

为ORACLE_HOME选择一个位置(/Application/oracle/product/client/10.2)在该ORACLE_HOME/中创建一个lib目录解压基本客户端并将 dylib 文件放入ORACLE_HOME/lib.ORACLE_HOME =/应用程序/oracle/product/client/10.2DYLD_LIBRARY_PATH = $ ORACLE_HOME/bin:$ DYLD_LIBRARY_PATHPATH = $ ORACLE_HOME/bin:$ PATH

Choose a location to for ORACLE_HOME (/Application/oracle/product/client/10.2)create a lib directory in that ORACLE_HOME/unzip the basic client and put the dylib files in ORACLE_HOME/lib.ORACLE_HOME=/Application/oracle/product/client/10.2DYLD_LIBRARY_PATH=$ORACLE_HOME/bin:$DYLD_LIBRARY_PATHPATH=$ORACLE_HOME/bin:$PATH

如果需要更完整的客户端,请检查所需的补充安装,并将其添加到此处构建的$ ORACLE_HOME中.如果需要jdbc,请添加jdbc补充,如果需要sqlplus,请添加sqlplus补充.确保可执行文件转到$ ORACLE_HOME/bin/

If you need a more complete client, check wich supplemental installation you need and add it to the $ORACLE_HOME that you build here. If you need jdbc, add the jdbc supplement, if you need sqlplus, add the sqlplus supplement. Make sure that executables go to $ORACLE_HOME/bin/

这篇关于在Mac OS X上安装ROracle-Oracle需要什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!