Behavior of abnormal (Tag Date and place of automatic backup) RMAN script

Hi all

I have 11 GR 1 material running on Sun SOLARIS 10.

The parameter default RMAN for backup of control file is on DISK (format: u02/oracle/backup/rman/control/%F.ctl)


I have the RMAN script following (L0.rman):
Run {}
allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
tag backup "${CURRENT_DATETIME}" additional 0 filesperset 3 format 'DB_%T_%U.dbf' database more archivelog;
output channel ch1.
}
host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME) /';


This is called by the following (L0.sh) script:
#! / bin/bash
CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
export ORACLE_SID = EDWH
export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
mkdir/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME)
RMAN nocatalog target / cmdfile = L0.rman log = L0_EDWH_$ CURRENT_DATETIME.log


The anomalies are as follows:

1. the backupsets are created with a literal tag "${CURRENT_DATETIME}" instead of "201010051915" - why?
FYI, the command 'host' at the bottom of L0.rman successfully copies the file in the right directory (/ u02/oracle/backup/rman/201010051915 /).

2. after the backup finishes, the automatic backup for the control and spfile is taken on SBT_TAPE instead of DISK - why?

Any help will be appreciated.

1. well, this $CURRENT_DATETIME is variable shell, RMAN does not interpret it (she can't and doesn't have to.) HOST calls the external commands by spawning the shell in non-interactive mode and when placing the order for her, and since you have exported the variable is available to all processes having engineered and develop properly, then files are copied in the expected location. If you remove the '; CURRENT_DATETIME export"from your shell script, you will see files copied in/u02/oracle/backup rman / / because the variable will not be in the environment of the layed shell (it will be local to the script) and will expand to the empty string. You must pass $CURRENT_DATETIME to the RMAN script as a variable substitution so that the shell expands it before calling RMAN, like this:

L0. RMAN: {code}
Run {}
allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
backup format tag & 1 extra strength 0 filesperset 3 'DB_%T_%U.dbf' database archivelog;
output channel ch1.
}
host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman / $ CURRENT_DATETIME /';
{code}
L0.sh: {code}
#! / bin/bash
CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
export ORACLE_SID = EDWH
export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
mkdir/u02/oracle/backup/rman / $ CURRENT_DATETIME
RMAN nocatalog target / cmdfile = L0.rman using $CURRENT_DATETIME log = L0_EDWH_$ CURRENT_DATETIME.log
{code}

Note the * & 1 * variable substitution in the RMAN script and * using * keyword in the RMAN command line.

2. control file record is taken to the same media, that the last backup, this is normal. You can't "CONFIGURE CONTROLFILE AUTOBACKUP ON the DISC" or something like that, you can only enable or disable it and specify format for various types of devices. Default device type does not play here, you are precisely the configured default device type substitution tape backup.

Tags: Database

Similar Questions

  • Group by Date and place of DateTime

    Hello

    I'm looking for some counts that are grouped by date / time to date.  For example, I run the query below.

    ALTER session SET NLS_DATE_FORMAT = "mm/dd/yyyy";

    SELECT count (distinct contact_id) as charges, created in the created_date

    of s_con_chrctr

    where created > = TO_CHAR('07/01/2015') and created < = TO_CHAR('07/10/2015')

    and created_by = 1-J9455J'

    Group by created;

    The results are as follows.

    COUNTIES CREATED_DATE
    102/07/2015
    102/07/2015
    102/07/2015
    102/07/2015

    I think that what is happening because this column is a datetime column and his back one record for each time specific in this day.  The results, I'm looking for are...

    COUNTIES CREATED_DATE
    1502/07/2015
    1703/07/2015
    3504/07/2015
    1105/07/2015

    How to change my query to group by date and not by date time?

    So created is a date, then do not compare with TO_CHAR literals.

    If you want to skip the part time in your account, use TRUNC:

    SELECT count (distinct contact_id) as charges, TRUNC (created) as created_date

    of s_con_chrctr

    where created > = TO_DATE (July 1, 2015 "," MM/DD/YYYY ') and created< to_date('07/11/2015',="">

    and created_by = 1-J9455J'

    TRUNC Group (created);

  • Can I collect from each platform configuration data and place in separate by commas

    Can beta 3.0 v278 server and clients that are running the client software, using to get the
    information about these customers in comma separated format so I could put the data in a XLS
    worksheet or a url. ?  Information such as ip address, cpu.memory, netmask, applications etc?

    In the interest of those who read this thread who may not have seen the answers to the last question (in other threads):

    (1) plain ol ' Mozilla is not supported while Mozilla Firefox is supported. (This is the reason why the hypermike could not see the Actions of climbing).

    (2) in the Open Source of the HQ version you run control Actions on the tab control of a server or Service. You cannot trigger escalation control Actions.

    [In the subscription of the HQ version you can trigger actions of control within an alert definition].

  • I have a disc with Windows XP Home Edition and you want to win 7. then I lost my data and how can I backup my data?

    I wiah to upgrade my xp win for win 7. Can I lose my data? And how I can save it without copying the data to another location. Thank you

    On Monday, April 9, 2012 05:26:27 + 0000, AFG32 wrote:

    I wiah to upgrade my xp win for win 7. Can I lose my data?

    You not only peut lose, you go. You can not do a upgrade of
    XP to Windows 7. Although you can use a Windows 7 upgrade copy,
    Since XP, you need to do a clean install with it.

    And how I can save it without copying the data to another location. Thank you

    Copy your data to another location - to external media.
    As you apparently don't do this on a regular basis, let me tell you that you
    Play with fire.  It is always possible that a hard drive crash.
    user, near Thunderbolt error, virus, attack same flight of the
    computer, can result in the loss of everything on your drive. As has often
    been said, is not a question of whether you will have such a problem
    but when.

    You can read this article on the backup that I wrote: 'save '.
    "Your computer regularly and reliably" to
    http://www.computorcompanion.com/LPMArticle.asp?ID=314

    Ken Blake, Microsoft MVP

  • Photos Version 1.5 does not sort by date AND time

    I use a Macbook Air early 2015 running OS X El Capitan 10.11.5 & version 1.5 of the Photos. I took ~ 200 pictures at an event using a camera of 2 nights ago. I put the SD card in my camera in my Mac tonight and uploaded all the photos at a time. They are not in chronological order - arrrgghh!

    All photos were taken from Headquarters even of the same place the same evening. No adjustments were made at the time of the camera during the event. I checked the time / date stamp on the pictures - they are accurate, then I haven't adjusted their. The photos are simply in the random time sequence.

    I've read the support forums & tried to solve the problem by creating a record of the event, and then selecting all the photos, and then 'view' > 'fate' > 'keep sorted oldest first' and the order does not change.

    Can someone help me get these pictures in the order in which they were actually taken?

    Thank you!

    Photos sorts the images differently depending on which mode you are in.

    Special album 'All the Photos' is sorted by the date that the images have been added to your library.

    'Photos' special album is sorted based on the timestamp of image creation and organized automatically based on the date and place on Moments, the Collections and the years.

  • Time and date of the Iphone 6s set contacts automatically / backup

    Hi my name is Rebecca. Please be patient, this is a long story with a question to which Apple for a month and a half has not been able to solve. The end of February, I went to Sprint to upgrade my iphone 6 to a 6 s. (my 6 had no problem). The backup and restore to the other went off without a hitch. Two weeks having the phone, date and the value automatically switched to a GMT setting which is 4 hours ahead of New York. Assumption is that the phone has been deserted. I got a new phone and everything has been backed up and restored again. Less than two weeks later, the same goes for the 2nd iphone 6 s.  I went to Sprint and got a 3rd iphone 6 s. backup and restored all again. Less than a week later for the 4th time, the new iphone 6 s time and date switched to the time zone GMT 4 hours ahead of New York. At this point, I called Apple Tech support. A very nice tech Jason worked with me for 2 weeks to fix this. He sent Apple a 4th iphone 6s. We did a backup and when the new phone came in did us a restore. A few days later, the same problem. Apple accuses Sprint, Sprint complaint to Apple. At this point, Sprint said that my sim card was corrupted and he sent me a new. On the phone with Jason, we did a reset of the iphone 6s failing manufacturers. Removed the corrupted sim card and put in a new vacuum. Phone restarts and when you get to the Setup screen, it asks "set up as a new user or a user to return. Jason said as a new user.  I clicked on new user. Following her request for an apple ID. Jason said I should put in my existing apple id (although it has been activated on as a new user). At this point the phone wouldn't turn on. On the phone with Sprint. They did not understand as to why the phone would not activate. Jason suggested that I put my original sim card in (which was noted as corrupted), then the active phone. At this stage because I had not done a restore, the only information on my phone now an old backup who had my contacts and some of the notes, images etc. Jason said to do a restore after just 24 hours to be sure of the time and the date stay correct. Not happened. Less than 24 hours, the date and time that is set to automatic changed to the GMT time zone. Jason was out of suggestions. We left him there. I am very angry to pay more than $800 for an iphone that feature very very important does not work. On mine, I restored my phone and thought what I'd do. I then did a backup. I'll stop my icloud. I have reset my builders phone by default and when I went through the whole upward I plugged my phone in itunes and restored my phone from my computer backup. (Icloud is always OFF). Less than 24 hours later at the date and time in GMT area again. Once again, that I have a phone very very expensive with a feature that is vital for me, I can't use. Yes, I could turn the machine off, but I shouldn't do that. So here's my question: Iphone 6, I have not had any problems with my icloud or my sim card or the date and time. 6 s IPhone that I do. I got iphone 4 brand new 6s with the same problem. Is - that my sim card is corrupt and transfer information corrupt, though only it worked fine in my iphone 6? Second question: I don't want to sign up for a new apple id and start from scratch. This will screw up my gmail which is linked to the apple ID. How can I back up my contacts only on my computer and then be able to reset my phone manufacturers by default, then erase all information from my existing apple ID in order to use again, but only restore contacts which is the worst part of transfer phones. Apps and notes, photos and all the rest is not a problem to start from scratch, but contact is almost impossible to have to type each hand one by one. Please someone out there with a solution. Thank you in advance.

    Two recommendations.

    1 post this issue on your part on the iphone forum, to confirm the number two with someone else.

    Use iPhone

    2. you must stop working with Apple. Your iPhone download the signal giving them news of the time and origin of this signal

    I have no idea, but it's not from Apple. Coming here or talk to Jason you wasting your valuable time. It is at least

    get paid for it, you're not. Every second that you type in this position, mine or every second you spent on reading

    the phone with Apple after the second phone had the same problem you've wasted talking to the wrong party. Even than calling your

    manufacturer of furnace you paid 5000 for oven when your gas is not delivered on time or bad quality. And I have

    don't say it's Sprint, cause I don't know, but it's something that gives this info to your phone.

  • RAC and non-RAC db backup script

    Hi all

    I need to create a hot backup RMAN script for a hot full backup of database RAC 2 nodes 11.2.0.4 version.

    I have a script that works perfectly in the stand-alone database. This script ran in the database of no - ASM no CARS.

    It is: if I implement the rman script no CARS on a RAC 2 nodes using ASM database, should I change something? I don't have much experience with rman.

    Thank you.

    KZ

    Hello

    same RMAN commands should work in the CARS and environment not RAC, but it depends on how you have configured the script.

    have you configured snapshot controlfile on shared location?

    RMAN > show parameter snap

    Thank you

  • How to transfer pictures from iphone to PC and keep the date, time and place

    How to transfer pictures from iphone to PC and keep the date, time and place

    Hello Grumpelfuerer,

    Thank you for using communities of Apple Support.

    If I understand your message that you want to import your photos from your iPhone 6 s, as well as for your Windows PC. I would like to save my photos on my computer as well. There are two ways to do this. You can use the iCloud photo library allowing to synchronize photos between your devices or import your photos to your PC using Windows Photo Gallery. This article will provide you with the steps that you can use for both options:

    Import photos and videos from your iPhone, iPad or iPod touch

    Best regards

  • I recently updated my iPhone to iOS 9.3 6s and now my data and wifi are in place. Now I can't open the apps and send messages with data and barely on the wifi. I've tried everything, and it still does not work.

    I updated my iPhone to iOS 9.3 6s today and now my data and wifi are in place. Whenever I try to open an app or send text messages with data it does not at all. And with wifi, it just works. I tried just like turn roaming off and off and other lte but nothing seems to work at all. Can someone please?

    I have this same problem too, it really gets me upset

  • Weird behavior with Signal to simulate and loops

    I'm having a weird behavior with Signal to simulate and while loops. Attached a photo of my program. The problem I have is that when I use Stop to stop inside while loop, then use to restart the inner loop, simulate Signal instantly generates a bunch of points of data between when I pressed Stop and Go. By example, if I stop for 5 seconds, wait 5 seconds, then press Go, it will instantly generate data for t = 5 t = 10. What I need is for the generation of signals to stop when I press stop and continue where it left off when I press Go. How can I accomplish this? I have no idea why he exhibits the behavior described in the first place.

    Hi optometry.

    Can you give us a screenshot of the configuration window for the VI express to simulate signal? I was able to reproduce the problem when I used "Simulate the time of acquisition" at times, but the VI's are featured as you described you wanted when I used "run as fast as possible." Have you tried this setting?

  • PC Crash Recovery - tag, category, and other files

    I had to rebuild my PC due to viruses and other issues to get rid of the virus.

    I did much of the backup computer and hope that I have included some of the files Photoshop Elements 9 I need.

    Can anyone help me with information on where to find files that contain tags, categories, albums and other items that I created in the Organizer to help manage my photos?

    I want to make sure that these files are backed up regularly.

    Also if you know how to install these files after you reinstall PSE it would be useful also.

    Kind regards

    Amby N

    Find your backup for

    *.pse9db

    and restore all of the folder that contains this file (including subdirectories).

    You can restore this directory on any place, and in the Organizer, use the file... Catalogue... Custom location to navigate to the location of this directory to use its catalog.

    This is the system that I use for my data files: since I have several programs that use their own databases, I have created the following directory

    C:\Data

    and subdirectories under it for each program.  For example, I have a

    C:\Data\PSE Organizer\Catalogs\Test01

    Directory for my catalogue "Test01" and so on.  It is so easy to use WinZip to compress just to the top of all the C:\Data directory to create a backup file of all the data for all my programs.

    Ken

  • International date and time

    Last week, I was in the United States and took a lot of pictures.  Now that I'm back in Australia, Photos has automatically adjusted the time and date of the pictures to what was the time in Australia, not the time it was when I took the pictures.  It's incredibly annoying.  Does anyone know how to fix this please? Thank you very much.

    Hello! I had the same problem. I took photos in Asia, some on them without location data. I imported on my Mac at home in France. And then, something went wrong with the date and time. As I've learned here for photos without location data, Photos uses the time zone of the place where you perform the import. If had imported the photos in the same zone where I took them, everything would have been fine.

    The solution was to select all the photos and then manually set their time zone in Malaysia where I took them. You can do this with "setting date and time" to the 'Image' (or 'Photos' menu, or however, it is called in English).

  • Can I change the date and time on my account?

    Is there anywhere on this site where I can set the details of the date and time?

    When I posted a recent issue, the date and time were incorrect IE not my country date & time.

    Thank you

    Sylvia

    PS Sorry if this is the wrong place to post this question, not that the possibilities of passage are really there?

    The date and time are universally on us Pacific time zone. You can't change it.

  • I used my old firefox data and now he has bugged.

    My problem started after I deleted my profile. Not knowing what I was doing, I deleted my profile and restarted Firefox. I have had no Favorites, my theme had disappeared, etc.. After awhile, I realized how to use my old data from Firefox to retrieve my old profile. When I did this, I think I could go back to an older version of Firefox, but it says that everything is up-to-date. The problem is that when I go to some sites, it is said there is a buggy script (or loads very slow) and I have to stop the script while it is running. Another thing is that when I go to some Web sites (it varies on how many times it happens), it says that I have to update my Media Player. So I got the link and it automatically stops a .exe. I have a mac and that you can not use an exe file (don't tell me to use bootcamp, I don't have a big enough flash drive). When I just go on the web, it's the same thing. If it must operate only with Microsoft, so how do I stop the banner to appear?

    Thanks for the help and if you could not, thanks for trying.

    Maybe create a new profile and be more careful to recover data from an old profile.

    You can use a JSON backup in the bookmarkbackups folder to restore the bookmarks.

    You can transfer these files into the old data of Firefox on the desktop folder to retrieve specific data from your previous profile.

    • bookmarks/history: backups in the bookmarkbackups folder and perhaps places.sqlite, if you really need the history
    • other SQLite files cookies.sqlite (cookies) and formhistory.sqlite (saved form data)
    • logins. JSON and key3db for passwords in password manager
    • Permissions.SQLite and, possibly, content - prefs.sqlite for permissions and preferences of Site
    • cert8.DB stored intermediate certificates
    • sessionstore.js to open and pinned tabs and tab groups
  • Mac Mini 2010 Date and reset time

    SP, recently, apparently without any reason at all, date and time of my Mac Mini will reset to January 1, 2000 at 00:00:00 every time that I turn on/off. I tried various methods, such as getting it automatically sets the time and date, manually set the time and date and time zones and other things. Nothing has worked.

    As in the title, it's a Mac Mini 2010. I had this problem before with a full boot disk and other things, drive hard replacement necessary. He was replaced earlier this year, and I had no problem with him since then, so far. It is the break Safari (certificates are not recognized), internet and other applications such as soft. Any suggestions?

    A flat battery logic-board can cause this behavior. Refer to the user manual for replacement instructions. You may need to take the machine to a provider of services to have to replace the battery.

Maybe you are looking for

  • Replacing the CD/DVD with SSD

    Hi, I have a mid-2009 13 "Macbook, and I plan to replace the CD/DVD drive (which it doesn't) with an SSD, instead of replacing it with a new CD player. I would move so that OSX and software on the new SSD, leaving other data on my main hard drive. I

  • How can I repair the LCD on my Satellite A40?

    The LCD on my Toshiba Satellite A40 monitor has a problem of 'mechanical problem '. It does not yet support as it should. My question is: is it possible to find an instruction for replacing the LCD screen. But I used hours with no result, so I hope y

  • PXI-6527 and PXI - 6025E unrecognized in MAX (RT - PXI)

    These maps to an older system that ran Labview 7.1, now installed in a new PXI RT, but they show NO-max. 2015-Labview and NOR-DAQmx 15.1, using Windows 7-64 bit I tried everything so far, you just can't get them to show. Can not install traditional D

  • soft ware up grade

    I am currently running windows xp edition family version 2002 service pack 3 on a computer with processor Intel (r) CORE (TM) 2 Quad q6600 E 2.40 ghz Ram 2.40 ghz 3.25. I want to keep up to my computer can someone advise on which windows package woul

  • Podcasts on slow speed?

    I have a 8 GB new Fuze and I noticed something weird.  The podcasts I downloaded are half, or a fraction, speed reading and for his idle.  Has anyone else encountered this problem?  Is there a fix or I would stay the * bleep * thing? See you soon