Skip to Main Content

Oracle Developer Tools for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Long/Complex queries cause havoc

Kevin WhiteOct 8 2024

I have a long, 1400 lines, complex, 16 chained CTEs, that is creating havoc with the VS Code extension.

Before anyone asks…no, I didn't write it…no, I cannot break it up or simplify it. It actually used to be double the length and complexity.

I would normally chock this up to garbage code but the offending query executes successfully in the following alternative tools in mere minutes.

  • Oracle SQL Developer
  • All Around Automation PL/SQL Developer
  • Jetbrains Data Grip

The query never completes in VS Code but how it fails depends on how the query file is loaded. If the file is loaded before the Oracle extension starts and a connection to the database is initiated the connection to the db never gets established. The extension is stuck in an endless “Connecting….” loop. When I say endless, I mean I have left it running for 36 hours without any evidence on the server that a connection was ever attempted.

The second method, load the query after the extension starts and a connection made, still fails but differently. In this case the query seems to execute, an empty results pane opens and a color bar begins to cycle left to right, but the query is never transmitted to the server. I know this because the query never appears in the real time monitor or the query/execution plan views. After roughly 10 minutes it seems like the extension just gives up without ever generating an error.

Comments

Processing

Post Details

Added on Oct 8 2024
4 comments
124 views