加载中…
个人资料
缪趣横生
缪趣横生
  • 博客等级:
  • 博客积分:0
  • 博客访问:215
  • 关注人气:0
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

ORA-01109: database not open

(2011-06-03 12:59:46)
标签:

it

分类: Oracle

RedHat AS4 重新安装 Oracle后,进入 isqlplus ,create table 时, ORA-01109: database not open

解决之:

是lk<SID>文件造成的,该文件位于ORALCE_HOME下的dbs目录下,马上检查该文件:

cd $ORACLE_HOME/dbs

http://hiphotos.baidu.com/%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%D2%B9%D6%AE%EF%BF%BD%EF%BF%BD0502/pic/item/8535e5dde4ef00d377c6385e.jpgdatabase not open" TITLE="ORA-01109: database not open" />

[root@qa-oracle dbs]# fuser -u lkORCL
lkORCL:             6666(oracle) 6668(oracle) 6670(oracle) 6672(oracle) 6674(oracle) 6676(oracle) 6678(oracle) 6680(oracle) 6690(oracle) 6692(oracle) 6694(oracle) 6696(oracle) 6737(oracle) 6830(oracle)

果然该文件没释放,用fuser命令kill掉:

[root@localhost dbs]# fuser -u lkORCL


lkORCL:               7284(oracle) 7286(oracle) 7288(oracle) 7290(oracle) 72
92(oracle) 7294(oracle) 7296(oracle) 7298(oracle) 7300(oracle) 7302(oracle)
7304(oracle) 7312(oracle) 7325(oracle) 7327(oracle) 29204(oracle)

[root@localhost dbs]# fuser -k lkORCL


lkORCL:               7284 7286 7288 7290 7292 7294 7296 7298 7300 7302
7304 7312 7325 7327 29220

然后再次登陆 sqlplus , 如下操作

SQL> shutdown immediate
ORA-01507: database not mounted


ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 167772160 bytes
Fixed Size                  1218316 bytes
Variable Size              62916852 bytes
Database Buffers          100663296 bytes
Redo Buffers                2973696 bytes
Database mounted.
Database opened.

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有