ORACLE RMAN QUESTION

Hi,
We take daily incremental backup and weekly full backup.
Our retention policy is 15 days.
Now I want to store my end of month backup seperately so that I can use it later.
How can I achive this with rman.
Thanks in advance.

the CHANGE KEEP just say you want to keep a backup piece. It does not mean you can do anything with that piece!!!
You must make sure you keep enough backups and archivelogs to restore and recover your database successfully! So in incremental, you need to mark the full for KEEP + the incremental + the latest archivelog...
Be sure you test it yourself, backup is serious, do not rely on my procedure without testing it regularly! Thanks

Similar Messages

  • Oracle RMAN and SAP Databases

    Hi all,
    Am mainly an Oracle DBA and had just recently return to supporting SAP customers after a 4 year absence of supporting non-SAP customers.
    Anyway, I have some question on using Oracle RMAN with SAP databases. Backup softwares are Netbackup and Data Protector.
    I managed to get the backup working, that is, there is no issues, Oracle RMAN backup using SAP's brarchive and brbackup works alright. My question is about using an Oracle RMAN catalog. I've read thru several SAP documentation and cannot find one where I can use a RMAN catalog.
    Reading from
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/43d7cab9a04a409cc46876e36762c2/content.htm
    Does that mean I cannot use a RMAN catalog? Had anyone managed to use a RMAN catalog to do the RMAN backup?
    *Another question I have is, do I need Netbackup and Data Protector if I want to run RMAN backup to disk via brarchive and brbackup? Does backint requires a SBT library to use RMAN? What I mean is, I want to use RMAN but doing backup to disk instead of to tape which means I don't need the tape library installed, will backint know that this is the case and will not look for the tape library?
    Any advise or feedback on this will be very much appreciated. Thanks in advance.
    Extracts from http://help.sap.com/saphelp_nw04/helpdata/en/d1/43d7cab9a04a409cc46876e36762c2/content.htm are as below:
    The Oracle Recovery Manager (RMAN) is an Oracle backup program. You can use it as a command line interface (CLI) or as a graphical user interface (GUI) in the Oracle Enterprise Manager (OEM). We support RMAN with the SAP backup tools BRBACKUP and BRARCHIVE.
    RMAN uses the System Backup to Tape (SBT) interface to back up to tape devices. We implement SBT using the SAP backup library. External backup tools can implement this interface as a dynamic link library (DLL).
    Integration
    By integrating RMAN into BRBACKUP, you can add security and flexibility to important functions in existing backup strategies and tools:
    · The recovery catalog is not used. The backup information is stored in the control file. After the backup, the control file is also backed up. In a restore, the control file is restored first, followed by the data files.
    · The integration of RMAN into BRBACKUP also guarantees integration into the SAP Structure linkComputing Center Management System (CCMS).
    · BRBACKUP tape management functions as previously (that is, as when using the SAP backup library).
    · You can still use the BACKINT interface with external tools.
    · All previous SAP backup strategies are supported while using RMAN. Nevertheless, RMAN is not supported for standby database backups and split-mirror backups.
    · The following components are delivered with the standard Oracle8 installation:
    ¡ RMAN with the Oracle SBT interface
    ¡ Backup library and backup tool Networker from Legato
    ¡ Legatou2019s BACKINT interface implementation (as of Oracle 8.0.5)
    The SAP installation also delivers the SAP backup library with BRBACKUP and BRARCHIVE.
    Edited by: newbie01.sap on Jun 11, 2010 10:50 AM

    Hi,
    This question has been answered by Stefan Koehler. Not sure why the thread is not updated by his response. I am hoping to give him the max points actually.
    It was a very good response which is as below:
    Subject: Re: Oracle RMAN and SAP Databases
    Message: Hello,
    > Does that mean I cannot use a RMAN catalog? Had anyone managed to use a RMAN catalog to do the RMAN backup?
    Correct - if you are using the BR*Tools and RMAN you are not able to use a RMAN catalog with it.
    You can do manual catalog syncs, but the BR*Tools are not supporting a catalog database.
    >Does backint requires a SBT library to use RMAN?
    Check this documentation (Point "RMAN Backups Without Backup Library"): http://help.sap.com/saphelp_nw04/helpdata/en/3f/9d800e1aec11d2b42c00609419997a/content.htm
    > Any advise or feedback on this will be very much appreciated.
    We are also using RMAN for taking backup of all our oracle database (SAP and non-SAP), but without any BR*Tools.
    That is also possible - check sapnote #105047 (Part "50. Recovery Manager (RMAN)").
    As you mentioned, that you are a fulltime DBA you should have enough knowledge to use RMAN without BR*Tools.
    Regards
    Stefan

  • Oracle RMAN API

    Hi All,
    Is there any API for Oracle RMAN.
    as of now we running scripts for this, we want to update as an java app with GUI.
    Can any one help me out here.
    Tx,
    Mahesh

    If you can do it in PL/SQL then you can do it with JDBC. If not then no.
    Presumably you can do it with a command line tool (thus "scripts") which you can execute using Runtime.exec/ProcessBuilder. Your GUI would just invoke that - directly or via java server.

  • Need oracle practice question for OCA

    Need oracle practice question for OCA.
    Edited by: 823938 on Dec 27, 2010 10:21 PM

    It's illegal to use dumps.
    Read the following link:
    http://www.certguard.com/braindumps.asp

  • Oracle rman

    Dear All,
    When I execute the following command its not show any message after i restart the
    catalog server its cumming. Frequently i got the problem.
    RMAN> crosscheck archivelog all;
    Its take a long time for allocating the channel. please help.

    ORCL:oracle]$rman target sys/***** catalog rman/******@RCCATALOG
    RMAN>crosscheck copy of archivelog all;
    user the above mentioned way.
    RMAN-06059: expected archived log not found « ON CALL DBA SUPPORT
    Thanks,

  • Why is Oracle RMAN restoring a datafile to a different diskgroup?

    Hello,
    When I was trying an RMAN restore of a datafile, I found it is restoring the datafile to a new location. Why is Oracle restoring a datafile to a different diskgroup instead of restoring to the original diskgroup where the datafile was originally present?
    1) I have a datafile '+DATA3/slob1/datafile/undotbs2.260.819992871' which is on +DATA3 diskgroup
    2) I am taking a backup on to +FRA diskgroup
    3) I then offline and delete the datafile 5 using asmcmd to simulate the loss of a datafile
    4) I perform restore and recover of datafile 5 from the backup set on +FRA
    5) Unfortunately the datafile got restored on to +FRA instead of +DATA3. I realize that the file name can change because it is going to be a new file on ASM but I would assume this will be on the same diskgroup atleast since the control file has it pointing to '+DATA3/slob1/datafile/undotbs2.260.819992871' before restoration.
    When I tested on file system, this gets restored on to file system correctly.
    Anyone has any idea why the datafile was restored on to +FRA instead of +DATA3?
    Below is the screen output of what I did.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:09:21 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> backup as backupset datafile 5 format '+FRA';
    Starting backup at 11-07-2013 17:10:03
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00005 name=+DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: starting piece 1 at 11-07-2013 17:10:04
    channel ORA_DISK_1: finished piece 1 at 11-07-2013 17:10:05
    piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 11-07-2013 17:10:05
    RMAN> SQL 'alter database datafile 5 offline';
    using target database control file instead of recovery catalog
    sql statement: alter database datafile 5 offline
    RMAN> quit
    Recovery Manager complete.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ asmcmd rm +DATA3/slob1/datafile/undotbs2.260.819992871
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ asmcmd ls -l  +DATA3/slob1/datafile/undotbs2.260.819992871
    ASMCMD-08002: entry 'undotbs2.260.819992871' does not exist in directory '+DATA3/slob1/datafile/'
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ . oraenv
    ORACLE_SID = [+ASM2] ? SLOB11
    The Oracle base remains unchanged with value /u01/app/oracle
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:12:27 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    0        UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> restore datafile 5;
    Starting restore at 11-07-2013 17:12:43
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00005 to +DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: reading from backup piece +FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205
    channel ORA_DISK_1: piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 11-07-2013 17:12:46
    RMAN> report schema;
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +FRA/slob1/datafile/undotbs2.257.820516365
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> recover datafile 5;
    Starting recover at 11-07-2013 17:13:37
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 11-07-2013 17:13:39
    RMAN> SQL 'alter database datafile 5 online';
    sql statement: alter database datafile 5 online
    Thanks,
    Rijesh

    Hello,
    Can you check what is the value set for the parameter "db_create_file_dest" on the database ?
    Regards,
    Shivananda

  • Oracle Multitenant Questions

    Hi,
    I'm studying about Oracle Multitenant and I'm hoping anyone can help me.
    We have a 86 TB database, with no compression and we're struggling to backup this database.
    So, here is what we thought.
    Compress the whole database (since it's only inserted data on the database, no updates at all) on the current version - 11.2.0.3. We're hoping to compress at a ratio of 60%, so, it would be at 36 TB, but still a huge database to backup and recover.
    The next step would be migrate to 12c and setup Oracle Multitenant and divide this database into 5 instances (we can do it, because the database is divided in several mobile technologies). Let's suppose this division is equal, so, it would be around 6 TB each database, so, it would be manageable.
    Questions:
    - Do you think we could benefit using Oracle Multitenant?
    - This would be transparent to the application? No major changes?
    - How the backup would work? Can we backup each plugable database and restore it individually?
    Thanks in advance

    We have a 86 TB database, with no compression and we're struggling to backup this database.
    Ok - so give us information about the DB:
    1. How is it used
    2. Is it partitioned?
    3. How is it being backed up now? Are you doing complete backups or incremental ones?
    We need details - not just a statement that you are 'struggling'.
    Compress the whole database (since it's only inserted data on the database, no updates at all) on the current version - 11.2.0.3. We're hoping to compress at a ratio of 60%, so, it would be at 36 TB, but still a huge database to backup and recover.
    We need details:
    1. How is data being inserted?
    2. One row at a time by multiple users?
    3. Bulk inserts once a day?
    Less data means there is less to backup. But incremental backups don't backup the entire database anyway so we still need to know HOW the DB is being backed up now: how often and what kind of backups.
    You do NOT need to keep backing up old data that has NOT changed. Are you doing that? If so, why?
    The simplest solution to solve a 'database too big to backup' problem is to change the architecture so you don't have to keep backing up data that has NOT changed. Oracle's incremental backups already do that so maybe you are NOT using them.
    The next step would be migrate to 12c and setup Oracle Multitenant and divide this database into 5 instances (we can do it, because the database is divided in several mobile technologies). Let's suppose this division is equal, so, it would be around 6 TB each database, so, it would be manageable.
    I disagree - the NEXT STEP should be to find the cause of your performance issue.
    Based ONLY on what you posted the most likely problem is the types and frequency of the backups you are taking.
    Have you licensed the partitioning option? If so you can just put each of those 'mobile technologies' into its own partition.
    Again - how is data being inserted? If the new data is based on a value (e.g. a date) that distinguishes it from old data you can EASILY just put the newly inserted data into its own new partijtion by using a DAILY partitioned table.
    Then you don't need to backup the old data at all. And each day you would only back up ONE partition for the previous days data.
    That would be be EASIEST and MOST PERFORMANT solution to your problem.
    Questions:
    - Do you think we could benefit using Oracle Multitenant?
    - This would be transparent to the application? No major changes?
    - How the backup would work? Can we backup each plugable database and restore it individually?
    #1 - impossible to say until you provide the DETAILS ask for above about
    1. HOW you are performing the backups now,
    2. HOW often the data changes
    3. HOW the data changes (e.g. new data for today that distiguishes today's data from yesterday's data)
    4. Why you are performing the backups the way you are
    Multitenant isn't going to help if your data loads and architecture are such that you now have FIVE DBs to backup and they all need to be backed-up/restored together
    #2 - No - multitenant is NOT 'transparent'. You will now have FIVE DBs with data in FIVE places. Your current app is written to use ONE DB. The changes could be minor or could be MAJOR.. Querying data across database links is NOT as efficient as querying data that resides on the same server.
    On the other hand if a typical query only queries data from ONE of those five areas then you might get some significant performance improvements.
    But you might get those same improvements simply by properly partitioning the data or using better indexes.
    #3 - yes - you can backup and restore the PDBs individually. They are separate databases. However there is only ONE set of REDO log files. Those redo logs will contain changes from ALL of the PDBs,
    Also there is only ONE SET of memory management to be done. In multitenant memory is managed for the entire multitenant DB.
    There can be a steep learning curve to learn how to do that properly.
    Multitenant is NOT a magic solution for partitioning data - that is what partitioning is for.
    I suggest you find, and fix, you backup/performance/architecture issues with your current DB. If you need help doing that repost your question (and provide the DETAIL needed) in the General DB forum, the SQL and PL./SQL forum or the Backup/Recovery forums as appropriate..
    General Database Discussions
    PL/SQL
    Recovery Manager (RMAN)

  • RMAN questions

    New to Oracle DBA world. Some basic quetions, I will appreciate for help.
    what is the meaning of this
    restore database validate;
    is it good to include this in daily full backup script.
    My rman destination is sbt (tape). I want to copy some os files also on the tape with rman. what is the syntax to include that in the rman command 'host cp ----' ;.
    OS is sun solaris and databases are oracle 9i and 10g . thanks

    Check this for your restore validate question:
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96565/rcmsynta46.htm#93304
    You CAN NOT take file system backups to tape using RMAN. Which Media Manager software are you using to take RMAN backups on tape?? If that MM provides you an interface to take OS filesystem backup then you have to use that (outside from RMAN). Like OSB provide you to take RMAN plus file system backup option. Check your media manager software for more details on this.
    Daljit Singh

  • Flashback Rman question

    We are running Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production. (Linux Red Hat AS 4)
    Flashback is setup to use this folder /u01/app/oracle/flash_recovery_area/<DATABASE>
    RMAN backups to:
    /u01/app/oracle/flash_recovery_area/<DATABASE>/backupset
    A Full RMAN backup is performed daily.
    RMAN creates folders daily for the backup under /backupset, for example:
    2010_06_17
    2010_06_18
    2010_06_19 (and so on)
    The RMAN cleans up old backups by issuing this command:
    DELETE noprompt BACKUP COMPLETED BEFORE 'SYSDATE-3' DEVICE TYPE DISK;
    This leaves the old folder behind. I can clean these up using the OS but my question is:
    "Is there a way to have RMAN clean them up when it deletes the Backup?"
    Edited by: mseberg on Jun 21, 2010 2:37 PM

    Hi,
    You need to remove the folders yourself. RMAN will not remove them for you. Write a script to perform this action.
    RMAN is not aware whether the folder is empty or has any contents, it is simply removing the backupsets.
    Asif Momen
    http://momendba.blogspot.com

  • Hot Backup with RMAN question.

    Hi all.
    We want to make a full backup with RMAN every night with the db up. Version 9i in archive log mode.
    My question is if with the command:
    backup database plus archivelog delete input format 'MY_FORMAT_STRING';
    will store all the files needed for the recovery in one file or I need to backup some other file or do more actions. The backup will be consistent?
    Regards.

    By using this command you are only taking the backup
    all the database files plus all the archived logs
    needed for point on recovery.
    But still you will have to take the backup of Control
    file and parameter files. Which you do by configuringi think its not
    RMAN> configure controlfile autobackup off
    2> ;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    RMAN> backup database
    2> ;
    Starting backup at 28-NOV-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\UNDOTBS01.DB
    F
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\USERS01.DBF
    input datafile fno=00005 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\DATA.DBF
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NNNDF_TAG20071128T151313_3NTHSTK9_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NCSNF_TAG20071128T151313_3NTHV8S5_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 28-NOV-07
    RMAN>backup database backup controlfile as well spfile but its better backup control file separately after backing up the database plus archivelog cause a backup set info within control file which will not be in control file which is just backed up by backup database .
    Khurram
    null

  • Multiple Oracle Configuration Question

    We have a typical environment setup. I will explain it below:
    Our application works in Online and Offline Mode. For Online mode we connect to Oracle 10g enterprise server and a Local instance of Access and In offline application totally works in Access.
    Now we want to move away from Access and have Oracle PE instead just because we want to use stored procedure and same set of code for offline and online processing.
    So a typical user machine will have a PE instance and a Oracle Client. Currently we use LDAP.ora for Configuring connections. Now i have few questions
    1. How do we ensure that Oracle PE will work when we don't have network connection. Can we have like PE setup with Tnsnames.ORA
    2. What can be the smallest possible package for PE.
    3. Can I use one client to access both PE and Server databases.
    Any help will be highly appreciated.
    Thanks in advance.

    Assuming the "Xcopy installation" refers to using the Windows xcopy command, can you clarify what, exactly, you are installing via xcopy? Are you just using xcopy to copy the ODP.Net bits? Or are you trying to install the Oracle client via that approach?
    If you are concerned about support, you would generally want to install everything via the Oracle Universal Installer (barring those very occasional components that don't use the OUI). Oracle generally only supports software installed via the installer because particularly on Windows, there are a number of registry entries that need to get created.
    You can certainly do a custom install of the personal edition on the end user machines. There are a few required components that I believe have to be installed (that the installer will take care of). I assume your customization will take the form of a response file to the OUI in order to do a silent install?
    Justin

  • Oracle RMAN backup to disk on vbox4.2 shared folders

    [https://forums.virtualbox.org/viewtopic.php?f=7&t=53683]
    Cross posting a virtualbox forum post in case someone has this working.
    [posting snippet]
    Anyone successfully using Oracle 10.2/11.2 RMAN to backup to mounted vbox guest shared folder? I'm thinking there may be some special configuration requirement like there is with NFS share mount options.
    RMAN> backup incremental level = 0 database include current controlfile plus archivelog delete input;
    [lengthy output clipped]
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup plus archivelog command at 01/18/2013 00:03:14
    ORA-19504: failed to create file "/media/sf_backup/vux099/oracle/vux099db/dataS217_P1_T804988992"
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 22: Invalid argument
    Additional information: 2
    RMAN>
    Recovery Manager complete.
    oracle@vux099:vux099db1 [app/oracle]
    $ touch /media/sf_backup/vux099/oracle/vux099db/myfile; ls -l /media/sf_backup/vux099/oracle/vux099db/myfile
    -rw-r--r-- 1 oracle oinstall 0 Jan 18 00:04 /media/sf_backup/vux099/oracle/vux099db/myfile
    oracle@vux099:vux099db1 [app/oracle]
    $ touch /media/sf_backup/vux099/oracle/vux099db/myfile;
    oracle@vux099:vux099db1 [app/oracle]
    $ mount | grep sf_backup
    backup on /media/sf_backup type vboxsf (uid=51115,gid=51116,rw)
    oracle@vux099:vux099db1 [app/oracle/base/admin/vux099db1/bin]
    $ getent passwd 51115; getent group 51116
    oracle:*:51115:51116:Oracle Administrator:/app/oracle:/bin/bash
    oinstall:*:51116:grid,oracle
    oracle@vux099:vux099db1 [app/oracle/base/admin/vux099db1/bin]
    $ printf "show all;\nexit\n" | rman nocatalog target / | grep DISK
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/media/sf_backup/vux099/oracle/vux099db/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/media/sf_backup/vux099/oracle/vux099db/dataS%s_P%p_T%t';
    oracle@vux099:vux099db1 [app/oracle/base/admin/vux099db1/bin]
    $
    [end]
    Edited by: user12130856 on Jan 18, 2013 8:08 PM

    Hi,
    never tried it, but I know that the shared folders in vbox don't work like normal filesystems.
    I would rather setup an NFS server on the host and mount an NFS share in the guest.
    Regards
    Sebastian

  • Remedial rman question - how to connect to db

    Hi.
    I need to start making some tests with rman, with the hope of maybe next year presenting it as an option for our data managment here.
    First, I need to connect to my test database, but Im already having some problems:
    I am following the documentation (version 9.2) "Connecting to Databases with rman".
    Chapter 2 explains:to start rman do this :
    rman TARGET SYS / oracle@trgt NOCATALOG
    I dont want to use a catalog. I have been reading the rman concepts for weeks and Im quite happy with them. Just having practical probs!
    Any help please?
    Cheers.
    DA

    Werner:
    I checked in Computer Management and I am a member of ORA_DBA
    I changed the setting in sqlnet as instructed, now I am trying it this way:
    C:\>rman target sys/password@net_service_name
    And this is the subsequent result:
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    error occurred in source file: krmk.pc, line: 22659
    text of failing SQL statement: declare vsn varchar2 ( 20 ) ; begin vsn := dbms_r
    cvman . getPackageVersion ; :pkg_vsn:pkg_vsn_i := vsn ; if vsn is not null then
    :pkg_vsnub4 := to_number ( substr ( vsn , 1 , 2 ) || substr ( vsn , 4 , 2 ) || s
    ubstr ( vsn , 7 , 2 ) ) ; end if ; end ;
    ORACLE error from target database:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00376: file 2 cannot be read at this time
    ORA-01110: data file 2: 'C:\ORACLE\ORADATA\DAVID\UNDOTBS01.DBF'
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 1
    error executing package DBMS_RCVMAN in TARGET database
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-06429: TARGET database is not compatible with this version of RMAN
    "Not compatible" ???
    Any ideas ???
    Thanks.
    DA
    Message was edited by:
    Dan A

  • Oracle RAC Question

    Question about oracle rac. lets say we have a 3 node RAC database and our tnsnames.ora file is configured to point to node 1. If an application is connected to the database using the database connection information that is on the tnsnames.ora file (pointing to node1), and node 1 is down, how does the application know to point to node 2 or node 3 to connect to the database?

    If you didn't configure node2 and node3 as failover nodes, only the currently connected sessions would failover by the other nodes.
    New connections are no longer possible.
    Sybrand Bakker
    Senior Oracle DBA
    Oracle is not about rocket science. It is about being able and willing to read documentation.

  • Connecting to an oracle database questions

    <p>Our current solution to connecting to our oracle database uses the following code:</p><p>    ReportClientDocument clientDoc = new ReportClientDocument;</p><p>    java.sql.ResultSet rs =  fetchResultSet(driverName, connectStr, userName, password, <u>query</u>);</p><p>    clientDoc.getDatabaseController().setDataSource(rs, <u>tableName</u>,tableName+"_ResultSet"); </p><p>The code for subreports is very similar, but isn&#39;t necessary for my question. The problem w/ this approach is we have to define the SQL query and the table name in the JSP, which we shouldn&#39;t have to do considering both of these are stored in the report. Any changes to the reports&#39; sql would then require someone to edit the jsp, which is just bad.  </p><p>I have been reading up on the ConnectionInfo and ConnectionInfos classes (nice naming convention btw) and the CrystalReportViewer.setDataBaseLogonInfos() method, and I believe a solution may lie here. The problem is the tutorials on using the ConnectionInfo class assume the database name is stored in the report, and we do not want to assume this. We are developing our reports to be used by our customers, who may name their database whatever they want so long as the tables inside it are what we specify. Because of this assumption, I have yet to find a good explanation of how to use the setAttributes(PropertyBag) method which is the only I have seen to specify the database name (within a connection string). I have examples of it, but nothing that defines the key/value pairs required in the PropertyBag to create a connection to an oracle database. </p><p>Is there some documentation on the key/value pairs needed by the PropertyBag? Also, if there is another (easier) solution I am overlooking then please let me know, thanks.</p><p>-Sam Morehouse</p><p>HBF Group, Inc </p><p> </p>

    <p>got it working, here&#39;s some sample code.  </p><p> </p><p><%<br />    try{<br />        ReportClientDocument clientDoc = new ReportClientDocument();<br />        clientDoc.open(reportName, 0);<br />    <br />        ConnectionInfos connInfos = new ConnectionInfos();<br />        IConnectionInfo iConnInfo = new ConnectionInfo();<br /><br />        PropertyBag bag = new PropertyBag();<br />        bag.put("Database Class Name",driverName);    // "oracle.jdbc.driver.OracleDriver"<br />        bag.put("Connection URL",connectStr);        // "jdbc:oracle:thin:@dbName:1521:sid"<br />                            <br />        PropertyBag pb = new PropertyBag();<br />        pb.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES ,bag);<br />        pb.put(PropertyBagHelper.CONNINFO_DATABASE_DLL ,"crdb_jdbc.dll");<br />        iConnInfo.setAttributes(bag);<br />        <br />        iConnInfo.setUserName(userName);<br />        iConnInfo.setPassword(password); <br />                <br />        iConnInfo.setAttributes(pb);<br />            <br />        connInfos.add(iConnInfo);<br />        session.setAttribute(reportName, clientDoc);<br />        session.setAttribute("reportSource", clientDoc.getReportSource());<br /><br />        //Setup viewer. Only going to include the relevant line, the rest can be found</p><p>        //elsewhere.<br /></p><p>        CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();                   oCrystalReportViewer.setDatabaseLogonInfos(connInfos);                                      }    </p><p>catch(ReportSDKExceptionBase exc)%></p>

Maybe you are looking for

  • Export to Excel formating problem

    I am having a problem with the formatting of a an export file to Excel, which is created by a Coldfusion page. My export file contains numbers that need to be formatted as text. I found the style code below on this forum, but I am not having any luck

  • Just got new iphone 4s. trying to edit photo but screen is black and with a "constrain" bar at the bottom of my screen, can't clear it or get back to photos

    Just got new iphone 4s. Trying to edit photo but screen is black and with "constraint" bar at the bottom.  I am unable to clear the black screen or get back to photo gallery.  Help!

  • Standard Queries for CFM module

    Hello Experts, I m implementing the CFM module standard objects. Now i want to know what standard queries are available for CFM. In business content i can find standard queries for only Analyser.No queries for Transaction Manager are available. can a

  • Acrobat Reader 7.0 英語版で日本語PDFが正常に表示されない

    Windows XP SP2英語版上で使用しています. Regional and Language OptionsコントロールパネルでJapaneseとJapanを選択しても日本語が丸い「点」でしか表示されません. 必要な日本語のフォントがインストールされていないためかと思いましたが.アップデイトの必要がないと表示されます. また時折.9.8MB程度の日本語フォントをインストールするかと訊いてくるので.Yesを選択してもその後何も起こりません. どうすれば解決できるのか.ご教示いただければ幸甚で

  • Web layout on indesign export as PSD

    Hello, I'm creating an ipad ibook. I'm just doing the graphic side and a develloper will take care of technical. It's easyer for me to work on indesign because there is a lot of text is there a way to export it as psd for the developper ? There is a