Databases Reference
In-Depth Information
The previous
run
block backs up the database using the media management library specified by the
sbt_library
parameter.
Managing Authorized OSB Accounts
Problem
You want to create and manage an operating system user account to perform backup and recovery tasks with OSB.
Solution
You can create the special OSB user and perform the necessary preauthorization during the OSB installation.
In this Solution, we'll show you how to handle user management after tse installation is complete by using
obtool
,
the OSB command-line interface. Execute the
obtool
command
mkuser
to create the OSB user, as shown in the
following example:
ob> mkuser --class oracle --preauth prod1:+rman obuser
The previous command creates the account named
obuser
. Note the following about the
mkuser
command that
creates the new OSB user:
•
obuser
is the name of the new OSB user.
•
class
denotes that the new user
obuser
is assigned to the
oracle
class.
preauth
option
+rman
preauthorizes sbt backups through RMAN. The
prod1
here stands
for the host of the operating system user who has been granted preauthorized access to OSB.
•
The
You've now successfully configured an RMAN preauthorization, wherein you authorized an operating system
user to make RMAN tape backups using OSB.
In addition to the
mkuser
command,
obtool
provides several other commands that help you manage OSB
accounts. The following examples show how to employ the most useful of these commands.
Listing Users
Use the
lsuser
command to list the names and attributes of one or more users. The simple
lsuser
command
provides the names of the users:
ob> lsuser
Use the
lsuser
command with the
--long
option to get a user's attributes, as shown here:
ob> lsuser --long salapati
Changing User Attributes
Use the
chuser
command to change an OSB user's attributes, as shown in the following example:
ob> chuser --password sammyy1 --email
samalapati@casham.com