Oracle11g的HR樣例用戶的建立

Oracle11g 的 HR 樣例用戶的建立

成都創(chuàng)新互聯(lián)專(zhuān)注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站制作、阿魯科爾沁網(wǎng)絡(luò)推廣、小程序設(shè)計(jì)、阿魯科爾沁網(wǎng)絡(luò)營(yíng)銷(xiāo)、阿魯科爾沁企業(yè)策劃、阿魯科爾沁品牌公關(guān)、搜索引擎seo、人物專(zhuān)訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);成都創(chuàng)新互聯(lián)為所有大學(xué)生創(chuàng)業(yè)者提供阿魯科爾沁建站搭建服務(wù),24小時(shí)服務(wù)熱線:18982081108,官方網(wǎng)址:muchs.cn

 

1、oracle 11g 中hr用戶需要單獨(dú)安裝,比較麻煩,書(shū)本上學(xué)習(xí)例子很多都是HR用戶的案例 ,下載后釋放到 $ORACLE_HOME/demo/schema/human_resources/目錄下。

 

Script Name      


  Description

hr_analz.sql

Collects statistics  on the tables in the schema.

hr_code.sql

Creates procedural  objects in the schema.

hr_comnt.sql

Creates comments  for each object in the schema.

hr_cre.sql

Creates  the HR objects.

hr_dn_c.sql

Adds  the distinguished name column used by Oracle Internet Directory to the employees and departments tables.

hr_dn_d.sql

Drops  the Oracle Internet Directory distinguished name column from employees and departments .

hr_drop.sql

Drops  the HR schema and all its objects.

hr_idx.sql

Creates  indexes on the HR tables.

hr_main.sql

Main  script for the HR schema; calls other  scripts.

hr_popul.sql

Populates the  objects.

 

 

2、[oracle@OCM]$sqlplus / as sysdba;

 

3、執(zhí)行$ORACLE_HOME/demo/schema/human_resources/下的hr_main.sql

SQL>@?/demo/schema/human_resources/hr_main.sql

注:

1、安裝前需要使用root用戶對(duì)human_resources下的文件執(zhí)行:chmod 777 *。

2、安裝前需要確定5個(gè)參數(shù)。分別是:

HR用戶的密碼:dbbocom;

默認(rèn)用戶空間:users。(必須是已經(jīng)存在的用戶空間)

臨時(shí)用戶空間:temp。(必須是已經(jīng)存在的用戶空間)

SYS用戶的密碼:dbbocom

日志文件存放的目錄:$ORACLE_HOME/RDBMS/log

 

HR人事管理數(shù)據(jù)庫(kù)下載地址:

http://down.51cto.com/data/1037205

或者:

http://download.csdn.net/detail/johnlxj/6689713

 

SQL> @?/demo/schema/human_resources/hr_main.sql

 

specify password for HR as parameter 1:

Enter value for 1: dbbocom

 

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: dbbocom

 

specify log path as parameter 5:

Enter value for 5: /home/oracle/app/oracle/

 

DROP USER hr CASCADE

          *

ERROR at line 1:

ORA-01918: user 'HR' does not exist

 

 

old   1: CREATE USER hr IDENTIFIED BY &pass

new   1: CREATE USER hr IDENTIFIED BY dbbocom

 

User created.

 

old   1: ALTER USER hr DEFAULT TABLESPACE &tbs

new   1: ALTER USER hr DEFAULT TABLESPACE users

old   2: QUOTA UNLIMITED ON &tbs

new   2: QUOTA UNLIMITED ON users

 

User altered.

 

old   1: ALTER USER hr TEMPORARY TABLESPACE &ttbs

new   1: ALTER USER hr TEMPORARY TABLESPACE temp

PL/SQL procedure successfully completed.

...

PL/SQL procedure successfully completed.

 

檢查是否正確安裝完畢

SQL> show user

USER is "HR"

新聞標(biāo)題:Oracle11g的HR樣例用戶的建立
分享地址:http://muchs.cn/article34/ipjsse.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供商城網(wǎng)站外貿(mào)網(wǎng)站建設(shè)、網(wǎng)站改版App開(kāi)發(fā)、網(wǎng)站設(shè)計(jì)公司、營(yíng)銷(xiāo)型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站建設(shè)