运行 oracle 命令需要安装什么
在数据库类中,我们要在 SQL 中键入以下命令,
CREATE TABLE extensions (
extension number(5) PRIMARY KEY,
department VARCHAR(20) );
CREATE TABLE employee (
SSN NUMBER(9) PRIMARY KEY,
extension NUMBER(5) references extensions,
name VARCHAR2(20),
salary number(10, 2) check (salary >= 0) not null,
startdate date
);
我可以在 OSX 中使用 sqlite3 来执行此操作。
现在我应该使用 Oracle 而不是 SQL 来做同样的事情。我已经尝试安装很多东西,但无法让它工作。
我应该安装什么。
In database class we were to type the following commands in SQL
CREATE TABLE extensions (
extension number(5) PRIMARY KEY,
department VARCHAR(20) );
CREATE TABLE employee (
SSN NUMBER(9) PRIMARY KEY,
extension NUMBER(5) references extensions,
name VARCHAR2(20),
salary number(10, 2) check (salary >= 0) not null,
startdate date
);
I was able to do this using sqlite3 in OSX.
Now I'm supposed to do the same thing using Oracle instead of SQL. I've tried installing a number of things, but can't get it to work.
What should I install.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Oracle 不再支持在 OS X 上运行 Oracle 数据库。Oracle 不久前确实支持在 Apple 计算机上运行数据库,但 Oracle 通常不会提供旧版本的数据库可供下载。有一个用于 Intel 上 Mac OS X 的 Oracle 10.2.0.4 版本x86-64 仍然可以在 OTN 上下载。您碰巧在 Intel x86-64 上运行 OS X 吗?
如果您碰巧没有在 Intel x86-64 上运行 OS X,则可以在运行 Oracle 支持的操作系统(最有可能是 Linux 或 Windows)的 OS X 机器上设置一个虚拟机,并在那里安装 Oracle 。
Oracle no longer supports running the Oracle database on OS X. Oracle did support running a database on Apple machines some time ago but Oracle doesn't generally make old versions of the database available for download. There is a version of Oracle 10.2.0.4 for Mac OS X on Intel x86-64 that is still available for download on OTN. Do you happen to be running OS X on Intel x86-64?
If you don't happen to be running OS X on Intel x86-64, you could set up a virtual machine on your OS X box that is running an operating system that Oracle does support (Linux or Windows most likely) and install Oracle there.
你需要oracle服务器。在此处下载 Mac 版: http://www.oracle.com/ technetwork/database/10204macsoft-x86-64-092720.html
You need oracle server. download for mac here: http://www.oracle.com/technetwork/database/10204macsoft-x86-64-092720.html