现在的位置: 首页 > 综合 > 正文

ORA-01219 问题解决办法;ora-01031:insufficient privileges问题解决办法

2013年06月28日 ⁄ 综合 ⁄ 共 734字 ⁄ 字号 评论关闭

登陆sys用户提示:ora-01031:insufficient privileges;

控制面板中打开用户账户,发现当前登陆账户不在ora_dba的域中,既然不在当然添加上;

添加方式:开始->程序->oracle->Configuration
and Migration Tools(配置和移植工具)->Administration Assistant for Windows 

oracle
Managed Objects->Computers->电脑名->OS 数据库管理员-计算机      上面右键 添加/删除  添加当前用户到ora_dba保存

以sys登陆oracle登陆成功! 那么ora-01031得以解决

打开一个package执行编译提示:

ORA-01219:database not open:queries allowed on fixed tables/views only
“ORA-01219:数据库未打开:仅允许在固定表/视图中查询”的警告窗口

执行sql---select open_mode from v$database;

执行sql---alter database open;

提示出错:
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: 'C:\ORACLE\ORADATA\ISMART\SYSMGR_DATA.DBF'

检查file7所示的文件是否存在:

如果不存在:

1. 执行“alter
database create datafile 7;”

2. 执行“alter database datafile 7 offline drop

3. 执行“alter database open”

如果存在则执行上面的2、3步即可



抱歉!评论已关闭.