Does Oracle share i/o load across datafiles?

Hi,
I am working with a daabase that has multiple datafiles for each tablespace. The datafiles for each tablespace are located on a single disk. I believe no stripping is present in this design.
Presently, it is recomended that the datafiles for each tablespace be spread over multiple disks. Would this help with the improvement in i/o performance to the specific tablespace?
Do I need to do any alter tablespace or datafiles to have the improvement in the i/o?
Please advice. I am using Oracle 8i.
Best Regards,
Flintz

There are several possibilities to stripe a tablespace.
You can create
a) an ORACLE Tablespace with several datafiles
b) an OS mountpoint which has striped several disks
If you've an existing tablespace and want to stripe this tablespace with ORACLE than you can create an additional tablespace wtih several datafiles which are on different disks. After this you can use
- imp/exp
- CTAS
- online redifinition
to copy the tables to the tablespace.
You should also consider that you've a less safe system if you have several disks which are not mirrored or on a RAID 5 system.

Similar Messages

  • How does oracle initialize datafile?

    Hi,
    Does anyone know how oracle initialize a datafile? In the following command, does oracle writes zeros to the 5MB datafile?
    # create tablespace test_ts datafile '/u01/oracle/data.dbf' size 500M;
    Thanks,
    R-

    Hi,
    With two consecutive posts stating that the 0's aren't really 0's I feel the need to check my results, so now I reproduced my test case but now with a 300M datafile, it took nearly 80 seconds in my OEL 5.2 (VMWare Workstation), then I checked the contents with bvi and after the header only 0's, then shred again (it took less than 10 seconds) and then bvi again and the contents are random data. Then I created the tablespace again, well assuming the file is already created and it's only a matter of marking in some place that the contents should be interpreted as "empty" space without actually zeroing the file, the creation of the datafile reusing the already existing datafile should take a few seconds, but really took the same 80 seconds it took the first time, so or Oracle is really slow creating the header or it's actually zeroing the contents (or delegating this task to the OS, I don't know). Now I see you're talking about an ascii 0 (hex 30) and I'm talking about a hex 0 (null), in that case yes, they aren't ascii 0's. Then to sumarize, the OP asked if Oracle writes zeros to the datafile and my answer is: when the datafile is create Oracle formats the contents writing zeros, but hex zeros not ascii zeros, the blocks actually don't contain user info but they're now prepared to receive it.
    Enrique
    PS: http://en.wikipedia.org/wiki/Hex_editor
    >
    By using a hex editor, a user can see or edit the raw and exact contents of a file as opposed to the interpretation of the same content that other, higher level application software may associate with the file format. For example, this could be raw image data, in contrast to the way image editing software would interpret the same file.>
    Edited by: Enrique Orbegozo on Oct 21, 2008 7:20 AM
    Edited by: Enrique Orbegozo on Oct 21, 2008 7:25 AM

  • How does oracle write to datafiles in a tablespace?

    hi all
    Suppose I have a tablespace consisting of two datafiles. When I need to wirte data onto it,how does ORACLE
    write ? Does it initially write to the first datafile and then write to the second datafile when the first datafile getting full or write to two datafiles in an random manner?
    Thanks for your reply.

    hi all
    I have read reply in reponse to thread "tablespaces or datafile " and testcase in that thread shows that ORACLE will write to datafiles in round-robin manner.
    But my test show totally different result:
    SQL>
    SQL> create tablespace ts_maoxl
    2 datafile '/crash/oradata/TESTDB/datafile/1.bdf' size 5m,
    3 '/crash/oradata/TESTDB/datafile/2.bdf' size 5m
    4 EXTENT MANAGEMENT LOCAL;
    Tablespace created
    SQL>
    SQL> create table maoxl(id char(2000),id3 char(2000),id2 char(2000)) tablespace ts_maoxl;
    Table created
    SQL>
    SQL> declare
    2 begin
    3 for i in 0..99 loop
    4 insert into maoxl values('x','y','z');
    5 end loop;
    6 commit;
    7 end;
    8 /
    PL/SQL procedure successfully completed
    SQL> select count(*) from maoxl;
    COUNT(*)
    100
    SQL> select t.file_id,t.extent_id,bytes from dba_extents t where tablespace_name='TS_MAOXL';
    FILE_ID EXTENT_ID BYTES
    5 0 65536
    5 1 65536
    5 2 65536
    5 3 65536
    5 4 65536
    5 5 65536
    5 6 65536
    5 7 65536
    5 8 65536
    5 9 65536
    5 10 65536
    5 11 65536
    5 12 65536
    5 13 65536
    14 rows selectedAll extents are allocated from datafile 5,none from datafile 6. My result is different from yours.
    BTW,The result of my testcase was from a 10.2.0.4 database running on HP-UNIX
    What could be the problem?
    thanks

  • What information does "oracle.adf.share.ADFContext" contains?

    Hi
    i am new to ADF.
    Just want to know what information exactly does "oracle.adf.share.ADFContext" contains.?
    My jdev version 11.1.1.5.0
    Thanx

    It holds the execution context of the application. A look into the javadoc http://docs.oracle.com/cd/E15051_01/apirefs.1111/e10686/oracle/adf/share/ADFContext.html shows what info you get.
    Timo

  • When does oracle write into datafile

    Hi,
    I have the following doubt, when does oracle server process write the data into datafiles,
    is it done after the commit statement or is it done only when the session is closed or is it done only when the database is closed???

    http://www.managedventures.com/images/How_does_DBWR_work.pdf
    Rgds.

  • How does oracle suggest the archive log

    Hi All,
    My question is about user managed backup and recovery.
    For User managed hot database refreshes.
    We  create a new controlfile and do cancel based recovery.
    How does oracle suggest the next archive to apply when we do "recover database using backup controlfile until cancel;"
    I mean we created a new control file ..rt.
    where is the information about the archivelogs stored.
    Thanks,
    Silver

    In the controlfile.
    The "using backup controlfile" means using a backed up controlfile, and you want to fool Oracle into thinking a point in time recovery will happen so don't use what would be the controlfiles current scn time to automatically say the recovery is complete.  If you have created a new controlfile, all it can know about is where the logs should be and compare to what log sequences the datafile headers have.  So it uses the init.ora parameters and what the data file headers have in them to figure it out. http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3151992035532#36651366990046
    If you backup controlfile to trace you can see log files that have the incarnation history.  See "Recovering Through a RESETLOGS with a Created Control File"  in Performing User-Managed Recovery: Advanced Scenarios

  • Oracle 10g webcache as load balancer with Clusterware for HA

    Hi All
    I'm trying to put together a solution for my organisation to include a resilient load balanced setup without buying hardware load balancing kit. We are implementing an Oracle Forms based product from a software supplier on the Oracle 10g Forms & Reports Services platform v10.1.2.2.0. The intention is to balance the production load of the application across 2 identical Sun T2000 servers - each could support the full load independently if necessary. The servers are geographically separated for resilience. The supplier has recommended implementing Webcache on one of these T2000 servers as a load balancer - this works fine, but presents a single point of failure and no automatic failover.
    I have read an Oracle white paper explaining that Oracle Webcache as a load balancer can be made into a HA solution by using Oracle Clusterware. What isn't clear from the paper is this;
    1. Whether I need to have Webcache as a load balancer & Clusterware installed separately on a different pair of servers ?
    2. Can I simply configure Webcache for load balancing on both of my Sun servers and use Clusterware to failover the load balancing function from one server to the other if one fails ?
    Can anyone point me in the right direction with this please ?
    Many thanks
    Dean

    Just a quick answer, please:
    If you think about Oracle WebCache as a general application, you will find some useful Technical White Papers on http://otn.oracle.com/clusterware They will explain, how Oracle Clusterware can be used to protect any kind of application.
    In general, Oracle Clusterware and Oracle WebCache must be installed on the same set of servers (cluster nodes) in this case. Regarding the question of whether or not you can re-use your 2 SUN servers: It depends.
    Oracle Clusterware requires shared storage and a private interconnect. Your current infrastructure might need to be reviewed and enhanced in those regards, especially, since your servers are geographically separated as you said.
    Just some ideas. Thanks.

  • How does oracle know the databse is inconsistent and needs recovery?

    Hello,
    How does Oracle know that the datafiles are inconsistent and db needs recovery when rebuilding the db off of the online/hot backups? Whereas, it doesn’t ask for recovery when rebuilding the database from cold backup (I understand that, for cold backup, database is shutdown immediate and hence the db is consistent). In both scenarios, a new control file is created (that means it won’t have SCN) and only datafile header will have the SCN. What’s that piece of info that oracle check to know if the database is consistent or inconsistent during the backup restore and recovery and where that info resides?
    Thank you for any hints and answers.
    Jay

    Oracle uses the datafiles to identify if they are consistent. If the datafiles backup was taken when the database was OPEN, they are marked as "fuzzy" in the header. Also, likely, the Checkpoint SCNs may be different if tablespace checkpoints (e.g. by ALTER TABLESPACE BEGIN BACKUP) are at different points in time.
    If the backup was a cold backup with the database shutdown normal/immediate, the headers are marked appropriately.
    When you run CREATE CONTROLFILE, it has to read the datafiles because the controlfile, itself, has no SCN and LogSequenceNumbers information.
    Hemant K Chitale

  • Does Oracle OLAP comes with Oracle Database 10g ?

    1.Does Oracle OLAP comes with Oracle Database 10g or do we need seperate software to have this ?.
    2.If I create a Cube with Analytic work space manager the cube is going to be stored in the Database ( meaning the in the table space where OLAP is Stored).
    3. What is the difference between Analtyic work space manager and discoverer For Olap.
    Help is higly appreciated ..
    Thanks, Prasad

    One thing to point out : The OLAP option is a costed database option, so while this is automatically installed and part of your database you do have to purchase additional licenses to use this feature. You will need to check with your Oracle account manager to see if you are actually licensed to use this feature.
    If you have existing 9i OLAP cubes these can be quickly and easily migrated to 10g OLAP and the documentation explains how to do this. However, there are many new features that are part of 10g OLAP that will improve the performance of your data model that will not be enabled as part of a migration process. Based on my experiences it would be quicker and easier (depending on the size of your existing 9i OLAP cubes) to consider rebuilding your data model using these new 10g features. You should be able to export all the dimensions to XML templates from 9i OLAP and import the templates into the 10g schema and reload your dimensions.
    For the cubes you will probably want to consider using partitioning, composites and compression to provide maximum flexibility and performance for your new data model. There is more information on these features within the OLAP documentation and in the many whitepapers and presentations on the OLAP home page on OTN.
    For moving data from SQL Server to 10g OLAP much depends on the nature of the data transfer. If it is a one-off bulk data load then you could consider using the normal MS command line tools to dump the data out and transfer it to Oracle. Alternatively, you could consider using Oracle Data Integrator to manage the extraction of the SQL Server data and the data load process into Oracle 10g relational tables. If you decide to use Data Integrator this will require additional licenses.
    If you can extract the data from SQL Server to flat files you can use Oracle Warehouse Builder (basic ETL is free as part of the 10g database license) to load that flat file data via external tables. Warehouse Builder can also be used to define your OLAP data model (think of Warehouse Builder as a more powerful version of Analytic Workspace Manager) and provides tools to load the data directly into your OLAP dimensions and cubes. You can get more information on managing OLAP data models with Warehouse Builder the Warehouse Builder home page on OTN.
    There are no facilities to modify Discoverer Viewer to add customisations. You can add company logos, modify certain colors and/or hide certain features but it is not possible to add additional features. You may want to consider using BI Beans to provide this type of environment. BI Beans is the development framework used to create Discoverer Viewer. You can create customised JSP pages that look identical to Discoverer Viewer pages with the added benefit of providing your own specific features. You can get more information on the BI Beans home page on OTN.
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • How does Oracle hanlde I/O error

    I've setup an Oracle RAC using four Linux RH hosts connected with fiber channel to a DS4700 disk array.
    In case of a failover between the FC paths it could happen that a disk I/O request return error. How does Oracle handle that, will Oracle retry the error ?

    There are several possibilities to stripe a tablespace.
    You can create
    a) an ORACLE Tablespace with several datafiles
    b) an OS mountpoint which has striped several disks
    If you've an existing tablespace and want to stripe this tablespace with ORACLE than you can create an additional tablespace wtih several datafiles which are on different disks. After this you can use
    - imp/exp
    - CTAS
    - online redifinition
    to copy the tables to the tablespace.
    You should also consider that you've a less safe system if you have several disks which are not mirrored or on a RAID 5 system.

  • Does Oracle has features like Profiler in MS SQL

    Since I'm new to Oracle I would like to know from you guys does Oracle has the feature like that of Profiler like present in MS SQL. Since I need those services for my work so really like to know about it. I tried to find out that feature but couldn't. So please share your knowledge about it .
    Regards,
    Praveen Rai

    As someone who has actually used SQL Profiler I will add a few comments.
    There are two Oracle features that may be of interest when trying to duplicate SQL Profiler information.
    Niall mentioned the Oracle trace facility. Oracle is heavily instrumented and the internal measurements for how long individual operations executed and/or waited are available via the trace facility. It can be turned on by a session (several methods available) and it is also possible to turn trace on externally for an already running session.
    An experienced DBA may choose to work with the raw trace file but Oracle provides a utility trkprof which will format the trace file collecting the execution information (number of physical IO, Logical IO, and rows returned) by SQL statement.
    This kind of trace files are primary used for tuning purposes. Trace files can also be used to capture bug information via setting database events,
    You can find information on SQL trace in the Performance and tuning manual.
    Another feature that may be of interest is the Log Miner feature. This feature allows you to see the SQL in the online or archived redo logs. It is possible to generate SQL to back out changes that were applied.
    This reminds me of another feature that will allow you to see "recent" activity: flash back query. For as long as the information is retained in the undo segments it is possible to query all activity against a row or set of rows in a table.
    Again each of these features is documented in the standard documentation.
    Here is a link to an article on how to turn trace on for an already running session.
    How do I switch on sql trace in another session that is already running?
    http://www.jlcomp.demon.co.uk/faq/alien_trace.html
    HTH -- Mark D Powell --

  • Does Oracle allows zero length string

    Hi,
    I tried to insert zero length string ('') into an Oracle table, a null value and a non-empty string. But I found that zero length string and null are stored as NULL in the column.
    Create table test (col1 number(2), col2 varchar(10));
    Insert into test values (1, 'hi');
    Insert into test values (2, NULL);
    Insert into test values (3, '');
    Select * from test where col2 is null;
    Result: 2 rows
    Select * from test where col2 = '';
    Result: 0 rows
    Is this to do with some environment setting in SQL* Plus or does oracle doesn't allow zero length string?

    Oracle treats '' as NULL.
    There are frequent murmurs that some new version of Oracle is going to change this behaviour (I believe it's not ANSI-compliant) but I doubt that they will, as it will break too many old applications.
    Cheers, APC

  • I have an old ipod touch which won't go past the Apple logo, all it does is show me a loading symbol, but will go no further, i have tried restoring it and i have, it conects to my itunes and computer, but just won't get passed the logo..what can i do? :/

    I have an old ipod touch which won't go past the Apple logo, all it does is show me a loading symbol, but will go no further, i have tried restoring it and i have been successful. It connects and is recognised by my itunes and computer, but still after restoring it, it just won't get passed the logo..what can i do? what is the problem?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Does Oracle 8.1.5 Run On Tru64 Unix 5.1

    Does Oracle 8.1.7 Run On Tru64 Unix 5.1
    We plan to upgrade the OS and Oracle in two steps.
    1. First weekend - upgrade the operating system from Tru64 4.0d to Tru64 5.1.
    2. Second weekend - upgrade Oracle from 8.1.5 to 8.1.7
    Questions:
    1. Will Oracle 8.1.5 run successfully on Tru64 5.1 during the one-week transition period?
    2. Does it make any difference if we upgrade the OS to Tru64 5.1a instead of 5.1?
    Thanks in advance,
    Alan Holsted
    Metro, Portland, OR.
    null

    A question along the same lines, does Oracle 7.3.4 run On Tru64 Unix 5.1?
    We plan to upgrade the OS and Oracle in two steps.
    1. Firstly - upgrade the operating system from Tru64 4.0F to Tru64 5.1 (via 5.0A).
    2. Secondly - upgrade Oracle from 7.3.4 to 8.1.7 or perhaps 9.x
    Questions:
    1. Will Oracle 7.3.4 run successfully on Tru64 5.1 during the transition period?
    2. Does it make any difference if we upgrade the OS to Tru64 5.1A instead of 5.1?
    TIA
    Chris

  • Importing to a Oracle Table from SQL Loader Fails

    Hi ,
    When I try to upload one xml file from my server to my table in oracle server using sql loader it fails at times.Some times it works perfectly.
    This is a daily process which automatically dumps data to my oracle.
    Please find the error log :
    SQL*Loader: Release 10.2.0.4.0 - Production on Thu Dec 5 04:07:32 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Control File:   xmlFeedDelta.ctl
    Data File:      xmlFileNames_Delta.txt
      Bad File:     xmlFileNames_Delta.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 1000
    Bind array:     50000 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table XMLFEEDDELTA, loaded from every logical record.
    Insert option in effect for this table: APPEND
       Column Name                  Position   Len  Term Encl Datatype
    FILENAME                            FIRST  4000   ,       CHARACTER           
    FILECONTENT                       DERIVED     *  EOF      CHARACTER           
        Dynamic LOBFILE.  Filename in field FILENAME
    value used for ROWS parameter changed from 50000 to 63
    SQL*Loader-643: error executing INSERT statement for table XMLFEEDDELTA
    ORA-03113: end-of-file on communication channel
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    Table XMLFEEDDELTA:
      0 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                 252378 bytes(63 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             1
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Thu Dec 05 04:07:32 2013
    Run ended on Thu Dec 05 04:08:42 2013
    Elapsed time was:     00:01:10.05
    CPU time was:         00:00:00.28
    My Control File Looks like this :
    LOAD DATA
    INFILE xmlFileNames_Delta.txt
    INTO TABLE xmlFeedDelta APPEND
    fields terminated by ','
    filename CHAR(4000),
    filecontent LOBFILE(filename) terminated by eof
    My Database version :
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    I am not sure why this is happening at times . Any help would be appreciated.

    Hi,
    have you tried with the FILLER  command like
    LOAD DATA
    INFILE xmlFileNames_Delta.txt
    INTO TABLE xmlFeedDelta APPEND
    fields terminated by ','
    filename  FILLER CHAR(4000),
    filecontent LOBFILE(filename) terminated by eof

Maybe you are looking for

  • Using a Toshiba external HD on both Mac and PC

    Hello, I just bought a powerbook G4, and now must get all my stuff off of my PC. The PB is not seeing the drive,that I know of, though being new to Macs, maybe I need to do something other than just plug it in? Do I need to reformat the drive to work

  • Not able to get data of primary in standby database (configured dataguard)

    Hi all, I configured dataguard in my local system, i ve a few qsns (as i am new, ve patience) 1) scn differs wrt primary in standby (i checked, 1day difference), how to make scn same? 2)i created a table in primary, its not refelecting in standby, (b

  • How can I set up PayPal Sandbox as a Payment Gateway?

    I've been having trouble setting up my PayPal Sandbox account as a Payment Gateway in BC.  I thought I was filling in all the required fields correctly, but when I go to check out with an item, PayPal says it has a problem with the merchant's email a

  • Error 500: java.lang.NoClassDefFoundError

    I'm trying to setup a web app and I opened up it's index.faces page on internet explorer, but it's giving me this huge error message on the page instead: Error 500: java.lang.NoClassDefFoundError: Error while defining class: <Class 1> This error indi

  • Images not loaded correctly

    <i>Locking duplicate thread.<br>Please continue here: [[/questions/1056930]]</i> Dear reader, Since a week my firefox experiences strange image loading behavior. The problem is seen on various pages, in particular when there are more images/pictures