![Oracle培訓(xùn)手冊(cè)資料_第1頁](http://file4.renrendoc.com/view8/M01/2A/06/wKhkGWb8jH-ALc37AAAuBo4M5B4463.jpg)
![Oracle培訓(xùn)手冊(cè)資料_第2頁](http://file4.renrendoc.com/view8/M01/2A/06/wKhkGWb8jH-ALc37AAAuBo4M5B44632.jpg)
![Oracle培訓(xùn)手冊(cè)資料_第3頁](http://file4.renrendoc.com/view8/M01/2A/06/wKhkGWb8jH-ALc37AAAuBo4M5B44633.jpg)
![Oracle培訓(xùn)手冊(cè)資料_第4頁](http://file4.renrendoc.com/view8/M01/2A/06/wKhkGWb8jH-ALc37AAAuBo4M5B44634.jpg)
![Oracle培訓(xùn)手冊(cè)資料_第5頁](http://file4.renrendoc.com/view8/M01/2A/06/wKhkGWb8jH-ALc37AAAuBo4M5B44635.jpg)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Oracle培訓(xùn)手冊(cè)
書目
Oracle培訓(xùn)I手冊(cè)1
I.Oracle服務(wù)器安裝3
1.1.前提條件3
1.2.修改操作系統(tǒng)參數(shù)3
1.2.1.修改/etc/sysctl.conf文件3
1.2.2.修改/etc/security/limits.conf文件3
13安裝補(bǔ)丁包3
1.4.軟件安裝4
1.4.1.修改環(huán)境變量4
1.4.2.軟件安裝4
2.創(chuàng)建數(shù)據(jù)庫12
2.1.創(chuàng)建數(shù)據(jù)庫12
2.2.創(chuàng)建表空間18
2.3.創(chuàng)建用戶18
2.4.維護(hù)臨時(shí)表空間19
3.創(chuàng)建Schema20
3.1.創(chuàng)建表格20
3.2.創(chuàng)建視圖20
4,初始化數(shù)據(jù)導(dǎo)入21
4.1.公共數(shù)據(jù)導(dǎo)入21
4.2.用戶數(shù)據(jù)導(dǎo)入21
5.Oracle數(shù)據(jù)庫日常操作22
5.1.啟動(dòng)和關(guān)閉監(jiān)聽程序22
5.2.啟動(dòng)和關(guān)閉數(shù)據(jù)庫22
5.3.連接數(shù)據(jù)庫22
5.4.客戶端連接配置22
5.5.查看數(shù)據(jù)塊大小23
5.6.查看數(shù)據(jù)庫字符集23
5.7.導(dǎo)入導(dǎo)出數(shù)據(jù)23
1.Oracle服務(wù)器安裝
1.1.前提條件
I、在操作系統(tǒng)上創(chuàng)建oracle用戶和oinstall,dba組。
2^假如是linux操作系統(tǒng),檢查是否安裝了開發(fā)工具包“DevelepmentTools"、"Xsoftware
Development^LegacysoftwareDevelopment假如沒有請(qǐng)安裝。
3、查看/etc/hosts文件,確認(rèn)主機(jī)名和IP已經(jīng)設(shè)置。
4、將oracle安裝軟件和補(bǔ)丁包FTP到/homc/oracle/sctup書目下,并用下面吩咐解壓軟件:
zcatship_9204_linux_diskI.cpio.gz|cpio-idmv
zcatship_9204_linux_disk2.cpio.gz|cpio-idmv
zcatship_9204_linux_disk3.cpio.gz|cpio-idmv
注:以上操作可參照對(duì)應(yīng)的操作系統(tǒng)手冊(cè)。
1.2,修改操作系統(tǒng)參數(shù)
1.2.1.修改/etc/sysctl.conf文件
添加下面內(nèi)容:
kernel.shmmax=536870912(物理內(nèi)存一半)
kernel.shmmni=4096
kernel.shmall=2097152
kemel.sem=25032000100128
fs.file-max=65536
1.2.2.修改/etc/security/limits.conf文件
oraclesoftnofile65536
oraclehardnofile65536
oraclesoftnproc16384
oraclehardnproc16384
1.3.安裝補(bǔ)丁包
用root用戶依照下面依次安裝5個(gè)rpm包
openmotif21-
compat-li
14軟件安裝
L4.L修改環(huán)境變量
修改oracle用戶的.bash_profile文件,添加下面內(nèi)容:
exportORACLE_BASE=/usr/oraclc
exportORACLE_HOME=$ORACLE_BASE/product/9.2
exportORACLE_SID=safcdb
exportTHREADS_FLAG=native
exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
exportLD_ASSUME_KERNEL=
exportPATH=$PATH:$ORACLE_HOME/bin
1.4.2.軟件安裝
1、以oracle用戶登錄OS,進(jìn)入安裝文件所在書目,運(yùn)行下面吩咐
$.cd/home/oracle/setup/Disk1
$./runinstaller
2、按Next鍵
0InventoryLocation
InventoryLocation
Youarestartingyourfirstinstallationonthiscomputer.Aspartof
thisfirstinstall,youwillneedtospecifyabasedirectoryfor
installationfiles.
Anotherdirectorywillbeautomaticallysetupforper-productinstallationfiles.
Theper-produc^installationfilescanvaryinsize,dependingon:hecomplexity
oftheproductsyouinstall.Youshouldplanonanaverageofabout15OKBper
product.
Thebasedirectory:
*Containsthepermanentandper-productfilesinsubdirectories.
*Mustbewritablebyanyoneinstallingordeinstallingproductsonthis
computer.
Whatwouldyoulikeasthebasedirectory?
|/u$r/oracle/oralnventoryBrowse...i
Inventoryfileswillbein:/usr/oracle/oralnventory
Per-productfileswillbein:/usr/oracle/oralnventory/Components
HelpIOKCancel)
3、按OK鍵
OracleUniversalInstaller:UNIXGroupName
UNIXGroupName
YoucanspecifyaUNIXgroupnamewhichwillhavepermissiontoupdateOraclesoftwareon
thissystem.
Ifyouwantonlyroottohavepermission,leavethefieldblankandpress-Next-tocontinue
theinstall
UNIXGroupName:|Oin$tall|
4^輸入oinstalL按Next鍵
5、在另外一個(gè)窗口用root用戶執(zhí)行所提示腳本,按Continue鍵
6、按Next鍵
AvailableProducts
Selectaproducttoinstall.
?Oracle%Database.0
Installsanoptionalpre-configuredstarterdatabase,productoptions,managementtools,
networkingservices,utilitiesandbasicclientsoftwareforanOracledatabaseserver.
cOracle%Client.0
Installsenterprisemanagementtools,networkingservices,utilities,developmenttoolsand
precompilersandbasicclientsoftware
cOracle9iManagementandIntegration.0
Installsthemanagementserver,managementtools,OracleInternetDirectory,OracleIntegration
Server,networkingservices,utilitiesandbasicclientsoftware
cOracleClusterManager.0
OracleClusterManager,Release.0forLinuxIntel
7、按產(chǎn)品語言鍵
LanguageSelection
一I
Oracle9iDatabase.0
Pleaseselectthelanguagesyourproduct
Oracle9iDatabase.0willrunin.
AvailableLanguages:SelectedLanguages:
NorwegianEnglish
PolishSimplifiedChinese
Portuguese
Romanian
Russian
Slovak
Slovenian
Spanishb
Swedish
Thai《《I
TraditionalChines
HelpJOKCancel
8、選入簡(jiǎn)體中文,按OK鍵,進(jìn)入下一步
9、選擇企業(yè)版,按Next鍵
OracleUniversalInstaller:DatabaseConfiguration一
DatabaseConfiguration
Selectadatabasesuitedtoyourneeds.
rGeneralPurpose
Installsapre-configureddatabaseoptimizedforgeneralpurposeusage
cTransactionProcessing
Installsapre-configureddatabaseoptimizedfortransactionprocessing
cDataWarehouse
Installsapre-configureddatabaseoptimizedfordatawarehousing
CCustomized
Allowsyoutocreateacustomizeddatabase.Thisoptiontakeslongerthanthepre-configured
<6SoftwareOnly
“…TristalTssbYtwareonlyanddoesnotcreateadatabaseatthistime
10、選擇只安裝軟件,按Next鍵
Cracle.U川vergalJnaallefsSummi1Kl
Summary
Oracle9iDatabase.0
/GlobalSettings
-Source:/ho^;e/oracle/$etup/Disk1/stage/productsJar
-OracleHome:/usr/oracle/product/9.2(OUIHome)
1-InstallationType:EnterpriseEdition
mProductLanguages
English
tSimplifiedChinese
6SpaceRequirements
L/Required2.63GB(includes91MBtemporary):Available46.O1GB
&NewInstallations(200products)
-AdvancedQueueing(AQ)API9.2.0.40
—AdvancedReplication.0
-AgentRequiredSupportFiles.0
-ApacheConfigurationforOracleJavaServerPages.0
-ApacheConfigurationforOracleXMLDeveloper'sKit.0
-Anxfh。IServ11000a
ExitUHelpnstalledProducts..Previous劇Install
ORACLG
H、按Install鍵
12、安裝過程中,將彈出下面窗口,依據(jù)提示執(zhí)行root.sh文件后,按OK鍵
13、按Exi1鍵,完成軟件安裝
2.創(chuàng)建數(shù)據(jù)庫
2.1,創(chuàng)建數(shù)據(jù)庫
1、運(yùn)行(ibca
$cd$ORACLE_HOME/bin
$./dbca
DatabaseConfigurationAssistant:Welcome
WelcometoDatabaseConfigurationAssistantforOracledatabase.
TheDatabaseConfigurationAssistantenablesyoutocreateadatabase,configure
databaseoptionsinanexistingdatabase,deleteadatabase,andmanagedatabase
templates.
Cancel
2、按Next鍵
3、選擇"createadatabase”項(xiàng),按Next鍵
4、選擇ageneralpurpose項(xiàng),按Next鍵
5、全局?jǐn)?shù)據(jù)庫名和SID都輸入safedb,按Next鍵
DatabaseConfigurationAssistant,Step4of7:DatabaseConnectionOptions
Selectthemodeinwhichyouwantyourdatabasetooperatebydefault:
rDedicatedServerMode
Foreachclientconnectionthedatabasewillallocatearesourcededicatedtoserving
onlythatclient.Usethismodewhenthenumberoftotalclientconnectionsis
expectedtobesmallorwhenclientswillbemakingpersistentlong-running
requeststothedatabase.
?SharedSer/erMode
Severalclentconnectionsshareadatabase-allocatedpoolofresources.Usethis
modewhenmorethanasmallnumberofusersneedtoconnecttothedatabase
simultaneouslywhileefficientlyutilizingsystemresources.TheOracleshared
serverfeaturewillbeenabled.
EditSharedConnectionsParameters..,j
CanceliHelp&BackNext?)Finishf
6、選擇aSharedServerModew項(xiàng),按Next鍵
7、輸入合適的數(shù)據(jù)庫內(nèi)存參數(shù),這些值總合不要超出實(shí)際系統(tǒng)的共享內(nèi)存,按“Character
Sets”頁。(內(nèi)存參數(shù)可以參照上圖的值,以后依據(jù)實(shí)際系統(tǒng)配置可以調(diào)整)
注:數(shù)據(jù)庫字符集選ZHS16GBK
8、選“choosefromthelistofcharactersets”項(xiàng),選擇“ZHS32GBi8030”字符集,按“Archive”
頁
9、選中"ArchiveLogMode”和aAutomaticarchivalw項(xiàng),按Next鍵
10、按Next鍵
11、按Finish鍵
Summary
Foll^wi
ngoperation(s)willbeperformed:
Creationofdatabasewithdbname"safedb".
Usethisdatabasetemplatetocreateapre-configureddatabaseoptimizedforgeneral
purposeusage.
CommonOptions
OptionNameSelected
ExampleSchemastrue
OracleDataMiningtrue
OracleIntermediatrue
OracleJVMtrue
OracleLabelSecurityfalse
OracleOLAPtrue
OracleSpatialtrue
OracleTexttrue
OracleUltraSearchtrue
OracleXMLDBtrue
▼
SaveasanHTMLfile.
ICanceljHelp
12、按OK鍵
DatabaseConfigurationAssistant,Step7of7:CreationOptions
Selectthefollowingdatabasecreationoptions:
CancelHelp《BackHext:finish
13、數(shù)據(jù)庫創(chuàng)建完成后,有對(duì)話框彈出,你可以修改SYS和SYSTEM用戶缺省密碼。
2.2.創(chuàng)建表空間
$sqlplussystem/manager@safedb
SQL>createtablespacesafedatadatafile7usr/oracle/oradata/safedb/safedata1.dbfsize500M
segmentspacemanagementauto;
建議:數(shù)據(jù)表空間大小數(shù)據(jù)硬盤容量的80%,假如操作系統(tǒng)對(duì)文件大小有限制,可以在表
空間中放置多個(gè)數(shù)據(jù)文件即可。
23創(chuàng)建用戶
新增用戶
$sqlplussystem/manager@safedb
SQL>createusershenbaoidentifiedby"shenbao"defaulttablespacesafedata;
授權(quán)
SQL>grantconnecttoshenbao;
SQL>grantcreatetabletoshenbao;
SQL>grantcreateviewtoshenbao;
SQL>grantunlimitedtablespacetoshenbao;
2.4.維護(hù)臨時(shí)表空間
$sqlplussystem/manager@safedb
SQL>altertablespacetempaddtempfile7usr/oracle/oradata/safedb/temp02.dbfsize2000M;
建議:臨時(shí)表空間大?。?G
3.創(chuàng)建Schema
3.1,創(chuàng)建表格
$sqlplusshenbao/shenbao@safedb
SQL>spool/home/oracle/createTable.Iog;
SQL>@/home/oracle/crcatcTablc.sql;
SQL>spooloff';
注:
1)createTable.sql是建表腳本,createTable.log是腳本執(zhí)行中產(chǎn)生的日志文件。
2)通過日志文件查看腳本是否執(zhí)行正常。
3)假如在unix或者linux執(zhí)行該腳本,須要將該腳本用UtralEdit工具進(jìn)行unix文件格
式轉(zhuǎn)換。(用UtralEdil打開該腳本,用菜單File—)Conversions—)DOStoUNIX轉(zhuǎn)
換,保存文件即可)
32創(chuàng)建視圖
$sqlplusshenbao/shenbao@safedb
SQL>spooi/home/oracle/createViev/.log;
SQL>@/home/oracle/createView.sql;
SQL>spooloff;
注:
1)crcatcVicw.sql是建視圖腳本,crcatcVicw.log足腳本執(zhí)行中產(chǎn)生的日志文件。
2)通過日志文件查看腳本是否執(zhí)行正常。
3)假如在unix或者linux執(zhí)行該腳本,須要將該腳本用UtralEdit工具進(jìn)行unix文件格
式轉(zhuǎn)換。(用UtralEdit打開該腳本,用菜單File—)Conversions—)DOStoUNIX轉(zhuǎn)
換,保存文件即可)
4.初始化數(shù)據(jù)導(dǎo)入
4.1.公共數(shù)據(jù)導(dǎo)入
$sqlplussh
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度航空航天零部件加工與供應(yīng)合同
- 2025年度建筑土方工程臨時(shí)設(shè)施搭建合同
- 環(huán)境影響評(píng)估在房地產(chǎn)開發(fā)中的作用
- 物流行業(yè)未來商業(yè)模式的創(chuàng)新與人才需求
- 2025年度化妝品生產(chǎn)設(shè)備租賃合同
- 現(xiàn)代辦公環(huán)境下的簡(jiǎn)約衣柜解決方案
- 生物醫(yī)藥產(chǎn)業(yè)的未來趨勢(shì)與投資機(jī)會(huì)
- 現(xiàn)代商業(yè)環(huán)境下網(wǎng)絡(luò)零售平臺(tái)營(yíng)銷新思路
- 現(xiàn)代人重塑精神世界的助力-談紅色教育
- 2025年度智慧農(nóng)業(yè)物聯(lián)網(wǎng)解決方案合同-@-9
- 必修3《政治與法治》 選擇題專練50題 含解析-備戰(zhàn)2025年高考政治考試易錯(cuò)題(新高考專用)
- 二零二五版電商企業(yè)兼職財(cái)務(wù)顧問雇用協(xié)議3篇
- 課題申報(bào)參考:流視角下社區(qū)生活圈的適老化評(píng)價(jià)與空間優(yōu)化研究-以沈陽市為例
- 《openEuler操作系統(tǒng)》考試復(fù)習(xí)題庫(含答案)
- 17J008擋土墻(重力式、衡重式、懸臂式)圖示圖集
- 《中南大學(xué)模板》課件
- 廣東省深圳市南山區(qū)2024-2025學(xué)年第一學(xué)期期末考試九年級(jí)英語試卷(含答案)
- 2024-2025學(xué)年人教版生物八年級(jí)上冊(cè)期末綜合測(cè)試卷
- 中國(guó)經(jīng)濟(jì)轉(zhuǎn)型導(dǎo)論-政府與市場(chǎng)的關(guān)系課件
- 新視野大學(xué)英語讀寫教程 第三版 Book 2 unit 8 教案 講稿
- 村務(wù)公開表格
評(píng)論
0/150
提交評(píng)論