OS & Oracle is 32-bit or 64-bit

OS & Oracle is 32-bit or 64-bit?

如何判断Oracle数据库是32位还是64位?

Script 1:

SELECT length(addr)*4 || '-bits' word_length 
FROM v$process 
where ROWNUM =1;
Script 2:

select * from v$version;
output like:

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

如何判断Linux操作系统是32位还是64位?

[oracle@bej301441 bin]$ uname -m
x86_64

如果x86_64为64-bit,

如果为i686 i686 i386 GNU/Linux之类的,则为32-bit.