Installing sample schemas
hello everyone and merry christmas!
I HAVE DOWNLOADED THE 8.I PERSONAL EDITION INTO NT AND I WANT TO KNOW IF
I CAN INSTALL THE ORACLE 9I SAMPLE SCHEMAS?
OR DO I HAVE TO HAVE A 9I DATABASE DOWNLOADED FIRST?
PLEASE, HELP.
THANKS IN ADVANCE
The users both "OE" and "HR" have the connect, resourse and dba permisions... Both use the USERS tablespace and the TEMP temporary tablespace.
Thanks for the help.
Similar Messages
-
Hi,
I installed my oracle database successfully but dint install sample schemas.Now i want to install all sample schemas but couldnt find them under $Oracle_home/demo/schema.No **_main.sql is available there.Please provide me the sample scripts as am not in a condition to download companion CDPl see the download instructions here - http://docs.oracle.com/cd/E11882_01/install.112/e24501/toc.htm#BABBIBJF
Then follow the install instructions here - http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm#I4367
HTH
Srini -
Hi, Everyone,
I would like to know how to install a sample schema in oracle 11g database.
I have already installed oracle 11.1.0.6 on my server without the sample schema. Now i want to install the sample schemas in my database. Can anyone provide me with the steps on how to install it.
i am following this document
http://download.oracle.com/docs/cd/B28359_01/server.111/b28328/installation.htm#I6806
but the files it is mentioning .sql files for example in the hr folder i dont have this file...
'hr_main.sql'
i have only 'hr_code.sql'
so i feel that something is missing somewhere.. so could you people help me in this?
Thanks & RegardsCan't find oe_main.sql and HR_main.sql
HTH... -
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
NAD942907 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 -
Hello Members Please Help Error Installing Sample Schemas (HR)
Hi members, and thank you for your help.
After much mulling I have installed Oracle 12c (64b) on my Windows 7 64b SP.
Apparently everything is working fine, I can access both from the web (EM Express) an SQL Plus as SYS for example.
he probelma is:
I downloaded and unzipped winx64_12c_examples and have installed correctly.
I have verified that you have added the files in the respective folders.
For example, in C: \ Oracle12c \ product \ 12.1.0 \ dbhome_1 \ demo \ schema \ human_resources I have the 10 files.
12/10/2002 19:27 1,173 hr_analz.sql
29/08/2002 14:29 2,825 hr_code.sql
29/08/2002 14:29 7,387 hr_comnt.sql
29/08/2002 14:29 9,718 hr_cre.sql
29/08/2002 14:29 16,439 hr_dn_c.sql
Hr_dn_d.sql 934 29/08/2002 14:29
29/08/2002 14:29 1,196 hr_drop.sql
29/08/2002 14:29 1,410 hr_idx.sql
27/05/2011 11:25 3,368 hr_main.sql
15/08/2008 18:12 46,647 hr_popul.sql
10 files 91 097 bytes
Now I come to install the samples as indicated in the link:
http://docs.oracle.com/cd/E16655_01/server.121/e15979/installation.htm
The inputs...
SQL * Plus: Release 12.1.0.1.0 Production on Tue Sep 6 1:21:36 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter the user name: sys as sysdba
Enter the password ± to:
Connected to:
12c Oracle Database Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt
ions
SQL> @? / Demo / schema / human_resources / hr_main.sql
specify password for HR as parameter 1:
Enter a value for 1: passw
specify default tablespeace for HR as parameter 2:
Enter a value for 2: users
specify temporary tablespace for HR as parameter 3:
Enter value for 3: temp
specify password for SYS as parameter 4:
Enter value for 4: passw
specify log path as parameter 5:
Enter a value for 5: C: \ Oracle12c \ product \ 12.1.0 \ dbhome_1 \ demo \ schema \ log\
The output is full of errors and seems not to have done anything ... ?
However, if I have created the LOG in the right direction.
Below I put the full LOG output.
===============================================================================
C:\Oracle12c\product\12.1.0\dbhome_1\demo\schema\log\hr_main.log
===============================================================================
DROP USER hr CASCADE
ERROR at line 1:
ORA- 01918 : user ' HR ' does not exist
CREATE USER hr IDENTIFIED BY passw
ERROR at line 1:
ORA- 65096 : user or role name shared Invalid
ALTER USER hr DEFAULT TABLESPACE users
ERROR at line 1:
ORA- 01918 : user ' HR ' does not exist
ALTER USER hr TEMPORARY TABLESPACE temp
ERROR at line 1:
ORA- 01918 : user ' HR ' does not exist
GRANT CREATE SESSION , CREATE VIEW, ALTER SESSION , CREATE SEQUENCE TO hr
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
GRANT CREATE SYNONYM , CREATE DATABASE LINK , RESOURCE, UNLIMITED TABLESPACE TO hr
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
Online .
GRANT execute ON TO hr sys.dbms_stats
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
ERROR :
ORA- 01017 : invalid username / password , logon denied
Warning :no longer connected to ORACLE !
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating table COUNTRIES ****** ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOBS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOB_HISTORY table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMP_DETAILS_VIEW view ...
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** countires table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOBS ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOB_HISTORY ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0641 : " EXECUTE " requires connection to the server
------------------------------------------------------------------------------------------------------------------------------------------------------------------ END
Thats is all, I think ....
So here I come, continued searching google and forums but can not find a solution to this problem.
Please appreciate any help with this, I need the sample database running.
Thank you very much in advance and good luck.NEW ... LAST CHANGES !!
I changed the PDB, which appeared as mounted pdborcl been open with the command:
alter pluggable database pdborcl open;
SQL> connect system/oracle@localhost:1521/pdborcl as sysdba
Conectado.
SQL> SELECT NAME, OPEN_MODE, RESTRICTED, OPEN_TIME FROM V$PDBS;
NAME OPEN_MODE RES
OPEN_TIME
PDBORCL READ WRITE NO
06/09/13 20:54:33,875
And now I repeat the process ...
SQL> @? / Demo / schema / human_resources / hr_main.sql
specify password for HR as parameter 1:
Enter a value for 1: passw
specify default tablespeace for HR as parameter 2:
Enter a value for 2: users
specify temporary tablespace for HR as parameter 3:
Enter value for 3: temp
specify password for SYS as parameter 4:
Enter value for 4: passw
specify log path as parameter 5:
Enter a value for 5: C: \ Oracle12c \ product \ 12.1.0 \ dbhome_1 \ demo \ schema \ log\
And The output of the log has been changed !!!!
===============================================================================
C:\Oracle12c\product\12.1.0\dbhome_1\demo\schema\log\hr_main.log
===============================================================================
User deletion.
User created .
User changed.
User changed.
Grant finished properly.
Grant finished properly.
Online .
GRANT execute ON TO hr sys.dbms_stats
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
ERROR :
ORA- 01017 : invalid username / password , logon denied
Warning :no longer connected to ORACLE !
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating table COUNTRIES ****** ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOBS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOB_HISTORY table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMP_DETAILS_VIEW view ...
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** countires table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOBS ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOB_HISTORY ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0641 : " EXECUTE " requires connection to the server
we move forward
Comments are welcome
Thanks again ! -
Sample schema manual installation
I installed the oracle 11g release2 and unchecked to install the sample schema when installation process, after installation completed, I want to install the sample schema manually, as document said all scripts will be in $ORACLE_HOME/demo/schema directory but I cannot find all installation scripts, Anyone could help why? and where I can get the scripts to create the sample schema (HR,OE,SH etc).
Thank you very much!user12063985 wrote:
I have read the document but not find those scripts, I am using windows xp sp3 32bit.
Thanks a lot!In Chapter 2 of the Install Guide linked above, under the section titled "Manually Installing Sample Schemas" there is a link to http://download.oracle.com/docs/cd/E11882_01/install.112/e17861/toc.htm and if you scroll down to "Download Oracle Database Examples" section, you will find the instructions :-)
HTH
Srini -
Hi I am new to sqlOracle
I was trying to follow some Oracle tutorial,but i needed to install the sample schemas (OE-order entry) first
http://www.oracle.com/technology/obe/obe1013jdev/common/OBEConnection.htm
1. First i download the sample_schema_scripts.zip and extracted into the folder
c:\schema that i created
2. I start database from my database OracleEX10g
3. go to the C:\schema that have the sql script (oe8_main.sql)
4.use sqlplus
5. login as system and put the password
6. run the scripts oe8_main.sql with no problems
7. it asked me for " specify password for oe8 as parameter 1:
and i need to enter value for 1: which is i dont know
8. i need to fil this value til parameter 6
9. so i typed the value &1 for parameter 1 and &2 for parameter 2...til parameter 6
10. it showned error:
ERROR at line 1:
ora-00988 : missing or invalid passwords(s)
and user or role 'OE8" does not exist and
ask me to enter value for database_name: which i dont know
11. anyone can help to solve the problem and how can i know what are the passwords for 6 parameters
12. Do i need to create my new user because i used system as a user
13. this is the content of oe8_main.sql file attached:
SET ECHO OFF
PROMPT
PROMPT specify password for oe8 as parameter 1:
DEFINE pass = &1
PROMPT
PROMPT specify default tablespeace for oe8 as parameter 2:
DEFINE tbs = &2
PROMPT
PROMPT specify temporary tablespace for oe8 as parameter 3:
DEFINE ttbs = &3
PROMPT
PROMPT specify password for HR as parameter 4:
DEFINE passhr = &4
PROMPT
PROMPT specify password for SYS as parameter 5:
DEFINE pass_sys = &5
PROMPT
PROMPT specify path for log files as parameter 6:
DEFINE log_path = &6
PROMPT
-- The first dot in the spool command below is
-- the SQL*Plus concatenation character
DEFINE spool_file = &log_path.oe8_main.log
SPOOL &spool_file
-- Dropping the user with all its objects
DROP USER oe8 CASCADE;
REM =======================================================
REM create user
REM
REM The user is assigned tablespaces and quota in separate
REM ALTER USER statements so that the CREATE USER statement
REM will succeed even if the demo and temp tablespaces do
REM not exist.
REM =======================================================
CREATE USER oe8 IDENTIFIED BY &pass;
ALTER USER oe8 DEFAULT TABLESPACE &tbs QUOTA UNLIMITED ON &tbs;
ALTER USER oe8 TEMPORARY TABLESPACE &ttbs;
GRANT CONNECT TO oe8;
GRANT RESOURCE TO oe8;
GRANT CREATE MATERIALIZED VIEW TO oe8;
GRANT QUERY REWRITE TO oe8;
REM =======================================================
REM grants from sys schema
REM =======================================================
rem KM: 01Aug02 - remove "AS SYSDBA" clause - NOT needed FOR GRANT
CONNECT sys/&pass_sys&&database_name
GRANT execute ON sys.dbms_stats TO oe8;
REM =======================================================
REM grants from hr8 schema
REM =======================================================
CONNECT hr8/&passhr&&database_name;
GRANT REFERENCES, SELECT ON employees TO oe8;
GRANT REFERENCES, SELECT ON countries TO oe8;
GRANT REFERENCES, SELECT ON locations TO oe8;
GRANT SELECT ON jobs TO oe8;
GRANT SELECT ON job_history TO oe8;
GRANT SELECT ON departments TO oe8;
REM =======================================================
REM create oe8 schema (order entry)
REM =======================================================
CONNECT oe8/&pass&&database_name
ALTER SESSION SET NLS_LANGUAGE=American;
ALTER SESSION SET NLS_TERRITORY=America;
@@oe8_cre
@@oe8_p_pi
@@oe8_p_pd
@@oe8_p_whs
@@oe8_p_cus
@@oe8_p_ord
@@oe8_p_itm
@@oe8_p_inv
@@oe8_views
@@oe8_comnt
@@oe8_idx
@@oe8_analz
spool offHi,
HR sample schema already comes with Oracle XE, so you don't need to re-install it. Anyways ...
C:\>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 22 12:58:20 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SYS@XE> @C:\oraclexe\app\oracle\product\10.2.0\server\demo\schema\human_resources\hr_main.sql;
specify password for HR as parameter 1:
Enter value for 1: HR -- put here some password
specify default tablespeace for HR as parameter 2:
Enter value for 2: USERS
specify temporary tablespace for HR as parameter 3:
Enter value for 3: TEMP
specify password for SYS as parameter 4:
Enter value for 4: MANAGER -- password that you defined at Oracle XE installation
specify log path as parameter 5:
Enter value for 5: C:\
User dropped.
old 1: CREATE USER hr IDENTIFIED BY &pass
new 1: CREATE USER hr IDENTIFIED BY hr
User created.
old 1: ALTER USER hr DEFAULT TABLESPACE &tbs
new 1: ALTER USER hr DEFAULT TABLESPACE users
old 2: QUOTA UNLIMITED ON &tbs
new 2: QUOTA UNLIMITED ON users
User altered.
old 1: ALTER USER hr TEMPORARY TABLESPACE &ttbs
new 1: ALTER USER hr TEMPORARY TABLESPACE temp
User altered.
Grant succeeded.
Grant succeeded.
Connected.
Grant succeeded.
Connected.
Session altered.
Session altered.
****** Creating REGIONS table ....
Table created.
Index created.
Table altered.
****** Creating COUNTRIES table ....
Table created.
Table altered.
****** Creating LOCATIONS table ....
Table created.
Index created.
Table altered.
Sequence created.
****** Creating DEPARTMENTS table ....
Table created.
Index created.
Table altered.
Sequence created.
****** Creating JOBS table ....
Table created.
Index created.
Table altered.
****** Creating EMPLOYEES table ....
Table created.
Index created.
Table altered.
Table altered.
Sequence created.
****** Creating JOB_HISTORY table ....
Table created.
Index created.
Table altered.
****** Creating EMP_DETAILS_VIEW view ...
View created.
Commit complete.
Session altered.
****** Populating REGIONS table ....
1 row created.
1 row created.
1 row created.
1 row created.
****** Populating COUNTIRES table ....
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
****** Populating LOCATIONS table ....
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
****** Populating DEPARTMENTS table ....
Table altered.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
****** Populating JOBS table ....
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
****** Populating EMPLOYEES table ....
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
****** Populating JOB_HISTORY table ....
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
Table altered.
Commit complete.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Commit complete.
Procedure created.
Trigger created.
Trigger altered.
Procedure created.
Trigger created.
Commit complete.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Comment created.
Commit complete.
PL/SQL procedure successfully completed.Cheers
Legatti -
Error installing olaptrain sample schema for OLAP Cubes
I want to install olaptrain schema for OLAP cubes. It has been the error when I apply the procedures. My password is also correct. This error is attachment link.
http://1ercanyagmur9.blogspot.com.tr/2014/01/error.htmlThe error link that you pasted in this post is no longer available.
-
What are the sample schemas(like scott,hr) in oracle 12c?
Hi,
I have just downloaded and installed the oracle 12c on my desktop(Hurray!), but i don't see any of the sample schemas like scott and hr to play with. Do we have anything like those schemas in 12c?
Thanks,
sgI have just downloaded and installed the oracle 12c on my desktop(Hurray!), but i don't see any of the sample schemas like scott and hr to play with. Do we have anything like those schemas in 12c?
Yes - but they would be in a PDB if you installed the sample schemas; you won't find them in the CDB.
If, like many people new to 12c, you did a default install for a database named ORCL and then connect to ORCL you are connecting to the CDB; that is, the root container. You won't find any sample schema there.
If you installed the sample schemas then the install process would have created one PDB name PDBORCL (by default) and that PDB would contain the sample schemas.
Then the next thing users typically do is connect as sysdba and do a STARTUP and then find they can't connect to PDBORCL. Surprise! The PDBs are NOT opened by default; you need to open them manually when you startup the DB or create an AFTER STARTUP trigger that opens the ones you want.
Review chapters 17 and 18 of the Database Concepts doc
http://docs.oracle.com/cd/E16655_01/server.121/e17633/cdbovrvw.htm -
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. -
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 helpThis 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 -
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
ThanksDoes 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/ -
How to create 9i db without sample schema?
I have (finally) gotten 9iR2 installed on RH 7.3.
During installation I created sample database instance TEST.
I then used dbca to create a second instance JSDB.
I did not see (but may have missed) dbca questions regarding wether or not to create/load sample database schema.
How best to create a database without the sample database schema?
If it can not be done, how best to expunge the sample database schema and all related litter?
There seems to be tables for SCOTT, HR, OE, SH, PM.
Thanks
R.Parr
Temporal ArtsTo drop SCOTT schema, run the batch file/shell script:
ORACLE_HOME\BIN\DEMODROP
To drop HR schema, run SQL script:
ORACLE_HOME\DEMO\SCHEMA\HUMAN_RESOURCES\HR_DROP.SQL
There are a number of other sample schema scripts to drop the other schemas installed with Oracle9i. If you can't find them easily, read the Sample Schema Guide on http://tahiti.oracle.com/.
Alison -
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.
- DenisHi, 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 -
I have installed 10g xe. I am self training using the oracle press book "Oracle Database 10g A Beginner's Guide." However, the book indicates that the customer table, mentioned in chapter 2 is provided as part of the sample schema in 10g. But the only schema I have is HR. Is there a place where I can download and import the schemas mentioned in the book? Or must I install enterprise edition in order to work with them? Thanks to any that can assist.
The Order Entry (OE) schema builds on the purely relational Human Relations (HR) schema with some object-relational and object-oriented features. The OE schema contains seven tables: Customers, Product_Descriptions, Product_Information, Order_Items, Orders, Inventories, and Warehouses. The OE schema has links into the HR schema and PM schema. This schema also has synonyms defined on HR objects to make access transparent to users.
rem
rem Header: oe_cre.sql 09-jan-01
rem
rem Copyright (c) 2001, 2002, Oracle Corporation. All rights reserved.
rem
rem Owner : ahunold
rem
rem NAME
rem oe_cre.sql - create OE Common Schema
rem
rem DESCRIPTON
rem Creates database objects. The script assumes that the HR schema
rem is present.
rem
rem NOTES
rem The OIDs assigned for the object types are used to
rem simplify the setup of Replication demos and are not needed
rem in most unreplicated environments.
rem
rem MODIFIED (MM/DD/YY)
rem hyeh 08/29/02 - hyeh_mv_comschema_to_rdbms
rem ahunold 09/17/01 - FK in PRODUCT_DESCRIPTIONS
rem ahunold 04/25/01 - OID
rem ahunold 03/02/01 - eliminating DROP SEQUENCE
rem ahunold 01/30/01 - OE script headers
rem ahunold 01/24/01 - Eliminate extra lines from last merge
rem ahunold 01/05/01 - promo_id
rem ahunold 01/05/01 - NN constraints in product_descriptions
rem ahunold 01/09/01 - checkin ADE
PROMPT
PROMPT specify Sample Schema version as parameter 1:
DEFINE vrs = &1
PROMPT
-- ======================================================================
-- Type definitions
-- ======================================================================
CREATE TYPE cust_address_typ
OID '82A4AF6A4CD1656DE034080020E0EE3D'
AS OBJECT
( street_address VARCHAR2(40)
, postal_code VARCHAR2(10)
, city VARCHAR2(30)
, state_province VARCHAR2(10)
, country_id CHAR(2)
REM ===========================================================================
REM Create phone_list_typ varray to be varray column in customers table.
REM ===========================================================================
CREATE TYPE phone_list_typ
OID '82A4AF6A4CD2656DE034080020E0EE3D'
AS VARRAY(5) OF VARCHAR2(25);
REM ===========================================================================
REM Create customers table.
REM The cust_geo_location column will become MDSYS.SDO_GEOMETRY (spatial)
REM datatype when appropriate scripts and data are available.
REM ===========================================================================
DEFINE vscript = ?/demo/schema/order_entry/ccus_&vrs
@&vscript
CREATE UNIQUE INDEX customers_pk
ON customers (customer_id) ;
REM Both table and indexes are analyzed using the oe_analz.sql script.
ALTER TABLE customers
ADD ( CONSTRAINT customers_pk
PRIMARY KEY (customer_id)
REM ===========================================================================
REM Create warehouses table;
REM includes spatial data column wh_geo_location and
REM XML type warehouse_spec (was bug b41)
REM ===========================================================================
DEFINE vscript = ?/demo/schema/order_entry/cwhs_&vrs
@&vscript
CREATE UNIQUE INDEX warehouses_pk
ON warehouses (warehouse_id) ;
ALTER TABLE warehouses
ADD (CONSTRAINT warehouses_pk PRIMARY KEY (warehouse_id)
REM ===========================================================================
REM Create table order_items.
REM ===========================================================================
CREATE TABLE order_items
( order_id NUMBER(12)
, line_item_id NUMBER(3) NOT NULL
, product_id NUMBER(6) NOT NULL
, unit_price NUMBER(8,2)
, quantity NUMBER(8)
CREATE UNIQUE INDEX order_items_pk
ON order_items (order_id, line_item_id) ;
CREATE UNIQUE INDEX order_items_uk
ON order_items (order_id, product_id) ;
ALTER TABLE order_items
ADD ( CONSTRAINT order_items_pk PRIMARY KEY (order_id, line_item_id)
CREATE OR REPLACE TRIGGER insert_ord_line
BEFORE INSERT ON order_items
FOR EACH ROW
DECLARE
new_line number;
BEGIN
SELECT (NVL(MAX(line_item_id),0)+1) INTO new_line
FROM order_items
WHERE order_id = :new.order_id;
:new.line_item_id := new_line;
END;
REM ===========================================================================
REM Create table orders, which includes a TIMESTAMP column and a check
REM constraint.
REM ===========================================================================
DEFINE vscript = ?/demo/schema/order_entry/cord_&vrs
@&vscript
CREATE UNIQUE INDEX order_pk
ON orders (order_id) ;
ALTER TABLE orders
ADD ( CONSTRAINT order_pk
PRIMARY KEY (order_id)
REM ===========================================================================
REM Create inventories table, which contains a concatenated primary key.
REM ===========================================================================
CREATE TABLE inventories
( product_id NUMBER(6)
, warehouse_id NUMBER(3) CONSTRAINT inventory_warehouse_id_nn NOT NULL
, quantity_on_hand NUMBER(8)
CONSTRAINT inventory_qoh_nn NOT NULL
, CONSTRAINT inventory_pk PRIMARY KEY (product_id, warehouse_id)
REM ===========================================================================
REM Create table product_information, which contains an INTERVAL datatype and
REM a CHECK ... IN constraint.
REM ===========================================================================
CREATE TABLE product_information
( product_id NUMBER(6)
, product_name VARCHAR2(50)
, product_description VARCHAR2(2000)
, category_id NUMBER(2)
, weight_class NUMBER(1)
, warranty_period INTERVAL YEAR TO MONTH
, supplier_id NUMBER(6)
, product_status VARCHAR2(20)
, list_price NUMBER(8,2)
, min_price NUMBER(8,2)
, catalog_url VARCHAR2(50)
, CONSTRAINT product_status_lov
CHECK (product_status in ('orderable'
,'planned'
,'under development'
,'obsolete')
ALTER TABLE product_information
ADD ( CONSTRAINT product_information_pk PRIMARY KEY (product_id)
REM ===========================================================================
REM Create table product_descriptions, which contains NVARCHAR2 columns for
REM NLS-language information.
REM ===========================================================================
CREATE TABLE product_descriptions
( product_id NUMBER(6)
, language_id VARCHAR2(3)
, translated_name NVARCHAR2(50)
CONSTRAINT translated_name_nn NOT NULL
, translated_description NVARCHAR2(2000)
CONSTRAINT translated_desc_nn NOT NULL
CREATE UNIQUE INDEX prd_desc_pk
ON product_descriptions(product_id,language_id) ;
ALTER TABLE product_descriptions
ADD ( CONSTRAINT product_descriptions_pk
PRIMARY KEY (product_id, language_id));
ALTER TABLE orders
ADD ( CONSTRAINT orders_sales_rep_fk
FOREIGN KEY (sales_rep_id)
REFERENCES hr.employees(employee_id)
ON DELETE SET NULL
ALTER TABLE orders
ADD ( CONSTRAINT orders_customer_id_fk
FOREIGN KEY (customer_id)
REFERENCES customers(customer_id)
ON DELETE SET NULL
ALTER TABLE warehouses
ADD ( CONSTRAINT warehouses_location_fk
FOREIGN KEY (location_id)
REFERENCES hr.locations(location_id)
ON DELETE SET NULL
ALTER TABLE customers
ADD ( CONSTRAINT customers_account_manager_fk
FOREIGN KEY (account_mgr_id)
REFERENCES hr.employees(employee_id)
ON DELETE SET NULL
ALTER TABLE inventories
ADD ( CONSTRAINT inventories_warehouses_fk
FOREIGN KEY (warehouse_id)
REFERENCES warehouses (warehouse_id)
ENABLE NOVALIDATE
ALTER TABLE inventories
ADD ( CONSTRAINT inventories_product_id_fk
FOREIGN KEY (product_id)
REFERENCES product_information (product_id)
ALTER TABLE order_items
ADD ( CONSTRAINT order_items_order_id_fk
FOREIGN KEY (order_id)
REFERENCES orders(order_id)
ON DELETE CASCADE
enable novalidate
ALTER TABLE order_items
ADD ( CONSTRAINT order_items_product_id_fk
FOREIGN KEY (product_id)
REFERENCES product_information(product_id)
ALTER TABLE product_descriptions
ADD ( CONSTRAINT pd_product_id_fk
FOREIGN KEY (product_id)
REFERENCES product_information(product_id)
REM ===========================================================================
REM Create cross-schema synonyms
REM ===========================================================================
CREATE SYNONYM countries FOR hr.countries;
CREATE SYNONYM locations FOR hr.locations;
CREATE SYNONYM departments FOR hr.departments;
CREATE SYNONYM jobs FOR hr.jobs;
CREATE SYNONYM employees FOR hr.employees;
CREATE SYNONYM job_history FOR hr.job_history;
REM ===========================================================================
REM Create sequences
REM ===========================================================================
CREATE SEQUENCE orders_seq
START WITH 1000
INCREMENT BY 1
NOCACHE
NOCYCLE;
REM ===========================================================================
REM Need commit for PO
REM ===========================================================================
COMMIT;And yes, you must install at least Oracle SE to get completely this sample schemas on your file system :(
Maybe you are looking for
-
I Got Windows ME how do i get my ipod to work on it.
I just got a new ipod nano as a pressent and my comps only got windows me. weres some software so i can sync to put music on my ipod!!!! PLEASE HELP ME.
-
How to show an error if the user enters a value which is not in the dropdown of a form
Hi All, I have attached the screenshot below and if we look at the field for claimnumber we have a dropdown which can help the users pick the available claimnumbers, but if someone accidentally types in a claimnumber that is not in the system( which
-
Hi, is there anyway to change a group of photos (e.g. 100) to B&W in one go? The only way I have been able to do this in iphoto so far is go edit -> effects -> B&W for each photo individually. Any ideas? thanks, Anna
-
Dear Sir or Madam My system: * Intel 450, Sony ( CD -Rom and burner ) connect to primary IDE1 on mother board * Creative DVD rom connect to IDE 2 through ATA 100 card; * 80 G Western Didigtal connect to IDE1 through same ATA 100 card above. * Bios lo
-
Is this the behaviour that happes in Function Module ?
Hi ... I need to perform a validation check before a record inserted / updated into my own table. It was done through a maintenance view. What I am doing is to code a function ( under Screens - access through SE80 ) process after input. ... codes -->