Re: backup controlfile to trace

2002-09-18 Thread Ron Thomas
If you want to do this method without a log file... your_file=$( sqlplus -s < Sent: Wednesday, September 18, 2002 10:23 AM What about: sqlplus -s

Re: backup controlfile to trace

2002-09-18 Thread Philip Douglass
Yes, you can certainly do that -- I was just disappointed that the script would have to be a shell script instead of just a sql script. I usually do it without creating an intermediate logfile at all by using ksh's bidirectional pipe feature. - Original Message - To: "Multiple recipients

RE: backup controlfile to trace

2002-09-18 Thread Khedr, Waleed
What about: sqlplus -s

RE: backup controlfile to trace

2002-09-18 Thread Khedr, Waleed
What about: sqlplus -s

RE: backup controlfile to trace (retry)

2002-09-18 Thread Khedr, Waleed
What about: sqlplus -s

Re: backup controlfile to trace

2002-09-18 Thread Ray Stell
On Tue, Sep 17, 2002 at 09:03:18PM -0800, Rahul wrote: > why not just simplay *name* it !!! > > SQL> alter database backup controlfile to '/oracle/ctrl.trc'; This is what I've been doing in my backup set, but I wanted to add the flat version as a backup to the backup. I never would have thoug

RE: backup controlfile to trace

2002-09-17 Thread Rahul
03 PM > To: Multiple recipients of list ORACLE-L > Subject: RE: backup controlfile to trace > > why not just simplay *name* it !!! > > SQL> alter database backup controlfile to '/oracle/ctrl.trc'; > > > > -- > > From: Ray S

RE: backup controlfile to trace

2002-09-17 Thread Rahul
why not just simplay *name* it !!! SQL> alter database backup controlfile to '/oracle/ctrl.trc'; > -- > From: Ray Stell[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Wednesday, September 18, 2002 1:13 AM > To: Multiple recipients of list ORACLE-L >

RE: backup controlfile to trace

2002-09-17 Thread Connor McDonald
Dependent on platform, but it almost always contains the OS process id which you can get from v$process. So something like select c.value || '/' || 'appropriate_format_string'|| a.spid || '.trc' from v$process a, v$session b, v$parameter c where a.addr = b.paddr and b.sid = (

Re: backup controlfile to trace

2002-09-17 Thread Philip Douglass
Wow. I had no idea it was so easy! I just tried it out on 8.0.5.1 (svrmgrl) and 8.1.7.2 (SQL*Plus) and it worked like a charm! Only problem is I can't figure out an elegant way to capture that information in a variable so that I can (for example) do: host mv &trcfile /backups/ -- Philip - O

RE: backup controlfile to trace

2002-09-17 Thread Jesse, Rich
L PROTECTED] Quad/Tech International, Sussex, WI USA > -Original Message- > From: Jesse, Rich > Sent: Tuesday, September 17, 2002 3:39 PM > To: Multiple recipients of list ORACLE-L > Subject: RE: backup controlfile to trace > > > Cool idea, Kirti

RE: backup controlfile to trace

2002-09-17 Thread Khedr, Waleed
SQL> oradebug setmypid Statement processed. SQL> alter database backup controlfile to trace; Database altered. SQL> oradebug tracefile_name /webstat/oracle/admin/wbs2/udump/wbs2_ora_22958.trc Waleed -Original Message- Sent: Tuesday, September 17, 2002 2:13 PM To: Multiple recipients of

RE: backup controlfile to trace

2002-09-17 Thread Jesse, Rich
2 2:59 PM > To: Multiple recipients of list ORACLE-L > Subject: RE: backup controlfile to trace > > > Here is a snippet from one of our scripts: > - Kirti > > > ($SQLPLUS -s / < set head off > set pages 0 > set feedback off > set termout off > spool /tmp

RE: backup controlfile to trace

2002-09-17 Thread Deshpande, Kirti
Here is a snippet from one of our scripts: - Kirti ($SQLPLUS -s / < /dev/null TRCFILE=`cat /tmp/$$trace_name.lst` rm /tmp/$$trace_name.lst cp ${TRCFILE} ${CR_CONTROL_FILE_SQL} -Original Message- Sent: Tuesday, September 17, 2002 2:15 PM To: Multiple recipients of list ORACLE-L T

RE: backup controlfile to trace

2002-09-17 Thread Ron Thomas
e respond to Subject: RE: backup controlfile to trace

RE: backup controlfile to trace

2002-09-17 Thread Kevin Lange
The way we do it is not 100% but it seems close enough. We run the backup command and then do a descending order listing by date from the trace directory. The first file is the one containing the trace. If anyone has a beter idea, I am all ears. Kevin -Original Message- Sent: Tuesday

Re: backup controlfile to trace

2002-09-17 Thread Gene Sais
Not pretty, but this is how I do it: —- snippet of my hot backup script —- sqlplus / <>> [EMAIL PROTECTED] 09/17/02 02:13PM >>> 8.1.7 For scripting purposes, what is the logic for finding the trc file from alter database backup controlfile to trace cmd? This seems really stupid not being able

RE: backup controlfile to trace

2002-09-17 Thread Markham, Richard
Title: RE: backup controlfile to trace a non-full proof method that I use is T_FILE=$(ls -1rt /$ORACLE_HOME/admin/udump | tail -1) this will assign $T_FILE to the newest file existing in UDUMP. -Original Message- From: Ray Stell [mailto:[EMAIL PROTECTED]] Sent: Tuesday