Oracle Database 11g Express Edition入门(使用SQLPlus)

Oracle Database 11g Express Edition入门

下载安装Oracle 11g XE

http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html

安装过程中要指定sys/system的密码。

安装完成后,通过命令行执行

  1. 打开安装Oracle菜单中的SQL命令行
SQL> connect
Enter user-name: system
Enter password:
SQL> select sysdate from dual;
SYSDATE
\--------
15-07-30

或者

SQL> connect system/password
SQL> select sysdate from dual;
SYSDATE
\--------
15-07-30

SQL命令行右键属性,其实是一个sqlplus命令的连接
C:\oraclexe\app\oracle\product\11.2.0\server\bin\sqlplus.exe /nolog

将oralce的bin工具路径添加环境变量PATH中之后,就可以直接在DOS命令行下面连接 Oracle 数据库

  1. 开始–运行–输入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 on730 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)