- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: oopss..look here Oracle Error with C program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2000 12:55 PM
тАО12-22-2000 12:55 PM
Got this error on a job that's been running with NO problems for the last 3 years !!! It is coded in C (which nobody still here knows...)
"Oracle 01458 - Oracle invalid length inside variable character string"
Has anyone seen this????
I can tell you the job does a qsort (which is not a reliable sort...), and that it blows off at different points, but nothing constant other than this error. The DBA's and the Programmers are about to the end of the line....
Everything I've checked is fine....no new patches have been added that might have affected it (libc). I am running out of things to try...
Will this week ever end???ha ha ha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2000 12:49 AM
тАО12-23-2000 12:49 AM
SolutionWhen you try to use a char[] variable in a C program, yo have to make sure of the following:
1. your variable has been given a size like in:
char my_string[64];
or by using malloc() if your variable has been defined as a pointer.
2. you're NOT trying to store more data that your variable can actually contain.
If you're trying to store more than 64 chars in the string my_string defined here above, you'll have a "segmentation violation" error if the surrounding code doesn't check it before.
The same could happen if you're addressing the (n + x)th element of an array defined with size n.
The error message could be that the surrounding oracle code is checking the size of the data BEFORE storing it in a variable, which is good practice.
As data contained in a database is by definition extremely variable, it is well possible that on of the latest records exceeds the hard coded limits. Maybe you simply never reached that limit before.
Try investigating which part of the code, putting some milestones like 'printf("my string is %s\n",my_string);'
This would allow you to know where the problem appears.
If you don't feel confident in doing this, don't hesitate to attach your code so that I could quickly check it if it's not too long. I used to be quite 'fluent' in C although "time flies"... ;-)
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2000 01:26 AM
тАО12-26-2000 01:26 AM
Re: oopss..look here Oracle Error with C program
Strings are defined as structure with
an array variable and a length variable.
sprintf(grant.arr,"GRANT CONNECT , DBA TO %s IDENTIFIED BY %s ",logint,logint);
grant.len=strlen(grant.arr);
Your variable.len must be invalid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2000 05:10 AM
тАО12-26-2000 05:10 AM
Re: oopss..look here Oracle Error with C program
see if this helps
ORA-01458: invalid length inside variable character string
Cause: An attempt was made to bind or define a variable character string with a buffer length less than the two-byte
minimum requirement.
Action: Increase the buffer size or use a different type.
obtained from http://www.cs.umbc.edu/help/oracle8/errmsg/A54625_01/newch2d.htm
Hope this helps
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2000 05:28 AM
тАО12-26-2000 05:28 AM
Re: oopss..look here Oracle Error with C program
It seems the problem was with the data (array) being corrupted by something introduced that was 'too small'.
A special thank you to Jon for the additional Oracle site info.
Regards,
Rita