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

Similar Messages

  • Problems creating a db in 11g with Sample Schemas

    For a demo I'm doing I need the sample schemas.
    I have tried to add it to my existing database using dbca, as well as creating a new database with the sample schemas. In both cases I run into a problem with insuficient priveleges. If I do not include the sample schemas I can create the db just nice with dbca, however since it is the sample schemas I need that does not help me a lot.
    below the fist part of sampleSchema.log showing up til and including the first ORA-01031: insufficient privileges just ignoring it will lead to a lot more of them showing up.
    Any suggestion how to fix this?
    TEMP
    specify password for SYSTEM as parameter 1:
    specify password for SYS as parameter 2:
    specify password for HR as parameter 3:
    specify password for OE as parameter 4:
    specify password for PM as parameter 5:
    specify password for IX as parameter 6:
    specify password for SH as parameter 7:
    specify password for BI as parameter 8:
    specify default tablespace as parameter 9:
    specify temporary tablespace as parameter 10:
    specify log file directory (including trailing delimiter) as parameter 11:
    Sample Schemas are being created ...
    DROP USER hr CASCADE
    ERROR at line 1:
    ORA-01918: user 'HR' does not exist
    DROP USER oe CASCADE
    ERROR at line 1:
    ORA-01918: user 'OE' does not exist
    DROP USER pm CASCADE
    ERROR at line 1:
    ORA-01918: user 'PM' does not exist
    DROP USER ix CASCADE
    ERROR at line 1:
    ORA-01918: user 'IX' does not exist
    DROP USER sh CASCADE
    ERROR at line 1:
    ORA-01918: user 'SH' does not exist
    DROP USER bi CASCADE
    ERROR at line 1:
    ORA-01918: user 'BI' does not exist
    specify password for HR as parameter 1:
    specify default tablespeace for HR as parameter 2:
    specify temporary tablespace for HR as parameter 3:
    specify password for SYS as parameter 4:
    specify log path as parameter 5:
    DROP USER hr CASCADE
    ERROR at line 1:
    ORA-01918: user 'HR' does not exist
    old 1: CREATE USER hr IDENTIFIED BY &pass
    new 1: CREATE USER hr IDENTIFIED BY password
    User created.
    old 1: ALTER USER hr DEFAULT TABLESPACE &tbs
    new 1: ALTER USER hr DEFAULT TABLESPACE EXAMPLE
    old 2: QUOTA UNLIMITED ON &tbs
    new 2: QUOTA UNLIMITED ON EXAMPLE
    User altered.
    old 1: ALTER USER hr TEMPORARY TABLESPACE &ttbs
    new 1: ALTER USER hr TEMPORARY TABLESPACE TEMP
    User altered.
    Grant succeeded.
    Grant succeeded.
    ERROR:
    ORA-01031: insufficient privileges
    Warning: You are no longer connected to ORACLE.
    SP2-0640: Not connected

    Hi;
    please check Note:Is It Possible To Recreate The Example Schemas Hr And Oe? [ID 752140.1]
    Hope it helps
    Regard
    Helios

  • Oracle 11gR2 HR sample schema scripts not found

    after installing oracle 11gR2 on Linux (software + create new database without sample schema); I want install sample HR schema now but the problem is
    required scripts to create HR schema not found in 'demo' folder :
    [oracle@host schema]$ pwd
    /home/oracle/app/oracle/product/11.2.0/db_1/demo/schema
    [oracle@host schema]$ ls -l
    drwxr-xr-x 2 oracle dba 4096 Sep 4 07:41 bus_intelligence
    -rw-r--r-- 1 oracle dba 2322 Apr 3 2009 drop_sch.sql
    drwxr-xr-x 2 oracle dba 4096 Sep 9 12:59 human_resources
    drwxr-xr-x 2 oracle dba 4096 Sep 4 07:49 log
    -rw-r--r-- 1 oracle dba 1769 Sep 4 07:53 mk_dir.sql
    -rw-r--r-- 1 oracle dba 1769 Sep 4 07:53 mk_dir.sql.ouibak
    -rw-r--r-- 1 oracle dba 1600 Aug 16 2006 mk_dir.sql.sbs
    -rw-r--r-- 1 oracle dba 27373 Jun 30 2007 mkplug.sql
    drwxr-xr-x 3 oracle dba 4096 Sep 4 07:49 order_entry
    drwxr-xr-x 2 oracle dba 4096 Sep 4 07:41 sales_history
    -rw-r--r-- 1 oracle dba 15246 May 10 2005 sted_mkplug.sql.dbl
    [oracle@host1 schema]$ ls human_resources/
    hr_code.sql
    what's wrong ??

    Pl post exact OS version. When installing the software, did you download and unzip all 7 DVDs or just the first 2 ? If just the first 2, you will need to download the examples separately
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html
    or
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html
    then follow instructions in the Samples Guide - http://docs.oracle.com/cd/E11882_01/server.112/e10831/toc.htm
    HTH
    Srini

  • Oracle Reports Developer 10g schema missing

    Hi All:
    I took the course for "Oracle Reports Developer 10g" but I didn't copy the schema when I took the course.
    Now,I have the book "Oracle Reports Developer 10g: Build Reports Student Guide" but I look over the internet and I can't find the schema for this course.
    I needed the schemas for the following tables:
    CUSTOMERS
    ORDERS
    ORDER_ITEMS
    WAREHOUSES
    INVENTORIES
    PRODUCT_INFORMATION
    PRODUCT_DESCRIPTIONS
    ONLINE_MEDIA
    PRINT_MEDIA
    Any help or hint where I can find the sql scripts for this schema is greatly appreciated it.
    Yours,
    Frustrated.

    Hello,
    summit database files
    Regards

  • Oracle 11G, access other schema's procedure

    Hi all,
    I have a peculiar problem while calling a procedure from JAVA.
    I have two schemas, SCH1 and SCH2. Java is connected to  SCH1. There is a procedure in SCH2, grant is given to SCH1. in SCH1 a synonym is created using the following commad.
    create synonym PR_GET_DATE for sch2.PR_GET_DATE;
    Procedure is given below. For testing, I removed all the actions inside my procedure.
    create or replace
    PROCEDURE PR_GET_DATE(
        P_REP_PROCESS_DATE IN DATE,
        P_REP_TYPE         IN VARCHAR2,
        P_ETL_DATE OUT DATE ,
        P_STATUS OUT VARCHAR2,
        P_MSG OUT VARCHAR2)
    AS
      V_WK_REP_DATE DATE;
    BEGIN
    null;
    end;
    {code}
    If I test this from SQLPLUS, it works fine. But if I call it from Java, I am getting the following error in Java. But if I compile it in SCH1 and try calling from java, it works fine. Can someone please explain me the possible cause of this behaviour.
    org.springframework.jdbc.BadSqlGrammarException:
    CallableStatementCallback; bad SQL grammar [{call PR_CLMSR_GET_REP_DATE()}];
    nested exception is java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types
    of arguments in call to 'PR_CLMSR_GET_REP_DATE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Thanks,
    Jaggyam

    Thanks All for you response!
    Grant is given, otherwise it would have been clearly mentioned in the error
    We are passing all the parameters with appropriate value. To throw more light on that, we did not make any change in the java. But simply dropped the synonym took the copy of the procedure from SCH2 and compiled in SCH1. After doing so, I didn't get any error in Java. So nothing wrong in the number of parameters passed or their type.
    By looking at the error message, even I thought the parameters are not properly passed from java. But without making any code change Java, it is working fine after we moved the procedure to SCH1. Again in either case when I called from SQLPLUS, I had no issues. I don't have a concrete evidence to put in front of my Java team to prove that nothing is wrong in the code.
    Kindly throw your thoughts please.
    Thanks in advance,
    Jaggyam

  • Oracle 11g advantages for performance

    Hello,
    I am doing test of Client side result set cache on oracle 11 g rel2 ,O/S- RHEL
    i am doing test as below on 2 Oracle 11g rel2 test servers on RHEL
    one oracle 11g rel2 instance is used as server1,from other oracle 11g rel2 server2, i am running queries connecting to server1 through sqlplus,listener(tnsnames )
    i run query few times without any client cache settings then
    i have set init.ora paras for oracle 11g rel2 for client result cache,cache size/cache lag
    i run the same query few times
    in both the cases after each run i am noting statistics
    select * from V$RESULT_CACHE_OBJECTS;
    select * from V$CLIENT_RESULT_CACHE_STATS;
    select * from gv$cpool_conn_info;
    also autotrace,plan etc
    but after using cache this views are getting poplulated ,autiotrace plan shows cache is used
    but i cant see any improvement in performance after using client cache like speed,reduce network trip, etc
    in fact without using cache/with no hint ,query executes faster
    let me know if i am missing something,i believe sqlplus internally using OCI
    thanks

    >
    I tested with custom code using java/jdbc thin driver ,connecting same as between 2 oracle 11g2 instance 1 as client other server,running code calling queries from client connecting to server
    >
    Unless you plan to provide the information ask for about what it is you are doing there really isn't any point in providing status updates that: you test this, you tested that. You made several statements about what you were doing
    >
    i have set init.ora paras for oracle 11g rel2 for client result cache,cache size/cache lag
    i run the same query few times
    in both the cases after each run i am noting statistics
    select * from V$RESULT_CACHE_OBJECTS;
    select * from V$CLIENT_RESULT_CACHE_STATS;
    select * from gv$cpool_conn_info;
    also autotrace,plan etc
    >
    and were asked to provide specific information that you haven't provided nor have you provided the query.
    >
    You say you are doing a bunch of things
    But you don't post any of those results so we can see what it is you are looking at.
    No one can comment on things they can't see.
    >
    You have to be using OCI for client side caching so if you use the Java thin driver but don't use OCI there won't be any cacheing. There also won't be any if it is not enabled or if the query has certain constraints as listed in the doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci10new.htm#CHDGGFEF
    >
    Queries that are not Cached
    There are queries that are not cached on the OCI client even if the result cache hint is specified. Such queries may be cached on the database if the server result cache feature is enabled (see Oracle Database Concepts, "SQL Query Result Cache" for more information). If a SQL query includes any of the following, then the result set of that query is not cached in the OCI client result cache:
    •Views
    •Remote objects
    •Complex types in the select list
    •Snapshot-based or flashback queries
    •Queries executed in a serializable, read-only transaction, or inside a flashback session
    •Queries that have PL/SQL functions in them
    •Queries that have VPD policies enabled on the tables
    >
    This Oracle-Developer.net article author doesn't seem to have any trouble caching results.
    http://www.oracle-developer.net/display.php?id=503

  • Rman backup 11g rel2

    Hello Guys
    I was testing rman backup on oracle 11g rel2 , logging time for backup using rman as in 2 ways 1) full database backup
    2)full database backup /parallel feature say "section size 200M" in script
    i was expecting due to new 11g feature option 2 should complete faster ,but its reverse without using this feature
    its running more fast (completing by 4-5 minutes less time)
    I also tried taking backup of 1 datafile or 1 tablespace using both the option and also placing backupsets
    on different folders/mountpoints ,but result is same
    if you had worked on this feature ,please give details what is benefit of using this feature,i can see disadvantage here
    Thanks

    804719 wrote:
    so without section size this operation is not actually parallelYes, it's not parallel for datafile, but it parallel for the entire job.
    You can analyze the backup log. It should contains the records about opening several channels simultaneously, for instance:
    Starting backup at 26/04/12 23:14:19
    channel tape1: starting full datafile backup set
    channel tape1: specifying datafile(s) in backup set
    input datafile file number=00049 name=/home/oracle/oradata/...
    channel tape1: starting piece 1 at 26/04/12 23:14:21
    channel tape2: starting full datafile backup set
    channel tape2: specifying datafile(s) in backup set
    input datafile file number=00050 name=/home/oracle/oradata/...
    channel tape2: starting piece 1 at 26/04/12 23:14:22
    channel tape3: starting full datafile backup set
    channel tape3: specifying datafile(s) in backup set
    All within 3 seconds, and working in parallel...

  • Snapshot standby database in oracle 11g r2 RAC

    Folks,
    i am just wondering if the process is same for standalone and RAC snapshot standby database.
    We have a DR test
    1 / I just converted the standalone DR on 11g to snapshot standby database for users to do some testing and reverted back to physical standby after test was done. i folllowed metalink note ID 443720.1
    2/ now there is anotherDR test where we have 2 node prod and 2 node DR on oracle 11g rel2 RAC, so not sure we can follow the same process that i used for 11g standalone database. If somebody have done this on RAC, would you please provide the steps ?
    Thanks in advance
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> !uname -a
    Linux 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

    I haven't done a Snapshot Standby (RAC or non-RAC). But I see no reason why it shouldn't work with a RAC Standby either.
    The command is a Database level command, not an Instance level command.
    Hemant K Chitale

  • OWB 11g rel2 Client install. Error when creating my first Workspace

    We just installed Oracle 11g rel2 Std edition database on Oracle Linux. No problem connection with Toad. Everything works fine.
    I have just installed OWB 11.2.0.1 client on Windows 7 and Windows 7 in XP mode. Having the same problem on both installations mentioned below.
    No I am about to create my first Workspace in Repository Assistant where I get an error:
    - Step 1, Database information
    - Host xxx
    - Port 1521
    - Oracle Service Name: instance name (the one I use in Toad that works)
    -SQL Net Connection: Checked  Seems that I have to use this when I connect with system user later on in the wizard.
    - Step 2 Manage Warehouse Builder workspaces, checked
    - Step 3 Create a new Warehouse Builder workspace
    - Step 4 Create a workspace with a new user as workspace owner, checked
    - Step 5 DBA Information: user system, Password: xxx
    - Step 6 Enable Optional Features: Non selected
    - Step 7 Workspace Owner(new)
    - Workspace Owners’s User Name: owb_owner
    - Password x 2
    - Workspace Name: workspace_dev
    - Step 8 OWBSYS Information:
    - User Name: OWBSYS (OWBSYS and OWBSYS_AUDIT accounts are unlocked)
    - Password: xxx
    - Then I click next, and the error information are as follow:
    “OWB software with the compatible version must be installed locally on the database server machine. If it is already installed, please acquire the DBA user credentials, an run the SQL script owb/UnifiedRepos/remote_owb_install.sql on the database server machine. This creates a database directory named ‘OWB_REMOTE_ADMIN’ that the remote installation will access to read the database servers OWBHOME/owb/bin/admin directory. Relaunch the Repository Assistant or execute OWB scripting command OMBSEED to seed the repository.
    Since we have installed the Oracle 11g rel 2 database, the OWB are already in that installation. I also tried to run the remote_owb_install.sql and applied the OWBHOME/owb/bin/ when running sql. I still have the same problem.
    Anyone experienced this and have a solution to solve this?

    Hi Scott,
    SQL> select privilege from dba_sys_privs where grantee='FLOWS_030100';
    PRIVILEGE
    DROP PUBLIC SYNONYM
    SELECT ANY TABLE
    DROP USER
    UNLIMITED TABLESPACE
    DROP TABLESPACE
    CREATE JOB
    ALTER SYSTEM
    EXECUTE ANY PROCEDURE
    CREATE PUBLIC SYNONYM
    ALTER SESSION
    10 rows selected.
    SQL> Select granted_role from dba_role_privs where grantee='FLOWS_030100';
    GRANTED_ROLE
    RESOURCE
    CONNECT
    SQL>
    I am sure nothing has been revoked.
    Is there a script I have not run?
    Regards
    Michael

  • 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

  • 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 Multimedia: PhotoAlbum Sample - PhotoAlbumDBInfo.jsp file missing...

    Hello there!
    I installed the package of Examples for Oracle 11g and did everything correctly about the configuration process of the PhotoAlbum example for JSP, but when I searched for the file "PhotoAlbumDBInfo.jsp" - funnily, the main file to run the example - it strangely wasn't in the package located in <ORACLE_HOME>\ord\http\demo\jsp. Then, I'm not able to run the program without this file.
    I tried to search it through the internet, but with no success.
    Maybe was it corrupted during the instalation? Or there is some issue about the Oracle Examples updated?
    Can someone point out how to solve this situation? If I could get this JSP file, would be great.
    Thank you very much! I'm really needing this to start a customized work to my university using Oracle Multimedia.
    Greetings from Brazil!

    Yes, there is. As follows:
    About the JSP Sample Application
    ================================
    The Oracle Multimedia JavaServer Pages (JSP) Photo Album sample application
    shows how to use the Oracle Multimedia Servlets and JSP Java Classes library
    to upload and retrieve multimedia data to and from a database. Users can
    access the JSPs to view the contents of the photo album (including thumbnail
    versions of each photograph), to view the full-size version of any
    photograph, and upload new photographs into the album.
    The Oracle Multimedia JSP Photo Album sample application contains the
    following files:
    PhotoAlbumDBInfo.jsp
    A JSP that displays an HTML form that prompts users to enter the database
    schema, password and the database connection string.
    Users can choose one of these options for the database connection string.
    Option 1. A JDBC OCI driver specifying a SQL*Net service name.
    This option works on all platforms where an Oracle Database
    client is installed.
    Option 2. A JDBC Thin driver specifying a host, port and Oracle
    database SID. This option works on all platforms and does not
    require an Oracle Database client.
    PhotoAlbumBean.java uses the input information to connect to the database,
    retrieve and upload photographs.
    PhotoAlbum.jsp
    A JSP that displays the contents of the photo album using an image
    tag <IMG SRC="PhotoAlbumMediaViewer.jsp?media=thumb&...> to display
    the thumbnail images.
    A friend of mine did the same installation and configuration on a Windows Ultimate (x64) and the file is also missing there. Could it be possible that the "Oracle Database 11g Release 2 Examples" do not have this file in the version that I mentioned? None has the file or it's not permitted to share this file through this forum?
    Thanks!
    Edited by: 945632 on 11/07/2012 17:33
    Edited by: 945632 on 11/07/2012 17:40

  • 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

  • Sample schemas scripts are missing from 10g (10.2.0.1.0)  on Win XP Pro(32

    Hi All!
    Sample schemas (HR, OE, PM, QS, and SH) scripts are missing from 10g (10.2.0.1.0) on Win XP Pro(32-bit)
    I have checked $ORACLE_HOME/demo/schema directory: There is subdirectory for each schema.
    The scripts are not there or only some of them scripts are installed.
    The list of correct scripts is hear:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/scripts.htm#sthref77
    Where to get scripts to rebuild sample schemas manually?
    Thank you

    Welcome to the forums !
    The scripts should be available in the companion directory of the CD
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/installation.htm#I4367
    HTH
    Srini

  • 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

Maybe you are looking for