During daily refresh/clone alter database rename file genrating logs under $ORACLE_HOME/dbs with name c-1437102747-20130920-16

Did anyone have seen this behavior?
  DB version : 11.1.0.7
  OS : HP-UX Itanum
  EBS -11.5.10.2
We are doing daily refresh/clone of a database instance from production. Recently we are seeing the growth of $ORACLE_HOME/dbs directory during this
refresh.   During investigation we find out that
  1) When we rename the database files after database restoration. Each below command genrating the 24MB of log file under $ORACLE_HOME/dbs.
  Command :
  alter database rename file '/db02/prod/XDB.dbf' to '/db02/test/XDB.dbf';
alter database rename file '/db02/prod/a_archive01.dbf' to '/db02/test/a_archive01.dbf';
  Logfiles under $ORACLE_HOME/dbs on target :
  -rw-r----- xxxxx 24379392 Sep 20 05:30 ./dbs/c-1437102747-20130920-02
  -rw-r----- xxxxx 24379392 Sep 20 05:30 ./dbs/c-1437102747-20130920-03
  2) After few minutes, these logs got removed from the directory.
  3) Did not find anything unusual in the alert log.

These are controlfile autobackups.   Every time you make a physical change to the database structure, an autobackup is created.  In 11.2, the frequency is reduced -- for example if you make 5 changes in quick succession, one autobackup is created.
CONTROLFILE AUTOBACKUP ON    would be visible when you do a SHOW ALL in rman.
Hemant K Chitale

Similar Messages

  • Alter Database Remove File : Partition Files on different folders

    I need to remove partition files, once I switch the partition with staging table and empty/truncate the partition. 
    When I was running the code on my local machine I was passing variable @partition_file_name to following statement:
    Declare @partition_file_name varchar(128)='table_abc_201202',
    @database_name varchar(128)='test'
    Alter Database @database_name Remove File  @partition_file_name
    Note @partition_file_name is the logical name of the partition file.
    I found out partitions are saved in different folders in my Dev env...They are stored in 12 different folders which are named like 1-12.
    E.g:
    C:\DATA\2\table_abc_201202.ndf
    C:\DATA\3\table_abc_201203.ndf
    C:\DATA\4\table_abc_201204.ndf
    C:\DATA\5\table_abc_201205.ndf
    C:\DATA\2\table_abc_201302.ndf
    C:\DATA\3\table_abc_201303.ndf
    C:\DATA\4\table_abc_201304.ndf
    C:\DATA\5\table_abc_201305.ndf
    I am wondering , is SQL server with Alter statement is capable of getting the right path for each partition files and remove them accordingly? Or do I need to pass the physical path to the alter statement to get it removed. Though I tried doing that and
    got the error.
    ZK

    I am wondering , is SQL server with Alter statement is capable of getting the right path for each partition files and remove them accordingly? Or do I need to pass the physical path to the alter statement to get it removed. Though I tried doing that and
    got the error.
    Yes, SQL Server knows which physical file goes with which logical filename.  (To see that SQL does know this, do a SELECT * FROM sys.sysfiles - you'll see SQL has a row for every logical filename and that row has the corresponding physical file name.)
    And when you do the ALTER DATABASE REMOVE FILE, you must specify the logical filename.  You will get an error if you give the physical path.
    Tom

  • ALTER DATABASE/MODIFY FILE issue

    Greetings to all --
    We are running SQL Server 2008 R2 (SP3) - 10.50.6000.34 (X64), and running into what seems like a bug. One of the largest tables was moved to a separate file group a while ago, and now a large percentage of the rows from that table (about 50GB) , need to
    be removed.
    We wanted to reduce the amount of transaction log growth and the duration required for the delete. Recovery model was set to BULK_LOGGED before executing the following steps:
    1. create a new filegroup
    2. create a new file in that filegroup
    3. set the new filegroup to be the DEFAULT filegroup
    4. SELECT INTO new_table from original_table WHERE filter_condition
    5. drop original_table
    6. rename new_table to original_table
    7. remove original file from original filegroup
    8. remove original filegroup
    9. MODIFY the logical name of the new file to be the same as the logical name of the original logical name.
    ALTER DATABASE myDB
    MODIFY FILE ( NAME = new_logicalname, NEWNAME = original_logicalname)
    This fails:
    Msg 1828, Level 16, State 3, Line 1
    The logical file name "original_logicalname" is already in use. Choose a different name.
    I noticed that the original filegroup still persisted until I did a transaction log backup, but after that , there is no entry for that file in sys.databasefiles for that database.
    Checking sp_helpdb for that database shows only the new logical file name.
    Any thoughts would be much appreciated.

    This scenario is easily reproduced, and seems not to be "by design".
    I put my bets on Sean and say "by design".
    I can't put my finger on it, but it has to with doing restores, and particularly log restores. It does not seem to happen with a database in simple recovery. But for a database in full (or bulk_logged) recovery, there lingers a row in sysfiles1 and sysprufiles
    for the dropped file.
    sys.database_files is a view over sys.sysprufiles and it does not display the deleted file, but it is there with a certain status.
    In any case, I can't see that this is the end of the world. It is not likely that you refer to the name of that fill all around the house. But the next time you do this manouvre, you may want to rename the existing file before you drop it and create
    the new one.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • ALTER DATABASE RENAME DATAFILE, what really needs to bu run later?

    Hi!
    If I "alter database" and move some datafiles to newly added luns, do I need to run:
    On DB side:
    1) perl adcfgclone.pl dbTechStack (according new luns!)
    2) If 1) is yes, then probably have to run "perl adcfgclone.pl dbconfig $CONTEXT_FILE"?
    On APPS side:
    1) Autoconfig?
    Second question. If on on new LUN is only having archived log files (no db datafiles are on that lun), should they be involved in Number of DATA_TOP's on the target system?
    THX

    If I "alter database" and move some datafiles to newly added luns, do I need to run:
    On DB side:
    1) perl adcfgclone.pl dbTechStack (according new luns!)
    2) If 1) is yes, then probably have to run "perl adcfgclone.pl dbconfig $CONTEXT_FILE"?
    On APPS side:
    1) Autoconfig?Damir,
    Could you please elaborate more? Why would you need to run perl adcfgclone.pl if you alter the database and add more datafiles?
    Second question. If on on new LUN is only having archived log files (no db datafiles are on that lun), should they be involved in Number of DATA_TOP's on the target system?When cloning, it is not required to copy the archivelog files. DATA_TOPs should point to the mount points where datafiles are located.

  • Renaming files in OS X Snow Leopard with illegal chars..

    I'm still using Leopard but want to know if the behavior of renaming files is on par of that in, gasp, Windows Vista. I was jsut doing a lot of renaming and it reminded me of the days I used to use Vista when renaming a file and using an 'illegal' character it would pop-up a yellow dialog (not an error window) to remind me of the characters I can use only.
    In OS X Leopard 10.5x if I try to use e.g. ":" I get an error box and this then reverts the file back to its original name which erases all of what I had done, all for one char probably. On top of this the error box then gives me a cryptic message as to what the error was about:
    "The name "xxxxx" cannot be used.
    Try using another name, with fewer characters or no punctuation marks."
    I heard that the guys working on OS X 10.6 Snow Leopard tidied everything up, doing all those things they always wanted to do, I bet they didn't get many opportunities like that! And was hoping that they did something toward file rename?
    I'd expect that the erroneous char would be highlighted and some kind of error shown, but not to delete everything typed in. Can anybody tell me?
    Thanks.

    It's a unix thing, and not quite something I'd classify as needing to be cleaned up...
    • The only illegal character for file and folder names in Mac OS X is the colon “:”
    • File and folder names are not permitted to begin with a dot “.”
    • File and folder names may be up to 255 characters in length

  • Automator: Impossible to rename file using automator under Mac OS X Lion

    Hi,
    Before upgrade my iMac to MAC OS X Lion 10.7.2, I had service created with automator under snow leopard in order to rename my pictures file names by blocks instead of one by one. Since I'm using Lion, this one doesn't work anymore. I have completely recreate the service under Lion and the results is the same.
    You can find below my workflow that is easy. The problem is the message error in the history of automator application. The message is "impossible to rename file "file name" because this one should create conflict with existing file". I already test a lot of times with different name where I'm sure that this one doesn't exist on my Mac but all the time without success (verify also with search function under mac)
    If somebody can help me, it would be very interesting because I already tried to find answer on internet without success too.
    Thanks in advance for your help.

    the whole automator and in particular the record action was substantially rewritten in snow leopard. and the record action is slow, unreliable and you can't trouble-shoot it. it's a wonder it works at all. the only advice i can give is to use it as little as possible. if at all possible avoid it altogether. if you do need to use it try using keyboard strokes instead of the mouse movement. for example. use command+c and command+v for copying and pasting and use tabbing to choose the correct box on the page.

  • Where is the binary file come from in $ORACLE_HOME/dbs ???

    I installed new database and created a basic init.ora file with a setup of RMAN using control file for backup. When the database is up running, I got a binary file c-1783536203-20090218-01 in $ORACLE_HOME/dbs. The size is about 7MB. I removed it. But it will created back after a little while. Where should I configure in db or rman to eliminate the file? The database seems running fine.
    Thanks for advice.

    Hi
    Yes, you are right. It is auto backup controlfile. But I am using the same rman configuration for several databases. This is the only one produces the control file like that name and created in $ORACLE_HOME/dbs. All others are created in the /backup directory, not happen like that (creating file in $ORACLE_HOME/dbs).
    Here is the configuration for RMAN on control file:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/cntp/online/snapcf_cntp.f';
    I have to change just for this database in the rman (all rman are using control file not catalog):
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/cntp/online/controlfile_auto%F';
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/cntp/online/snapcf_cntp.f';
    Is there something else I have change to be able to use the configure setting like all other databases?
    Thanks.

  • How can i use automator to rename files erasing first 3 digits of their name?

    Actually in the files i am trying to rename the first 2 digits are numbers then space and then there is the file name i want to use. Hope this helps.

    Open the AppleScript Editor in the /Applications/Utilities/ folder and paste in the following text:
    tell application "Finder"
    set the_items to items of window 1
    repeat with this_item in the_items
    set name of this_item to (items 4 thru -1 of (get name of this_item)) as string
    end repeat
    end tell
    Navigate to the folder containing those files in the Finder and run the script.
    (65537)

  • Mv control files, redo.log, database fies

    Hello,
    I installed Oracle 10.2. on Unix.
    we have created file systems for our data/control files.
    some how we missed that part to define location for dbf, control & redo.log files during installation.
    My question is how to mv all control files, redo.log and dbf files to one location to another.
    for. eg:
    currently there are installed in /opt/oracle/oradata.
    now i want o move in /u03/oradata.
    Please note:
    Prior to that I'd like to put in archive log mode.
    shutdown immediate;
    startup mount;
    alter database archivelog;
    alter database open;
    DN

    For DB and Redo files
    conn / as sysdba
    shutdown immediate;
    startup mount
    host
    $ cp old_name new_name
    $ exit
    alter database rename file old_name
    to new_name;
    alter database open
    host
    $ rm old_name
    $ exitFor control files
    1. Shut down the database.
    2. Copy an existing control file to a different locations, using operating system commands.
    3. Edit the CONTROL_FILES parameter in the database's initialization parameter file to add the new control file's name, or to change the existing control filename.
    4. start the database.
    Message was edited by:
    tekicora

  • How to rename files by folder name in applescript

    Hi,
    I need to be able to rename files within a folder to the folder name. I have a work flow and script that allows me to find the files within a folder, enter a new file name and starting sequence number in tow seperate dialogue boxes. What I want to be able to achieve is to rename the files without manually entering the name... I still want to be able to manually enter the number.

    Use code such as:
    tell application "Finder"
    set the_folder to (choose folder)
    repeat with this_file from 1 to (count (get files of the_folder))
    set name of file this_file of the_folder to (name of the_folder) & " " & this_file
    end repeat
    end tell
    replacing the last this_file on the fourth line with the variable which contains the number.
    (104354)

  • Using Automator to Rename Files

    I can't figure out how to rename files so that the number in the name is in parentheses. For example Dog 1.jpg should be changed to Dog (1).jpg. How can I accomplish this in Automator?

    ok. the following should work. paste it into AppleScript Editor. select the files you want to rename in finder and press "run" in script editor. you might want to test it on a small number of files first.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder"
    set selected_items to selection
    repeat with this_item in selected_items
    set current_name to name of this_item as text
    set current_extension to name extension of this_item
    set length_extension to length of current_extension
    set name_no_ext to text 1 thru (-length_extension - 2) of current_name
    set AppleScript's text item delimiters to " "
    if (number of text items of name_no_ext > 1) then
    set z to last text item of name_no_ext --get the number at the end of the name before the extension
    set name of this_item to do shell script "echo " & quoted form of current_name & "|sed 's/" & z & "." & current_extension & "/(" & z & ")." & current_extension & "/'"
    end if
    set AppleScript's text item delimiters to ""
    end repeat
    end tell</pre>

  • How to source a database .env file?

    I know there is envshell.cmd under APPL_TOP so when I run it create envrionment for Application tier.
    But I do not see envshell.cmd under RDBMS_HOME, so how can I source database .env file?

    Hi
    As you know the database environment file will be under $RDBMS_ORACLE_HOME, Just run the file using windows command syntax. But in unix,it is . <SID>_HOSTNAME.env file.                                                                                                                                                                                                                                                                                                                                                       

  • ORA-1092 signalled during: alter database open...

    When trying to startup the db runnint into following error:
    SMON: enabling cache recovery
    Sat May 16 10:35:12 2009
    Successfully onlined Undo Tablespace 1.
    Sat May 16 10:35:12 2009
    SMON: enabling tx recovery
    Sat May 16 10:35:12 2009
    Database Characterset is UTF8
    Sat May 16 10:35:13 2009
    Errors in file d:\oracle\visdb\9.2.0\admin\vis_apps\udump\vis_ora_2200.trc:
    ORA-00600: internal error code, arguments: [4193], [2391], [2395], [], [], [], [], []
    Doing block recovery for fno: 10 blk: 159
    Sat May 16 10:35:17 2009
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 3 Reading mem 0
    Mem# 0 errs 0: D:\ORACLE\VISDATA\LOG2.DBF
    Doing block recovery for fno: 10 blk: 153
    Sat May 16 10:35:18 2009
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 3 Reading mem 0
    Mem# 0 errs 0: D:\ORACLE\VISDATA\LOG2.DBF
    Sat May 16 10:35:18 2009
    Errors in file d:\oracle\visdb\9.2.0\admin\vis_apps\udump\vis_ora_2200.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [4193], [2391], [2395], [], [], [], [], []
    Error 607 happened during db open, shutting down database
    USER: terminating instance due to error 607
    Sat May 16 10:35:19 2009
    Errors in file d:\oracle\visdb\9.2.0\admin\vis_apps\bdump\vis_pmon_2288.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    Instance terminated by USER, pid = 2200
    ORA-1092 signalled during: alter database open...
    Pl. advice to recover from this suitation. New to recovery/bkup.
    Thanks,
    Sashi.

    00607, 00000, "Internal error occurred while making a change to a data block"
    // *Cause:  An internal error or memory exception occurred while Oracle was
    // applying redo to a data block.
    // *Action: call Oracle Support                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • ORA-301 Signalled during: ALTER DATABASE ...

    Hi,
    I tried to add 4 standby redologs to our standby setup, and first file went well.
    theothers already got error ORA-301:
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 8 '/export/home/oracle/logs/redo8.log' SIZE 2G
    Fri May 31 15:31:22 2013
    Completed: ALTER DATABASE ADD STANDBY LOGFILE GROUP 8 '/export/home/oracle/logs/redo8.log' SIZE 2G
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 9 '/export/home/oracle/logs/redo9.log' SIZE 2G
    ORA-301 signalled during: ALTER DATABASE ADD STANDBY LOGFILE GROUP 9 '/export/home/oracle/logs/redo9.log' SIZE 2G...
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 10 '/export/home/oracle/logs/redo10.log' SIZE 2G
    ORA-301 signalled during: ALTER DATABASE ADD STANDBY LOGFILE GROUP 10 '/export/home/oracle/logs/redo10.log' SIZE 2G...
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 11 '/export/home/oracle/logs/redo11.log' SIZE 2G
    ORA-301 signalled during: ALTER DATABASE ADD STANDBY LOGFILE GROUP 11 '/export/home/oracle/logs/redo11.log' SIZE 2G...
    Fri May 31 16:33:39 2013
    I tried to track any info in the web and metalink, but it's the first time I encounter an ORA error with no documentation... :(
    Some facts:
    The oracle is 11.2.0 on Linux
    There is no space issue on disk
    Thanks for any help/ideas...

    thanks for the reply.
    first one I stated in the original post. there is tons of storage :)
    for the others 2 -
    user has priviledge... he created the first file succesfully...
    those files do not exist on the disk already.
    Thanks

  • ORA-279 signalled during: ALTER DATABASE RECOVER  automatic standby databas

    Hi,
    oracle server:8.1.7.0.0
    os:solaris 5.9
    we created standby server by taking coldbackup of primary server and we are using rsync to syschronize the archive log files between production and standby servers but every over we recover the standby server by executing
    sql>recover automatic standby database:
    but in alert log file i am getting the following error :
    but when i googled for ora-279 error some people says it is default behaviour and can it be ignored and why it is asking next logfile.
    Media Recovery Log /oratranslog/arch_1_1701118.arc
    Wed Mar 26 21:35:34 2008
    Media Recovery Log /oratranslog/arch_1_1701119.arc
    Wed Mar 26 21:35:54 2008
    Media Recovery Log /oratranslog/arch_1_1701120.arc
    ORA-279 signalled during: ALTER DATABASE RECOVER automatic standby database...
    Wed Mar 26 21:36:24 2008
    ALTER DATABASE RECOVER CANCEL
    Wed Mar 26 21:36:24 2008
    Media Recovery Cancelled
    Completed: ALTER DATABASE RECOVER CANCEL
    Thanks and Regards
    Prakash
    juniour oracle dba

    damorgan,
    He is running 8.1.7.0. "DataGuard" scripts were initially available for 9i and then
    backported (and available as a seperate download) for 8i. Many 8i implementations
    did not and do not use DataGuard.
    Even if it is "Jurassic" {which it certainly is NOT}, they obviously do have a good
    reason for setting up a standby -- they DO have data of value. So, maybe they have
    not upgraded to 9i or 10g. There could be a dozen reasons
    1. Server HW/OS doesn't support 9i/10g, not budgetting for Server upgrade
    2. Application using Forms 2.x or 4.5 and not tested on 9i / 10g (4.5 not certified
    on 9i)
    3. Low end client PCs working perfectly with Character-mode forms, not powerful
    enought to run Jinitiator and Forms 6i / 9i
    Just because someone hasn't upgraded to 10g doesn't mean that they are at fault
    when you do NOT know the reason why they have not upgraded.
    Surely, they do know that 8i is desupported. Don't you think that their management
    has undertaken due diligence / cost-benefit analysis in considering whether they
    should upgrade to 10g ?
    Maybe they have another project implementing 10g in parallel and will be able
    to shutdown this environment soon. Maybe they don't need to do so.
    Do understand that people are intelligent enough to make their own decisions
    considering their particular circumstances and don't go shooting off with your
    assumption that anyone not running 10g is a dinosaur.

Maybe you are looking for

  • Can i use java only for database transaction with vb as a front end

    Hello All. I am sorry,i don't know whether this location is the correct location to post my question or not I have developed one application using complete vb only. That is completly desktop appliation and not suitable for centralized database. Is th

  • Archive Source Files with Errors

    Hi All, I need to archive my sending file in repective directory, if it has errors.. It is mentioned in library that A permanent error occurs either during the conversion of the file content, or in a module in the module processor. What is permanent

  • IPhoto is pointing to thumbnails, not full pix

    I had to rebuild a library a year or so ago, with the assistance of Apple help, which is where I suspect this problem started ... in any case: I just realized that a minority of the 6,000-plus pictures in iPhoto were fuzzy and had strangely low file

  • Query like matrix

    Hi, I need menu_name, form_name. If more than 1 submenus, how to do that? This is query SELECT fr.responsibility_name, fm.menu_name, fme.description menu_description, fff.function_name, ff.form_name, sub_menu.menu_name sub_menu_name, sub_menu.functio

  • User exit before the call of FM CCARD_AUTH_SIMULATION

    HI Gurus I wanna know if there is any user-exit before the call of FM CCARD_AUTH_SIMULATION, for the structure XVBAK. I want to manipulate with  the document category for that particular order before the order is saved. If anyone can provide me the u