You are on page 1of 3

[oracle@localhost ~]$ export ORACLE_SID=orcl

[oracle@localhost ~]$ sqlplus


SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 16 09:03:44 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: /as sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> create user san
2 identified by san
3 default tablespace users
4 quota unlimited on users
5 profile default
6 temporary tablespace temp;
User created.
SQL>
SQL> grant connect,resource,recovery_catalog_owner to san;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
[oracle@localhost ~]$ export ORACLE_SID=orcl
[oracle@localhost ~]$
[oracle@localhost ~]$ rman catalog san/san@orcl
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Mar 16 09:05:12 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to recovery catalog database
RMAN>
RMAN> create catalog;
recovery catalog created
RMAN>
RMAN> connect target sys/sys@vivek
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target data
base not found in recovery catalog
RMAN> exit
Recovery Manager complete.
[oracle@localhost ~]$
[oracle@localhost ~]$ rman target sys/sys@vivek catalog san/san@orcl
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Mar 16 09:06:23 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: VIVEK (DBID=2168980138)
connected to recovery catalog database
RMAN>
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
RMAN>
RMAN> report schema;
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 490 SYSTEM YES /oracle/app/oradata/vivek/system01.db
f
2 35 UNDOTBS1 YES /oracle/app/oradata/vivek/undotbs01.d
bf
3 250 SYSAUX NO /oracle/app/oradata/vivek/sysaux01.db
f
4 5 USERS NO /oracle/app/oradata/vivek/users01.dbf
5 100 EXAMPLE NO /oracle/app/oradata/vivek/example01.d
bf
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 24 TEMP 32767 /oracle/app/oradata/vivek/temp01.
dbf
RMAN> backup database;
Starting backup at 16-MAR-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=148 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/16/2011 09:07:
01
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 16-MAR-11
channel ORA_DISK_1: finished piece 1 at 16-MAR-11
piece handle=/oracle/app/flash_recovery_area/VIVEK/backupset/2011_03_16/o1_mf_nc
snf_TAG20110316T090701_6r0d2yr7_.bkp tag=TAG20110316T090701 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/16/2011 09:07:
01
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN>