在oracle10g中创建数据库
在 mysql 中,我只需编写命令就可以轻松创建一个新数据库。
Mysql>create database database_name;
在oracle 10g中默认的数据库名称是XE。除了 XE 之外,任何人都可以告诉命令创建一个新数据库吗?我使用的是Linux(fedora-12)。
In mysql i can create a new database so easily just by writing a command.
Mysql>create database database_name;
In oracle 10g the default database name is XE. Can anybody tell command to create a new database other than XE ? I am using Linux(fedora-12).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Oracle 不是我的专业领域,所以我可能是错的,但如果我没记错的话,Oracle 并不认为“数据库”这个词与其他 RDBMS 产品(例如 SQL Server 或 SQL Server)具有完全相同的含义。 MySQL。
对于 Oracle 数据库,术语数据库用于指代实际数据库引擎的实例,而不是像上述其他产品那样指一组相关对象(表等)。
我相信对象之间的关系在 Oracle 术语中称为
schema
。换句话说,数据库(引擎)的一个实例可以提供许多模式(相关对象组)。例如,假设您正在运行一个 MySQL 实例,其中有两个名为 Orders 和 Accounting 的 MySQL 数据库,在 Oracle 下,这两个数据库将表示为“Orders”模式和“Accounting”模式,这两个数据库都由单个数据库管理名为“XE”的实例
如上所述,Oracle 不是我的强项,因此明智的做法是确认我在 Oracle 文档中所说的内容,该文档也比我就使用模式的细节提供建议更好
Oracle is not my area of expertise, so I may be wrong, but if I remember rightly, Oracle doesn't consider the word
database
to mean quite the same thing as other RDBMS products such as SQL Server or MySQL.With respect to Oracle Database the term database is used to refer to an instance of the actual database engine, not to a group of related objects (tables etc) as the aforementioned other products do.
I believe the relationship between objects is called a
schema
in Oracle terms. In other words one single instance of the database (engine) can provide for many schemas (groups of related objects).For example, imagine you have an instance of MySQL running that has two MySQL databases called Orders and Accounting, Under Oracle these would be represented as the "Orders" schema and the "Accounting" schema, both of which would be managed by a single database instance called "XE"
As stated above, Oracle is not my forte, so it would be wise to confirm what I have stated with the Oracle documentation which is also better placed than I am to advise on the specifics of using schemas
为了提供正确的答案,需要知道您的数据库是否驻留在您正在使用的同一台计算机上,或者您正在使用 Linux 计算机作为客户端连接到不同的数据库服务器。
我提供以下答案假设您具有“系统”权限帐户来登录数据库。 (我省略了连接数据库的步骤,因为它会根据数据库所在的位置而有所不同)
步骤01
以“系统”用户登录(默认密码为“manager”)
步骤 02
步骤 03
(此步骤将有助于为新创建的用户提供操作级别权限)
步骤 04
使用新用户登录数据库
步骤05
创建您想要的表
In order to provide a proper answer, need to know whether your database is residing on the same machine that you are working on or you are connecting to a different database server using your Linux machine as a client.
I’m providing the below answer assuming that you have “Sytem” privileges account to log into the db. (I have omitted the steps for connecting to the database since it will be differed according the location where your DB resides on)
Step 01
Login as the “System” user (The default password would be “manager”)
Step 02
Step 03
(This step will help to provide the operational level permission to the newly created user)
Step 04
Login to the database using new user
Step 05
Create the tables that you want