初始安装oracle数据库11g Express Edition后如何创建新数据库? [英] How to create a new database after initally installing oracle database 11g Express Edition?

查看:613
本文介绍了初始安装oracle数据库11g Express Edition后如何创建新数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的PC上安装了Oracle Database 11g Express Edition(Windows 7) 并且我还安装了Oracle SQL Developer.

I have installed Oracle Database 11g Expressed Edition on my pc (windows 7) and I have installed Oracle SQL Developer as well.

我想创建一个简单的数据库开始,也许一个或两个表,然后使用Oracle SQL Developer插入数据并查询它.

I want to create a simple database to start with, maybe with one table or two and then use Oracle SQL Developer to insert data and query it.

当我打开Oracle SQL Developer时,它要求我创建一个新的连接,因此它假定已经创建了一个数据库.

When I open Oracle SQL Developer, it asks me to create a new connection, therefore it assumes that a database has already been created.

所以我的问题是,如何在Oracle 11g中创建初始数据库?

So my question is, how do I create an initial database in Oracle 11g?

推荐答案

此链接:创建Oracle 11g第2版中的示例数据库是创建示例数据库的一个很好的例子.

This link: Creating the Sample Database in Oracle 11g Release 2 is a good example of creating a sample database.

此链接: Oracle 11g新手指南数据库常见问题如果在创建数据库时遇到一些常见问题,应该会为您提供帮助.

This link: Newbie Guide to Oracle 11g Database Common Problems should help you if you come across some common problems creating your database.

祝你好运!

使用XE时,应该已经创建了一个数据库,可以使用SQL * Plus和SQL Developer等进行连接.信息在此处:

As you are using XE, you should have a DB already created, to connect using SQL*Plus and SQL Developer etc. the info is here: Connecting to Oracle Database Express Edition and Exploring It.

提取:

从SQL Developer连接到Oracle Database XE SQL Developer是一个 可以用来访问Oracle数据库XE的客户端程序.和 Oracle Database XE 11g第2版(11.2)必须使用SQL Developer 3.0版.本部分假定在以下位置安装了SQL Developer. 您的系统,并显示如何启动它并连接到Oracle数据库 XE.如果您的系统上未安装SQL Developer,请参见Oracle 《数据库SQL Developer用户指南》中的安装说明.

Connecting to Oracle Database XE from SQL Developer SQL Developer is a client program with which you can access Oracle Database XE. With Oracle Database XE 11g Release 2 (11.2), you must use SQL Developer version 3.0. This section assumes that SQL Developer is installed on your system, and shows how to start it and connect to Oracle Database XE. If SQL Developer is not installed on your system, see Oracle Database SQL Developer User's Guide for installation instructions.

注意:

对于以下过程:首次启动SQL Developer 在系统上,必须在步骤1中提供java.exe的完整路径.

For the following procedure: The first time you start SQL Developer on your system, you must provide the full path to java.exe in step 1.

对于第4步,您需要一个用户名和密码.

For step 4, you need a user name and password.

对于步骤6,您需要一个主机名和端口.

For step 6, you need a host name and port.

要从SQL Developer连接到Oracle Database XE:

To connect to Oracle Database XE from SQL Developer:

启动SQL Developer.

Start SQL Developer.

有关说明,请参见《 Oracle Database SQL Developer用户指南》.

For instructions, see Oracle Database SQL Developer User's Guide.

如果这是您第一次在您的计算机上启动SQL Developer 系统,提示您输入java.exe的完整路径(对于 例如C:\ jdk1.5.0 \ bin \ java.exe).要么输入完整路径 提示或浏览到它,然后按Enter键.

If this is the first time you have started SQL Developer on your system, you are prompted to enter the full path to java.exe (for example, C:\jdk1.5.0\bin\java.exe). Either type the full path after the prompt or browse to it, and then press the key Enter.

Oracle SQL Developer窗口打开.

The Oracle SQL Developer window opens.

在窗口的导航框架中,单击连接".

In the navigation frame of the window, click Connections.

出现连接"窗格.

在连接"窗格中,单击图标新建连接".

In the Connections pane, click the icon New Connection.

新建/选择数据库连接"窗口打开.

The New/Select Database Connection window opens.

在新建/选择数据库连接"窗口中,键入适当的 连接名称,用户名和密码字段中的值.

In the New/Select Database Connection window, type the appropriate values in the fields Connection Name, Username, and Password.

为了安全起见,您键入的密码字符显示为 星号.

For security, the password characters that you type appear as asterisks.

在密码"字段附近是复选框保存密码".默认情况下 被取消选择. Oracle建议接受默认设置.

Near the Password field is the check box Save Password. By default, it is deselected. Oracle recommends accepting the default.

在新建/选择数据库连接"窗口中,单击选项卡Oracle.

In the New/Select Database Connection window, click the tab Oracle.

出现Oracle窗格.

The Oracle pane appears.

在Oracle窗格中:

In the Oracle pane:

对于连接类型",请接受默认值(基本).

For Connection Type, accept the default (Basic).

对于角色,请接受默认设置.

For Role, accept the default.

在主机名"和端口"字段中,接受默认值或键入 适当的值.

In the fields Hostname and Port, either accept the defaults or type the appropriate values.

选择选项SID.

在"SID"字段中,输入接受默认值(xe).

In the SID field, type accept the default (xe).

在新建/选择数据库连接"窗口中,单击测试"按钮.

In the New/Select Database Connection window, click the button Test.

连接已测试.如果连接成功,则状态为 指示器从空白变为成功.

The connection is tested. If the connection succeeds, the Status indicator changes from blank to Success.

插图说明成功.gif

如果测试成功,请单击连接"按钮.

If the test succeeded, click the button Connect.

新建/选择数据库连接"窗口关闭.连接窗格 显示您在连接名称"中输入其名称的连接 步骤4中的字段.

The New/Select Database Connection window closes. The Connections pane shows the connection whose name you entered in the Connection Name field in step 4.

您在SQL Developer环境中.

You are in the SQL Developer environment.

要退出SQL Developer,请从文件"菜单中选择退出".

To exit SQL Developer, select Exit from the File menu.

这篇关于初始安装oracle数据库11g Express Edition后如何创建新数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆