Solved

ODBC Client Interface unpacking error

Posted on 2006-06-11
13
887 Views
Last Modified: 2013-12-25
hi all...

I am using php on Win2003 server to call a Pervasive database server, and got the following error message:

[Pervasive][ODBC Client Interface][Client LNA]
The ODBC Client Interface unpacking error.
Re-start your application, then access the data source again.
Contact your system administrator if you still need assistance.

$conn = odbc_connect("DRIVER={Pervasive ODBC Client Interface};ServerName=$host;DBQ=$db;","","");      
            
$sql = " select * from ECFIL001";      
$rowexec= odbc_exec($conn,$sql);
            
odbc_connect returns a successfully-connected message. yet the odbc_exec function gives the above error.

have checked the ODBC drive settings; Win2003 works fine with the local pervasive database; it is only when it connects to the database server on the local network.


shizhen
0
Comment
Question by:mudskipperw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
13 Comments
 
LVL 18

Expert Comment

by:mirtheil
ID: 16882481
I have never seen that error.  What version are you using on the "client" and the "server"?  
Do you get the same error if you connect to DEMODATA and issue a "SELECT * FROM CLASS".  
0
 
LVL 18

Expert Comment

by:mirtheil
ID: 16882485
One more thing.  Anything in the PVSW.LOG on the client or server?
0
 
LVL 1

Author Comment

by:mudskipperw
ID: 16882572
mirtheil...

i am using Pervasive v9.0 on both client and server.

my code works fine when i use the same database locally(i have also the database on client). it is whenever i connect to the Server.

and it used to work when i had win2000 on the client. however, i have changed it to win2003.

shizhen
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:mudskipperw
ID: 16882648
mirtheil... i cannot see anything unusual from the log file.
0
 
LVL 18

Expert Comment

by:mirtheil
ID: 16882808
I would REALLY suggest updating to at least PSQL 9.10 (or preferably PSQL 9.5).  

So if I'm reading this right, Win2000 works locally and remotely and Win2003 works locally but fails remotely.  Is that right?  
If so, and the remote server is the same in both cases the the problem is on the Win2003 machine.  
You might check for permission issues.  
Also, what's the values for:
$host
and
$db
0
 
LVL 1

Author Comment

by:mudskipperw
ID: 16882886
PSQL version is 9.10 on the remote server.

yes i only had this issure when calling the database remotely.

the remote server is only the database server. my php files are sitting on another win2003 server which is on the same local net work.
$host = "192.168.X.X" //ip address
$db is the database name.

the line odbc_connect is fine, i can even see a list of the tables.
but odbc_exec won't return anything!!!

thanks
0
 
LVL 18

Expert Comment

by:mirtheil
ID: 16882932
Okay, wait a second.  
What is the EXACT version of W3ODBCCI.DLL and W3ODBCEI.DLL on both the client and the server?  
Is it 9.10.xxx? or is it 9.00.xxx?  
DEMODATA is automatically created by the PSQL install.  DOes it work?
Make sure you're specifying the DATABASE name and not the ODBC DATA SOURCE name for the DBQ parameter?  
0
 
LVL 1

Author Comment

by:mudskipperw
ID: 16883008
the server has got 9.10.020.000
the client has 9.50.077.002

odbc_exec() returns the same error to database DEMODATA.

i have specified the database name correctly, otherwise odbc_tables wouldn't return a list of tables to me.

i can see so far tables, but not be able to do any queries.
0
 
LVL 18

Expert Comment

by:mirtheil
ID: 16883068
Okay.  The Client and Server really should be on the same version.  
Try uninstalling the 9.50 client and installing the 9.10 client.  Either that or update the 9.10 server to 9.50.  
Get them to the same level.
0
 
LVL 1

Author Comment

by:mudskipperw
ID: 16883070
i will try that. and see.
0
 
LVL 1

Author Comment

by:mudskipperw
ID: 16948064
the problem is solved updating both servers to SP2.
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 17586258
PAQed with points refunded (250)

DarthMod
Community Support Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question