oracle 12c RAC to Single Instance的Active Database Duplicate测试

oracle 12c RAC to Single Instance的Active Database Duplicate测试

1.环境概述:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
target DB:
rac(scanip)
db_name:g_xshis
instance_name:

auxiliary DB:
Single Instance(10.10.10.10)
db_name:g_xshis
instance_name:gxshis

2.主库启用归档
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[oracle@oracle1 ~]$ env|grep ORA
ORACLE_UNQNAME=oracle1
ORACLE_SID=gxshis1
ORACLE_BASE=/oracle/app/oracle
ORACLE_HOSTNAME=oracle1.com
ORACLE_HOME=/oracle/app/oracle/product/12.1.0/dbhome_1
[oracle@oracle1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Sun Oct 9 14:22:33 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options

SQL> show parameter log_archive_dest_1

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_1                   string
log_archive_dest_10                  string
log_archive_dest_11                  string
log_archive_dest_12                  string
log_archive_dest_13                  string
log_archive_dest_14                  string
log_archive_dest_15                  string
log_archive_dest_16                  string
log_archive_dest_17                  string
log_archive_dest_18                  string
log_archive_dest_19                  string
SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     2247
Next log sequence to archive   2248
Current log sequence           2248
SQL>

3.配置网络
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
配置rac各节点tnsnames.ora

G_XSHIS =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = scanip)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = g_xshis)
    )
  )

#hyhis为辅助库监听的service_name,即GLOBAL_DBNAME
std =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = hyhis)
    )
  )

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
配置辅助库listener.ora、tnsnames.ora
[oracle@orcl admin]$ cat listener.ora
# listener.ora Network Configuration File:

/home/oracle/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = g_xshis)
      (ORACLE_HOME = /home/oracle/app/oracle/product/12.1.0/db_1)
      (SID_NAME = gxshis1)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = hyhis)
      (ORACLE_HOME = /home/oracle/app/oracle/product/12.1.0/db_1)
      (SID_NAME = gxshis)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = orcl)(PORT = 1521))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

ADR_BASE_LISTENER = /home/oracle/app/oracle

[oracle@orcl admin]$ cat tnsnames.ora


G_XSHIS =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.20)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = g_xshis)
    )
  )


std =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME =hyhis)
    )
  )
[oracle@orcl admin]$


#ORACLE_HOME /home/oracle/app/oracle/product/12.1.0/db_1
#ORACLE_BASE /home/oracle/app/oracle

4.辅助库配置参数文件
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[oracle@orcl dbs]$ cat initgxshis.ora


*.audit_file_dest='/home/oracle/app/oracle/admin/g_xshis/adump'
*.audit_trail='db'
*.compatible='12.1.0.2.0'
*.control_files='/home/oracle/app/oracle/oradata/g_xshis/control01.ctl','/home/oracle/app/oracle/fast_rec

overy_area/g_xshis/control02.ctl'
*.db_block_size=8192
*.db_name='g_xshis' #同rac库

db_file_name_convert=('+DATA','/home/oracle/app/oracle/oradata/g_xshis/')
log_file_name_convert=

('+DATA','/home/oracle/app/oracle/fast_recovery_area/g_xshis/','+FLASH','/home/oracle/app/oracle/fast_re

covery_area/g_xshis/')
[oracle@orcl dbs]$

据参数文件创建相应目录
/home/oracle/app/oracle/
mkdir -p admin/g_xshis/adump

cd /home/oracle/app/oracle/oradata/g_xshis/
mkdir -p g_xshis/datafile
mkdir -p g_xshis/tablespaces

cd /home/oracle/app/oracle/fast_recovery_area/g_xshis/
mkdir -p g_xshis/onlinelog

5.辅助库创建密码文件
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#orapwd file=/oracle/app/oracle/product/12.1.0/dbhome_1/dbs/orapwgxshis password=xxxxxx entries=5

orapwd file=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/orapwgxshis.ora password=xxxxxx entries=5

6.启动辅助库至nomount
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[oracle@orcl g_xshis]$ export ORACLE_SID=gxshis
[oracle@orcl g_xshis]$ echo $ORACLE_SID
gxshis
[oracle@orcl g_xshis]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Sun Oct 9 16:05:25 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup nomount pfile='/home/oracle/app/oracle/product/12.1.0/db_1/dbs/initgxshis.ora';
ORACLE instance started.

Total System Global Area  419430400 bytes
Fixed Size                  2925024 bytes
Variable Size             360713760 bytes
Database Buffers           50331648 bytes
Redo Buffers                5459968 bytes
SQL> show parameter name

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cell_offloadgroup_name               string
db_file_name_convert                 string      +DATA, /home/oracle/app/oracle
                                                 /oradata/g_xshis/
db_name                              string      g_xshis
db_unique_name                       string      g_xshis
global_names                         boolean     FALSE
instance_name                        string      gxshis
lock_name_space                      string
log_file_name_convert                string      +FLASH, /home/oracle/app/oracl
                                                 e/fast_recovery_area/g_xshis/
pdb_file_name_convert                string

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
processor_group_name                 string
service_names                        string      g_xshis
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
[oracle@orcl ~]$

7.主库复制
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

rman target sys/xxxxxx@g_xshis auxiliary sys/xxxxxx@std
[oracle@oracle1 admin]$ rman target sys/xxxxxx@g_xshis auxiliary sys/xxxxxx@std

Recovery Manager: Release 12.1.0.2.0 - Production on Sun Oct 9 17:18:22 2016

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: G_XSHIS (DBID=1872785972)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are

blocking new connections

#处理方法为辅助库设置静态监听,并重启监听

#主库执行
rman target / auxiliary sys/xxxxxx@std

#辅助库执行
rman target sys/xxxxxx@g_xshis auxiliary /


++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#复制时需要注意是否使用nofilenamecheck参数,如果两个实例相关数据目录结构完全相同,则需要指定,否则会报错


#g_xshis 为db_name
#duplicate target database to g_xshis from active database nofilenamecheck;
duplicate target database to g_xshis from active database;



[oracle@oracle1 admin]$ rman target sys/orcL#2016@g_xshis auxiliary sys/orcL#2016@std

Recovery Manager: Release 12.1.0.2.0 - Production on Mon Oct 10 10:48:00 2016

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: G_XSHIS (DBID=1872785972)
connected to auxiliary database: G_XSHIS (not mounted)

RMAN> duplicate target database to g_xshis from active database;

Starting Duplicate Db at 10-OCT-16
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=129 device type=DISK
current log archived

contents of Memory Script:
{
   sql clone "create spfile from memory";
}
executing Memory Script

sql statement: create spfile from memory

contents of Memory Script:
{
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area     419430400 bytes

Fixed Size                     2925024 bytes
Variable Size                360713760 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5459968 bytes

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''G_XSHIS'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name =
 ''G_XSHIS'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   restore clone from service  'g_xshis' primary controlfile;
   alter clone database mount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''G_XSHIS'' comment= ''Modified by RMAN duplicate''

scope=spfile

sql statement: alter system set  db_unique_name =  ''G_XSHIS'' comment= ''Modified by RMAN duplicate''

scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area     419430400 bytes

Fixed Size                     2925024 bytes
Variable Size                360713760 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5459968 bytes

Starting restore at 10-OCT-16
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=2 device type=DISK

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:05
output file name=/home/oracle/app/oracle/oradata/g_xshis/control01.ctl
output file name=/home/oracle/app/oracle/fast_recovery_area/g_xshis/control02.ctl
Finished restore at 10-OCT-16

database mounted
datafile 41 not processed because file is offline

contents of Memory Script:
{
   set newname for datafile  1 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/system.258.922142465";
   set newname for datafile  2 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_acct.dbf";
   set newname for datafile  3 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/sysaux.257.922142419";
   set newname for datafile  4 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/undotbs1.260.922142521";
   set newname for datafile  5 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/undotbs2.265.922142785";
   set newname for datafile  6 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/users.259.922142519";
   set newname for datafile  7 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_bldbank.dbf";
   set newname for datafile  8 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_clinpath.dbf";
   set newname for datafile  9 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_comm.dbf";
   set newname for datafile  10 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_cpr.dbf";
   set newname for datafile  11 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_healthcare.dbf";
   set newname for datafile  12 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_hisuser.dbf";
   set newname for datafile  13 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_infect.dbf";
   set newname for datafile  14 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_inpadm.dbf";
   set newname for datafile  15 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_inpbill.dbf";
   set newname for datafile  16 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_inquire.dbf";
   set newname for datafile  17 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_insurance.dbf";
   set newname for datafile  18 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_interface.dbf";
   set newname for datafile  19 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_lab.dbf";
   set newname for datafile  20 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_medadm.dbf";
   set newname for datafile  21 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_medrec.dbf";
   set newname for datafile  22 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_mobile.dbf";
   set newname for datafile  23 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_nursing.dbf";
   set newname for datafile  24 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_ordadm.dbf";
   set newname for datafile  25 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_outpadm.dbf";
   set newname for datafile  26 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_outpbill.dbf";
   set newname for datafile  27 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_outpdoct.dbf";
   set newname for datafile  28 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_pharmacy.dbf";
   set newname for datafile  29 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_phyexam.dbf";
   set newname for datafile  30 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_report.dbf";
   set newname for datafile  31 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_surgery.dbf";
   set newname for datafile  32 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_tj.dbf";
   set newname for datafile  33 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_tjhisrpt.dbf";
   set newname for datafile  34 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_wsyy.dbf";
   set newname for datafile  35 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_exam.dbf";
   set newname for datafile  36 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_equipment.dbf";
   set newname for datafile  37 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_econstat.dbf";
   set newname for datafile  38 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_others.dbf";
   set newname for datafile  39 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_emr.dbf";
   set newname for datafile  40 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_nsm.dbf";
   restore
   from service  'g_xshis'   clone database
   skip forever tablespace  "GGSTAB"   ;
   sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 10-OCT-16
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/system.258.922142465
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00002 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_acct.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:26
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00003 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/sysaux.257.922142419
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:01:25
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00004 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/undotbs1.260.922142521
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:16
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00005 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/undotbs2.265.922142785
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:07
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00006 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/datafile/users.259.922142519
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00007 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_bldbank.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00008 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_clinpath.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:46
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00009 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_comm.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00010 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_cpr.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00011 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_healthcare.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00012 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_hisuser.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00013 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_infect.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:25
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00014 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_inpadm.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00015 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_inpbill.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:25
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00016 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_inquire.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:37
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00017 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_insurance.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00018 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_interface.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:46
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00019 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_lab.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00020 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_medadm.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00021 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_medrec.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00022 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_mobile.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00023 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_nursing.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00024 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_ordadm.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00025 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_outpadm.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00026 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_outpbill.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00027 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_outpdoct.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00028 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_pharmacy.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:25
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00029 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_phyexam.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00030 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_report.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00031 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_surgery.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00032 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_tj.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00033 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_tjhisrpt.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00034 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_wsyy.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00035 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_exam.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:46
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00036 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_equipment.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00037 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_econstat.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00038 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_others.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00039 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_emr.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00040 to

/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_nsm.dbf
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35
Finished restore at 10-OCT-16

sql statement: alter system archive log current
current log archived

contents of Memory Script:
{
   restore clone force from service  'g_xshis'
           archivelog from scn  75117040;
   switch clone datafile all;
}
executing Memory Script

Starting restore at 10-OCT-16
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=2351
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=2352
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=2353
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=2354
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=2 sequence=1691
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:04
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=2 sequence=1692
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=2 sequence=1693
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=2 sequence=1694
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service g_xshis
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=2 sequence=1695
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
Finished restore at 10-OCT-16

datafile 1 switched to datafile copy
input datafile copy RECID=41 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/system.258.922142465
datafile 2 switched to datafile copy
input datafile copy RECID=42 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_acct.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=43 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/sysaux.257.922142419
datafile 4 switched to datafile copy
input datafile copy RECID=44 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs1.260.922142521
datafile 5 switched to datafile copy
input datafile copy RECID=45 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs2.265.922142785
datafile 6 switched to datafile copy
input datafile copy RECID=46 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/users.259.922142519
datafile 7 switched to datafile copy
input datafile copy RECID=47 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_bldbank.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=48 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_clinpath.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=49 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_comm.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=50 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_cpr.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=51 STAMP=924866199 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_healthcare.dbf
datafile 12 switched to datafile copy
input datafile copy RECID=52 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_hisuser.dbf
datafile 13 switched to datafile copy
input datafile copy RECID=53 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_infect.dbf
datafile 14 switched to datafile copy
input datafile copy RECID=54 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpadm.dbf
datafile 15 switched to datafile copy
input datafile copy RECID=55 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpbill.dbf
datafile 16 switched to datafile copy
input datafile copy RECID=56 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inquire.dbf
datafile 17 switched to datafile copy
input datafile copy RECID=57 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_insurance.dbf
datafile 18 switched to datafile copy
input datafile copy RECID=58 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_interface.dbf
datafile 19 switched to datafile copy
input datafile copy RECID=59 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_lab.dbf
datafile 20 switched to datafile copy
input datafile copy RECID=60 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medadm.dbf
datafile 21 switched to datafile copy
input datafile copy RECID=61 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medrec.dbf
datafile 22 switched to datafile copy
input datafile copy RECID=62 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_mobile.dbf
datafile 23 switched to datafile copy
input datafile copy RECID=63 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nursing.dbf
datafile 24 switched to datafile copy
input datafile copy RECID=64 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_ordadm.dbf
datafile 25 switched to datafile copy
input datafile copy RECID=65 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpadm.dbf
datafile 26 switched to datafile copy
input datafile copy RECID=66 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpbill.dbf
datafile 27 switched to datafile copy
input datafile copy RECID=67 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpdoct.dbf
datafile 28 switched to datafile copy
input datafile copy RECID=68 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_pharmacy.dbf
datafile 29 switched to datafile copy
input datafile copy RECID=69 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_phyexam.dbf
datafile 30 switched to datafile copy
input datafile copy RECID=70 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_report.dbf
datafile 31 switched to datafile copy
input datafile copy RECID=71 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_surgery.dbf
datafile 32 switched to datafile copy
input datafile copy RECID=72 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tj.dbf
datafile 33 switched to datafile copy
input datafile copy RECID=73 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tjhisrpt.dbf
datafile 34 switched to datafile copy
input datafile copy RECID=74 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_wsyy.dbf
datafile 35 switched to datafile copy
input datafile copy RECID=75 STAMP=924866200 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_exam.dbf
datafile 36 switched to datafile copy
input datafile copy RECID=76 STAMP=924866201 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_equipment.dbf
datafile 37 switched to datafile copy
input datafile copy RECID=77 STAMP=924866201 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_econstat.dbf
datafile 38 switched to datafile copy
input datafile copy RECID=78 STAMP=924866201 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_others.dbf
datafile 39 switched to datafile copy
input datafile copy RECID=79 STAMP=924866201 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_emr.dbf
datafile 40 switched to datafile copy
input datafile copy RECID=80 STAMP=924866201 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nsm.dbf

contents of Memory Script:
{
   set until scn  75240939;
   recover
   clone database
   skip forever tablespace  "GGSTAB"    delete archivelog
   ;
}
executing Memory Script

executing command: SET until clause

Starting recover at 10-OCT-16
using channel ORA_AUX_DISK_1

Executing: alter database datafile 41 offline drop
starting media recovery

archived log for thread 1 with sequence 2352 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch1_2352_922142582.dbf
archived log for thread 1 with sequence 2353 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch1_2353_922142582.dbf
archived log for thread 1 with sequence 2354 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch1_2354_922142582.dbf
archived log for thread 2 with sequence 1691 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1691_922142582.dbf
archived log for thread 2 with sequence 1692 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1692_922142582.dbf
archived log for thread 2 with sequence 1693 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1693_922142582.dbf
archived log for thread 2 with sequence 1694 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1694_922142582.dbf
archived log for thread 2 with sequence 1695 is already on disk as file

/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1695_922142582.dbf
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch1_2352_922142582.dbf thread=1

sequence=2352
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1691_922142582.dbf thread=2

sequence=1691
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1692_922142582.dbf thread=2

sequence=1692
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1693_922142582.dbf thread=2

sequence=1693
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch1_2353_922142582.dbf thread=1

sequence=2353
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1694_922142582.dbf thread=2

sequence=1694
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch2_1695_922142582.dbf thread=2

sequence=1695
archived log file name=/home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch1_2354_922142582.dbf thread=1

sequence=2354
media recovery complete, elapsed time: 00:00:32
Finished recover at 10-OCT-16
Oracle instance started

Total System Global Area     419430400 bytes

Fixed Size                     2925024 bytes
Variable Size                360713760 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5459968 bytes

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''G_XSHIS'' comment=
 ''Reset to original value by RMAN'' scope=spfile";
   sql clone "alter system reset  db_unique_name scope=spfile";
}
executing Memory Script

sql statement: alter system set  db_name =  ''G_XSHIS'' comment= ''Reset to original value by RMAN''

scope=spfile

sql statement: alter system reset  db_unique_name scope=spfile
Oracle instance started

Total System Global Area     419430400 bytes

Fixed Size                     2925024 bytes
Variable Size                360713760 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5459968 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "G_XSHIS" RESETLOGS ARCHIVELOG
  MAXLOGFILES    192
  MAXLOGMEMBERS      3
  MAXDATAFILES     1024
  MAXINSTANCES    32
  MAXLOGHISTORY     2336
 LOGFILE
  GROUP   1 (

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_1.257.922142583', '+DATA' )

SIZE 50 M  REUSE,
  GROUP   2 (

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_2.258.922142583', '+DATA' )

SIZE 50 M  REUSE
 DATAFILE
  '/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/system.258.922142465'
 CHARACTER SET ZHS16GBK

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/10/2016 11:15:41
RMAN-05501: aborting duplication of target database
RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
ORA-00349: failure obtaining block size for '+DATA'
ORA-29701: unable to connect to Cluster Synchronization Service
ORA-29701: unable to connect to Cluster Synchronization Service
ORA-29701: unable to connect to Cluster Synchronization Service

RMAN>

sql statement: CREATE CONTROLFILE REUSE SET DATABASE "G_XSHIS" RESETLOGS ARCHIVELOG
  MAXLOGFILES    192
  MAXLOGMEMBERS      3
  MAXDATAFILES     1024
  MAXINSTANCES    32
  MAXLOGHISTORY     2336
 LOGFILE
  GROUP   1 (

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_1.257.922142583',

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_1.262.922142583' ) SIZE 50 M

 REUSE,
  GROUP   2 (

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_2.258.922142583',

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_2.263.922142583' ) SIZE 50 M

 REUSE
 DATAFILE
  '/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/system.258.922142465'
 CHARACTER SET ZHS16GBK

sql statement: ALTER DATABASE ADD LOGFILE
 
  INSTANCE 'i2'
  GROUP   3 (

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_3.266.922142843',

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_3.259.922142843' ) SIZE 50 M

 REUSE,
  GROUP   4 (

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_4.267.922142843',

'/home/oracle/app/oracle/fast_recovery_area/g_xshis//g_xshis/onlinelog/group_4.260.922142843' ) SIZE 50 M

 REUSE

contents of Memory Script:
{
   set newname for tempfile  1 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tempfile/temp.264.922142585";
   set newname for tempfile  2 to
 "/home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_tmp.dbf";
   switch clone tempfile all;
   catalog clone datafilecopy  

"/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_acct.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/sysaux.257.922142419",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs1.260.922142521",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs2.265.922142785",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/users.259.922142519",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_bldbank.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_clinpath.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_comm.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_cpr.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_healthcare.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_hisuser.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_infect.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpadm.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpbill.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inquire.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_insurance.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_interface.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_lab.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medadm.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medrec.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_mobile.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nursing.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_ordadm.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpadm.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpbill.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpdoct.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_pharmacy.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_phyexam.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_report.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_surgery.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tj.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tjhisrpt.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_wsyy.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_exam.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_equipment.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_econstat.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_others.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_emr.dbf",
 "/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nsm.dbf";
   switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

renamed tempfile 1 to /home/oracle/app/oracle/oradata/g_xshis//g_xshis/tempfile/temp.264.922142585 in

control file
renamed tempfile 2 to /home/oracle/app/oracle/oradata/g_xshis//g_xshis/tablespaces/tsp_tmp.dbf in control

file

cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_acct.dbf RECID=1

STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/sysaux.257.922142419

RECID=2 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs1.260.922142521

RECID=3 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs2.265.922142785

RECID=4 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/users.259.922142519

RECID=5 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_bldbank.dbf

RECID=6 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_clinpath.dbf

RECID=7 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_comm.dbf RECID=8

STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_cpr.dbf RECID=9

STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_healthcare.dbf

RECID=10 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_hisuser.dbf

RECID=11 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_infect.dbf

RECID=12 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpadm.dbf

RECID=13 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpbill.dbf

RECID=14 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inquire.dbf

RECID=15 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_insurance.dbf

RECID=16 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_interface.dbf

RECID=17 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_lab.dbf RECID=18

STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medadm.dbf

RECID=19 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medrec.dbf

RECID=20 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_mobile.dbf

RECID=21 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nursing.dbf

RECID=22 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_ordadm.dbf

RECID=23 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpadm.dbf

RECID=24 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpbill.dbf

RECID=25 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpdoct.dbf

RECID=26 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_pharmacy.dbf

RECID=27 STAMP=924886062
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_phyexam.dbf

RECID=28 STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_report.dbf

RECID=29 STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_surgery.dbf

RECID=30 STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tj.dbf RECID=31

STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tjhisrpt.dbf

RECID=32 STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_wsyy.dbf RECID=33

STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_exam.dbf RECID=34

STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_equipment.dbf

RECID=35 STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_econstat.dbf

RECID=36 STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_others.dbf

RECID=37 STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_emr.dbf RECID=38

STAMP=924886063
cataloged datafile copy
datafile copy file name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nsm.dbf RECID=39

STAMP=924886063

datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_acct.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/sysaux.257.922142419
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs1.260.922142521
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs2.265.922142785
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/users.259.922142519
datafile 7 switched to datafile copy
input datafile copy RECID=6 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_bldbank.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=7 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_clinpath.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=8 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_comm.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=9 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_cpr.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=10 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_healthcare.dbf
datafile 12 switched to datafile copy
input datafile copy RECID=11 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_hisuser.dbf
datafile 13 switched to datafile copy
input datafile copy RECID=12 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_infect.dbf
datafile 14 switched to datafile copy
input datafile copy RECID=13 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpadm.dbf
datafile 15 switched to datafile copy
input datafile copy RECID=14 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpbill.dbf
datafile 16 switched to datafile copy
input datafile copy RECID=15 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inquire.dbf
datafile 17 switched to datafile copy
input datafile copy RECID=16 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_insurance.dbf
datafile 18 switched to datafile copy
input datafile copy RECID=17 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_interface.dbf
datafile 19 switched to datafile copy
input datafile copy RECID=18 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_lab.dbf
datafile 20 switched to datafile copy
input datafile copy RECID=19 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medadm.dbf
datafile 21 switched to datafile copy
input datafile copy RECID=20 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medrec.dbf
datafile 22 switched to datafile copy
input datafile copy RECID=21 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_mobile.dbf
datafile 23 switched to datafile copy
input datafile copy RECID=22 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nursing.dbf
datafile 24 switched to datafile copy
input datafile copy RECID=23 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_ordadm.dbf
datafile 25 switched to datafile copy
input datafile copy RECID=24 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpadm.dbf
datafile 26 switched to datafile copy
input datafile copy RECID=25 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpbill.dbf
datafile 27 switched to datafile copy
input datafile copy RECID=26 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpdoct.dbf
datafile 28 switched to datafile copy
input datafile copy RECID=27 STAMP=924886062 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_pharmacy.dbf
datafile 29 switched to datafile copy
input datafile copy RECID=28 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_phyexam.dbf
datafile 30 switched to datafile copy
input datafile copy RECID=29 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_report.dbf
datafile 31 switched to datafile copy
input datafile copy RECID=30 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_surgery.dbf
datafile 32 switched to datafile copy
input datafile copy RECID=31 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tj.dbf
datafile 33 switched to datafile copy
input datafile copy RECID=32 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tjhisrpt.dbf
datafile 34 switched to datafile copy
input datafile copy RECID=33 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_wsyy.dbf
datafile 35 switched to datafile copy
input datafile copy RECID=34 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_exam.dbf
datafile 36 switched to datafile copy
input datafile copy RECID=35 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_equipment.dbf
datafile 37 switched to datafile copy
input datafile copy RECID=36 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_econstat.dbf
datafile 38 switched to datafile copy
input datafile copy RECID=37 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_others.dbf
datafile 39 switched to datafile copy
input datafile copy RECID=38 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_emr.dbf
datafile 40 switched to datafile copy
input datafile copy RECID=39 STAMP=924886063 file

name=/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nsm.dbf
Reenabling controlfile options for auxiliary database
Executing: alter database add supplemental log data
Executing: alter database add supplemental log data(PRIMARY KEY, UNIQUE, FOREIGN KEY) columns
Executing: alter database force logging

contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script

database opened
Dropping offline and skipped tablespaces
Executing: drop tablespace "GGSTAB" including contents cascade constraints
Cannot remove created server parameter file
Finished Duplicate Db at 10-OCT-16

RMAN>

8.检查
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
select name from v$datafile;
select host_name,instance_name,status from gv$instance;
show parameter name
show parameter pfile
select * from v$log;
select * from v$logfile;

[oracle@orcl ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Mon Oct 10 16:52:42 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/system.258.922142465
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_acct.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/sysaux.257.922142419
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs1.260.922142521
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/undotbs2.265.922142785
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/datafile/users.259.922142519
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_bldbank.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_clinpath.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_comm.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_cpr.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_healthcare.dbf

NAME
--------------------------------------------------------------------------------
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_hisuser.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_infect.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpadm.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inpbill.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_inquire.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_insurance.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_interface.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_lab.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medadm.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_medrec.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_mobile.dbf

NAME
--------------------------------------------------------------------------------
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nursing.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_ordadm.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpadm.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpbill.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_outpdoct.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_pharmacy.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_phyexam.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_report.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_surgery.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tj.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_tjhisrpt.dbf

NAME
--------------------------------------------------------------------------------
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_wsyy.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_exam.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_equipment.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_econstat.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_others.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_emr.dbf
/home/oracle/app/oracle/oradata/g_xshis/g_xshis/tablespaces/tsp_nsm.dbf

40 rows selected.

SQL> select host_name,instance_name,status from gv$instance;

HOST_NAME
----------------------------------------------------------------
INSTANCE_NAME    STATUS
---------------- ------------
orcl.com
gxshis           OPEN


SQL> show parameter name

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cell_offloadgroup_name               string
db_file_name_convert                 string      +DATA, /home/oracle/app/oracle
                                                 /oradata/g_xshis/
db_name                              string      G_XSHIS
db_unique_name                       string      G_XSHIS
global_names                         boolean     FALSE
instance_name                        string      gxshis
lock_name_space                      string
log_file_name_convert                string      +FLASH, /home/oracle/app/oracl
                                                 e/fast_recovery_area/g_xshis/,
                                                  +DATA, /home/oracle/app/oracl

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
                                                 e/fast_recovery_area/g_xshis/
pdb_file_name_convert                string
processor_group_name                 string
service_names                        string      G_XSHIS
SQL> show parameter pfile

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string      /home/oracle/app/oracle/produc
                                                 t/12.1.0/db_1/dbs/spfilegxshis
                                                 .ora


SQL> set line 9999
SQL> select * from v$log;

    GROUP#    THREAD#  SEQUENCE#      BYTES  BLOCKSIZE    MEMBERS ARC STATUS           FIRST_CHANGE#

FIRST_TIM NEXT_CHANGE# NEXT_TIME         CON_ID
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- -------------

--------- ------------ --------- ----------
         1          1          1   52428800        512          2 NO  CURRENT               76700000 10-

OCT-16   2.8147E+14       0
         2          1          0   52428800        512          2 YES UNUSED                       0      

                0       0
         3          2          0   52428800        512          2 YES UNUSED                       0      

                0       0
         4          2          0   52428800        512          2 YES UNUSED                       0      

                0       0

SQL> select * from v$logfile;

    GROUP# STATUS  TYPE    MEMBER     IS_     CON_ID
---------- ------- -------

---------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------- ---

----------
         2         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_2.258.922142583     NO         

  0
         2         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_2.263.922142583     NO         

  0
         1         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_1.257.922142583     NO         

  0
         1         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_1.262.922142583     NO         

  0
         3         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_3.266.922142843     NO         

  0
         3         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_3.259.922142843     NO         

  0
         4         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_4.267.922142843     NO         

  0
         4         ONLINE  

/home/oracle/app/oracle/fast_recovery_area/g_xshis/g_xshis/onlinelog/group_4.260.922142843     NO         

  0

8 rows selected.

SQL>

9.编译无效对象
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
select o.object_type,o.status,o.owner,count(1) from dba_objects o join dba_users u on o.owner =

u.username
where u.default_tablespace like 'TSP%' and o.status = 'INVALID'
group by o.object_type,o.status,o.owner
order by 1 asc;

select 'alter '||o.object_type||' '||o.owner||'.'||o.OBJECT_NAME||' compile;' from dba_objects o join

dba_users u on o.owner = u.username
where u.default_tablespace like 'TSP%' and o.status = 'INVALID';


10.其它
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
alter database rename file '+FLASH/G_XSHIS/ONLINELOG/group_1.257.922142583' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO11.log';
alter database rename file '+DATA/G_XSHIS/ONLINELOG/group_1.262.922142583' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO12.log';
alter database rename file '+FLASH/G_XSHIS/ONLINELOG/group_2.258.922142583' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO21.log';
alter database rename file '+DATA/G_XSHIS/ONLINELOG/group_2.263.922142583' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO22.log';

alter database rename file '+FLASH/G_XSHIS/ONLINELOG/group_3.259.922142843' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO31.log';
alter database rename file '+DATA/G_XSHIS/ONLINELOG/group_3.266.922142843' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO32.log';
alter database rename file '+FLASH/G_XSHIS/ONLINELOG/group_4.260.922142843' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO41.log';
alter database rename file '+DATA/G_XSHIS/ONLINELOG/group_4.267.922142843' to

'/home/oracle/app/oracle/oradata/g_xshis/REDO42.log';

alter database open resetlogs;
create pfile='/home/oracle/app/oracle/pfilegxshis.ora' from spfile;

你可能感兴趣的:(Oracle,12c,RAC,RMAN)