Create test database from standby without some data

Hi. I want to create test database from my standby database using rman.
But i have some some tables and where information is too large i dont want backup all data from this tables. because i dont have enough space on my test server.
Have u any idea for solution this problem.
Thanks

But have suggestion.
You can create duplicate database on based your target database (to new host) and skip undesired tablespaces...
bash# rman target /
RMAN> ....
your code should be like :
run {
allocate auxiliary channel 'dev_0' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
allocate auxiliary channel 'dev_1' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
allocate auxiliary channel 'dev_2' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
allocate auxiliary channel 'dev_3' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
SET UNTIL SCN 7769764681915;
DUPLICATE TARGET DATABASE TO MYTS SKIP TABLESPACE TOOLS_IDX,TOOLS,ARCHIVE,IDX;
Edited by: Ulfet Tanriverdiyev on Dec 21, 2010 3:42 AM

Similar Messages

  • Create dev database from standby database

    Hi folks,
    I need to create a dev database by using RMAN's method of cloning. But, since it is business hours and the production database is being used at a very high rate, I cannot carryout the cloning by connecting the primary database as it may cause performance slowness.
    The time allotted for the activity is also very short. We have a standby database created for the primary database. So, my question is it possible for me to create the dev database using the standby database ?
    Database version is 11.1.0.6 and I can go ahead with the active database feature.

    Yes, you can clone from the standby database. Follow the below steps.
    1. Check if your standby database is in sync with the primary database.
    2. Cancel the MRP on the standby database.
    alter database recover managed standby database cancel;3. connect to standby as target database and dev database as auxiliary
    rman target sys/<pwd>@<standby-alias> auxiliary sys/pwd@<dev-alias>4. Your standby database would be in mount stage and dev in nomount stage.
    5. Run the duplicate command
    rman>duplicate target database to 'dev' nofilenamecheck;6. Once done, start the MRP on the standby database
    alter database recover managed standby database disconnect from session;

  • How to create a clone of database from STANDBY?

    How can i clone a database from physical standby database?

    Steps to clone from standby:
    1. cancle the managed recovery process on standby
    sql>alter database recover managed standby database cancel;
    2. Remember your standby databse would be in mount mode.
    3. Connect to the auxiliary instance and to the standby database through RMAN
    rman target sys/<pwd>@standby auxiliary sys/<pwd>@auxiliary-connection
    4. If 11g, then run directly duplicate from active database
    rman>duplicate target database to 'auxiliary_db_name' from active database nofilenamecheck;
    5. Once, the duplication is done, start the MRP on the standby again
    sql>alter database recover managed standby database disconnect from session;
    Ok..You are on 10g.
    Perform the above steps, but only thing is 1st you need to take the backup of the standby database first.
    Refer this Create dev database from standby database
    Already steps are given here
    Edited by: Shivananda Rao on Mar 9, 2012 9:56 AM

  • How to create test database in system (have downloaded mxdb)

    how to create test database in system (have downloaded mxdb)...Can someone pls help as I am new to SAP

    Hi amit,
    the maxdb documentation gives all information which is needed:
    Install the software with SDBSETUP:
    <a href="http://maxdb.sap.com/currentdoc/4c/da3b3c51bd4b3ae10000000a114084/frameset.htm">Installation</a>
    Create a database with DBMGUI
    <a href="http://maxdb.sap.com/currentdoc/84/d8d192570411d4aa82006094b92fad/frameset.htm">Create Instance</a>
    Reagrds, Christiane Hienger

  • Create a Database from xml

    Hi,
    I'm using javaDb embedded and I trying to find the best way to create a database from a xml file.
    I managed to do this, previously with netbeans 6.9, jdk 6 and apache ddlutils.
    Unfortunately this method as proven to be not so good, and and can't get it to work with netbeans 7.
    Is there a best way to do this?? Any recommendation on this matter will be appreciated.
    Thanks in advance,
    Hugo

    s3c wrote:
    Hi,
    I'm using javaDb embedded and I trying to find the best way to create a database from a xml file.
    I managed to do this, previously with netbeans 6.9, jdk 6 and apache ddlutils.
    Unfortunately this method as proven to be not so good, and and can't get it to work with netbeans 7.
    Is there a best way to do this?? Any recommendation on this matter will be appreciated.
    Thanks in advance,
    Hugowhat does question or solution have to do with forum TOPIC Oracle RDBMS?

  • How to create a database from dfj zip file

    Hi,
    I have created a database template via DCA from PC-1 which has got oracle 9i and it has produced a file with extention dfj.
    I am trying to create a new database using this dfj file on a different pc which has oracle 10g.
    1- How can i use dfj file to create a new database?
    2- Can i use Oracle 9i templates in Oracle 10g?

    -in dbca you have the option to create the database from existing template
    -not sure if we can simply use 9i template in 10g but you may try, chances are less.

  • Why do i get 2 curves and not just 1 when i create a diagram from a row of data in a table ?

    Why do I get 2 curves and not just i when I create a diagram from a row af data in a table ?

    Erik,
    Thank you for giving me the points.  Generally you wait to award points until your problem is solved.  It is totally your at your descretion.
    OK.
    This is still not clear.  To post a screenshot get the "stuff" you want to show in view on your screen, then type the key combination <Command>+<Shift>+3.  The cursor will change to a crosshair.  Click and hold on the top-left corner, then drag to enclose what you want to show (to the bottom-right corner), then release.  The screenshot will appear on your desktop and will be named something like "".
    Now click the camera icon in the tool bar for this forum:
    , click the text box to allow you to navigate to, and select your screenshot.
    Here is what you sent me:
    The graph does not seem to be associated with the table of data you are showing.  Generally when you highlight a graph the corresponding table will highlight and show the source of each of the series in the graph (dark and light blue).
    This is what I would expect to see when highlighting a graph:
    Right now I think there is ANOTHER table arround that is the source for the graph and the table you show is "just another table".  You can move your data into the table the graph refers to by copy and paste, or simply typing the values.  You can change how many series there are by grabbing the little circle at the bottom right of the highlighted cells (when you have the graph highlighted) and dragging as shown:
    The Numbers Users' Guide is a great resource you should utilize and can be found here:
    http://support.apple.com/manuals#macosandsoftware
    The chapter on graphing (or charting) is 7 and starts on page 134.

  • How to create new database from backup.

    Hi !
    i have backup of a database, i do not want to restore, i want to create new database from the backup.
    i am using oracle 11g xe.
    yours sincerely

    If the Location of the datafiles is similar to that of source database then you can consider below steps
    Create Oracle Service using oradim
    set ORACLE_SID=NEWDB
    oradim -new -sid NEWDB -intpwd passwordofthesys -startmode M
    Connect to the RMAN
    rman>rman target /
    restore spfile/pfile and control file from backup
    rman>restore spfile to pfile '_localtion of the initNEWDB.ora_' from '_location of the SPFILE Backuppiece_';
    rman>startup nomount pfile='localtion of the initNEWDB.ora';
    rman>restore controlfile from 'file location of the controlfile Backuppiece';
    rman>alter database mount;
    Catalog the RMAN backuppiece of source database
    rman>catalog backuppiece '_location of the rman backuppiece of source database_ ';
    resotore & recover database
    rman>restore database;
    rman>recover database;
    open the database with reset logs
    rman>alter database open resetlogs;
    rman>create spfile from pfile;
    rman>shutdown immediate;
    rman>startup;
    ==================
    If you have access to source database then you can clone using below rman command:
    +rman target _<source database>_ auxiliary _<new database>_+
    rman>duplication target database to _<your new database name>_;
    ==========
    If the location of the datafiles and logfiles are different from source database then you need to add db_file_name_convert and log_file_name_convert to the pfile before starting the recovery process.

  • Hi, I would like to create a database from my numbers spreadsheet and create reports (like SQL). Is there a way?

    Hi, I would like to create a database from my numbers spreadsheet and create reports (like SQL). Is there a way?

    Numbers is a lightweight spreadsheet.  If you know sql you will know that it can handle many queries and is a real databases that can handle many thousands of records.  Number is not the correct tool.  You can make something that does something like a query but it is not truly a query.
    Can you share anything about the specific application and how much information there is in each record?  How many records (rows)?

  • Creating a test database from backups of the production

    Hello Experts,
    I am a newbie with very much new in Oracle. I have been provided with the inc0 backup(which comprises even the controlfile backup) of the production database (PROD) taken through RMAN and asked to create a new test database (TEST) using the backup. Can anyone please provide me the steps on how to restore it and create the new database ?
    Database version 10.2.0.4
    I am aware of duplicate database concept using RMAN, but I have been asked to not to connect to the target (PROD) database while duplicating. So, I need to create the test database by using the backup of prod database without connecting to PROD database. Please guide me.

    Refer
    http://arjudba.blogspot.in/2008/05/restore-and-recover-database-to-new.html
    RMAN restore database from another backup of different database name
    When you are restoring using the backup of the production database, the db_name would be same on the auxiliary database. Once you restore and recover the database in your test server, you can change the db_name from prod to test by recreating the controlfile

  • Create a database from 8i RMAN backup

    Hi,
    I am in need to recover some historic data from a historic database's RMAN backup.
    The situation is ... I have one old RMAN backup of a 8i database which includes datafiles, archivellog files and control files. Init.ora file is also available.
    I have installed the 8i software in a host and created the oracle service through ORADIM and pwd file through ORAPWD utility. Then copied the init.ora file under 'C:\Oracle\ADMIN\ORCL\PFILE' and the RMAN backup files under 'C:\Oracle\Ora81\DATABASE' folder.
    Now I can start the instance with the init.ora file but can not mount as control files are not there. when I try to restore the control files through RMAN as...
    RMAN> run
    2> {
    3> restore controlfile;
    4> }
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06172: not connected to recovery catalog database
    RMAN>
    Now without the catalog database how can I restore the control files and the database from the RMAN backup?
    I think the old RMAN metadata was stored in catalog database.
    Any suggestion please?
    regards

    Sorry I wrongly said that I do not have the DBID, I have DBID but I have controlfile backup as RMAN backupset, not in Binary. So even if I set DBID, RMAN asks for the catalog database, which is not available.
    As I worked...
    C:\>rman
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN> SET DBID=1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*****
    RMAN-06193: connected to target database (not started)
    RMAN> startup nomount
    RMAN-06196: Oracle instance started
    Total System Global Area 552011724 bytes
    Fixed Size 65484 bytes
    Variable Size 69357568 bytes
    Database Buffers 482514944 bytes
    Redo Buffers 73728 bytes
    RMAN> run
    2> {
    3> allocate channel ch1 type disk;
    4> restore controlfile;
    5> alter database mount;
    6> }
    RMAN-03022: compiling command: allocate
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: allocate
    RMAN-06172: not connected to recovery catalog database
    RMAN> shutdown
    RMAN-06402: Oracle instance shut down
    RMAN> set dbid 1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*** nocatalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN> connect target sys/**** nocatalog;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found ";": expecting one of: "allocate, alter, beginli
    ne, catalog, change, connect, create, crosscheck, debug, delete, drop, exit, end
    inline, host, {, library, list, mount, open, print, register, release, replace,
    report, reset, resync, rman, rpctest, run, set, sql, "
    RMAN-01007: at line 1 column 36 file: standard input
    RMAN> exit
    Recovery Manager complete.
    C:\>rman target sys/**** nocatalog
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN-06193: connected to target database (not started)
    RMAN> run{
    2> allocate channel ch1 type disk;
    3> restore controlfile;
    4> alter database mount;
    5> }
    RMAN-03022: compiling command: allocate
    RMAN-03023: executing command: allocate
    RMAN-08030: allocated channel: ch1
    RMAN-08500: channel ch1: sid=12 devtype=DISK
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-08031: released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06003: ORACLE error from target database: ORA-01507: database not mounted
    ORA-06512: at "SYS.X$DBMS_RCVMAN", line 923
    ORA-06512: at line 1
    RMAN-06097: text of failing SQL statement: begin dbms_rcvman . setDatabase ( upp
    er ( :dbname:dbname_i ) , :rlscn , :rltime , :fhdbi:fhdbi_i ) ; end ;
    RMAN>

  • How to clone database from backup without access to original DB

    I want to create a new database from existing backup files and rolling forward some of the archivelogs (preferably with a new name and with different directory layout).
    How can I achieve the task on a separate test server (without access to the original database)? I found a lot of sources ( e.g. http://www.oracle-base.com/articles/11g/DuplicateDatabaseUsingRMAN_11gR2.php ) but all with connection to original DB (e.g. entries in tnsanmes.ora)
    Backup runs a simple
    BACKUP DATABASE PLUS ARCHIVELOG;
    DB Version is 11.2.0.2 on Linux.

    Many thanks to your help. Finally I was able to restore the DB. The steps I used (similiarly also mentioned in some of the links above).
    1.) Copy backup (backupset, autobackup, archivelog) to the new server into directories
    /export/restore/autobackup/2012_03_01
    /export/restore/autobackup/2012_03_02
    /export/restore/archivelog/2012_03_01
    /export/restore/backupset/2012_03_01
    2.) create pfile initDBREST.ora
    DB_NAME=DBREST
    3.) Mount DB
    ORACLE_SID=DBREST; export ORACLE_SID
    sqlplus / as sysdba
    STARTUP NOMOUNT;
    4.) Connect to auxiliary DB
    ORACLE_SID=DBREST; export ORACLE_SID
    rman AUXILIARY /
    5.) Create directories for new DB for datafiles in e.g. /export/oradata/DBREST/
    6.) Duplicate DB and reset parameter if necessary (e.g. memory_max as test server is lower on RAM)
    DUPLICATE DATABASE TO DBREST
    until time "to_date('02.03.2012 15:00:00','DD.MM.YYYY hh24:mi:ss')"
    DB_FILE_NAME_CONVERT '/export/fs1/oradata/oldDB/','/export/oradata/DBREST/', '/export/fs2/oradata/oldDB/','/export/oradata/DBREST/'
    SPFILE
    SET MEMORY_TARGET '2G'
    SET MEMORY_MAX_TARGET '2G'
    SET db_recovery_file_dest '/export/oradata/'
    SET db_recovery_file_dest_size '100G'
    BACKUP LOCATION '/export/restore'
    NOFILENAMECHECK;
    7.) create temporary tablespace

  • Create the database from Binary files

    Hi
    Can anyone assist is possoble to build a database with binary files.
    I lost all the database files in the standby server, im not having installation files. Can I build the database by copying the binary files from different sever? if possible please provide me the steps.
    Database Version : 8.1.7.4.0
    OS Version : Sun OS 5.8
    Venkat
    Edited by: R VENKAT on Nov 4, 2008 4:15 PM

    Hi Venkat,
    I think this isn't the best forum to answer your question but I'll try.
    You've lost your DATABASE FILES (means DBF files, control files (CTL), redo logs)? Correct?
    Or did you loose also the Oracle Home where the software has been installed?
    If you've lost your Oracle installation than you might do the following:
    1) Install 8.1.7.0 software on your standby server
    2) Install patch set 8.1.7 4 into this home
    3) Metalink-Note:70233.1 will describe the full process of creating an 8i standby database from your PROD.
    If you use RMAN than please have a look into Metalink-Note:203980.1 and Note:118409.1 - it'll describe also the init.ora parameters necessary for a standby
    You'll find a description of an ideal init.ora for the standby in ML Note:139809.1 and specific for Data Guard 8i here: ML-Note:132991.1
    Kind regards
    Mike

  • UAT Database from Standby database

    Hi,
    I'm using oracle 11.2.0.2.0 on Windows 2008,
    I have prod & standby databases, I want to create new UAT DB which wiil be same as prod,
    How Can create a UAT using standby database cold backup,
    can i use cold backup of standby database.
    Thanks
    Edited by: user10745179 on Oct 22, 2012 12:42 PM

    This would be a database duplication from backup with RMAN. A Catalog will help, particularly as you are working in a Data Guard environment, but it is a straightforward and well documented operation:
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#i1008564

  • How can I create a database from a sharepoint using entity framework

    Hello All,
    I want to develop a data base from SharePoint list independently. The column name are based on a SharePoint list eg: Contact-list (will be having 10 columns)
    can any one please suggest me an idea on how to do this task? Which Visual Studio template is suitable for this purpose?
    I confused with starting with following Visual studio template!!!
    Empty SharePoint Project??, Business Data Connectivity Model??, ASP.Net Web application??
    Somebody please help me soon....
    I am using SharePoint 2010 and Visual Studio 2010

    Hey,
    basically you should start with an empty SharePoint 2010 project where you add an List-EventReceiver. This Receiver should point to the url of the list and handle the ItemAdded-Event. In this method you place the code to create the database, for example
    with a SQL-Statement.

Maybe you are looking for

  • Z2 Waterproof, NOT!! DO NOT BUY THE Z2!

    So, I just got a Z2 two weeks ago. Used for a couple days and then took my daugther to a waterpark. Had the phone in my swinsuit pocket while running around after her. I made sure that both tabs were completly closed and at no point was the phone sub

  • Batch management with transactions

    Dear Gurus, My user has a material which has last transaction in May-2014 and wants to activate the batch management. I know the total stock and total value have to be removed by any means before activating the BM. My question is: Whether my work-aro

  • Can I download images from a DVD created with a newer version of iPhoto?

    Hi, my first discussion forum! Why can't I download image files from a DVD created on my mother's computer(iMac G4 with Mac OS 10.4.11)?. She's running iPhoto6 and I'm running iPhoto5. Are'n't they compatible? The disc loads up OK then says at the bo

  • Computer doesn't load page correctly and freezes up since installing Yosemite.

    Pages don't load correctly and computer freezes up ever since installing Yosemite. Help!!

  • Easy question about apps licence

    hi all i will be able to use the games i'm buying now when i'll buy the new iphone in the future or i m paying to have them ONLY on this iphone from which i'm writing... thx!