473,378 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

SQL procedure tracing

Hi

I am trying to debug a stored procedure by using the source code given
by Serge in one of the DW article about SQL procedure tracing
(http://www-128.ibm.com/developerwork...dm-0409rielau/)

I am unable to get rid of these errors while linking the sqlpltrc
program using sqlpltrc.exp file on AIX 5.2, any help is appreciated.

xlc_r $EXTRA_CFLAG -qmkshrobj -o $1 $1.o -ldb2 -ldb2psmd
-L$DB2PATH/$LIB -bE:$1.exp
ld: 0711-319 WARNING: Exported symbol not defined: L
ld: 0711-244 ERROR: No csects or exported symbols have been saved.

Thanks
Prashant

Jul 10 '06 #1
4 2544
Prashant Sogarwal wrote:
Hi

I am trying to debug a stored procedure by using the source code given
by Serge in one of the DW article about SQL procedure tracing
(http://www-128.ibm.com/developerwork...dm-0409rielau/)

I am unable to get rid of these errors while linking the sqlpltrc
program using sqlpltrc.exp file on AIX 5.2, any help is appreciated.

xlc_r $EXTRA_CFLAG -qmkshrobj -o $1 $1.o -ldb2 -ldb2psmd
-L$DB2PATH/$LIB -bE:$1.exp
ld: 0711-319 WARNING: Exported symbol not defined: L
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
I'm far from an expert on the compiler, but are you sure
$DB2PATH/$LIB is set?

Cheers
Serge

PS: I thought I provided the binary for AIX (??)

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jul 10 '06 #2
Hi Serge,

Yes It is set, the error is same if you hard code the $DB2PATH/$LIB.

But Interestingly, I was able to compile by removing -bE:$1.exp, but I
don't know how valid the executable file is after removing the -bE
parameter.

Serge Rielau wrote:
Prashant Sogarwal wrote:
Hi

I am trying to debug a stored procedure by using the source code given
by Serge in one of the DW article about SQL procedure tracing
(http://www-128.ibm.com/developerwork...dm-0409rielau/)

I am unable to get rid of these errors while linking the sqlpltrc
program using sqlpltrc.exp file on AIX 5.2, any help is appreciated.

xlc_r $EXTRA_CFLAG -qmkshrobj -o $1 $1.o -ldb2 -ldb2psmd
-L$DB2PATH/$LIB -bE:$1.exp
ld: 0711-319 WARNING: Exported symbol not defined: L
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
I'm far from an expert on the compiler, but are you sure
$DB2PATH/$LIB is set?

Cheers
Serge

PS: I thought I provided the binary for AIX (??)

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jul 11 '06 #3
PS: The binaries are there for Windows32-bit and Linux Intel 32-bit

-Prashant
Serge Rielau wrote:
Prashant Sogarwal wrote:
Hi

I am trying to debug a stored procedure by using the source code given
by Serge in one of the DW article about SQL procedure tracing
(http://www-128.ibm.com/developerwork...dm-0409rielau/)

I am unable to get rid of these errors while linking the sqlpltrc
program using sqlpltrc.exp file on AIX 5.2, any help is appreciated.

xlc_r $EXTRA_CFLAG -qmkshrobj -o $1 $1.o -ldb2 -ldb2psmd
-L$DB2PATH/$LIB -bE:$1.exp
ld: 0711-319 WARNING: Exported symbol not defined: L
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
I'm far from an expert on the compiler, but are you sure
$DB2PATH/$LIB is set?

Cheers
Serge

PS: I thought I provided the binary for AIX (??)

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jul 11 '06 #4
Prashant Sogarwal wrote:
PS: The binaries are there for Windows32-bit and Linux Intel 32-bit
Tsk, tsk... now why did I do that??
Anyway the exp-file exports the symbols so without it I fear you will
get a SQLCODE -444 becaue the entry point is missing.
If you send me an email I should be able to bounce you back the executable.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jul 12 '06 #5

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

Similar topics

4
by: Mike | last post by:
Hello, I'm currently working on debugging a very large DTS package that was created by someone else for the purpose of importing data into my company's database. The data is mainly...
2
by: Trace User | last post by:
Hello, I have a design question regarding Tracing and Trace Switches. I understand that Trace Switches can be configured through an application's .config file. When a switch is instantiated,...
3
by: Serge Rielau | last post by:
Hi SQL Procedure developers, As threatened in earlier posts the SQL PL Tracing facility is finally oot-and-aboot. SQL procedure tracing: Analyzing SQL procedure flow This article describes an...
2
by: James Foreman | last post by:
I'm building a stored procedure that simulates cars arriving in a car park, and staying for different amounts of time, based on historical data. So, first I define a cursor that's populated by...
0
by: Paul Ibison | last post by:
HI when I have a page which calls a component I want to do the following - tracing set to false on the pag tracing set to true in the componen tracing set to false in the page after the call to...
6
by: serge calderara | last post by:
Dear all, I have an applicatin that generate a querry to an SQL server, then display results on a second webform. I try to see how tracing works, then I have notice that as soon as I...
2
by: deepukutty | last post by:
Hi all, I know tht we can do tracing in two ways.one in application level and the other is at Page level. I am able to see the details of trace either on the page itself or .../trace.axd page....
0
by: cnys | last post by:
We have an ASP.NET 2.0 (C#) app and we're trying to add tracing into it. The tracing functionality within .NET is great, but when we output this to a file, it's kind of sparse. So, we're looking...
0
by: rehto | last post by:
We have an ASP.NET 2.0 (C#) app and we want to enable tracing (see the code snippets below). The first time a user navigates to the app., the tracing works fine (the ASP.NET tracing appears on...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.