{"id":14063349,"url":"https://github.com/oracle-samples/db-sample-schemas","last_synced_at":"2025-02-26T12:42:03.461Z","repository":{"id":37407982,"uuid":"20668668","full_name":"oracle-samples/db-sample-schemas","owner":"oracle-samples","description":"Oracle Database Sample Schemas","archived":false,"fork":false,"pushed_at":"2024-03-28T16:35:49.000Z","size":43547,"stargazers_count":691,"open_issues_count":1,"forks_count":510,"subscribers_count":101,"default_branch":"main","last_synced_at":"2024-05-21T13:46:31.674Z","etag":null,"topics":["database","oracle","samples","sql"],"latest_commit_sha":null,"homepage":"https://www.oracle.com/pls/topic/lookup?ctx=dblatest\u0026id=COMSC","language":"PLSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-06-10T01:46:04.000Z","updated_at":"2024-05-21T02:39:50.000Z","dependencies_parsed_at":"2024-04-13T15:59:56.816Z","dependency_job_id":null,"html_url":"https://github.com/oracle-samples/db-sample-schemas","commit_stats":null,"previous_names":["oracle/db-sample-schemas"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fdb-sample-schemas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fdb-sample-schemas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fdb-sample-schemas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fdb-sample-schemas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-samples","download_url":"https://codeload.github.com/oracle-samples/db-sample-schemas/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240858536,"owners_count":19868997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","oracle","samples","sql"],"created_at":"2024-08-13T07:03:17.580Z","updated_at":"2025-02-26T12:42:02.996Z","avatar_url":"https://github.com/oracle-samples.png","language":"PLSQL","readme":"# Oracle Database Sample Schemas\n\n## 1. Introduction\n\nThe [Oracle Database Documentation](https://docs.oracle.com/en/database/oracle/oracle-database/index.html) and other resources use these sample schemas to demonstrate the capabilities of [Oracle Database](https://www.oracle.com/database/) and the SQL and PL/SQL languages. You can download and install these schemas in your database environments to learn about Oracle Database functionality or try the examples in the documentation. **These schemas are provided for free.**\n\nThe following schemas are included:\n\n- `HR`: Human Resources\n- `CO`: Customer Orders\n- `SH`: Sales History\n- `OE`: Order Entry (**archived**)\n- `PM`: Product Media (**archived**)\n\n### Archived schemas\n\nArchived schemas are provided for reference for examples in the documentation but are no longer actively maintained.\n\n## 2. Installation\n\n1. Go to the [latest (or appropriate) release of the sample schemas](https://github.com/oracle-samples/db-sample-schemas/releases) and download the `Source code (zip)` file.\n2. Extract the downloaded .zip file.\n3. Inside the sample schemas main directory, navigate to the sample schema directory that you want to install and run the `\u003cschema_name\u003e_install.sql` script. (**For more information about installing a schema, see the `README.md` file in the schema directory.**)\n4. Review the installation verification at the end of the installation or in the generated installation log file.\n\n#### Example\n\nTo install the `HR` schema, complete the following steps:\n\n1. `cd` into the `human_resources` folder.\n2. Connect to the target database with a privileged user.\n3. Run the `hr_install.sql` script and provide inputs for the prompts.\n\n```shell\ncd human_resources\nsql \u003csystem\u003e@\u003cconnect_string\u003e\n@hr_install.sql\n```\n\n## 3. Uninstalling the Sample Schemas\n\n1. Navigate to the sample schema folder that you want to uninstall and run the `\u003cschema_name\u003e_uninstall.sql` script. (**For more information about uninstalling a schema, see the `README.md` file in the schema directory.**)\n2. Check the output for any errors during the uninstallation process.\n\n## Contributing\n\nThis project is not accepting external contributions at this time. For bugs or enhancement requests, please file a GitHub issue unless it’s security related. When filing a bug remember that the better written the bug is, the more likely it is to be fixed. If you think you’ve found a security vulnerability, do not raise a GitHub issue and follow the instructions in our [security policy](./SECURITY.md).\n\n## Security\n\nPlease consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process.\n\n## License\n\n```\nCopyright (c) 2023 Oracle and/or its affiliates. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","funding_links":[],"categories":["PLSQL"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-samples%2Fdb-sample-schemas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-samples%2Fdb-sample-schemas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-samples%2Fdb-sample-schemas/lists"}