Oracle's Schema Processor is failing to catch errors

I tried validating an XML document with known errors against a valid schema using Oracle's Schema Processor v0_9_0_0 and did not get the expected results.
I used the following test file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Cars xmlns = "http://www.CarDealers.com/"
xmlns:xsi = "http://www.w3.org/1999/XMLSchema/instance"
xsi:schemaLocation = "http://www.CarDealers.com/ Store.xsd" RequestDate="ashd">
<Model>Ford</Model>
<Make>ExplorerExpeditionTaurusF150Escort</Make>
<Year>1999</Year>
<OwnerName>Joe Smith</OwnerName>
<OwnerName>Bob Jones</OwnerName>
<Condition Automatic="NA">Small dent on right bumper.</Condition>
<Mileage>400000000</Mileage>
</CarDealers>
And validated the sample against the following schema:
<?xml version="1.0" encoding="ISO-8859-1"?>
<schema xmlns = "http://www.w3.org/1999/XMLSchema"
targetNamespace = "http://www.CarDealers.com/">
<element name="Car">
<complexType>
<element name="Model">
<simpleType base="string">
<enumeration value = "Ford"/>
<enumeration value = "Saab"/>
<enumeration value = "Audi"/>
</simpleType>
</element>
<element name="Make">
<simpleType base="string">
<minLength value = "1"/>
<maxLength value = "30"/>
</simpleType>
</element>
<element name="Year">
<complexType content="mixed">
<attribute name="PreviouslyOwned" type="string" use="required"/>
<attribute name="YearsOwned" type="integer" use="optional"/>
</complexType>
</element>
<element name="OwnerName" minOccurs="0" maxOccurs="unbounded"/>
<element name="Condition">
<complexType base="string" derivedBy="extension">
<attribute name="Automatic">
<simpleType base="string">
<enumeration value = "Yes"/>
<enumeration value = "No"/>
</simpleType>
</attribute>
</complexType>
</element>
<element name="Mileage">
<simpleType base="integer">
<minInclusive value="0"/>
<maxInclusive value="20000"/>
</simpleType>
</element>
<attribute name="RequestDate" type="date"/>
</complexType>
</element>
</schema>
The Oracle parser did not recognize the W3C facet syntax of minLength and maxLength; the file would pass validation if I changed the syntax to minlength and maxlength.
The Oracle parser did not recoginze the W3C "use=" syntax used for attribute occurrences; the file would pass validation if I changed the syntax to minOccurs and maxOccurs which should be used for element validation only.
The Oracle parser did not recoginze the W3C "unbounded" syntax used to define max occurrences of elements; the file would pass validation if I changed the syntax to maxOccurs="*" .
The element "Year" was defined with a required attribute, PreviouslyOwned. However, the sample file is missing both the PreviouslyOwned and optional YearsOwned attributes and passes validation. It appears that the parser does not validate the presence of a required attribute unless another attribute is present for the element, e.g. if the optional YearsOwned attribute was in the file the parser would then catch that the PreviouslyOwned attribute was missing.
The sample file validated with an incorrect value of "ashd" for the RequestDate element, so it appears the "date" data type is not supported.
The parser does not recognize the "derivedBy" syntax used to define the Condition element. How else can you define the constraints for an elements value and attributes?
Based on some additional testing it appears that the Oracle parser cannot handle more than 4 or 5 include statements to reference other schemas.
Are these known bugs in the Oracle parser? Has Oracle issued any updates to this initial release? Are there any settings I should be aware of that may provide full er validation?
null

Hi OTM,
One of our Integration Subsystem is heavily depend on the schema processor for XML validation. 0.9 release - eventhough it is an Alpha, has proven to be very helpfull for us. We are looking forward to use the final release of this product, and expect it will completely support the W3C Schema Spec. I'm wondering when will be final relase availabe? Could you please give us a time limit for the new release? Thanks.
Shankar
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Oracle XML Team:
The current release is the initial one that is incomplete. Our second release is scheduled for the end of the month and will be much better.
Oracle XML Team<HR></BLOCKQUOTE>
null

Similar Messages

  • BUG: Oracle Schema Processor does not work in Servlets

    We found a bug with Oracle's Schema Processor. It does not work in Servlets.
    When we try to validate a XML document in a Servlet it does not work, but we can execute the same code in a stand alone application and it works.
    The following is the code we are using:
    try {
    File f =new File(filename);
    FileReader r = new FileReader(f);
    DOMParser dp = new DOMParser();
    URL url = createURL (filename);
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(url);
    System.out.println("it is parsed");
    } catch(Exception e){System.out.println("there is Error"+e.getMessage());}
    null

    I don't think this is related to Servlets per se.
    Check that the Schema processor classes used by the servlet container, and your application are the same.
    Java does not have proper versioning of classes, I have seen many applications collapse. People compiled their code on developer machines, where it worked fine, but when moved to a production machine they failed because the production machine had a different version of classes. Usually the name of the class doesn't change, but either a method or a variable is missing in several classes. VM doesn't complain but simply crashes.
    In your Schema Processor classes that are used by the servlet engine might be different from the one that the app uses. Do a search on the file system to see how many copy of the same class bundle (zip, jar) you have on the system.

  • Help needed with XML Schema Processor sample

    I'm trying to run the sample that came with the Oracle XML Schema Processor (XSDSample.java) and get the following error:
    -- process file: catalogue.xml
    file:/D:/java/xml/ORACLE/XSD/catalogue.xml<Line 8, Column 32>: XSD-2001: (Error) Can not create instance of: 'oracle.xml.parser.schema.XSDBuilder'
    What am I doing wrong. I am running the sample unchanged.
    thx,
    e
    null

    Looks like unzipping the jar and making sure its in your classpath fixed the problem. not sure why explicitly having the xschema.jar in the classpath didn't work.
    e

  • Schema Processor V1.0 problem

    Hi all,
    Just downloaded the Oracle XML Schema Processor v1.0, and tried the sample program called 'XSDSetSchema'. I tried to validate the supposedly valid 'catalogue.xml' but it gave me this error:
    Invalid element: 'Digest'
    I tried the other XML document provided 'report.xml' and it validates fine. Anyone had the same problem??
    Thanks,
    Jin

    Quote
    it was OEM computer.. so what's the problem?
    You do not have an MSI Retail mainboard but an OEM variant manufactured by MSI to be sold under the name of the OEM vendor.  The OEM version of the MS-7181 mainboard simply does not have a SATA controller and hence there are not SATA ports.  This is not unusual and there is nothing you can do about it.  That is just the way it is. There is no problem with the mainboard (besides the fact of course, that it is an OEM board without SATA Support).
    Please read this as well:  https://forum-en.msi.com/index.php?topic=110544.0
    Neither MSI nor this forum provides end-user support for OEM products.  That is why I am locking this topic.
    __TOPIC CLOSED__

  • [Oracle JDBC Driver][Oracle]ORA-31011: XML parsing failed

    Hi,
    I have got the following error when i tired to upload an XML file in my application. My application will insert the XML file in to Oracle 10g data base table. (Our DB server is Oracle 10g).
    The error is as follows:-
    [BEA][Oracle JDBC Driver][Oracle]ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00004: internal error "MultiChar overflow"
    Error at line 20795
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    The XML file contains more than 90,000 lines in it. Please help.
    Thanks!
    Siva K.

    Is this a specific problem with 10G release? We are using 10.2.0.4.0.
    Using CLOB, We think that this may hit the performance of the application as we are using large XML files.

  • Report server failed service specific error 186

    Gurus!
    I am using oracle 9iAS enterprise,
    Report server failed service specific error 186
    Kindly help!

    I believe you'll need to edit your tnsnames.ora file located in \ORACLE\806\NET80\ADMIN. The last line of this file should read something like
    Rep60_SYSNAME, Rep60_SYSNAME.world = (ADDRESS=(PROTOCOL=tcp) (HOST=SYSNAME) (PORT=1949))
    where SYSNAME is the name of the PC Reports is installed on.
    I had this same error, and once I modified this file, everything seemd to work fine.
    Good Luck
    [email protected]

  • My problems with Oracle Schema Processor for C++ :(

    Dear ;) Oracle XML team and others,
    the followings are really inconvenient with the C++ schema processor:
    -it doesn't even support the Candidate
    Recommendation (OK, the Java version does
    support it, and you can use XSU and upgrade your schemas later when the C++ will also
    support it.)
    -you cannot put comments in the schema, just after the <xsd:schema> element.
    -it's checking the attribute use="required"
    when an attribute is declared in a
    complexType, but it doesn't check
    when an attribute is referenced or, which could be much more useful, when an
    attributegroup is referenced, and it contains
    use attributes. (I tried XMLSpy and it was correct. But I need an API or a C++ tool.)
    I'm really awaiting this schema processor to be updated (maybe on April 14 the W3C Schema recommendation ;))
    -it supports "import" but I had problems with "include" (this looked like a bug, but after I'd posted it, noone replied :(. Maybe because the C++ processor is kind of "obsolete")
    Will the C++ version be updated? (When?)
    I cannot use Java because I try to integrate with a C++ application. I was looking for
    other products, but I only found XSV, Java XSD processors and built-in tools. It's quite sad that there isn't a C++ implementation available. :( Can anyone help me?
    Tamas
    null

    Originally posted by Tamas >Marcinkovics ([email protected]):
    Dear ;) Oracle XML team and others,
    -you cannot put comments in the schema, just >after the <xsd:schema> element.I tried the following:
    <?xml version="1.0"?>
    <schema
    xmlns = "http://www.w3.org/1999/XMLSchema"
    targetNamespace = "http://www.CarDealers.com/">
    <!-- this should fail -->
    <element name="Car">
    </element>
    </schema>
    and it works!
    Can you provide some examples?
    Thx!
    null

  • Schema Processor fails when invoke from code

    I can't get the Schema Processor to run correctly when I invoke it from a servlet (compiled from a JSP). I've tried both invoking it directly (a la XSDSample) and via Runtime.getRuntime().exec("java XSDSample report.xsd").
    When I invoke it directly, it reports, "XSD-2000: (Error) Can not build schema 'http://www.example.com/Report' located at 'report.xsd'". When I invoke it via Runtime, it reports that the file parses correctly, even after I change the file to contain an invalid element.
    I've checked (and re-checked) the file locations etc. I've also tried prepending a valid URI to the schema filename. All to no avail.
    If anyone has working code (other than the supplied samples), please post or send it to me at: [email protected]
    Thanks,
    Steve

    No solution.
    I decided to follow Oracle's advice for virtually all the bugs and, "wait for the next version."
    Hopefully their QA team monitors these discussions and tracks the reported bugs. And hopefully their developers fix the bugs. To be honest, I'm not optimistic.
    At least it's free.

  • Oracle schema processor

    hi,
    i am new to XML. I wish to validate a xml against a schema. I hv downloaded the oracle schema processor from the web and the example there works fine on my machine.
    I would like to know. how do i assign targetname space and ref in xml to xmlns to the local schema files. not use internet references.
    SCHEMA trial1.xsd file stored in ABC directory:
    <?xml version="1.0"?>
    <schema xmlns =
    "http://www.w3.org/1999/XMLSchema"
    targetNamespace = "file://c:/abc"
    xmlns:trial1 = "file://c:/abc">
    <element name="Title" type="string"/>
    <element name="Volume" type="integer"/>
    <element name="Publisher" type="string"/>
    </schema>
    XML file trial11.xml
    <?xml version="1.0"?>
    <Catalogue xmlns:trial1 =
    "file://c:/abc/trial1.xsd">
    <Title>the book</Title>
    <alpha>3</alpha>
    <Publisher>alpha</Publisher>
    </Catalogue>
    when i run this with the schemaprocessor i get no error. as if the schema did not exist.
    kindly help. basically how do i reference schemas which are local.
    thanks
    null

    Hi Vicky,
    I downloaded the schema processor recently and had the same problem that you did. Basically the answer is that the URL is a reference -- the processor will not go out to check it. Try this:
    Trial1.xsd:
    <?xml version="1.0"?>
    <schema
    xmlns = "http://www.w3.org/1999/XMLSchema"
    targetNamespace = "http://www.foo.com/bar">
    <element name="Catalogue" type="CatType"/>
    <complexType name="CatType">
    <element name="Title" type="string"/>
    <element name="Volume" type="integer"/>
    <element name="Publisher" type="string"/>
    </complexType>
    </schema>
    Trial1.xml: (note: the name is not Trial11.xml)
    <?xml version="1.0"?>
    <Catalogue
    xmlns = "http://www.foo.com/bar"
    xmlns:xsi = "http://www.w3.org/1999/XMLSchema/instance"
    xsi:schemaLocation = "http://www.foo.com/bar trial1.xsd">
    <Title>the book</Title>
    <Volume>3</Volume>
    <Publisher>alpha</Publisher>
    </Catalogue>
    [This assumes that both files are in the currentworking directory.]
    I hope this helps.
    Cheers,
    --Andrew.
    null

  • Problem with running sample code from XML Schema Processor for Java

    Hi there,
    I downloaded the XML Schema Processor for Java and tried it out. Unfortunately, it failed at the first step. FYI, I included all xmlparserv2.jar and xmlschema.jar in my classpath.
    I compiled XSDSample.java with a warning: XSDSample.java uses a deprecated API. Recompile with "-deprecation" for details. There was no problem with compiling XSDSetSchema.java.
    When I tried to run report.xml by typing java XSDSample report.xml, I got Parsing report.xml
    NonParserException: null.
    I guess that report.xml from the sample is not valid.
    Could any one give me a hint? Any suggestion would be greatly appreciated.
    ---Denali
    null

    Please post this message at:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB

  • Problem with schema processor

    Hello,
    I'm using the newest xml xdk (9.2.0.3.0) for windows. I have the following test example for the schema-processor
    <?xml version="1.0" encoding="UTF-8"?>
    <REPORT ID="4711" xmlns="http://www.oracle.com/REPORT" xmlns:COMOD="http://www.oracle.com/REPORT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/REPORT example.xsd">
    <Module>
              <FELDA MODULE_ID="104">FELDA
                   <FELDB MODULE_ID="4711">Test</FELDB>
              </FELDA>
              <FELDA MODULE_ID="105">hkfjdn
                   <FELDC MODULE_ID="4811">test2</FELDC>
              </FELDA>
              <FELDA MODULE_ID="106">
                   <FELDB MODULE_ID="4576">fhgjf</FELDB>
                   <FELDC MODULE_ID="3457">tzdhs</FELDC>
                   fhgjdfl
              </FELDA>
              <FELDA MODULE_ID="103">FELD_VALUE</FELDA>
    </Module>
    </REPORT>
    and the corresponding xsd-file
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/REPORT" xmlns:REPORT="http://www.oracle.com/REPORT" elementFormDefault="qualified">
         <complexType name="FELDAType" mixed="true">
              <choice minOccurs="0" maxOccurs="unbounded">
                   <element name="FELDB" type="REPORT:FELDBType"/>
                   <element name="FELDC" type="REPORT:FELDCType"/>
              </choice>
              <attribute name="MODULE_ID" type="string" use="required"/>               
         </complexType>
         <complexType name="FELDBType">
              <simpleContent>
                   <extension base="string">
                        <attribute name="MODULE_ID" type="string" use="required"/>
                   </extension>
              </simpleContent>
         </complexType>
         <complexType name="FELDCType">
              <simpleContent>
                   <extension base="string">
                        <attribute name="MODULE_ID" type="string" use="required"/>
                   </extension>
              </simpleContent>
         </complexType>
         <complexType name="ModuleType">
              <sequence>
                   <element name="FELDA" type="REPORT:FELDAType" minOccurs="1" maxOccurs="unbounded"/>
              </sequence>
         </complexType>
         <element name="REPORT">
              <complexType>
                   <sequence>
                        <element name="Module" type="REPORT:ModuleType"/>
                   </sequence>
                   <attribute name="ID" type="string" use="required"/>
              </complexType>
         </element>
    </schema>
    The xml-spy 44 says everything is valid, but I got the following error using the schema test example xsdtest.cpp
    In line 15 of example.xml:
    LSX-00204: Extra data at end of complex element
    LSX-00213: Only 0 occurance(s) of element "s", minimum is 1
    Here is the xsdtest.cpp
    // Copyright (c) Oracle Corporation 1999, 2000, 2001. All Rights Reserved.
    // NAME          validate.c
    // DESCRIPTION     Sample usage of C XML Schema processor
    #include <iostream.h>
    #include <string.h>
    #ifndef ORAXML_CPP_ORACLE
    # include <oraxml.hpp>
    #endif
    #ifndef ORAXSD_CPP_ORACLE
    # include <oraxsd.hpp>
    #endif
    int main(int argc, char **argv)
    XMLSchema schema;
    XMLParser parser;
    Element *root;
    xmlctx *ctx;
    char doc, uri;
    uword ecode;
    cout << "XML C++ Schema processor\n";
    if ((argc < 2) || (argc > 3))
         cout << "usage: validate <xml document> [schema]\n";
         return -1;
    doc = argv[1];
    uri = (argc > 2) ? argv[2] : 0;
    cout << "Initializing XML package...\n";
    if (ecode = parser.xmlinit())
    cout << "Failed to initialize XML parser, error " << ecode;
    return 1;
    cout << "Parsing '" << doc << "'...\n";
    if (ecode = parser.xmlparse((oratext *) doc, (oratext *) 0,
                        XML_FLAG_DISCARD_WHITESPACE))
    cout << "Parse failed, error " << ecode << "\n";
    return 2;
    cout << "Initializing Schema package...\n";
    if (ecode = schema.initialize(&parser))
         cout << "Failed, code " << ecode << "!\n";
         return 3;
    cout << "Validating document...\n";
    root = parser.getDocumentElement();
    if (ecode = schema.validate(root, (oratext *) uri))
    cout << "Validation failed, error " << ecode << "\n";
    schema.terminate();
    return 4;
    cout << "Document is valid.\n";
    schema.terminate();
    return 0;
    Could you please help. There should be a problem with mixed content in a ComplexType or with the attribute minOccurs and maxOccurs at the choice element.
    Thank you in advanced
    R|diger Brand
    ESG GmbH

    I just installed the parser and schema and
    it worked out of the bag for me.
    I'm using Java 1.3.0 :
    java version "1.3.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
    Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
    But, like the original poster, I wonder why
    these samples use the old standard?
    The readme doc says it conforms to the 2000/10 spec.
    For grins I changed report.xml and report.xsd to now reference the 2000/10 namespaces and the parser runs but reports some errors. I guess that is OK, and that somebody just needs to update the schema itself to the new standards. Still, it makes me wonder...
    Now, my problem is that I have an xml/xsd combo that it chokes on but that is another post.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Denali ([email protected]):
    Hi Karin,
    I copied report.xml and report.xsd from the context of your message body and tried them out. They both worked well with XSDSample and XSDSetSchema. The only difference, I guess, is that I am using IBM's jdk1.1.7. You might want to get a lower version of jdk, like 1.1.7 or 1.1.8 and try them out again.
    The only problem I have is the data type of "date". It seems to me that all the date types of "date/time" have not been implemented by Oracle yet.
    Cheers.
    ---Denali
    <HR></BLOCKQUOTE>
    null

  • Error downloading XML schema processor for java from OTN

    I'm getting error downloading this product from otn site. http://technet.oracle.com/tech/xml/schema_java/index.htm
    I login to OTN, go to this site, enter registration information and then I get the following error when I try to submit my info.
    Runtime error occured. Do you wish to debug?
    Line: 20
    Error :'e_mail_valid' is undefined.
    When I say 'No' for debug, it takes me to 'XML parser for java' download page instead of 'XML Schema processor'.
    please help.
    thankx
    null

    The 'e_mail_valid' is undefined" has to do with the format of or lack of the email address. The routing problem is ours and should be fixed later today or by tomorrow morning.
    Thanks,
    Oracle XML Team

  • Oracle's XMLSchema Processor

    Given Oracle's below release note dated April 13, 2001 -- Does Oracle's XMLSchema processor support the May 02, 2001 W3C XMLSchema Recommendations? Since the below statement refers to the "candidate" recommendation? Information about this question isn't clear on the Website.
    This is the production release of 9.0.1.0.0.
    The schema processor complies with the W3C XMLSchema Candidate Recommendation.
    Finally, does Oracle's XMLParser run on 8i? Since my current project now runs on 8i and is in the works to upgrade to 9i(~4 months from now). I really don't want to do this all over again when it upgrades.
    Thanks,
    Craig

    This product is a 'BUST' I finally got it to work after using old namespace references xmlns:test="http://www.w3.org/1999/XMLSchema"
    I will be using xerces-j (XML parser)
    Thanks for the non-help
    cl

  • Getting "oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed

    Hi All,
    Please help me in the following Scenario.
    For the Oracle Forms, I am writing java program in JDAPI(Java Development API) to create a DataSourceColumns for the Base Block with out touch the form manually.
    i wrote the following code to create DataSourceColumns for the Block...
    JdapiIterator blkcolmap = block.getQueryDataSourceColumns();
    /* block is an object which points to block of the form */
    while(blkcolmap.hasNext())
    DataSourceColumn colmap1 = (DataSourceColumn)blkcolmap.next();
    try{
         if(!blk1.getQueryDataSourceName().equals(""))
    {                                              DataSourceColumn colmap2 = new DataSourceColumn(blk1,colmap1.getDSCName());
    colmap2.setDscName(colmap1.getDscName());
    colmap2.setDscLength(colmap1.getDscLength());
    colmap2.setDscPrecision(colmap1.getDscPrecision());
    colmap2.setDscScale(colmap1.getDscScale());
    colmap2.setDscType(colmap1.getDscType());
    catch(Exception e)
    System.out.println(e);
    When i run the above code... every time the exception raises and got the following error.
    "oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed"
    How can i solve this problem

    Hi,
    thouh you use Java, I suggest to post this to the Forms forum
    Forms
    Frank

  • Connect as: normal with Oracle 12c and Toad 12 FAILS.

    Connect as: normal with Oracle 12c and Toad 12 FAILS.
    I've been looked at forums, blogs and wikies but I couldn't found why my new user, that I created before, can't connect as NORMAL but as SYSDBA it can.
    I don't know why this occurs.
    My intention is create a user/schema in a local DB to have my own db.
    I can create a new user but when I go to connect to this new schema I only connect as SYSDBA, this is a big trouble because I can "see" object's DBA and I don't want this, I want create my own new schema db and not share name's object or name's tables with DBA.
    For example, object JOB exists as SYSDBA and I can't create a new table with this name.
    Please, help me.
    Thanks very much for read me.

    Hello rp0428!!
    I'll show you all step that you wrote.
    In sql plus:
    sho con_name
    CON_NAME
    CDB$ROOT
    SELECT name, created, open_mode FROM v$database;
    NAME CREATED                OPEN_MODE
    ORCL 23/07/2013 15:59:44 READ WRITE
    SELECT username, account_status, lock_date, expiry_date FROM dba_users WHERE USERNAME like '%IMEI%' ORDER BY 1;
    username       account_status  lock_date     expiry_date
    IMEILOCAL   OPEN                                    22/01/2014 12:20:25
    SELECT USERNAME,CON_ID,USER_ID FROM CDB_USERS WHERE USERNAME like '%IMEI%';
    USERNAME     CON_ID   USER_ID
    IMEILOCAL      3               117
    select GRANTEE,con_id from cdb_ROLE_PRIVS where GRANTED_ROLE='CONNECT' AND GRANTEE LIKE '%IMEI%';
    GRANTEE                  con_id
    IMEILOCAL                3
    SELECT NAME, CON_ID, DBID, CON_UID, GUID FROM V$CONTAINERS ORDER BY CON_ID;
    NAME       CON_ID    DBID                CON_UID         GUID
    ORCLC    3               2835062256     2835062256     14236144864B451C8E04D5C6453034FA
    To create my user I did:
    select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
    2    4064112103    PDB$SEED    READ ONLY
    3    2835062256    ORCLC      MOUNTED
    alter PLUGGABLE database ORCLC open;
    select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
    --2    4064112103    PDB$SEED    READ ONLY
    --3    2835062256    ORCLC      READ WRITE
    alter session set container=ORCLC;
    CREATE TABLESPACE DATA3 DATAFILE 'C:\app\X05699SA\oradata\orcl\DATA3.dbf' SIZE 50M;
    CREATE USER IMEILOCAL IDENTIFIED BY IMEILOCAL DEFAULT TABLESPACE DATA3 TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK;
    select username, password, created, password_versions, default_tablespace from dba_users where username like '%IMEI%';
    username      password     created                         password_versions    default_tablespace
    IMEILOCAL                       24/07/2013 16:41:35   11G                             DATA3
    GRANT CREATE SESSION TO IMEILOCAL;
    GRANT CREATE TABLE TO IMEILOCAL;
    GRANT CREATE VIEW TO IMEILOCAL;
    GRANT CREATE procedure TO IMEILOCAL;
    GRANT CREATE trigger TO IMEILOCAL;
    GRANT CONNECT TO IMEILOCAL;
    GRANT CREATE SEQUENCE to IMEILOCAL;
    GRANT create any context TO IMEILOCAL;
    GRANT create public synonym TO IMEILOCAL;
    GRANT execute on dbms_rls TO IMEILOCAL;
    GRANT administer database trigger TO IMEILOCAL;
    SELECT user, osuser, terminal, program FROM gv$session WHERE sid = (SELECT sid FROM v$mystat WHERE rownum = 1);
    user     osuser                                 terminal                      program
    SYS    SECTORIALES\X05699SA MX3500906DC1549 Toad.exe
    SELECT u.username, u.default_tablespace, u.temporary_tablespace "TMP TBS", u.profile, r.granted_role,
    r.admin_option, r.default_role
    FROM sys.dba_users u, sys.dba_role_privs r
    WHERE u.username = r.grantee and u.username like '%IMEI%'
    GROUP BY u.username, u.default_tablespace, u.temporary_tablespace, u.profile, r.granted_role,
    r.admin_option, r.default_role;
    IMEILOCAL USERS TEMP DEFAULT CONNECT NO YES
    SELECT tablespace_name FROM dba_tablespaces;
    SYSTEM
    SYSAUX
    TEMP
    USERS
    EXAMPLE
    DATA3
    SELECT name, password FROM user$ where name like '%IMEI%';
    IMEILOCAL passwordx
    select USERNAME, USER_ID, CREATED,                      COMMON, ORACLE_MAINTAINED from all_users WHERE username like '%IMEI%' order by 1;
              IMEILOCAL    117           24/07/2013 16:41:35       NO              N
    select * from user$ where name like '%IME%';
    117 IMEILOCAL 1 passwordx 3 2 24/07/2013 16:41:35 26/07/2013 12:20:25   0  1   0 0 DEFAULT_CONSUMER_GROUP  0   S:566C0A818AC42C203D49706D3586926A7656F5B16AA6C37E8FE10A1F779B;H:6FB057BA9F5B0690B93FD9A20695654D      
    Here you're my tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\app\X05699SA\product\12.1.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.iecisa.corp)
    # Here you're my listener.ora Network Configuration File: C:\app\X05699SA\product\12.1.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\X05699SA\product\12.1.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\X05699SA\product\12.1.0\dbhome_1\bin\oraclr12.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    I think my problem source from about CDBs and PDBs, that is new in Oracle 12c and I'm not configure correcly my new DB and neither my new User
    Thanks for all!!!

Maybe you are looking for

  • Server 2012 R2 Crashes with NIC Team

    Server 2012 R2 Core configured for Hyper-V. Using 2-port 10Gbe Brocades, we want to use NIC teaming for guest traffic. Create the team... seems fine. Create the virtual switch in Hyper-V, and assign it to the NIC team... seems fine. Create a VM, assi

  • Is it possible to make a movie with QuickTime Pro?

    I post this here cuz i posted it in the "QuickTime" Section and like...no one answered so maybe somone here will answer me... is it possible tom make image slideshows with music then put this on a CD or a DVD and watch it on you DVD player? PLease...

  • Unable to open Word doc "Submitted" to a cell in form

    Hi, I am unable to open a Word doc "Submitted" to a cell in form. When I select the cell and select menu open "Open Doc", I see a IE web page flash quickly before disappearing. In contrast I can open a TEXT file - a IE web page would display the cont

  • Compressor v4.1.3: can't create mpeg2 movie: Error: This Is Null

    Using Compressor 4.1.3 and FCPX 10.1.4, I attempt to use compressor to create a MPEG2 movie using the "MPEG2 Program Stream, 15mpbs" option. I was successful once, the first time. But I had a problem with that video in that the audio would play but t

  • Tasks, Calendar, Messages, Contacts, and Memo Pad don't work after pairing (Error 404)

    Hi all, When I pair my Torch to the PlayBook it all goes as expected. I can browse the files on my phone and also open the internet browser; however, when I try to open Tasks, Calendar, Messages, Contacts, and Memo Pad I get: Error 404 - We can't ope