简体   繁体   中英

Unable to get version of Oracle database

Finding version of Oracle database should be easy. As written here: How can I confirm a database is Oracle & what version it is using SQL? it's one command:

select * from v$version;

However it seems to be not working on some specific versions of Oracle. My database throws following exception while executing the command:

[Error] Script lines: 1-1 -------------------------- ORA-00911: invalid character Script line 1, statement line 1, column 23

I use Aqua Data Studio 15.0.14 to connect with DBMS.

select * from v$version
go
Aqua Data Studio uses go or / as statement separator. You can change this behavior under File-> Options.

您可以尝试SELECT * FROM PRODUCT_COMPONENT_VERSION;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM