日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

oracle 10g客户端连接11g,生产环境oracle10g升级至11g准备工作

發(fā)布時(shí)間:2023/12/2 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle 10g客户端连接11g,生产环境oracle10g升级至11g准备工作 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

主要有以下的步驟 :

1.new ORACLE_HOME(11g), old ORACLE_HOME (10g)

--這些需要提前提供給客戶,作為基本的約定

2.install oracle software 11.2.0.2.0 on production

--總共有7個(gè)DB,時(shí)間很緊,所以準(zhǔn)備要充分

3.apply DB patch additional if needed

--patch詳細(xì)信息參見(jiàn) Note:16056267.8

11.2.0.2.10 (Apr 2013) Database Patch Set Update (PSU) Patch:16056267

4.init parameter tuning

--這個(gè)也是必需的,主要有三個(gè)方面

11g里面可能過(guò)期的參數(shù),如user_dump......

11g里面新增加的參數(shù),如diag....,有些需要考慮是否調(diào)優(yōu)。

10g里面調(diào)優(yōu)的隱含參數(shù)是否需要保留...

5.OS kernel tuning

--系統(tǒng)級(jí)的調(diào)優(yōu)也是必須的。需要找專門的team來(lái)提供意見(jiàn)。

6.PET and Production compare

--準(zhǔn)生產(chǎn)環(huán)境的準(zhǔn)備,需要做足前期的測(cè)試工作。

7.confirm details with App team if have any concern.

--對(duì)于升級(jí)過(guò)程中的部分問(wèn)題,如果不能確認(rèn),需要找開(kāi)發(fā)或者其他的team來(lái)協(xié)調(diào)。

8.full backup or cold backup

--這個(gè)取決于具體的環(huán)境實(shí)施方案,保證充足的備份很重要,生產(chǎn)系統(tǒng)做cold backup應(yīng)該很懸了。

9.check if there are crontab running or scheduled.

--這個(gè)需要提前考慮,一般的項(xiàng)目都會(huì)有系統(tǒng)監(jiān)控,要保證在升級(jí)過(guò)程中排除不必要的影響。如果有g(shù)oldengate同步之類的,也需要提前協(xié)調(diào)好,保證不會(huì)影響。

10.check if all database components are valid

--可以使用如下的sql來(lái)

select substr(comp_name,1,40) comp_name, status,

substr(version,1,10) version from dba_registry

order by comp_name; ? --組建都應(yīng)該是valid狀態(tài)。

11.check if all objects are valid

--檢查object狀態(tài)也應(yīng)該是valid.

if there are component or objects invalid, need to use utlrp.sql

to recompile

12.check if duplicate objects owned by SYS and SYSTEM Schema

--從dba_objects里查詢,保證sys,system下的沒(méi)有重復(fù)的object,,以下是期望的結(jié)果,如果有其他的,需要查看metalink文檔來(lái)處理。Note,1030426.6

OBJECT_NAME OBJECT_TYPE

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

AQ$_SCHEDULES TABLE

AQ$_SCHEDULES_PRIMARY INDEX

DBMS_REPCAT_AUTH PACKAGE

DBMS_REPCAT_AUTH PACKAGE BODY

13.disable custom triggers

--為了排除trigger的導(dǎo)致的ddl影響,建議還是disable custom trigger.

14.Copy Pre-upgrade Information script. to a local folder

--建一個(gè)臨時(shí)的文件夾,把升級(jí)所需的腳本拷貝過(guò)去。如腳本rdbms/admin/utlu112i.sql 需要從11ghome下rdbms/admin提前拷貝過(guò)去。

15.Run Pre-upgrade Information Tool on target database (10g)

--spool一下,做升級(jí)前的檢查工作。

sqlplus / as sysdba

spool pre_upgrade_info.log

@utlu112i.sql

spool off

16.Check the output of the Pre-Upgrade Information Tool

--這里需要注意warning信息,清空recyclebin,保證timezone file必須是v4,要不升級(jí)100%失敗。還有要注意部分參數(shù),根據(jù)提示進(jìn)行修改。

17.backup ?/etc/oratab,tnsnames.ora,listener.ora ? ? ? ? ? sqlnet.ora,password file, pfile,spfile,profile

--備份必要的文件,作為rollback的備份。

18.Copy Network files to 11g Home and modify the home in listener

--拷貝tnsnames.ora,listener.ora到11g home的對(duì)應(yīng)目錄下。

19.Copy password file to 11g Home

--拷貝密碼文件

20.Prepare a separate .bash_profile to set 11g environment variables

--profile文件也需要做相應(yīng)修改。

21.Collect dictionary stats

--使用如下的包來(lái)

EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;

22.Stop Listener services of the target database.

--停掉監(jiān)聽(tīng),開(kāi)始升級(jí)

23.Shutdown the target database (10g)

--down掉數(shù)據(jù)庫(kù),清空緩存,這樣起來(lái)以后跑腳本會(huì)排出很多干擾,速度也快一些。

24.Set working environment to 11g ORACLE_HOME. Make sure multiple ORACLE HOMEs are not in the PATH variable.

25.Copy spfile to 11g home.

26.stop source(10g) DB,Start the db in nomount,mount mode, and make necessary changes/adjustments in spfile with scope=spfile.

--這一步,需要修改compatible參數(shù),調(diào)節(jié)一些參數(shù)。(之前的步驟進(jìn)行參數(shù)調(diào)優(yōu)的時(shí)候準(zhǔn)備好的)

最后create spfile from pfile;

27.Shutdown and startup the db in upgrade mode.

--啟動(dòng)數(shù)據(jù)庫(kù),使用spfile,

--startup upgrade

28.Run upgrade script. Exit the session after upgrade.

--這個(gè)是最關(guān)鍵的腳本,運(yùn)行時(shí)間也會(huì)長(zhǎng)一些。,腳本運(yùn)行完成后,會(huì)自動(dòng)shutfdown immediate

spool upgrade11g2.log

@?/rdbms/admin/catupgrd.sql

Spool off

Exit

29.Verify the log for errors. Ignore “table or view not found” errors

--如果有部分錯(cuò)誤,需要檢查,如果有些錯(cuò)誤如memory issue 不能忽略,需要重新運(yùn)行腳本

30.Startup the db in normal mode and run post upgrade information tool. Verify the status of each db component and address the failures.

--啟動(dòng)數(shù)據(jù)庫(kù),運(yùn)行如下的腳本。

spool post_upgrade_info.txt

@?/rdbms/admin/utlu112s.sql

Spool

31.Continue upgrade (new in 11g)

--繼續(xù)執(zhí)行腳本,屬于post upgrade腳本。

Spool upgrade11g2.log

@?/rdbms/admin/catuppst.sql

Spool off

32.Recompile invalid objects

33.enable custom triggers

--enable之前disable的trigger

34.update /etc/oratab with 11g home

--更改該配置,在某些應(yīng)用中會(huì)用到。

35.rename spfile/pfile from 10g home

--保證10g的參數(shù)不被使用,保證不會(huì)有錯(cuò)誤的操作導(dǎo)致不必要的麻煩。

36.Start Listener services of the target database with 11g HOME.

--確定后啟動(dòng)監(jiān)聽(tīng)。

37.DBA sanity check(check if mv is able to refresh,db components are valid,check if there are ORA erros from logs)

--DBA先做一些簡(jiǎn)單的sanity test.保證環(huán)境交給客戶之前不會(huì)有基本的錯(cuò)誤。

38.Check the connectivity from client

--然后從客戶端進(jìn)行測(cè)試,連接是否正常。

39.Backup of DB after upgrade

--進(jìn)行必要的備份。

40.upgrade rman catalog if necessary

--如果使用rman做備份恢復(fù),需要升級(jí)catalog

41.change crontab

創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)

總結(jié)

以上是生活随笔為你收集整理的oracle 10g客户端连接11g,生产环境oracle10g升级至11g准备工作的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。