control trace

my senior dba told me to take the backup the control file..
i gave the command
alter database backup controlfile to trace;
I saw 2 trace file is formed at a particular time 1:00 pm
in that directory..
can I copy manully and store in a directory called backup-control.
nobleitAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
>>I saw 2 trace file is formed at a particular time 1:00 pm
in that directory..

Only one should hold your controlfile backup.  Edit them to see which one.

>>can I copy manully and store in a directory called backup-control.

Yes.  a trace controlfile backup is a flat text file.

Verify with your DBA that is the backup they wanted.  They might have wanted a binary controlfile backup using something like RMAN or just not providing 'to trace'.
nobleitAuthor Commented:
I tried to open it is not readable...
slightwv (䄆 Netminder) Commented:
Tried to open what?  .trc files in the BDUMP folder should be flat text files.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

nobleitAuthor Commented:
ok
I tried to open in notepad

this is the content.
2@2|2|01agq0oG1"1148|orcl|
M/01agq0oG1~71L2
6?aaZgq0oG1~k9+
7?mKoB~i1Z
3?xuM~kg
3?sNx+V2~2V
N?9e7~6231
7?Ke7~Pxs


this is ok is this a flat file..
nobleitAuthor Commented:
or it looks like this

Trace file c:\app\mathew\diag\rdbms\orcl\orcl\trace\orcl_ora_1148.trc
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Windows XP Version V5.1 Service Pack 3
CPU                 : 2 - type 586, 2 Physical Cores
Process Affinity    : 0x00000000
Memory (Avail/Total): Ph:532M/1917M, Ph+PgF:1169M/3811M, VA:1267M/2047M
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 19
Windows thread id: 1148, image: ORACLE.EXE (SHAD)


*** 2011-04-04 18:02:58.296
*** SESSION ID:(170.5) 2011-04-04 18:02:58.296
*** CLIENT ID:() 2011-04-04 18:02:58.296
*** SERVICE NAME:(SYS$USERS) 2011-04-04 18:02:58.296
*** MODULE NAME:(sqlplus.exe) 2011-04-04 18:02:58.296
*** ACTION NAME:() 2011-04-04 18:02:58.296
 
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x1)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x1)

*** 2011-04-04 18:03:01.390
kwqmnich: current time::  1:  3:  1
kwqmnich: instance no 0 check_only flag 1
kwqmnich: initialized job cache structure

*** 2011-04-04 18:47:46.296
*** MODULE NAME:(Oracle Enterprise Manager.pin EM plsql) 2011-04-04 18:47:46.328
*** ACTION NAME:(start) 2011-04-04 18:47:46.328
 
-- The following are current System-scope REDO Log Archival related
-- parameters and can be included in the database initialization file.
--
-- LOG_ARCHIVE_DEST=''
-- LOG_ARCHIVE_DUPLEX_DEST=''
--
-- LOG_ARCHIVE_FORMAT=ARC%S_%R.%T
--
-- DB_UNIQUE_NAME="orcl"
--
-- LOG_ARCHIVE_CONFIG='SEND, RECEIVE, NODG_CONFIG'
-- LOG_ARCHIVE_MAX_PROCESSES=4
-- STANDBY_FILE_MANAGEMENT=MANUAL
-- STANDBY_ARCHIVE_DEST=%ORACLE_HOME%\RDBMS
-- FAL_CLIENT=''
-- FAL_SERVER=''
--
-- LOG_ARCHIVE_DEST_10='LOCATION=USE_DB_RECOVERY_FILE_DEST'
-- LOG_ARCHIVE_DEST_10='OPTIONAL REOPEN=300 NODELAY'
-- LOG_ARCHIVE_DEST_10='ARCH NOAFFIRM NOEXPEDITE NOVERIFY SYNC'
-- LOG_ARCHIVE_DEST_10='REGISTER NOALTERNATE NODEPENDENCY'
-- LOG_ARCHIVE_DEST_10='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED NODB_UNIQUE_NAME'
-- LOG_ARCHIVE_DEST_10='VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILES)'
-- LOG_ARCHIVE_DEST_STATE_10=ENABLE
--
-- LOG_ARCHIVE_DEST_1='LOCATION=C:\app\Mathew\product\11.1.0\db_2\RDBMS'
-- LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'
-- LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM EXPEDITE NOVERIFY SYNC'
-- LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'
-- LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED NODB_UNIQUE_NAME'
-- LOG_ARCHIVE_DEST_1='VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILES)'
-- LOG_ARCHIVE_DEST_STATE_1=ENABLE
--
-- Below are two sets of SQL statements, each of which creates a new
-- control file and uses it to open the database. The first set opens
-- the database with the NORESETLOGS option and should be used only if
-- the current versions of all online logs are available. The second
-- set opens the database with the RESETLOGS option and should be used
-- if online logs are unavailable.
-- The appropriate set of statements can be copied from the trace into
-- a script file, edited as necessary, and executed when there is a
-- need to re-create the control file.
--
--     Set #1. NORESETLOGS case
--
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- Additional logs may be required for media recovery of offline
-- Use this only if the current versions of all online logs are
-- available.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
--  ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
LOGFILE
  GROUP 1 (
    'C:\APP\MATHEW\ORADATA\ORCL\REDO01.LOG',
    'C:\APP\MATHEW\ORADATA\ORCL\REDO01B.LOG'
  ) SIZE 50M,
  GROUP 2 'C:\APP\MATHEW\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
  GROUP 3 'C:\APP\MATHEW\ORADATA\ORCL\REDO03.LOG'  SIZE 50M
-- STANDBY LOGFILE
DATAFILE
  'C:\APP\MATHEW\ORADATA\ORCL\SYSTEM01.DBF',
  'C:\APP\MATHEW\ORADATA\ORCL\SYSAUX01.DBF',
  'C:\APP\MATHEW\ORADATA\ORCL\UNDOTBS01.DBF',
  'C:\APP\MATHEW\ORADATA\ORCL\USERS01.DBF'
CHARACTER SET WE8MSWIN1252
;
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE 'C:\APP\MATHEW\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2011_04_04\O1_MF_1_1_%U_.ARC';
-- ALTER DATABASE REGISTER LOGFILE 'C:\APP\MATHEW\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2011_04_04\O1_MF_1_1_%U_.ARC';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE
-- All logs need archiving and a log switch is needed.
ALTER SYSTEM ARCHIVE LOG ALL;
-- Database can now be opened normally.
ALTER DATABASE OPEN;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\APP\MATHEW\ORADATA\ORCL\TEMP01.DBF'
     SIZE 20971520  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;
-- End of tempfile additions.
--
--     Set #2. RESETLOGS case
--
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- The contents of online logs will be lost and all backups will
-- be invalidated. Use this only if online logs are damaged.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
--  ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS  ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
LOGFILE
  GROUP 1 (
    'C:\APP\MATHEW\ORADATA\ORCL\REDO01.LOG',
    'C:\APP\MATHEW\ORADATA\ORCL\REDO01B.LOG'
  ) SIZE 50M,
  GROUP 2 'C:\APP\MATHEW\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
  GROUP 3 'C:\APP\MATHEW\ORADATA\ORCL\REDO03.LOG'  SIZE 50M
-- STANDBY LOGFILE
DATAFILE
  'C:\APP\MATHEW\ORADATA\ORCL\SYSTEM01.DBF',
  'C:\APP\MATHEW\ORADATA\ORCL\SYSAUX01.DBF',
  'C:\APP\MATHEW\ORADATA\ORCL\UNDOTBS01.DBF',
  'C:\APP\MATHEW\ORADATA\ORCL\USERS01.DBF'
CHARACTER SET WE8MSWIN1252
;
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE 'C:\APP\MATHEW\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2011_04_04\O1_MF_1_1_%U_.ARC';
-- ALTER DATABASE REGISTER LOGFILE 'C:\APP\MATHEW\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2011_04_04\O1_MF_1_1_%U_.ARC';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE USING BACKUP CONTROLFILE
-- Database can now be opened zeroing the online logs.
ALTER DATABASE OPEN RESETLOGS;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\APP\MATHEW\ORADATA\ORCL\TEMP01.DBF'
     SIZE 20971520  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;
-- End of tempfile additions.
--

the reason why I am asking is
when I try alter database backup controlfile to trace;
I am getting  two file in background dump_dest location..
slightwv (䄆 Netminder) Commented:
The following comments not to mention the commands following it should be a clue to rebuild a controlfile:

--Below are two sets of SQL statements, each of which creates a new
-- control file and uses it to open the database. The first set opens

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.