Oracle® Secure Backup Reference Release 10.1 Part Number B14236-03 |
|
|
View PDF |
Purpose
Use the chssel
command to change an Oracle database backup storage selector that you previously created with the mkssel command.
See Also:
"Database Backup Storage Selector Commands" for related commandsPrerequisites
You must have the modify administrative domain's configuration right to run the chssel
command.
Syntax
chssel::=
chss•el [ --dbname/-d { * | dbname[,dbname]... } ] [ --adddbname/-D { * | dbname[,dbname]... } ] [ --rmdbname/-E { dbname[,dbname]... } ] [ --dbid/-i { * | dbid[,dbid]... } ] [ --adddbid/-I { * | dbid[,dbid]... } ] [ --rmdbid/-J { * | dbid[,dbid]... } ] [ --host/-h { * | hostname[,hostname]... } ] [ --addhost/-H { * | hostname[,hostname]... } ] [ --rmhost/-K { * | hostname[,hostname]... } ] [ --content/-c { * | content[,content]... } ] [ --addcontent/-C { * | content[,content]... } ] [ --rmcontent/-F { * | content[,content]... } ] [ --restrict/-r restriction[,restriction]... ] [ --addrestrict/-R restriction[,restriction]... ] [ --rmrestrict/-S restriction[,restriction]... ] [ --copynum/-n { * | 1 | 2 | 3 | 4 } ] [ --family/-f media-family ] [ --waittime/-w duration ] sselname ...
Semantics
Replaces the current database names for the storage selector with the specified dbname values.
Adds the specified dbname values to the databases currently associated with the storage selector.
Removes the specified dbname values from the databases currently associated with the storage selector.
Replaces the current database IDs for the storage selector with the specified dbid values.
Adds the specified dbid values to the database IDs currently associated with the storage selector.
Removes the specified database IDs from the storage selector.
Replaces the current hosts for the storage selector with the specified hostname values.
Adds the specified hostname values to the hosts currently associated with the storage selector.
Removes the specified hostname values from the hosts currently associated with the storage selector.
Replaces the current content types for the storage selector with the specified content types. Refer to "content" for a description of the content placeholder.
Adds the specified content types to the content types currently associated with the storage selector.
Removes the specified content types from the content types currently associated with the storage selector.
Replaces the current device restrictions in the storage selector with the specified restriction values. Refer to "restriction" for a description of the restriction placeholder.
Adds the specified restriction values to the storage selector.
Removes the specified restriction values from the storage selector.
Specifies the copy number to which this storage selector applies. The copy number must be an integer in the range 1 to 4. An asterisk (*) specifies that the storage selector applies to any copy number.
Replaces the current media family for the storage selector with the specified family. You create media families with the mkmf command.
Replaces the current resource availability time for the storage selector with the specified duration. Refer to "duration" for a description of the duration placeholder.
Specifies one or more names of storage selectors to modify.
Example
Example 2-26 creates a backup storage selector named ssel_full
that specifies that the entire database should be backed up. The example then changes the storage selector to include archived redo logs.
Example 2-26 Adding Content Types to a Database Backup Storage Selector
ob> mkssel --dbid 1557615826 --host brhost2 --content full --family f1 ssel_full ob> lsssel --long ssel_full: Content: full Databases: [all] Database ID: 1557615826 Host: brhost2 Restrictions: [none] Copy number: [any] Media family: f1 Resource wait time: 1 hour UUID: b5774d9e-92d2-1027-bc96-000cf1d9be50 ob> chssel --addcontent archivelog ssel_full ob> lsssel --long ssel_full: Contents: archivelog, full Databases: [all] Database ID: 1557615826 Host: brhost2 Restrictions: [none] Copy number: [any] Media family: f1 Resource wait time: 1 hour UUID: b5774d9e-92d2-1027-bc96-000cf1d9be50