How can I  refer an xml  Schema that was registred in Oracle xml DB

How can I refer an xml Schema that was registred in Oracle xml DB, from other xml schema?
I have the follow schema,:
<?xml version="1.0" encoding="AL32UTF8"?>
<xsd:schema targetNamespace="schemastipostasa.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb/XDBSchema.xsd"
elementFormDefault="unqualified" version="1.0"
attributeFormDefault="unqualified">
<xsd:simpleType name="codigosType" xdb:SQLType="NUMBER(4)">
<xsd:restriction base="xsd:positiveInteger" >
<xsd:totalDigits value="4" />
</xsd:restriction>
</xsd:simpleType >
<xsd:simpleType name="integerUnoType" xdb:SQLType="NUMBER(1)">
<xsd:restriction base="xsd:int" >
<xsd:totalDigits value="1" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="condicionType" xdb:SQLType="VARCHAR2(1)">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="S" >
<xsd:annotation>
<xsd:documentation>Condicion si es S</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="N" >
<xsd:annotation>
<xsd:documentation>Condicion no es N</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType >
</xsd:schema>
I registred the schema written above with the folowwing pl*sql :
DECLARE
direc varchar2(2000);
nombreArch BFILE;
mens varchar2(2000);
BEGIN
direc:=uso_comun.pack_mail.fun_valor_param('TASA','DIR_DBSERVER');
nombreArch:=bfilename(direc,'schemas_tipos_tasa.xsd');
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://xmlns.oracle.com/tasa/schemas.tipos.tasa.xsd',
SCHEMADOC => nombreArch,
LOCAL => TRUE,
CSID => nls_charset_id('AL32UTF8'));
dbms_lob.CLOSE(nombreArch);
dbms_output.put_line('salio sin cancelar');
exception
when others then
mens:=sqlerrm;
dbms_lob.CLOSE(nombreArch);
rollback;
raise_application_error (-20001,'en registro shcema='||mens);
END;
Then, I want to register the following schema, that mention de schema above:
<?xml version="1.0" encoding="AL32UTF8"?>
<xsd:schema targetNamespace="schema.repuesto.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb/XDBSchema.xsd"
xmlns:tns="http://xmlns.oracle.com/tasa/schemas.tipos.tasa.xsd"
elementFormDefault="qualified" version="1.0"
attributeFormDefault="unqualified" >
<xsd:element name="PRECIORENG" type="preciorepType" />
<xsd:complexType name="preciorepType" >
<xsd:sequence minOccurs="1" maxOccurs="unbounded">
<xsd:element name="CODIGO_MARCA" type="tns:codigosType" />
<xsd:element name="ORIGEN_PRECIO" type="tns:integerUnoType" />
<xsd:element name="INGRESO_POR_FALTANTE" type="tns:condicionType" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
But when a run the following script whith the same db-user:
DECLARE
direc varchar2(2000);
nombreArch BFILE;
mens varchar2(2000);
BEGIN
direc:=uso_comun.pack_mail.fun_valor_param('TASA','DIR_DBSERVER');
-- nombreArch:=bfilename(direc,'prueba_schema_seis.xsd');
nombreArch:=bfilename(direc,'Schema_repuesto_nuevo.xsd');
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL =>'http://xmlns.oracle.com/tasa/schema.repuesto.xsd',
SCHEMADOC => nombreArch,
LOCAL => TRUE,
CSID => nls_charset_id('AL32UTF8'));
dbms_lob.CLOSE(nombreArch);
dbms_output.put_line('salio sin cancelar');
--commit;
exception
when others then
mens:=sqlerrm;
dbms_lob.CLOSE(nombreArch);
rollback;
raise_application_error (-20001,'en registro shcema='||mens);
END;
tell me the error: ORA: 01031, insufficient privileges!!!!, what’s wrong??,

Hi,
To register schema, you require XDBADMIN system privilege granted to the user.
Please verify this and retry.
Rgds,
Rakesh Tripathi

Similar Messages

  • My new I5 uploaded doubleded all the songs from my library! Please, can somebody help me showing how can I delete just the songs that was doubled?

    Hi there everybody,
    My new Iphone 5 uploaded doubleded all the songs from my library! Please, can somebody help me showing how can I delete just the songs that was doubled?
    Some help will be greatly appreciate.
    Thanks much!

    When you say "account," do you mean your iTunes library, because your iTunes library is what is on your computer?  Your iTunes library does not have an email address.  An account that is related to iTunes is your Apple ID (which is an email address) and you use it as your user name to sign in to the iTunes Store, to make purchases.  Changing your Apple ID will not make songs disappear from your computer's iTunes library.
    If you had an Apple ID and used it to make song purchases from the iTunes Store, and then started using a different Apple ID, you should be able to re-download the songs purchased with the old Apple ID.  In iTunes, sign in to the iTunes Store using your OLD Apple ID (and password).  That may not be your current email address, but Apple uses it as your user name, so it does not matter.
    On the iTunes Store Home screen, click on Purchased under QUICK LINKS.  This takes you do the Purchased screen, where you can re-download previous song purchases (for that Apple ID) at no cost. 
    NOTE:  If those song purchases are from more than a few years ago, you may also need to authorize your computer to play (and sync) songs for your old Apple ID. 
    For songs that were not purchased from the iTunes Store, if they are also gone, you cannot get them back unless you have a backup (or they are still loaded on your old iPod).
    If that's not what you mean by "changed the email address on my account," please post back with more details.

  • How can I erase a photo album that was uploaded from an old computer that I don't have no more? I have other albums in the Iphone that I don't want to delete.

    How can I erase a photo album that was uploaded from an old computer that I don't have no more? I have other albums in the Iphone that I don't want to delete.

    If you sync with the new computer it will erase the current content from the iphone and replace with the selected content of the new computer.
    The pics that you have taken with the iphone should be imported regularly to your computer as you would with any digital camera.  You can then organize them and sync them back to the iphone if you wish.
    If you have had itunes perform a backup on the new computer, you should get the pics taken with the iphone back, but I would import them before trying anything.

  • How can I retrieve a mail message that was accidentally deleted.  It's not in the trashcan.

    How can I retrieve a mail message that was accidentally deleted.  It's not in the trashcan. 

    Which trashcan, mail or osx

  • How can I change the appe ID that is registred in my Ipad? It was bought for a friend and he put his own ID. I have my ID but I don' t know how I can install it in my Ipad

    How can I change the appe ID that is registred in my Ipad? It was bought for a friend and he put his own ID. I have my ID but I don' t know how I can install it in my Ipad

    Tap on the id in Settings > Store and log out of it and then log in with your id. But if there is any content on the iPad from his account then you are probably better off resetting back to factory defaults via Settings > General > Reset > Erase All Content And Settings and starting 'as new' with it - content is tied to the id that bought/downloaded it so your account won't be able to download updates to any of his apps, and unless his account is authorised on your computer's iTunes and his content is on there then it will be deleted when you sync to it.

  • How can I retrieve my calendar info that was sucked from my iPad 2 after upgrading to OS V and backing up to iCloud (using Windows XP computer with Outlook)?

    How can I retrieve my calendar info that was sucked from my iPad 2 after upgrading to OS V and backing up to iCloud (using Windows XP computer with Outlook)?

    I think (and I'll double check) only the BBLink events will sync on a wired USB sync. I'm fairly certain of that.
    You'll need to use your calendar syncing via an EAS email account (outlook.com, for instance, is free) to sync wirelessly. It works great. I use it and was a former tied to the USB sync guy as well... and I thought I was gonna die a painful death without it. I found more freedom this way.
    This explains the process. But I don't think you'll get BBM Groups to sync.
    http://supportforums.blackberry.com/t5/BlackBerry-​Z10/How-To-OTA-Sync-BB10-and-non-BES-Outlook-Overv​...
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can i get my purchased music that was under another user name

    how can i get my purcchased music that I purchased under anorhe user name.  I just lost all of my music!

    You will need to sign into the iTunes Store using that other Apple ID and password. Then you can re-download the content via the Purchased link.
    Regards.

  • How can I see a calendar item that was in my backup

    I did a full backup at home of my 8330 with BB Desktop Software a week ago.
    But I accidentally left my phone in the office and can't retrieve it until Monday.
    The data I need is in one calendar entry in the backup. How can I see it? I don't own Outlook or Office.
    I can't figure out where to start.
    Solved!
    Go to Solution.

    Not easily, as the backups are intended to restore to the BlackBerry device, not be viewed and/or edited on the PC.
    Try to find ABC Amber IPD Converter software for your PC. It can read your backup IPD files and save to Excel or another PC file format.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can I find a previous device that was registered with the same id but on a different laptop?

    my laptop was stolen along with my ipod touch. It was registered with that laptop but I need proof for an insurance claim. how can i show i registered it (owned it) with my new laptop?
    my ipod was previous to the most recent so i think thats a 4th gen
    i've used the same apple id on both laptops
    thanks

    ok well my last laptop was the only lapyop used to sync my ipod (thought that meant it was registered)
    i need proof of purchase for an insurance claim. i dont have the box because i threw it away when i got the ipod. is there any way of showing, on my new laptop, that i had my last ipod so that i can get a replacement.
    cheers

  • How Can I View an AppleScript File that was Saved as "Run Only"?

    Hello. I would like to view the AppleScript of a file I downloaded. But when I show the package contents, find the script, and try to open it, I get a message saying that the file "main.scpt" could not be opened because it was saved as run-only. How can I view this file?

    Are you using the save version of Illustrator on both Mac and PC? If so, and you have the same fonts installed on both machines you should be able to open it without any problems. You may need to tell it which fonts to assign, they are not always named the same. If you don't need to edit the text, you could convert the text to outline and eliminate the need for fonts.

  • HT201272 how can i get back an app that was bought?

    Hi!!
    I have a problem!! I bought an app on my ipad 2 before iCloud. later i bought an iphone 4s and synced all my previous apps (i had also an ipod touch) to my iphone. includying my paid apps.
    however, yesterday i restored my iphone and when i tried to download all my apps back again, i didnt find the app that i had bought! i went into the store and it said i had to purchase it again.
    i dont have my app files on my computer since i format it before.
    how can i get back that app??
    sometimes, whenever i download a new app, it doesnt automatically appear on my "purchased app" option on app store!
    please i need some help
    thank you
    sincerely
    dante v

    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How can I open a keynote file that was made in Keynote Beta and downloaded from the web?

    I have Keynote version 5.3
    I want to edit a Keynote presentation made originally in Keynote Beta on the web.
    When I download it in .key it wont let me edit the file because it says I need a newer version of Keynote.
    When I try to download Keynote 6.0.1 I'm told I can't because I need a newer operating system!! I currently have 10.7.5 and there are no new updates.
    Can I NOT open a keynote file that was made in Keynote Beta??!

    Dude, the FCP-X forum is located here: https://discussions.apple.com/community/professional_applications/final_cut_pro_ x?view=discussions
    This is the Final Cut Studio forum.  There are no similarities between the two.
    -DH

  • How can I get rid of text that was made in iMovie while in FCPX

    I imported a video from my imovie and am in the process of adding text in the frames, is there a way to get the old text that was embedded in the imovie, can it be cut or editied out of the frames, I don't see any options that allow you to select it and delete. I just don't want to have to go back and delete it out as I have already made some major improvements on the exsisiting project.
    Thanks,
    Bob

    Dude, the FCP-X forum is located here: https://discussions.apple.com/community/professional_applications/final_cut_pro_ x?view=discussions
    This is the Final Cut Studio forum.  There are no similarities between the two.
    -DH

  • How can I use my Iphone 5s that was purchased in the US here in the Philippines?

    please let me know

    What do you mean how can you use the phone?  Go out and buy a sim card and put it in the phone to activate it and start using it.

  • How can i view my first text that was sent to me by a person in imessage?

    i have been talking to this person for a while and i wanted to go through the whole chat history but, i have to keep tapping on load earlier messages is there a quicker way of getting right to the top if so can you please help me thanks

    Not that I have ever seen or heard.  So unfortunately, you'll have to just keep doing what you are already doing.
    B-rock

Maybe you are looking for

  • Was not copied because it cannot be played on this ipod

    I am getting this message when I try to put songs on my ipod. I have had the ipod for over a year and have never had any problems until now. I bought an album of iTunes Store, burned an audio CD,imported it into iTunes as MP3 and tried to put the mp3

  • Border Manger as proxy: slow internet connection

    Hi, I have installed Border Manager in Netware 6.5 sp8 as a proxy. Using it makes our internet connection to slows down. What could be the cause of this problem? Thank you! Ken

  • Cannot remove a job

    Oracle 10G R2 Log in as sysdba SQL> select job,schema_user from dba_jobs; JOB SCHEMA_USER 22 PERFSTAT 1 SYS 21 REPADMIN SQL> SQL> execute dbms_job.remove(22); BEGIN dbms_job.remove(22); END; ERROR at line 1: ORA-23421: job number 22 is not a job in t

  • The wackiest thing ever on FCE

    Ok, this beats all. somehow, i lost my timeline and canvas, they were greyed out in the selection to modify the windows, so i found the answer on this forum, i think (double click on sequence) but i must have spaced out or something because right bef

  • Option to save a control in PC 10.0

    Dear Experts, When I try to save a control (Local Control) the Option is not highlighted and an option submit is appearing. Could anyone explain what could be configuration to get the save option directly instead of submitting it. (Even when I try to