Loading 9i sample schemas?
These scripts are required to load the 9i sample schemas (dbmsxmlt.sql and prvtxmlt.plb scripts). Where do I get them?
null
http://www.oracle.com/technology/obe/obe1013jdev/common/obeconnection.htm#t1s1
Greetings...
Sim
Similar Messages
-
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. -
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 -
Sample schema and data downloads?
I have installed oracle and I wish to test it with a substantial schema installed, with enough data to simulate a production level database.
I was wondering if online there were any large sample schemas, with large amounts of data (in sql loader .dat files?) that could be downloaded. My search so far has not been successful.
If possible I would like to get a schema with very large number of tables and many thousands of lines of data.First thing: you'd be better generating a dataset to match your particular requirements.
However, If you're thinking about a data warehouse, you could do worse than borrow the Mondrian 'Foodmart' test dataset. That contains 328k rows of data (so pretty small, but not trivial). See http://mondrian.sourceforge.net/.
Alternatively, lots of people start with datasets based on Northwind - the well known Access/SQL Server dataset. There's an article here http://www.oracle.com/technology/pub/articles/gagne_access.html on how to extract the necessary DDL using the mdbtools utilities.
HTH
Regards Nigel -
I am new to JDeveloper and trying to teach myself. I have the Oracle JDeveloper handbook and on page xxxviii it talks about creating and populating the Sample Schema. I have found the script to run to create the Sample Schema but due to my inexperience do not know how to run them. Can you help!
thanksThank You for your responce
I have gone to the web page you sent and downloaded iSql*Plus but I can not get it to work. I have tried to run it a number of different ways as stated by a number of online and JDeveloper help but it does the same thing. It displays a Error window
(Heading) Jave Virtual Machine Launcer
(Text) Failed to load Main-Class manifest attribute from......
The iSQL*Plus file is a .jar so this message tells me it is not a Application it must be a applet how come JDeveloper can not deal with this. It is the file I was instructed to download when I dowloaded JDeveloper ?????? -
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 -
Oracle 9i Sample Schema running in client/server mode?
I've got Oracle 9i up on RH7.3 and have successfully executed the sample schema on the Server using the mksample.sql script.
Now the challenge is to run these same (sample schema) SQL scripts across a network using a 9i client. I copied the demo/schema files from the server installation to the client but when I invoke the mksample script the passwords have to include a connect_identifier which, in this environment, causes the subordinate scripts to get confused.
Has anyone else attempted to do this?You did not have to change any of your scripts to put the connect_identifier.
Within SQL*Plus you can use the "SET INSTANCE <connect_identifier>" command to make that Oracle instance
your default for this session. After you do this, all your connect statements will not require a
connect_identifier.
==============================================================
$ sqlplus /nolog
SQL> set instance ORA901
Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
With the Partitioning option
JServer Release 9.0.1.1.1 - Production
SQL> connect scott/tiger
Connected.
SQL>
==============================================================
As you can see, after the SET INSTANCE command, the connect command does not need a connect_identifier. -
Why can't I load some samples into Logic's EXS24??
Hi everyone,
I am having an issue with loading some of my samples into the EXS24. I am using OSX 10.3.9 and Logic 7.1.0. When I try to load a sample, I can see that it recognizes it, yet when I click on it the sample doesn't load. It doesn't even try to load, It just shows blank dots in the loading window. Can anyone help me with this? I have to have this to work for my job. Thanks so much for the input!
-MattWhen you say you are loading a sample, I presume you are not trying to load a sample using the EXS24?
If you are, you should read the EXS24 manual, because that is not how it works - the EXS24 directly loads "sampler instrument" files only, and it's those that contain references to all the sample files.
So you open the EXS editor, create a new instrument, load your samples into that, save it, and then select your instrument in the EXS24. Long-winded, but that's how it works.
Or did you mean something else? -
Trying to load the sample plugin snippetRunner but it's not getting loaded
I tried to load the sample pluggin SniipetRunner and open Indesign.
Indesign opened successfully and is showing other plug-ins in the plug-in drop down but now SnippetRunner
any idea?I had the same problem. The SnippetRunner can be found under "Window" in the top menu bar. A screenshot can be seen here: http://stackoverflow.com/questions/23214516/indesign-sdk-sample-plugin-not-working/2323971 5#23239715
-
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/ -
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 connectedHi;
please check Note:Is It Possible To Recreate The Example Schemas Hr And Oe? [ID 752140.1]
Hope it helps
Regard
Helios -
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 -
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
-
Button Enabled/Disabled linked to FormMode?
Hi, I am new to SBO SDK and am in a learning as I go process having done basic training. I am adding a button to the business partners page. The new button I need 'greyed out' "oForm.Items.Item("oBtn1").Enabled = False" when the form mode is add or f
-
Best rgb and gamma settings for external monitor with mountain lion
Hi, I'm using an LG LED 22 inch monitor with my MBP mid 2010 via minidisplay to hdmi. on OS X side the settings have been default. On the LED side the settings , if set to preset RGB it tends to fade the whites a lot. when i set to user definied and
-
What is Operating System commands in Adapter Configuration??
Hi Frnds, When we will use Operating system commands Option in Adapter Configuration?? Regards, Raj
-
Hi friends, Actually my doubt concerns with resizing a flash movie when a browser resizes. The flash movie is a slide show. In flash I have scripted to resize the image using onResize event. Also it's working finely when opening on fla
-
OEM V2.2/will not discover database
Hello, I am using oracle 8i database in windows nt environment. When in OEM, the discovery services will see the node that database is loaded and running on, but will not discover the database. I can manually configure the database, but the config is