Oracle Recovery catalog
******************
recovery catalog
******************
SQL> create tablespace rc_data datafile '/oracle/app/oracle/oradata/ocm1/rc_data01.dbf' size 100M autoextend off;
Tablespace created.
********************
rcowner
********************
SQL> create user rcowner identified by oracle temporary tablespace temp default tablespace rc_data quota unlimited on rc_data;
User created.
SQL> grant recovery_catalog_owner to rcowner;
Grant succeeded.
********************
catalog, rcowner ,
********************
[ocm1:oracle]:/home/oracle>rman catalog rcowner/oracle
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Jun 21 18:06:03 2019
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to recovery catalog database
RMAN>
RMAN> create catalog;
recovery catalog created
user_tables
TABLE_NAME
------------------------------
DB
NODE
CONF
DBINC
CKP
TS
TSATT
DF
SITE_DFATT
TF
SITE_TFATT
OFFR
RR
RT
ORL
RLH
AL
BS
BP
BCF
CCF
XCF
BSF
BDF
CDF
XDF
BRL
BCB
CCB
SCR
SCRL
CONFIG
XAL
RSR
FB
GRSP
NRSP
VPC_USERS
VPC_DATABASES
CFS
BCR
ROUT
RCVER
TEMPRES
Recovery Manager complete.
[ocm1:oracle]:/home/oracle>sqlplus rcowner/oracle
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 21 18:07:04 2019
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select object_type,count(*) from user_objects group by object_type;
OBJECT_TYPE COUNT(*)
------------------- ----------
SEQUENCE 1
PACKAGE 2
PACKAGE BODY 2
TYPE BODY 1
TRIGGER 3
TABLE 44
INDEX 96
FUNCTION 2
VIEW 98
TYPE 3
10 rows selected.
2. target 엔 드 에 등록
[ocm:oracle]:/home/oracle>rman target sys/oracle catalog rcowner/oracle@192.168.8.101:1521/ocm1
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Jun 21 18:14:59 2019
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: OCM (DBID=2393802673)
connected to recovery catalog database
RMAN> register database; -- target recovery catalog
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
RMAN>
RMAN>
RMAN> resync catalog; --
starting full resync of recovery catalog
full resync complete
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
169 B F A DISK 20-JUN-19 1 1 NO TAG20190620T152155
170 B F A DISK 20-JUN-19 1 1 NO TAG20190620T152155
171 B F A DISK 20-JUN-19 1 1 YES TAG20190620T152502
172 B F A DISK 20-JUN-19 1 1 YES TAG20190620T152502
RMAN> report schema;
Report of database schema for database with db_unique_name OCM
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 700 SYSTEM YES /oracle/app/oracle/oradata/ocm/system01.dbf
2 600 SYSAUX NO /oracle/app/oracle/oradata/ocm/sysaux01.dbf
3 760 UNDOTBS1 YES /oracle/app/oracle/oradata/ocm/undotbs01.dbf
4 5 USERS NO /rman/user01.dbf
5 100 FDA NO /oracle/app/oracle/oradata/ocm/fda.dbf
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 68 TEMP 32767 /oracle/app/oracle/oradata/ocm/temp01.dbf
2 、 vpc 1 을 만 드 는 방법
SQL> cREATE USER vpc1 IDENTIFIED BY oracle DEFAULT TABLESPACE rc_data QUOTA UNLIMITED ON rc_data;
User created.
SQL> GRANT recovery_catalog_owner TO vpc1;
Grant succeeded.
SQL> CONNECT CATALOG catowner
[ocm1:oracle]:/home/oracle>rman rcowner/oracle
Argument Value Description
-----------------------------------------------------------------------------
target quoted-string connect-string for target database
catalog quoted-string connect-string for recovery catalog
nocatalog none if specified, then no recovery catalog
cmdfile quoted-string name of input command file
log quoted-string name of output message log file
trace quoted-string name of output debugging message log file
append none if specified, log is opened in append mode
debug optional-args activate debugging
msgno none show RMAN-nnnn prefix for all messages
send quoted-string send a command to the media manager
pipe string building block for pipe names
timeout integer number of seconds to wait for pipe input
checksyntax none check the command file for syntax errors
-----------------------------------------------------------------------------
Both single and double quotes (' or ") are accepted for a quoted-string.
Quotes are not required unless the string contains embedded white-space.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00552: syntax error in command line arguments
RMAN-01009: syntax error: found "identifier": expecting one of: "append, auxiliary, catalog, checksyntax, cmdfile, log, msgno, nocatalog, pipe, script, send, target, timeout, using, @, ;"
RMAN-01008: the bad identifier was: rcowner
RMAN-01007: at line 2 column 1 file: command line arguments
[ocm1:oracle]:/home/oracle>rman catalog rcowner/oracle
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Jun 21 18:55:24 2019
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to recovery catalog database
RMAN> GRANT CATALOG FOR DATABASE ocm to vpc1;
Grant succeeded.
RMAN> conn catalog vpc1/oracle;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "advise, allocate, alter, backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open, print, quit, recover, register, release, repair, replace, report, reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01008: the bad identifier was: conn
RMAN-01007: at line 1 column 1 file: standard input
RMAN> exit
Recovery Manager complete.
[ocm1:oracle]:/home/oracle>rman catalog vpc1/oracle
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Jun 21 18:56:29 2019
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to recovery catalog database
RMAN> CREATE VIRTUAL CATALOG;
found eligible base catalog owned by RCOWNER
created virtual catalog against base catalog owned by RCOWNER
RMAN> exit
Recovery Manager complete.
[ocm1:oracle]:/home/oracle>sqlplus vpc1/oracle
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 21 18:57:30 2019
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> begin
2 catowner.DBMS_RCVCAT.CREATE_VIRTUAL_CATALOG;
3 end;
4 /
catowner.DBMS_RCVCAT.CREATE_VIRTUAL_CATALOG;
*
ERROR at line 2:
ORA-06550: line 2, column 1:
PLS-00201: identifier 'CATOWNER.DBMS_RCVCAT' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
SQL> begin
2 rcowner.DBMS_RCVCAT.CREATE_VIRTUAL_CATALOG;
3 end;
4 /
PL/SQL procedure successfully completed.
다음으로 전송:https://www.cnblogs.com/dayu-liu/p/11066189.html
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.