问题1:我想学习使用Rman的方法备份和恢复数据库,从网上和书上看到,得知需要该数据库的Log_mode
为archivelog模式,而我的模式如下:
SQL> select dbid,name,log_mode,current_scn from v$database;
DBID NAME LOG_MODE CURRENT_SCN
---------- --------- ------------ -----------
3574435446 EMS NOARCHIVELOG 12605597
我该如何将LOG_MODE变为archivelog?
问题2:若我有两个数据库案例一个为ems,一个是domo
目前我正在使用的是ems,想变成domo,是不是需要修改如下参数,操作步骤如下:
1)regedit,将“数据库名”设为默认服务(共有二个服务):HKEY_LOCAL_MACHINE|SOFTWARE|
ORACLE|HOME0下的ORACLE_SID项的值改为“数据库名”,将ems修改为domo
2)修改tnsnames.ora文件,例子如下:
DEMO =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.79)(PORT =
1521))
)
(CONNECT_DATA =
(SERVICE_NAME = demo)
)
(SERVER=DEDICATED)
)
我想问的是这样就完了?还需不需要修改listener.ora文件如下
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 = EMS)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
(SID_NAME = EMS)
)
将EMS修改为domo
为archivelog模式,而我的模式如下:
SQL> select dbid,name,log_mode,current_scn from v$database;
DBID NAME LOG_MODE CURRENT_SCN
---------- --------- ------------ -----------
3574435446 EMS NOARCHIVELOG 12605597
我该如何将LOG_MODE变为archivelog?
问题2:若我有两个数据库案例一个为ems,一个是domo
目前我正在使用的是ems,想变成domo,是不是需要修改如下参数,操作步骤如下:
1)regedit,将“数据库名”设为默认服务(共有二个服务):HKEY_LOCAL_MACHINE|SOFTWARE|
ORACLE|HOME0下的ORACLE_SID项的值改为“数据库名”,将ems修改为domo
2)修改tnsnames.ora文件,例子如下:
DEMO =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.79)(PORT =
1521))
)
(CONNECT_DATA =
(SERVICE_NAME = demo)
)
(SERVER=DEDICATED)
)
我想问的是这样就完了?还需不需要修改listener.ora文件如下
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 = EMS)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
(SID_NAME = EMS)
)
将EMS修改为domo
待解决。。。 (解决办法如下:)
问题1:
1.shutdown immediate;
2.startup mount;
3.alter database archivelog;
5.alter system set log_archive_start=true scope=spfile;
6.alter system set log_archive_dest='d:\backup' scope=spfile;
7.shutdown immediate;
8.startup;
9.select dbid,name,log_mode,current_scn from v$database;
问题2:
我想问的是这样就完了?还需不需要修改listener.ora文件如下
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 = EMS)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
(SID_NAME = EMS)
)
将EMS修改为domo
在注册表中加上demo实例即可
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 = EMS)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
(SID_NAME = EMS)
(GLOBAL_DBNAME = demo)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
(SID_NAME = demo)
)