添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
善良的小狗  ·  MySql.Data.MySqlClient ...·  1 年前    · 
呐喊的柿子  ·  jQuery ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

We are trying to run the insert statement , it shows below error :

ErrorMsg: [Vertica][VerticaDSII] (10) An error occurred during query preparation: no connection to the server

sometimes if i try running it again ,it gets executed successfully. I have increased the resultbuffersize,and also maxmemorysize for my resource pool .

Let me know what is the core issue and action to resolve this .

It's likely that your connection is getting closed because of a timeout, and you are trying to use a closed connection. When using connection pooling, you need logic in your code that pulls the connection out of the pool to check to see if the connection is still open. If it isn't, it needs to be discarded and a new, open connection created and returned.

It's usually your DBMS that is disconnecting the connection after a specified timeout. You can configure the DBMS to not ever disconnect, but that's usually a bad idea since you could easily end up with connection leaks, and your server could run out of connections, causing all future connections to fail until the server is restarted.

I have increased the max memory size of my resource pool to 40 %. Will It resolve ? Or should I check various other jobs which is been executed at the same time and schedule properly. Note : We are executing trunacte and some delete command also at the same time . Bhuvana Nagulan Nov 29, 2016 at 16:24 I don't think it's a memory size issue. You need to change how your code handles closed connections that are pulled from the connection pool. What language are you using for your app? Jeremy Gurr Nov 29, 2016 at 19:55

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .