ORA-01102: cannot mount database in EXCLUSIVE mode

Bertha 。 2022-07-11 00:27 258阅读 0赞

声明:本博文用于学习总结及工作心得

在阿里云安装了oracle 利用windows上VNC viewer 远程连接阿里云服务器上ubuntu14.04

具体连接方法可以参考:http://blog.csdn.net/qq\_33571718/article/details/54425747

安装可以参考:http://blog.csdn.net/qq\_33571718/article/details/54425747

之前在我本地安装的时候所有依赖都已经安装成功,但是在阿里云服务器上安装时,ia32-libs 安装不了,具体原因时因为在安装其他包时,

其中附带的libc6:i386包版本为2.19 但是 要求是低于2.14的,想了很多办法最后还是没解决;所有就没有安装ia32-libs;接着直接VNC viewer中安装了oracle

最后成功安装了,但是启动连接oracle 时出现了ORA-01102: cannot mount database in EXCLUSIVE mode

最后解决方法参考:http://www.linuxidc.com/Linux/2013-11/92601.htm

具体步骤:

  1. cd /home/oracle/app/oracle/products/11.2.0/dbname_1/
  2. ls
  3. 发现lkORCL文件,使用fuser -u lkORCL 查看使用 lkORCL 文件的进程和用户。-u 为进程号后圆括号中的本地进程提供登录名
  4. root@VM-19-214-ubuntu:/home/oracle/app/product/11.2.0home_1s# fuser -u lkORCL
  5. /home/oracle/app/product/11.2.0home_1s/lkORCL: 4044(oracle) 4050(oracle) 4054(oracle) 4056(oracle) 4060(oracle) 4062(orcle) 4064(oracle) 4066(oracle) 4068(oracle) 4070(oracle) 4072(oracle) 4074(oracle) 4086(oracle) 4118(oracle) 4218(oracle) 4220(oracle) 4228(oracle) 4230(oracle)
  6. 使用 fuser -k lkORCL 杀死这些正在访问lkORCL的进程 -k 杀死这些正在访问这些文件的进程。
  7. root@VM-19-214-ubuntu:/home/oracle/app/product/11.2.0home_1s# fuser -k lkORCL
  8. /home/oracle/app/product/11.2.0home_1s/lkORCL: 4044 4050 4054 4056 4060 4062 4064 4066 4068 4070 4072 4074 4086 4118 4218 4220 4228 4230 6992 6994
  9. 确认:相关进程全被终止。
  10. root@VM-19-214-ubuntu:/home/oracle/app/product/11.2.0home_1s# fuser -u lkORCL
  11. oracle用户重新启动oracle
  12. sqlplus "/as sysdba"
  13. Total System Global Area 221294592 bytes
  14. Fixed Size 2212048 bytes
  15. Variable Size 109055792 bytes
  16. Database Buffers 104857600 bytes
  17. Redo Buffers 5169152 bytes
  18. Database mounted.
  19. Database opened.
  20. SQL> create user dbuser1 identified by dbuser1;
  21. User created.
  22. SQL>

发表评论

表情:
评论列表 (有 0 条评论,258人围观)

还没有评论,来说两句吧...

相关阅读