Is this supposed to be the most reliable database server? A msg to oracle.

Hi, it's been 3 weeks now that I'm fiddling with oracle 11g and I am surprised with the amount of installation/startup/shutdown/management issues that I am facing. I need to evaluate oracle as a possible replacement for sql server, I am supposed to test oracle's scalability vs sql server scalability but so far I was messed up by all kind of installation/management issues. Is Oracle a product always in alpha stage?
I am not new with oracle, I've used oracle 10g in the past and I went through all the oracle library documentation (concepts, dba guide, sql reference etc). By now I am pretty confident with db concepts like control files, redo logs, spfile, tablespaces etc.
I've installed it on 4 machines:
1. windows xp 64bit, 40GB Ram
installation went ok, database + listener + dbconsole started correctly. I did a few things but after rebooting the machine the db did not start! (it complained that it tried to allocate 0 bytes of memory where it needed 2mb for some reason).
dbca is supposed to configure an instance but guess what? To configure the instance if first must start the instance and ofcourse in my case it couldn't start the instance!!!
After reading docs, googling etc, I exported spfile to pfile , manually edited the pfile, imported the pfile as spfile and the db finally started working.
Why on earth a product costing so much can't survive a reboot?
2. centos 5.3 64bit on a P4 machine with 2gb ram
installed ok, database + listener + dbconsole started ok after install. There is no script that I am aware which starts or shuts down the db nor the installer prompted me to install the db as a service (/etc/init.d). So I manually had to create scripts to start/shutdown the db by exporting ORACLE_HOME, ORACLE_SID and using dbstart.sh and dbshut.sh and also calling emctrl start dbconsole.
Which means that if someone doesn't shut down the instance before rebooting linux, will the db shut down abnormally?
I would expect a product that costs £13k to install itself properly on linux. mysql is free but comes with proper installations in most linux flavors.
3. centos 5.3, 64bit on an athlon 64 3000+ with 1gb ram.
installed ok, database + listener + dbconsole started ok after install. As you can guess, it didn't survive a reboot. Anyway to make long story short, I managed to create startup/shutdown scripts and all started working.
Then I tried to play admin for a while, i.e. tried to move tablespaces, backup/restore db, backup tablespaces and so on, using dbconsole. Oh well, I can't count the times dbconsole was failing... Are we the beta testers of dbconsole?
But then I needed to change the domain name of the machine and bang! All db services broken again. After fiddling with listener.ora and other config files that I don't remember, I managed to make db and listener work again but not the dbconsole which doesn't want to start and also I don't know where are the log files (there are so many log folders....) Anyway I am still digging into the documentation.
4. fedora 9 32 bit, 2gb ram. Same issues like #2,#3.
I've the following suggestions for oracle:
1. Less configuration files for oracle's next version.
2. Installation should "do it all" for the user in all operating systems
3. a dedicated testing team for dbconsole - it's just buggy
4. improvements on db,tablespace backups and movements. Is it so hard to create a utility that create a zipped backup of tablespaces or the database which can be used on a different server to restore the files?
I've still not worked on my main task : to test scalability. More comments will follow...
Regards,
Kostas

Hi, found the log file, it is under .../dbhome_1/oc4j/j2ee/OC4J_DBConsole_server.lan_orcl/log
It appears that oc4j was trying to load the encryption keys file from OC4J_DBConsole_localhost_orcl, didn't find it, oc4j was then exiting but emctl was constantly trying to restart oc4j!!! One more cool "feature" of oracle.
Anyway, I managed to fix that issue but now oc4j/dbconsole still doesn't start, dunno why, the log says:
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2010-01-07T21:35:39.517+00:00</TSTZ_ORIGINATING>
<COMPONENT_ID>oc4j</COMPONENT_ID>
<MSG_TYPE TYPE="WARNING"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>server.lan</HOST_ID>
<HOST_NWADDR>192.168.1.4</HOST_NWADDR>
<MODULE_ID>network</MODULE_ID>
<THREAD_ID>13</THREAD_ID>
<USER_ID>ariskk</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>192.168.1.4:94967:1262900139517:43</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Exception in NIOServerSocketDriver:selectForRead</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[java.nio.channels.ClosedChannelException
     at java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:252)
     at oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask.selectForRead(NIOServerSocketDriver.java:331)
     at oracle.oc4j.network.NIOServerSocketDriver.selectForRead(NIOServerSocketDriver.java:58)
     at oracle.oc4j.network.ServerSocketAcceptHandler.persistConnection(ServerSocketAcceptHandler.java:389)
     at oracle.oc4j.network.ServerSocketAcceptHandler.endReadHandlerRun(ServerSocketAcceptHandler.java:409)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:275)
     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>
I also got an other problem. I have a heap table and I've created the same table as index organized. I am trying to copy the data over :
insert into header2 select * from header nologging;
But after around 5000 secs, sql developer gives me this error:
SEVERE     117     1314807          java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:246)
and the dml stops running. I've run that 3-4 times and it fails from 4800 to 5200 secs so I recon a time out is in place, any idea how to remove this timeout?

Similar Messages

  • What is the most reliable way to run one Windows accounting program in Osx 10.5.8?

    I have a simple Windows application where I basically do my accounts. I do not want to tie up my Imacs resources with running a full Windows Os "emulation" like Paralells or VMware Fusion just to run a simple accounting program.
    I have heard about apps that can run one windows application at the time through a kind of Osx Application which emulates windows some how. Is is true that this is a better way of running my accounting program? Is it reliable? What I do is to punch in invoices and print out reports basically. How much resources does this "consume" to run it in "one simple application mode" in comparison with for example Paralells?
    And what is the term for running windows in "one simple application mode"?

    I guess you could try the free trial of CrossOver. http://www.codeweavers.com/products/crossover/ You did not say what app you want to run so it is difficult for us to recommend crossover as being able to run the app.
    But your question is that you are looking for the "most reliable" way to run a Windows program. In my opinion you need Parallels or Fusion. These run the real Windows OS so my thinking is it is the "most reliable" method of running a Windows app on an Apple computer, other than Boot Camp.
    But you said you don't want Parallels. This is probably why you have not received any responses. You eliminated the most reliable and easiest method, in my opinion, when you initially posted. Parallels does not consume any resources until you start it up to use your app. You can close it after you are done with your app. Of course hard drive space is required for storing the OS, your app, and data. But you still need to store your app and data regardless of method you choose.
    One more thing, Parallels and Fusion create a virtual machine for running Windows.
    So my recommendation, use Parallels or Fusion.

  • My iphone 5 has restored to an old backup after updating to ios 7 is there any way of getting my stuff back as this has now become the most recent back up?

    my iphone 5 has restored to an old backup after updating to ios 7 is there any way of getting my stuff back as this has now become the most recent back up?
    also since the update it keeps resetting itself? i had a lot of stuff on there that i really wanted and alot of important info lost? please help!!

    You might be able to remove the recent backup from the backups folder and the old one should be usable at that point
    USE EXTREAME CAUTION WHEN ACCESS THE FILES AND DO NOT DELETE ANYTHING
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Note: The "~" represents your Home folder. If you don't see Library in your home folder, Option-click the Go menu.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\

  • What is the most demaming develop dba out for as oracle 10g?

    I am look into develop a dba to sale, what is the most demaming database out
    there for company small to mid business?

    OcpJames,
    As I understand it you want to develop an HR application for resale. I developed a HR/Personnel Management System a long time ago. It took a long time to develop mostly due to the many layers of reporting and government regulation that must be accounted for, and was a hard sell. I'm sure by now that has gotten even worse with Sarbanes/Oxley, etc. In addition many states having differing regulations and reporting. I would be extremely surprised if any company would risk running their HR system on a remote server or would use a remote DBA due to the risk involved, since they are directly responsible under the law. However, you might be able to find a niche market where you can fill a need, and that is certainly what I would aim for. Study the marketplace and determine what that would be, try to find a customer that will work with you and go for it.
    Keep Smiling,
    Bob R

  • Find the current SharePoint Database Server Name

    Hi All,
    In my PRD farm, i have two database servers.
    One is primary say DB_Server and another is Mirror say Mirror_Server of that.
    Sometimes it gets failover automatically to Mirror_Server. So i want to know that is there any powershell command or any other way to find the Active DB Server processing the request at that particular time.
    So if Mirror_Server is processing the request i want the o/p as Mirror_Server Name.
    Thanks in advance

    Use following C# program to get the name of database server -
    Use Microsoft.sharepoint and Microsoft.SharePoint.Administration namespace which are present in Microsoft.sharePoint.dll
    String sServerName = "notFound";
                foreach (var item in SPFarm.Local.Servers)
                    foreach (var svc in item.ServiceInstances)
                        if (svc is SPDatabaseServiceInstance)
                            SPDatabaseServiceInstance s = svc as SPDatabaseServiceInstance;
                            sServerName = item.DisplayName + "\\" + s.Instance;
                MessageBox.Show(sServerName);
    The following powershell code will return all the active databases in SharePoint Farm
    Get-SPFarm | foreach { $_.Servers | ForEach-Object { $a = $_; $_.ServiceInstances | foreach { if ([Microsoft.SharePoint.Administration.SPServiceInstance]$_ -is [Microsoft.SharePoint.Administration.SPDatabaseServiceInstance]) { Write-Host $a; Write-Host $_.DisplayName

  • Extract the data from SQL Server and Import into Oracle

    Hi,
    I would like to run a daily job that will export the table data from SQL server table (it will be only one or two table) and Import back into Oracle table (it might one or two table tables).
    Could you please guide me that how can i do this using either sql server or oracle?
    We have oracle 9.2 and sql server 2005.
    Normally i do from flat file which is generated by source destination nand i dump into oracle using sql*loader but this time I have to directly extract/export the data from MS Sql server and load into Oracle table, mostly it will reload so i might doing any massaging data during the load.
    If you show me the detail approach, it will be really appreciated.
    I have access to Sql server but i don't how to use sql server to do this or using oracle as a daily job even becuase have to schedule the job for this as it will be a daily job.
    Thanks,
    poratips

    Unless you can find an open source ODBC driver for SQL Server that runs on Solaris (and I wouldn't be overly hopeful there) Heterogeneous Services would require that you license something-- a third party ODBC driver, a new Oracle instance, or an Oracle Transparent Gateway.
    As I stated below, you could certainly use SQL Server's ETL tool, DTS. Oracle's ETL tools would require additional licensing since you're just on 9.2. You could also write a small application (Java or otherwise) that connected to both databases and transferred the data. If you're particularly enterprising, you could load the SQL Server Type 4 JDBC driver into Oracle's JVM and write a Java stored procedure that connected to the SQL Server database via JDBC, but that's a pretty convoluted approach.
    Justin

  • Oracles Patchset 6 (9.2.0.7) for the 9.2 Database Server and some stats

    Hi,
    look ( http://orcasoracle.blogspot.com/ ) at some statistics about the Patchsets of the Oracle 9.2 Database Server.
    regards
    Carl

    Yes!
    the problem is that .NET is availabe only on WinX Platforms.
    I hve heared somethong of mono a .NET Framework on Linux/Unix.
    But it's not only this base it's the question which tools/Patterns/Principials
    they use to ensure high quality coding.
    Carl

  • I tried downloading a CD (lots of my itunes music is from CDs) and it went as normal but when i downloaded it to my ipod it doesnt say the name of the artist. I've tried everything. It only did this after i downloaded the most recent itunes version

    So a lot of my music in iTunes is CDs and recently I was trying to download another CD to it and everything went as normal until I downloaded it to my iPod. So I know that to get everything to match you have to change the names and stuff to get the album to match the iTunes version exactly so that everything will go smoothly and I did that but when I downloaded it to my iPod I saw that it didn't name the artist. Where it should say the artist it says "Unknown Artist". I thought that it was just that particular album but than I tried downloading another album and the same thing happened. I've tried everything. I've double checked to make sure the album matches the iTunes version and it still does it. Everything is fine on the iTunes on the computer. It says the artist and stuff but than on my iPod it doesn't. The album artwork, name of the album, and name of the songs are all there but the name of the artist isn't. It never did this before and it started right after I downloaded the latest version of iTunes so since it happened twice I think it may be a glitch with either my iPod or with iTunes but I thought maybe somebody could help me? I guess it's not important but it really bothers me. Especially since it could be avoided.

    Yes i've tried all of that. I've turned it all the way on and off and erased all of my music and put it back on and nothing works. And with the breaking up CDs and putting into compilation categories i have already fixed all of that stuff. It's fine it just doesn't show up in the list of artists. I can find the album in the songs category and the albums category it's just it doesn't show tha name of the artist. All of the other albums that i downloaded before i updated my itunes to th most recent update are fine. It's just the two that i downloaded afterwards. Thanks for trying though.

  • What is the most reliable external hard drive?

    At the beginning of the month I almost lost everything on my computer. So I am now looking for an external hard drive to back everything up. So that never happens again. I'm just scared to get one that is not reliable.

    There is no such animal, but you can have some control by DIY.
    Basic Backup
    Get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    Synk Pro
    Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.
    Although you can buy a complete external drive system, you can also put one together if you are so inclined.  It's relatively easy and only requires a Phillips head screwdriver (typically.)  You can purchase hard drives separately.  This gives you an opportunity to shop for the best prices on a hard drive of your choice.  Reliable brands include Seagate, Hitachi, Western Digital, Toshiba, and Fujitsu.  You can find reviews and benchmarks on many drives at Storage Review.
    Enclosures for FireWire and USB are readily available.  You can find only FireWire enclosures, only USB enclosures, and enclosures that feature multiple ports.  I would stress getting enclosures that use the Oxford chipsets especially for Firewire drives (911, 921, 922, for example.)  You can find enclosures at places such as;
    Cool Drives
    OWC
    WiebeTech
    Firewire Direct
    California Drives
    NewEgg
    All you need do is remove a case cover, mount the hard drive in the enclosure and connect the cables, then re-attach the case cover.  Usually the only tool required is a small or medium Phillips screwdriver.
    At least if you buy a drive you can choose to purchase one with a good warranty. Enterprise level drives are more expensive but carry 5 year warranties such as a Seagate 7200 RPM Barracuda. Likewise, you can spend a little extra on a high quality case such as those made by WiebeTech. Slightly different components if you are going for a portable drive in which case using a Mercury enclosure from OWC with a Seagate Momentus drive.

  • How to set PS for the most reliable image previews and how to make sure the color spaces are the same across plateforms

    I've been having an ongoing problem with some of my images changing color/luminance values after merging or flattening an image. This seems to most often happen if I use one of the filters (like crosshatch or notepaper, not sharpen or blur). I can make a copy using command/option/shift + E which most often will look exactly like what's on screen.
    Some people have suggested that it's to do with resolution, PS showing me a low resolution image but I don't think so because the histogram changes -- sometimes in a big way, but most often those spikes in the luminance levels are shaved off. Also, when I have the image open at 100% and effect a merge/flatten, the color changes.
    I'd like to know if there's a way to have PS show me one for one what I'm working on while I'm working on it, or if there is a way to control the color profiles when I'm saving. My best guess at this point is that there is a color profile mismatch going on somewhere. I just don't know where to look for it.
    Typically I work in 16 bit, so my color space is set to ProPhoto RGB; my camera is set to the Adobe color space;
    color management policies are set to preserve color profiles;
    conversion options --> intent is set to relative colorimetric.

    But it is calibrated. I use Xrite 1 and update it every month (on the first).
    The colors can be really off. Here's an example.
    https://flic.kr/p/r6A1Zd (what I want) https://flic.kr/p/qc5QTD (not what I want)
    Also, I can't see how the bit depth will have any effect since the change in color happens in PS when I merge or flatten. It's 8 bit through the editing and 8 bit when I flatten it.
    Have you any suggestions on what I can do on the computer side?

  • What's the most RELIABLE MacBook Pro ever?

    Hi, my MacBook Early 2008 died last week.
    The displays were flickering. I had connected an external Monitor "NEC PA 241  W".
    At restart it got frozen during booting. Till switching-on the keyboad backlight it works fine, but then nothing.
    The service told the logic board is brocken. It was already replaced due to the known graphic card issue. The new replacement cost should be born by me.
    So I was looking for an other used MacBook. I nearly bought an late 2008 MacBook Pro.
    But here is also a problem with flickering displays (see this threat over 84 pages https://discussions.apple.com/thread/1807105?start=1245&tstart=0 ).
    Now I nearly lost my confidence in the Apple engineers. Is it only good design and marketing?
    Who do have the overview and could recommend a rearly RELIABLE  MacBook Version ( to be used with a second monitor attached).
    Thanks
    Rolf

    Using Mac's for 24 years, I can say the quality has dropped a bit since the Intel switch.
    In fact now with my new $4000 17" MacBook Pro I don't use the keyboard, trackpad at all, hardly use the Sueprdrive and keep the flat surface covered by the packaging.
    People think I'm crazy until I show them a 2007 machine, only 4 years old.
    The keys are a bit weak (but I hit them rather hard so) and the Superdrive had to be replaced, the trackpad button got all scratched form just thumb use (how I don't have a clue)
    So my $900 value machine is too ugly to sell at a good price, so it's used for experimental purposes.
    I was hoping when I bought it I would get a lot more life out of it than 4 years. It's still a powerful machine, just ugly now.
    Perhaps I could send it in and get the keyboard replaced and the whole case colorized.

  • What Is the Most reliable Cloning Application

    I got Personal Back Up X4 and had no problems with Tiger. But since I upgraded my computer and have Mac Pro and iMac, the cloning is no longer working. The application either crashes or gives a bunch of errors. I have heard about CCC and Super Duper. Does anyone can recommend a reliable Application?
    Thanks!

    I cloned using CCC and it was much faster then Personal Back Up X4. It took 2,5 hrs. I have tested by changing the start up disc. Some applications went to trial mode. It did not recognize the serial #. Is this normal?
    I also received an email from Silverkeeper support, here it is:
    "SilverKeeper is compatible with GUID as well as APT, clones can be made with either partition scheme.
    Errors during backup are usually caused by permissions errors on the Source drive, or improper setup, or some other issue with the OS. Repair Permissions usually resolves the issue.
    The best cloning app, slow but sure, is Apple Disk Utility System Restore; does not update backups however. Always a full complete backup. Everything else, including SilverKeeper has pros and cons.
    For the people with problems or questions, have them contact me at this email address. I’ll take a look at the forums to see if I can assist further.
    Mike"
    Message was edited by: Girshon Rutstein

  • If Apple is so full of geniuses, why can't they come up with a usb cable to connect the iPad to a printer? This would seem like the most intelligent first choice for those of us who are absolutely frustrated with iPad printing functionality.

    My sister has an iPad and an HP printer. She cant' print from her iPad even though a genius at the Apple Store sold the combination to her with the idea that it would be easy to do. Instead, I have to go to her place with my MacBook, she sends me an email, and I hook up my laptop to her printer to print what she needs. Why can't the Apple geniuses come up with a USB cable and an OS update to make it easy and NOT SO FRUSTRATING to print from the iPad?
    I've been a Mac user for fifteen years but I could not, in good conscience, recommend an iPad to anyone until Apple considers that ease of use does not include regularly getting frustrated with the easiest of tasks.

    all printers speak a diffrent "computer language" for a device to understand this language
    a driver is required
    some devices such a computers come with drivers for a long line of printers and other devices
    apple decided that it was better not to include that huge list of drivers as users would then not have
    much storage left for media and apps
    then apple let printer makers make apps for printing in app store and make printers support airprint

  • Which of these methods is the most reliable, when ...

    1- "Can I Update?" at Nokia.com?
    2- Checking on "NSU"?
    3- Checking on "FOTA?"
    Let's say if we see "No Updates Available" at "Can I Update?" section of Nokia.com, should we trust it and skip searching for new firmware on other sources such as NSU or FOTA?
    Solved!
    Go to Solution.

    The "can I update" page where you enter your product code only applies to NSU updates.  It does not tell you if FOTA updates are available.
    The page sometimes can lag behind the actual firmware availability by a few hours or even a few days.
    So to be sure to get updates ASAP you have to check FOTA and the NSU as updates can be released on one but not the other.
    There are other unofficial tools that provide much more detailed info of NSU releases, but they cannot be discussed on this forum. 

  • 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;
    /

Maybe you are looking for

  • Display Current Sequence Frame?

    I'm trying to output the current/active sequence frame to a front panel indicator. Is there a direct way to hook into the sequence structure indicator, or will I have to stich a increment function throughout all the frames with multiple sequence loca

  • Photoshop CS3 Disk not Available

    I have several users who when trying to print in Photoshop get an error message saying Could not print <filename> because the disk is not available.  Other users can access the printer with no issues when printing to the same printer with the same fi

  • Why doesn't my menu bar reappear when I move my mouse to the top of the screen while in full screen mode?

    I think the question says it all.

  • Help to connect to Oracle 9i database from an java programme in Solaris 5.9

    Hi, I use to access Oracle Databse in Windows machine by creating DSN using ODBC and the following piece of code import java.io.*; import java.sql.*; public class DBConn      public Connection con;      public DBConn()           try                  

  • My built in speakers

    hp pavilion dv4 notebook pc, windows home premium 64 bit one day i was using skype on my laptop with its sound and mic.  i swiched over to my skype cordless headset.  then another day i came back and could not get my sound to work...it is showing tha