2019年4月25日 星期四

Oracle version support matrix

Oracle version support matrix



Oracle Release 19

Oracle Database Client Software Requirements

https://docs.oracle.com/en/database/oracle/oracle-database/19/ntcli/software-requirements.html

Lists the software requirements for Oracle Database client.

Table 2-3 Windows x64 Software Requirements

RequirementValue

Operating System

Oracle Database for Windows x64 is supported on the following operating systems:

  • Windows 8.1 x64 - Pro and Enterprise editions

  • Windows 10 x64 - Pro, Enterprise, and Education editions

  • Windows 11 x64 - Pro, Enterprise, and Education editions

  • Windows Server 2012 R2 x64 - Standard, Datacenter, Essentials, and Foundation editions

  • Windows Server 2016 x64 - Standard, Datacenter, and Essentials editions

  • Windows Server 2019 x64 - Standard, Datacenter, and Essentials editions

  • Windows Server 2022 x64 - Standard, Datacenter, and Essentials editions

Note:

  • Windows Multilingual User Interface Pack is supported.

  • The Server Core option is not supported.

  • Windows 11 x64 - Pro, Enterprise, and Education editions and Windows Server 2022 x64 - Standard, Datacenter, and Essentials editions are supported starting with Oracle Database 19c Release Update (19.13) or later.

Virtualization

Oracle certifies the following virtualization technologies with Oracle Database Client on Windows:

  • Oracle VM Server

  • Microsoft Hyper-V

For more detailed information on certified Oracle VM Server combinations, check My Oracle Support note 464754.1. For more information on certified Hyper-V combinations, you can visit:

http://www.oracle.com/technetwork/database/virtualizationmatrix-172995.html

Oracle Release 18
Oracle Database Client Software Requirements
Lists the software requirements for Oracle Database client.
https://docs.oracle.com/en/database/oracle/oracle-database/18/ntcli/software-requirements.html

Table 2-3 Windows x64 Software Requirements

RequirementValue

Operating System

Oracle Database for Windows x64 is supported on the following operating systems:

  • Windows 7 x64 - Professional, Enterprise, and Ultimate editions

  • Windows 8.1 x64 - Pro and Enterprise editions

  • Windows 10 x64 - Pro, Enterprise, and Education editions

  • Windows Server 2012 x64 - Standard, Datacenter, Essentials, and Foundation editions

  • Windows Server 2012 R2 x64 - Standard, Datacenter, Essentials, and Foundation editions

  • Windows Server 2016 x64 - Standard, Datacenter, and Essentials editions

Note:

  • Windows Multilingual User Interface Pack is supported.

  • The Server Core option is not supported.

Virtualization

Oracle certifies the following virtualization technologies with Oracle Database Client on Windows:

  • Oracle VM Server

  • Microsoft Hyper-V

For more detailed information on certified Oracle VM Server combinations, check My Oracle Support note 464754.1. For more information on certified Hyper-V combinations, you can visit:

http://www.oracle.com/technetwork/database/virtualizationmatrix-172995.html



FULL INTEROPERABILITY SUPPORT MATRIX

This matrix includes interoperability information for older versions and is included here for completeness.

CURRENT INTEROPERABILITY SUPPORT SITUATION

The matrix below summarizes client and server combinations that are supported for the most commonly used product versions. A full matrix appears at the end of this document.

New interoperability problems will only be investigated if BOTH releases involved are covered by a valid support contract at the time that the issue is reported.

Client
Version
Server Version
23c21c19c18c12.2.012.1.011.2.0
23c#11YesYesYesNoNoNoNo
21cYesYesYesWasWasYes#12No
19cYesYesYesWasWasYes#12Yes#9
18cNoWasWasWasWasWasWas
12.2.0NoWasWasWasWasWasWas
12.1.0NoYes#12Yes#12WasWasYes#12Yes#12
11.2.0NoNoYes#9WasWasYes#12Yes#9

Key:

YesSupported
ESSupported but fixes only possible for customers with Extended Support.
MDSSupported, but fixes only possible for customer with a valid Market-Driven Support contract.
WasWas a supported combination but one of the releases is no longer covered by any of Premier Support, Primary Error Correct support, Extended Support, nor Extended Maintenance Support. Fixes are no longer possible.
NoHas never been Supported

Specific Notes:

  • #2 – An ORA-3134 error is incorrectly reported if a 10g client tries to connect to an 8.1.7.3 or lower server. See Note 3437884.8 .
  • #3 – An ORA-3134 error is correctly reported when attempting to connect to this version.
  • #4 – There are problems connecting from a 10g client to 8i/9i where one is EBCDIC based. See Note 3564573.8
  • #5 – For connections between 10.2 (or higher) and 9.2 the 9.2 end MUST be at 9.2.0.4 or higher. Connections between 10.2 (or higher) and 9.2.0.1, 9.2.0.2 or 9.2.0.3 have never been supported.
  • #6 – For connections between 11.1 (or higher) database server and 10.1 / 10.2 database server across a database link the 10g end MUST be at 10.1.0.5 / 10.2.0.2 (or higher) respectively in order to use PLSQL between those versions. (This does not apply to normal 11g clients to 10g database server only server to server and a few very specific client products, such as Oracle Forms). See Note 4511371.8 for more details.
  • #7 – For database link connections between 11.1 (or higher) and 10.2 the 10g end MUST be at 10.2.0.2 (or higher) in order to use PLSQL between those versions. See Note 4511371.8 for more details.
  • #8 – Attempting to connect from 9.2 to 12.1 will fail with an “ORA-28040: No matching authentication protocol” error.
  • #9 – 11.2.0.3 or 11.2.0.4 only. For Oracle Autonomous Transaction Processing and Oracle Autonomous Data Warehouse, there is additional limitation and 11.2.0.4 is the minimum supported client version.
  • #10 – For the IBM z/OS platform only, Oracle will continue to test past 2014, at its discretion, new versions of the database running on non-z/OS platforms with the older 10.2 client running on z/OS. For more information, please refer to Note 461234.1 – Oracle Database on z/OS Support Status.
  • #11 – 32-bit DB23c client is not available on any platform. However, you can use older 32-bit clients (e.g. 19c) with DB23c server based on this matrix unless the platform desupport notice indicates otherwise.
  • #12 – 12.1.0.2 only. For 11.2 interoperability, 11.2.0.4 is required.


Reference:

https://oraclefact.wordpress.com/2018/04/05/client-server-interoperability-support-matrix-for-different-oracle-versions-doc-id-207303-1/comment-page-1/


Client
Version
Server Version
18c12.2.0#1012.1.011.2.011.1.010.2.010.1.09.2.0
18cYesYesYesYes#9NoNoNo#3No#3
12.2.0YesYesYesYes#9NoNoNo#3No#3
12.1.0YesYesYesYesWasMDS #7No#3No#3
11.2.0Yes#9Yes#9YesYesWasMDS #7NoWas #5
11.1.0NoNoWasWasWasWas #7Was #6Was #5
10.2.0NoNoMDS #7MDS #7Was #7MDSWasWas #5
10.1.0#4NoNoNoWas #6Was #6WasWasWas
9.2.0NoNoNo#8Was #5Was #5Was #5WasWas
Key:
YesSupported
ESSupported but fixes only possible for customers with Extended Support .
LES or MDSSupported but fixes only possible for customer with a valid Limited Extended Support or Market-Driven Support contract respectively.
WasWas a supported combination but one of the releases is no longer covered by any of Premier Support, Primary Error Correct support, Extended Support, nor Extended Maintenance Support. Fixes are no longer possible.
NoHas never been Supported
Reference:
https://oraclefact.wordpress.com/2018/04/05/client-server-interoperability-support-matrix-for-different-oracle-versions-doc-id-207303-1/



2018年7月23日 星期一

workaround for SQLNexus fail to import SQL 2016 trc file (SQLNexus ReadTrace匯入sql 2016 trc失敗)

workaround for SQLNexus fail to import SQL 2016 trc file
(SQLNexus ReadTrace匯入sql 2016 trc失敗)

Problem:
Readtrace (SQL Profiler TRC Files) Import failed.


Analysis:
from ReadTrace.log
07/23/18 00:32:50.485 [0X00001364] The major version number (13) in the trace file header is not a supported file version.
07/23/18 00:32:50.485 [0X00001364] ERROR: Read of file header for file C:\Temp\20180712110000\SQLSERVER-1_SQLDIAG__sp_trace.trc failed with operating system error 0x8007000D (The data is invalid)
07/23/18 00:32:50.519 [0X00001364] *** ERROR: Attempt to initialize trace file reader failed with operating system error 0x8007000D (The data is invalid)
07/23/18 00:32:50.519 [0X00001364] Reads completed - Global Error Status 0xfffffffe
07/23/18 00:32:50.520 [0X00001364] Signaling worker threads to complete final actions.
Possible Cause原因:
目前的版本RML ReadTrace無法匯入SQL Server 2016 trc
Workaround:
執行以下Powershell,將F:\Temp\20180707192503目錄下的trc檔變更版本號碼,改成舊版SQL Server
# 目前的版本RML ReadTrace無法匯入SQL Server 2016 trc
# Workaround: Change the version in trc file

Write-Output "Change the version in trc file"
Get-Date

# The version information we want to write: 0x0A = 10 = SQLServer 2008
[Byte[]] $versionData = 0x0A
# The offset of the version information in the file
$offset = 390

$OutputPath = "F:\Temp\20180707192503"
Get-ChildItem $OutputPath -Filter *.trc|
Foreach-Object {
$trc = "$OutputPath\$_"
[System.IO.FileMode] $open = [System.IO.FileMode]::OpenOrCreate
$stream = New-Object System.IO.FileStream -ArgumentList $trc, $open
$stream.Seek($offset, [System.IO.SeekOrigin]::Begin);
$stream.Write($versionData, 0, $versionData.Length);
$stream.Close()

Write-Output "Change Done $trc"
}


2018年7月21日 星期六

SQL Nexus and RML Utilities (ReadTrace) – SQL Server效能分析工具

SQL Nexus and RML Utilities (ReadTrace) – SQL Server效能分析工具

update 2022/3/16
軟體下載與安裝方法

官方步驟

Prerequisites to run SQL Nexus

  1. .NET framework 4.6.2. Windows 10 anniversary update has version already.
  2. Download and install SQLSysClrTypes
  3. Download and install ReportViewer control (ReportViewer.msi)
  4. Download and install RML Utilities (RMLSetup_AMD64.msi)
  5. An instance of SQL Server (2012 or above) to connect to and process data
  6. Optional: PowerBI Desktop

Automate Prerequisites Installation

You can use the following PowerShell file (https://github.com/microsoft/SqlNexus/blob/master/Setup-Related/SetupSQLNexusPrereq.ps1) to install the three required and one optional prerequisites for SQL Nexus

How to Download and Use

  1. Download the SQLNexus_7.22.03.23_Signed.zip from Assets below. This is a zip file that contains Microsoft digitally-signed binaries
  2. Extract in a path location of your choice
  3. Go to the path and run sqlnexus.exe

安裝設定步驟
1.SQL Server Database Engine (官方步驟的第5點)
SQLNexus and RML需要SQL Server DB來儲存分析結果,可以使用SQL Server Express版本
Microsoft® SQL Server® 2019 Express

2.Report Viewer 
不同版本SQL Nexus與RML Utilities,需要不同版本的Report Viewer
RML Utilities requires Report Viewer to run correctly and Report Viewer also has a few updates to be considered. 

Report Viewer

Download

 2008

Report Viewer 2008系統需求.Net Framework 2.0

Microsoft Report Viewer 2008 SP1 Redistributable http://www.microsoft.com/download/en/details.aspx?id=3841

Security Update MS09-062
http://support.microsoft.com/kb/971119

Report Viewer Redistributable 2008 Service Pack 1 GDIPLUS.DLL Security Update
https://www.microsoft.com/en-us/download/details.aspx?id=3203

2010

Microsoft Report Viewer 2010 SP1 Redistributable Package http://www.microsoft.com/download/en/details.aspx?id=6610

Update fixes several Report Viewer issues after you install Visual Studio 2010 Service Pack 1 (主要描述的就是要安裝下面那個連結)

http://support.microsoft.com/kb/2549864 

Update for Microsoft Visual Studio 2010 Service Pack 1 Report Viewer (KB2549864)
https://www.microsoft.com/en-us/download/details.aspx?id=27231

Note If you have Microsoft Report Viewer 2010 SP1 Redistributable Package installed, install the file that is named "ReportViewer.exe." If you use Microsoft Visual Studio 2010 Service Pack 1, install the file that is named "VS10SP1-KB2549864-x86.exe."

 遇到以下錯誤,需安裝Report Viewer 2010 SP1 Redistributable Package

SQL Nexus的Reports有超連結,但是無法點選開啟報表,需安裝Report Viewer 2010 SP1 update(KB2549864)


2015

Version=12.x.x.x

MICROSOFT REPORT VIEWER 2015 RUNTIME (12.0.2402.15)
https://www.microsoft.com/en-us/download/details.aspx?id=45496


 

Version=13.0.0.0

Microsoft® SQL Server® 2016 Service Pack 3 Feature Pack

https://www.microsoft.com/en-us/download/details.aspx?id=103444

i. Download and install enu\x86\sqlsysclrtypes.msi 

若x86與x64都下載了,在Windows 2016環境兩個版本都能安裝成功

Microsoft® System CLR Types for Microsoft SQL Server® 2016 SP3

    The SQL Server System CLR Types package contains the components implementing the geometry, geography, and hierarchy id types in SQL Server. This component can be installed separately from the server to allow client applications to use these types outside of the server.

    Note: This component also requires Windows Installer 4.5
      Filename: X86 and x64 Package (SQLSysClrTypes.msi)

ii. Download and install enu\x86\reportviewer.msi


安裝完成後的版本資訊 為 13.3.6300.2
SQLNexus github提供的下載連結reportviewer版本是13.2.5026.0(比較舊) 

必須先裝sqlsysclrtypes.msi,不然安裝ReportViewer時會出現以下錯誤




若sqlsysclrtypes.msi與reportviewer.msi沒有安裝正確,執行SQLNexus會出現以下錯誤訊息

If you run sqlnexus.exe, Error "Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=13.0.0.0,'"


3. Install RML Utilities (ReadTrace)
Description of Replay Markup Language Utilities for SQL Server
Obtain the RML Utilities for SQL Server

After you install the Database Experimentation Assistant, you will find the RML tools (ReadTrace and OStress) present in the C:\Program Files (x86)\Microsoft Corporation\Database Experimentation Assistant\Dependencies\X64\ folder.

If you're using the RML tools together with the SQL Nexus tool, you can obtain ReadTrace and ostress from https://github.com/microsoft/SqlNexus/releases/tag/09.04.0097.

RML Utilities for SQL Server is available for download from the Microsoft Download Center.

如果沒有透過Database Experimentation Assistant或SQLNexus來取得RML Utilities,直接從Download center下載安裝時,只能安裝x86或x64其中一種版本,如果已經安裝x86版本,再安裝x64時則會跳出已經安裝過x86,所以無法繼續安裝

我的範例環境與安裝順序是
Windows Server 2016 Datacenter (Azure VM Image)
1.安裝SQL Server 2019 Developer Edition與SSMS
2.無須安裝 .Net framework 4.6.2  (ndp462-kb3151802-web.exe) 
若安裝會跳出 .NET Framework 4.6.2 or a later update is already installed on this computer.
3.安裝 Microsoft System CLR Types for SQL Server 2016 (SQLSysClrTypes.msi)
4.安裝 Microsoft Report Viewer for SQL Server 2016 (ReportViewer.msi)
5.安裝 RML Utilities for SQL Server (X64) (RMLSetup_AMD64.exe)

4.SQL Nexus
Microsoft SQL Nexus
https://github.com/microsoft/SqlNexus

Prerequisites to run SQL Nexus

  1. .NET framework 4.6.2. Windows 10 anniversary update has version already.
  2. Download and install SQLSysClrTypes
  3. Download and install ReportViewer control (ReportViewer.msi)
  4. Download and install RML Utilities (RMLSetup_AMD64.msi)
  5. An instance of SQL Server (2012 or above) to connect to and process data
  6. Optional: PowerBI Desktop
PS.RML Utilities for SQL Server安裝完成後在功能清單會出現以下項目

Automate Prerequisites Installation

You can use the following PowerShell file (https://github.com/microsoft/SqlNexus/blob/master/Setup-Related/SetupSQLNexusPrereq.ps1) to install the three required and one optional prerequisites for SQL Nexus

How to Use

  1. Download the SQLNexus_v_7_21_07_07.EXE (this is a digitally signed self-extracting zip file by Microsoft)
  2. Double-click on it to allow files to be extracted in a path location of your choice
  3. You will now see a SQLNexus_v_7_21_03_26.zip file which you can extract into a subfolder, e.g. \SQLNexus_v_7_21_03_26
  4. Go to the new subfolder and execute sqlnexus.exe

第一次啟動SQL Nexus,會提示要連接到哪一個SQL Server Instance,連進去後會建立一個空的sqlnexus資料庫,此時若在UI介面上不改選其他資料庫,匯入分析log時(例如PSSDiag output folder)就會匯入此資料庫。





5.分析方法
(1)事先建立好分析用的log DB或用SQL Nexus建立log DB
(2)匯入log
A.如果用PSSDiag收集log
啟動SQL Nexus後,先選擇要匯入的資料庫或點選New Database建立新資料庫

點選 Import 
選擇PSSDiag收集後的output folder,如果要覆蓋上次匯入到目前選擇的DB,則可以勾選Drop Current DB Before Importing
PS.此選項是在Import之前執行Drop Database語法,並且用預設Create Database語法重新建立DB,也就是說原始DB如果有設定多個File group與多個data file,重建後會只有一個file group與一個mdf檔

匯入進行中
  
會也跳出匯入的狀態與紀錄

PS. TRC檔很大,則需要恢復比較多時間來匯入


B.如果只有收集SQL Trace (trc檔)
使用SQL Nexus,選擇log DB,匯入trc檔
或
用命令列匯入
Cd C:\Program Files\Microsoft Corporation\RMLUtils
ReadTrace.exe -S"(local)" -E -d"ReadTraceDB20161020213501" -I"D:\TEMP\SQLTraceFiles\2016-10-20_21-35-01\TPECDB08_20161020212501.trc" -o"D:\TEMP\SQLTraceFiles\2016-10-20_21-35-01\output"
修改參數
-d後面的資料庫名稱
-l要匯入第一個trc檔
-o指定一個執行匯入過程的紀錄檔目錄
匯入Import完成後自動啟動Reporter.exe顯示報表

FAQ:
Import時若出現以下警告: You have captured both trace and xevent files. import will fail!. Please remove one of them before importing.
經測試Import可能會成功,但是SQLNexus report可能會出問題,然後SQL Perf Main頁面可能會變成空白,必須重選DB,觸發重新載入資料,SQL Perf Main頁面才會恢復正常


2.PerfMon Charts出現錯誤
Invalid object name 'pal_Counters'


原因:
SQLNexus_v_7_21_07_07 有bug
解決方法:
改下載SQLNexus_7.22.03.23_Signed.zip版本,此版PerfMon Charts改名為Perfmon Summary,即可正常顯示

3.Active Trace and XEvent Report出現以下錯誤

Invalid object name 'tbl_XEvents'

暫時還沒有找到解決方法

Reference:
Microsoft SQL Nexus
SQL Server: Working with SQL Nexus
https://social.technet.microsoft.com/wiki/contents/articles/51981.sql-server-working-with-sql-nexus.aspx



資料治理實施

資料治理實施