选择高级安装

只修改目标路径,注意根路径不能有空格,否则装不了


只修改目标路径,注意根路径不能有空格,否则装不了

选择企业版,下一步


选择通用,下一步


这里默认即可,下一步


这里也默认即可

默认继续下一步

给所用账户配个口令,也就是密码,我设置的是oracle

点击安装

安装等待中



弹出这个按确定就可以了
确定

安装结束


继续默认


默认继续下一步

给所用账户配个口令,也就是密码,我设置的是oracle

点击安装

安装等待中



弹出这个按确定就可以了
确定

安装结束

注意看最下面部分

http://PC-200201010029:5500/em 就是oracle的管理登录界面 当然地址你的会不一样,是机器名
浏览器输入http://PC-200201010029:5500/em
会进入到
口令是你设置的,我这里是oracle
会出现一段英文,不管它,点击右下角的 I AGREE


http://PC-200201010029:5500/em 就是oracle的管理登录界面 当然地址你的会不一样,是机器名
浏览器输入http://PC-200201010029:5500/em
会进入到

口令是你设置的,我这里是oracle
会出现一段英文,不管它,点击右下角的 I AGREE

这样就进入管理界面了

装了oracle你会发现占用内存非常大
而且是开机自动启动的,不用的时候还是关掉服务好
进入控制面板--管理工具--服务

把自动全改为手动


装了oracle你会发现占用内存非常大

而且是开机自动启动的,不用的时候还是关掉服务好
进入控制面板--管理工具--服务

把自动全改为手动

还有个要注意,装了oracle后,你会发现eclipse启动不了了
因为环境变量的path已经被更改

D:\DataBase\oracle\product\10.1.0\db_1\bin;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin;%JAVA_HOME%\bin;%CATALINA_HOME%\bin
改成这样即可
%JAVA_HOME%\bin;%CATALINA_HOME%\bin;D:\DataBase\oracle\product\10.1.0\db_1\bin;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin;

创建一个用户sa 口令oracle 注意口令不能以数字开头

因为环境变量的path已经被更改

D:\DataBase\oracle\product\10.1.0\db_1\bin;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin;%JAVA_HOME%\bin;%CATALINA_HOME%\bin
改成这样即可
%JAVA_HOME%\bin;%CATALINA_HOME%\bin;D:\DataBase\oracle\product\10.1.0\db_1\bin;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;D:\DataBase\oracle\product\10.1.0\db_1\jre\1.4.2\bin;

下面谈谈使用oracle
开始-运行---sqlplusw
进入控制台

输入system口令oracle 回车 (口令用你自己设置的)
进入

开始-运行---sqlplusw
进入控制台

输入system口令oracle 回车 (口令用你自己设置的)
进入

创建一个用户sa 口令oracle 注意口令不能以数字开头

但是新创建的用户是无法登录的,因为没有任何权限
我们就赋予给他最高权限

现在可以用sa用户登录了
我们就赋予给他最高权限

现在可以用sa用户登录了
创建表空间(也就是database)
create tablespace MyDB nologging datafile 'd:\DataBase\OracleData\mydata.dbf' size 20m autoextend on next 20m maxsize unlimited extent management local;

create tablespace MyDB nologging datafile 'd:\DataBase\OracleData\mydata.dbf' size 20m autoextend on next 20m maxsize unlimited extent management local;

删除表空间
DROP TABLESPACE MyDB INCLUDING CONTENTS AND DATAFILES;

还是使用原来的表空间
现在建表
很简单的一个表
create table UserInfo(name varchar2(50 char));

接着插入一条数据
insert into UserInfo values('oracle');

查询下
select * from UserInfo

DROP TABLESPACE MyDB INCLUDING CONTENTS AND DATAFILES;

还是使用原来的表空间
现在建表
很简单的一个表
create table UserInfo(name varchar2(50 char));

接着插入一条数据
insert into UserInfo values('oracle');

查询下
select * from UserInfo
