开启归档: 1.设置想设置的归档的位置,我们这里归档的位置为ASM磁盘组,磁盘组的名称为DATA alter system set log_archive_dest_1='location=+DATA' scope=spfile sid='*'; 2.更改数据库为非集群模式: alter system set cluster_database=false scope=spfile sid='*'; 3.在oracle用户下将数据库关闭: srvctl stop instance -d orcl…
[oracle@rac01 ~]$ srvctl stop database -d proc -o immediate [oracle@rac01 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Sun Apr 8 20:58:16 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to an idle instance…
--复制表结构及其数据 create table table_name_new as select * from table_name_old; --只复制表结构 ; --create table table_name_new like table_name_old 实测行不通 --只复制表数据: --如果两个表结构一样 insert into table_name_new select * from table_name_old; --如果两个表结构不一样 insert into table_…