在 Macbook Pro (OS X Yosemite) 上设置 Oracle 数据库 [英] Setting up the Oracle database on Macbook Pro (OS X Yosemite)

查看:31
本文介绍了在 Macbook Pro (OS X Yosemite) 上设置 Oracle 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到 Oracle 11g 或 12c 没有适用于 OS X 的下载文件.但是,有一个适用于 OS X 的 SQL Developer 版本.当您没有 SQL Developer 时,SQL Developer 的意义何在?数据库?

I see that Oracle 11g or 12c doesn't have the download files for OS X. However, there is a version of the SQL Developer available for OS X. What's the point of the SQL Developer when you don't have a database?

如何在 OS X 上安装 Oracle 数据库(最好是 12c 或 11g Express 版)?

How do I install the Oracle database (preferable 12c or 11g Express Edition) on OS X?

推荐答案

不能直接在 OS X1 上安装数据库服务器软件.Oracle 前段时间决定不再支持它,大概是因为它没有被充分使用来证明所涉及的成本是合理的.我似乎记得它的消亡大致与 Apple 放弃 Xserve 产品线同时发生,但我可能已经想到了这一点.

You can't install the database server software directly on OS X1. Oracle made a decision some time ago not so support it any more, presumably because it wasn't used enough to justify the costs involved. I seem to recall its demise roughly coincided with Apple dropping their Xserve line, but I may have imagined that.

从支持的角度来看,像 SQL Developer 这样的客户是一个非常不同的主张.SQL Developer 是一个 Java 应用程序,需要安装 JVM/JDK.Java 的一次编写随处运行可能并不完全正确,但与像完整的 RDBMS 这样的本机编译的野兽相比,支持相对较小的 Java 应用程序的工作量可能要少得多.他们显然必须做一些工作才能拥有 .app 包,并且与 Windows 版本存在一些应用程序差异,但他们不必担心不同的架构、系统库等,因为这是 JVM 的问题.

A client like SQL Developer is a very different proposition from a support perspective. SQL Developer is a Java application, and requires a JVM/JDK to be installed. Java's write-once-run-anywhere may not be entirely true, but it's still likely to be rather less work to support a relatively small Java application than a natively-compiled beast like an full RDBMS. They obviously have to do some work to have a .app bundle and there are some application difference from the Windows version, but they don't have to worry about different architecture, system libraries, etc. as that's the JVM's problem.

Mac 上可以使用 SQL Developer 连接运行在 Windows 或 Unix/Linux 等上的数据库,所以它还有一席之地;您不能在同一硬件上运行本地服务器这一事实与大多数人无关.它只允许开发人员使用 Mac,而不是强迫他们使用 Windows 或 Linux PC.

You can use SQL Developer on a Mac to connect to a database running on Windows or Unix/Linux etc., so it still has a place; the fact you can't have a local server running on the same hardware isn't really relevant for most people. It just allows developers to use a Mac instead of forcing them on to a Windows or Linux PC.

如果您只能使用 Mac,那么最简单的途径仍然是如前所述,安装VirtualBox预构建的 VM 映像 Oracle 提供.

If you only have access to a Mac then the simplest route is still as noted before, to install VirtualBox and one of the pre-built VM images Oracle provides.

您还可以在 Bootcamp 上或您自己的虚拟机中的 Virtualbox、Parallels 或 VMWare 中安装 Windows 或 Linux;然后本地安装Oracle.使用预先构建的映像可以节省您学习如何安装数据库服务器软件的时间,并且还可以更轻松地返回 - 如果您真的搞砸了,您可以将其丢弃并重新开始.

You can also install Windows or Linux on Bootcamp or in your own VM in Virtualbox, Parallels or VMWare; and then install Oracle natively. Using a pre-built image saves you needing to learn how to install the database server software, and also makes it easier to go back - if you really mess something up you can trash it and start again fairly simply.

如果您担心性能或电源使用,我建议您从虚拟机开始,看看如何进行;如果您想沿着这条路线走下去,您可以随时添加 Bootcamp,甚至可以移动数据.

If you're worried about performance or power use I'd suggest you start with a VM and see how you get on; you can always add Bootcamp later and even move the data across if you want to go down that route.

1 当然,你可以尝试一起破解一些东西;之前已经做过10g 但我最近没有看到有人尝试过,所以在 Yosemite 和 11g/12c 上可能没有那么容易.

1 You could try to hack something together of course; it's been done before with 10g but I haven't seen anyone trying it recently so it may not be as easy on Yosemite and 11g/12c.

这篇关于在 Macbook Pro (OS X Yosemite) 上设置 Oracle 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆