Deleting Schemas:  What am I missing?

Hi.
I am on 11.2.0.3.0 - 64bit Production.
I have deleted a schema using DBMS_XMLSCHEMA.DELETESSCHEMA and delete_option 3.
I have then also deleted the resource using DBMS_XDB.DELETERESOURCE.
I then execute the XMLTYPE schemaValidate method on a record that was based on the schema just deleted and the result is an error that could only occur if the schema as still there (being more than one occurrence of an element that must have only one occurrence).
What am I missing?
Context:  This is a development database and I am trying to replace an incorrect schema without having to spend a lot of time (slow performing system) migrating data using that schema.

OK.  I have formulated a hypothesis while trying to get together a test case for this forum and Oracle support.
Originally I replaced the XSD only as a resource using the DBMS_XDB.DELETERESOURCE method.  Life went on and eventually testing hit an error that lead me to believe I should have done something more.
I then discovered the DBMS_XMLSCHEMA.DELETESSCHEMA method and tried to use that in conjunction with the DBMS_XDB.DELETERESOURCE method.  It was after this, when I could see the schema said one thing but the XMLTYPE schemaValidate method said something different, that I started this discussion and raised an Oracle Support call.
Since then, I have been restoring the DB and repeating tests in order to produce a test case, but everything has then been working as expected.
Hypothesis:  Removing the XSD originally using only the DBMS_XDB.DELETERESOURCE method left the system in some sort of inconsistent state that the subsequent use of the DBMS_XMLSCHEMA.DELETESSCHEMA method could not correct.
Thanks to anyone who spent some time giving this some consideration.

Similar Messages

  • Mkfld32fromschema does nothing, what am i missing?

    mkfld32fromschema -b 200 -i template.xsd -o jimbo
    jimbo contains nothing.
    template.xsd contains:
    <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault="unqualified" >
    <xs:element name="template" type="rootType" />
    <xs:complexType name="rootType" >
    <xs:sequence >
    <xs:element name="templateId" type="templateIdType" />
    <xs:element name="datelastused" type="datelastused" />
    <xs:element name="numberuses" type="numberuses" />
    <xs:element name="lastuserncid" type="lastuserncid" />
    </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="templateIdType" >
    <xs:restriction base="xs:string" >
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="datelastused" >
    <xs:restriction base="xs:string" >
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="numberuses" >
    <xs:restriction base="xs:string" >
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="lastuserncid" >
    <xs:restriction base="xs:string" >
    </xs:restriction>
    </xs:simpleType>
    </xs:schema>
    What am I missing?
    Jim

    All,
    For others looking at this thread in the future, this question was answered at Complex xsd with many nested types as follows:
    Jim,
    mkfld32fromschema is designed to look for <xsd:element name="name" type="type"> elements within schema files. If you installed the SALT samples, you can look at the $TUXDIR/samples/salt/sca/uBikeSCA/uBike.xsd file, which contains
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="tuxedo" targetNamespace="tuxedo">
    <xsd:complexType name="BikeInventory">
    <xsd:sequence>
    <xsd:element name="BIKES" type="Bike" minOccurs="0" maxOccurs="unbounded"/>
    <xsd:element name="STATUS" type="xsd:string" maxOccurs="1"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Bike">
    <xsd:sequence>
    <xsd:element name="SERIALNO" type="xsd:string"/>
    <xsd:element name="SKU" type="xsd:string"/>
    <xsd:element name="NAME" type="xsd:string"/>
    <xsd:element name="TYPE" type="xsd:string"/>
    <xsd:element name="PRICE" type="xsd:float"/>
    <xsd:element name="SIZE" type="xsd:int"/>
    <xsd:element name="INSTOCK" type="xsd:string"/>
    <xsd:element name="ORDERDATE" type="xsd:string"/>
    <xsd:element name="COLOR" type="xsd:string"/>
    <xsd:element name="CURSERIALNO" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    The command mkfld32fromschema -b 200 -i $TUXDIR/samples/salt/sca/uBikeSCA/uBike.xsd produces the following output:
    #NAME ID TYPE FLAG COMMENT
    *base 200
    BIKES 1 fml32
    STATUS 2 string
    SERIALNO 3 string
    SKU 4 string
    NAME 5 string
    TYPE 6 string
    PRICE 7 float
    SIZE 8 long
    INSTOCK 9 string
    ORDERDATE 10 string
    COLOR 11 string
    CURSERIALNO 12 string
    Note that since the type="Bike" associated with name="BIKES" does not start with xsd: , this is assumed to be a nested fml32 type.
    In your case, you can get some output from mkfld32from schema by changing xs: to xsd: in the schema file. The command sed 's!xs:!xsd:!g' <template.xsd | mkfld32fromschema -b 200 -o jimbo will write the following to jimbo:
    #NAME ID TYPE FLAG COMMENT
    *base 200
    template 1 fml32
    templateId 2 fml32
    datelastused 3 fml32
    numberuses 4 fml32
    lastuserncid 5 fml32
    Note that the output is being produced from the date at the top of the file, such as
    <xs:element name="datelastused" type="datelastused" />
    Since these types do not start with xsd: the output type is fml32.
    In order to parse the data in the lower part of the file such as
    *<xs:simpleType name="datelastused" >
    <xs:restriction base="xs:string" >
    </xs:restriction>
    </xs:simpleType>*
    it would be necessary to do more extensive editing on the file contents before passing it to mkfld32fromschema.
    Regards,
    Ed

  • I've deleted all of mail, including trash and sent folders, but my mail usage stays high at around 1.4 gb. What am I missing?

    I've deleted all of mail, including trash and sent folders, but my mail usage stays high at around 1.4 gb. What am I missing?

    It is possible it just hasn' updated yet.
    Try resetting:
    Hold the Sleep/Wake and Home buttons and don’t let go until the screen goes dark and the Apple logo appears (no data will be lost)

  • HT1209 My Itunes Library and iPhone have fallen out of sync on music over the yearsare - how can I compare my itunes library with my Iphone  to see what songs are missing from my library so I can then bring my Library up to date

    My Itunes Library and iPhone have fallen out of sync on music over the yearsare - how can I compare my itunes library with my Iphone  to see what songs are missing from my library so I can then bring my Library up to date

    Hello Solid Buck,
    Thank you so much for providing the details about the duplicate song issue you are experiencing.  It sounds like you would like to remove the duplicate songs that will not play on your iPhone, but when you connect it to iTunes, iTunes only shows you one copy of the song on your iPhone. 
    In this situation, I recommend deleting the individual songs that do not play directly from your iPhone.  I found the steps to do this on page 61 of the iPhone User Guide (http://manuals.info.apple.com/en_US/iphone_user_guide.pdf):
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • In iTunes 10, I could type "Sinatra" in the search file, and would get a list of all tracks with "Sinatra" in any field.   In iTunes 11 I get these clever little windows, with nice arrows, but no lists to view.   What am I missing?

    In iTunes 10, I could type "Sinatra" in the search file, and would get a list of all tracks with "Sinatra" in any field.   In iTunes 11 I get these clever little windows, with nice arrows, but no lists to view.   What am I missing?

    Thanks for chipping in.   I discovered something after trying what you suggested.   I have quite a few collections of hits by year from Time Life and Billboard.  I've eliminated duplicate tracks that appear in both collections (or other CDs for that matter), but cross-reference the CD where I deleted the track and placed in in the comments section of the CD track I retained.   If I "search" by song name, only the remaining track appears.   But if I want to hear for example Classic Rock 1964, only those tracks remaining would be there when I pull up that CD.   So, I type "Classic Rock 1964,"  in the search field.  First the boxes on the right of the screen open up showing album icons.  Showing four tracks by album with a button to view 10 more, then four songs with an option to vies 18 more.   I finally noticed that at the top of the boxes is a blue band that reads, :Show Classic Rock 1964 in Music.  When I double click on this blue band, all 24 tracks from the original CD appear in the song list format even though I had deleted two of them because they appeard in a Beach Boys CD.   On those tracks, I had referenced Classic Rock 1964 in the comments field.    So, bottom line, Search will also look in the comments field if you click "filter by all" in the magnifying glass to the left of the search field.   And you can move all tracks that if finds into a song list by double clicking on the blue band.

  • Pages 4.9 will open Appleworks Documents, but I Pages 5 will not.  What am I missing? or is the software just not as good as 4.9?

    Pages 4.3 will open Appleworks Power PC Documents, but I Pages 5 will not.  What am I missing? or is the software just not as good as 4.3?

    "Some users have reported" is a mild way to put it.  To answer your question "or is the software just not as good as 4.3?" more directly... it's only better in transparency between platforms.  Everything else is pretty gutted.  Dozens of features deleted, as listed occassionally in this long thread: https://discussions.apple.com/thread/5468056?tstart=0
    Oh, one other improvement- it DOES run faster, but then of course it would since it's so much more lightweight.

  • HT1451 I am trying to restore my playlists that disappeared yesterday. I have followed these instructions but when I get to step 7, I can't find File Library Import playlist. What am I missing?

    I am trying to restore my playlists that disappeared yesterday. I have followed the instrutions on the support page but when I get to step 7, I can't find File>Library>Import Playlists. What am I missing?

    I suspect the menus have changeed slightly since that document was written...
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be copied & renamed as iTunes Library.itl to restore the library to an earlier state. Look for a recent .tmp file that is similar in size to the .itl files in the Previous iTunes Libraries folder. If it has happened repeatedly you may want the earliest such file generated since the last iTunes upgrade.
    If applicable, see iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.
    I've noticed more of these missing library posts of late and a common factor to most since I started asking is AVG Anti-Virus. It seems in some cases it might be at least part of the reason why the library file disappears. Try excluding the iTunes folder from any AV scanning process.
    tt2

  • I am up to date with illustrator  CC 2014. When I look under windows, I cannot find extensions. I would like to get to adobe kuler. What am I missing?

    I am up to date with illustrator  CC 2014. When I look under windows, I cannot find extensions. I would like to get to adobe kuler. What am I missing?

    Christal,
    Will this help?
    Illustrator Help | Kuler panel | Illustrator CC
    If things are really missing, you may try the list (in this case 5) is irrelevant).
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • I think I found a bug/bad design - what am i missing?

    Hi Edwin and the team,
    This is my first post as I'm sinking my teeth into the PM Server and Designer. We're considering to use the BPEL technology in the BIG way. And I think it's very cool as the Web Services-based EAI delivers a cost-effective and not proprietary solution!
    Let me describe to you what I believe is a bug or a dubious design. In the Designer, File>New>Oracle BPEL Project creates a new project with a file bpel.xml. For example, look at your CreditFlow sample. In that file there is <partnerLinkBinding name="..." <property name=wsdlLocation"> http://<host name of the WSDL host server>/....
    when the partner WSDL is hosted on the localhost that <host name> in the line above is the name of my machine instead of 'localhost'. Then, <project name>.bpel validation crashes when you're in the off-line (disconnected) mode or connected via VPN gateway (since obviously you think you don't need a proxy because everything is local). But, even if it works inside the LAN I think it's a bad design; since it's generated automatically by Designer the developer doesn't have a clue what's wrog when he/she needs to debug your code. The Designer should stick there 'localhost' instead of the the name of my computer on the network.
    Here how I spotted it. I generated you CreditFlow sample in the Quick Start Tutorial. I went by the book, Compiled the CreditFlow.bpel and it crashed! The book did not say it was supposed to crash. The book said everything should be honky dory. The Validator printed a message: "connection timeout...." Since I'm new to the BPEL it took me awhile to figure out and once I stick 'localhost' in the right place in bpel.xml everything worked. Again, I was running everything on localhost.
    If I helped you guys - great or what am I missing here?
    The problem is that if my company decides to convert the Biz Analysts into BPEL modelers how could a BA figure out the solution to the problem like this? He/She would just give up and tell the Technologists (us) that this is a bad product.
    Thanks,
    Greg
    P.S. What happened to Doron Sherman (CTO) and the old Collaxa folks? He is not listed in the ORCL directory. For those who don't know BPEL Server and Designer were developed by Collaxa and ORCL bought that company last year.

    Hi Gregory,
    I think that the problem you are reporting is a proxy configuration error. There are 2 places where you need to configure the proxy: in the obsetenv.bat and in the eclipse>windows>preferences>BPEL Designer.
    If the server is up and the proxy configuration is correct, you should not receive a timeout error.
    Let me try to explain why it is not possible/desirable to have localhost: the url is generated by the server when it generates a WSIL list of the processes deployed on the server. The server does not know if the client requesting this list is local or remote, this is why he uses the real host name (otherwise remote client would not be able to connect to the service).
    One additional note: the tool is not currently targeted at business analyst (unless they have some development background). BPEL entails some inherent complexity: parallel processing, async interactions, exception management, WSDL, XML Schema, transformation. So although we are working hard on continuously simplifying the implementation and increasing the productivity, we are still targeting application developers.
    I hope this helps.
    Edwin

  • On my phone the iCloud box opens and has an old email ID and wants the password....I have reset the ID and password several times, what am I missing??

    iCloud on my phone still shows 'old email ID' and wants the password.  I have reset the ID(new email address) several times, and my phone does not update. Help!  What am I missing?

    Did you go through the steps in my earlier post?
    If the password for your old ID is not accepted when you try to sign out, and the old ID is an earlier version of your current ID, you'll have to temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  You can now use your current password to turn off Find My iPhone, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Sign Out and choose Delete from My iPhone when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address back to the way it was.  Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password.

  • Family share says I need to complete iCloud setup, what did I miss?

    Family share says I need to complete iCloud setup, what did I miss?

    Welcome to the Apple Community Siobhan.
    Please try the following...
    Go to Settings > iCloud > Delete Account (This removes your data from your device, but not from your account, it will be added back later).
    Restart the device.
    Sign in again (Settings > iCloud, don't use the 'Create New Apple ID' button).

  • Restart install deleting schemas and not oracle

    If I restart my install, and I want to delete the content in oracle (i.e. I want to remove the PCD schema), what is the command string to delete schemas in oracle. I do not want to delete oracle instance just the schemas taht were created during the install. The SAP EP manual refrences the SAP oracle EP manual on how to delete schemas but when you go to the EP Oracle manual there is not section explaining how to delete schemas.
    Thanks
    John Ryan

    You can use drop user "username" cascade;
    From SQLPLUS connect as system or sys.
    username is schema name.
    HTH
    Venkat

  • I want to use wifi for Apple TV, but it doesn't prompt for a password, so never connects.  What am I missing?  Can I only use it via a non-password-protected wifi connection?

    I want to use wifi for Apple TV, but it doesn't prompt for a password, so never connects.  What am I missing?  Can I only use it via a non-password-protected wifi connection?

    Hi - you might want to post this question on the Apple TV area - you would probably get a quicker response - if you have a specific question relating to Apple routers then post back here

  • IPhone 5s doesn't ring and goes directly to voice mail. Do not disturb is disabled. Have reset network settings and did a hard reset.  What am I missing?

    iPhone 5s doesn't ring and goes directly to voice mail. Do not disturb is disabled. Have reset network settings and did a hard reset.  What am I missing?

    Call your phone carrier - that's a problem for them to resolve.

  • I would like to be able to edit MP4s in CS5.  I can not open the file. What am I missing?

    I would like to be able to edit MP4s in CS5.  I can not open the file. What am I missing?

    According to the publisher For GoSystem Tax, the 32-bit version of Internet Explorer 8, 9, or 10 is required.  Which means it can't be accessed from an iPad.  This seems weird.  I would recommend you contact the publisher.

Maybe you are looking for

  • Mail Merge error - ?

    I am getting an error when doing a mail merge. I have a FM database that has been exported to excel (Why ... FM is owned by Apple for goodness sake).  I have then opened the xls file in Numbers and I am getting the error "Please select a Numbers docu

  • Photo albums stalled following restore from iCloud

    What should I do to cancel this stalled download without losing what has already been downloaded

  • New apple id and password

    I upgraded my sons iphone 4s to the ios6 today.  I chose a new apple id and password for him.  He tried to log in and it keeps stating that his password or id are incorrect. What can I do to fix this.

  • JRE 6U35 and JRE7U7 improperly install (via MSI in GPO) on top of existing

    Hello, Within my environment, we occasionally have to push out software updates (MSI based installers) via group policy. We also install the latest JRE as a part of our base install when systems are built. In the past, this has worked without issue.

  • Policy nat address pool

    I have an internal firewall between two private networks. I want all addrssing on the inside to use the gobal and I want any internal address destined for a group of servers on port 23 on the external to use a pool of addreses the inside network is 1