Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3121060
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: Oracle

2013-08-22 18:58:27

[oracle@localhost dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Fri Aug 23 02:24:38 2013
Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

ERROR:
ORA-01031: insufficient privileges

密码文件存在 orapworcl

使用sqlplus sys/oracle as sysdba登陆
SQL> show parameter password
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile            string      EXCLUSIVE


SQL> select * from v$pwfile_users;
USERNAME                       SYSDB SYSOP
------------------------------ ----- -----
SYS                            TRUE  TRUE

最后从论坛上找到一个帖子发现
[oracle@localhost ~]$ id 
uid=500(oracle) gid=500(oinstall) groups=500(oinstall)

oracle没有在dba组,添加
[oracle@localhost ~]$ cat /etc/group | grep dba
dba:x:501:oracle

[oracle@localhost ~]$ sqlplus /  as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Fri Aug 23 02:53:31 2013
Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
SQL> 

阅读(1818) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~