Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_ROWID , 6 of 12


ROWID_RELATIVE_FNO Function

This function returns the relative file number of the ROWID specified as the IN parameter. (The file number is relative to the tablespace.)

Syntax

DBMS_ROWID.ROWID_RELATIVE_FNO (
   rowid_id IN ROWID)
  RETURN NUMBER;

Pragmas

   pragma RESTRICT_REFERENCES(rowid_relative_fno,WNDS,RNDS,WNPS,RNPS);

Parameters

Table 57-6 ROWID_RELATIVE_FNO Function Parameters
Parameter  Description 
row_id
 

ROWID to be interpreted. 

Example

The example PL/SQL code fragment returns the relative file number:

DECLARE

file_number    INTEGER;
rowid_val      ROWID;
BEGIN
SELECT ROWID INTO rowid_val
  FROM dept 
  WHERE loc = 'Boston';
file_number :=
  dbms_rowid.rowid_relative_fno(rowid_val);
...

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback