Attributes and classes are also referred to as schema objects or metadata. Attributes are defined separately from classes.
Each attribute is defined only once and can be used in multiple classes. For example, the Description attribute is used in many classes, but it is defined once in the schema, which helps ensure consistency.
Classes, also referred to as object classes, describe the possible directory objects that can be created. Each class is a collection of attributes. When you create an object, the attributes store the information that describes the object. The User class, for example, is composed of many attributes, including Network Address, Home Directory, and so on.
Every object in AD DS is an instance of an object class.
Duplicating a Database. This chapter describes how to use the DUPLICATE command to create a duplicate database. This chapter contains these topics: Overview of RMAN Database Duplication. This section explains the basic concepts and tasks involved in database duplication.
Purpose of Database Duplication. The goal of database duplication is the creation of a duplicate database, which is a separate database that contains all or a subset of the data in the source database. A duplicate database is useful for a variety of purposes, most of which involve testing.
You can perform the following tasks in a duplicate database: Test backup and recovery procedures. Test an upgrade to a new release of Oracle Database. Test the effect of applications on database performance. Generate reports. Export data such as a table that was inadvertently dropped from the production database, and then import it back into the production database. For example, you can duplicate the production database on host.
If you copy a database by means of operating system utilities rather than with DUPLICATE, then the DBID of the copied database remains the same as the original database. To register the copy database in the same recovery catalog with the original, you must change the DBID with the DBNEWID utility (refer to Oracle Database Utilities). Cara Memperbaiki Windows 7 Yang Rusak Tanpa Install Ulang Pc. In contrast, the DUPLICATE command automatically assigns the copied database a different DBID so that it can be registered in the same recovery catalog as the database from which it was copied. A duplicate database serves a different purpose from a physical standby database, although both are created with the DUPLICATE command.
A standby database is a copy of the primary database that you update continually with archived logs from the primary database. If the primary database is inaccessible, then you can perform failover to the standby database and make it the new primary database. A duplicate database, on the other hand, cannot be used in this way: it is not intended for failover scenarios and does not support the various standby recovery and failover options. Basic Concepts of Database Duplication.
You create a duplicate database by using the RMAN DUPLICATE command. The duplicate database is the copied database, whereas the source database is the database that you are copying. The duplicate database has a different DBID from the source database and functions entirely independently.
The source host is the computer that hosts the source database, whereas the destination host is the computer that hosts the duplicate database. The source host and destination host can be the same or different.
The source database instance is the Oracle instance associated with the source database. The instance associated with the duplicate database is called the auxiliary instance. A duplicate database can include the same contents as the source database or contain only a subset of the tablespaces in the source database. For example, you can use the TABLESPACE option to duplicate only specified tablespaces, or the SKIP READONLY option to exclude read- only tablespaces from the duplicate database. You can use either of the following techniques: active database duplication or backup- based duplication.
Active database duplication copies the live source database over the network to the duplicate database instance, whereas backup- based duplication uses pre- existing RMAN backups and copies. The principal work of the duplication is performed by an auxiliary channel. This channel corresponds to a server session on the auxiliary instance on the destination host. As part of the duplicating operation, RMAN automates the following steps: Creates a control file for the duplicate database. Restarts the auxiliary instance and mounts the duplicate control file.
Creates the duplicate datafiles and recovers them with incremental backups and archived redo logs. RMAN must perform incomplete recovery because the online redo log files in the source database are not backed up and cannot be applied to the duplicate database. The farthest that RMAN can go in recovery of the duplicate database is the most recent redo log archived by the source database.
Opens the duplicate database with the RESETLOGS option. Basic Steps of Database Duplication. Before duplicating a database you must meet a number of prerequisites. For example, the source and duplicate databases must be on the same platform. Review the . If you use active database duplication, then skip this step. This task is described in . If you are duplicating to a different host that uses the same directory structure as the source host, and if you want to name the duplicate files the same as the source database files, then skip to the next step.
This task is described in . If necessary configure channels for use by the DUPLICATE command.
This task is described in . You must ensure that the auxiliary channels can access all datafile backups and archived redo logs required to restore and recover the duplicate database. Otherwise, the duplicate operation fails. The database backup need not have been generated with BACKUP DATABASE. You can use a mix of full and incremental backups of individual datafiles. For example, suppose you have taken a full backup of datafiles 1, 2, and 3. Also, you have taken a level 0 and level 1 backup of datafiles 4, 5, 6.
In this case, DUPLICATE can restore files 1, 2, and 3 from the full backup and files 4, 5, and 6 from the level 0 backup. RMAN can apply the incremental level 1 incremental backup to 4, 5, and 6 and apply archived redo logs to all six datafiles. When using backup- based duplication, decide how to make database backups available to the auxiliary instance. Also, archived redo log files required to recover the duplicate database to the desired point in time must be accessible at the same path by the host where the duplicate database is to be created. The logs can be available either as backups (for instance, on a media manager) or as image copies (or the actual archived redo log files).
Making SBT Backups Accessible to the Duplicate Instance. When using SBT backups, make the tapes with the backups accessible to the destination host. If media management software is installed on the destination host, then you can physically move the tape to a drive attached to the remote host or use a network- accessible tape server.
Depending on the media manager, you typically must inform the remote media management software about the existence of the tapes. Making Disk Backups Accessible to the Duplicate Instance.
When using disk backups, the simplest scenario is when the file system of the source host and destination hosts are identical. For example, assume that the backups of the source database are stored in /dsk. In this case, you can make disk backups accessible to the destination host in either of the following ways: Manually transfer the backups and copies from the source host to the destination host to an identical path. For example, if the backups are in /dsk. FTP them to /dsk.
Use NFS or shared disks and make sure that the same path is accessible in the destination host. For example, use NFS to mount /dsk. A more complicated scenario occurs when you cannot use the same directory name on the destination host as you use on the source host.
As explained in the following sections, the technique for making backups accessible in this scenario depends on whether you use shared disk. Making Disk Backups Accessible Without Using Shared Disk.
When NFS or shared disk is not an option, then the path that stores the backups must exist on both the source and destination hosts. Assume that you maintain two hosts, srchost and dsthost. The database on srchost is srcdb. The RMAN backups of srcdb reside in /dsk. The directory /dsk. You must update the controlfile on the duplicate site with the new location of the dumpfiles.