db2之入門實驗-創(chuàng)新互聯(lián)

  新單位接觸到db2,IBM的重量級數(shù)據(jù)庫產(chǎn)品,還是需要熟悉一下。老套路,先看基礎資料,了解基本概念之后,開始搭建實驗環(huán)境動手實驗。

網(wǎng)站建設哪家好,找創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁設計、網(wǎng)站建設、微信開發(fā)、重慶小程序開發(fā)公司、集團企業(yè)網(wǎng)站建設等服務項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了商州免費建站歡迎大家使用!

    首先使用virtual box 虛擬機準備一個centos7 64位的linux操作系統(tǒng)環(huán)境,然后到IBM的官網(wǎng)下載最新版本的90天使用版,下載地址:

    https://www-01.ibm.com/marketing/iwm/iwm/web/pick.do?source=swg-dm-db2trial&lang=zh_CN

    也許你看到這篇博客的時候地址已經(jīng)失效了,那就到官網(wǎng)db2的首頁(http://www-01.ibm.com/software/cn/data/db2/),應該有一個免費使用版下載的鏈接,應該都是一樣的。我下載的的時候的最新版本是v11.1 。

    下載軟件的同時,找到相應的安裝指導文檔,同樣的,到官網(wǎng)上看相關文檔,網(wǎng)址如下:

    http://www-01.ibm.com/support/docview.wss?rs=71&uid=swg27009474

    選擇看一下相應的主題,主要是db2版本新特性,安裝條件,不同的安裝方法,針對不同操作系統(tǒng)的安裝方法等等,找到對應的linux 64位的安裝文檔。我看的是這一篇:

Installing DB2 servers using the DB2 Setup wizard (Linux and UNIX)

  Version 11.1.0  Version 10.5.0  Version 10.1.0  Version 9.7.0  Version 9.5.0 

    安裝文件有2個G,我不想將這么大的文件傳來傳去,我用ultraISO將安裝文件制作成鏡像ISO文件,附帶說一下,當時安裝的ultraISO是使用版9.6.5版本,到網(wǎng)上找了一個注冊碼激活,簡體中文版注冊碼: 用戶名:王濤 注冊碼:7C81-1689-4046-626F  ,在這里謝謝這位好人。注冊過后,ultraISO才能生成大于300M的內(nèi)容。將ISO鏡像文件掛載到虛擬機上,掛載后在虛擬機上的路徑是/run/media/root/MYCD/  直接進去看看。對了,沉醉了一下命令行,這個安裝應該是圖形安裝方式,因此,還是直接到虛擬機上面的圖形界面,在桌面上命令窗口(和windows操作一樣咯,什么?沒有圖形界面,對不起,那就請重新安裝centos桌面環(huán)境  ),將安裝文件解壓到系統(tǒng)的一個目錄中(tar xvf product.tar ),比如 /software  ,然后進入到安裝目錄,找到  db2setup文件,執(zhí)行: ./db2setup

    彈出了一個安裝界面,選擇NEW INSTALL,然后彈出下面的界面:

db2 之 入門實驗

    嗯,我就選擇第一個,單擊NEXT:

db2 之 入門實驗

    雖然第一次安裝,還是裝一下B,多了解一些安裝特性,選擇Custom,不要忘了勾選同意IBM terms,單擊NEXT:

db2 之 入門實驗

    上面這一步,可以看到詳細的特性選項,我沒有更改,直接下一步NEXT:

db2 之 入門實驗

    上面這一步,選擇增加了簡體中文和繁體中文(因為項目業(yè)主是臺灣人,估計要用繁體),下一步NEXT:

db2 之 入門實驗

    上面這一步,不更改,下一步NEXT:

db2 之 入門實驗

    上面這一步是建安裝用戶和安裝目錄,選擇默認的,生產(chǎn)環(huán)境需要根據(jù)規(guī)劃來更改相應的參數(shù),單擊NEXT:

db2 之 入門實驗

    上面選擇默認,是分區(qū)啊什么的,回頭再看相關概念,單擊NEXT:

db2 之 入門實驗

    上面是確定instance 用戶,選擇默認,生產(chǎn)環(huán)境需要根據(jù)規(guī)劃來更改相應的參數(shù),單擊NEXT:

db2 之 入門實驗

    上面是確定fenced 用戶,選擇默認,生產(chǎn)環(huán)境需要根據(jù)規(guī)劃來更改相應的參數(shù),單擊NEXT:

db2 之 入門實驗

    上面是確定開放的端口,選擇默認,生產(chǎn)環(huán)境需要根據(jù)規(guī)劃來更改相應的參數(shù),單擊NEXT:

db2 之 入門實驗

    上面是配置通知消息,單擊NEXT:

db2 之 入門實驗

    上面是健康檢查通知,單擊NEXT:

db2 之 入門實驗

    上面是安裝匯總,單擊FINISH:

db2 之 入門實驗

    上面是開始安裝了。。。。。

db2 之 入門實驗

    上面這里就安裝完了。第一次安裝,選擇查看安裝后的步驟,就是告訴你安裝完之后需要做什么東西,我就羅嗦點,復制下來,如下:

Required steps:

In order to start using DB2 you need to logon using a valid user ID such as the DB2 instance owner's ID "db2inst1".

You can connect to the DB2 instance "db2inst1" using the port number "50000". Record it for future reference.

Optional steps:

To validate your installation files, instance, and database functionality, run the Validation Tool, /opt/ibm/db2/V11.1/bin/db2val. For more information, see "db2val" in the DB2 Information Ce

nter.

Open First Steps by running "db2fs" using a valid user ID such as the DB2 instance owner's ID. You will need to have DISPLAY set and a supported web browser in the path of this user ID.

You should ensure that you have the correct license entitlements for DB2 products and features installed on this machine. Each DB2 product or feature comes with a license certificate file (al

so referred to as a license key) that is distributed on an Activation CD, which also includes instructions for applying the license file. If you purchased a base DB2 product, as well as, sepa

rately priced features, you might need to install more than one license certificate. The Activation CD for your product or feature can be downloaded from Passport Advantage if it is not part

of the physical media pack you received from IBM. For more information about licensing, search the Information Center (http://publib.boulder.ibm.com/infocenter/db2luw/v10r5/index.jsp) using t

erms such as "license compliance", "licensing" or "db2licm".

To use your DB2 database product, you must have a valid license. For information about obtaining and applying DB2 license files, see  http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.

ibm.db2.luw.qb.server.doc/doc/c0061199.html.

Refer to "What's New" http://publib.boulder.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.wn.doc/doc/c0052035.html in the DB2 Information Center to learn about the new functions for D

B2 11.1.0.0.

Verify that you have access to the DB2 Information Center based on the choices you made during this installation. If you performed a typical or a compact installation, verify that you can acc

ess the IBM Web site using the internet. If you performed a custom installation, verify that you can access the DB2 Information Center location specified during the installation.

Review the response file created at /root/db2server.rsp.  Additional information about response file installation is available in the DB2 documentation under "Installing DB2 using a response

file".

至此,第一次安裝db2就完成了。后面再看看基本的使用。

另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

本文標題:db2之入門實驗-創(chuàng)新互聯(lián)
鏈接URL:http://www.muchs.cn/article0/depeio.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設App設計、微信公眾號網(wǎng)站導航、用戶體驗、服務器托管

廣告

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

小程序開發(fā)