方法:1、用“sqlplus /as sysdba”查詢,64位會(huì)顯示具體位數(shù)信息,32位不顯示;2、用“v$version”視圖查詢會(huì)顯示64位位數(shù)信息;3、用“v$sql”視圖查詢,32位輸出為8位16進(jìn)制數(shù),64位是16位16進(jìn)制數(shù)。
本教程操作環(huán)境:Windows10系統(tǒng)、oracle 11g版、Dell G3電腦。
怎么查詢oracle的位數(shù)
方法一:使用sqlplus
64位:
[oracle@qs-wg-db2?~]$?sqlplus?/?as?sysdba; SQL*Plus:?Release?10.2.0.5.0?-?Productionon?Sun?Sep?25?08:57:22?2011 Copyright?(c)?1982,?2010,?Oracle.??All?Rights?Reserved. Connected?to: Oracle?Database?10g?Enterprise?EditionRelease?10.2.0.5.0?-?64bit?Production With?the?Partitioning,?OLAP,?Data?Miningand?Real?Application?Testing?options SQL>
如果是64位,用sqlplus 連上之后會(huì)顯示具體的位數(shù)信息,32位則不會(huì)顯示。
32位:
C:/Users/Administrator.DavidDai>sqlplus/?as?sysdba; https://www.cndba.cn/Dave/article/1130 SQL*Plus:?Release?11.2.0.1.0?Production?onSun?Sep?25?08:55:48?2011 Copyright?(c)?1982,?2010,?Oracle.??All?rights?reserved. https://www.cndba.cn/Dave/article/1130 Connected?to: Oracle?Database?11g?Enterprise?EditionRelease?11.2.0.1.0?-?Production With?the?Partitioning,?OLAP,?Data?Miningand?Real?Application?Testing?options
方法二: 查看v$version 視圖
32位:
SQL>?select?*?from?v$version; BANNER -------------------------------------------------------------------------- Oracle?Database?11g?Enterprise?EditionRelease?11.2.0.1.0?-?Production PL/SQL?Release?11.2.0.1.0?-?Productionhttps://www.cndba.cn/Dave/article/1130 CORE???11.2.0.1.0??????Production TNS?for?32-bit?Windows:?Version?11.2.0.1.0-?Production NLSRTL?Version?11.2.0.1.0?-?Production
64位:
SQL>?select?*?from?v$version; BANNER ---------------------------------------------------------------- Oracle?Database?10g?Enterprise?EditionRelease?10.2.0.5.0?-?64bi PL/SQL?Release?10.2.0.5.0?-?Production CORE???10.2.0.5.0??????Production TNS?for?Linux:?Version?10.2.0.5.0?-Production NLSRTL?Version?10.2.0.5.0?–?Production
和第一種方法一樣,64位會(huì)顯示具體的位數(shù)信息,32位不會(huì)顯示。
方法三:查看v$sql 視圖
32位:輸出為8位16進(jìn)制數(shù)
SQL>?select?address?from?v$sql?whererownum<p>64位:輸出為16位16進(jìn)制數(shù)</p><pre class="brush:sql;toolbar:false">SQL>?select?address?from?v$sql?whererownum<p>推薦教程:《<a href="https://www.php.cn/course/list/52.html" target="_blank">Oracle視頻教程</a>》</p>
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END