{"id":99,"date":"2017-07-26T14:24:30","date_gmt":"2017-07-26T07:24:30","guid":{"rendered":"https:\/\/oracletutorial.com\/?page_id=99"},"modified":"2025-05-31T05:31:24","modified_gmt":"2025-05-31T12:31:24","slug":"oracle-sample-database","status":"publish","type":"page","link":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/","title":{"rendered":"Oracle Sample Database"},"content":{"rendered":"\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\"><strong>Summary<\/strong>: This tutorial introduces you to an Oracle sample database and shows you how to load it into the Oracle Database Server.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-the-ot-oracle-sample-database'>Introduction to the OT Oracle sample database <a href=\"#introduction-to-the-ot-oracle-sample-database\" class=\"anchor\" id=\"introduction-to-the-ot-oracle-sample-database\" title=\"Anchor for Introduction to the OT Oracle sample database\">#<\/a><\/h2>\n\n\n\n<p>We provide you with an Oracle sample database named <strong>OT<\/strong>, which is based on a <strong>global fictitious company<\/strong> that sells computer hardware, including storage, motherboards, RAM, video cards, and CPUs.<\/p>\n\n\n\n<p>The company maintains product information, including name, description, standard cost, list price, and product line.<\/p>\n\n\n\n<p>It also tracks the inventory information for all products, including warehouses where products are available.<\/p>\n\n\n\n<p>Since the company operates globally, it maintains warehouses in various locations worldwide.<\/p>\n\n\n\n<p>The company maintains a comprehensive record of all customer information, including name, address, and website. Each customer has at least one dedicated contact person with detailed information, including their name, email address, and phone number.<\/p>\n\n\n\n<p>The company also places a credit limit on each customer to limit the amount that the customer can owe.<\/p>\n\n\n\n<p>Whenever a customer issues a purchase order, a sales order is created in the database with the pending status. When the company ships the order, the order status updates to &#8216;shipped&#8217;. If the customer cancels an order, the order status is updated to canceled.<\/p>\n\n\n\n<p>In addition to sales information, the database includes employee data with detailed information, such as name, email, phone, job title, manager, and hire date.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='oracle-sample-database-diagram'>Oracle sample database diagram <a href=\"#oracle-sample-database-diagram\" class=\"anchor\" id=\"oracle-sample-database-diagram\" title=\"Anchor for Oracle sample database diagram\">#<\/a><\/h2>\n\n\n\n<p>The following picture shows the database diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"677\" height=\"740\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database.png\" alt=\"Oracle Sample Database\" class=\"wp-image-104\" title=\"Oracle Sample Database\" srcset=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database.png 677w, https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database-274x300.png 274w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table responsive\"><table><thead><tr><th>Table Names<\/th><th>Description<\/th><th>Records<\/th><\/tr><\/thead><tbody><tr><td>&nbsp;<code>CONTACTS<\/code><\/td><td>Contact person information of customers<\/td><td>319 records<\/td><\/tr><tr><td>&nbsp;<code>COUNTRIES<\/code><\/td><td>Country information<\/td><td>25&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>CUSTOMERS<\/code><\/td><td>Customer master<\/td><td>319&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>EMPLOYEES<\/code><\/td><td>Employee master<\/td><td>107&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>INVENTORIES<\/code><\/td><td>Inventory information of products<\/td><td>1112&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>LOCATIONS<\/code><\/td><td>Locations of warehouses<\/td><td>23&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>ORDERS<\/code><\/td><td>Order header information<\/td><td>105&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>ORDER_ITEMS<\/code><\/td><td>Order line items<\/td><td>665&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>PRODUCT_CATEGORIES<\/code><\/td><td>Product categories<\/td><td>5&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>PRODUCTS<\/code><\/td><td>Product information<\/td><td>288&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>REGIONS<\/code><\/td><td>Regions where the company operates<\/td><td>4&nbsp;records<\/td><\/tr><tr><td>&nbsp;<code>WAREHOUSES<\/code><\/td><td>Warehouse master<\/td><td>9&nbsp;records<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id='download-oracle-sample-database'>Download Oracle Sample Database <a href=\"#download-oracle-sample-database\" class=\"anchor\" id=\"download-oracle-sample-database\" title=\"Anchor for Download Oracle Sample Database\">#<\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/04\/oracle_sample_database.zip\" target=\"_blank\" rel=\"noreferrer noopener\">You can download the Oracle Sample Database.<\/a><\/p>\n\n\n\n<p>After downloading the file, you need to extract it to a directory. In the zip file, you&#8217;ll find the <code>oracle_sample_database.sql<\/code> file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='loading-the-sample-database-using-sql-developer'>Loading the sample database using SQL Developer <a href=\"#loading-the-sample-database-using-sql-developer\" class=\"anchor\" id=\"loading-the-sample-database-using-sql-developer\" title=\"Anchor for Loading the sample database using SQL Developer\">#<\/a><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id='step-1-create-a-user'>Step 1. Create a User <a href=\"#step-1-create-a-user\" class=\"anchor\" id=\"step-1-create-a-user\" title=\"Anchor for Step 1. Create a User\">#<\/a><\/h3>\n\n\n\n<p>First, launch SQL Developer from your computer.<\/p>\n\n\n\n<p>Second, connect to the Oracle Database server using the <code>system<\/code> account:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"493\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/oracle-sample-database-connect-to-freepdb1-as-system-user.png\" alt=\"oracle sample database - connect to freepdb1 as system user\" class=\"wp-image-5554\" srcset=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/oracle-sample-database-connect-to-freepdb1-as-system-user.png 766w, https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/oracle-sample-database-connect-to-freepdb1-as-system-user-300x193.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/figure>\n\n\n\n<p>Third, run the following script to create a new user called <code>ot<\/code> and grant privileges:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-comment\">-- create new user<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">USER<\/span> ot <span class=\"hljs-keyword\">IDENTIFIED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">oracle<\/span>;\n\n<span class=\"hljs-comment\">-- grant privileges<\/span>\n<span class=\"hljs-keyword\">GRANT<\/span> <span class=\"hljs-keyword\">CONNECT<\/span>, <span class=\"hljs-keyword\">RESOURCE<\/span>, DBA <span class=\"hljs-keyword\">TO<\/span> ot;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"186\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/run-script-to-create-a-user.png\" alt=\"run script to create a user\" class=\"wp-image-5555\" srcset=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/run-script-to-create-a-user.png 460w, https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/run-script-to-create-a-user-300x121.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id='step-2-load-the-sample-database'>Step 2. Load the sample database <a href=\"#step-2-load-the-sample-database\" class=\"anchor\" id=\"step-2-load-the-sample-database\" title=\"Anchor for Step 2. Load the sample database\">#<\/a><\/h3>\n\n\n\n<p>First, create a new connection and use the new user (<code>ot<\/code>) and password (<code>oracle<\/code>) to connect to the Oracle Database Server:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"493\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/oracle-sample-database-connect-to-freepdb1-as-ot-user.png\" alt=\"oracle sample database - connect to freepdb1 as ot user\" class=\"wp-image-5556\" srcset=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/oracle-sample-database-connect-to-freepdb1-as-ot-user.png 766w, https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/05\/oracle-sample-database-connect-to-freepdb1-as-ot-user-300x193.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/figure>\n\n\n\n<p>Second, open the <code>oracle_sample_database.sql<\/code> file and click the <strong>Run Script<\/strong> to execute the statements to create tables and populating data:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"412\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/04\/oracle-sample-database-loading-data.png\" alt=\"oracle sample database - loading data\" class=\"wp-image-4451\" srcset=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/04\/oracle-sample-database-loading-data.png 668w, https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2025\/04\/oracle-sample-database-loading-data-300x185.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<p>Third, wait for the script to complete.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='oracle-sample-database-schema-script'>Oracle Sample Database Schema Script <a href=\"#oracle-sample-database-schema-script\" class=\"anchor\" id=\"oracle-sample-database-schema-script\" title=\"Anchor for Oracle Sample Database Schema Script\">#<\/a><\/h2>\n\n\n\n<p>The following statements create the database objects in the sample database.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> regions\n  (\n    region_id <span class=\"hljs-built_in\">NUMBER<\/span> <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span>\n    <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">5<\/span> PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    region_name <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">50<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>\n  );\n<span class=\"hljs-comment\">-- countries table<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> countries\n  (\n    country_id   <span class=\"hljs-built_in\">CHAR<\/span>( <span class=\"hljs-number\">2<\/span> ) PRIMARY <span class=\"hljs-keyword\">KEY<\/span>  ,\n    country_name <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">40<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    region_id    <span class=\"hljs-built_in\">NUMBER<\/span>                 , <span class=\"hljs-comment\">-- fk<\/span>\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_countries_regions <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( region_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> regions( region_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );\n\n<span class=\"hljs-comment\">-- location<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> locations\n  (\n    location_id <span class=\"hljs-built_in\">NUMBER<\/span> <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">24<\/span> \n                PRIMARY <span class=\"hljs-keyword\">KEY<\/span>       ,\n    address     <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    postal_code <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">20<\/span> )          ,\n    city        <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">50<\/span> )          ,\n    state       <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">50<\/span> )          ,\n    country_id  <span class=\"hljs-built_in\">CHAR<\/span>( <span class=\"hljs-number\">2<\/span> )               , <span class=\"hljs-comment\">-- fk<\/span>\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_locations_countries \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( country_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> countries( country_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );\n<span class=\"hljs-comment\">-- warehouses<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> warehouses\n  (\n    warehouse_id <span class=\"hljs-built_in\">NUMBER<\/span> \n                 <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">10<\/span> \n                 PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    warehouse_name <span class=\"hljs-built_in\">VARCHAR<\/span>( <span class=\"hljs-number\">255<\/span> ) ,\n    location_id    <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">12<\/span>, <span class=\"hljs-number\">0<\/span> ), <span class=\"hljs-comment\">-- fk<\/span>\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_warehouses_locations \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( location_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> locations( location_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );\n<span class=\"hljs-comment\">-- employees<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> employees\n  (\n    employee_id <span class=\"hljs-built_in\">NUMBER<\/span> \n                <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">108<\/span> \n                PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    first_name <span class=\"hljs-built_in\">VARCHAR<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    last_name  <span class=\"hljs-built_in\">VARCHAR<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    email      <span class=\"hljs-built_in\">VARCHAR<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    phone      <span class=\"hljs-built_in\">VARCHAR<\/span>( <span class=\"hljs-number\">50<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span> ,\n    hire_date  <span class=\"hljs-built_in\">DATE<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>          ,\n    manager_id <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">12<\/span>, <span class=\"hljs-number\">0<\/span> )        , <span class=\"hljs-comment\">-- fk<\/span>\n    job_title  <span class=\"hljs-built_in\">VARCHAR<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_employees_manager \n        <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( manager_id )\n        <span class=\"hljs-keyword\">REFERENCES<\/span> employees( employee_id )\n        <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );\n<span class=\"hljs-comment\">-- product category<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> product_categories\n  (\n    category_id <span class=\"hljs-built_in\">NUMBER<\/span> \n                <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">6<\/span> \n                PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    category_name <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>\n  );\n\n<span class=\"hljs-comment\">-- products table<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> products\n  (\n    product_id <span class=\"hljs-built_in\">NUMBER<\/span> \n               <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">289<\/span> \n               PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    product_name  <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    description   <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">2000<\/span> )        ,\n    standard_cost <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">9<\/span>, <span class=\"hljs-number\">2<\/span> )          ,\n    list_price    <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">9<\/span>, <span class=\"hljs-number\">2<\/span> )          ,\n    category_id   <span class=\"hljs-built_in\">NUMBER<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>         ,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_products_categories \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( category_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> product_categories( category_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );\n<span class=\"hljs-comment\">-- customers<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> customers\n  (\n    customer_id <span class=\"hljs-built_in\">NUMBER<\/span> \n                <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">320<\/span> \n                PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    <span class=\"hljs-keyword\">name<\/span>         <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    address      <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> )         ,\n    website      <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> )         ,\n    credit_limit <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">8<\/span>, <span class=\"hljs-number\">2<\/span> )\n  );\n<span class=\"hljs-comment\">-- contacts<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> contacts\n  (\n    contact_id <span class=\"hljs-built_in\">NUMBER<\/span> \n               <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">320<\/span> \n               PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    first_name  <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    last_name   <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    email       <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">255<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    phone       <span class=\"hljs-built_in\">VARCHAR2<\/span>( <span class=\"hljs-number\">20<\/span> )          ,\n    customer_id <span class=\"hljs-built_in\">NUMBER<\/span>                  ,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_contacts_customers \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( customer_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> customers( customer_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );\n<span class=\"hljs-comment\">-- orders table<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> orders\n  (\n    order_id <span class=\"hljs-built_in\">NUMBER<\/span> \n             <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">106<\/span> \n             PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    customer_id <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">6<\/span>, <span class=\"hljs-number\">0<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>, <span class=\"hljs-comment\">-- fk<\/span>\n    <span class=\"hljs-keyword\">status<\/span>      <span class=\"hljs-built_in\">VARCHAR<\/span>( <span class=\"hljs-number\">20<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span> ,\n    salesman_id <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">6<\/span>, <span class=\"hljs-number\">0<\/span> )         , <span class=\"hljs-comment\">-- fk<\/span>\n    order_date  <span class=\"hljs-built_in\">DATE<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>          ,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_orders_customers \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( customer_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> customers( customer_id )\n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_orders_employees \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( salesman_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> employees( employee_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">SET<\/span> <span class=\"hljs-literal\">NULL<\/span>\n  );\n<span class=\"hljs-comment\">-- order items<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> order_items\n  (\n    order_id   <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">12<\/span>, <span class=\"hljs-number\">0<\/span> )                                , <span class=\"hljs-comment\">-- fk<\/span>\n    item_id    <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">12<\/span>, <span class=\"hljs-number\">0<\/span> )                                ,\n    product_id <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">12<\/span>, <span class=\"hljs-number\">0<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>                       , <span class=\"hljs-comment\">-- fk<\/span>\n    quantity   <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">8<\/span>, <span class=\"hljs-number\">2<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>                        ,\n    unit_price <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">8<\/span>, <span class=\"hljs-number\">2<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>                        ,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> pk_order_items \n      PRIMARY <span class=\"hljs-keyword\">KEY<\/span>( order_id, item_id ),\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_order_items_products \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( product_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> products( product_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_order_items_orders \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( order_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> orders( order_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );\n<span class=\"hljs-comment\">-- inventories<\/span>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> inventories\n  (\n    product_id   <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">12<\/span>, <span class=\"hljs-number\">0<\/span> )        , <span class=\"hljs-comment\">-- fk<\/span>\n    warehouse_id <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">12<\/span>, <span class=\"hljs-number\">0<\/span> )        , <span class=\"hljs-comment\">-- fk<\/span>\n    quantity     <span class=\"hljs-built_in\">NUMBER<\/span>( <span class=\"hljs-number\">8<\/span>, <span class=\"hljs-number\">0<\/span> ) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> pk_inventories \n      PRIMARY <span class=\"hljs-keyword\">KEY<\/span>( product_id, warehouse_id ),\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_inventories_products \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( product_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> products( product_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>,\n    <span class=\"hljs-keyword\">CONSTRAINT<\/span> fk_inventories_warehouses \n      <span class=\"hljs-keyword\">FOREIGN<\/span> <span class=\"hljs-keyword\">KEY<\/span>( warehouse_id )\n      <span class=\"hljs-keyword\">REFERENCES<\/span> warehouses( warehouse_id ) \n      <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">CASCADE<\/span>\n  );<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"99\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/\"\n\t\t\t\tdata-post-title=\"Oracle Sample Database\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"99\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/\"\n\t\t\t\tdata-post-title=\"Oracle Sample Database\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial introduces you an Oracle sample database and provides you with the links for you to download.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":149,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-99","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Oracle Sample Database<\/title>\n<meta name=\"description\" content=\"This tutorial introduces you an Oracle sample database and shows you how to load it into an Oracle database for practicing\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle Sample Database\" \/>\n<meta property=\"og:description\" content=\"This tutorial introduces you an Oracle sample database and shows you how to load it into an Oracle database for practicing\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Oracle Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-31T12:31:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database.png\" \/>\n\t<meta property=\"og:image:width\" content=\"677\" \/>\n\t<meta property=\"og:image:height\" content=\"740\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/\",\"name\":\"Oracle Sample Database\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.oracletutorial.com\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/Oracle-Sample-Database.png\",\"datePublished\":\"2017-07-26T07:24:30+00:00\",\"dateModified\":\"2025-05-31T12:31:24+00:00\",\"description\":\"This tutorial introduces you an Oracle sample database and shows you how to load it into an Oracle database for practicing\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/Oracle-Sample-Database.png\",\"contentUrl\":\"https:\\\/\\\/www.oracletutorial.com\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/Oracle-Sample-Database.png\",\"width\":677,\"height\":740,\"caption\":\"Oracle Sample Database\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/oracle-sample-database\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting Started with Oracle Database\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/getting-started\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Oracle Sample Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/#website\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/\",\"name\":\"Oracle Tutorial\",\"description\":\"Oracle Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.oracletutorial.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle Sample Database","description":"This tutorial introduces you an Oracle sample database and shows you how to load it into an Oracle database for practicing","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/","og_locale":"en_US","og_type":"article","og_title":"Oracle Sample Database","og_description":"This tutorial introduces you an Oracle sample database and shows you how to load it into an Oracle database for practicing","og_url":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/","og_site_name":"Oracle Tutorial","article_modified_time":"2025-05-31T12:31:24+00:00","og_image":[{"width":677,"height":740,"url":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/","url":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/","name":"Oracle Sample Database","isPartOf":{"@id":"https:\/\/www.oracletutorial.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/#primaryimage"},"image":{"@id":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/#primaryimage"},"thumbnailUrl":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database.png","datePublished":"2017-07-26T07:24:30+00:00","dateModified":"2025-05-31T12:31:24+00:00","description":"This tutorial introduces you an Oracle sample database and shows you how to load it into an Oracle database for practicing","breadcrumb":{"@id":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/#primaryimage","url":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database.png","contentUrl":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2017\/07\/Oracle-Sample-Database.png","width":677,"height":740,"caption":"Oracle Sample Database"},{"@type":"BreadcrumbList","@id":"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.oracletutorial.com\/"},{"@type":"ListItem","position":2,"name":"Getting Started with Oracle Database","item":"https:\/\/www.oracletutorial.com\/getting-started\/"},{"@type":"ListItem","position":3,"name":"Oracle Sample Database"}]},{"@type":"WebSite","@id":"https:\/\/www.oracletutorial.com\/#website","url":"https:\/\/www.oracletutorial.com\/","name":"Oracle Tutorial","description":"Oracle Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oracletutorial.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/99\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/149"}],"wp:attachment":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/media?parent=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}