Oracle xe - OE Schema

Hi everyone!
I'm studing for OCA certification and I've installed Oracle 11.2 XE on a Oracle Linux notebook. Everything is fine except the OE schema: in fact I created the HR schema using the script .sql found it in /u01/app/oracle/product/11.2.0/xe/demo/schema/human_resources/ folder but there is no OE folder and scripts.
Is there a way to install this schema?
Thanks in advance for any help.
Stefano

Looks like Xe only has HR ... try http://www.oracle.com/technetwork/developer-tools/datamodeler/sample-models-scripts-224531.html ...
Try the one(s) under "...Data Modeler 2.0" heading zips have just .sql with DDL. The others ... xml for SQL Developer, unless one of those have been loaded as well ...

Similar Messages

  • Using Oracle Paser for schema validation

    Hi,
    I am trying to use oracle parser for schema validation. I get hold of oracle parser using jaxp api. Below is the code snippet. When i set the attribute to turn the schema validation on, orale parser does not recognize this jaxp attribute . How can i do schema validation using oracle's xml parser implementaion that i get using jaxp?
    String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
    String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
    javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
    factory.setValidating(validate);
    factory.setNamespaceAware(true);
    factory.setAttribute (JAXP_SCHEMA_LANGUAGE,W3C_XML_SCHEMA);
    javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder();
    Thanks

    DOMParser domParser=new DOMParser();
    domParser.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    domParser.setXMLSchema(SchemaUrl);
    DefaultHandler handler=new DefaultHandler();
    DOMParser.setErrorHandler(handler);
    Parse the XML document to validate with the XML schema.
    domParser.parse(XmlDocumentUrl);

  • Java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build

    The following code works fine with JDeveloper 10.1.2 with the xmlparserv2.jar file provided with JDeveloper.
    =====
    XSDBuilder schemaBuilder = new XSDBuilder();
    URL xsdURL = new URL(schemaUrl);
    XMLSchema xmlschema = (XMLSchema) schemaBuilder.build(xsdURL);
    ========
    However when I try to put this in Oracle Application Server 10.1.2.0.2, I get the following error:
    ====
    java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build
    ====
    It seems like the oracle version is different in app server 10.1.2.0.2 that that of JDeveloper 10.1.2.
    When we rename the parser, the application works BUT the Oracle Enterprise Manager does not work properly as it depends on the latest version of the parser.
    Please help.
    Thanks,
    Madhav

    I am able to reproduce this problem. I have a jar file MyLib.jar which contains a class MyXmlUtils with a method called validate. This JAR file was created in JDeveloper 9.0.5.2.
    Now I create a Test class in JDeveloper 10.1.2 and use the method in the JAR file and it crashes in build method. The error says "NoSuchMethod".
    However if I import MyXmlUtils class in to the Test project, everything works fine.
    What is going on here?
    // MyLib.jar (Created in JDeveloper 9.0.5.2)
    public class MyXmlUtils
    public static void validate(String xml, String schemaUrl) throws Exception
    XSDBuilder schemaBuilder = new XSDBuilder();
    URL xsdURL = new URL(schemaUrl);
    XMLSchema xmlschema = (XMLSchema) schemaBuilder.build(xsdURL);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setXMLSchema(xmlschema);
    ====
    // Test project created in JDeveloper 10.1.2
    import MyXmlUtils;
    public class Test
    public static void main(String[] args)
    Test t = new Test();
    try
    String xml = "<Person><Name>John</Name></Person>";
    String xsd = "file:\\c:\\Person.xsd";
    MyXmlUtils.validate(xml, xsd);
    catch (Exception e)
    System.out.println(e.getMessage());
    System.exit(1);
    Thanks,
    Madhav

  • Got this Error "oracle.ias.repository.schema.SchemaException"

    Hi..
    I want to start back the Application Portal(HTTP) Server that i shut down yesterday.
    So, i followed the steps..
    1)up the lsnrctl
    2)up the database
    3)up the oidmon
    4)up the oidctl
    5)up the dcmctl start -cl
    up the dcmctl -ct ohs
    up the dcmctl -ct oc4j
    But, when i did dcmctl getstate -v
    it gaves me this error.
    "ADMN-100999
    See base exception for details.
    Base Exception:
    oracle.ias.repository.schema.SchemaException:Unable to connect to Directory Serv
    er:javax.naming.CommunicationException: eroom.ctuzxm.com:4032 [Root exception
    is java.net.ConnectException: Connection refused]
    See base exception for details."
    Where i did wrong?
    Fyi, previously, it just ok..
    Thanks

    The command
    1)./lsnrctl start
    2)sqlplus
    startup
    3)./oidmon start
    4)./oidctl server=oidldapd instance=1 configset=1 start
    5)./dcmctl start -cl
    6)./dcmctl start -ct ohs
    7)./dcmctl start -ct oc4j
    8)when i type this, it gave error..
    ./dcmctl getstate -v
    Thanks.

  • ODISRVREG - oracle.ldap.util.schema.ODISchemaException

    Hello,
    I configured a AD2OID integration. The bootstrapping is successful.
    I have problems with the configuration of the periodically import. I configured the profil "ActiveChgImp" successfull.
    But the registration failed:
    odisrvreg -D cn=orcladmin -w p -h ad.domain.de -p 3060
    ->oracle.ldap.util.schema.ODISchemaException
    No entry in log files.
    Source: Microsoft Active Directory
    Dest: OID - 10.1.2.1.0 on Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
    Any ideas?
    regards,
    Lars

    Hope you can help me with the following,
    Do you know the name of the attribute that contains the current time in the Novel Directory Service?
    Thx in advance for your help

  • Com.oracle.bpel.sensor.schemas

    Hi all,
    Can somebody tell me how to relate the different variables given in the API's of the package com.oracle.bpel.sensor.schemas with that of those visible through BPEL designer and BPEL console.
    -lavanya.

    Can any one help me on this issue.

  • BOBJ on Oracle Best Practices - Schema vs New DB

    Hi all,
    My company is installing Business Objects 4.1 as part of an overall (new) SAP project.  I am the Oracle DB for the project and new to the SAP/Business Objects world.
    My question is how do most people separate the different pieces of the overall Business Objects install on the database level?  I was thinking we would have one database with different schemas for Audit, CMS, BODS and Information Steward.  I've heard from our integrator that some companies will have a separate database for each. 
    Not knowing the system that well, adding separate databases seems unnecessary.  Where I would have some additional hoops to jump through if a restore was needed for just one of the schemas, it seems better then adding the additional DBs.
    Hopefully this makes sense.
    Thanks.

    Hi Michael,
    I agree with Mani's suggestion as recommended approach. However, It would depend from org to org.
    and if insisted to continue with one database then you would have to scale ORA DB accordingly considering trnsactional nature of each service highlighted (CMS, AUDIT, BODS)
    Since, these are transactional you would need to customize database while setup (DB buffer, Undo segments, Shared pool)
    I'm assuming you would be using 11g R2 on Linux Operating system(mostly preferred). Hence,
    how is Oracle DB deployed(single instance architecture or RAC) on which you would create DB schemas for above services?
    In either of the above case you should setup db user for BODS and CMS to conect to the ORA database in "Dedicated server connection" mode and not in "Shared server connection" mode. Hence, no latency provided the Server platform are in the same network or on same server. Audit could connect in "Shared server conection" mode.
    In ORA RAC deployment i don't forsee any issues as your transactions could be benefited by "Streams" feature incase of ORA instance failure.
    Starting in Oracle 11g Release you may be benefited from automatic PGA memory management can be implemented using
    • PGA_AGGREGATE_TARGET initialization parameter for PGA
    • MEMORY_TARGET initialization parameter combined total memory for SGA & PGA
    I may go on and on. Hope i was able to put some light here. Please refer Performance Optimization in BODS for more information regarding BODS that might also assist you.
    Regards,
    Sandeep

  • Oracle 9i Sample Schema running in client/server mode?

    I've got Oracle 9i up on RH7.3 and have successfully executed the sample schema on the Server using the mksample.sql script.
    Now the challenge is to run these same (sample schema) SQL scripts across a network using a 9i client. I copied the demo/schema files from the server installation to the client but when I invoke the mksample script the passwords have to include a connect_identifier which, in this environment, causes the subordinate scripts to get confused.
    Has anyone else attempted to do this?

    You did not have to change any of your scripts to put the connect_identifier.
    Within SQL*Plus you can use the "SET INSTANCE <connect_identifier>" command to make that Oracle instance
    your default for this session. After you do this, all your connect statements will not require a
    connect_identifier.
    ==============================================================
    $ sqlplus /nolog
    SQL> set instance ORA901
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    SQL> connect scott/tiger
    Connected.
    SQL>
    ==============================================================
    As you can see, after the SET INSTANCE command, the connect command does not need a connect_identifier.

  • Can Oracle 9i enable schema/table creation to be transacted?

    If anyone can help with this, that would be much appreciated.
    So - the server has disabled autocommit and commits/rollbacks are handled by the application. Even though this is the case, Oracle 9i is not rolling back changes that have (i) created schemas/users and/or (ii) tables.
    Worse still, it seems to be performing a partial rollback - some tables in a schema are left with data and others are not.
    Now, this may be caused by our server creating tables for indexing while adding data to some existing tables - that is the table definitions have auto-committed the transaction to date, also committing the table insertions/updates.
    After some delving, the JDBC driver has the following method: dataDefinitionCausesTransactionCommit - for Pointbase and other databases, this returns false - for Oracle it returns true.
    The questions are therefore:
    1) Is there a solution with Oracle 9i that enables schema and table creation to be transacted?
    2) Does Oracle 10g allow definition clauses to be transacted?

    Actually I believe there is a limited way to make DDL statements transaction based via the CREATE SCHEMA command.
    From the 9.2 SQL manaul >>
    Use the CREATE SCHEMA to create multiple tables and views and perform multiple grants in a single transaction.
    To execute a CREATE SCHEMA statement, Oracle executes each included statement. If all statements execute successfully, Oracle commits the transaction. If any statement results in an error, Oracle rolls back all the statements.
    <<
    This may be of some limited use to you, but your process should probably be changed to track of the DDL and to undo (drop) any created objects if a rollback is issued.
    HTH -- Mark D Powel --

  • Oracle provided sample schema ??

    I am new to Oralce
    I have just install Oracel 9i on my desktop, but having problems install the sample schema (HR, OR......)
    AS I have to manuly install the samle scheme, I followed the instuction given on the oracle website.
    I connected Using SYSTEM as SYSDBA, and execute the provided script and given the parameter as below :
    @?\DEMO\SCHEMA\HUMAN_RESOURCES\HR_MAIN.SQL
    specify password for HR as parameter 1:
    Enter value for 1: hr
    specify default tablespeace for HR as parameter 2:
    Enter value for 2: myspace ( I dont know what should be here , it is where things went worng i think. I got a error here ORA-00959: tablespace 'MYSPACE' does not exist)
    specify temporary tablespace for HR as parameter 3:
    Enter value for 3: temp
    specify password for SYS as parameter 4:
    Enter value for 4: sys
    specify log path as parameter 5:
    Enter value for 5: d:/Oracle_log
    After the input, I got mainly the error message :
    ****** Creating REGIONS table ....
    CREATE TABLE regions
    ERROR at line 1:
    ORA-01950: no privileges on tablespace 'SYSTEM'
    I dont understand tablespace in oracle. I had a look in the HR script. It create user HR and then connect as HR then start to creat table. i dont understand why the tablespace is still 'SYSTEM'
    Thanks for your help

    This looks like the doc you need:
    http://otn.oracle.com/tech/xml/xdk_sample/pdf/xdksample_093001.pdf
    Just do a search for the error text, it appears to be a sample that produces a deliberate error.
    Cheers
    Kevin

  • Oracle 9i Sample Schemas

    I looking for the sample schemas that should have been installed with 9i DB. I installed 9i Personal on Win 98, but can't find them (HR, OE, PM, etc). They were supposed to have uploaded to $ORACLE_HOME/demo/schema. Demo doesn't exists.
    I also tried to install the schemas on 8i according to the instructions and files that came with Oracle 9i JDev tutorial. The tables were not created, just lots of errors.
    Any ideas where to look in 9i or how to install them on 8i?
    Still, life's good
    Thanks

    Does your database have Oracle Intermedia installed?
    The other thing to check is whether your DBA has revoked execute on those objects from public. A couple of them served as vectors for DoS attacks against the database,
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Should i need a new oracle instance or schema?

    Hello All,
    I know that this is may sound like a silly question but i really need to know. In our company we have a server with oracle standard and a instance that holds a financial database. Now, the company bought a new antivirus software and it runs over oracle database. Now, should i create a new schema to own my antivirus tables or should i need create a new database instance?
    I've worked with other database product that has a different concept from oracle, regarding Intance-Database concept. I'm really new from oracle.
    Best regards,
    Rafael Melo - Br

    >
    Now, the company bought a new antivirus software and it runs over oracle database
    >
    What exactly does 'it runs over oracle database' mean?
    You need to read the software documentation to see how to use it.
    >
    Now, should i create a new schema to own my antivirus tables or should i need create a new database instance?
    I've worked with other database product that has a different concept from oracle, regarding Intance-Database concept. I'm really new from oracle.
    >
    An 'instance' and a 'database' are two different, though possibly related, things.
    See the Database Concepts Doc for the definition of 'instance' and 'database'
    http://docs.oracle.com/cd/E11882_01/server.112/e10713/startup.htm
    >
    Introduction to the Oracle Database Instance
    A database instance is a set of memory structures that manage database files. A database is a set of physical files on disk created by the CREATE DATABASE statement. The instance manages its associated data and serves the users of the database.
    Every running Oracle database is associated with at least one Oracle database instance. Because an instance exists in memory and a database exists on disk, an instance can exist without a database and a database can exist without an instance.

  • Best LKM to move data from with in Oracle from one schema to another Schema

    Hi Gurus,
    What is the best KM to move data from one schema to another schema within same oracle database.
    Thanks in advance

    Dear,
    If your source and target are on the same database server then you dont need LKM.
    You have to 1. create one data server for the database server
    2. Create one physical schema for your source and another physical schema for your target under the above created data server.
    3. Then create models for each above created physical schema
    In this case you just need IKM knowledge module
    Please refer http://oditrainings.blogspot.in/2012/08/odi-interface-source-target-on-same.html
    If your source and target are on different server then you must create two different data servers in topology. You have to use LKM.
    The best LKM to use is LKM oracle to Oracle dblink. But you should have proper grants to use it
    If your source has very few records you can go with LKM SQL to Oracle other wise use LKM oracle to Oracle dblink

  • Same Oracle Server, 2 schemas, one fast, one slow

    We are in the process of updating a database at our company to co-exist with a more recent release of third-party software. Only a few tables are changing.
    We decided to create two schemas: PLVT and PLV2T respectively
    PLVT contains the original version of the database
    PLV2T is the next version of the database
    Both schemas are complete databases, each schema is unaware of the other.
    We also have the same user defined in each schema: PLVT
    Both schemas use the same tablespaces so we wouldn't have to create two set of create scripts.
    Both schemas have all the proper indexes created.
    Unfortunately, performance is good on PLVT, but not good at all on PLV2T
    I run the following test script for each schema (I realize this script isn't optimized the best, but bear with me):
    select count(*) from time_reported tr, user_period up where
    to_char(up.period_finish-1,'YYYY') = '2001'
    and tr.period_number = up.period_number
    and tr.integrate_status in ('I', 'R', 'P')
    and tr.reported > 0;
    On the PLVT schema, the script takes 4 minutes to run
    On the PLV2T schema, the script takes 7 minutes to run
    Had I run the real script, which is much larger, the PLVT schema would have completed the script in 8 minutes while the PLV2T schema would run overnight and still not finish by morning. The EXPLAIN PLAN for the full-size script under both schemas is nearly identical.
    Both schemas are on the same development server, so one would think that they would run the same. They don't.
    What could have possibly gone wrong when the PLV2T schema was created?

    Well it was a shot in the dark (you got me confused, at least) ;)
    To clear things up a bit:
    You have two separate databases (collection of "physical" datafiles, log files, etc.).
    In both of them you have a schema (collection of "logical" objects) called: PLVT (hence you have a user called PLVT, the owner of these objects).
    SIDs are instance identifiers. You have two separate instances for these two databases. One instance is PLVT and the other one PLV2T. (An instance is processes and shared memory structure which manages the databases and are created when you startup the database. On Windows Oracle uses threads and the one instance process is oracle.exe) Another way of putting it, you have two NT services- OracleService<SID>, where SID is PLVT and PLV2T.
    Are these two databases using the same hardware, and at the same time? Do you have anything running against both databases at the same time?
    Is the second db a clone of the first db? How did you clone it? Did you make any changes afterward to the second db?
    Why do you suspect that something might have gone wrong in creation of the plv2t db?
    Both SIDs also use the same tablespaces too.I assume that you mean that both databases have the same tablespace names.
    Are instance parameters (init<SID>.ora) the same for both?
    What does sql> show sga tell? Any differences in v$parameter views?
    Hth,
    Fredrik

  • Toad for Oracle 10.5 Schemas

    Hello,
    I am using Toad for Oracle 10.5 and I do not have Admin rights to any Schema Browsers. I have a few questions about copying one Schema to another Schema. I have DEV (development) and TST (test) environments where tables, triggers, packages, etc... are created and manipulated. Also, I am not sure if this is the right forum for this question but if this is not please point me in the right direction. If there are any links, threads, etc... that can assist me please provide them to me so I can review. Is there a way in Toad for Oracle to copy one Schema DEV to another schema TST? Are there any steps that can achieve this or is this only a Admin process. I am trying to implement this on my own instead of sending the task to the Admins within my department. Thanks for reading and taking the time to assist me with this.

    I clicked on the Database - Export - Data Pump Export and once I clicked the green arrow I do receive the Toad Message. 'Your license does not permit executing "Data Pump Export4.", etc...' So that means even if you had dba privilege it was not possible to use that feature.
    I did this yesterday and definitely thought that only certain programmers have rights to this from the error message. Every user/dba in your team who uses the toad for this feature(exp/imp) will face the same error what you came across.
    I found this on net(http://www.club-oracle.com/forums/export-import-table-using-toad-t1227/) :
    Data Pump Overview
    Note: This Toad feature is only available in the commercial version of Toad in either the Professional Edition or with the optional Quest DBA Module.
    thanks again for you assistance.You are welcome Charles.
    Edited by: Veeresh.S on Sep 14, 2012 10:08 PM

Maybe you are looking for