声明:本博文用于学习总结及工作心得
在阿里云安装了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
具体步骤:
cd /home/oracle/app/oracle/products/11.2.0/dbname_1/
ls
发现lkORCL文件,使用fuser -u lkORCL 查看使用 lkORCL 文件的进程和用户。-u 为进程号后圆括号中的本地进程提供登录名
root@VM-19-214-ubuntu:/home/oracle/app/product/11.2.0home_1s# fuser -u lkORCL
/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)
使用 fuser -k lkORCL 杀死这些正在访问lkORCL的进程 -k 杀死这些正在访问这些文件的进程。
root@VM-19-214-ubuntu:/home/oracle/app/product/11.2.0home_1s# fuser -k lkORCL
/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
确认:相关进程全被终止。
root@VM-19-214-ubuntu:/home/oracle/app/product/11.2.0home_1s# fuser -u lkORCL
用oracle用户重新启动oracle
sqlplus "/as sysdba"
Total System Global Area 221294592 bytes
Fixed Size 2212048 bytes
Variable Size 109055792 bytes
Database Buffers 104857600 bytes
Redo Buffers 5169152 bytes
Database mounted.
Database opened.
SQL> create user dbuser1 identified by dbuser1;
User created.
SQL>