ORA-12856: cannot run parallel query on a loopback connection
Cause: A table or index in a parallel query is referenced via a loopback connection.
Action: Do not use loopback connection when running a query in parallel.
ORA-12856错误是由Oracle给出的一个性能限制错误,它表示不能在回路连接(loopback connect)上运行并行查询。
“ORA-12856: cannot run paralle query on a loopback connection
Cause: You attempted to run a parallel query on a loopback connection.
Action: Do not run a parallel query on a loopback connection. Use a gateway or dedicated connection to route the query to the instance on the same system.”
在某些情况下,用户可能会尝试在回路连接上运行并行查询,以支持性能的提升。但是,由于回路连接本质上不能支持多实例并行查询,数据库可能会报出ORA-12856错误。
1. 识别错误信息:确定是否处于回路链接状态;
2. 如果处于回路连接,应该设置一个网关或者专用连接来转发查询到同一系统的实例上;
3. 核查设置的网关或者专用连接是否正确;
4. 重新运行查询,检查是否能够正常运行;
5. 如果运行成功,确认正确的设置,并完成处理。