How to backup read only tablespace in rman

Hi,
I am using oracle 10gR2 in solaris 10.
I am taking Rman full backup using catalog.
My target database have 5 datafiles, in that one datafile is in read only mode.
When I issue the backup command in rman. it takes only 4 datafiles. its not taking the readonly datafile.
I want to take backup of all 5 datafiles.
kindly help me..
Many Thanks

My target database have 5 datafiles, in that one datafile is in read only mode.I presume that you mean to say that 1 Tablespace consisting of 1 datafile is Read Only.
What does SHOW ALL in RMAN present ?
If you have BACKUP OPTIMIZATION set to ON, the Read Only Tablespace will not be backed up after the first backup.
You could still explicitly backup the tablespace with a BACKUP TABLESPACE tablespacename; , although a BACKUP DATABASE would exclude it.
Hemant K Chitale
http://hemantoracledba.blogspot.com
Edited by: Hemant K Chitale on May 3, 2010 12:02 AM

Similar Messages

  • Data warehouse backups and read only tablespaces

    Hi all,
    I am working on a data warehouse database with following specs:
    Version: Oracle 10.2.0.3 Enterprise
    OS: Solaris
    App: Data warehouse
    We use RMAN to take 'level 0' & 'level 1' backups. We have block change tracking enabled and RMAN backups up data files and archive logs straight to tape.
    I am exploring ways of reducing the 'level 0' backups and was specifically focussing on using read-only tablespaces for this purpose.
    I have often seen it mentioned that a best practice in D/Ws is to store the old static partitions of fact tables in read only tablespaces so as to reduce the backup size.
    In case you have already implemented such a scheme, I would like to know how you have implemented it.
    I am thinking of the following mechanism:
    -- Start using backups at tablespace level rather than 'level 0' at database level.
    -- Record the latest SCNs of all datafiles prior to back up.
    -- If the latest SCN has not changed since last backup and the tablespace is in read only mode then
    -- Check if a backup copy of the tablespace has been done within the recovery window and is accessible.
    -- If the copy exists then don't backup that tablespace, else backup the tablespace.
    -- If the tablespace is read/write then back it up.
    I haven't delved into the low level details, but this seems to be lot of work. So just wanted to know from you if there's any ready made feature which makes all this easier.
    Many thanks in advance.

    Thank you so much for your help.
    Backup optimization was indeed the thing I was looking for. To be honest I had done a bit of RTFM, but I didn't check the advanced user guide.
    Although my specific question has been answered, it would be interesting to know what other things other people are implementing to reduce backups etc.
    I am also thinking of following options:
    -- Turn on index monitoring to get rid of unused indexes.
    -- Stop the backups of 'index' tablespaces.
    -- Archive off old data.
    Any other ideas for reducing DW backup size?
    Many thanks.

  • Read Only Tablespace Backup Issue

    Hii!!
    I had been trying to to take Read Only Table space Backup. So, firstly changed the tablespace using
    SQL> alter tablespace users read only;
    Tablespace altered.
    2. Then took backup of all the data files using OS Copy command.
    Now , the issue i am facing is that can i change the table space to read_write mode???? If yes , then how?? , plz help...

    I had been trying to to take Read Only Table space Backup. So, firstly changed the tablespace using
    SQL> alter tablespace users read only;
    Tablespace altered.
    2. Then took backup of all the data files using OS Copy command.
    Now , the issue i am facing is that can i change the table space to read_write mode???? If yes , then how?? , plz help...Yes you can do,
    SQL> alter tablespace users read write;After successful restore,
    sys@11GDEMO> select tablespace_name,status from dba_tablespaces where tablespace_name='CKPT';
    TABLESPACE_NAME                STATUS
    CKPT                           ONLINE
    sys@11GDEMO> alter tablespace ckpt read only;
    Tablespace altered.
    sys@11GDEMO> select tablespace_name,status from dba_tablespaces where tablespace_name='CKPT';
    TABLESPACE_NAME                STATUS
    CKPT                           READ ONLY+
    sys@11GDEMO> alter tablespace ckpt read write;+
    Tablespace altered.
    sys@11GDEMO> select tablespace_name,status from dba_tablespaces where tablespace_name='CKPT';
    TABLESPACE_NAME                STATUS
    CKPT                           ONLINE+
    sys@11GDEMO>
    Edited by: CKPT on Jul 6, 2011 11:22 AM

  • Backing up database with read-only tablespaces

    I am trying to develop a script that will dynamically build RMAN scripts for backing up
    a database with read-only tablespaces. The application running on this database creates
    new tablespaces in read-write mode on weekly basis, populates them, and then puts them in read-only mode. So I need to backup all read-write tablespaces plus take backup of all read-only tablespaces once. The problem is that the application also includes a process that puts a tablespace back into read-write mode, updates it, and puts it back into read-write mode. So I need to be able to access "a history" of the tablespace - when was it put into read-only mode - to compare it with a history of backups. While history of backups is available in RMAN views, I couldn't find any way to extract tablspaces
    history.
    There should be RMAN command to the effect
    "backup all read-write tablespaces and read-only tablespaces if they have not been backed up at least once since becoming read-only".
    Regards,
    Sev
    null

    just rsync the files to a compressed Zpool. do this using shadow migration, and you only loose access to the data for a few seconds.
    1) make new dataset with compression
    2) enable shadow migration between the new and old
    3) change the database to use the new location
    4) watch as data is automatically copied and compressed :-)
    the the down side, you need extra space to pull the off.

  • How to change read only folders into normal ones...i can't get any filed from my harddrive

    how to change read only folders into normal ones...i can't get any filed from my hard drive..it shows read only

    Which HDD are you referring to, an external one, or the internal SSD?
    If external, which format is it in?

  • How to make read only field in Task list?

    Hi All,
    How to make read only field in Task list?

    This can be done one of two ways:
    1. Customize the form in Infopath, right click your field and disable the control.
    2. Use JavaScript/jQuery on the page to disable the element.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • I want to use ZFS filesystem compression on a history database with read-only tablespaces.  What is the best way to get the datafiles compressed?

    I have 5 history databases that total about 2.2 Terabytes. They use about 15 filesystems, but I can start with 2 that are isolated to only one database.  I have asked for ZFS compression to be set on the filesystems, but since these are read-only tablespaces, I do not think any compression will happen.  Can I simply offline, copy and rename the files from one filesystem to the other to make the compression happen?

    just rsync the files to a compressed Zpool. do this using shadow migration, and you only loose access to the data for a few seconds.
    1) make new dataset with compression
    2) enable shadow migration between the new and old
    3) change the database to use the new location
    4) watch as data is automatically copied and compressed :-)
    the the down side, you need extra space to pull the off.

  • Why r we not use tablespce begin backup with read only tablespace

    why r we not use tablespce begin backup with read only tablespace

    Please learn English prior to posting. The schools in India are not that bad!
    Please RTFM.
    Please stop asking doc questions at lightning speed.
    Please go figure
    Sybrand Bakker
    Senior Oracle DBA

  • How to backup changes only?

    Case: My photos are  (all in Sony's RAW format) stored in a directory "allfotos" on Drive G: of my desktop computer, Windows XP Pro SP3..
    I have a copy of all photos in a directory "allfotos backup" on external drive M:, attached via Firewire to my desktop.
    How can I efficiently make a backup of only the changes made to the original photos from Drive G: to the external Drive M:?
    Kind regards

    Lightroom only backs up the catalog, which for some users is sufficient. It's certainly the quickest, easiest and probably most efficient way. However, I get the impression that you fall into the back up my files camp. If this is the case you're going to have to use a third party application for backup (e.g Retrospect or SuperDuper on Mac - don't know the equivalents for Windows). You will also need to save out metadata to XMP sidecar.  You can do this manually or automatically. To automatically save the metadata to XMP you need to set a preference in the catalog (see screen shot below). To manually save the metadata I suggest you select the top level folder in the folders panel, open the folder context menu then choose Save Metadata - do this at the end of an editing session before closing Lightroom. The important point about both methods is that XMP sidecars will only be created/updated for those images that have been edited in Develop module or have had metadata applied. Also, keep in mind that it will only be the XMP sidecars that need to be copied from G to M drive. Finally, make sure that your backup application is configured so that only new/updated XMP sidecars are copied from G to M drive.

  • DBFS in read-only tablespace as LOB archive solution

    I am trying to come up with an architecture to solve the following requirement
    1. transactions will have LOB attachments
    2. Transactions will be live for short period of time, after which they will be 'closed'
    3. all transaction details, including LOBs must be kept for minimum of 7 years
    4. want to minimise backup requirements, so that we aren't backing up large amounts of basically static data.
    Here is my proposed solution
    1. table for the LOBs will be in the 'live' part of the database.
    2. There will be a DBFS created in the database as DBFS SecureFiles Store
    3. The tablespace holding the DBFS_SFS will be read-only.
    4. Periodically (monthly?) the DBFS_SFS will be made read-write, the LOBs from closed transactions will be moved from the 'transactional LOB table' to the DBFS_SFS and replaced with DBFS Link
    5. DBFS_SFS will be made read-only, and full database backup performed
    6. subsequent backups will skip read-only, until the next iteration
    have I missed anything that may prevent this from working?
    phil

    Thanks for the reply
    Firstly, the app availability is expected to be 12x5, so the plan would be the full backup would be during the weekend, but I appreciate the issue re backup timing
    What I would really like is if there were some way to have the DBFS SFS in a separate database, and register it as a hierarchical store, but there doesn't seem to be a way to do that. Even if I was able to write the appropriate DBFS Store Provider (a la the DBFS sample store at http://www.oracle.com/technetwork/database/application-development/522110) , you run up against the 32K limit of dealing with LOBs in a remote database (unless I have missed something somewhere)
    Phil.

  • How to assign read only access for a database to a single user?

    Hi All,
    I have created a login for one of the user , and i used deny view to deny that user access to any of the databases to be shown.Now, he cannot see any databases in the explorer window.
    My question is now i want to give this user permission ( read-only) to a single database. How can i do that? I have googled around and found some solutions but nothing is working.
    Can someone please help me with any suggestions.
    Thanks a lot for your time and suggestions in advance.
    Thanks

    Hi Bhanu,
    Thanks for your reply, I am not sure i got it. I have a user created with the name of 'msam_test' and if i login into management studio with this userid and password i dont see any databases showing up because i used the DENY View command to hide which is
    working fine.Now i just want to see only 1 database named 'suresh3_test' with a read only access to this database.
    I tried using your code in the below way
    USE [suresh3_test]
    CREATE USER [<msam_test>] FOR LOGIN [<msam_test>] WITH DEFAULT_SCHEMA=[dbo]
     exec SP_ADDROLEMEMBER 'DB_DATAREADER','<msam_test>'
    But i receive an error saying
    Msg 15007, Level 16, State 1, Line 3
    '<msam_test>' is not a valid login or you do not have permission.
    Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 75
    User or role '<msam_test>' does not exist in this database.
    Can you please help me on this.
    Thanks

  • XML FORM  -  How to save read-only controls with a default value

    Hello everybody,
    I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common in the 3 forms, in order to use it on searches.
    The question is, how can I include in this forms a control:
      - Visible for the user
      - With a default value defined in the control properties (each form has a different value, corresponding with the type of news)
      - Read-only mode
      - The value showed in the control must be saved in the associated KM Predefined Property when the user clicks the Save button. 
    Anyone knows how to do this?
    What control can I use?
    I was thinking of trying with text boxes, but I don't find the way to make them unwritable (Read only mode).
    It is posible using labels?
    Thanks.
    Kind regards

    Hello Jose,
    I know you responded with a question... I see it in the email, but I don't see it here!  Very odd... but in response:
    The first thing I do when I open the Edit.xsl file is do a 'find' for the name of the text field that I want to be read-only (in my test case, it's 'location').  Repeat the find until you see something like:
    [code]<!--
    field location
    -->[/code]
    Below there is where I put the new code.  Mine looks like this:
    [code]- <xsl:choose>
    - <xsl:when test="location='' and ($editmode='create')">
    - <xsl:choose>
    - <xsl:when test="./xf:ValidationError/@tagname='location'">
    - <input name="location" size="30" type="text" class="urEdfiTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="tabindex">
    - <xsl:choose>
      <xsl:when test="$accessibilitymode='true'">21</xsl:when>
      <xsl:otherwise>3792</xsl:otherwise>
      </xsl:choose>
      </xsl:attribute>
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:when>
    - <xsl:otherwise>
    - <input name="location" size="30" type="text" tabindex="3792" class="urEdfTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:otherwise>
      </xsl:choose>[/code]
    I put the <xsl:attribute name="readonly"> in both places (when test, and when not test).  I'm not entirely sure if that's necessary, but that worked for me.
    Hope this helps,
    Fallon

  • How to remove "Read Only" attribute on folders

    Hi
    I am logged in with my User account which has full control over my folders.<o:p></o:p>
    I have a folder that I tried to add modifications to, however i could not do so because the folder was classified as read only. I have full permissions to this folder. Previously the app that
    uses this folder could write to it quite happily, but today it fails. <o:p></o:p>
    The 'attributes' for the folder shows a solid square in the read-only box. If I 'un-box' the read-only and apply > ok, when I look at the attributes again the box is still checked.<o:p></o:p>
    So my question is, if it's not (which it shouldn't be) some sort of protected Windows folder, and I have full permissions on the folder (supposedly), why does Windows not respect my wishes,
    get out of the way, and let me set it to what I want it to be?<o:p></o:p>
    I have tried the following methods to fix this issue, but none of them work:<o:p></o:p>
    -Adjusting permissions and control, and changing security options<o:p></o:p>
    -Using a third party application such as "clear read only" to remove the check on the box<o:p></o:p>
    -Using the "attrib" function on the CMD prompt<o:p></o:p>
    -Boot Scan for virus/malware that is affecting folder attributes<o:p></o:p>
    -Running applications and CMD as administrator<o:p></o:p>
    I have heard that if using a NTFS harddrive, then all folders will be automatically “Read Only” and that it is impossible to change that attribute. I find this hard to believe, as all folders
    should have some way of being modified, regardless of what HDD I’m using. I obviously cannot change to FAT32, so how else can I get my folders to get rid of this ridiculous error!
    <o:p>I have also noticed that this problem is very common amongst Windows users. If this problem has been around for a while, how is it possible that no solution has presented itself.
    Regardless, we need a solution to it, because i can't do the things i need to while the Read Only attribute remains a constant on my folders. I thought it may be a virus, but my avast anti-virus did not pick up any infected areas when the scan was done. I
    have searched the internet, and no "fix" has solved this issue. The only fix i have not found is a reg edit that could completely remove this read only attribute from all folders. Though i feel this is not neccesary, as i only need the attribute
    to be removed from certain folders. Please kindly assist me with this issue, hopefully it will help many others too...</o:p>
    Many thanks.

    Have you taken ownership of the folder? Please first take ownership of the folder, then change the security options
    Take Ownership of a File or Folder
    http://technet.microsoft.com/en-us/library/cc753659.aspx
    If you have already did this, then run a scan with this tool,
    Malicious Software Removal Tool
    http://www.microsoft.com/en-in/download/malicious-software-removal-tool-details.aspx
    or copy this folder to another location, test again.
    Regards
    Yolanda
    TechNet Community Support

  • How to populate read only input field or text view form value help only

    Hi experts,
    I have one requirement to populate a read-only field or text view from value help.
    User cant put any value there.value comes only from the value help.
    For example,
    when we read context using Code Wizard,we cant type any value there.value only comes from value help.
    How to implement that functionality?
    Please reply.
    Thanks in advance,
    Subhasis.

    Yes it is possible.
    1.Create a context Attribute and then bind this attribute to the Text view UI element.
    2. read context attribute and then set value to the context attribute like this way.
    DATA:
        elem_context1                        TYPE REF TO if_wd_context_element,
        stru_context1                        TYPE if_first=>element_context ,
        item_potxt                          LIKE stru_context-potxt.
    get element via lead selection
      elem_context1 = wd_context->get_element(  ).
    stru_context1-potxt = 'PO'.
    elem_context1->set_attribute(
        VALUE  = stru_context1
        name   = 'POTXT'
    thanks
    Suman
    Edited by: suman kumar chinnam on Sep 9, 2008 12:12 PM

  • Re-installed photoshop elements 12. In folder correct copies, how to change read-only to edit photos? After printing photo how to return to grid view?

    Reinstalled photoshop elements 12. How to change photo after printing back to grid view? In folder correct copies one or more files is read only. How to change so these can be edited?

    Reinstalled photoshop elements 12. How to change photo after printing back to grid view? In folder correct copies one or more files is read only. How to change so these can be edited?

Maybe you are looking for