473,795 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ORA-01480 problem

Hello,

I have the following piece of code in my server written in
C++ (CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-12 2002/12/16)
ProC++ (Pro*C/C++: Release 8.1.7.4.0)

~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~
RWCString tmp = "";
EXEC SQL BEGIN DECLARE SECTION;
char dbColValue[10];
short tmpnumber;

short tmpnumberInd;
short dbColValueInd;
EXEC SQL END DECLARE SECTION;

select Column1 into :dbColValue:dbC olValueInd from Table1;

if (dbColValueInd == -1)
tmp = "";
else
tmp = RWCString(dbCol Value).strip();

strcpy(dbColVal ue,tmp);

select 1 into :tmpnumber:tmpn umberInd from Table2 where Column2 =
:dbColValue;

~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~
I am getting intermittent ORA-1480 (Bind value not terminated by null)
error. A similar piece of code is working fine elsewhere. Cant find a
mistake in the code. Also, I am not able to replicate this error, but
is occurring intermittently.

Any help/ideas is highly appreciated.

Regards,
Ravi.

Dec 18 '06 #1
5 4445

ravi wrote:
Hello,

I have the following piece of code in my server written in
C++ (CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-12 2002/12/16)
ProC++ (Pro*C/C++: Release 8.1.7.4.0)

~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~
RWCString tmp = "";
EXEC SQL BEGIN DECLARE SECTION;
char dbColValue[10];
short tmpnumber;

short tmpnumberInd;
short dbColValueInd;
EXEC SQL END DECLARE SECTION;

select Column1 into :dbColValue:dbC olValueInd from Table1;

if (dbColValueInd == -1)
tmp = "";
else
tmp = RWCString(dbCol Value).strip();

strcpy(dbColVal ue,tmp);

select 1 into :tmpnumber:tmpn umberInd from Table2 where Column2 =
:dbColValue;
If that's C++, you need to cut back on the macros. --mpa

Dec 18 '06 #2

ravi wrote:
Hello,

I have the following piece of code in my server written in
C++ (CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-12 2002/12/16)
ProC++ (Pro*C/C++: Release 8.1.7.4.0)

~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~
RWCString tmp = "";
EXEC SQL BEGIN DECLARE SECTION;
char dbColValue[10];
short tmpnumber;

short tmpnumberInd;
short dbColValueInd;
EXEC SQL END DECLARE SECTION;

select Column1 into :dbColValue:dbC olValueInd from Table1;

if (dbColValueInd == -1)
tmp = "";
else
tmp = RWCString(dbCol Value).strip();

strcpy(dbColVal ue,tmp);

select 1 into :tmpnumber:tmpn umberInd from Table2 where Column2 =
:dbColValue;

~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~
I am getting intermittent ORA-1480 (Bind value not terminated by null)
error. A similar piece of code is working fine elsewhere. Cant find a
mistake in the code. Also, I am not able to replicate this error, but
is occurring intermittently.

Any help/ideas is highly appreciated.

Regards,
Ravi.
Take your issue to ORA's forums, this has got nothing to do with C++.
There is no such thing as a RWCString either (whatever that is).

Dec 18 '06 #3
If that's C++, you need to cut back on the macros. --mpa

Could you please elaborate on what you mean by macros? Thanks.
My guess is that strcy(oracle_ch ar_var,RWCStrin g) is not working
properly.
Both are structures and not char *. I am not sure if the implicit cast
is working properly.
Also, I am not sure if it is the best way to copy the information. Unit
testing this part alone produced proper results without any anomalies.

The frustrating part is that it is intermittent and hence finding it
extremely hard to replicate. Any ideas for replication are also
appreciated.

Do you see any memory leakage problems with the code?

Ravi.

Dec 20 '06 #4

Salt_Peter wrote:
Take your issue to ORA's forums, this has got nothing to do with C++.
There is no such thing as a RWCString either (whatever that is).
Thanks for the suggestion. I have posted the query in oracle forum
also.
btw, RWCString a Rogue Wave String class for C++. Google for it for
more information.
Thanks again !

Regards,
Ravi

Dec 20 '06 #5
ravi schreef:
Salt_Peter wrote:
Take your issue to ORA's forums, this has got nothing to do with C++.
There is no such thing as a RWCString either (whatever that is).

Thanks for the suggestion. I have posted the query in oracle forum
also.
btw, RWCString a Rogue Wave String class for C++.
There are quite a few string classes for C++, but there is only one C++
(ok, there's a 2003 service pack :) )
Hence, in comp.lang.c++ we don't know all string classes, but I bet
Rogue Wave is familiar with C++ if they're writing C++ classes. So if
your question is about RW products in combination with C++, the
best place is to ask RW. If with Oracle, ask Oracle, etc.

HTH,
Michiel Salters

Dec 20 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
32238
by: Subrahmanyam Arya | last post by:
Dear oracle gurus, I am unable to get past the error ORA-12154: TNS: could not resolve service name on my host when using hsodbc to talk to a remote mysql database. i got from the meta link all the needed documenatation to configure inithsodbc.ora,listener.ora,tnsnames.ora and related errors Here is what it says ORA-12154: SQL> select * from all_catalog@demo;
1
26795
by: Galina | last post by:
Hello I have created a trigger not to let records with certain fields null to be inserted into the table: BEGIN IF :new.RUL_CODE is null or :new.FES_UINS_CODE is null or :new.FES_UIO_CALOCC is null then RAISE_APPLICATION_ERROR(-20000,'Record is not saved. Check course record and try to save again.'); end if;
6
15632
by: John | last post by:
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied Tested on a Windows XP client connecting to Oracle on an AIX server. Using toad and sqlplusw Everything working fin connecting to other 8.1.7 Oracle servers on windows
6
4697
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
2
25841
by: Sheela | last post by:
I am trying to access the tables of a remote database(db2) from db1 database. I am getting the following error: ORA-12154: TNS:could not resolve service name I tried tnsping the db2 service_name and it is working. I created a dblink like this at db1. CREATE DATABASE LINK db2.oracle.com
4
4827
by: Tig | last post by:
Hi all. I have a need to connect to an Oracle 7.3.3.5 database. I have a user who successfully connects to it with her Oracle 7.3 client. I have an Oracle 9.2 client installed on my machine. I had her send me her tnsnames.ora from her PC. The entry I wanted was as follows (some letters replaced with xxx for security reasons): xxxora2_prod2 = (DESCRIPTION=
0
1485
by: DavidTurcotte | last post by:
Hi I have been working on this bugs for the last 2 days and i am out of gas. i have a ORA-12154: TNS:could not resolve service name error message when i try to acces an Oracle database The same piece of code work in VB.NET
2
14624
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_p004_626740.trc: ORA-07445: exception encountered: core dump Wed Sep 20 12:31:12 2006 Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_pmon_643152.trc: ORA-00600: internal error code, arguments: , , , , , , , ORA-27302: failure occurred at: skgslfr Wed Sep 20 12:31:22 2006 Errors...
2
43665
by: Dwie | last post by:
Dear All, I'm a new in Oracle DB. I'm using Windows 2000 as server and Windows XP as client. I installed Oracle Enterprise on server and Oracle 8.1 on clients. I have some client with 2 different IP address, 172.16.xx.xx and 192.168.xxx.xx whices I want to connect to the server DB. How can I set the Listener.ora & Tnsnames.ora so all clients could connect to server. Right now I can connect just only one IP and the other IP is offline, but...
0
3499
by: wolfee | last post by:
I'm running 10gR2 RAC in Prod, Test and DEV and after doing a clone to the DEV environment I'm getting a wierd ORA-12514 error for only one node. I can tnsping the node and it comes back fine. Oracle Home is shared, so I'm using the same listener.ora file and tnsnames.ora file from both nodes. I can connect using sqlplus @<node1> fine and @<service name> fine but when I try to connect @<node2> I get the ORA-12514. This is odd because I have...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.