Tải bản đầy đủ (.pdf) (5 trang)

Oracle RMAN 11g Backup and Recovery- P15

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (203.95 KB, 5 trang )

652
Oracle RMAN 11g: Backup and Recovery
RMAN subclause syntax details
allocOperandList, 612–613
archivelogRecordSpecifier,
613–614
completedTimeSpec, 614
connectStringSpec, 614
datafileSpec, 614
deviceSpecifier, 615
fileNameConversionSpec, 615
forDBUniqueNameOption, 615
foreignlogRecordSpecifier, 615
formatSpec, 616
keepOption, 616
listObjList, 616
maintQualifier, 617
maintSpec, 617
obsOperandList, 617
recordSpec, 618
tempfileSpec, 618
toDestSpec, 619
untilClause, 619
RMAN syntax reference guide
command list, 562–563
command list syntax. See
command list syntax details
reserved words, 560–562
specifier and operands list, 563
robot backup daemon, OSB, 119
robotic interface, media management


server, 104
rollback segments, Flashback and,
379–380
round-robin style of writing, log
sequence numbers, 18–19
row history, 380–384
run block, 233, 475
run command, 600–601
S
S3 (Simple Storage Service), Amazon
account signup, 147
backup over Internet or from
Amazon ECS, 145–146
backups using OSB Cloud
Module, 148–152
defined, 144
overview of, 145
persistently storing as default SBT
channel, 149
RMAN backup to, 145–148
SBT API
media management and, 107–108
specifying OSB Cloud Module
each time you allocate
channel, 148–152
storing S3 as default SBT
channel, 149
tape backups, 108
SBT devices, 449
sbttest, 109–110

schedule backup daemon, OSB, 119
scheduled backups
creating RMAN script job,
333–334
customizing, 330–331
getting started, 262
NetBackup, 163–165
RMAN backup on Data
Protector, 183
RMAN backup on Data Protector-
integrated Oracle database,
184–185
Windows, 623
schema objects, 9, 210–211, 440
schtasks utility, Windows, 623
SCN (System Change Number)
database open process, 22–23
definition of, 9
incomplete recoveries and,
346–348
information stored in control
file, 15
performing Flashback Database,
396–397
recover database using, 30,
348–349
recovering to previous
incarnation with recovery
catalog, 354
scripts

adding to backup selection list,
165–166
disk-only Oracle-suggested
backups, 328–329
editing RMAN, 184
getting started, 262–263
RMAN backups vs. backups,
226–227
RMAN for NetBackup, 168–169
RMAN Script job, 331–334
RMAN scripts for UNIX,
622–623
RMAN scripts for Windows,
621–622
RMAN stored, 418–421
security
configuring database in
ARCHIVELOG mode, 81–82
NetBackup and, 170
send command, 601–602
server
mounting split mirror volume on
other, 523–524
NetBackup software
installation, 156
processes, 12, 42
RMAN duplication to remote,
475–476, 484–487
RMAN duplication to same,
474–475, 481–484

server-managed recovery (SMR), 34
SERVER=dedicated syntax, Shared
Servers option, 97
service backup daemon, OSB, 119
Session Manager, Data Protector, 176
sessions, tracing RMAN, 460–462
set backup copies parameter, backup
command, 245
set command
archivelog destination to
parameter, 350
backup options, 246–247
during backups, 96
establishing recovery target, 347
syntax details, 602–604
set dbid command
recovering control file from
autobackup, 273–274
SPFILE recovery from autobackup
using RMAN, 269–271
unregistering database from
recovery catalog, 212
set encryption on command, 96
set encryption on identified by
password command, 95
set encryption on identified by
password only command, 95
set newname command, 280, 360
set newname for clone command, 364
set newname for database command,

283–285
set time command, 282
set until restore point
command, 349
setParameter parameter syntax
diagram, duplicate command, 584
setRmanOption parameter syntax
diagram, set command, 603
Index
653
setRmanorRunOption parameter
syntax diagram, set command, 604
setRunOption parameter syntax
diagram, set command, 603
SG (SCSI Generic) driver, OSB, 122
SGA (System Global Area)
datablock backup in, 44
defining memory allocations
in, 13
definition of, 9
granules, 8
large pool in, 49
overview of, 13
RMAN memory utilization,
49–50
testing Oracle installation/
configuration, 628
shared pool, SGA, 13
Shared Servers, 37, 97
show all command, 204, 221–222

show command, 604–605
show parameter command, 72–73
shutdown abort command, 11, 23
shutdown command
offline RMAN backups, 23, 229,
231–232
overview of, 11
shut down database, 23
syntax details, 606
shutdown immediate command, 11,
23, 278
shutdown normal command, 294–295
shutdown, of database, 23
shutdown transactional command, 11
SID, automated TSPITR, 359
Simple Storage Service. See S3 (Simple
Storage Service), Amazon
since time option, backup command,
244–245
sizeSpec parameter syntax diagram
backup command, 571
duplicate command, 586
recover command, 593
skip parameter, backup command, 243
skip readonly parameter, backup
command, 244
skipSpec parameter syntax diagram
backup command, 571
convert command, 579
validate command, 612

SMON (system monitor) process, 12
SMR (server-managed recovery), 34
snapshot control file
capturing during backup, 246
configuring RMAN default
settings, 88
OEM limitations, 321
RAC and, 503
RMAN process, 54
software, controlling database, 10–11
source host credentials, database
cloning in OEM, 343–344
speed, split mirror backups and, 523
SPFILE
crosschecking backups, 401
disk-only Oracle-suggested
backups, 328
duplicating RAC database on
single-node database, 510
duplication to remote server using
disk backups, 485
duplication to same server using
disk backups, 482
getting started with your database
backup, 261
listing backups of, 434–435
recovery catalog views for, 219
RMAN automated backups of,
91–92
RMAN process from start to

finish, 55
SPFILE, restoring, 269–273
overview of, 269
recovery from autobackup using
RMAN, 269–271
recovery from complete database
loss (ARCHIVELOG),
538–539, 541
recovery from complete database
loss (NOARCHIVELOG), 535
recovery from specific backup
set, 271–272
recovery when using recovery
catalog, 272
with restore command, 280
restoring backed up SPFILE with
operational database online,
272–273
split mirror backups, 209
spool command, 606
SQL
applying to logical standby
database, 492
creating standby control file, 493
enabling tracing of RMAN
sessions, 461
performing Flashback Table from,
384–385
tuning backup and recovery, 449
sql clone command, 363

sql command
creating restore points, 238
datafile recoveries, 292
syntax details, 606–607
tablespace recoveries, 292
Standard Editions, RMAN included
with, 34–35
standard policy domain, TSM, 192
standby database. See also Data Guard
and RMAN
archive logs backups from,
499–500
backing up multinode RAC
database, 515
creating single-node, 512–515
datafile backups from, 499
Oracle sync and split and,
236–237, 526–527
overview of, 492
primary database vs., 494
taking backups from, 498–499
using Flashback Database for
reinstantiation, 500
using RMAN to create, 492–497
start with option, catalog
command, 418
startup command
derivatives of, 10–11
start database, 21–22
syntax details, 607

startup force command, 11
startup mount command
ARCHIVELOG mode full
recovery, 29
defined, 10
loss of current online redo log
group, 296
offline RMAN backups,
229–232
overview of, 22
restoring database in
NOARCHIVELOG mode, 282
startup nomount command, 10–12, 22
startup, of database, 21–22
startup read only command, 1
1
startup restrict command, 10, 23
status codes
assigning to database datafiles, 14
crosschecking backups, 400–403
654
Oracle RMAN 11g: Backup and Recovery
modifying archived redo log
backups, 409
of online redo log groups, 17–18
storage clouds, OSB, 116, 138
storage pool volumes, 202–203
subclause syntax. See RMAN
subclause syntax details
substitution variables, set newname

command, 285
sudo set up, 35
support matrix, Oracle and Data
Protector integration, 174
switch clone tempfile all
command, 364
switch command, 283–284, 607–608
switchFile parameter syntax
diagram, 608
sync and split technology
as broken mirror backups,
518–520
RAID and, 518
RMAN and, 524–526
sync and split technology, with Oracle
database
archive logs, 522–523
benefits of, 523–524, 528–529
control files, 522
datafiles, 521–522
getting from Oracle software, 527
overview of, 520–521
redo log files, 522
using standby database,
Flashback Database and
incremental apply, 527–528
using VSS for Windows, 529
synchronization
manual recovery catalog, 216
RMAN metadata and Data

Protector, 187
synchronous backup I/O, 457–458
syntax. See RMAN syntax
reference guide
SYS packages, used by RMAN, 43–44
sysdba privileges, RMAN
always connecting to database
with, 77
auxiliary database requiring, 52
making changes on OEM
Recovery Settings page
with, 324
managing restore points in
OEM, 342
target database and, 35–36
SYS.DBMS_BACKUP_RESTORE
package
auxiliary database and, 52
overview of, 43–44
RMAN packages in kernel, 44
RMAN process and, 54, 56
SYS.DBMS_RCVMAN package
auxiliary database and, 52
overview of, 43
RMAN process and, 54
System Change Number. See SCN
(System Change Number)
System Global Area. See SGA (System
Global Area)
system monitor (SMON) process, 12

system Oracle-related files, backing
up, 30
system oratab file, backing up, 30
SYSTEM tablespace, recovery from loss
of, 542
T
tables, Flashback Table, 384–387
tablespace. See also TSPITR
(tablespace point-in-time recovery)
ARCHIVELOG recovery, 29
case study, online recovery from
loss of, 543
case study, recovery from loss of
SYSTEM tablespace, 542
configuring exclusion policy,
84, 320
configuring recovery catalog
database, 209
creating recovery catalog user
account, 210
cross-platform transportable,
372–374
crosschecking backups, 401
definition of, 9
incremental backups of, 258–259
listing backups by name of, 430
making image copies of, 254
online backup of, 249–251
overview of, 15
recoveries, 291–292

recovering, 291–292
recovery catalog views for, 222
restoring using Data Protector
GUI, 185
specifically excluding during
automated backup, 88
tuning backup and recovery, 450
tablespace parameter, backup
command, 250
tablespace point-in-time recovery.
See TSPITR (tablespace point-in-time
recovery)
tags
backup command options, 238
incrementally updated backups
using, 259–260
tape backups
combined disk and, 329–330
in disk backup world,
102–103
duplication to different server
using, 478–479
duplication to same server
using, 484
impact of multiplexing on, 453
output buffers and, 48
performing, 108–109
performing restore from, 109
problems with write
operations, 455

remote server duplication
using, 486
same server duplication
using, 486
using sbttest for, 109–110
tape buffer size, 447
tape channels, RMAN
defined, 42
testing with Oracle default SBT
interface, 105–106
understanding in OEM, 331
tape I/O slaves, RMAN, 43, 49–50
tape management system, retention
policy, 95
tape-only Oracle-suggested backup,
328–329
target database
case study, using RMAN
duplication to create historical
subset of, 548–550
connecting to for RMAN
duplication, 468
creating RMAN backup account,
80–81
defined, 34
Grid Control monitoring, 311
privileges, 35–36
recovery catalog and, 50
RMAN compatibility and, 53, 79
RMAN process, connecting to, 54

status codes (continued)
Index
655
running crosscheck command
from, 401
running RMAN locally from,
37–39
running RMAN remotely to,
36–37
target-less duplication in 11g
and, 487
using RMAN to create standby
database, 496–497
where backups come from,
493–494
target instance, TSPITR, 357
target-less duplication, in 11g, 486
TCP/IP, installing and configuring
OSB, 122
TDPO (Tivoli Data Protection for
Oracle)
backing up database objects to
TSM, 193–194
configuring for Oracle, 194–198
defined, 190
deleting database backups, 204
performing RMAN backup using,
199–203
real world example, 193
troubleshooting TSM backups,

205–206
tdpoconf utility, 197
TDPO_NODE, 196, 203, 206
tempfiles, recovery catalog views
for, 222
tempfileSpec subclause, 618
templates
adding to backup selection list,
165–166
configuring RMAN backup on
Data Protector, 179–180
terminology, Oracle, 7–9
test environment setup, 625–631
getting started, 263
go cheap, 627–628
matching your production
environment, 627
Oracle configuration,
628–629
overview of, 626
RMAN configuration, 630–631
test box, 627
tiers
NetBackup, 156–157
tape channels with Oracle default
SBT interface, 105–106
TSM, 190–191
time-based recovery, 348
Tivoli Data Protection for Oracle. See
TDPO (Tivoli Data Protection for

Oracle)
Tivoli Storage Manager. See TSM
(Tivoli Storage Manager)
tnsnames.ora file
creating for remote RMAN
backups, 37
creating single-node standby
database from RAC, 514
duplicating RAC database on
single-node database, 511
duplication to remote server using
disk backups, 486
preparing network for RMAN
duplication, 479–481
running RMAN locally from target
database and, 38
UR=A parameter, 498
using RMAN to create standby
database, 497
to restore point clause, recover/restore
commands, 349
toDestSpec subclause, 619
trace files, 9, 460–462
Transaction Integrity Check,
OEM, 336
transparent mode encryption, 95
transport tablespace command,
608–609
transportOptionList parameter syntax
diagram, convert command, 579

Transp_tbs_optlist parameter syntax
diagram, transport tablespace
command, 609
troubleshooting
NetBackup, 169
RMAN recovery, 334–336
truncate table operation, 384
TSM (Tivoli Storage Manager),
189–206
Administration Center and Web
client, 194
client, 193–194
configuring TDPO for Oracle,
194–198
deleting database backups, 204
overview of, 190
performing RMAN backup using
TDPO, 199–204
real world example, 193
server system objects, 190–193
troubleshooting, 204–206
TSPITR (tablespace point-in-time
recovery)
automated, 357–359
auxiliary database and, 51–52
customizing automated, 360
manually, 360–366
media recovery for user error
with, 378
overview of, 356–357

restrictions, 366
TS_PITR_CHECK view, 357–358
TS_PITR_OBJECTS_TO_BE_DROPPED
view, 358
U
Undo Segment Integrity Check,
OEM, 336
undo segments
Flashback and, 379–380
Flashback Table, 384
generating and storing undo in,
24–25
UNDO tablespaces, 235
UNIX, RMAN scripts for, 622–623
unregister database command, 212,
215, 609
Unregister Database link, Recovery
Catalog Settings page, 327
until clause
recover copy of database
command, 260
setting in duplication, 481
until sequence parameter, 545,
548–550
until time parameter, backup
command, 240, 251, 275
untilClause subclause, RMAN, 619
unused block compression, block-level
backups, 45–46
unused online redo log group, 18

update command, 24
upgrade catalog command,
214–215, 610
UR=A parameter, tnsnames.ora
file, 498
USE_DB_RECOVERY_FILE_DEST
parameter, 323
user accounts, creating
database, 80–81
Oracle Secure Backup, 120–122
recovery catalog, 209
user class, OSB user rights, 122
656
Oracle RMAN 11g: Backup and Recovery
User Directed Recovery, OEM,
339–342
user errors. See Flashback Technology
user processes, 12
USER_RECYCLEBIN view, 390
using backup controlfile
command, 522
V
V$ views, for reporting, 441–442
V$ACTIVE_SESSION_HISTORY
view, 457
validate backupset command,
370–371
validate command
check logical option, 404
syntax details, 610–612

validating RMAN backups,
404–405
validate parameter, backup command,
243, 369
validateObject parameter syntax
diagram, validate command, 611
validateOperand parameter syntax
diagram, validate command, 612
validation, of RMAN backups,
404–405
V$ARCHIVED_LOG view, 217,
499–500
V$BACKUP_ASYNC_IO view,
457–460
V$BACKUP_CORRUPTION view,
218, 351–352
V$BACKUP_DATAFILE view, 218
V$BACKUP_FILES view, 218–219
V$BACKUP_PIECE view, 219
V$BACKUP_REDOLOG view, 219
V$BACKUP_SET view, 219
V$BACKUP_SPFILE view, 219
V$BACKUP_SYNC_IO view, 457–460
V$BLOCK_CHANGE_TRACKING
view, 256
V$COPY_CORRUPTION view,
219, 352
VCTF (block change tracking file),
255–256, 320
V$DATABASE view, 220, 372

V$DATABASE_BLOCK_CORRUPTION
view, 220, 351–352, 404
V$DATAFILE view, 220
V$DATAFILE_COPY view, 219, 220
V$DIAG_INFO view, 75
verdeleted attribute, TSM copy
groups, 197
verification, of database restorability,
366–371
VERITAS NetBackup for Oracle. See
NetBackup for Oracle
V$FLASHBACK_DATABASE_LOG
view, 395
V$FLASHBACK_DATABASE_STAT
view, 395–396
V$FLASH_RECOVERY_AREA_USAGE
view, 69
views
DRA data dictionary, 302
Flashback Database, 395–396
managing FRA, 67–69
recovery catalog, 217–222
RMAN performance tuning,
454–460
V$, for reporting, 441–442
V$IR_FAILURE view, Data Recovery
Advisor, 302
V$IR_FAILURE_SET view, Data
Recovery Advisor, 302
V$IR_MANUAL_CHECKLIST view,

Data Recovery Advisor, 302
V$IR_REPAIR view, Data Recovery
Advisor, 302
V$LOG view
log sequence number of online
redo logs, 9
recovery catalog, 221
status of online redo log group,
17–18
V$LOGFILE view, 221
V$LOG_HISTORY view, 221
V$OFFLINE_RANGE view, 221
VPC (virtual private catalog),
creating, 213
V$RECOVERY_FILE_DEST view,
68, 405
V$RMAN_BACKUP_JOB_DETAILS
view, 455
V$RMAN_CONFIGURATION
view, 221
V$RMAN_ENCRYPTION_
ALGORITHMS view, 96–97
V$RMAN_OUTPUT view, 227–228
V$SESSION view, 42, 456
V$SESSION_LONGOPS view
RMAN performance tuning, 456
RMAN process from start to
finish, 55
tracking SYS.DBMS_BACKUP_
RESTORE package, 44

viewing RMAN channel
processes, 42
viewing RMAN server
processes, 42
VSS (Volume Shadow Copy Service)
for Windows, 237
V$TABLESPACE view, 222
V$TEMPFILE view, 222
V$THREAD view, 221
V$TRANSPORTABLE_PLATFORM
view, 372–373
V$UNDOSTAT view, 379
W
Web tool, OSB, 117, 126–127
Whole Database Recovery, OEM
defined, 339
performing, 340–341
recover to current or previous
point in time, 339
recovery from previously restored
datafiles, 340
recovery scope less than entire
database, 342
restore all datafiles, 339–340
Windows OS
RMAN scripts for, 621–622
scheduled backups on, 623
Volume Shadow Copy Service
for, 237
write operations, performance issues,

455–456

×