精品日韩在线,日韩精品福利一区二区三区,日韩午夜黄色,国产日韩欧美高清免费

始創(chuàng)于2000年 股票代碼:831685
咨詢熱線:0371-60135900 注冊有禮 登錄
  • 掛牌上市企業(yè)
  • 60秒人工響應
  • 99.99%連通率
  • 7*24h人工
  • 故障100倍補償
全部產(chǎn)品
您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

Oracle數(shù)據(jù)庫在Linux 中的安裝與啟動動

發(fā)布時間:  2012/8/18 17:41:12

到目前為止,Oracle數(shù)據(jù)庫算是我在linux安裝的眾多軟件中最難安裝的一個。值得慶幸的是,就在剛剛我成功的把oracle database安裝到了linux os。現(xiàn)在回想起來裝個oracle也并非難事。或許自己將來還是安裝oracle,下面就簡要回憶一下我的安裝過程,用來提示將來的自己和第一次要在linux上安裝oracle的朋友。

首先看一下我的軟件環(huán)境:

-
 
HOST:Ubuntu 10.04(lucid),呵呵,我并不是要把db裝到這個里面,我喜歡把這些軟件裝到vm(virtual machine)中。這么做有很多好處,當然也有一點壞處就是系統(tǒng)資源會增加一點點,但是這些增加的消耗是完全值得的。vm software我選用的是vbox(一款很不錯的open-soruce軟件)

GUEST(vm):CentOS 5.5。眾所周知,linux有很多發(fā)行版,我們必須要選擇一個發(fā)行版去安裝Oracle,這個時候最好是選擇oracle安裝手冊中提到那幾個發(fā)行版,比如Asianux 、 Oracle Enterprise Linux 、Red Hat Enterprise Linux、 SUSE Linux Enterprise Server 等。因為這樣安裝會簡單很多。

DATABASE:Oracle Database 11g Release 2

下面是安裝steps:

Step1. 創(chuàng)建用戶和組(#表示以root身份,$表示以普通用戶身份)

下面是Oracle 數(shù)據(jù)庫文檔中的一段話,依照下面的話去創(chuàng)建或修改DB所需的用戶和組:

The following local operating system groups and users are required if you are installing Oracle Database:

*The Oracle Inventory group (typically, oinstall)

*The OSDBA group (typically, dba)

*The Oracle software owner (typically, oracle)

*The OSOPER group (optional. Typically, oper)

To determine whether these groups and users already exist, and if necessary, to create them, follow these steps:

1.To determine whether the oinstall group exists, enter the following command:

# more /etc/oraInst.loc

If the output of this command shows the oinstall group name, then the group already exists.

If the oraInst.loc file exists, then the output from this command is similar to the following:

inventory_loc=/u01/app/oraInventory

inst_group=oinstall

The inst_group parameter shows the name of the Oracle Inventory group, oinstall.

2.To determine whether the dba group exists, enter the following command:

# grep dba /etc/group

If the output from this commands shows the dba group name, then the group already exists.

3.If necessary, enter the following commands to create the oinstall and dba groups:

# /usr/sbin/groupadd oinstall

# /usr/sbin/groupadd dba

4.

To determine whether the Oracle user exists and belongs to the correct groups, enter the following command:

# id Oracle

If the Oracle user exists, then this command displays information about the groups to which the user belongs. The output should be similar to the following, indicating that oinstall is the primary group and dba is a secondary group:

uid=440(Oracle) gid=200(oinstall) groups=201(dba),202(oper)

5.If necessary, complete one of the following actions:

*If the Oracle user exists, but its primary group is not oinstall or it is not a member of the dba group, then enter the following command:

# /usr/sbin/usermod -g oinstall -G dba Oracle

*If the Oracle user does not exist, enter the following command to create it:

# /usr/sbin/useradd -g oinstall -G dba Oracle

This command creates the Oracle user and specifies oinstall as the primary group and dba as the secondary group.

6.Enter the following command to set the password of the Oracle user:

# passwd Oracle

Step2. 進入db的解壓目錄執(zhí)行runInstaller,下面是我當時的操作:

[Oracle@DBServer ~]$ ls

Desktop linux_11gR2_database

[Oracle@DBServer ~]$ cd linux_11gR2_database/

[Oracle@DBServer linux_11gR2_database]$ ls

doc install response rpm runInstaller sshsetup stage welcome.html

[Oracle@DBServer linux_11gR2_database]$ ./runInstaller

接下來就是完全的圖形界面操作了,這里面就沒什么好說的了。

Step3. 安裝系統(tǒng)缺失軟件與修改系統(tǒng)配置參數(shù)

關(guān)于這一步你可以按照安裝文檔里的要求那樣做。但是有一個更簡單的辦法,安裝程序會檢查系統(tǒng)配置參數(shù),當有參數(shù)不滿足配置的時候,你要做的就是修復并重新檢查,這個時候安裝程序會生成一個修復腳本并提示你腳本所在的位置及你要如何操作。對于系統(tǒng)缺少的軟件,修復腳本不會安裝,需要自己手動安裝。當所有的軟件配置參數(shù)都滿足的時候,你就可以一直next而不會再遇到什么困難了。

當初我安裝的時候選擇的是僅安裝數(shù)據(jù)庫軟件,所以我現(xiàn)在需要創(chuàng)建一個監(jiān)聽和數(shù)據(jù)庫。下面的Oracle_HOME需要你在配置文件(~/.bash_profile)中手動設置,當然最好是把$ORACLE_HOME/bin加入到PATH中去,這樣的話我們就可以在任何地方直接輸入命令了

[Oracle@DBServer ~]$ cd $ORACLE_HOME

[Oracle@DBServer dbhome_1]$ pwd

/home/Oracle/app/oracle/product/11.2.0/dbhome_1

[Oracle@DBServer dbhome_1]$ cd bin/

[Oracle@DBServer bin]$ netca

注:netca配置監(jiān)聽,圖形界面

[Oracle@DBServer bin]$ dbca

注:dbca 創(chuàng)建數(shù)據(jù)庫,圖形界面

上述step執(zhí)行完后,數(shù)據(jù)庫就可以使用了


下面討論如何啟動和關(guān)閉數(shù)據(jù)庫,我們只討論一種最簡單的方法:

默認情況下,linux中的Oracle是不會隨系統(tǒng)啟動而啟動的。當我們reboot系統(tǒng)的時候,可以用如下steps啟動我們的db:

[Oracle@DBServer ~]$ lsnrctl start注:啟動監(jiān)聽

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 10-DEC-2010 11:05:02

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Starting /home/Oracle/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production

System parameter file is /home/Oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

Log messages written to /home/Oracle/app/oracle/diag/tnslsnr/DBServer/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DBServer)(PORT=1521)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=DBServer)(PORT=2484)))

 


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DBServer)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date 10-DEC-2010 11:05:02

Uptime 0 days 0 hr. 0 min. 0 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /home/Oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

Listener Log File /home/Oracle/app/oracle/diag/tnslsnr/DBServer/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DBServer)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=DBServer)(PORT=2484)))

The listener supports no services

The command completed successfully

[Oracle@DBServer ~]$ dbstart注:啟動數(shù)據(jù)庫

Oracle_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener

Usage: /home/Oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart ORACLE_HOME

Processing Database instance "orcl": log file /home/Oracle/app/oracle/product/11.2.0/dbhome_1/startup.log

以下steps關(guān)閉db:

[Oracle@DBServer ~]$ dbshut注:關(guān)閉數(shù)據(jù)庫

Oracle_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener

Usage: /home/Oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbshut ORACLE_HOME

Processing Database instance "orcl": log file /home/Oracle/app/oracle/product/11.2.0/dbhome_1/shutdown.log

[Oracle@DBServer ~]$ lsnrctl stop注:關(guān)閉監(jiān)聽

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 10-DEC-2010 11:06:50

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DBServer)(PORT=1521)))

The command completed successfully

[Oracle@DBServer ~]$

不幸的是如果是第一次這么做,我們可能會失敗,原因我們可以在dbstart腳本中發(fā)現(xiàn)。我把有用的內(nèi)容摘錄如下:

# This script will start all databases listed in the oratab file

# whose third field is a "Y". If the third field is set to "Y" and

# there is no Oracle_SID for an entry (the first field is a *),

# then this script will ignore that entry.

看完這段內(nèi)容我想你已經(jīng)明白該如何做了,沒錯修改/etc/oratab中的內(nèi)容:

orcl:/home/Oracle/app/oracle/product/11.2.0/dbhome_1:N

把其中的‘N’改為‘Y’

到此數(shù)據(jù)庫啟動的問題都解決了,以后我們可以放心使用我們的db了。GOOK LUCK


本文出自:億恩科技【www.zuiquanben.com】

服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

  • 您可能在找
  • 億恩北京公司:
  • 經(jīng)營性ICP/ISP證:京B2-20150015
  • 億恩鄭州公司:
  • 經(jīng)營性ICP/ISP/IDC證:豫B1-20183354
  • 億恩南昌公司:
  • 經(jīng)營性ICP/ISP證:贛B2-20080012
  • 服務器/云主機 24小時售后服務電話:0371-60135900
  • 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
  • 網(wǎng)絡版權(quán)侵權(quán)舉報電話:0371-60135995
  • 警情提示:注意防范電信網(wǎng)絡詐騙
  • 專注服務器托管17年
    掃掃關(guān)注-微信公眾號
    0371-60135900
    Copyright© 1999-2026 ENKJ All Rights Reserved 地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師  B1-20183354   京公網(wǎng)安備41019702002023號 
      0
     
     
     
     

    0371-60135900
    7*24小時客服服務熱線

     
     
    精品日韩在线,日韩精品福利一区二区三区,日韩午夜黄色,国产日韩欧美高清免费
    高清在线一区| 久久国产高清| 亚洲欧洲日韩| 日韩精品一卡| 首页国产精品| 日韩一区三区| 久久天堂av| 欧美日韩黑人| 欧美日韩视频| 视频一区中文字幕| 亚洲乱码视频| 日本成人在线不卡视频| 国产欧美日韩精品一区二区三区| 欧美亚洲三级| 91欧美日韩| 在线看片不卡| 日本少妇一区二区| 精品精品国产三级a∨在线| 国产精品夜夜夜| 国产精品99精品一区二区三区∴ | 免费看一区二区三区| 国产一区二区三区精品在线观看| a天堂资源在线| 男女激情视频一区| 精品少妇一区| 久久xxxx| 久久精品国产福利| 亚洲视频电影在线| 国产91在线精品| 成人日韩在线| 亚洲精品麻豆| 午夜欧美巨大性欧美巨大| 久久香蕉精品| 成人午夜网址| 夜夜嗨一区二区| 精品一区二区三区中文字幕视频| 亚洲婷婷免费| 精品日韩在线| 亚洲精品少妇| 91精品蜜臀一区二区三区在线| 日韩高清一区二区| 精品丝袜在线| 精品国产欧美日韩| 日韩欧美中文字幕一区二区三区| 国产一区三区在线播放| 欧美中文日韩| 激情视频一区二区三区| 国产一区二区三区不卡视频网站| 亚洲欧美日韩在线观看a三区| 国产成人精品免费视| 欧美亚洲网站| 天堂av一区| 亚洲精品影视| 亚洲人成亚洲精品| 亚洲免费观看| 欧美在线影院| 精品三级久久| 日本不良网站在线观看| 欧美激情 亚洲a∨综合| 亚洲美女久久| 午夜一区在线| 99视频精品| 丝袜美腿亚洲一区| 久久午夜精品| 视频一区中文字幕精品| 日韩在线电影| 欧美偷窥清纯综合图区| 亚洲精品在线国产| 亚洲精品亚洲人成在线观看| 国产精品日本| 麻豆久久精品| 中文字幕一区二区精品区| 日本免费一区二区视频| 国产欧美日韩精品一区二区免费| 国产精品日韩| 三级在线观看一区二区| 亚州av日韩av| 国产免费av一区二区三区| 乱一区二区av| 久久黄色影院| 视频一区在线视频| 国产亚洲欧美日韩精品一区二区三区| 欧美影院视频| 国产成人精品一区二区免费看京| 97精品97| 最新国产拍偷乱拍精品| 日本免费在线视频不卡一不卡二| 日本不卡视频一二三区| 精品国内亚洲2022精品成人| 国语精品一区| 国产亚洲毛片在线| 国产精品亚洲欧美| 亚洲www啪成人一区二区| 丝瓜av网站精品一区二区| 国产亚洲欧美日韩在线观看一区二区| 久久不见久久见中文字幕免费| 最近高清中文在线字幕在线观看1| 欧美在线影院| 精品一区二区三区中文字幕视频 | 亚洲综合五月| 久久一区亚洲| 中文精品电影| 超级白嫩亚洲国产第一| 亚洲精品美女| 欧美综合另类| 精品网站999| 亚洲精品自拍| 欧美成人午夜| 久久久久久婷| 日韩精品亚洲专区在线观看| 日韩免费福利视频| 国产极品模特精品一二 | 亚洲1区在线| 欧美成人基地| 日韩精品三级| 激情综合网五月| 精品少妇av| 久久中文精品| 美女久久99| 国产伦精品一区二区三区视频| 丝袜美腿成人在线| 亚洲大片在线| 久久精品免费一区二区三区| 久久久久久久欧美精品| 午夜欧美在线| 亚洲三级欧美| 久久亚洲黄色| 精品免费视频| 久久久久久色| 日韩成人精品一区二区三区| 亚洲国产成人精品女人| 日韩一区自拍| 欧美日韩精品免费观看视欧美高清免费大片 | 欧美a一区二区| 国产精品成人一区二区网站软件| 日韩精品一区二区三区中文字幕| 亚洲乱码视频| 日韩不卡一区二区三区| 亚洲啊v在线免费视频| 中文字幕一区二区三区四区久久 | 日精品一区二区三区| 日韩中文一区二区| 国产精品第一| 国产日韩一区二区三区在线| 欧美1区二区| 91精品国产自产在线观看永久∴ | 久久精品国产大片免费观看| 欧美日韩精品一本二本三本| 国产亚洲欧洲| 91成人小视频| 97精品国产| 亚洲女同中文字幕| 奇米狠狠一区二区三区| 欧美极品中文字幕| 国产在线观看www| 国产视频亚洲| 亚洲日本久久| 久久超级碰碰| 久久久久国产精品一区二区| 不卡在线一区| 国产精品黄色片| 亚洲一级在线| 成人在线观看免费视频| 狠狠久久婷婷| 国产日产一区| 影视先锋久久| 欧美黄色一区| 久热综合在线亚洲精品| 久久久国产精品入口麻豆| av高清一区| 国产精品久久久久久av公交车| 国产va在线视频| 蜜臀av在线播放一区二区三区| 成人在线视频区| 日韩精品一区二区三区中文在线| 日韩欧美视频专区| 国产亚洲高清在线观看| 亚洲电影在线一区二区三区| 久久免费视频66| 亚洲日韩视频| 亚洲激情不卡| 久久人人精品| 国产传媒av在线| 亚洲18在线| 在线日韩中文| 国产精品精品国产一区二区| 久热精品在线| 亚洲福利专区| 久久精品二区三区| 日韩av在线播放网址| 国产精品久久久久久模特| 综合国产精品| 日韩av网站在线免费观看| 国精品一区二区三区| av资源中文在线| 97精品国产福利一区二区三区| 精品一区二区男人吃奶| 精品免费视频| 福利一区在线| 肉色欧美久久久久久久免费看|