查询Sql Server数据库对象结构 查询数据库 查询架构 查询表 查询列 查询存储过程 查询视图 1.查询某一服务器下所有数据库 select t.[name] as 数据库 from sys.databases as t order by name 2.查询某一数据库的架构 select name as 架构, schema_id as 架构Id --,principal_id from sys.schemas where principal_id = 1; 3.查询某一数据库的表 sel
-----############oracle会话和进程################----------------查询会话总数select count(*) from v$session;--查询进程总数select count(*) from v$process;--查询哪些应用的连接数此时是多少select b.MACHINE, b.PROGRAM , count(*) from v$process a, v$session b where a.ADDR = b.PADDR and b