1.查询数据库是否有等待 select * from resource_queues where node_name=(select node_name from nodes order by node_name limit 1) order by queue_entry_timestamp desc; 2.查当前数据库执行的sql(包含在队列里等待的) select substr(current_statement, 1, 200), count(1) from sessions where…
Oracle 12C CDB.PDB常用管理命令 --查看PDB信息(在CDB模式下) show pdbs --查看所有pdbselect name,open_mode from v$pdbs; --v$pdbs为PDB信息视图select con_id, dbid, guid, name , open_mode from v$pdbs; --切换容器 alter session set container=orcl1 --切换到PDBorcl1容器alter session set co…