RE: RMAN: What blocks are backed up with a full backup?

2003-04-06 Thread Hemant K Chitale
I partially agree with Mladen.

RMAN definitely doesn't identify Table HWMs -- it doesn't know logical
structures such as Tables and Segments and Tablespaces [although it
can assist you in Tablespace Recovery when it reads the Data Dictionary].
RMAN knows physical structures such as DataFiles, RedoLog Files and
ControlFiles. When backing up a DataFile, RMAN would ignore
__unused__ blocks --- blocks that have never been used.
Now, the part where I don't agree with Mladen is about reading the
bitmap information from the tablespace header.  RMAN can backup
DataFiles belonging to Dictionary Managed Tablespaces without
Automatic Segment Space Management.  In such cases there is no
bitmap in the tablespace header to read from.
When Oracle creates a DataFile it initializes the file with NULLs.  When
a block is used [written to as a Table Row-Block or an Index Leaf-Block],
the block has to be formatted before it is written-to.  Once it is formatted
[the formatting is the block header, table column names, and possibly
the initrans area and pctfree area], the block will always remain "used"
even if all the rows in it are deleted.
Thus, when RMAN goes through a DataFile it examines each block and
ignores unused  blocks which have not been formatted.
Such unused or empty blocks may be within an Extent or unallocated to any 
extent !

Hemant

At 08:13 AM 04-04-03 -0800, you wrote:
What it doesn't write are the blocks that are not allocated to any
extent. RMAN doesn't go into the logical structures, like tables and
indexes,
it looks into the tablespace header and reads the information from the
bitmap information there. It cannot go into tables/indexes because it
should also work when the database is only mounted and not opened, which
genrally means that data dictionary is not accessible. Empty blocks
are blocks that don't have any rows in them but are allocated to an
extent. New or unallocated blocks are blocks that have been initialized
when the datafile was allocated to the tablespace but have not been assigned
to any object (table, index, materialized view, cluster, partition or alike)
-Original Message-
Sent: Thursday, April 03, 2003 4:24 PM
To: Multiple recipients of list ORACLE-L
Actually this is how RMAN works. It writes all blocks up to the HWM of a
given table,
even empty ones. So, if your HWM is artifically high, you will encounter
backups
that are larger than they need to be.
Oracle9i RMAN Backup and Recovery On bookshelves now!

RF

-Original Message-
To: Multiple recipients of list ORACLE-L
Sent: 4/3/2003 11:19 AM
Keith
   Here is my understanding (don't rely on this one). When Oracle
allocates
tablespace, the disk blocks are cleared. My interpretation is that when
RMAN
encounters a clear block, it doesn't write it to the backup piece. I
don't
think it spends a lot of time trying to figure out above HWM and such.
Dennis Williams
DBA, 40%OCP, 100% DBA
Lifetouch, Inc.
[EMAIL PROTECTED]
-Original Message-
Sent: Thursday, April 03, 2003 10:44 AM
To: Multiple recipients of list ORACLE-L
Our RMAN backup is backing up much more than the actual data blocks when
doing a full backup. I know that it backs up all blocks that have "ever
been
used", but I'm trying to figure out exactly what that means. My first
thought was that it backs up all blocks below the HWM, but I analyzed
the
tables and that is not the case.
Sometimes it backs up more blocks than exist below the HWM for the
tables
and sometimes it backs up fewer blocks than those below the HWM.
We are doing this to determine what we can do to reduce the size of the
backup.
Anyone have an idea how this works?

Keith

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Freeman Robert - IL
  INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L F

RE: How to Determine Oracle Session ID given UNIX PID?

2003-04-06 Thread Goulet, Dick



Here's 
the script that I use to get the session & the current SQL 
statement:
 
define 
sid = &1column client_info format A30 trunccolumn program format A40 
truncbreak on sql_address on sql_hash_valuecolumn sql_address noprint 
new_value _addrcolumn sql_hash_value noprint new_value _hashset verify 
offset linesize 132spool /ora1/pid.lisselect spid, sid, 
v$session.status, client_info, v$session.program, sql_address, 
sql_hash_valuefrom v$session, v$processwhere paddr = addr  and 
spid = '&sid'  and v$session.username is not 
null;
 
select 
sql_textfrom v$sqltext_with_newlineswhere address = 
'&_addr'  and hash_value = &_hashorder by piece;undef 
sidspool offexit
Dick 
Goulet

  -Original Message-From: Sam Bootsma 
  [mailto:[EMAIL PROTECTED]Sent: Friday, April 04, 2003 6:19 
  PMTo: Multiple recipients of list ORACLE-LSubject: How 
  to Determine Oracle Session ID given UNIX PID?
  
  Oracle 7.3.4 running on AIX 
  4.3.3
   
  The ps command on our AIX box 
  shows a UNIX process taking 50% of the CPU.  The PID is 89510.  When 
  I try to find the corresponding session on the Oracle database it returns no 
  rows.  Is there a way I can map the given PID on UNIX to a session id on 
  Oracle?  See below for the query I ran.
   
  SQL> l
    1  select sid from 
  v$session
    2* where process like 
  '%89510%'
  SQL> /
   
  no rows selected
   
  Thanks for your 
  information!
   
   
   
  Sam
  [EMAIL PROTECTED]
   


Re: upgrade q

2003-04-06 Thread Yechiel Adar
We had the same problem upgrading from 8.1.6 to 9.2.0.
The problem is that you can not upgrade from 8.1.6 but have to install 8.1.7
or 9.0.1, do an upgrade and then install and  upgrade to 9.2.0. We decided
to do export/import while converting to locally managed TS with uniform
extents.

Yechiel Adar
Mehish
- Original Message -
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 6:54 PM


> We're running Oracle 8.0.5 for 3 years now
> and want to go to Oracle9i.
>
> Should I
> a) upgrade OR
> b) exp the db and do an install of 9i then imp
>(this is a lenghty process)
>
> what say you? TIA.
> Joe
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Leyden, Joseph
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> San Diego, California-- Mailing list and web hosting services
> -
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Yechiel Adar
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).