Oracle Sample Schemas on 11g

Everything I have researched and looked at says to run the mksample.sql.
I can't find it.
I have looked, I have searched but I cannot find mksample.sql.
Any ideas???

Hi,
Check the below link
http://download.oracle.com/docs/cd/B28359_01/server.111/b28328.pdf
Taj

Similar Messages

  • Missing Oracle Sample Schemas - How Download complete Files

    Dear DBA's
    I appreciate if someone could tell me how setup the ORACLE SAMPLE SCHEMAS, because all my demo folders in 10g and 11G
    $ORACLE_HOME/demo/schema/hr or oe or any other chema there are fiesl missing,
    for instnace looking at the Procedure in doc
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28328.pdf
    it says to run "hr_main.sql" script in folder $ORACLE_HOME/demo/schema/human_resources
    But I can't find any file"hr_main"
    then for PM Schema it's supposed to have a file pm_main.sql !!!! I can't find .....
    The same for SH (Sales History) they say to run the "sh_main.sql" but i can't find anything like "Main"
    Can you please help me to compltely setup the sample schemas ?
    Txs

    I am having the same problem.
    I am running XE and the only sample schema that exists there is HR.
    OE and SH...are not there
    I downloaded companion CD 10 minutes ago from
    http://www.oracle.com/technetwork/database/10201winsoft-095341.html
    and searched through the whole companion and no
    files like :
    sh_main.sql
    mksample
    nothing!
    User Steve Callan placed a data pump file on
    http://www.dbasupport.com/oracle/ora11g/Installing-Oracle-Database-Sample-Schemas-using-Data-Pump.shtml
    but he created it without version parameter, so people who are running data pum from older versions cannot import it.
    I made a comment on the article he posted .
    user13106173 pointed out a link where you can get OE and HR, but I need SH sample schema as well
    So please can somebody direct me to anyplace I can get ALL THE Sample schemas

  • All Oracle Sample Schemas and all Oracle Built-in Packages in XE?

    Hi,
    I am trying to install Oracle 10g on my home system to improve my knowledge of PL/SQL. Because I'm doing it at home, I have to solve DBA issues I'm somewhat clueless about.
    I would like to install Oracle 10g Express Edition and include the built-in packages (DBMS_OUTPUT, UTL_FILE, DBMS_UTILITY, DBMS_JOB, DBMS_JAVA, DBMS_RANDOM, etc.) as well as the Oracle sample schemas (HR, OE, PM, SH, and IX). None of these, except HR, is included in the express edition.
    If necessary, I'd like to be able to install these things after installing the express edition. How can I do this?
    Thanks,
    Mike

    Hi Mike,
    checking the documentation is always helpful:
    http://www.oracle.com/pls/xe102/homepage
    http://download-uk.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25108/xedev_programs.htm#i2432
    You can always do a quick search on the documentation homepage, e.g. for utl_file:
    http://www.oracle.com/pls/xe102/search?remark=advanced_search&word=utl_file&format=ranked&book=&preference=
    There shouldn't be a need to install any packages. They should come preinstalled already.
    If not, you can find them here:
    C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN
    Just be very careful before trying to install something into the data dictionary. If you are not experienced, you might mess up your database.
    For example, utl_file is installed but invisible to most users, e.g. HR.
    Look at this example:
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    ERROR:
    ORA-04043: Objekt "SYS"."UTL_FILE" ist nicht vorhanden
    SQL> conn sys@XE as sysdba
    Kennwort eingeben:
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    SQL> grant execute  on utl_file to HR;
    Benutzerzugriff (Grant) wurde erteilt.
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    PROCEDURE FCOPY
    ...So, after granting execute privileges on utl_file to HR, the user HR can now access utl_file. No need to install it.
    The default packages are installed in the schema SYS.
    Regards,
    ~Dietmar.

  • Data Types from Oracle Sample Schema

    Hi,
    I was trying to push some data from an Oracle Sample schema (Schema: OE Table: Customers) to a target schema. The interface was erroring out because of undefined data types in the model.
    I chkd the model, only to find that some of the data types were undefined.
    I DESCribed the table in the using SQL Client, The data types returned were
    CUST_ADDRESS_TYP
    PHONE_LIST_TYP
    MDSYS.SDO_GEOMETRY
    I DESCribed the datatypes, They seem to be flexfields of some kind,
    Please advise on how to define these data types into ODI:
    Heres the DESC output
    SQL> desc customers;
    Name Null? Type
    CUSTOMER_ID NOT NULL NUMBER(6)
    CUST_FIRST_NAME NOT NULL VARCHAR2(20)
    CUST_LAST_NAME NOT NULL VARCHAR2(20)
    CUST_ADDRESS CUST_ADDRESS_TYP
    PHONE_NUMBERS PHONE_LIST_TYP
    NLS_LANGUAGE VARCHAR2(3)
    NLS_TERRITORY VARCHAR2(30)
    CREDIT_LIMIT NUMBER(9,2)
    CUST_EMAIL VARCHAR2(30)
    ACCOUNT_MGR_ID NUMBER(6)
    CUST_GEO_LOCATION MDSYS.SDO_GEOMETRY
    DATE_OF_BIRTH DATE
    MARITAL_STATUS VARCHAR2(20)
    GENDER VARCHAR2(1)
    INCOME_LEVEL VARCHAR2(20)
    SQL> desc CUST_ADDRESS_TYP;
    Name Null? Type
    STREET_ADDRESS VARCHAR2(40)
    POSTAL_CODE VARCHAR2(10)
    CITY VARCHAR2(30)
    STATE_PROVINCE VARCHAR2(10)
    COUNTRY_ID CHAR(2)
    SQL> desc phone_list_typ;
    phone_list_typ VARRAY(5) OF VARCHAR2(25)

    To create MDSYS.SDO_GEOMETRY datatype, goes to Topology module, Oracle Techonology, Datatypes, and add a new datatype GEOMETRY. (try to fill all information fields with GEOMETRY and see what happens maybe you have to ajust this after but it is a start point).
    add information in from and to tabs according your source and target desired tech.
    Reverse againg your model, or change the datatype in the model datastore. Re-run your interface

  • Does Oracle sample schemas HR/OE overwrite APPS' alike schemas?

    Hi all,
    I installed HR/OE sample schemas packaged along with oracle database on my testing apps env,
    now i can't login EBS.
    I am afraid these sample schemas overwrite apps' alike schemas, big trouble. Is there any way to
    recover from this case?
    Thanks,
    Ted

    Hussein Sawwan wrote:
    I installed HR/OE sample schemas packaged along with oracle database on my testing apps env, How did you install it?By running the sample script file hr_main.sql.
    now i can't login EBS. What is the error you get?I can't find any error in apache log files.
    I am afraid these sample schemas overwrite apps' alike schemas, big trouble. Is there any way to
    recover from this case?Please post the complete error message you get. Also, please run AutoConfig and make sure it completes successfully.I'll try to run autoconfig on both tiers, and see if it's ok.
    Thanks,
    Ted

  • Oracle sample schemas

    I just installed the sample oracle 11g database. It looks like it did not install the demo. What can I do to fix it?
    Sonia

    sb92075 wrote:
    Companion CDThere is no Companion CD in 11g, but Example.
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.html
    Nicolas.

  • Downloading the Global Sample Schema for 11g Release 1

    The global_11g_schema.zip does not download properly - the file appears to be corrupt. I have confirmed this with several people in other organisations as well - we all get the same problem. Is it possible to get the file updated?
    Thanks
    Rachael

    There's a comment function at the bottom of the link you provided! In addition Oracle will take SRs against the documentation.
    Regards
    Niall Litchfield
    http://www.orawin.info/

  • Sample Oracle database Schema and sample training SQL

    Hi,
    I am running a windows 7, 64 bit machine. I am looking for sample oracle database schema with sample SQL queries and exercises(tutorial). Can you please point me in the right direction where I can download both.
    Thanks for your time and help.

    sb92075 wrote:
    ssk1974 wrote:
    Hi,
    I am running a windows 7, 64 bit machine. I am looking for sample oracle database schema with sample SQL queries and exercises(tutorial). Can you please point me in the right direction where I can download both.
    Thanks for your time and help.
    http://www.lmgtfy.com/?q=oracle+sample+schema
    LOL!!!!

  • Queries on samples schemas (HR, OE, SH ...)

    Hi,
    I want to measure performance of database using Oracle sample schema. But I don't have many time to create queries which take some time on CPU and so on. Is there any script (or webpage) which contain sample queries on this schemas? I will be appreciative if someone help me with it.
    Best.

    The sample schemas are intended to allow practicing and exercising specific features of the database. The purpose of each schema is described in the 'Oracle® Database Sample Schemas' manual for your database version at http://tahiti.oracle.com. (See 'Master Book list' or 'All books'.)
    Many of the examples of `how to use a feature`using these schemas will be found in the documentation (http://tahiti.oracle.com) related to the feature. For example, base queries will be found in the SQL Language Reference manual. Spatial features will be found in the Spatial Users Referrence manual. And so on.
    Other than that, many of the samples found at htp://otn.oracle.com > Sample Code assume that the samples are installed.
    Oracle university database language courses also assume the schemas are loaded. However, their sample code is not available for obvious reasons.
    In all cases the samples are not performance oriented examples, simply because Oracle's cost-based optimizer can not provide consistent performance if size or statistics change.

  • Dropping sample schemas like scott,hr,bi  from Oracle 11g Database.

    Hi Friends,
    Do any one have the query to drop all the sample schemas from Oracle 11g Database.Any steps need to be
    performed to drop all the schemas.
    Best regards,

    Hi;
    Please see:
    drop all objects owned by schema
    drop all objects owned by schema
    Regard
    Helios

  • Oracle 11g Rel2 Sample Schemas Missing

    I installed Oracle 11g Release 2 and created a database using DBCA. In one screen there is an option to create sample schema but it was greyed out so I could not select it.
    I searched the dbhome\demo\schema\human_resources directory but there is only one file in it -hr_code.sql(It created triggers in hr schema).
    There is no sql to create hr schema or populate schema tables. I searched the net to download the scripts but no idea where to get them. Can you help me

    josephj1989 wrote:
    I installed Oracle 11g Release 2 and created a database using DBCA. In one screen there is an option to create sample schema but it was greyed out so I could not select it.
    I searched the dbhome\demo\schema\human_resources directory but there is only one file in it -hr_code.sql(It created triggers in hr schema).
    There is no sql to create hr schema or populate schema tables. I searched the net to download the scripts but no idea where to get them. Can you help meHi,
    There are some earlier threads on this topic, see Re: MISSING ORACLE DATAUSER "HR"
    HtH
    Johan

  • JDeveloper 11g Sample Schema FOD installation failure

    Do not have any previous experience about JDeveloper. Downloaded 11g version. Try to follow this link:http://www.oracle.com/technology/obe/obe11jdev/11/common/connection11g.htm to install a sample schema FOD for a tutorial. However at the following step:
    5. In the Application Navigator, right-click the build.xml file and choose Run Ant Target-->buildAll.
    I got:
    BUILD FAILED
    C:\FOD\Infrastructure\Ant\build.xml:52: The following error occurred while executing this line:
    C:\FOD\Infrastructure\DBSchema\build.xml:91: The following error occurred while executing this line:
    C:\FOD\Infrastructure\DBSchema\build.xml:56: The following error occurred while executing this line:
    C:\FOD\Infrastructure\DBSchema\build.xml:28: C:\FOD\Infrastructure\Ant\wlserver_10.3\server\lib not found.
    Appreciate someone can help me out.
    - Denis

    Hi, Arun,
    Thanks for your reply. I double-checked, looks there is no settign WLS home in the build.xml. My current setting is as follows, does it look right+
    # Base Directory for library lookup
    jdeveloper.home=C:\Oracle\Middleware\jdeveloper
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@113.130.218.168
    jdbc.port=1521
    jdbc.sid=dbwrkev1
    # Information about the default setup for the demo user.
    db.adminUser=zxxxx4
    db.demoUser=FOD
    db.demoUser.password=fusion
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    - Denis

  • Where can I download the scripts for sample  IX, SH schemas for 11g

    Hi,
    I have installed oracle 11g database without the sample schemas. In the standard set of sample schemas we had an example Information Exachange schema (for queue), and a Sales Historyschema . Howver I am not getting the sample scripts for these two schemas in my demo directory.
    Can you please let me know where can I get access to the scripts?
    I have a requirement for a OLTP datastore which can receive high volume of data from an external system(Expecting max of 6gb data). I am planning create a separate schema , with dedicated tablespaces, Is it a good idea to have one datafile with a maxsize set to 6gb or to have a set of 3 starting at 1000m locally managed and a max size of 2gb each. There are not many indexes needed, however I need to set up an in queue and out queue as well. If I create this schema them do I need to revisit my redolog groups or temp table sizing as well to keep my existing database performance intact?
    Is there any standard guidelines to follow for a schema where you expect large volume of data,has multiple queues?
    Many Thanks,
    Chandana

    user13057029 wrote:
    Hi,
    I have installed oracle 11g database without the sample schemas. In the standard set of sample schemas we had an example Information Exachange schema (for queue), and a Sales Historyschema . Howver I am not getting the sample scripts for these two schemas in my demo directory.
    Can you please let me know where can I get access to the scripts?http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm#COMSC00002
    >
    I have a requirement for a OLTP datastore which can receive high volume of data from an external system(Expecting max of 6gb data). I am planning create a separate schema , with dedicated tablespaces, Is it a good idea to have one datafile with a maxsize set to 6gb or to have a set of 3 starting at 1000m locally managed and a max size of 2gb each. There are not many indexes needed, however I need to set up an in queue and out queue as well. If I create this schema them do I need to revisit my redolog groups or temp table sizing as well to keep my existing database performance intact?
    Is there any standard guidelines to follow for a schema where you expect large volume of data,has multiple queues?Ask this question in a separate thread.
    Aman....

  • How could I generate sample schema's after 11g r2 installation

    Hi,
    I appreciate if anybody let me know that how could I generate sample schema's after database installation (11g r2).
    Regards,

    hello
    you can download the script in the this link
    http://www.oracle.com/technology/obe/obe1013jdev/common/files/sample_schema_scripts.zip
    or
    sqlplus /nolog
    conn / as sysdba
    @mksample.sql
    regards
    zekeriya

  • Error installing Sample Schemas in Oracle XE11

    Hi,
    I have successfully installed Oracle Database Express Edition 11g Release 2. With this installation, I think that only the HR schema is available and I can see that at this location on my computer- C:\oraclexe\app\oracle\product\11.2.0\server\demo\Schema
    I wanted to install the OE, PM, IX and SH schemas too - I think these are available as download with the standard database installation. I downloaded the sample database zip file (Oracle Database 11g Release 2 Examples) from here http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html
    I double clicked the setup.exe file and the first step of installation involves specifying the location - I entered the following paths for the location. (I did take care to empty the Schemas folder based on the initial error message I got)
    For the Oracle Base : C:\oraclexe
    For the software location: C:\oraclexe\app\oracle\product\11.2.0\server\demo\Schemas
    I am still getting the following error messages -
    [INS-32025] The chosen installation conflicts with software already installed in the given Oracle home.
    [INS-52001] Oracle Database Examples can only be installed into an existing Oracle Home.
    Unless I see these schemas in the Oracle home, I cannot run the scripts to create the schemas. Is there anyway, that I can install these Oracle Database schemas for use in Oracle XE?
    Please help
    Thanks
    NAD

    942907 wrote:
    I wanted to install the OE, PM, IX and SH schemas too - I think these are available as download with the standard database installation. I downloaded the sample database zip file (Oracle Database 11g Release 2 Examples) from here There are features required for Sample Schemas, that are not available in XE (e.g Java, DM, Partitioning).
    Under the OTN downloads license, in which agreement you entered to download and use Examples, you could also get EE for self-educational purposes etc. (see OTN License Agreement).
    Any particular reason you want to install these schemas in XE instead of EE/PE?
    >
    Is there anyway, that I can install these Oracle Database schemas for use in Oracle XE?See my response in thread about SH, which you could use as a guide to (try to) install remaining schema.
    SH SCHEMA in oracle XE ?
    Note the ordering:
    http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm#I4367
    You may need to also drop the XE included HR and install HR from Examples -- I'm not sure the one built in is the full Sample HR schema.
    Edited by: orafad on Oct 24, 2012 10:08 PM

Maybe you are looking for

  • I need help, I sent a job to my eprint address and it did not print

    I need help, I send two jobs to my eprint address and it didn't print, nor does not even show that it even got the job. I sent it from both of the e-mails that I have set up for it to except. Can someone please let me know what I am doing wrong. By t

  • Variable creation to retrieve "TO Value" from interval

    Hi, I have a situation where I run a report for a interval (From value and To Value). Here i need to restrict a KF and get data only for the "TO Value". Example: Report runs for 012009 - 052009                The output of the KF should be the displa

  • Ipod Touch Sync Issues

    When connecting my ipod to iTunes, it will start to sync and then a triangle with an ! inside it appears and disappears when I select it.  Does anyone know why this happens or how to fix?

  • Vendor Subranges_Plz Help

    Hi Gurus, Thanks for the previous responses and valuable answers. Now i want the know the steps involved in Vendor Subranges in order the run the complete functionality. Thanks......

  • Problem: CM properties translation through Metadata Extensions

    Hi. I encountered a problem with CM properties translation using metada extensions. The translation as it is goes fine, however, sorting does not. I have a property, that is created in Language1, which has some allowed values. That property is used i