Oracle vs db2 创建用户和 table

Oracle vs db2 create user and table

我正在学习使用命令行 db2 创建一个简单的 table。

Oracle 将执行以下步骤:

CREATE USER user IDENTIFIED BY password;

GRANT ALL PRIVILEGES TO user; 然后只需键入 CONNECT 并登录,您就可以创建 tables.

这一切在DB2中怎么样?没看懂。

DB2 的用户管理与 Oracle 不同。 DB2 依赖于操作系统或 LDAP 之类的解决方案,没有 CREATE USER 命令。

我建议您先阅读此 IBM RedBook about commonalities and differences between the DB2 and Oracle 以及如何开始。