oracle 10g 建立HR使用者步驟
阿新 • • 發佈:2019-01-29
1.下載相關指令碼 :點選開啟連結
2.上傳到:$ORACLE_HOME/demo/schema/human_resources 目錄下
3.切換到指令碼目錄下執行指令碼 :@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: users specify temporary tablespace for HR as parameter 3: Enter value for 3: temp specify password for SYS as parameter 4: Enter value for 4: test specify log path as parameter 5: Enter value for 5: /u01/oracle/rdbms/log
4.查詢執行結果:
SQL> select table_name from user_tables;
TABLE_NAME
------------------------------
REGIONS
LOCATIONS
DEPARTMENTS
JOBS
EMPLOYEES
JOB_HISTORY
COUNTRIES
7 rows selected.
練習SQL 的HR Schema關係圖