ORACLE11g重装系统后根据dbf恢复数据库
1.安装⼀个和原系统⼀致的oracle 环境,主要包括版本、数据名sid、实例名、路径和数据库编码⼀致
2.修改a的参数
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl) //如果已经有这个orcl了,这个⽂件就不⽤修改
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1) //这⾥要根据你的实际路径来
(SID_NAME = orcl)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lypch )(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)
3. 修改a的参数
AMMICLY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = lypch )(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)linux安装oracle 11g
(SERVICE_NAME = orcl)
(UR=A) //参数允许只进⾏管理性的连接,数据库nomount,mount或者restricted时,动态监听显⽰状态为BLOCKED时,客户端配置UR=A进⾏连接。 )
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
3.SQL>shutdown immediate 停⽌服务,将新安装的oracle的dbf备份后删除,将原dbf拷贝到新安装的⽬录下F:\app\toshiba\oradata\orcl
4.原oracle库主⽬录下的FLASH_RECOVERY_AREA⽬录全部覆盖到新安装的oracle对应⽬录下
5. SQL>startup 再次启动服务
根据看过博客操作的朋友反馈,多实例时有疑问,按照如下地址操作解决了问题有什么问题加qq654382144,⼤家⼀起讨论学习
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论