Fu R3 and Earlier
...
Not all the results from the above query will be databases, but any discovered database applications will be listed.
The list of products which can be scanned is found in the table model.t_Product.
Query to list discovered Oracle and SQL Server databases
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
SELECT DISTINCT p.Name as ProjectName , dal.[DeviceHostname] , dal.[IPAddressOrHostname] , dal.[DeviceID] , dal.[FoundApplicationID] , dal.[ApplicationID] , dal.[Name] as ProductName , dal.[Status] , dal.[Reason] , dal.[Vendor] , ad.[Name] AS DBName , ad.Owner AS DBOwner FROM [history].[v_DiagnosticsApplicationList] dal INNER JOIN [config].[t_Project] p ON p.ProjectID = dal.ProjectID LEFT OUTER JOIN [model].[v_ApplicationDatabase] ad ON dal.ApplicationID = ad.ApplicationID WHERE (Type = 'Oracle Database Server' or Type = 'SQL Server') AND (ad.[DatabaseIdent] NOT IN ('master','tempdb','model','msdb')) |
Gwynn R1 and Later
...
Warning |
---|
These queries work with iQSonar releases up to and including Fu R3. Changes were made to some underlying tables in Gwynn R1 and Gwynn R2 to reduce the amount of history saved as the diagnostic information can grow. In the Gwynn R3 release the option to preserve or delete this diagnostic can be selected in the user interface. Instructions on how to keep the history data can be found on this page. |
The following query will list all scanned databases (this example is limited to SQL and Oracle)
...