The most performance friendly way to do this ?

I have a program thats in PROD and I want to make modifications to it.
The program loads an internal table with a high volume of data and does a bunch of processing on each record. 
I need to modify the code so that when I do the first Loop and I am processing a rectype 1 record,  I now want to consolidate it with other records eg:  
ctry rectype    pid  date  time etc ...
CA    1          2
CA    1          2
For every rectype 1 with the same pid, perform checks and consolidate the records into 1. 
We are processing high volume data.  So I would like to implement the most performance freindly modification.
What is the best way to do the consolidation?
So when I get the first rectype 1 within my first loop, I need to go get all the records with the same pid.  Consolidate them and then delete them so I dont pick them up again.
thx for your input .. J

If I understand this properly... Big if!
1) create a duplicate table
2) sort both tables by PID
3) delete duplicate PIDs from the main table. This will become your consolidated table
4) loop through the new "summary" table and loop through the original "details" table and do your consolidation logic. Use the initial binary read to identify the starting point in the table of the PID to be consolidated. This will avoid a full table scan for each summary record. Modify the summary table with the updated data.
This will be performance "friendly"
li_summary[] = original_table[].
li_details[] = li_summary[].
SORT: li_details BY pid,
      li_summary BY pid.
DELETE ADJACENT DUPLICATES FROM li_summary COMPARING pid.
LOOP AT li_summary ASSIGNING <summary>.
  READ TABLE li_details TRANSPORTING NO FIELDS
      WITH KEY pid = <summary>-pid
      BINARY SEARCH.
  IF sy-subrc = 0.
    LOOP AT li_details assinging <same_pid> FROM sy-tabix.
      IF <same_pid>-pid <> <summary>-pid.
        EXIT.
      ENDIF.
consolidate or whatever you need to do
     <summary>-??? = ?? + ??? etc.
    ENDLOOP.
  ENDIF.
ENDLOOP.
original_table[] = li_summary[].

Similar Messages

  • Most user friendly way to browse document libraries for saving documents

    We are trying to figure out the most user friendly way to save office documents to different site collection document libraries.  The locations appear fine when we click "save as" for recent folders.  We can even click browse and use
    the up arrow for getting closer to the root path of the site.  This works fine, but there is not an easy way navigate to a different site collection.  Sure, I can copy/paste the web address in the file path, but I think that is asking too much for
    basic end users.  Is there a different approach I am not aware of?
    Thanks,

    How about Link a library to the Windows Favorites Folder, the use favorite to save document.
    https://www.youtube.com/watch?v=VJeRX-h7Hjw
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Need the most performance and scalable way to "trigger" JavaEE application

    Hi,
    Need the most performance and scalable way to "trigger" JavaEE application code running on WLS from PLSQL code.
    There are some thirdparty JavaEE application running on WLS that we need to invoke from PLSQL code. I have looked at couple of options:
    Option 1)
    Use oracle db callouts(http call etc.) but it seems the connection to WLS will not be maintained across database-sessions and so every call from different plsql database-session will make fresh TCP/IP connection. Usually fresh socket connection setup is expensive and can become a bottleneck.
    Option 2)
    Use AQ in the database from PLSQL and have a MDB in WLS to invoke the java code. The problem here is how do I simulate the Request/Reply pattern using the AQ API from PLSQL. The PLSQL code needs to wait until the JavaEE code completes as it needs some result back from JavaEE app. AQ also does not have true temporary queues so I am not sure how it will work with concurrent user/sessions.
    Option 3)
    Use Java in the database, we have tried this but for our usecase it is too expensive resource wise and is not meeting our performance needs.
    Performance is the triggering mechanism is of highest interest to us.
    Any suggestions/pointers is greatly appreciated.
    Thanks,
    Prantor
    Edited by: Prantor on Nov 8, 2010 10:37 PM

    Perhaps you would benefit from viewing the problem differently.
    In some/many/most cases the application server (WLS) invokes procedure residing in the DB server.
    Place the control for the desired results in the application code running on the WLS.

  • I have a small production client looking to run 1 workstation running Mac Lion 10.7.3 and two work stations running Windows7 64 bit. They will all be talking to the same storage array through 8Gb FC. What is there most cost effective way to do this?

    I have a small production client looking to run 1 workstation running Mac Lion 10.7.3 and two work stations running Windows7 64 bit. They will all be talking to the same storage array through 8Gb FC. What is there most cost effective way to do this?

    Thank you for your help.
    The client has already made the jump to 8Gb including HBA's, switch and RAID Storage.
    The other question will be if they need a seperate Mac Server to run the Meta Data or are they able to use the current Mac they are running to do this?
    The Mac is a 201073 model they say with 12 Dual Core 2.66Mhz processors and 16 GB of Memory. This system is currently doing rendering. It has the XSAN Client but I understand for the solution to work they need to also run XSAN Server on a MDC.

  • Trying to choose the most "future friendly" video export codec for my produ

    hi,
    I am prepping to deliver the video of a concert film I did to a museum where it will be added to a time capsule. I dont think its the type that has a definite date for re-opening, but it could be 10 yrs.
    The original footage was shot 10 yrs ago on dv camcorders, so its not HD. Uncompressed, the show is about 15gig.
    Keeping it uncompressed keeps it in the highest resolution possible, and I am thinking the safest (most future friendly) way to deliver it is uncompressed, on a solid state hard drive, no motorized parts etc.
    So what is the highest res (size is not an issue) format choice for me to choose in exporting the show?
    I'm using FCP 7.0.3
    Thanks for all advice.
    Duane

    While you are contemplating this, think back 10 years. What were the common storage media(s), playback devices, connection types and so on. How many of these are still available?
    My guess is Firewire will be obsolete, USB may still be around. A solid state storage device (USB stick?) may have a better chance, BUT they are not designed as archival media - that is - they are not designed for anything beyond moving material between machines and short term storage.
    Beyond what is common, there is also the issue of mechanical reliability. Anything with moving parts is a potential problem - as you seem to understand.
    You might do well to consult with a digital archivist. The Getty Museum in LA has published a number of monographs on this subject. Also, I believe MIT has a digital archiving program. You may find something useful there.
    Good luck. Please report back.
    x

  • What computer manufacturer makes the most "linux friendly" laptops?

    Hi,
    I'm about to get a new laptop to replace my Dell E1505 I used untill now. i'm very happy with it, but it got old and starts to fail. I want to get a new laptop that's simular to it but new and more up to date. I looked at some of the computers avaliable and was thinking, which manufacturer makes the most linux friendly computers? Should I stick with dell or maybe HP is the better choice? What's your experiance on the subject?

    From what I've seen, major manufacturers give little-to-no concern towards Linux support when designing a product.  Should they have a string of products which work hassle-free, it is through coincidence alone.
    To take Lenovo as an example, many of their notebooks in the past have included a wireless card they referred to as a "ThinkPad wireless adapter", which was renowned for functioning 'out of the box' with the ath5k driver.  During the middle(?) of last year, and without indication, the "ThinkPad wireless adapters" changed, and now use an rtl8192se chipset.  ndiswrapper has limited success (if any); a functional driver has only recently been created for this chipset; and support still missing from the kernel.
    While my next laptop will probably be a Lenovo it will be for their build-quality and not their Linux support.  When looking for a laptop, I recommend finding something which matches your specifications, design and price and then thoroughly checking compatibility of the components: it's the only way to be sure.

  • What is the most space efficient way to store libraries? Is there a way to separate/extract the original media from a Library?

    version 10.1.4
    I start a lot of projects which I cannot finalize and have to go back and change periodically. How do you guys store your Libraries? What is the most space efficient way of doing it?
    Thx

    I find that libraries that grow very large can have an impact on FCP X performance. My practice is to use external media (Leave Files in Place) unless I'm working with others. I also transcode as needed after import, rather than optimize (everything) at import. Both practices keep the library size down.
    Good luck.
    Russ

  • What is the most cost effective way to have a broken screen repaired?

    What is the most cost effective way to have a broken screen repaired?

    One thing to bear in mind, if your iPad is still under any sort of warranty, using any unauthorized repair place may void that.
    So you may find less expensive places that are non-authorized, but once you use them, Apple disowns your device and if you have any warranty left, it'll be void.

  • PowerShell - what is the most efficient/fastest way to find an object in an arraylist

    Hi
    I Work with a lot of array lists in PowerShell when working as a sharepoint administrator. I first used arrays but found them slow and jumped over to array lists.
    Often i want to find a specific object in the array list, but the respons-time varies a lot. Does anyone have code for doing this the most efficient way?
    Hope for some answers:-)
    brgs
    Bjorn

    Often i want to find a specific object in the array list, but the respons-time varies a lot. Does anyone have code for doing this the most efficient way?
    As you decided to use an ArrayList, you must keep your collection sorted, and then use the method BinarySearch() to find the objects your looking for.
    Consider using a dictionary, and if your objects are string type, then a StringDictionary.
    You stil fail to understand that he slowness is no in the arraylist.  It is in the creating of the arraylist which is completely unnecessary.  Set up a SharePoint servefr and create a very large list and test..  You will see. An arraylist
    with 10000 items takes forever to create. A simple SharePoint search can be done in a few milliseconds.
    Once created the lookup in any collection is dependent on the structure of the key and the type of collection.  A string key can be slow if it is a long key.
    The same rules apply to general database searches against an index.
    The main point here is that SharePoint IS a database and searching it as a database is the fastesst method.
    Prove me wrong devil!    Submit!  Back to your cage! Fie on thee!
    ¯\_(ツ)_/¯
    You seem to be making a lot of assumptions about what he's doing with those arraylists that doesn't seem justified based on no more information than there is in the posted question.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • How do i switch my itunes account from old laptop to pc. already have home sharing with the pc. any easy way to do this?

    how do I switch my itunes account from old laptop to pc. already have home sharing between the laptop and pc, laptop is the primary account for my iphone and is about to die. I don't want to lose contacts, photos,etc. any easy way to do this?

    Copy everything from your old computer, or your backup copy of your old computer to your new one.
    You can use and external drive/flash drive/dvd/cd/etc.

  • Iphone 4s freezing at start up then shuts off and keeps restarting then repeating that process over and over. I have tried to reset the phone two different ways and still this problem occurs after I update it or turn off the phone.

    yes the title says most of what is going on.
    I recently reset my phone, losing all contacts and pictures. It was working fine, then after I updated it, it will not turn on completely.
    It starts up with the apple logo
    -goes to the ios 6 (please slide to open) screen
    -then shuts off
    -and repeats the process unless I shut the phone off manually
    I have tried to hold the lock and the home button down to manually reset the phone
    I have also tried reseting the phone completely previously, and I still have this problem.
    Any ideas?
    Thank you!!

    I really don't have an answer for that one. I guess that while trying to get things working correctly, I would use the most basic monitor I had which in your case would be the Eizon using the Thunderbolt port and adaptor.
    When you boot into Safe Mode the startup is quite slow, but you should get the Apple logo and then the spinning gear below it (release the SHIFT key when it appears.) Then after a little more time you should see a gray progress bar appear below the spinning gear. When that disappears the computer will startup to a login screen.

  • My brother gave me his iPhone3 and has forgotten his passcode to the phone. Any way to bypass this without another visit to the store?

    My brother gave me his iPhone3 and has forgotten his passcode to the phone. Is there any way to bypass this feature without a visit to the phone store for a wipe?

    Try Here  >  http://support.apple.com/kb/HT1808
    You may have to try this More than Once... and if your Device has been Modified, this will Not necessarily work.

  • Is this query on XMLTYPE the most performant ?

    Hello,
    We are in 11gR2
    and we built a process for loading XML files that I think are very complex (I hope so)
    We about about 600 similar XML files to load every night.
    The XML file is saved under a XMLTYPE table and we attached a XSD Schema on it.
    One of the queries we built for selecting XMLTYPE data uses several outer joins on the XML. And I think I should find a way for increasing performance on the query
    Here is the details (sometimes huge in volume) :
    1) The query I would like to improve :
    Depending on data in the XML file, the SELECT duration can go from 3 minutes to more than 4 hours !
      select DISTINCT UPPER(t2.ressource_code)
      , CASE WHEN ( t5.isWorkDay = 'false' AND t5.day IS NOT NULL
                    AND ( to_date( replace(t5.day, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS')
                          BETWEEN to_date( replace(t4.taux_start_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS')
                              AND to_date( replace(t4.taux_end_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS'))
             THEN to_date( replace(t5.day, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS')
             ELSE to_date( replace(t4.taux_start_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS') END day_start
      , CASE WHEN ( t5.isWorkDay = 'false' AND t5.day IS NOT NULL
                    AND ( to_date( replace(t5.day, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS')
                          BETWEEN to_date( replace(t4.taux_start_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS')
                              AND to_date( replace(t4.taux_end_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS'))
             THEN to_date( replace(t5.day, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS')+1
             ELSE to_date( replace(t4.taux_end_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS') END day_finish
      , DECODE( t5.isWorkDay, NULL, CASE WHEN (to_number( t4.rate)>0) THEN 'true' ELSE 'false' END, t5.isWorkDay)  isWorkDay
      , DECODE( t5.isWorkDay, NULL, TO_CHAR( to_date( replace(t4.taux_start_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS'), 'HH24:MI:SS'), t6.shift_start) shift_start
      , DECODE( t5.isWorkDay, NULL, TO_CHAR( to_date( replace(t4.taux_end_date, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS'), 'HH24:MI:SS'), t6.shift_finish) shift_finish
      , DECODE( UPPER(t5.dayOfWeek), 'MON', 'LUNDI', 'TUE', 'MARDI', 'WED', 'MERCREDI', 'THU', 'JEUDI', 'FRI', 'VENDREDI', 'SAT', 'SAMEDI', 'SUN', 'DIMANCHE', NULL, NULL) dayOfWeek
      , SYSDATE
      , t1.tache_uid, t1.tache_code, t1.tache_desc
      , t3.curve_name
      , to_number( t4.rate) activity
      FROM WORKBENCH_PROJECT_TABLE t
      , xmltable( xmlNamespaces( default 'http://www.oracle.com/xsd/projet.xsd')
      , '/WORKBENCH_PROJECT/Projects/Project/Tasks/Task' passing OBJECT_VALUE
      columns tache_UID          varchar2(70) path '@UID'
      , tache_code         varchar2(150) path '@taskID'
      , tache_desc         varchar2(150) path '@name'
      , activites_xml      xmltype      path 'Assignments'
      ) t1
      , xmltable( xmlNamespaces( default 'http://www.oracle.com/xsd/projet.xsd')
      , '/Assignments/*' passing t1.activites_xml
      columns ressource_code     varchar2(50) path '@resourceID'
      , curves_xml         xmltype      path 'Curve'
      ) t2
      , xmltable( xmlNamespaces( default 'http://www.oracle.com/xsd/projet.xsd')
      , '/Curve' passing t2.curves_xml
      columns curve_name         varchar2(50) path '@name'
      , segments_xml       xmltype      path 'Segments'
      ) t3
      , xmltable( xmlNamespaces( default 'http://www.oracle.com/xsd/projet.xsd')
      , '/Segments/*' passing t3.segments_xml
        columns rate               varchar2(50) path '@rate'
      , taux_start_date         varchar2(20) path '@start'
      , taux_end_date           varchar2(20) path '@finish'
      , calendar_days_xml       xmltype      path 'Calendar/Days'
      ) t4
      , xmltable( xmlNamespaces( default 'http://www.oracle.com/xsd/projet.xsd')
      , '/Days/*' passing t4.calendar_days_xml
        columns dayOfWeek       varchar2(50) path '@dayOfWeek'
      , isWorkDay               varchar2(20) path '@isWorkDay'
      , DAY                     varchar2(20) path '@start'
      , shift_xml               xmltype      path 'Shifts'
      ) (+) t5
      , xmltable( xmlNamespaces( default 'http://www.oracle.com/xsd/projet.xsd')
      , 'Shifts/Shift'        passing t5.shift_xml
         columns shift_start  varchar2(20) path '@start'
               , shift_finish varchar2(20) path '@finish'
      ) (+) t6; Here is the XSD schema :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:xdb="http://xmlns.oracle.com/xdb"
             xmlns="http://www.oracle.com/xsd/projet.xsd"
             targetNamespace="http://www.oracle.com/xsd/projet.xsd"
             elementFormDefault="unqualified"
             xdb:storeVarrayAsTable="true">
      <xsd:element name="WORKBENCH_PROJECT" xdb:defaultTable="WORKBENCH_PROJECT_TABLE">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="BaseCalendars"/>
            <xsd:element ref="PoolResources"/>
            <xsd:element ref="Projects"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="BaseCalendars" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Calendar" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="PoolResources" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="PoolResource" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="PoolResource" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Calendar"/>
            <xsd:element ref="Curve"/>
            <xsd:element ref="Notes" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="category" type="xsd:string"/>
          <xsd:attribute name="emailAddress" type="xsd:string"/>
          <xsd:attribute name="employmentType" type="xsd:integer"/>
          <xsd:attribute name="description" type="xsd:string"/>
          <xsd:attribute name="firstName" type="xsd:string"/>
          <xsd:attribute name="fullName" type="xsd:string"/>
          <xsd:attribute name="hireDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="inputTypeCode" type="xsd:integer"/>
          <xsd:attribute name="isActive" type="xsd:boolean"/>
          <xsd:attribute name="isExternal" type="xsd:boolean"/>
          <xsd:attribute name="isRole" type="xsd:boolean"/>
          <xsd:attribute name="lastName" type="xsd:string"/>
          <xsd:attribute name="managerUserName" type="xsd:string"/>
          <xsd:attribute name="modBy" type="xsd:string"/>
          <xsd:attribute name="openForTimeEntry" type="xsd:boolean"/>
          <xsd:attribute name="resourceId" type="xsd:string"/>
          <xsd:attribute name="resourceType" type="xsd:integer"/>
          <xsd:attribute name="roleID" type="xsd:string"/>
          <xsd:attribute name="terminationDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="trackMode" type="xsd:integer"/>
          <xsd:attribute name="userFlag1" type="xsd:boolean"/>
          <xsd:attribute name="userFlag2" type="xsd:boolean"/>
          <xsd:attribute name="userNumber1" type="xsd:decimal"/>
          <xsd:attribute name="userNumber2" type="xsd:decimal"/>
          <xsd:attribute name="userText1" type="xsd:string"/>
          <xsd:attribute name="userText2" type="xsd:string"/>
          <xsd:attribute name="userText3" type="xsd:string"/>
          <xsd:attribute name="userText4" type="xsd:string"/>
          <xsd:attribute name="userText5" type="xsd:string"/>
          <xsd:attribute name="userText6" type="xsd:string"/>
          <xsd:attribute name="userText7" type="xsd:string"/>
          <xsd:attribute name="userText8" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Projects" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Project" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Project" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Baselines" minOccurs="0"/>
            <xsd:element ref="Notes" minOccurs="0"/>
            <xsd:element ref="Resources" minOccurs="0"/>
            <xsd:element ref="Tasks" minOccurs="0"/>
            <xsd:element ref="BaselineDetails" minOccurs="0"/>
            <xsd:element ref="Dependencies" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="UID"/>
          <xsd:attribute name="active" type="xsd:boolean"/>
          <xsd:attribute name="asOf" type="xsd:NMTOKEN"/>
          <xsd:attribute name="approved" type="xsd:boolean"/>
          <xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
          <xsd:attribute name="budget" type="xsd:double"/>
          <xsd:attribute name="closed" type="xsd:boolean"/>
          <xsd:attribute name="cpmType" type="xsd:integer"/>
          <xsd:attribute name="department" type="xsd:string"/>
          <xsd:attribute name="description" type="xsd:string"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="finishImposed" type="xsd:boolean"/>
          <xsd:attribute name="format" type="xsd:integer"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="name" type="xsd:string"/>
          <xsd:attribute name="openForTimeEntry" type="xsd:boolean"/>
          <xsd:attribute name="priority" type="xsd:integer"/>
          <xsd:attribute name="projectType" type="xsd:integer"/>
          <xsd:attribute name="program" type="xsd:boolean"/>
          <xsd:attribute name="projectID" type="xsd:string"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="startImposed" type="xsd:boolean"/>
          <xsd:attribute name="status" type="xsd:integer"/>
          <xsd:attribute name="trackMode" type="xsd:integer"/>
          <xsd:attribute name="userText1" type="xsd:string"/>
          <xsd:attribute name="userText2" type="xsd:string"/>
          <xsd:attribute name="userText3" type="xsd:string"/>
          <xsd:attribute name="userText4" type="xsd:string"/>
          <xsd:attribute name="userText5" type="xsd:string"/>
          <xsd:attribute name="userText6" type="xsd:string"/>
          <xsd:attribute name="userText7" type="xsd:string"/>
          <xsd:attribute name="userText8" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Baselines" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Baseline" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Baseline" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="code" type="xsd:string"/>
          <xsd:attribute name="current" type="xsd:boolean"/>
          <xsd:attribute name="description"/>
          <xsd:attribute name="name" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Resources" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Resource" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Resource" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Curve" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="BaselineDetails" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:attribute name="availFrom" type="xsd:NMTOKEN"/>
          <xsd:attribute name="availTo" type="xsd:NMTOKEN"/>
          <xsd:attribute name="bookingStatus" type="xsd:integer"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="openForTimeEntry" type="xsd:boolean"/>
          <xsd:attribute name="requestStatus" type="xsd:integer"/>
          <xsd:attribute name="resourceID" type="xsd:string"/>
          <xsd:attribute name="roleID" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Tasks" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Task" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Task" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Assignments" minOccurs="0"/>
            <xsd:element ref="BaselineDetails" minOccurs="0"/>
            <xsd:element ref="Constraints" minOccurs="0"/>
            <xsd:element ref="Notes" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="UID"/>
          <xsd:attribute name="taskID" type="xsd:string"/>
          <xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baselineDuration" type="xsd:decimal"/>
          <xsd:attribute name="category" type="xsd:string"/>
          <xsd:attribute name="critical" type="xsd:boolean"/>
          <xsd:attribute name="earlyFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="earlyStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="fixed" type="xsd:boolean"/>
          <xsd:attribute name="guidelines" type="xsd:string"/>
          <xsd:attribute name="key" type="xsd:boolean"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lateFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lateStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="locked" type="xsd:boolean"/>
          <xsd:attribute name="methodID" type="xsd:string"/>
          <xsd:attribute name="milestone" type="xsd:boolean"/>
          <xsd:attribute name="name" type="xsd:string"/>
          <xsd:attribute name="outlineLevel" type="xsd:integer"/>
          <xsd:attribute name="percComp" type="xsd:decimal"/>
          <xsd:attribute name="priority" type="xsd:string"/>
          <xsd:attribute name="proxy" type="xsd:boolean"/>
          <xsd:attribute name="shortName" type="xsd:string"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="status" type="xsd:integer"/>
          <xsd:attribute name="summary" type="xsd:boolean"/>
          <xsd:attribute name="totalSlack" type="xsd:double"/>
          <xsd:attribute name="unplanned" type="xsd:boolean"/>
          <xsd:attribute name="userText1" type="xsd:string"/>
          <xsd:attribute name="userText2" type="xsd:string"/>
          <xsd:attribute name="userText3" type="xsd:string"/>
          <xsd:attribute name="userText4" type="xsd:string"/>
          <xsd:attribute name="userText5" type="xsd:string"/>
          <xsd:attribute name="userText6" type="xsd:string"/>
          <xsd:attribute name="userText7" type="xsd:string"/>
          <xsd:attribute name="userText8" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Assignments" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Assignment" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Assignment" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Curve" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="BaselineDetails" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="actualThrough" type="xsd:NMTOKEN"/>
          <xsd:attribute name="actualWork" type="xsd:double"/>
          <xsd:attribute name="baselineWork" type="xsd:double"/>
          <xsd:attribute name="estMax" type="xsd:double"/>
          <xsd:attribute name="estPattern" type="xsd:integer"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="pendActSum" type="xsd:double"/>
          <xsd:attribute name="pendEstSum" type="xsd:double"/>
          <xsd:attribute name="remainingWork" type="xsd:double"/>
          <xsd:attribute name="resourceID" type="xsd:string"/>
          <xsd:attribute name="roleID" type="xsd:string"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="status" type="xsd:integer"/>
          <xsd:attribute name="unplanned" type="xsd:boolean"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Constraints" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Constraint" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Constraint" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="time" type="xsd:NMTOKEN"/>
          <xsd:attribute name="type" type="xsd:integer"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Notes" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Note" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Note" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="category" type="xsd:string"/>
          <xsd:attribute name="content" type="xsd:string"/>
          <xsd:attribute name="createdBy" type="xsd:string"/>
          <xsd:attribute name="createdDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Dependencies" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Dependency" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Dependency" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="lag" type="xsd:decimal"/>
          <xsd:attribute name="lagType" type="xsd:integer"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="predecessorID" type="xsd:string"/>
          <xsd:attribute name="predecessorUID"/>
          <xsd:attribute name="startFinishType" type="xsd:integer"/>
          <xsd:attribute name="successorID" type="xsd:string"/>
          <xsd:attribute name="successorUID"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Calendar" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Days" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="baseCalendar"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="name"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Days" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Day" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Day" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Shifts" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="dayOfWeek" type="xsd:string"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="isWorkDay" type="xsd:boolean"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Shifts" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Shift" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Shift" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Curve" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Segments" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="default" type="xsd:double"/>
          <xsd:attribute name="name" type="xsd:string"/>
          <xsd:attribute name="type" type="xsd:integer"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Segments" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Segment" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Segment" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Calendar" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="rate" type="xsd:double"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="BaselineDetails" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="BaselineDetail" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="BaselineDetail" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Curve" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:attribute name="baselineCode" type="xsd:string"/>
          <xsd:attribute name="costSum" type="xsd:double"/>
          <xsd:attribute name="duration" type="xsd:double"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="usageSum" type="xsd:double"/>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>3) and one of the smallest XML ... (I can send you a bigger one, where you could notice the query duration )
        "Your message exceeds the maximum length of 30000 characters."I can email you an XML file, I failed to upload the smallest XML file !!!!
    Well, I hope that's clear enough ad that you could provide me help and advices
    Thanks a lot in advance,
    Olivier

    connect / as sysdba
    set define on
    set timing on
    -- Define variables for USERNAME, TABLESPACES and XMLDIR that represents the base directory where a 'xsd' directory
    -- exists that contains the called XML schema used in this script to be registered that creates the XMLTYPE OR table
    def USERNAME = cap
    def PASSWORD = &USERNAME
    -- def XMLDIR = 'C:\Temp'
    def USER_TABSPACE = USERS
    def TEMP_TABSPACE = TEMP
    -- End declaritive section
    drop user &USERNAME cascade
    grant create any directory, drop any directory, connect, resource, create synonym, alter session, create view to &USERNAME identified by &PASSWORD
    alter user &USERNAME default tablespace &USER_TABSPACE temporary tablespace &TEMP_TABSPACE
    connect &USERNAME/&PASSWORD
    -- create or replace directory XMLDIR as '&XMLDIR/xsd'
    select * from v$version
    DECLARE
      V_XMLSCHEMA CLOB := '<?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:xdb="http://xmlns.oracle.com/xdb"
             xmlns="http://www.oracle.com/xsd/projet.xsd"
             targetNamespace="http://www.oracle.com/xsd/projet.xsd"
             elementFormDefault="unqualified"
             xdb:storeVarrayAsTable="true">
      <xsd:element name="WORKBENCH_PROJECT" xdb:defaultTable="WORKBENCH_PROJECT_TABLE">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="BaseCalendars"/>
            <xsd:element ref="PoolResources"/>
            <xsd:element ref="Projects"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="BaseCalendars" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Calendar" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="PoolResources" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="PoolResource" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="PoolResource" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Calendar"/>
            <xsd:element ref="Curve"/>
            <xsd:element ref="Notes" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="category" type="xsd:string"/>
          <xsd:attribute name="emailAddress" type="xsd:string"/>
          <xsd:attribute name="employmentType" type="xsd:integer"/>
          <xsd:attribute name="description" type="xsd:string"/>
          <xsd:attribute name="firstName" type="xsd:string"/>
          <xsd:attribute name="fullName" type="xsd:string"/>
          <xsd:attribute name="hireDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="inputTypeCode" type="xsd:integer"/>
          <xsd:attribute name="isActive" type="xsd:boolean"/>
          <xsd:attribute name="isExternal" type="xsd:boolean"/>
          <xsd:attribute name="isRole" type="xsd:boolean"/>
          <xsd:attribute name="lastName" type="xsd:string"/>
          <xsd:attribute name="managerUserName" type="xsd:string"/>
          <xsd:attribute name="modBy" type="xsd:string"/>
          <xsd:attribute name="openForTimeEntry" type="xsd:boolean"/>
          <xsd:attribute name="resourceId" type="xsd:string"/>
          <xsd:attribute name="resourceType" type="xsd:integer"/>
          <xsd:attribute name="roleID" type="xsd:string"/>
          <xsd:attribute name="terminationDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="trackMode" type="xsd:integer"/>
          <xsd:attribute name="userFlag1" type="xsd:boolean"/>
          <xsd:attribute name="userFlag2" type="xsd:boolean"/>
          <xsd:attribute name="userNumber1" type="xsd:decimal"/>
          <xsd:attribute name="userNumber2" type="xsd:decimal"/>
          <xsd:attribute name="userText1" type="xsd:string"/>
          <xsd:attribute name="userText2" type="xsd:string"/>
          <xsd:attribute name="userText3" type="xsd:string"/>
          <xsd:attribute name="userText4" type="xsd:string"/>
          <xsd:attribute name="userText5" type="xsd:string"/>
          <xsd:attribute name="userText6" type="xsd:string"/>
          <xsd:attribute name="userText7" type="xsd:string"/>
          <xsd:attribute name="userText8" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Projects" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Project" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Project" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Baselines" minOccurs="0"/>
            <xsd:element ref="Notes" minOccurs="0"/>
            <xsd:element ref="Resources" minOccurs="0"/>
            <xsd:element ref="Tasks" minOccurs="0"/>
            <xsd:element ref="BaselineDetails" minOccurs="0"/>
            <xsd:element ref="Dependencies" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="UID"/>
          <xsd:attribute name="active" type="xsd:boolean"/>
          <xsd:attribute name="asOf" type="xsd:NMTOKEN"/>
          <xsd:attribute name="approved" type="xsd:boolean"/>
          <xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
          <xsd:attribute name="budget" type="xsd:double"/>
          <xsd:attribute name="closed" type="xsd:boolean"/>
          <xsd:attribute name="cpmType" type="xsd:integer"/>
          <xsd:attribute name="department" type="xsd:string"/>
          <xsd:attribute name="description" type="xsd:string"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="finishImposed" type="xsd:boolean"/>
          <xsd:attribute name="format" type="xsd:integer"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="name" type="xsd:string"/>
          <xsd:attribute name="openForTimeEntry" type="xsd:boolean"/>
          <xsd:attribute name="priority" type="xsd:integer"/>
          <xsd:attribute name="projectType" type="xsd:integer"/>
          <xsd:attribute name="program" type="xsd:boolean"/>
          <xsd:attribute name="projectID" type="xsd:string"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="startImposed" type="xsd:boolean"/>
          <xsd:attribute name="status" type="xsd:integer"/>
          <xsd:attribute name="trackMode" type="xsd:integer"/>
          <xsd:attribute name="userText1" type="xsd:string"/>
          <xsd:attribute name="userText2" type="xsd:string"/>
          <xsd:attribute name="userText3" type="xsd:string"/>
          <xsd:attribute name="userText4" type="xsd:string"/>
          <xsd:attribute name="userText5" type="xsd:string"/>
          <xsd:attribute name="userText6" type="xsd:string"/>
          <xsd:attribute name="userText7" type="xsd:string"/>
          <xsd:attribute name="userText8" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Baselines" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Baseline" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Baseline" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="code" type="xsd:string"/>
          <xsd:attribute name="current" type="xsd:boolean"/>
          <xsd:attribute name="description"/>
          <xsd:attribute name="name" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Resources" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Resource" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Resource" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Curve" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="BaselineDetails" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:attribute name="availFrom" type="xsd:NMTOKEN"/>
          <xsd:attribute name="availTo" type="xsd:NMTOKEN"/>
          <xsd:attribute name="bookingStatus" type="xsd:integer"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="openForTimeEntry" type="xsd:boolean"/>
          <xsd:attribute name="requestStatus" type="xsd:integer"/>
          <xsd:attribute name="resourceID" type="xsd:string"/>
          <xsd:attribute name="roleID" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Tasks" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Task" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Task" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Assignments" minOccurs="0"/>
            <xsd:element ref="BaselineDetails" minOccurs="0"/>
            <xsd:element ref="Constraints" minOccurs="0"/>
            <xsd:element ref="Notes" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="UID"/>
          <xsd:attribute name="taskID" type="xsd:string"/>
          <xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
          <xsd:attribute name="baselineDuration" type="xsd:decimal"/>
          <xsd:attribute name="category" type="xsd:string"/>
          <xsd:attribute name="critical" type="xsd:boolean"/>
          <xsd:attribute name="earlyFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="earlyStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="fixed" type="xsd:boolean"/>
          <xsd:attribute name="guidelines" type="xsd:string"/>
          <xsd:attribute name="key" type="xsd:boolean"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lateFinish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lateStart" type="xsd:NMTOKEN"/>
          <xsd:attribute name="locked" type="xsd:boolean"/>
          <xsd:attribute name="methodID" type="xsd:string"/>
          <xsd:attribute name="milestone" type="xsd:boolean"/>
          <xsd:attribute name="name" type="xsd:string"/>
          <xsd:attribute name="outlineLevel" type="xsd:integer"/>
          <xsd:attribute name="percComp" type="xsd:decimal"/>
          <xsd:attribute name="priority" type="xsd:string"/>
          <xsd:attribute name="proxy" type="xsd:boolean"/>
          <xsd:attribute name="shortName" type="xsd:string"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="status" type="xsd:integer"/>
          <xsd:attribute name="summary" type="xsd:boolean"/>
          <xsd:attribute name="totalSlack" type="xsd:double"/>
          <xsd:attribute name="unplanned" type="xsd:boolean"/>
          <xsd:attribute name="userText1" type="xsd:string"/>
          <xsd:attribute name="userText2" type="xsd:string"/>
          <xsd:attribute name="userText3" type="xsd:string"/>
          <xsd:attribute name="userText4" type="xsd:string"/>
          <xsd:attribute name="userText5" type="xsd:string"/>
          <xsd:attribute name="userText6" type="xsd:string"/>
          <xsd:attribute name="userText7" type="xsd:string"/>
          <xsd:attribute name="userText8" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Assignments" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Assignment" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Assignment" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Curve" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="BaselineDetails" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="actualThrough" type="xsd:NMTOKEN"/>
          <xsd:attribute name="actualWork" type="xsd:double"/>
          <xsd:attribute name="baselineWork" type="xsd:double"/>
          <xsd:attribute name="estMax" type="xsd:double"/>
          <xsd:attribute name="estPattern" type="xsd:integer"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="pendActSum" type="xsd:double"/>
          <xsd:attribute name="pendEstSum" type="xsd:double"/>
          <xsd:attribute name="remainingWork" type="xsd:double"/>
          <xsd:attribute name="resourceID" type="xsd:string"/>
          <xsd:attribute name="roleID" type="xsd:string"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="status" type="xsd:integer"/>
          <xsd:attribute name="unplanned" type="xsd:boolean"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Constraints" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Constraint" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Constraint" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="time" type="xsd:NMTOKEN"/>
          <xsd:attribute name="type" type="xsd:integer"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Notes" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Note" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Note" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="category" type="xsd:string"/>
          <xsd:attribute name="content" type="xsd:string"/>
          <xsd:attribute name="createdBy" type="xsd:string"/>
          <xsd:attribute name="createdDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Dependencies" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Dependency" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Dependency" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="lag" type="xsd:decimal"/>
          <xsd:attribute name="lagType" type="xsd:integer"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="predecessorID" type="xsd:string"/>
          <xsd:attribute name="predecessorUID"/>
          <xsd:attribute name="startFinishType" type="xsd:integer"/>
          <xsd:attribute name="successorID" type="xsd:string"/>
          <xsd:attribute name="successorUID"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Calendar" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Days" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="baseCalendar"/>
          <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
          <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
          <xsd:attribute name="name"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Days" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Day" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Day" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Shifts" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="dayOfWeek" type="xsd:string"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="isWorkDay" type="xsd:boolean"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Shifts" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Shift" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Shift" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Curve" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Segments" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="default" type="xsd:double"/>
          <xsd:attribute name="name" type="xsd:string"/>
          <xsd:attribute name="type" type="xsd:integer"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Segments" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Segment" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Segment" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Calendar" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="rate" type="xsd:double"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="BaselineDetails" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="BaselineDetail" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="BaselineDetail" xdb:defaultTable="">
        <xsd:complexType xdb:maintainDOM="false">
          <xsd:sequence>
            <xsd:element ref="Curve" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:attribute name="baselineCode" type="xsd:string"/>
          <xsd:attribute name="costSum" type="xsd:double"/>
          <xsd:attribute name="duration" type="xsd:double"/>
          <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
          <xsd:attribute name="start" type="xsd:NMTOKEN"/>
          <xsd:attribute name="usageSum" type="xsd:double"/>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>' ;
    BEGIN
      dbms_xmlschema.registerSchema
        schemaurl       => 'http://www.oracle.com/xsd/projet.xsd',
        schemadoc       => V_XMLSCHEMA,
        local           => TRUE,
        genTypes        => TRUE,
        genBean         => FALSE,
        genTables       => TRUE,
        enablehierarchy => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE,
        owner           => user
    END;
    /

  • Exif date change within iphoto11 -which is the most user friendly editor ?

    Hi I am newbie - prior to addressing this question -I have read numerous posts to try and find a solution to this problem but am still unsure as how to resolve it - I transferred a number of photo''s from PC to Mac when I purchased the Mac earlier this year - the iphoto events do not reflect the folders in chronological date that I had in picasa -  - it seems that iphoto categorize events (even if unnamed) according to exifdata -
    The problem I am faced with is that by way of example - although a folder has been titled December 23 2006( and is reflected as an event) - the date reflected in iphoto is January 1 1980 - December 31 2005 (according to erroneous data transfer / incorrect date on the camera (possibly the default date)---- these dates can be seen in grey to the bottom left of the named event which is December 23 2006(when you run your mouse beneath the event title (or unnamed event)
    I tried to change the date , by adjusting the date within iphoto and doing batch change - the problem is that while I have appeared to change the date - the grey dates (1980-1985) remain - I have tried to research an exif editor that would do this - I found better finder attributes 5 - which I have not yet purchased - According to the website of better finder attributes 5 -it seems that if  photo's are already in iphoto with the incorrect exif date date - then you need to export the photo's you are attempting to correct -then run better finder attributes 5 -change the exif information and then import them back into iphoto with the correct date
    my questions
    1. If  I use  better finder attributes 5 - will the grey date (1980-1985) go away once I import the batch of photos with the correct amended date ?
    2. Is better finder attributes 5 the simpliest and easiest exif editor to use in conjuntion with iphoto ?
    3  Is there any exifdate editor that works within iphoto - once you have photo's in the event section of iphoto with the wrong date ?
    Any advice would be most appreciated
    Thanks

    1. If  I use  better finder attributes 5 - will the grey date (1980-1985) go away once I import the batch of photos with the correct amended date ?
    Possibly, but another thing to try:
    Select all the photos in an Event. Flag Them. Then go 'Create Event from Flagged Photos'
    2. Is better finder attributes 5 the simpliest and easiest exif editor to use in conjuntion with iphoto ?
    No, iPhoto is. And if it involves exporting from iPhoto, running the program and then re-importing that's hardly "in conjunction with iPhoto"
    3  Is there any exifdate editor that works within iphoto - once you have photo's in the event section of iphoto with the wrong date ?
    Apart from iPhoto no. The problem here is simply that the database is not rechecking the dates on the photos as you update them, and then updating the Event dates. Creating a new Event from the same photos should force that correction.
    Regards
    TD

  • I want to document everything I eat for my diet, what is the simplest and efficient way to do this, especially the wording

    I dont know if I should add it to notes, or calendar date. By the way, I tried the app, lose it. I didnt like it. I especially interested in the terminology. I find with Siri, the proper word sequence is critical.

    I work with program/process design for large federal projects.
    I am working on modifying one of the processes needed for a database copy.
    The one thing I learned years ago, and have re-learned during this process, is that nothing beats a documentation process you create yourself.  You already learned that someone else's brain-child of a recording process does nto always work for another.
    I have 2 Excel spreadsheets used to "incrementally build" the final list of commands I need, but it uses several TABs on two separate Excel spreadsheets and many cell-fomulas on one TAB that refer to other TABs.
    In short, ask yourself how you would record the food/calories you eat, and start building the process.  You may be very surprised at how talented you really are at creating effective processes.

Maybe you are looking for

  • Could not create a new connection in STRUTS

    Hi, I have done a application in STRUTS using JBOSS as application server, IDE myeclipse, database is MYSQL, current while executing the application at the time of connecting the database it is giving the error as 'could not create a connection ; nes

  • My SN is missing 4 digits, where can I get help to activate it?

    Please somebody help me

  • When will we have ME TV in the Fairmont WV area

    ME TV when will we have it in the Fairmont WV area

  • Java on thumbdrive

    I need to use java 1.5 to access an application that displays real time information over the internet through a browser. Problem is, my IT department won't allow us to install java on our computers. My idea is to install java, and possibly firefox, o

  • Weblogic 10.3 - Windows 2003 64bit OS

    I cannot find the download .exe for the 64bit version of Weblogic Server 10.3 and Portal. Is there a seperate download or do I install the 32bit version on the server? I called the 800 number but was transferred and then dropped - twice!! Any help is