Solved

oracle example table for practice sql quries

Posted on 2012-03-22
10
654 Views
Last Modified: 2012-08-02
Hello Experts,

i am looking for oracle example table (not scott)  to practice oracle sql quires.  does any one have the scripts for tables along with records.
0
Comment
Question by:sk0227
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37754325
Why not SCOTT?

The newer standard schema is called HR.

There are several more available:
http://docs.oracle.com/cd/B12037_01/server.101/b10771/toc.htm
0
 
LVL 23

Expert Comment

by:David
ID: 37754585
Also, your local database will have default schemas for SYS, SYSTEM, etc.  
SELECT table_name, column_name from sys.dba_tab_cols for examples.
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 37755746
agree with both experts, why not SCOTT, do you have it already or what???

also let us know why are you in need of such thing, are you looking out for sample schemas??

if yes, then you can find few built in schemas in oracle itself, the scripts for those can be found under  $ORACLE_HOME/demo/schema.

More info about sample schemas and their descriptions can be found in docs

http://docs.oracle.com/cd/B28359_01/server.111/b28328/scripts.htm
http://docs.oracle.com/cd/B28359_01/server.111/b28328.pdf

or if you don't find the sample schemas in your oracle_home demo directory, you can download them from

http://www.oracle.com/technetwork/developer-tools/datamodeler/sample-models-scripts-224531.html
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37756767
wasimibm,

Aren't your links the same doc that I posted just the 11gR1 version?

I mean if we are going to just post all versions, here is the most recent, 11gR2:
http://docs.oracle.com/cd/E11882_01/server.112/e10831/toc.htm
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 37756998
slightwv, i saw the link and misinterpreted it in a wrong way, sorry for that..

yes, just now i had rechecked the link, i think they are pretty much the same except that the versions of the db are different
0
 
LVL 1

Expert Comment

by:tdthoa
ID: 37765531
Slightwv, that is scripts to create HR Schema include tables along with records from Oracle by Example (OBE) (http://www.oracle.com/technetwork/tutorials/index.html). Sorry, next time, I will don't forgot typing where I got it.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37765552
I am unable to see the scripts on the link you posted.  It appears you would ned to go clicking to locate them.  

Also there is a direct link from the same site above:
http://www.oracle.com/technetwork/developer-tools/datamodeler/sample-models-scripts-224531.html
0
 
LVL 1

Expert Comment

by:tdthoa
ID: 37765581
Slightwv, from  this link http://www.oracle.com/technetwork/tutorials/index.html, I typed hr_main to search box, then oracle show me this link http://search.oracle.com/search/search?start=1&search_p_main_operator=all&q=hr_main&group=Technology+Network. I got that scripts from sample-schema-scripts-2
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 37765598
Then you should have posted:

The sample scripts for the HR schema can be found at:
http://www.oracle.com/technetwork/testcontent/sample-schema-scripts-2-132773.zip

Basically what you posted was: Go to some search engine and look for it.

Please take the time to post complete, accurate and non-duplicate information in the future.  The doc links above already talk about how to locate the scripts and also includes more than just HR.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question