New datafile in standy config

My standby_file_management is set to auto. But when i added a new datafile it didnt get added on standby server..
my db version is 10.2.0
on linux

My standby_file_management is set to auto. But when i added a new datafile it didnt get added on standby server..If you enable standby_file_management=auto then you should able to get added/altered datafiles.
Check is your standby is functioning with primary or not? is it sync or not.

Similar Messages

  • Add a new datafile to the standby database

    Hi,
    i have a standby database in recovery managed mode.
    Now i must add a new datafile on the production database and i would like
    to know how i realized adding the new datafile on the stanby database.
    is it right when i do the follow steps?
    Before i add a datafile to the primary database,
    cancel the recovery on the standby database.
    -> add the new datafile on the primary database
    after all archived redo logs have been applied, cancel managed recovery:
    alter database recover managed standby database cancel;
    startup nomount
    alter database mount standby database;than
    ALTER DATABASE CREATE DATAFILE '/oracle/DB1/db1_9/data9' as '/oracle/DB1/db1_9/data9';
    alter database recover managed standby database disconnect;Thanks

    8.4.1.1 Adding a Tablespace and a Datafile When STANDBY_FILE_MANAGEMENT Is Set to AUTO
    The following example shows the steps required to add a new datafile to the primary and standby databases when the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    Add a new tablespace to the primary database:
    SQL> CREATE TABLESPACE new_ts DATAFILE 't_db2.dbf'
    2> SIZE 1m AUTOEXTEND ON MAXSIZE UNLIMITED;
    Archive the current redo log so it will get copied to the standby database:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Verify that the new datafile was added to the primary database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/t_db1.dbf
    /disk1/oracle/dbs/t_db2.dbf
    Verify that the new datafile was added to the standby database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/s2t_db1.dbf
    /disk1/oracle/dbs/s2t_db2.dbf
    8.4.1.2 Adding a Tablespace and a Datafile When STANDBY_FILE_MANAGEMENT Is Set to MANUAL
    The following example shows the steps required to add a new datafile to the primary and standby database when the STANDBY_FILE_MANAGEMENT initialization parameter is set to MANUAL. You must set the STANDBY_FILE_MANAGEMENT initialization parameter to MANUAL when the standby datafiles reside on raw devices.
    Add a new tablespace to the primary database:
    SQL> CREATE TABLESPACE new_ts DATAFILE 't_db2.dbf'
    2> SIZE 1m AUTOEXTEND ON MAXSIZE UNLIMITED;
    Verify that the new datafile was added to the primary database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/t_db1.dbf
    /disk1/oracle/dbs/t_db2.dbf
    Perform the following steps to copy the tablespace to a remote standby location:
    Place the new tablespace offline:
    SQL> ALTER TABLESPACE new_ts OFFLINE;
    Copy the new tablespace to a local temporary location using an operating system utility copy command. Copying the files to a temporary location will reduce the amount of time that the tablespace must remain offline. The following example copies the tablespace using the UNIX cp command:
    % cp t_db2.dbf s2t_db2.dbf
    Place the new tablespace back online:
    SQL> ALTER TABLESPACE new_ts ONLINE;
    Copy the local copy of the tablespace to a remote standby location using an operating system utility command. The following example uses the UNIX rcp command:
    %rcp s2t_db2.dbf standby_location
    Archive the current redo log on the primary database so it will get copied to the standby database:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Use the following query to make sure that managed recovery is running. If the MRP or MRP0 process is returned, managed recovery is being performed.
    SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
    Verify that the datafile was added to the standby database after the redo log was applied to the standby database.
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/s2t_db1.dbf
    /disk1/oracle/dbs/s2t_db2.dbf
    From Oracle Docs...

  • Add new datafile to logical standby database but not in primary

    Hi,
    Is it ok to add a new datafile to the SYSAUX tablespace on the logical standby database but not on primary? We are running out of disk space on the partition where SYSAUX01.dbf resides so we want to add a new SYSAUX02.dbf in another partition which has space. but this will only be on the logical standby not on primary, there is still lots of space in primary. standby_file_management is MANUAL and this is LOGICAL STANDBY not PHYSICAL.
    Is this possible or where there be any issues?
    Thanks.

    Logical Standby can differ from Primary, it can have extra tablespaces, datafiles, tables, indexes, users ...
    HTH
    Enrique

  • Can't add new datafile into a table space?

    Hi, Oraclers,
    I am learning Oracle. I found one problem: I can't add new datafile to an existing
    table space. I tried to add via OEM and SQLPlus. None of them works.
    I can see that the datafile, say ras01.dbf, is in my hard drive. But I can't see
    it via OEM datafile.
    Also, this datafile creating procedure has never stopped. In SQLPlus, after I
    submitte ths statement, after 7 days, this sql statement is still running. The
    same thing happened in OEM.
    The sql statement is:
    ALTER TABLESPACE "RASBLK"
    ADD
    DATAFILE
    'H:\ORACLE\PRODUCT\10.1.0\ORADATA\NMDATA\RAKBLK35.DBF' SIZE
    26214400K REUSE AUTOEXTEND
    ON NEXT 2048M MAXSIZE 30720M
    Oracle is 10g V10.1.0.2.0
    os is Window Server 2003 Service Pack 1.
    What's the problem?
    Thanks,
    Message was edited by:
    shinington

    so you have definitely tried to use a Winlows Server with NTFS for a 1TB++ Database ?
    I never heard of that and I wouldn't even dare to dream of that, but as stated above theoretically (that is: according to MS) this should work.
    But surely your process has crossed some internal limitations, at least that is what it looks like.
    I guess you must go to your %ORACLE_BASE%\admin\%SID%\bdump or udump directories to eventually find a trace file there.
    recommendation is: move to some kind of bigger system (Solaris,AIX).

  • Resize datafile or add new datafile which is good?

    Hi all
    we have 80 GB database size and only two tablespace have space around 60 Gb
    these two tablespace have one database each around 30 gb so
    My question is it good to resize current datafile or
    It it good to add new datafile ?

    Your question is which is "best"; add datafile or resize right? If yes, then I think below links will answer you :
    http://www.freelists.org/post/oracle-l/Datafile-size-Is-bigger-better,9
    datafile and size
    Bigfile or smallfile tablespace?
    Just go through these link. I am sure answer in it.
    Regards
    Girish Sharma

  • New datafile lost!

    anyone knows if a new datafile which is added into a tablespace and then is losted, is there any method to maintain the database working using the remaining datafile for the tablespace?
    thx.

    To re-create the control file if no backup for datafiles and controlfiles. Did you ever backup controlfile to trace? Pls consult Oracle Docs for creating controlfile.

  • Restore without the new datafile??

    We have a full backup (Veritas) of the database on sunday.Db is in archive log mode.
    AFter the full backup we created a datafile and it is not backed up.
    Now if we restore this backup how will it find this new datafile?
    Though the control file has this information, as we will restore the backup from sunday
    the control file of sunday will not have this information.
    So how do we proceed?

    Like Madrid suggested, you need to create an empty datafile as place holder for the missing datafile,
    For example, assume that the datafile ?/oradata/trgt/users01.dbf has been damaged, and no backup is available. The following statement re-creates the original datafile (same size) on disk2:
    ALTER DATABASE CREATE DATAFILE '?/oradata/trgt/users01.dbf' AS
                                   '/disk2/users01.dbf';Then you can start recover the database.
    Assuming you have
    1. All archived log files written after the creation of the original datafile are available
    2. The control file contains the name of the damaged file (that is, the control file is current, or is a backup taken after the damaged datafile was added to the database)
    More info here
    Re-Creating Datafiles When Backups Are Unavailable: Scenario

  • Where to create new datafile

    Hi all,
    Oracle 10g EE, Server 2003 EE
    I use SAN storage for oracle_home directory, datafiles, RMAN backup files and Data Pump export .
    I have different disks for Oracle_home directory, for my tablespace datafiles, RMAN files and for Data Pump export.
    Disk that I use for datafiles is full and I don’t have free space for new datafile.
    Is it good to put new datafile on my RMAN backup disks or on Oracle_home disk?
    What is the cost to pay in terms of performance and security?
    Thanks in advance!

    In general it is a bad idea to mix your primary and backup data -- what happens if the backup disk goes bad? How can you recover the primary data that was on there?
    Why can't you provision more space from your SAN for the additional data files? If you put the new datafiles anywhere you are going to be doing heavy read/write activity (eg. backups, exports) then you might see IO contention, but that is completely dependent on your infrastructure and DB load. I would say the best bet is to TEMPORARILY put the datafiles in the oracle home, with the near-term intention of moving them back into the disk with the rest of the datafiles, or perhaps onto a new disk for new datafiles.

  • Create new DataFile in another partition??

    Hi,
    I used database oracle10g, and I set (oradata) in partition (C) and i want to load large data on database but i haven't enough space in this partition .
    Can I create new DataFile in another partition like partition (D) ???
    And if yes, will it effect in the Performance the Database ???
    Thank For Replay

    user12254348 wrote:
    Hi,
    I used database oracle10g, and I set (oradata) in partition (C) and i want to load large data on database but i haven't enough space in this partition .
    Can I create new DataFile in another partition like partition (D) ???
    And if yes, will it effect in the Performance the Database ???
    Thank For ReplayDepends on a lot of things:
    1- D and C are physically separated disks OR there are part of the same physical disk but logically separated ?
    2- Where are located your system datafiles, controlfile, logfile, indexes?
    3- Are you using ASM?
    It depends a lot of your storage and database design.
    I suggest you test and compare the performance using AWR reports and view Oracle statistics via the Windows Performance Monitor (perfmon)..

  • How to restore from an incremental backup when new datafiles are added

    1) Source - We have a base backup and then take differential (LEVEL 1) backups every day. Due to business needs, new datafiles keep added daily in the database. So you will see an incremental backup having new datafiles that got created after the LEVEL 0 backup.
    2) Destination - We want to restore this database in the destination host "continiously".
    a) I first restored from the BASE FULL - LEVEL 0 . This was successful (restored and recovered, but did not OPEN the database)
    b) But restoring a LEVEL 1 now on top of the already restored LEVEL 0 makes the restore start all over again if there are NEW DATAFILES added after the LEVEL 0 backup in the source database.
    This is not a problem when no new datafiles are added/modified between the "BASE" and "LEVEL 1" backup.
    So how do you "just restore only the new datafiles" instead of "starting from BASE LEVEL 0 restore" again " ?
    -Thanks
    Srini

    Hi Srini,
    So how do you "just restore only the new datafiles" instead of "starting from BASE LEVEL 0 restore" again " ?The recovery process after the restore should add the newly created datafiles on the destination host.
    Can you check by querying v$datafile in mount mode and post the output?
    Regards,
    Tycho

  • Error While addding a new datafile

    Dear All,
    We have the tablespace PSAPUSER1D in one of our production systems,which is 100% full .I am trying to extend the tablespace using brtools,but i am unable to do it and it is giving the following error.
    BR0280I BRSPACE time stamp: 2007-11-05 06.55.50
    BR0657I Input menu 303 - please check/enter input values
    Options for extension of tablespace PSAPUSER1D (1. file)
    1 * Last added file name (lastfile) ....... [/oracle/P01/sapdata1/psapuser1d_1.dbf]
    2 * Last added file size in MB (lastsize) . [273]
    3 - New file to be added (file) ........... [/oracle/P01/sapdata2/psapuser1d_1.dbf]
    4 ~ Raw disk / link target (rawlink) ...... []
    5 - Size of the new file in MB (size) ..... [273]
    6 - File autoextend mode (autoextend) ..... [yes]
    7 - Maximum file size in MB (maxsize) ..... [0]
    8 - File increment size in MB (incrsize) .. [20]
    9 - SQL command (command) ................. [alter tablespace PSAPUSER1D add datafile '/oracle/P01/sapdata2/psapuser1d_1.dbf' size 273M autoextend on next 20M maxsize unlimited]
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    c
    BR0280I BRSPACE time stamp: 2007-11-05 06.55.56
    BR0663I Your choice: 'c'
    BR0259I Program execution will be continued...
    BR1052W File psapuser1d_1.dbf is already used by the database
    <u><b>BR1055E Database file /oracle/P01/sapdata2/psapuser1d_1.dbf must be located in a subdirectory of 'sapdata' directory</b>BR0669I Cannot continue due to</u> previous warnings or errors - you can go back to repeat the last action
    BR0280I BRSPACE time stamp: 2007-11-05 06.55.56
    BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
    so please kindly give any suggestions.

    Dear Llanes,
    A strange thing that i notice in one of our systems is that we dont have the standard directory structure like this
    "/oracle/P01/sapdata1/usr_1/psapuser1d_1.dbf",
    but we have the following structure
    $ ls -l /oracle/P01/sapdata1
    total 168573168
    drwxr-xr-x   2 orap01   dba           96 Apr 21  2006 cntrl
    drwxr-xr-x   2 orap01   dba           96 Jul  7 21:52 erp_1
    -rw-r-----   1 orap01   dba      286408704 Nov  5 08:43 psapuser1d_1.dbf
    -rw-r-----   1 orap01   dba      268451840 Nov  5 08:43 psapuser1i_1.dbf
    -rw-r-----   1 orap01   dba      838868992 Nov  5 08:55 system_1.dbf
    Wherein the datafiles have been directly added to the sapdata1 directory,without the corresponding subdirectory.so how can  we proceed in this scenario.
    Regards
    Balaji.P

  • Post new artwork and screenshots/configs for Alopex (formerly ttwm)

    Post your screenshots and configs for Alopex here:
    .ttwm_config.h - edit: (this is old so I deleted it and I won't change it here)  My alopex configs are in my configs in my signature.
    On my netbook HP mini
    Edit:  config.h change--see sig link--this wm changes config.h like I change my underwear--just a sign that it's under active development.
    Last edited by bgc1954 (2013-05-04 14:24:40)

    Hey all!
    Here are my custom config.h and icons.h.
    Background is Fedora 11's King Concept. My status bar is being run by conky (conkyrc linked). And the programs featured on the cluttered image are dwb, htop and alsi (with a customized Arch logo) running in termite, and interrobang at the bottom (custom interrobangrc can be found here).
    [Edit]: Removed embedded custom config.h ('twas out-of-date; see new link for updated version), and updated picture links for 404s.
    [Edit2]: Updated links for name change.
    All the best,
    -HG
    Last edited by HalosGhost (2013-05-01 19:04:49)

  • New version of iPhone Config Utility?

    Does anyone know if/when a new iPhone Config Utility will be released?

    I believe that IPCU 3.4 was just released--I think on Oct 12
    Here's the link:
    For Mac - http://support.apple.com/kb/DL1465
    For PC - http://support.apple.com/kb/DL1466

  • New 8-Core Memory Config

    I am waiting on my new Mac Pro, and I have a question about the memory. I am going to install 4gb in addition to the 2gb that comes installed. I am ordering 2x2gb sticks from OWC. I am little confused on the which riser to put it on.. Should it go on the riser opposite of the one with the stock RAM?
    Thanks in advance for the feedback!

    Hi and sorry to jump in on this thread but i've just ordered two 1gb OWC modules but barefeats are saying that 2x 1gb and 2x 2gb configuration is not recommended.
    This is what they say:
    "CAN I KEEP THE TWO FACTORY 1GB FB-DIMMs INSTALLED?"
    Some of you ordered your Mac Pro with the basic two factory 1GB FB-DIMMs. You are asking if you keep those installed and just add two or four more sticks.
    If you add two more sticks, they have to match those first two. You can add two more 1GB sticks in slot 2 on both risers for a total of 4GB. You can NOT add two 2GB sticks to that slot or your system will only report 2GB total.
    A better scenario, if you insist on using those two factory 1GB FB-DIMMs is to order four 2GB FB-DIMMs, pull out the two factory 1GB FB-DIMMs, put the four 2GB FB-DIMMS in slots 1 and 2 on each riser, and put the two 1GB FB-DIMMs in slot 3 & 4 of the top riser. That will give you a total of 10GB.
    But if you want maximum memory throughput under all situations, we recommend either 8 matching 1GB FB-DIMMs, 8 matching 2GB FB-DIMMs, or 8 matching 4GB FB-DIMMs.
    Seems i don't gain from having 6gb?

  • To recover a database with old and new datafiles.

    Hi;
    Please Give a Solution for the following problem.
    First I shutdown the databae.
    Copy all the redolog,control file and Datafile except one.
    One datafile i miss at the time of copy.
    Then I start the database and do some transactions.
    At that time my system tablespace has been corrupted.
    So i copy the old backup and overwrite with the actul file.
    So one file backup is not there, that i forgot to take.
    At the time of opening the database it shows that datafile version is higher than the controlfile.
    Now what i did is came to mount stage and type the following command.
    ALTER DATABASE DATAFILE <FILENAME> OFFLINE DROP;
    After that i open the database.
    Now the problem is that missing file contain very important data.
    Is it possible to recover the data?
    Please give me an immediate solution.

    Is the database running in archive log mode? Do you have any export dump files for the data in question?

Maybe you are looking for