文章目录
安装数据库过程中提示/etc/oratab出错或不存在
[root@localhost ~]# mkdir /etc/oratab
[root@localhost ~]# chown -R oracle.oinstall /etc/oratab
[root@localhost ~]# chown -R oracle.oinstall /arch 归档文件
数据库无法启动,共享内存和sga有问题 :MEMORY_TARGET not supported on this system
mount -o remount,size=1024M /dev/shm
vim /etc/fstab
数据库无法启动cannot mount database in EXCLUSIVE mode
Oracle 启动后发现其他帐户都无法登陆,报告错误如下:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
解决:
cd $ORACLE_HOME/dbs
看此目录下是否有 lk(SID) 文件存在
/sbin/fuser -u lkMUSICDB1
杀掉先
/sbin/fuser -k lkMUSICDB1
再查,发现已经没有资源占用
/sbin/fuser -u lkMUSICDB1
ok!
再次启动Oracle
监听没有服务
Lsnrctl status
The listener supports no services
(必须启动数据库startup,才能监听到实例)还不行的话:
SQL> show parameter service_names
SQL> alter system register;
Lsnrctl status
无法远程登录
ORA-12514: TNS:listener does not currently know of service requested in connect
Descriptor
(打开数据库才能远程连接,用xixi可以,sys不能连)
SQL> show parameter remote_login_passwordfile;(exclusive可以远程登录)
无法授权用户对表的操作
SQL> grant drop table to xixi;
grant drop table to xixi
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> grant insert table to xixi;
grant insert table to xixi
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
这里还没有搞清楚原因,不过好像不影响,新用户仍可增删改查