Ship archive from ASM to filesystem

Hi,
I need to ship archive log created into ASM to another server on filesystem.
My database is a standard edition 11.2.
Is there a automatic method?

Hello Mr D,
if you plan to perform it everyday then it is better to go with ACFS replication.
http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmfilesystem.htm#OSTMG34600
http://www.oracle.com/technetwork/products/cloud-storage/acfs-replication-12-2010-279867.pdf
or If you have GG then
Oracle GoldenGate Best Practices: Configuring Oracle GoldenGate with Oracle Grid Infrastructure Bundled Agents (XAG) (Doc ID 1527310.1)
Thanks,
Ravi

Similar Messages

  • Regarding deletion of archives from asm

    Dear Gurus
    I want to delete archivelogs from ASM and want to schedule a script for same in crontab.Please tell me the way for same.
    Also i removed archives manually from asmcmd.But when i runned below command,i didn't observed any change in the free_space.
    select total_mb,free_mb,(total_mb-free_mb) used from v$asm_diskgroup;
    Regards

    First of all: always, always include your four digit Oracle version and platform information,
    Moreover, crontab is a paleolithic tool, which you don't need as there is a more powerful scheduler in both database control and the database itself.
    But more importantly: One doesn't remove archivelogs using OS commands, as that will make RMAN backups don't function correctly anymore.
    You need
    delete obsolete archivelog all
    in RMAN
    Doing so, the RMAN catalog in your controlfile and the OS will be consistent.
    Sybrand Bakker
    Senior Oracle DBA

  • Failover Database - From ASM to Filesystem

    Hi,
    Based on this article : http://manchev.org/2012/01/building-a-failover-database-using-oracle-database-11g-standard-edition-and-file-watchers/
    I would like to know if it would be possible to perform the same operation but in a case where my source database is using ASM and the failover one isnt.
    I think this (http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmasmmi.htm#i1014926) should apply , but I haven't got the time to test it myself just yet so I thought to try out here and maybe get some valuable information/feedback on it.
    Thanks in advance.
    Greetings,
    N K

    Yes that's correct.
    The control file can be restored using the from/to clause. Generate a control file backup from the primary (which is on the FRA) and restore it:
    restore controlfile from '/backup/controlfile.bkp' to '/u01/control_file_path.ctl';And the datafiles new location can be set during restore as you pointed out, with switch datafile all at the end:
    SET NEWNAME FOR DATAFILE 1 TO NEW;
    SET NEWNAME FOR DATAFILE 2 TO NEW;
    SET NEWNAME FOR DATAFILE 3 TO NEW;
    SET NEWNAME FOR DATAFILE 4 TO NEW;
    restore database;
    SWITCH DATAFILE ALL;"TO NEW" clause is if you plan on using OMF with the File System, through the db_create_file_dest. If the datafiles are to be spread out on different mount points you can name them individually, like:
    SET NEWNAME FOR DATAFILE 1 TO '/path/to/datafile1.dbf';
    SWITCH DATAFILE ALL;Also don't forget to clear (rebuild) your redo log files after restore, setting DB_CREATE_ONLINE_LOG_DEST_n appropriately.

  • Move database to new server from ASM to FS

    Hey, I have to move my database from ASM to filesystem storge (10.2.0.3 on sles 10 sp1)
    The new server is also sles 10 sp1.
    Can I just do an full export on the source site, and an import on the target site ? Will that work ?
    Any other steps to perform ?
    Chris

    Hi,
    1. Export db wlth FULL=Y . and then we have to create new database at target location and then import operation have to done.
    2.we can take rman backup, restore rman backup in target location. This method will reduce the complexity
    take backup through Rman.
    Target location:-
    1. export ORACLE_SID=xxx
    2. rman target /
    3. startup nomount
    4.RMAN> RESTORE CONTROLFILE FROM 'backup piece';
    5.RMAN> alter database mount;
    6.
    set newname for datafile '+DG/datafile.dbf' to 'FS/location';(do for all datafiles)
    restore database;
    switch datafile all;}
    7. alter database rename file '+DG/datafile.dbf' to 'FS/location';(do for all datafiles)
    8.alter database open;
    follow these steps from ASM TO FS.
    Edited by: startup on May 23, 2013 7:41 PM

  • How to delete archive log files from ASM through Grid Control

    Hi
    Anybody suggest me how to delete archive log files from ASM through Grid Control.
    Thanks

    It is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
    In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Database Refresh From ASM Filesystem to Local Filesystem

    Hi ALL,
    I am performing a database refresh from production server to a demo server. Our Production database is 11.2.0.1 and it is using ASM filesystem to keep the data, redo and other files in ASM disks.
    On the other hand demo server is not having ASM, all the database files are stored in a local filesytem.
    I have taken a fresh backup of our production database, but I am not sure to perform the restore part as the demo server is not having ASM.
    Can anyone suggest me how to perform this, I mean datafile restore from ASM to local filesystem.
    Any usefull links will be helpful.
    Regards,
    Arijit

    Hello,
    You can restore the backup of your Production database which is using ASM to your demo server (using file system).
    Make sure that the control_files parameter in the pfile/spfile is pointing to the file system location where you want to have contol files located on the demo server.
    Next, before you use the restore command to restore the database, provide the location of the datafile where you need to restore using the "set newname" clause.
    run
    set newname for datafile 1 to '<file-system-location-on-demo-server>';
    set newname for datafile 2 to '<file-system-location-on-demo-server>';
    restore database;
    switch datafile all;
    recover database;
    }

  • How to convert from ASM to regular filesystem

    Hi All,
    On our RHEL 5.5 machine we have one disk partition managed by ASM (11.2.0.1.0). We wan't to convert it to regular file system. How can we do it?
    Regards,
    Vinod

    Open a Terminal window and paste the following:
    # su - oracle
    $ . oraenv
    ORACLE_SID = [oracle] ? +ASM
    The Oracle base has been set to /u01/app/oracle
    $ kfod disks=all
    Disk          Size Path                                     User     Group 
    ================================================================================
       1:       9214 Mb ORCL:ASMDISK1                            <unknown> <unknown>
       2:       9214 Mb ORCL:ASMDISK2                            <unknown> <unknown>
    ORACLE_SID ORACLE_HOME                                                        
    ================================================================================
          +ASM /u01/app/oracle/product/11.2.0/grid 
    The above will either show you the device, e.g. /dev/..., or the diskname (ORCL) in case you use ASMLib
    $ su - root
    # /etc/init.d/oracleasm querydisk -p ASMDISK1
    Disk "ASMDISK1" is a valid ASM disk
    /dev/sde1: LABEL="ASMDISK1" TYPE="oracleasm"
    # /etc/init.d/oracleasm querydisk -p ASMDISK2
    Disk "ASMDISK2" is a valid ASM disk
    /dev/sdf1: LABEL="ASMDISK2" TYPE="oracleasm"
    U sing the info from the previous output, the following will permanently remove devices from ASM and create a file system (ext4) that you can mount. When using fdisk or parted, be sure to use the device name, e.g. /dev/sde and not the partition (/dev/sde1).
    # parted -s /dev/sde mklabel msdos mkpart primary 1 -- -1
    # parted -s /dev/sdf mklabel msdos mkpart primary 1 -- -1
    # mkfs.ext4 -L testdrive /dev/sde1
    # mkfs.ext4 -L testdrive /dev/sdf1
    You can then mount the file systems, for example:
    # mkdir -p /u02
    # mount /dev/sde1 /u02
    All previous information on the devices will be lost.

  • Creating standby database from ASM production database in standard edition

    Hi,
    I am using oracle 10g release 2 standard edition. I recently created a database instance and wanted to create a standby database instance. After sorting out how to achieve this without managed standby and data guard I finally got it working and the shipped archive logs are applied and working well on the standby database.
    Now I am thinking of re-creating my production database and using ASM for storage managment. By doing this can a standby database still be created from a primary database using ASM? I want to be sure I can before I commit to using ASM for the production instance and manually creating a standby database from that instance.
    Note: I am using standard edition not enterprise edition.

    Hi
    For Oracle SE standby, you can visit www.anbultechnologies.co.uk , they have a brilliant product name DRMC which is Automatic disaster recovery solution with automatic failover in case primary goes down due to any reason.
    We are using this product for more than 2 years and it works like a dream using Oracle Standard Edition. We have depolyed more databases and Standby solution within the prices of 2 EE edition licenses.
    You can give ma try as well.
    website address is www.anbultechnologies.co.uk

  • How to get the path of the web-archive on the local filesystem?? [Apache]

    Hello all,
    Im running a webapplication on a tomcat server.
    I need to find out the path of the web-archive on the local filesystem to access several files.
    How can I do that with out having an instance of HttpRequest or whatever??

    Hello Bruce.
    Please take a look at the following KBase article.  It has a sample that will retrieve the folder structure for a specified Crystal Report template based on the instance name in the file store.  The sample there can be easily modified so that it is based on a specific infoObject id.
    1549728 - How to find the folder structure in the CMC of a report template based on the instance file name in the output file store.
    The KBase can be retrieve from the following link:
    https://bosap-support.wdf.sap.corp/sap/support/notes/1549728
    Please note that the KBase article is retrieved through the Service MarketPlace.
    I hope this helps.
    Regards.
    - Robert

  • Archiving SAP data to Filesystems

    We're currently using Filnet as our archival content server. The repository is actually on magnetic disk rather than optical disk. The retrieval times are slow for some of our archival records.
    Our archiving admin recently performed SAP archiving to the Unix filesystem level and the respond time are much better.
    My question are:
    1) Is archiving to system level filesystem supported by SAP?
    2) What are the pitfalls that we should be looking for when archiving to Unix filesystems ?  As far as removal of expired files, we can do that much easier in Unix than Filenet MSAR structure.
    3) If you're using Filenet for SAP archiving, what are your plan for future archiving?
    4) Does anyone know of any ways to migrate from one archiving content server to another?
    Thanks in advance for your hellp.

    Yes. We did successfully migrated all our SAP archived to AIX and are very happy with the results. Not only we get rid of the Filenet software and hardware, we gain a 5 fold increase in retrieval times to the archived files. Our archiving effort was stalled due to slow response time with Filenet.
    We use an archiving consultant firm to accomplish this. They retrieved the archived files back to the OS level, and then mofidied the internal ADMI tables with the new locations. We then reset the configs to point to the new locations for the new archived files.
    I hope this helps.
    Duc Hong

  • Extracting Backups Sets from ASM with RMAN (10g)

    If I backup my database to my flash recovery area in ASM using RMAN, can I then extract those backup sets from ASM and turn them into normal file system files?
    I think I read that you can do this but I just wanted to be sure. I don't need super detail on this, just get me pointed in the right direction.
    I've certainly read about extracting a database from ASM, but I'm just not sure how I'd migrate an individual, arbitrary file.

    http://www.oracle.com/technology/oramag/oracle/04-nov/o64rman.html#T2 describes something like this, in the "Adding ASM" section. Here's the excerpt:
    Files inside an ASM location are not accessible as operating system files. To get the backups and archived logs from the ASM disk group to regular disks and tapes, John will use RMAN to back up the recovery area from ASM to tape (at the network backup server) through the following command:
    BACKUP RECOVERY AREA;
    This backs up the entire recovery area, including data file backups, archived logs, and control file backups from the ASM disk group to the tape.
    So, this would lead us to believe that what we want can be done. However, I read somewhere in the RMAN doc that BACKUP RECOVERY AREA will only create a backup to an sbt (i.e. tape) device. That is, it would appear that RMAN cannot store backups in ASM, and also allow you to "export" them to disk. You can export to tape, but not to disk.
    This is disconcerting. I'd like to store all Oracle-related files under ASM, but I'd also like to allow our tape backup procedures (which I am not in control of, and which do more than just backup Oracle) to easily just grab OS files that I put out there.

  • Delete the stored archive sessions form SAP filesystem

    Hello,
    Can any one explain How to delete the stored archive sessions form SAP filesystem. any transaction to delete the session from physical path.
    -thanks
    Ramana

    Not Sure , check this
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/402fae48-0601-0010-3088-85c46a236f50&overridelayout=true
    Re: Maintenance in the /usr/sap file system
    Edited by: Harsh Bhalla on Nov 28, 2009 10:10 AM

  • Duplicate database from ASM to Non-ASM problem

    Friends,
    I am unable to duplicate the database from ASM TO Non-ASM,
    OS: Linux AS4
    Oracle version: 10.2.0.1
    initAUXDB.ora parameters:
    background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/adump
    core_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/cdump
    background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/bdump
    user_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/udump
    db_name=auxdb
    undo_tablespace=undotbs1
    undo_management=auto
    undo_retention=900
    db_block_size=8192
    compatible=10.2.0.1
    control_files='/u01/oracle/product/10.2.0/oradata/auxdb/control01.ctl'
    db_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
    log_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
    db_create_file_dest='/u01/oracle/product/10.2.0/oradata/auxdb'
    db_create_online_log_dest_1='/u01/oracle/product/10.2.0/oradata/auxdb'
    My target database diskgroup info:
    GROUP_NUMBER NAME SECTOR_SIZE BLOCK_SIZE STATE
    1 DATA 512 4096 MOUNTED N
    2 FLASH 512 4096 MOUNTED E
    Please could you have look the following error:
    type1:
    Note: when I configure The log_file_name_convert=('+DATA') in initAUXDB.ora parameter file, the following error are occurring:
    RMAN> run {
    2> allocate auxiliary channel C1 device type disk;
    3> duplicate target database to auxdb;
    4> }
    Starting Duplicate Db at 03-MAR-13
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/03/2013 14:43:05
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_3.259.809008171 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_2.258.809008167 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_1.257.809008165 conflicts with a file used by the target database
    type2:
    when I configure The log_file_name_convert=('+FLASH') in initAUXDB.ora, again I am getting the following error:
    RMAN> run {
    2> allocate auxiliary channel C1 device type disk;
    3> duplicate target database to auxdb;
    4> }
    allocated channel: C1
    channel C1: sid=36 devtype=DISK
    Starting Duplicate Db at 04-MAR-13
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/04/2013 08:37:10
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_3.263.809008169 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_2.262.809008165 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_1.261.809008163 conflicts with a file used by the target database
    Please suggest me to overcome the above errors.

    Hi Mr.Rao,
    Thank you for your reply..
    I follwed as per as your query, but I am getting different error:
    channel C1: starting datafile backupset restore
    channel C1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077 <---------here the directory structure is "/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/" but I mention in initauxdb.ora parameter only "/u01/oracle/product/10.2.0/odata/auxdb/".
    restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569"
    ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-15001: diskgroup "FLASH" does not exist or is not mounte
    failover to previous backup
    channel C1: starting datafile backupset restore
    channel C1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077
    restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: reading from backup piece /u01/backup/prod/df_t809162421_s24_p1
    channel C1: restored backup piece 1
    piece handle=/u01/backup/prod/df_t809162421_s24_p1 tag=TAG20130304T072021
    channel C1: restore complete, elapsed time: 00:01:17
    Finished restore at 04-MAR-13
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "AUXDB" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.261.809008163',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.257.809008165' ) SIZE 50 M REUSE,
    GROUP 2 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.262.809008165',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.258.809008167' ) SIZE 50 M REUSE,
    GROUP 3 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.263.809008169',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.259.809008171' ) SIZE 50 M REUSE
    DATAFILE
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077'
    CHARACTER SET WE8ISO8859P1
    contents of Memory Script:
    switch clone datafile all;
    executing Memory Script
    datafile 2 switched to datafile copy
    input datafile copy recid=1 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    datafile 3 switched to datafile copy
    input datafile copy recid=2 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    datafile 4 switched to datafile copy
    input datafile copy recid=3 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: starting archive log restore to default destination
    channel C1: restoring archive log
    archive log thread=1 sequence=12
    channel C1: restoring archive log
    archive log thread=1 sequence=13
    channel C1: reading from backup piece /u01/backup/prod/al_t809162496_s26_p1
    channel C1: restored backup piece 1
    piece handle=/u01/backup/prod/al_t809162496_s26_p1 tag=TAG20130304T072136
    channel C1: restore complete, elapsed time: 00:00:04
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf thread=1 sequence=12
    channel clone_default: deleting archive log(s)
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf recid=2 stamp=809171585
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf thread=1 sequence=13
    channel clone_default: deleting archive log(s)
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf recid=1 stamp=809171583
    channel C1: starting archive log restore to default destination
    channel C1: restoring archive log
    archive log thread=1 sequence=14
    channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567"
    ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-15001: diskgroup "FLASH" does not exist or is not mounte
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/04/2013 09:53:11
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-20506: no backup of archivelog found
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 1 seq 14 lowscn 542329 found to restore

  • Help me! I need to import shipping information from DHL and Fedex

    I need to import shipping infomation from DHL and Fedex into my system. I don't know how to do it. Anybody can help me !!!

    desktop79 wrote:
    I need to import shipping infomation from DHL and Fedex into my system. I don't know how to do it. Anybody can help me !!!How do you expect anyone to help you without giving us any information? What has this got to do with Java anyway? My crystal ball says export the data from database A and import the results into database B. Without knowing which DBMS you are using, that is just about the best I can do. Google is your friend.

  • Displaying files from a local filesystem not in Webserver Root

    I have been attempting to display a file from a local filesystem with no luck. Is there any way, with something like UTL_FILE, to read in a file (A pre-generated report from Funnel Web) and display it through a custom portlet? I have created a provider/portlet to use, however, I cannot seem to find the right combination of PL/SQL to accomplish this task. I am by no means a PL/SQL guru. Any suggestions would be welcome.
    Thanks.

    You can use URL component in the applications tab,for this purpose.
    (Create a URL component with URL pointing to ur local file system, which is under web server directory.)

Maybe you are looking for