Backing up controlfile to trace, but in a diff location

With the alter database backup controlfile to trace, how can I specify a diff. location. I tried it this way but got an error: I want to move it to another location so that one of my scripts can pick up this file and move it somewhere else (part of a backup scenario we have):
SQL*Plus: Release 8.1.7.0.0 - Production on Wed May 16 09:45:39 2007
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> conn system@lifedev
Connected.
SQL> alter database backup controlfile to trace as 'c:\mytest.sql';
alter database backup controlfile to trace as 'c:\mytest.sql'
ERROR at line 1:
ORA-00933: SQL command not properly ended

Hi,
Yeap...just try it....
SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 16 11:54:51 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/opt/app/oracle/admin/ORA102/control.trc';
Database altered.
SQL> ! ls -l contr*
-rw-r--r-- 1 oracle oinstall 6285 May 16 11:55 control.trc
SQL>

Similar Messages

  • What are the consequences of not backing up controlfile in hot backup.

    Hi All,
    We have 8i,9i, 10g and 11g database. The unfortunate thing is that we are using this user managed hot backups for backing up our database. and I have no idea for what reason, we are not backing up the controlfile. Anyway, I would like you to comment on this, they said, they will recreate a text based controlfile and do the recover database until cancel using backup controlfile ; I know, if we have the path of all the datafiles , we can use this, but is this a right strategy ? of course, no one would agreed on this. I really appriciate, if somone could express his opinion in detail.
    Regards

    Hi,
    The database consists of the following files:
    Spfile/Pfile
    Controlfile
    Datafile
    Redo Log
    archivelog
    When we talk about backing up the database, (no matter how) must take backup up of all these files.
    If you are not taking these files in your backup you have a incomplete backup.
    Why not take a back up of control file to a binary file. Is more simple and fast restore controlfile using binary file.
    ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/backup/control.bkp';To Trace should be used to produce SQL statements that can later be used to re-create your control file.
    ALTER DATABASE BACKUP CONTROLFILE TO TRACE;Why not use RMAN? A resource with endless options and features.
    Using user-managed backup you have none options/feature compared with the use of RMAN.
    It can be used in all Oracle databases without additional license.
    Regards,
    Levi Pereira

  • Not generating controlfiles backup trace file

    Hello frndssss
    when i am issing this command ,
    sql>alter database backup controlfile to trace;
    output its showing : Database is altered .
    when I am looking the trace files in UDUMP dirrectory there is no file exist there
    what might be the reason ? my before trace files open mode is notepad

    thanks sajiv ,,,, now I m able to get backup trace file of a controlfile , but this i can do to generate 1 trace file that 2 we have to specify our name ,
    I need permanent solution for this and it has to trace at Udump location which i specified in parameter file ,
    see my dump destination
    SQL> show parameter dump_dest
    NAME TYPE VALUE
    background_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\BDUMP
    core_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\CDUMP
    user_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\UDUMP
    when I am giving this command ,
    alter database backup controlfile to trace;
    it has to go to udump dest ..... May I right , the process will be like this

  • Add date to backup controlfile to trace command

    A little background:
    I'm writting a rman script and want to include a controlfile to trace and a pfile.
    The commands I'm using are:
    alter database backup controlfile to trace as 'd:\oracle\backup\controlfile.bak';
    create pfile='d:\oracle\backup\pfile.bak' from spfile;
    However, I want the file to be controlfile.bak.theDate, ie controlfile.bak.20090323, as I want to keep so many days worth and not overwrite the file.
    How can I add the date in this way?
    Thanks in advance.

    I'm writting a rman script and want to include a controlfile to trace and a pfile.The commands I'm using are:
    alter database backup controlfile to trace as 'd:\oracle\backup\controlfile.bak';
    create pfile='d:\oracle\backup\pfile.bak' from spfile;
    However, I want the file to be controlfile.bak.theDate, ie controlfile.bak.20090323, as I want to keep so many days worth and not overwrite the file.
    How can I add the date in this way?>
    But why do you want to do so when RMAN itself can take the controlfile backup and of the pfile automatically.Why do want to get the trace of controlfile.In you script simply add
    backup current controlfile format '/location/ctl_%d_%T';
    backup spfile format 'location/sp_%d_%T';
    %d ---> The name of the database.
    %T ---> The year, month, and day (YYYYMMDD)
    Every time you take a backup, the controlfile and spfile with unique name will be present along with the database backup.
    Anand

  • Controlfile to trace

    Hi,
    I have a problem with the command:
    alter database backup controlfile to trace;
    When i execute this command the file is not generated.
    I look parameter user_dump_dest it's good.
    If i do a change by alter system set user_dump_dest=xxxx scope=Both i arrive to generate my file but whe i shutdown my database the problem continue again.
    Thanks

    Depending on your DB version, you could try
    alter database backup controlfile to trace as '<complete path of trace file>';
    example :
    SQL> alter database backup controlfile to trace as '/tmp/control.sql';

  • Will there be a fix for Firefox's problems with Hotmail. I have gone back to 3.5.9 but mostly I am disappointed by the lack of action on this serious problem where a major and critical feature of a major international website is unavailable in the Firefox

    Will there be a fix for Firefox's problems with Hotmail. I have gone back to 3.5.9 but mostly I am disappointed by the lack of action on this serious problem where a major and critical feature of a major international website is unavailable in the Firefox browser.
    == URL of affected sites ==
    http://www.hotmail.com

    We've reached out to the Hotmail team and they've determined that this is a bug in their code. (It was masked by a timing issue in 3.5 that was fixed in 3.6.) We've worked with them to develop a fix but they may not have deployed it yet.

  • My girlfriend gave me a $25 iTunes gift card for Christmas, so I switched to the Canada store and spend most of it with .02¢ remaining. *Now I want to switch back to my original store, but I can't.

    My friend gave me a $25 iTunes gift card for Christmas, so I switched to the US store and spend most of it with 11¢ remaining. *Now I want to switch back to my original store, but I can't. iTunes keeps saying "You have a store credit balance; you must spend your balance before you can change stores.*

    You might just have to contact Apple and ask them to remove it (losing it). Usually people clear a balance by buying one song and having the exact remainder charged  to their credit card, but if you don't have a US credit card you cannot do that.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • I changed my LCD last day and now i noticed all my pictures on my phone are gone. I tried to restore the back that I got yesterday but it wont let me because its telling me there is not enough space on my phone!!!

    I changed my LCD last day and now i noticed all my pictures on my phone are gone. I tried to restore the back that I got yesterday but it wont let me because its telling me there is not enough space on my phone!!! That's wierd because I didn't download any app or anything else since my last backup and on the other hand about 3000 pictures are gone, how come there is not enough space left! I also check my usage on my phone and it shows that i have about 7.0 GB pictures!!! BUT my photos is empty! I want my picture back on my phone any solution anyone?

    Thanks for your reply!
    I just called the guy who changed my LCD and asked him what happend, he said there were no pictures on your phone when you gave it to me! i know he is lying tho!
    My apple warranty is over and I have to pay them to get some help over the phone!

  • I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i c

    I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i can't because i don't have the earbuds and i have serches or them. now i am suck with a phone i don't like at all until my next upgrade. this is very dishearten

    1. If you are this unhappy with that phone, and the lost earbuds is the only thing stopping you from taking it back, why do not just buy some earbuds. That way you can get rid of that phone. It all depend upon how much you want to get rid of that phone.
    2. Yet if you are stuck with that iPhone, here is something might help you to control the data usage. By design, iPhones do turn off WiFi when they go dormant. So if a download is in progress and so forth when the phone goes dormant, it will switch to use cellular data, if this setting is left on. Therefore, from multi-sources I have learned that if you keep your iPhone connected to a power source, then it will stay connected to the available WiFi.

  • My past computer crashed and I am trying to get all my itunes songs back for my new computer, but even though I have downloaded all my past purchases some of them still aren't playing and can't be located. What can I do?

    My past computer crashed and I am trying to get all my itunes songs back for my new computer, but even though I have downloaded all my past purchases some of them still aren't playing and can't be located. What can I do? It is quite alot of lost songs/ money.....
    Thanks anyone who can help, Apple make it impossible to talk to anyone or contact and I can't navigate Express Lane
    x

    I realise there have been a number of threads like this now that I have started looking, the problem is the back-ups i made were saved to a server network which has now also gone down, a case of dreadful luck really. Is there any other way to get the music back?
    Regards

  • I locked my Ipod 1st generation in zombie farm went to the toilet came back tried to unlock it but i cant screen was blank i have tried everything please help

    i locked my Ipod 1st generation in zombie farm went to the toilet came back tried to unlock it but i cant screen was blank i have tried everything please help

    If you have tried everything, then by definition, there is nothing else to try.
    Perhaps if you explained what you tried someone can help.
    If you have actually tried everything, then there is nothing anyone can do to help.
    Did you try reset?
    iPod touch User Guide (For iOS 4.3 Software)

  • Every time I do the back up or sincroniz the I phone an error massage come up. No sincronize becouse no back up and no back up becouse no internet but I am on line! Can you help me? please

    Please Help Me ! I just bougth a new I phone and I did made the start up procedure and I did registered on I store but every time I do the sincronoization an error massage come up saing that i can not do that becouse there it has been not possible do the back up so I do the back but an error come up saing that is not possible do the the back up! PLEASE Help!

    I just performed the rebuild. It put a bunch of empty folders into my library that I had deleted in the past. But no where is the one folder that I had made yesterday with my 25 photos. I checked the orginial folder that I took them from and not there. It's odd that it's like they never exisited. So broken hearted. The last photo I had with my husband and I in it with his grandpa before he died is gone. Unless there is a way to get it off a back up on my phone somewhere. All of my photos' are backed up from my PC but nothing since owning this computer. cause this itunes icloud time machine stuff has me confused but will have to get the pictures printed and burned that I do have. That's what I was working on yesterday when this happened. Chose my first 25 I wanted to print and lost them and I"m afraid to touch the others now.

  • HT4623 can someone assist me with a solution to the problem with my iphone 5. I upgraded to IOS 6.1.4 and since then i have had the problem of No Sim. I restored to the factory settings using i tunes as i have my back up on my pc but still the same proble

    can someone assist me with a solution to the problem with my iphone 5. I upgraded to IOS 6.1.4 and since then i have had the problem of No Sim. I restored to the factory settings using i tunes as i have my back up on my pc but still the same problem. I have swapped sim and my Sim is working on other iphone with ios 6.1.3

    Try a new SIM from your carrier.  If that doesn't work, make a Genius Bar appointment and get your phone evaluated.

  • Hello, so today I realized that my iPhone with iOS 6 is frozen on the music. I can get back to the home screen but I can't get the music player to work because its frozen on the w's and will not respond to touch. I would be grateful for any help on this.

    Hello, so today I realized that my iPhone with iOS 6 is frozen on the music. I can get back to the home screen but I can't get the music player to work because its frozen on the w's and will not respond to touch. I would be grateful for any help on this.

    Hi deamayfield,
    Thanks for visiting Apple Support Communities.
    If your Music app is unresponsive, try restarting/resetting your iPhone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Best,
    Jeremy

  • How to find out the Correct Controlfile script Trace .trc file in /bdump

    Hi Guys
    This is the most childish queries in this forum ..
    I wanna know how to Find out the correct trace file when we Issue alter database backup controlfile to trace at sqlprompt for Creating controlfile script.
    As i find it a bit confusing to go through the same Date & almost same time .trc files out of hundreds of trace file in /bdump directory to find the correct one.
    if we 've to find the Alert log file in /bdump directory $ ls -l al* & we get the alert log file .... if there is any similar way to find out the controlfile script Trace file ?
    Thanks & regards
    MZ

    MZ_AppsDBA wrote:
    Hi Guys
    This is the most childish queries in this forum ..
    I wanna know how to Find out the correct trace file when we Issue alter database backup controlfile to trace at sqlprompt for Creating controlfile script.
    As i find it a bit confusing to go through the same Date & almost same time .trc files out of hundreds of trace file in /bdump directory to find the correct one.
    if we 've to find the Alert log file in /bdump directory $ ls -l al* & we get the alert log file .... if there is any similar way to find out the controlfile script Trace file ?
    Thanks & regards
    MZcreation of the does not happen automatically. What script, and when does it run, do you have that creates the control file trace? Look for files in that time frame. Better, modify that script to specifically name the file .. BACKUP CONTROLFILE TO TRACE AS ....

Maybe you are looking for