检测所有已安装的Oracle版本

问题描述:

如何从 oracle版本和在 windows 机器上安装的平台>命令行或按脚本
直到现在我一直在使用 tnsping 并检查输出,但是根据路径环境变量它只显示第一个版本。
是否可以从注册表中获取此信息,而无需实际连接到 DB

How can I check all oracle versions and platforms that installed on windows machine from a command line or byscript ? Till now I was using tnsping and check for the output but it only show the first version according to the path environment variable. Is there a way to get this info from the registry and without actually connect to DB ?

最简单的方法是运行命令提示符并键入sqlplus
,它将向您显示oracle版本,而无需实际登录。

Simplest method is to run command prompt and type sqlplus it will show you the oracle version without actually logging into it.

示例:运行-> cmd

Example: Run -> cmd

Microsoft Windows [版本6.1.7601]
版权所有(c) 2009 Microsoft Corporation。保留所有权利。

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\xyz> sqlplus

C:\Users\xyz>sqlplus

SQL * Plus:发布11.2.0.1.0生产,2014年1月1日星期三16:46:40

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 1 16:46:40 2014

版权(c)1982, 2010年,Oracle。保留所有权利。

Copyright (c) 1982, 2010, Oracle. All rights reserved.

输入用户名: