window 2003oracle实列无法启动 20130531

系统windows 2003

数据库oracle  Release 10.2.0.1.0

在windows 我的电脑 -管理-服务里

启动oracle实例

名称OracleServiceORCL和 监听服务 OracleOraDb10g_home1TNSListener

启动监听程序 显示正常

启动实例服务 显示 是启动状态 不是正常的已启动状态

处理步骤

1.搜索 windows oracle  实例无法启动

2.在相关论坛里找到一些信息在 cmd下手动一步一步启动

sqlplus / as sysdba
startup mount;
alter database open;

3.手工启动oracle
C:\Documents and Settings\Administrator>sqlplus / as sysdba;  //进入oracle 数据库

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 5月 31 09:37:23 2013

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


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> startup mount
ORA-01081: 无法启动已在运行的 ORACLE - 请首先关闭它   //这个错是由于数据库的已在运行
SQL> shutdonw immdeiate
SP2-0734: 未知的命令开头 "shutdonw i..." - 忽略了剩余的行。
SQL> shutdonw immeeiate
SP2-0734: 未知的命令开头 "shutdonw i..." - 忽略了剩余的行。
SQL> shutdonw immediate
SP2-0734: 未知的命令开头 "shutdonw i..." - 忽略了剩余的行。  

//上面三行SP2-0734 错误是关闭数据库命令的拼写错误所造成

 
SQL> shutdown immediate  //关闭数据库
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount    //启动数据库
ORACLE 例程已经启动。

Total System Global Area  612368384 bytes
Fixed Size                  1250428 bytes
Variable Size             188746628 bytes
Database Buffers          415236096 bytes
Redo Buffers                7135232 bytes
数据库装载完毕。
SQL> alter database open;  

SQL> show user;
USER 为 "SYS"

SQL> select * from scott.emp;

     EMPNO ENAME      JOB              MGR HIREDATE              SAL       COMM
---------- ---------- --------- ---------- -------------- ---------- ----------
    DEPTNO
----------
      7369 SMITH      CLERK           7902 17-12月-80            800

4.出现可查询表后查看oracle实例服务. 恢复已启动

猜你喜欢

转载自hao503265072.iteye.com/blog/1880428
今日推荐