Ora-1157 ora-1110错误解决案例一枚

摘要:
1.数据库打开错误如下:SQL˃alterdatabaseopen;Alternatdatabaseopen*ERRORAtline1:ORA-01157:uniidentifiey/lockdatafile4-seeDBWRtracefileORA-01110:datafile4:'/weblogic/oradata/orcl/users01.dbf'2.查看报警日志,并报告相同的错误:2017年11月10日星期四

1、数据库打开报错如下:

SQL> alter database open;

alter database open

*

ERROR at line 1:

ORA-01157: cannot identify/lock data file 4 - see DBWR trace file

ORA-01110: data file 4: '/weblogic/oradata/orcl/users01.dbf'

2、查看告警日志,同样报错:

Thu Nov 10 17:58:14 2016

alter database open

Thu Nov 10 17:58:14 2016

Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_dbw0_22383.trc:

ORA-01157: cannot identify/lock data file 4 - see DBWR trace file

ORA-01110: data file 4: '/weblogic/oradata/orcl/users01.dbf'

ORA-27041: unable to open file

Linux-x86_64 Error: 13: Permission denied

Additional information: 9

Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_dbw0_22383.trc:

ORA-01157: cannot identify/lock data file 5 - see DBWR trace file

ORA-01110: data file 5: '/weblogic/oradata/orcl/users02.dbf'

ORA-27041: unable to open file

Linux-x86_64 Error: 13: Permission denied

Additional information: 9

Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_24033.trc:

ORA-01157: cannot identify/lock data file 4 - see DBWR trace file

ORA-01110: data file 4: '/weblogic/oradata/orcl/users01.dbf'

ORA-1157 signalled during: alter database open...

3、因为报错linux错误,所以查看具体的数据文件权限,发现数据文件权限都变成了weblogic:

[root@slave1 weblogic]# ll

total 24

drwx------. 2 weblogic weblogic 16384 May 6 2016 lost+found

drwxrwxr-x. 3 weblogic weblogic 4096 May 6 2016 Oracle

drwxr-xr-x. 3weblogic weblogic 4096 Aug 16 10:20 oradata

4、修改数据文件权限:

[root@slave1 weblogic]# chown -R oracle:oinstall Oracle/

[root@slave1 weblogic]# chown -R oracle:oinstall oradata/

[root@slave1 weblogic]# ll

total 24

drwx------. 2 weblogic weblogic 16384 May 6 2016 lost+found

drwxrwxr-x. 3 oracle oinstall 4096 May 6 2016 Oracle

drwxr-xr-x. 3 oracle oinstall 4096 Aug 16 10:20 oradata

5、成功打开数据库,告警日志也没有再次报错:

SQL> alter database open;

Database altered.

免责声明:文章转载自《Ora-1157 ora-1110错误解决案例一枚》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇hadoop安装与配置C# Winform 窗体美化下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Postman-常用方法集合

postman常用方法集合: 1.设置环境变量 postman.setEnvironmentVariable("key", "value"); pm.environment.get("key", "value");//postman 5.0以上版本设置环境变量的方法 2.设置全局变量 postman.setGlobalVariable("key", "v...

oracle之复杂查询(下):子查询

复杂查询(下):子查询8. 1 非关联子查询:返回的值可以被外部查询使用。子查询可以独立执行的(且仅执行一次)。8.1.1 单行单列子查询,子查询仅返回一个值,也称为标量子查询,采用单行比较运算符(>,<,=,<>,>=,<=)例:内部SELECT子句只返回一行结果SQL>select ename,salfrom...

数据挖掘:理论与算法(导论)

清华大学研究生公开课 数据挖掘是数据科学,是多领域交叉学科:数据挖掘 = 机器学习 + 人工智能 + 模式识别 + 统计学 数据挖掘的广泛应用: Business Intelligence Data Analytics Big Data Decision Support Customer Relationship Management "Educatio...

oracle建表

在oracle中sequence就是所谓的序列号,每次取的时候它会自动增加,一般用在需要按序列号排序的地方。 1、Create Sequence 你首先要有CREATE SEQUENCE或者CREATE ANY SEQUENCE权限, CREATE SEQUENCE emp_sequence INCREMENT BY 1 --...

Oracle的表空间quota详解

表空间quota概述 Oracle 官网对quota的定义如下: A limit on a resource, such as a limit on the amount of database storage used by a database user. A database administrator can set tablespace quot...

在oracle中自动大批量生成测试数据

方法1: SQL> create table b as select 1 id from dual connect by level<=100;    方法2:   SQL> create table a (id int);   Table created.   SQL> insert into a select 1 from d...