Chinaunix首页 | 论坛 | 博客
  • 博客访问: 90924569
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Oracle

2008-03-31 22:32:51

来源:赛迪网    作者:10330

1. 在服务中起动 OracleServiceORCL.或运行oracle.exe ORCL

2. 启动实例:

sqlplus sys/aaaaaaaa as sysdba

SQL>startup

******************例子开始****************

d:\>SQLPLUS sys/aaaaaaaa as sysdba

SQL*Plus: Release 10.1.0.2.0 - Production 
星期六 8月 28 19:42:29 2004

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area  134217728 bytes
Fixed Size                   787808 bytes
Variable Size              61864608 bytes
Database Buffers           71303168 bytes
Redo Buffers                 262144 bytes
Database mounted.
Database opened.
SQL> select * from scott.a;

ID   NAME
---- --------------------
ADDRESS
------------------------------------
01   姚湘
CHINA,中国吉林


SQL>

*******************例子结束**********

3. 关闭

SQL> shutdown

4. 停相应的服务(OracleServiceORCL)

注释:开放port 1521 用 lsnrctl start,看状态用lsnrctl status,关闭用lsnrctl stop。

阅读(423) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~