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;
}

Similar Messages

  • Database refresh from cold backup and hotbackup.

    How can we perform Database refresh from cold backup and hotbackup?

    OracleM wrote:
    How can we perform Database refresh from cold backup and hotbackup?I understand that you have Cold/hot backup and you need recover(refresh) this backup?If yes then restore cold/hot backup and
    sqlplus "/as sysdba"
    startup mount;
    recover database using backup controlfile unil cancel;
    /*then apply all available archive logs*/
    alter database open resetlogs;

  • I want to know about the role of AS application binaries, remote filesystems, and local filesystems in building a development environment on the iplanet application server.

     

    I think you need to be more specific in your question.
    The typical development environment involves the developer having his own copy of the application server binaries, executing code off of the local filesystem, and developing on the local filesystem. (Using some version control system to sync his code with the team code.) The most common reason for this is that most people are using Windows as a development platform.
    That said, it doesn't have to be that way. There is nothing preventing you from using a remote filesystem for the app server binaries. (Or even running your development server remotely.)
    What exactly are you trying to accomplish?

  • Database refresh from production to test -how to clean existing test env

    All,
    My environment is
    Both Production and Test databases are in two node RAC environment
    Oracle version - 10.2.0.4.0
    OS - RHEL5
    Production database size 80GB
    We need to refresh the test environment from production database. Complete objects, data etc should be refreshed.
    We have a datapump export from production environment. With this export dump from production environment, I need to import into test environment.
    So far, I have imported with this kind of dump to the fresh database only.
    Now, we have already objects, data sitting in the test environment. How to clean the existing test environment and refresh the production datapump export dump.
    I thought of dropping all the tablespaces in test (other than system,sysaux, undo and temp). But not able to drop few tablespaces, it is telling that index is available in other tablespaces, dependency errors etc.
    Which is the best method to clean the existing test database. Management is not interested in dropping the test database and recreating it.

    I understand that you are Newbie , let give me simple steps.
    Follow the steps on testing envi.
    1. Drop only Application users that you want to refresh from Prod(Do NOT drop users system,sysaux.. or tablespaces)
    2. Create the users that you dropped.
    3. using import or import data pump import the data.
    In case you want to import user"A" data to "B" use REMAP_SCHEMA option.
    See the below link for data pump export/import with examples.
    http://oracleracexpert.blogspot.com/2009/08/oracle-data-pump-exportimport.html
    Hope this helps.
    Regards,
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com
    Click here for [How to add and remove OCR|http://oracleracexpert.blogspot.com/2009/09/how-to-add-and-remove-ocr-oracle.html]
    Click here in [ Making decisions and migrating your databases |http://oracleracexpert.blogspot.com/2009/08/download-sql-developer-migration.html]
    Click here to lean [ Static parameters change in SPFILE and PFILE|http://oracleracexpert.blogspot.com/2009/09/how-to-change-static-parameters-in.html]
    Edited by: Satishbabu Gunukula on Sep 14, 2009 5:09 PM
    Edited by: Satishbabu Gunukula on Sep 18, 2009 10:35 AM

  • Database refresh from Prod to UAT

    Please check whether i have missed out any step in database refresh in 11.5.10.2
    Step 1 preclone executed on source Instance
    Step 2 copied all datafiles in backup mode to UAT instance
    Step 3 controlfile create and opened db in resetlogs.
    Step 4 adcfgclone.pl dbconfig <target context file>
    Step 5 Autoconfig executed on both db aswell apps
    Is it required to execute adcfgclone.pl dbTechstack and adcfgclone.pl appsTier
    environment is apps 11.5.10.2
    db 10g
    os AIX 5.3

    Hello,
    You will need to run:
    perl adcfgclone.pl dbTier [Database Target Context File]
    perl adcfgclone.pl appsTier [Appltop Target Context File]
    and other tasks as per Section 4: Advanced Cloning Options / 1. Refreshing a Target System
    of Note 230672.1 : "Cloning Oracle Applications Release 11i with Rapid Clone"
    Regards, Carlo.

  • Database refresh from standby database

    All,
    OS : Sun version : 11.1.0.7
    I'm doing database refresh using stand by database datafiles in different server.
    1)Disabled Data guard broker in standby database .
    2)Copied all datafiles in mount stage to target server (different server)
    3)created controlfile and started the database in mount stage in different server
    4)Applied all archive log files .
    5)But still the database not recovered .
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 10401147296308 generated at 01/13/2012 09:03:43 needed for
    thread 1
    ORA-00289: suggestion :
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
    ORA-00280: change 10401147296308 for thread 1 is in sequence #57879
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc
    ORA-00279: change 10401156453328 generated at 01/13/2012 10:48:01 needed for
    thread 1
    ORA-00289: suggestion :
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
    ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
    ORA-00278: log file
    '/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
    needed for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
    ORA-01112: media recovery not started
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Am I missing any steps here ? Please advice me on this .
    Thanks.

    Hi,
    When you copy files of standby server to another target server ? - Yesterday.
    Is standby is SYNC with primary? or MRP is still running? - ---------yes, standby db is running fine .
    Even you can open database with resetlogs after recreating controlfile, no need of recovery too -- >I was unable to open . So went to apply arch files.
    Do you have archive of thread 1 is in sequence #57887, -- No , Because sequence 57887 yet generate. I have applied all recent available archive log files.
    ORA-00289: suggestion :
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
    ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
    ORA-00278: log file
    '/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
    needed for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
    ORA-01112: media recovery not started
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Edited by: 805877 on Jan 12, 2012 10:43 PM

  • Database refresh from production to test database

    Dear All,
    i want to refresh data on test database using production database.Test and production database has same backend structure.
    i am using following steps.Please correct if i am wrong any where.
    1)Take Full export from producion database
    2)DROP SCHEMA ON test database.SKIP schema like sys,system and other oracle schemas.
    3)do full import on test database.
    is this correct way to refresh the data on other enviornmet.
    Thanks.
    rajesh

    user12071799 wrote:
    Dear All,
    i want to refresh data on test database using production database.Test and production database has same backend structure.
    i am using following steps.Please correct if i am wrong any where.
    1)Take Full export from producion database
    2)DROP SCHEMA ON test database.SKIP schema like sys,system and other oracle schemas.
    3)do full import on test database.
    is this correct way to refresh the data on other enviornmet.
    Hi,
    You can do one correction here :
    Instead of taking full export backup , take export of only those schemas which you want to refresh.
    You can use datapump to make it faster.
    For improving speed please check
    http://www.dba-oracle.com/oracle_tips_load_speed.htm
    Regards
    Rajesh

  • Database refresh from db A to db B and changing the name from B to A

    We have two databases A and B, both running on HP-UX environment on different servers. both of 10.2.0.1.0 version.
    Now, database A is production with 75.5 GB of data. database B is just skeloton with no user tablespaces.
    1.Our requirement is to refresh / clone database A to B. we are fine in recreating the database B like in case of cloning. but we want to avoid recreating database B as much possible.
    2. After refresh/clone, database B should be renamed_ to database A.
    Can you all please suggest the different methods available both by shutting down / without shutdown of database A and the approximate time taken on each cases.

    Thanks Sanjay for your suggestion.
    As per your case, we need to shutdown database A and delete the database B. We are trying to avoid this case as much as possible.
    We are thinking of options like
    export/import using datapump,
    transportable tablespaces
    restoring and recovering from backups
    In the above scenarios, we no need to delete the database B and no need to shutdown database A.
    Also, I need the approx time for each process and the method to rename the database?

  • SRM 7.0 Database Refresh

    Hi everyone,
    We are going to be performing a database refresh from our production system down to our development system.  We would like to maintain the current org structure that is in development though.  Does anyone know what tables we would need to export / import during the refresh to keep the org structure the same?  Also, do we need to worry about the product category replications?
    If anyone has had any experience with this your advice would be very appreciated.
    Thanks,
    Jeff

    Hi Nikhil,
    Ok thank you.  Do you know anything about maintaining the same org structure that was in place already in our Dev system?  It is different than our production system as we do not have all of the users setup in Dev.  Also we have some test ID's in Dev that we would like to keep.  Do you know how to maintain the same org structure?
    Thanks,
    Jeff

  • Full database refresh

    Hello Gurus,
    I am need to take make full database refresh from one database to other, Can someone let me know step how to do it?
    select * from V$VERSIONBANNER                                                          
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production                          
    CORE     10.2.0.5.0     Production                                        
    TNS for HPUX: Version 10.2.0.5.0 - Production                   
    NLSRTL Version 10.2.0.5.0 - Production      

    CKPT wrote:
    jgarry wrote:
    I'm with Ed and Brendan on this. 3 main reasons:
    1. Legacy has some special requirements.
    2. Definitely want different schema names, this has saved my bacon sooo many times. Even so, people still get it wrong (including me, and I'm totally paranoid about it to begin with).
    3. There are many more copies of production than actual production, for various reasons (test, several dev, special projects, future app versions...) . We would rather have one db with many schemata than many db's, right?
    Now if we could just rename user...Agreed some extent, I can say to refresh entire database the preferred method is RMAN restore, where it can manage very easily
    how?
    1) To import again we need to create a new database
    2) Need to create all the tablespaces with same names or we can use REMAP option
    3) need to monitor entire import process,
    4) need to take care of other things like , temp utilization and all.
    5) need to perform export, Need to copy those dumpfiles, We should have enough space on mount points of both source & destinations. ;-)
    I would just caution there that you shouldn't think that because you are taking rman backups you have no need to also regularly export the db. A good backup policy includes both physical backup (rman) and logical backup of the data (export).
    If you talk with couple of schemas the preferred method is EXPDP/IMPDP, totally agreed.
    If in case of database size is huge, then better to go with RMAN to refresh database. Either DUPLICATE or manual way restore.
    as ED said, still we could have chance to test RMAN backups too. Multiple advantages.
    Let me know if I'm wrong. :)

  • 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.

  • Which is better to install Oracle 11g database based on ASM or Filesystem

    We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
    1. Install Oracle ASM
    2. Create the tranditional OS filesystem
    Which is better? in the past, our 10g data guard environment is not based on Oracle ASM.
    Someone think if we adopt the oracle ASM, the shortcomings are :
    1. as there is one more instance that will consume more memory and resource.
    2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.
    3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
    Who can provide some advices? Thanks very much in advance.

    user5969983 wrote:
    We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
    1. Install Oracle ASM
    2. Create the tranditional OS filesystem
    Which is better? in the past, our 10g data guard environment is not based on Oracle ASM. ASM provides a host of new features ito data management, and performance - to the extent that you can rip out the entire existing storage system, replace it with a brand new storage system, without a single second of database downtime.
    Someone think if we adopt the oracle ASM, the shortcomings are :
    1. as there is one more instance that will consume more memory and resource.Not really relevant on 64bit h/w architecture that removes limitations such a 4GB of addressable memory. On the CPU side... heck, my game PC at home has a 8 core 64bit CPU. Single die and dual core CPUs belong to the distant past.
    Arguing that an ASM instance has overheads would be silly. And totally ignores the wide range of real and tangible benefits that ASM provides.
    2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.That is a A Very Good Thing (tm). Managing database storage from o/s level is flawed in many ways.
    3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
    rman supports ASM fully.
    I have stopped using cooked file systems for Oracle - I prefer ASM first and foremost. The only exceptions are tiny servers with a single root disk that needs to be used for kernel, database s/w, and database datafiles. (currently these are mostly Oracle XE systems in my case, and configured that way as XE does not support ASM and is used as a pure cost decision).

  • 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.)

  • 10_Recommended patches: run from local filesystem

    The install_cluster script for the latest Solaris 10 Recommended patch cluster checks to see if it's being run from a local filesystem.
    If not, it bails out: Excerpt below:
    df -l . > /dev/null 2>&1
    if [ $? != 0 ]; then
    echo "install_cluster must be run from a local filesystem.\n"
    return 1
    fi
    Anyone know why?

    Bumping this subject up.
    Can someone please explain the reason for this check? Its only purpose seems to be to annoy system administrators.

  • 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.

Maybe you are looking for