[20191125]18c oraversion.txt

来源:这里教程网 时间:2026-03-03 14:34:48 作者:

[20191125]18c oraversion.txt --//18c提供使用程序显示oracle版本号.有时候显示测试环境需要,12c以上查询v$version输出有点长. --//简单做一个记录: $ oraversion This program prints release version information. These are its possible arguments: -compositeVersion: Print the full version number: a.b.c.d.e. -baseVersion: Print the base version number: a.0.0.0.0. -majorVersion: Print the major version number: a. -buildStamp: Print the date/time associated with the build. -buildDescription: Print a description of the build. -help: Print this message. --//各个参数输出如下: $ oraversion | grep "^-[^h]" | cut -f1 -d: | xargs -IQ bash -c "echo -n  Q =  ; oraversion Q " -compositeVersion =18.3.0.0.0 -baseVersion =18.0.0.0.0 -majorVersion =18 -buildStamp =180628094320 -buildDescription =Release_Update --//也可以将参数连在一起: $ oraversion | grep "^-[^h]" | cut -f1 -d: | paste -sd" " | xargs -IQ bash -c "oraversion Q" 18.3.0.0.0 18.0.0.0.0 18 180628094320 Release_Update

相关推荐