Author Topic: How to install (individual) sample schemas in Oracle12C for Windows 10  (Read 3867 times)

Offline Alexx

  • Root Administrators
  • Hero Member
  • *****
  • Posts: 1466
    • Email
Mic tutorial despre cum să instalezi bazele de date exemplu, cele care lipsesc, în Oracle12C pentru Windows 10. Inițial Oracle12C îți instalează doar baza de date HR iar celelalte trebuie luate de pe internet.

How to install (individual) sample schemas in Oracle 12C for Windows 10. If you are studying Oracle 12C you might see that some sample databases might be missing from your installation but not from you manual and this short step-by-step tutorial will show you how can you install those missing sample schemas.

1. Descarcă script-ul de instalare de aici
1. Download sample schemas from here

Code: [Select]
https://github.com/oracle/db-sample-schemas/releases
2. Dezarhivează-le în următorul director unde ai instalar Oracle
2. Unpack the files in the following subfolder from your Oracle installation

Code: [Select]
C:\Oracle\...\demo\schema
3. Înlocuiește în fiecare fișier *.sql din subdirectorul selectat
3. Replace in every *.sql file from your subfolder script
Code: [Select]
__SUB__CWD__cu/with
Code: [Select]
C:/Oracle/.../demo/schema/Nu uita să inversezi slash-ul ... don't forget to use the other slash

4. Pornim o instanță CMD în interiorul directorului în care se afla baza de date pe care vrem să o instalăm
4. Start CMD inside the folder of the sample schema you want to install

5.Pornim sqlplus cu următoarea comandă
5.Start sqlplus with the following command
Quote
sqlplus / as sysdba

6. Conectăm baza de date la server
6. Connect pluggable database to container database
Quote
1. alter session set container = orclpdb;
2. alter pluggable database open;

7. Pornim scriptul de instalare, în cazul de față pentru OE (Order Entry)
7. We start the installation with the following command, for OE (Order Entry) schema
Code: [Select]
@oe_main.sql
8. Introducem următoarele valori când ni se cere
8. We specify the following parameters when asked
Code: [Select]
1. oe
2. users
3. temp
4. hr
5. oracle
6. C:/Oracle/.../demo/schema/order_entry/
7. C:/Oracle/.../demo/schema/log/
8. v3
9. localhost:1521/orclpdb


Sursa: https://ahmedfattah.com/2019/12/23/installing-oracle-sample-schemas-19-3/
http://www.rebellionrider.com/how-to-unlock-sh-schema-in-oracle-database/

Forum NiuTAB.com