sys用户使用@连接符提示无效权限的错误ORA-01031:
问题:有同事反映,新安装的数据库使用 conn sys/oracle@xxxx as sysdba登录不上去,提示ORA-01031: insufficient privileges,而用户名密码都是完全正确的,不使用@xxx连接符conn / as sysdba登录正常。 过程: 首先判断当前系统采用的是操作系统认证,再使用system/manager@xxxx登录时没有问题,只有使用sysdba权限的用户登录才会报这种错误。接下来进行 grant sysdba to scott; 报错,ORA-01994: GRANT failed: password file missing or disabled。注意,问题就在这里,系统提示密码文件问题。查找$ORACLE_HOME/dbs下的orapwSID文件,
再谈ORA-01031 when sqlplus '/as sysdba'
HB-BSS-TEST>sqlplus '/as sysdba'SQL*Plus: Release 10.2.0.4.0 - Production on Wed Aug 11 13:20:04 2010Copyright (c) 1982, 2007, Oracle. All Rights Reserved.ERROR:ORA-01031: insufficient privileges================================The config.o file may not have been properly generated from the config.s (or config.c) file. There may have been OS user or other changes since the initial install, and hence the ORA-1031 error occurred.The 'OSDBA' and 'OSOPER' groups are chosen at installation time a
resetlogs
很多人说,resetlogs就是不完全恢复,这是不对的,做不完全恢复必须使用resetlogs,但resetlogs也可以做完全恢复。而noresetlogs则是必须做完全恢复时使用。resetlogs会重置日志序列号强制清空或重建REDO,而noresetlogs则不会这么做。第一种情况,我们假设仅仅控制文件丢失,而其他文件没有丢失(主要是归档和REDO),那么恢复的时候如果选择从备份中恢复控制文件。恢复后,控制文件会去读数据文件头中与CHECKPOINT SCN对应的RBA信息来确定从那个序列的归档日志开始恢复,一直推进恢复到NEXT SCN是无穷大的那个REDOLOG,此时恢复是完全恢
CONTROL_FILE_RECORD_KEEP_TIME参数 和 retention policy 的关系 (转郝总)
CONTROL_FILE_RECORD_KEEP_TIME参数 和 retention policy 的关系 1、CONTROL_FILE_RECORD_KEEP_TIME参数 determines how long information that can be used by RMAN is kept in the control file. The default value for this parameter is 7 days and can be as many as 365 days. The greater the number, the larger the control file becomes to store more information. 2、retention policy configure retention policy to recovery window of 30 days; 1: 控制文件中对于 备份相关的信息的保留的时间长度。 2: 备份的过期策略。需
SYS远程连接出错ORA-01031:Insufficient privileges
一日,PL/SQL DEVELOPER工具用sys用户连接数据库报ORA-1031,在本地验证sys密码没错。网上说于passwordfile有关,很多人都关闭数据库后,重建密码文件。我在10.2.0.1的环境中,直接修改密码文件的名字,v$pwfile_users就能识别了。不晓得他们为什么要停掉库重建passwordfile。passwordfile在ORACLE_HOME/dbs下,格式为orapwSID。注意:1.是orapw而不是orapwd 2.是orapwSID而不是orapwSID.ora[@more@]