数据库没有启动,你要先在服务里面把数据库服务启动了或者手工启动sqlplus /nolog
sql>connect /as sysdba
sql>startup

解决方案 »

  1.   

    $ sqlplus /nologSQL*Plus: Release 3.3.4.0.0 - Production on Thu Oct 21 16:37:44 2004Copyright (c) Oracle Corporation 1979, 1996.  All rights reserved.SQL> connect /as sysdba
    ERROR: ORA-01017: invalid username/password; logon denied
    SQL> connect /as sys/sys
    ERROR: ORA-01017: invalid username/password; logon denied
    SQL> connect sys/sys
    ERROR: ORA-01034: ORACLE not available
    ORA-07429: smsgsg: shmget() failed to get segment.
    SCO System V/386 Error: 2: No such file or directory
    SQL> startup
    unknown command "startup" - rest of line ignored.
    SQL>
      

  2.   

    你是ORACLE7的数据库吗?下次提问注意问题里面说明清楚!7手工启动是
    c:\svrmgr
    svrmgr>connect internal
    svrmgrl>startup
      

  3.   

    启动成功,但是Enter user-name: sys
    Enter password:
    ERROR: ORA-01033: ORACLE initialization or shutdown in progress登陆的时候出错,怎么办啊?
      

  4.   

    svrmgrl>shutdown immediate;
    svrmgrl>startup;
      

  5.   

    SVRMGR> connect internal
    Connected to an idle instance.
    SVRMGR> startup
    ORACLE instance started.
    Total System Global Area       4585996 bytes
    Fixed Size                       41880 bytes
    Variable Size                  4126324 bytes
    Database Buffers                409600 bytes
    Redo Buffers                      8192 bytes
    Database mounted.
    ORA-01157: cannot identify data file 6 - file not found
    ORA-01110: data file 6: '/usr/ora734/app/oracle/data/oradata/ora734/demo.dbf'
    SVRMGR> exit
    Server Manager complete.
    $ sqlplusSQL*Plus: Release 3.3.4.0.0 - Production on Thu Oct 21 16:56:03 2004Copyright (c) Oracle Corporation 1979, 1996.  All rights reserved.Enter user-name: sys
    Enter password:
    ERROR: ORA-01033: ORACLE initialization or shutdown in progress
      

  6.   

    你怎么把这个文件删除了'/usr/ora734/app/oracle/data/oradata/ora734/demo.dbf'你还得在数据库删除呀,按照下面的做法svrmgrl>shutdown immediate;
    svrmgrl>alter database datafile 了'/usr/ora734/app/oracle/data/oradata/ora734/demo.dbf' offline drop;svrmgrl>startup
      

  7.   

    try:
    shutdown immediate
    startup mount
    alter database datafile '/usr/ora734/app/oracle/data/oradata/ora734/demo.dbf' offline drop
    alter database open