oracle 连接失败问题——错误方式删除表空间文件
2014-03-04 23:15
543 查看
出现以下错误
错误信息:
连接失败
ORA-01034: ORACLE not available
ORA-27101:shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
主要原因是手动将创建的表空间文件删除了。
解决方法:
登陆到命令行终端
SQL>sqlplus /nolog
SQL>conn sys / as sysdba
SQL>startup
通过startup命令,会出现错误信息
Total System Global Area 409194496 bytes
Fixed Size 2213856 bytes
Variable Size 306186272 bytes
Database Buffers 96468992 bytes
Redo Buffers 4325376 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: '/opt/app/oracle/oradata/osa/music.dbf'
SQL>shutdown normal
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>startup mount
ORACLE instance started.
Total System Global Area 409194496 bytes
Fixed Size 2213856 bytes
Variable Size 306186272 bytes
Database Buffers 96468992 bytes
Redo Buffers 4325376 bytes
Database mounted.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: '/opt/app/oracle/oradata/osa/music.dbf'
SQL>alter database datafile 7 offline drop;
Database altered.
SQL>shutdown normal
ORA-01109: database not open
Database dismounted.
SQL>startup
ORACLE instance started.
Total System Global Area 409194496 bytes
Fixed Size 2213856 bytes
Variable Size 306186272 bytes
Database Buffers 96468992 bytes
Redo Buffers 4325376 bytes
Database mounted.
Database opened.
完成即可连接数据库。
错误信息:
连接失败
ORA-01034: ORACLE not available
ORA-27101:shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
主要原因是手动将创建的表空间文件删除了。
解决方法:
登陆到命令行终端
SQL>sqlplus /nolog
SQL>conn sys / as sysdba
SQL>startup
通过startup命令,会出现错误信息
Total System Global Area 409194496 bytes
Fixed Size 2213856 bytes
Variable Size 306186272 bytes
Database Buffers 96468992 bytes
Redo Buffers 4325376 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: '/opt/app/oracle/oradata/osa/music.dbf'
SQL>shutdown normal
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>startup mount
ORACLE instance started.
Total System Global Area 409194496 bytes
Fixed Size 2213856 bytes
Variable Size 306186272 bytes
Database Buffers 96468992 bytes
Redo Buffers 4325376 bytes
Database mounted.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: '/opt/app/oracle/oradata/osa/music.dbf'
SQL>alter database datafile 7 offline drop;
Database altered.
SQL>shutdown normal
ORA-01109: database not open
Database dismounted.
SQL>startup
ORACLE instance started.
Total System Global Area 409194496 bytes
Fixed Size 2213856 bytes
Variable Size 306186272 bytes
Database Buffers 96468992 bytes
Redo Buffers 4325376 bytes
Database mounted.
Database opened.
完成即可连接数据库。
相关文章推荐
- 之前创建了一个表空间,然后今天不小心把表空间文件给删除了。然后用pl/sql连接数据库的时候,报ORA-01033错误。ora-01033:oracle initializationg or shut
- Oracle数据库案例整理-删除和停止Oracle数据库失败-Oracle回收站启动导致删除表空间文件失败
- Oracle数据库案例整理-Oracle系统运行时故障-$ORACLE_HOME/bin下的文件权限错误导致TNS连接失败
- ORA-01251错误oracle服务启动无法连接误删非法删除数据文件导致数据库不能打开ORA-01122 ORA-01251
- [Android] USB连接方式(设备文件管理 MTP 模式)下看不到文件的问题、文件内容没刷新的问题
- CFileDialog改变文件路径导致的一系列问题(如无法安全删除u盘、访问相对路径失败)的解决方法
- 使用bat批处理方式定期备份和定期删除oracle备份文件
- 修复ORACLE92i TNS-12545: 因目标主机或对象不存在,连接失败 错误
- oracle数据库登录连接很慢;kettle连接oracle 报 IO 错误,socket time out 问题解决记录
- 总结Oracle删除表空间遇到的问题
- 针对通过 SSH 连接到 Azure Linux VM 时发生的失败、错误或被拒绝问题进行故障排除
- python 各种删除文件失败的处理方式
- 数据库安装错误的解决方式 【转】如何处理 SQL Server 安装过程中的 COM+ 检查失败问题 - ...
- 解决64位系统 用vs2013 IISExpress 调试 连接Oracle 报TNS错误问题
- 关于oracle导入imp文件出现错误1435 用户不存在的 问题
- 修复ORACLE92i TNS-12545: 因目标主机或对象不存在,连接失败 错误
- Oracle日志文件被误删除导致的问题解决
- oracle删除表空间报ORA-00604和ORA-02429错误问题
- 我是小白,关于oracle xe连接sql developer的失败问题
- Android设备MTP方式连接PC增删文件无法实时更新的问题