Needs Clarification Regarding Segments and Datafiles

Hi,
I want clarification regarding Segments, Datafiles and extents.
As we know that A segment is made of one or more extents and extents are composed of one or more datablocks in the HD.
Since all data are store in Datafiles which are composed of extents and datablocks. I want to know weather a table(Segment) can span to multiple datafiles or in a sigle datafile.
Regards,
D.Abbasi

And an easy way to check it by yourself :
SQL> create tablespace abbasi_tbs
  2  datafile 'E:\ORADATA\DEMO111P\abbasi_01.dbf' size 1m autoextend off,
  3           'E:\ORADATA\DEMO111P\abbasi_02.dbf' size 1m autoextend off;
Tablespace created.
SQL> create table abbasi_tbl (id number)
  2  tablespace abbasi_tbs;
Table created.
SQL> insert into abbasi_tbl
  2  select rownum as rn
  3  from   dual
  4  connect by level <=10000;
10000 rows created.
SQL> commit;
Commit complete.
SQL> select distinct file_id
  2  from   dba_extents
  3  where  segment_name ='ABBASI_TBL';
   FILE_ID
         6
         7
or...
SQL> select distinct DBMS_ROWID.ROWID_RELATIVE_FNO(rowid)
  2  from   abbasi_tbl;
DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID)
                                   6
                                   7
SQL> select file_name from dba_data_files where file_id in (6,7);
FILE_NAME
E:\ORADATA\DEMO111P\ABBASI_01.DBF
E:\ORADATA\DEMO111P\ABBASI_02.DBF
SQL>Nicolas.
added the ROWID function usage
Edited by: N. Gasparotto on Jun 21, 2009 11:02 AM

Similar Messages

  • Need Clarification on sga_target and sga_max_size

    HI,
    I need some clarification in SGA_TARGET and SGA_MAX_SIZE.
    I have the parameter like below.
    SGA_MAX_SIZE=10G
    SGA_TARGET=9G
    And I spread the 9G to all components like (DB_CACHE,SHARE_POOL etc.,).
    My doubt, Incase db need the memory more than 9GB, Whether it automatically take the extra 1G from sga_max_size
    or we have to change the sga_target to 10G.

    Unless and untill, we set the sga_taget=10G, The extra 1G(from sga_max_size) is not used.
    Am i correct?No - its wrong. Any change in the value of SGA_TARGET affects only the sizes of the auto-tuned components. If you increases its value then increased memory will be distributed in only among the components controlled. So, yes 1GB will be used, because have sga_max_size=10G. If you decrease the value then reduced memory is taken back by the auto-tuning policy from one or more of the auto-tuned components.
    If SGA_MAX_SIZE is greater than SGA_TARGET, you can increase SGA_TARGET without restarting the instance. Otherwise, you'd need to shutdown and restart the instance if you wanted to increase SGA_TARGET.
    Regards
    Girish Sharma

  • Taking rollback segment and datafile offline caused application error

    One of the DBA's added a large rollback segment which caused the rman backup to abort. The rollback segment was taking offline and it's datafile was taken offline, all went normally no errors. An Application started gettting errors the database and application were taking down and up, no errors on either but the problem was still there. The rbs datafile and RBS were placed back online and the application worked properly. It looks as if Oracle let us take the RBS and datafile offline with active segments in the RBS is this possible?? If so it means you can pull the rug out from under Oracle and it doesn't even complain

    Pls check any transactions written in application level,
    explicitly assigned to the RBs which was taken offline.

  • Needs Clarification Regarding Listener.ora file

    I want a clarification regarding listener.ora file I've Listener.ora file and its content look like as:
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle8)
    (SID_NAME = ORCL)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    I can understand every entry in this file accept the following
    *(SID_DESC =*
    *(SID_NAME = PLSExtProc)*
    *(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)*
    *(PROGRAM = extproc)*
    *(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))*
    Although rest of entries refer to network services(Database name) and host address and protocol etc.
    what these above refere to.
    Please clarify me in this.
    Regards,
    D.Abbasi

    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    that about External Procedure, If you don't use "External Procedure" you can remove it, by the way you should avoid default configure.
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/advcfg.htm#sthref1331
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/advcfg.htm#NETAG0132
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_extern_proc.htm#sthref1658
    Sample create External Procedure:
    http://surachartopun.com/2008/07/create-and-run-sample-external.html

  • Need help Regarding Payroll and OM

    Hi All,
    Can any one of you provide me a configuration documents regarding Payroll and OM ..I need it very badly.Can any of you help me out in this.You can mail to my id
    [email protected].
    Thanks in advance,
    Sandeep

    hi friends
    can u anybody have Payroll(PCR) DOC , please help me andn  send to my mail ID. [email protected]
    Thanks in advance
    Regards,
    Ramesh.n

  • Need clarification regarding the test cable-diagnostics tdr command

    Hello,
    I've read about the test cable-diagnostics tdr command but I need clarification on the examples listed below to make sure that I am providing the right answer to my co-workers.
    Example 1:
    CXXX7SW17#show cable-diagnostic tdr int g0/20
    TDR test last run on: July 16 10:23:00
    Interface Speed Local pair Pair length        Remote pair  Pair status
    Gi0/20    auto  Pair A     N/A                        N/A                Normal
                           Pair B     72   +/- 10 meters  N/A                Open
                           Pair C     75   +/- 10 meters  N/A                Short/Crosstalk 
                           Pair D     74   +/- 10 meters  N/A                Short/Crosstalk
    Does this example mean that there's a cable length issue in the line which is causing the device that it's connected to not to work properly?
    Example 2:
    CXXX2SW140#show cable-diagnostics tdr int g0/21
    TDR test last run on: July 16 09:16:22
    Interface Speed Local pair Pair length        Remote pair Pair status
    Gi0/21    100M  Pair A     N/A                      Pair A           Normal
                              Pair B     N/A                      Pair B           Normal
                              Pair C     N/A                     Pair C           Normal
                              Pair D     N/A                     Pair D           Normal
    Does this example state that the cable line is okay for use?
    Example 3:
    CXXX1SW19#show cable-diagnostics tdr int g0/22
    TDR test last run on: July 16 06:36:53
    Interface Speed Local pair Pair length            Remote pair Pair status
    Gi0/22    auto    Pair A       1    +/- 10 meters  N/A               Open
                              Pair B     39   +/- 10 meters   N/A               Open
                              Pair C     72   +/- 10 meters   N/A               Open
                              Pair D     1    +/- 10 meters    N/A               Open
    Does this example mean that there isn't a device connected on the other end? No pin-contact?
    Thank you very much for any help you could provide.
    S

    I found this article here at supportforums that seemed like the best explanation I've read so far for TDR info.
    Hope that helps.

  • I need clarification regarding REFERENCE TYPES and CASTING.

    Hello all,
    I'm taking a course on the fundamental of JAVA. Everything's been going smoothly until I slammed into the the concept of CASTING and REFERENCE TYPES. Flat--out == I DON'T GET IT?
    I'm having trouble with...
    CONVERTING REFERENCE TYPES
    CASTING BETWEEN REFERENCE TYPES
    WORKING WITH REFERENCE TYPES
    I understand what's happening from an academic vantage point. I just don't understand why you'd want to convert REFERENCE TYPES? What would be an application of such an exercise?
    1. What IS a REFERENCE TYPE -- exactly?
    a. what are we referencing?
    b. type? type of what??
    for example... why would you want to do a widening conversion, a conversion of the hierarchy tree?
    I understand the concept of OBJECTS, CLASSES, METHODS and CONSTRUCTORS so far...
    I think it's the terminology that's screwing my up.
    Thanks,
    Alex

    ok... wow, thanks J.
    So--in a nutshell-- we're making it so that different
    objects:
    ie,. ford(), chevy(), honda(), lotus() and
    dealers()... so and so forth()...
    all share the resources(for lack of a better word) of
    the Auto Class? because all of those auto brand
    objects and one redically different object can be
    unrelated, correct?Um, yes and no.
    I just ran with the example you had, but that probably included too many concepts and they got muddied up.
    Yes, Chevy, Ford etc. all share the characteristics of Auto, since they're all subclasses. But that's just inheritance, and has nothing to do with casting.
    A "reference type" can loosely be described as a variable that refers to an object. (Constrasted with "primitive types" which are int, char, float, etc. and don't refer to objects--they just hold values.)
    Casting just tells the compiler that even though as far as it knows you only have a reference to some superclass, the object that reference points to will in fact be an instance of a subclass, and so treat it as such (e.g., we can now call methods that the subclass has that the superclass lacks).
    (You can also cast primitives, but one thing at a time.)
    So let's say you have class A (which extends object) and B extends A.
    A a = new B();
    B b = a; // won't compile. compiler sees the "A a" on the left of the =, not "new B()" on the right.
    B b = (B)a; // works because we're telling the compiler, "Dude, I'm seriously. This is a B.
    Note that if we had done new A() instead of new B(), it would still compile--the compiler would trust us. But at runtime, we'd get a ClassCastException, since we wouldn't actually have a B object.
    /**folks, I'm a web designer that has to learn Java
    so that I can perform my duties as a JSP author here
    at work. I tried to learn JSP sans Java and that was
    a simple exercise in ignorance.-- it's really hard
    without understanding the root concepts of Java and
    for that matter, C. Concepts like "polymorphism,
    inheritance, object references... are completely
    foreign to me. **/It's a rather big leap from web designing to OO concepts. Take your time, and don't be discouraged if you feel completely confused. It's a prerequisite. :-)

  • Need clarification regarding select query

    Hi,
    I need a little clarification regrding a Select senario
    I want to select data from table which have been minupulated between a certian date like between 1-DEC-10 to 31-DEC-10 and note that table does not have any time/date column. I've applied the following query to do this.
    select * from TABLE_NAME where sysdate between to_date('01-DEC-10') AND to_date('31-DEC-10');
    Would it work fine because I've tried it against a table and it returned me nothing however DML occur between time period.
    Regards,
    Abbasi

    Abbasi wrote:
    Hi,
    I need a little clarification regrding a Select senario
    I want to select data from table which have been minupulated between a certian date like between 1-DEC-10 to 31-DEC-10 and note that table does not have any time/date column. I've applied the following query to do this.
    select * from TABLE_NAME where sysdate between to_date('01-DEC-10') AND to_date('31-DEC-10');
    Would it work fine because I've tried it against a table and it returned me nothing however DML occur between time period.
    Regards,
    AbbasiAFAIK without log mining and auditing this is not possible.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm

  • Need Clarification On Unicode and Upgrade-ECC6.0

    Dear All,
    I need some clarification unicode and upgrade . It would be great help if you give your time .
    We had 2 code pages - 1100,1401 in 4.6B system. We had languages - FR,EN,ES,PT and PL. The system has been upgraded to ECC6.0 non-unicode now.
    Now in I18N->System configuration (RSCPINST), only EN is listed. SPUMG asked for activation of I18N to proceed. When the I18N activation was done,  it has knocked out the code page 1401 from TCPDB table.
    Is this normal?
    But, the code pages 1401 is shown as consistent in SCP transaction.
    The system setting has changed to Single code page. Will this affect unicode migration? How did the additonal code page 1401 which was in 4.6B get knocked out
    now? How did the languages ES,FR,PT, IT and PL which were in 4.6B get knocked out of RCPINST?
    We are manually filling the vocabulary since SPUMG is not showing Scanning tabs. The language key in vocabulary is not completely set. The reprocess logs are not completely green. Will this allow unicode migration now? Can we start unicode migration even with this status.
    Regards,
    Santosh
    Edited by: santosh suryavanshi on Nov 18, 2010 11:11 PM
    Edited by: santosh suryavanshi on Nov 18, 2010 11:11 PM

    Hi Santosh,
    SAP ECC 6.0 is not supported with MDMP. This is the reason for the behaviour in RSCPINST.
    The standard way for an upgrade based on start release 4.6B with MDMP would be TU&UC (see SAP note 959698).
    Do you follow this procedure ?
    Best regards,
    Nils Buerckel
    SAP AG

  • Need information regarding Approver and approved date of Shopping Carts

    Dear All,
    We have got a requiremrnt to extract a list approvers and approved dates of shopping carts created for a given department and date range.
    Is there any standard way to find that?
    If we need to create a Z report please let us know the tables invovled.
    Thank you.
    Regards
    Arindam

    Hi
    Each approval step in SRM has got a work item guid and its relevant data stored in few Data tables. You may build a custom report to meet your requirements.
    Refer to this post for more details:
    Re: SRM table which stored shopping cart approval start and end time
    Regards
    Virender Singh

  • Needs Clarification Regarding Tablespace

    Hello,
    I'm using Oracle 10g DB and I want to know weather to creating database from DBCA automatically create a tablespace for that database or we have to create manually.
    if it create automatically then how can we retrive information about that database.
    Looking for Reply
    Regards,
    D.Abbasi

    When you create database using DBCA you can choose tempalte, in the template there tablespaces defined, the tablespaces that will be created depends on the tamplate you choose, and if you installed sample schema's.
    Every database created need to have several system tablespaces.
    You can retrive all of database tablespaces using :
    select name from v$tablepsace;
    Oded
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Need Help Regarding Users and Roles

    Hi,
    I have Created a role with Password authentication and in that role only object privilege (SELECT TABLE) and System Privilige (CREATE SESSION)
    Now I created user name abbasi and add above role to it and make that role as its default role.
    Now when I connect above user from SQL*Plus its Connected.
    I want to know since for there is Password Authentication then why during the session databse server not authenticate for role password.
    Actually I want to know real usage of password autheticated role.
    Regards.
    D.abbasi

    See the following demo
    SQL> conn aman/aman
    Connected.
    SQL> create user test identified by test;
    User created.
    SQL> create role test_role ;
    Role created.
    SQL> grant create session to test_role;
    Grant succeeded.
    SQL> create role dangerous identified by danger;
    Role created.
    SQL> grant drop any table to dangerous;
    Grant succeeded.
    SQL> grant dangerous, test_role to test;
    Grant succeeded.
    SQL> alter user test default role test_role;
    User altered.
    SQL> conn test/test
    Connected.
    SQL> select * from session_roles;
    ROLE
    TEST_ROLE
    SQL> select * from session_privs;
    PRIVILEGE
    CREATE SESSION
    SQL> set role dangerous;
    set role dangerous
    ERROR at line 1:
    ORA-01979: missing or invalid password for role 'DANGEROUS'
    SQL> set role dangerous identified by danger;
    Role set.
    SQL> select * from session_roles;
    ROLE
    DANGEROUS
    SQL> select * from session_privs;
    PRIVILEGE
    DROP ANY TABLEYou should not make the roles haivng the passwords as the default roles. Let them be there but not as the default roles. These roles can be enabled by the end user when he needs that. In my example, I have made a user TEST, two roles, TEST_ROLE, Dangerous. Dangerous is password protected and contains a priv drop any table. I have made TESt_role as the default role for the user and it becomes active. But for the dangerous,I need to supply the paswword. If I don't , I get an error like I have shown inthe example.
    HTH
    Aman....

  • Need clarification on SATA and PC3200

    First of all thanks to all who replied to my first question, I robbed a 3.5 drive out of an old computer and will use it to load driver then remove it.  Or I may copy those drivers to cd and see what happens. Is it possible to do this and not have to install a floppy at all? My main question is when I install the Sata hard drive on a brand new system will it work for me to install the OS (win xp) then install the drivers?  Whats with using either promise or intel SATA controller?  Also should I expect a problem using OCZ pc3200 dual channel ram on the first startup?  Sorry to be so dumb but I cant find this info on the net in any detail and I really need this to go smoothly my first time.  Here is a rundown on what I am putting together:
      Full tower ATX case, loaded with 5 fans
    420 watt PS with dual fans
    MSI neo FIS2R
    P4 3Ghz 800fsb
    MSI ti4800se 128mb ddr
    Seagate 80GB SATA
    Lite on 16x dvd rom
    logitech wireless optical moue and keyboard
    Win XP oem full version
    OCZ pc3200 1GB dual channel copper heat spreader
    ancient 3.5" floppy drive circa early 90's  (will be removed)
    Thank you again for your help.

    Copying the drivers on the Windows CD will not be suffient i'm afraid. My best guess is install the driver from an old floppy drive and afterwards you can remove it and disable the FDC controller in your BIOS.
    As for the dual channel DDR setup, i didn't experience any problems, so i don't think you will get any either.
    Last, the promise S-ATA/ATA controller is only for expansion. I've tested the speed of both controllers (ICH5R and the promise) and didn't find any shocking differences.

  • Need clarifications regarding APEX_PUBLIC_USER

    Hello all,
    Apex 3.0 on 10g
    'am aware that APEX_PUBLIC_USER is the one used by the apex applications to get the stuff from the database.
    I have noticed that in v$session there do exist the apex_public_user even if i logout from the apex.
    In my production i have found apex_public_user with last_call_et greater than 7 hrs
    and also when i tried to drop a package from the apex sql window, it hangs and doing the same from sql*plus from system account makes the session hang, which i will need to kill later. What could be the reason for the session to get stuckup??
    Thank you,
    J J

    Yea, today i had to bounce my DB for some reason and there were no connections from the APEX_PUBLIC_USER and i could drop the package.
    Is there anyway to close those sessions from the oracle HTTP server once they are done with the job than letting them lingering around?
    Will APEX use these existing sessions like a connection pooling?
    TIA,
    JJ

  • Need Clarification Regarding Structural Authorization

    Hi Gurus,
    When you do need to implement Structural Authorization? How do you know when you don't need it?
    I'm currently on an ECC6 implementation project and was informed that we do not need to implement it even though we are implementing the HR organization structure along with ESS and MSS.
    Your inputs are highly appreciated.

    for one it can be useful to implement structural authorizations when you want to restrict not only on the enterprise structure (e.g. personnel area, employee group etc.) but also on organizational atributes (position, org. units and the likes).
    this decision is purely based on the requirement of your company's security demands.
    as for your second question, I assume that there is a misunderstanding of terms.  HR roles as such are the same as non-HR roles in so far that they can be assigned to the user directly through SU01 or PFCG.
    the advantage of having an org. structure is that you may also assign the roles through this structure as well.  this in itself has nothing to do with whether you would want to implement structural athorizations.
    I hope to have clarified things a litlle for you.

Maybe you are looking for