运行 oracle 命令需要安装什么

发布于 2024-12-15 00:27:36 字数 441 浏览 6 评论 0原文

在数据库类中,我们要在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

八巷 2024-12-22 00:27:36

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文