Documente Academic
Documente Profesional
Documente Cultură
the database.
set ORACLE_SID=ime
//NA LINUXU
export ORACLE_SID
You must be a member of the OSDBA operating system group to connect with
the SYSDBA privilege or the OSBACKUPDBA operating system group to connect with
the SYSBACKUP privilege.
On UNIX and Linux, the OSDBA group is typically named dba, and the OSBACKUPDBA group is
typically named backupdba.
If neither AS SYSBACKUP nor AS SYSDBA is specified in the connection string, then the default
used is AS SYSDBA.
Objasnjenje:
To connect with operating system authentication, ensure that you are logged in
to the database host as a user who is in the OSBACKUPDBA group (typically
the backupdba group on UNIX and Linux systems), and enter the following
command:
rman target /
When you do not explicitly specify SYSDBA or SYSBACKUP, you are connected
to the target database with the SYSDBA privilege.
Start RMAN
RMAN executable is automatically installed with the database and is typically located in the
same directory as the other database executables. For example, the RMAN client on Linux is
located in $ORACLE_HOME/bin
Start the RMAN executable at the operating system command line without specifying any
connection options, as in the following example:
% rman
tart the RMAN executable at the operating system command line, as in the following
examples:
% rman TARGET /
% rman TARGET sbu@prod NOCATALOG
When including a system privilege, the enclosing quotation marks (single or double) are
required.
Example 4-9 Connecting with Password File Authentication
RMAN> connect target "sbu@prod AS SYSBACKUP"
The NOCATALOG Option indicates that a recovery catalog is not used in the session.
% rman TARGET / NOCATALOG
This example illustrates a connection to a target database that uses a net service name and
password file authentication. RMAN prompts for the password.
% rman TARGET sbu@prod NOCATALOG
This example illustrates a connection that uses Oracle Net authentication for the target and
recovery catalog databases. In both cases RMAN prompts for a password.
% rman TARGET sbu@prod CATALOG rco@catdb
When creating image copies, you can also name the output copies with
the DB_FILE_NAME_CONVERT parameter of theBACKUP command. This parameter works
identically to the DB_FILE_NAME_CONVERT initialization parameter. Pairs of file name prefixes
are provided to change the names of the output files. If a file is not converted by any of the
pairs, then RMAN uses the FORMAT specification: if no FORMAT is specified, then RMAN uses
the default format %U.
Forum :
down voteaccept ed
You do not need to take a backup at your base time. Just enable flashback database, create a guaranteed
restore point, run your tests and flashback to the previously created restore point.
The steps for this would be:
1. Startup the instance in mount mode.
startup force mount;
2. Create the restore point.
create restore point before_test guarantee flashback database;
3. Open the database.
alter database open;
4. Run your tests.
5. Shutdown and mount the instance.
shutdown immediate; startup mount;
6. Flashback to the restore point.
flashback database to restore point before_test;
7. Open the database.
alter database open;