【LJ?Dragon】鱼对水说你看不到我的眼泪,因为我在水里。水说我能感觉到你的眼泪,因为你在我心里。
【LJ?Dragon】You’re more than a shadow, I’ve just to believe.
【LJ?Dragon】A true friend is some one who reaches for your hand and touches your heart.
下载:OracleXE112_Win64.zip 共317M
下载安装Oracle 11g XE
使用时只需开启Oracle核心服务和监听服务即可
oracle 11g 快捷版 中的默认账户:
用户名:system
默认密码:manage
快捷版的oracle带有一个人事管理部门的数据库,用来帮助大家更方便的学习了解数据库,但它并不是oracle10 的那个scott/tiger,要登录该数据库,需要如下默认账户和密码:
默认账户:hr
默认密码:hr(请注意大小写)
其中有:COUNTRIES、DEPARTMENTS、EMP2、EMPLOYEES、JOBS、JOB_HISTORY、LOCATIONS、REGIONS这些表
安装完成后,通过命令行执行
- 打开安装Oracle菜单中的
SQL命令行
-
SQL> connect Enter user-name: system Enter password:
<!--或者-->
connect system/passwordSQL> select sysdate from dual;
-
在
SQL命令行
右键属性,其实是一个sqlplus命令的连接C:\oraclexe\app\oracle\product\11.2.0\server\bin\sqlplus.exe /nolog
将oralce的bin工具路径添加环境变量PATH中之后,就可以直接在DOS命令行下面连接 Oracle 数据库
-
开始–运行–输入cmd,打开DOS窗口
-
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\>sqlplus system/shouadmin SQL*Plus: Release 11.2.0.2.0 Production on 木 7月 30 16:59:13 2015 Copyright (c) 1982, 2014, Oracle. All rights reserved. Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production SQL> SQL> select sysdate from dual; SYSDATE \-------- 15-07-30
安装完成后,最好重启一下电脑,不然打不开数据库。安装完成后,通过菜单-所有程序-oracle-点击start database,自动开启数据库
出现如下问题:
oracle登录时,提示:ORA-01033: ORACLE initialization or shutdown in progress,
当以sqlplus /nolog登录时,提示:Writing audit records to Windows Event Log failed,
无法继续进行操作
解决方法:
必须先启动windows系统中的Windows Event Log这项服务,然后再启动oracle的相关服务,顺序不能颠倒
这是因为环境变量没有设置
参照这个设置一下
TNS_ADMIN -- D:\Oracle\instantclient_11_2
ORACLE_HOME -- D:\Oracle\instantclient_11_2
NLS_LANG -- AMERICAN_AMERICA.ZHS16GBK