Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > ORA-12592 TNS bad packet

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-03, 15:13
itlabmh itlabmh is offline
Registered User
 
Join Date: Apr 2003
Posts: 2
ORA-12592 TNS bad packet

Hello,

Two concurrent threads are executing an Proc/C++ program which insert data into Oracle 9.0
I always get this error of
ORA-12592 TNS bad packet when both of them are inserting into the database at the same time. One thread insets data into table1 and second thread into table 2 which has a refrential integrity constraint on table1.
Since the client program and database are on the same machine, I cannot understand why I should get a packet error.

Can someone tell me what the problem is and how to solve them....
Thanks
AK
Reply With Quote
  #2 (permalink)  
Old 04-25-03, 11:08
aarroyob aarroyob is offline
Registered User
 
Join Date: Apr 2003
Posts: 6
Have the fk an index created on it? Sure not.

The error probably is you have not desiggned correctly the application, so a deadlock take place and one of the two sessions is killed.

Cheers
Reply With Quote
  #3 (permalink)  
Old 04-25-03, 15:01
itlabmh itlabmh is offline
Registered User
 
Join Date: Apr 2003
Posts: 2
TNS BAD PACKET

Thanks for your reply.
But there is not deadlock at all.
Table1 is not depended on table2.
Table1's primary key is deviceid which is referenced by table2.
My script for creating the table is
create table tbDeviceDescription
(
txtDeviceID varchar(10) primary key,
txtDeviceType varchar(14) references tbDevice,
txtDeviceName varchar(100),
txtDeviceLocation varchar(100),
txtroomid varchar(10) references tbroom,
numPositionX number,
numPositionY number,
numPositionZ number,
numPositionH number,
numPositionP number,
numPositionR number
);

create table tbTransLoad
(
numTransID int primary key,
txtDeviceID varchar(10) references tbDeviceDescription,
txtStatus varchar(21),
txtPropertyValue int,
dtTransDateTime date,
txtCommandSource varchar(30)
);

And insert is done in the usual Proc/C++ Exec SQl insert.....
I am not able to see any problems anywhere.....
Thanks....
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On