检测所有已安装的Oracle版本 [英] Detect all Oracle versions installed

查看:142
本文介绍了检测所有已安装的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.

输入用户名:

这篇关于检测所有已安装的Oracle版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆