在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
一、冷备份 复制代码 代码如下: SQL>select name from v$datefile; SQL>select name from v$controlfile; SQL>select member from v$logfile; 2、冷备份所需备份的文件包括以下几种: 二、异机恢复 复制代码 代码如下: STARTUP NOMOUNT CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 292 LOGFILE GROUP 1 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M, GROUP 2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M, GROUP 3 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M -- STANDBY LOGFILE DATAFILE 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF', 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF', 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF', 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF', 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\BANK_DATA02.DBF' CHARACTER SET ZHS16GBK; ⑦ c:\>set ORACLE_SID=orcl ⑨用net configuration为orcl实例新建监听 B、创建实例(实例SID与源机数据库SID一致) 复制代码 代码如下: c:\>sqlplus "/as sysdba" SQL>@c:\createctl.sql; SQL>shutdown immediate; SQL>startup; SQL>alter database open resetlogs; ⑤在network\admin下的tnsnames.ora中添加如下片段 复制代码 代码如下: ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) ) ⑥用net configuration为orcl实例新建监听 |
请发表评论