为什么我还原数据库,数据库没有被还原?
操作如下,请大佬们帮忙解答。
[oracle@dg1 ~]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Mon Dec 23 15:08:56 2019
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1554676977)
RMAN> shutdown immediate
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
RMAN> startup mount;
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 1795159104 bytes
Fixed Size 8897600 bytes
Variable Size 503316480 bytes
Database Buffers 1275068416 bytes
Redo Buffers 7876608 bytes
RMAN> restore database;
Starting restore at 23-DEC-19
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=11 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /oracleDB/app/oracle/oradata/ORCL/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to /oracleDB/app/oracle/oradata/ORCL/SNSYSINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00003 to /oracleDB/app/oracle/oradata/ORCL/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00004 to /oracleDB/app/oracle/oradata/ORCL/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00005 to /oracleDB/app/oracle/oradata/ORCL/SNSYSDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00007 to /oracleDB/app/oracle/oradata/ORCL/users01.dbf
channel ORA_DISK_1: restoring datafile 00008 to /oracleDB/app/oracle/oradata/ORCL/SNOPDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00009 to /oracleDB/app/oracle/oradata/ORCL/SNOPINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00010 to /oracleDB/app/oracle/oradata/ORCL/SNMQDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00011 to /oracleDB/app/oracle/oradata/ORCL/SNMQINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00012 to /oracleDB/app/oracle/oradata/ORCL/SNMONITORDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00013 to /oracleDB/app/oracle/oradata/ORCL/SNMONITORINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00014 to /oracleDB/app/oracle/oradata/ORCL/SNHRDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00015 to /oracleDB/app/oracle/oradata/ORCL/SNHRINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00016 to /oracleDB/app/oracle/oradata/ORCL/SNBUDGE_TBS.dbf
channel ORA_DISK_1: restoring datafile 00017 to /oracleDB/app/oracle/oradata/ORCL/OPTDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00018 to /oracleDB/app/oracle/oradata/ORCL/RATIFY_TBS.dbf
channel ORA_DISK_1: restoring datafile 00019 to /oracleDB/app/oracle/oradata/ORCL/COMM_TBS.dbf
channel ORA_DISK_1: restoring datafile 00020 to /oracleDB/app/oracle/oradata/ORCL/MSG_TBS.dbf
channel ORA_DISK_1: restoring datafile 00021 to /oracleDB/app/oracle/oradata/ORCL/PO_TBS.dbf
channel ORA_DISK_1: restoring datafile 00022 to /oracleDB/app/oracle/oradata/ORCL/FUND_TBS.dbf
channel ORA_DISK_1: restoring datafile 00023 to /oracleDB/app/oracle/oradata/ORCL/OFIN_TBS.dbf
channel ORA_DISK_1: restoring datafile 00024 to /oracleDB/app/oracle/oradata/ORCL/TAX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00025 to /oracleDB/app/oracle/oradata/ORCL/CARGO_TBS.dbf
channel ORA_DISK_1: restoring datafile 00026 to /oracleDB/app/oracle/oradata/ORCL/INV_TBS.dbf
channel ORA_DISK_1: restoring datafile 00027 to /oracleDB/app/oracle/oradata/ORCL/CARGO_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00028 to /oracleDB/app/oracle/oradata/ORCL/PO_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00029 to /oracleDB/app/oracle/oradata/ORCL/FUND_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00030 to /oracleDB/app/oracle/oradata/ORCL/COST_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00031 to /oracleDB/app/oracle/oradata/ORCL/STOCK_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00032 to /oracleDB/app/oracle/oradata/ORCL/FIN_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00033 to /oracleDB/app/oracle/oradata/ORCL/FIN_TBS.dbf
channel ORA_DISK_1: restoring datafile 00034 to /oracleDB/app/oracle/oradata/ORCL/CFIN_TBS.dbf
channel ORA_DISK_1: restoring datafile 00035 to /oracleDB/app/oracle/oradata/ORCL/CFIN_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00036 to /oracleDB/app/oracle/oradata/ORCL/COST_TBS.dbf
channel ORA_DISK_1: restoring datafile 00037 to /oracleDB/app/oracle/oradata/ORCL/INV_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00038 to /oracleDB/app/oracle/oradata/ORCL/STOCK_TBS.dbf
channel ORA_DISK_1: restoring datafile 00039 to /oracleDB/app/oracle/oradata/ORCL/MSG_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00040 to /oracleDB/app/oracle/oradata/ORCL/SYSDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00041 to /oracleDB/app/oracle/oradata/ORCL/FINDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00042 to /oracleDB/app/oracle/oradata/ORCL/OPTINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00043 to /oracleDB/app/oracle/oradata/ORCL/EDI_TBS.dbf
channel ORA_DISK_1: restoring datafile 00044 to /oracleDB/app/oracle/oradata/ORCL/OFIN_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00045 to /oracleDB/app/oracle/oradata/ORCL/SYSINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00046 to /oracleDB/app/oracle/oradata/ORCL/FININDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00047 to /oracleDB/app/oracle/oradata/ORCL/HRDATA_TBS.dbf
channel ORA_DISK_1: restoring datafile 00048 to /oracleDB/app/oracle/oradata/ORCL/HRINDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00049 to /oracleDB/app/oracle/oradata/ORCL/AVICERP_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00050 to /oracleDB/app/oracle/oradata/ORCL/AVICERP_TBS.dbf
channel ORA_DISK_1: restoring datafile 00051 to /oracleDB/app/oracle/oradata/ORCL/AVICWMS_IDX_TBS.dbf
channel ORA_DISK_1: restoring datafile 00052 to /oracleDB/app/oracle/oradata/ORCL/AVICWMS_TBS.dbf
channel ORA_DISK_1: restoring datafile 00053 to /oracleDB/app/oracle/oradata/ORCL/AVICIDC_TBS.dbf
channel ORA_DISK_1: restoring datafile 00054 to /oracleDB/app/oracle/oradata/ORCL/AVICIDC_IDX_TBS.dbf
channel ORA_DISK_1: reading from backup piece /oracleDB/app/oracle/fast_recovery_area/ORCL_P/backupset/2019_12_23/o1_mf_nnndf_TAG20191223T092841_h0062bm7_.bkp
channel ORA_DISK_1: piece handle=/oracleDB/app/oracle/fast_recovery_area/ORCL_P/backupset/2019_12_23/o1_mf_nnndf_TAG20191223T092841_h0062bm7_.bkp tag=TAG20191223T092841
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:26
Finished restore at 23-DEC-19
RMAN> recover database;
Starting recover at 23-DEC-19
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:03
Finished recover at 23-DEC-19
RMAN> alter database open;
Statement processed
RMAN> exit
Recovery Manager complete.
[oracle@dg1 ~]$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 23-DEC-2019 15:13:52
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dg1)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 19-DEC-2019 10:45:38
Uptime 4 days 4 hr. 28 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracleDB/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora
Listener Log File /oracleDB/app/oracle/diag/tnslsnr/dg1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=dg1)(PORT=5500))(Security=(my_wallet_directory=/oracleDB/app/oracle/admin/orcl_p/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_p" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@dg1 ~]$