国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
Oracle 10.2.0.5 x64升級(jí)到11.2.0.3 x64

說(shuō)明:11g數(shù)據(jù)庫(kù)現(xiàn)在新部署的數(shù)量也很多的,對(duì)于10g數(shù)據(jù)庫(kù),現(xiàn)在整理一下10g到11g的升級(jí)過(guò)程。10.2.0.2以上版本才能升級(jí)到11.2.0.3版本。
升級(jí)說(shuō)明:10.2.0.5(64)—> 升級(jí)到11.2.0.3(64)


一、環(huán)境介紹

1. 數(shù)據(jù)庫(kù)環(huán)境

操作系統(tǒng)版本:OEL5.8 x64
數(shù)據(jù)庫(kù)版本:10.2.0.5 x64
數(shù)據(jù)庫(kù)sid名:orcl


1)Oracle 10g 10.2.0.5(64bit)安裝按照標(biāo)準(zhǔn)文檔環(huán)境進(jìn)行安裝。

/u01/app/oracle/product/10.2.0/db_1
/u01/app/oracle/admin/orcl/{adump,bdump,cdump,ddump,udump}  
/u01/app/oracle/oradata/orcl  
/u01/app/oracle/flash_recovery_area/ORCL


2)Oracle 11g 11.2.0.3(64bit)安裝文件

p10404530_112030_Linux-x86-64_1of7.zip
p10404530_112030_Linux-x86-64_2of7.zip


2. 升級(jí)思路

1)在數(shù)據(jù)庫(kù)服務(wù)器上關(guān)閉10.2.0.5x64數(shù)據(jù)庫(kù)監(jiān)聽(tīng)與數(shù)據(jù)庫(kù)。
2)創(chuàng)建Oracle 11.2.0.3數(shù)據(jù)庫(kù)相關(guān)環(huán)境變量與目錄。
3) 在Oracle 10.2.0.5x64數(shù)據(jù)庫(kù)服務(wù)器上安裝Oracle 11.2.0.3x64數(shù)據(jù)庫(kù)數(shù)據(jù)庫(kù)軟件。
4)在Oracle 11.2.0.3環(huán)境變量下執(zhí)行dbua升級(jí)。


二、升級(jí)前配置

1. 關(guān)閉10g數(shù)據(jù)庫(kù)

1)關(guān)閉數(shù)據(jù)庫(kù)

# su - oracle
$ sqlplus / as sysdba;
SQL> shutdown immediate;
SQL> quit

2)關(guān)閉監(jiān)聽(tīng)

$ lsnrctl stop


2. 查看用戶組與用戶

1)創(chuàng)建用戶組和用戶的命令如下,數(shù)據(jù)庫(kù)用戶10g已經(jīng)創(chuàng)建,這里不需要再創(chuàng)建。
# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)


2)創(chuàng)建Oracle 11g數(shù)據(jù)庫(kù)目錄

mkdir -p /u01/app/oracle/product/11.2.0/db_1
chmod -R 775 /u01/app
chown -R oracle:oinstall /u01


3. 修改11g 內(nèi)核支持

說(shuō)明: 注釋掉10g內(nèi)核參數(shù)。 

# vi /etc/sysctl.conf

fs.aio-max-nr = 1048576
fs.file-max = 6815744

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

# sysctl -p   執(zhí)行生效


4. 修改與添加文件描述符

cat >> /etc/security/limits.conf << EOF
oracle   soft   nproc   2047
oracle   hard   nproc   16384
oracle   soft   nofile  1024
oracle   hard   nofile  65536
oracle   soft   stack   10240
EOF


5. 配置oracle環(huán)境變量

# su - oracle

$ vi .bash_profile

說(shuō)明: 注釋掉11g環(huán)境變量,創(chuàng)建11g環(huán)境變量

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG="Simplified Chinese_china.ZHS16GBK"
export LANG=en_US
export LC_ALL=en_US
export LD_LIBRARY_PATH=/lib:/usr/lib:$ORACLE_HOME/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
umask 022

生效11g環(huán)境變量

# source .bash_profile 


三、升級(jí)數(shù)據(jù)庫(kù)

1. 拷貝oracle 11g 到linux系統(tǒng)中

# mv p10404530_112030_Linux-x86-64_1of7.zip /u01/app/
# mv p10404530_112030_Linux-x86-64_2of7.zip /u01/app/
# unzip p10404530_112030_Linux-x86-64_1of7.zip
# unzip p10404530_112030_Linux-x86-64_2of7.zip

# 解壓在/u01/app/database下
# chown -R oracle:oinstall /u01/app/database

 

安裝oracle11g數(shù)據(jù)庫(kù)軟件

# xhost +
access control disabled, clients can connect from any host

$ su - oracle
$ cd /u01/app/database
$ ./runInstallar


2. 開(kāi)始升級(jí)

本機(jī)安裝方式,使用Oracle用戶登陸,接上面操作。

$ su - oracle
$ cd /u01/app/database
$ ./dbua

按向?qū)нM(jìn)行升級(jí),升級(jí)過(guò)程超過(guò)1個(gè)小時(shí)。


3. 修改數(shù)據(jù)庫(kù)兼容參數(shù)

# su - oracle
$ sqlplus /nolog

SQL*Plus: Release 11.2.0.3.0 Production on 星期六 7月 27 14:51:30 2013

Copyright (c) 1982, 2011, Oracle.  All rights reserved.
SQL> conn / as sysdba;
已連接。
SQL> alter system set compatible='11.2.0.3.0' scope=spfile;

系統(tǒng)已更改。

SQL> show parameter compatible

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
compatible                           string      10.2.0.5.0
SQL> 

重啟數(shù)據(jù)庫(kù)。
SQL> shutdown immediate;
數(shù)據(jù)庫(kù)已經(jīng)關(guān)閉。
已經(jīng)卸載數(shù)據(jù)庫(kù)。
ORACLE 例程已經(jīng)關(guān)閉。

SQL> startup;
ORACLE 例程已經(jīng)啟動(dòng)。

Total System Global Area  622149632 bytes
Fixed Size                  2230912 bytes
Variable Size             239076736 bytes
Database Buffers          377487360 bytes
Redo Buffers                3354624 bytes
數(shù)據(jù)庫(kù)裝載完畢。
數(shù)據(jù)庫(kù)已經(jīng)打開(kāi)。
SQL> 
SQL> show parameter compatible

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
compatible                           string      11.2.0.3.0
SQL> 
SQL> 

 

4. 測(cè)試數(shù)據(jù)庫(kù)

歸檔模式

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     13
Next log sequence to archive   15
Current log sequence           15

原來(lái)賬號(hào)與數(shù)據(jù)

SQL> conn abc/abc;
Connected.
SQL> select * from tab;

TNAME                          TABTYPE  CLUSTERID
------------------------------ ------- ----------
ABC                            TABLE

查看數(shù)據(jù)庫(kù)版本情況


SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

 

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
RHEL5.4安裝ORACLE10g
CentOS5安裝oracle 10g(10.1.0.3)
Oracle學(xué)習(xí)筆記安裝篇之在Redhat Enterprise Linux 6.3 x8...
Linux下開(kāi)啟異步IO
Oracle 19C的下載和安裝部署(圖形安裝和靜默安裝)
Linux(centos6.5)安裝oracle10G_64位
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服