简体   繁体   English

在Macbook Pro(OS X Yosemite)上设置Oracle数据库

[英]Setting up the Oracle database on Macbook Pro (OS X Yosemite)

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? 我看到Oracle 11g或12c没有针对OS X的下载文件。但是,有一个适用于OS X的SQL Developer版本。当您没有数据库时,SQL Developer的意义何在?

How do I install the Oracle database (preferable 12c or 11g Express Edition) on OS X? 如何在OS X上安装Oracle数据库(最好是12c或11g Express Edition)?

You can't install the database server software directly on OS X 1 . 您不能直接在OS X 1上安装数据库服务器软件。 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. 我似乎记得它的消亡大致与苹果公司放弃Xserve产品线有关,但我可能已经想象到了。

A client like SQL Developer is a very different proposition from a support perspective. 从支持的角度来看,像SQL Developer这样的客户端是完全不同的主张。 SQL Developer is a Java application, and requires a JVM/JDK to be installed. SQL Developer是Java应用程序,需要安装JVM / JDK。 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. Java的“一次写入运行”可能并不完全正确,但是与支持像完整的RDBMS这样的本机编译的野兽相比,支持相对较小的Java应用程序的工作量仍然可能较少。 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. 他们显然需要做一些工作才能拥有.app软件包,并且与Windows版本有一些应用程序差异,但是他们不必担心不同的体系结构,系统库等,因为这是JVM的问题。

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; 您可以在Mac上使用SQL Developer来连接运行在Windows或Unix / Linux等上的数据库,因此它仍然占有一席之地。 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,而不是将其强制安装到Windows或Linux PC上。

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. 如果您只能访问Mac,则最简单的方法仍然如前所述 ,安装VirtualBox和Oracle提供的预构建VM映像之一

You can also install Windows or Linux on Bootcamp or in your own VM in Virtualbox, Parallels or VMWare; 您还可以在Bootcamp上或在Virtualbox,Parallels或VMWare中自己的VM中安装Windows或Linux; and then install Oracle natively. 然后本地安装Oracle。 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. 使用预先构建的映像可以节省您学习如何安装数据库服务器软件的麻烦,并且使返回时更加容易-如果您确实弄乱了某些内容,则可以将其丢弃,然后相当简单地重新开始。

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. 您可以稍后再添加Bootcamp,甚至如果想走那条路线,甚至可以移动数据。


1 You could try to hack something together of course; 1当然,您可以尝试一起破解某些东西; 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. 之前它已经用10g 做过 ,但是我最近没有看到有人尝试过,因此在优胜美地和11g / 12c上可能不那么容易。

I ran Oracle Database 12c in my Mac via Docker by this way for development and testing https://koacervate.blogspot.com/2019/01/quick-start-fastest-way-to-run-instance.html . 我通过这种方式通过Docker在Mac上运行了Oracle Database 12c,以进行开发和测试https://koacervate.blogspot.com/2019/01/quick-start-fastest-way-to-run-instance.html

Hope that is useful for you. 希望对您有用。 Regards, 问候,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在OS X Yosemite上设置Apache 2.4.9 - Trouble setting up Apache 2.4.9 on OS X Yosemite 在mac os Sierra上设置apache web服务器(macbook pro 13 2014) - Setting up an apache web server on mac os Sierra (macbook pro 13 2014) 在Mac OS X Yosemite 10.10上使用Mamp Pro进行Mcrypt - Mcrypt with Mamp Pro on Mac OS X Yosemite 10.10 在OS X Yosemite 10.10.4中设置JAVA_HOME - setting JAVA_HOME in in OS X Yosemite 10.10.4 OS X优胜美地Webdav - OS X Yosemite Webdav 在Mac OS X Yosemite上安装MySQL并创建数据库 - Install MySQL and create a database on Mac OS X Yosemite 尝试使用OS X Yosemite版本10.10.5在MAC Pro Retina上的Eclipse Mars上调试C ++程序 - Trying to Debug C++ Program on Eclipse Mars on MAC Pro Retina with OS X Yosemite Version 10.10.5 在OS X 10.10.5的Macbook Pro上显示“ COMMAND(权限被拒绝)”错误的pod COMMAND(安装,初始化,安装)错误 - pod COMMAND(setup, init, install) showing “Permission denied” error on Macbook Pro with OS X 10.10.5 如何以编程方式确定 OS X 上 Retina MacBook Pro 屏幕的原始像素分辨率? - How to programmatically determine native pixel resolution of Retina MacBook Pro screen on OS X? 如何拍摄整个Macbook Pro OS x 10.8 Mountain Lion系统的快照 - How to take a snapshot of the entire system of Macbook Pro OS x 10.8 Mountain Lion
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM