Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

DB Connection Stuck Issue

Hi,

In our organization we are using qlikview 11.2 and we are using oledb connection string to extract raw data from database.Many time we have an issue of DB connection stuck/Freeze and due to this all schedule task are interrupted. We have googled various post on community but didn't get any solution.

Screen shot of the issue is attached here for reference purpose. If anyone can help in this regard will be appreciated.

Thanks in advance.

Hari Prasad SharmaDB Connection.png

10 Replies
Anonymous
Not applicable
Author

Hi,

The info you provide seems the QV server is trying to connect your DB server. But what will it happen later?

Dose it always showing this "Connecting ..." info, or you will get a failed info after some time?

As you mentioned, this happened "Many time", which means it also works the other time.

May I know is your database also busy with other connection, or is the database is updating during the QV connection?

Zhihong

Not applicable
Author

Hello,

Nothing will happen means it will show "Connecting ..." until we do not kill this task and after restarting connection work perfectly and works fine.

Connection stuck issue arise randomly and due to this, further scheduled tasks are interrupted.  Window Batch Files scripts are using for performing data extraction from DB.

Pls look into this and guide or provide alternative solution for this.

Regards

HP Sharma

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Dear Hari,

Many a times the Drivers are not installed properly.

Try using ODBC and see what happens.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anil_Babu_Samineni

Hari, Did you install the ODBC driver. The driver should similar to your OS(I mean either 32/64 bit)

Go to Administrative tools and double click on your Bit then try to use add with new one then try to connect OLEDB with your DB Name and uname and pwd. Then, check whether it is connected or not. Make sure please use test Connection

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hello,

As I have already mentioned that this issue is occurring randomly, one time it is connected and data extraction task executed successfully and another time is stuck and we need to kill QV.exe from task manager to resume the same.

Following connection string is used for data extraction task on 64 bit Window Server 2008 R2 Enterprise

OLEDB CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDB;Data Source=192.168.XXX.XXX;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False];

Pls look into this and let me know about necessary changes.

Regards

Hari Prasad

Not applicable
Author

Hello,

As I have already mentioned that this issue is occurring randomly, one time it is connected and data extraction task executed successfully and another time is stuck and we need to kill QV.exe from task manager to resume the same.

Following connection string is used for data extraction task on 64 bit Window Server 2008 R2 Enterprise

OLEDB CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDB;Data Source=192.168.XXX.XXX;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False];

Pls look into this and let me know about necessary changes.

Regards

Hari Prasad

Anonymous
Not applicable
Author

Hi, Hari,

I have another question, dose this also happen to other reload tasks. If it does happen to the rest, then we may identify the problem with Qlikview or Driver.  If it is not, then it may related to that specific .qvw.

And as Kaushik pointed out, maybe the Driver not work properly, even it works sometime. Can you pls try to re-install the driver?

And another thing, as you mentioned because the problem reload fails, the further scheduled tasks are interrupted. We had similar issue before. You can add a windows task to kill the QV.exe  at the time when the problem reload should finished. Then it will not effect the rest tasks.

From this way, we can also identify whether the problem only happens for that problem load, or happens to all others.

Zhihong

thenextlevel
Contributor II
Contributor II

I recently discovered a solution to this issue. The QV client is trying to make the connection too quickly after opening and the issue does not always occur.

Add the following to the start of the script.

     SLEEP 10000;

This will add a 10 second wait before any connections are attempted.

This issue affected me for 3 years before i found this solution.

Anonymous
Not applicable
Author

Robbie,

Thanks for the update.  Never used SLEEP in QV script.

Zhihong