Trying to Connect to Universe database - FAILED

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Trying to Connect to Universe database - FAILED

Post by joycerecacho »

Hi everybody.

I am trying to execute a Query at theUniverse Database but the following message returns:

ReportJobCategory..DS_JOBS (OpenPath failed for - /opt/IBM/InformationServer/Server/branded_odbc):
ReportJobCategory..DS_JOBS.lnk_DS_JOBS: DSD.BCIOpenR call to function OCONV failed.


When the query is executed on Administrator (Command), the result is ok, but through ODBC stage this error is shown.

Query:
SELECT JOBNO, CATEGORY, NAME FROM DS_JOBS WHERE TRIM(JOBNO) <> '' AND TRIM(CATEGORY) <> '' ORDER BY CATEGORY, NAME, JOBNO;


What can it be?

Thanks, guys!!

Best Regards.
Joyce A. Recacho
São Paulo/SP
Brazil
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How are you describing the "UniVerse" database in .odbc.ini and uvodbc.config ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Have you considered using a Server job with the UV stage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Post by joycerecacho »

chulett wrote:Have you considered using a Server job with the UV stage? ...
Hi my friend.
Let me correct something.
Actually I am punctually working in a project wich they use server jobs. I forgot to mention this important point.

The thing is:
We have tested and both ODBC stage and universe stage return this error.
When we run a job that uses an Oracle stage, it runs ok. No warnings and right result.

Do you know what it can be?
I am talking about version 8.5 Enterprise Edition, but a server job.

Thanks anyway!!
Joyce A. Recacho
São Paulo/SP
Brazil
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... then we're not only in the wrong forum but your job type in your initial post is wrong. Let me fix both of those.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The UV stage wouldn't return that error as far as I know. What happens if you use the UV stage as a source and select "localuv" as the data source? I don't recall if you can select that from a list or if you have to type it in but it should work just fine.
-craig

"You can never have too many knives" -- Logan Nine Fingers
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Post by joycerecacho »

Chulett,
That's exactly what I have done.
Actually it is a very simple job where there is a universe stage as the source and its result goes to a sequential file.
The query is that one I mentioned above.
I've already changed the uvodbc.config letting that one wich was created during the instalation process (the default one) and the problem still happens.

I don't know which configuration could solve this.
Thank uuuu
Joyce A. Recacho
São Paulo/SP
Brazil
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Make sure that this entry appears in the project's uvodbc.config file.

Code: Select all

<localuv>
DBMSTYPE = UNIVERSE
In your UniVerse stage, specify localuv as the DSN.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Post by joycerecacho »

Hi my friend.
This command exists at the uvodbc.config and the DSN in the Universe stage is exactly like you mentioned.

Remembering that this error occurrs also with ODBC stages.
When it is an Oracle stage, the data returns ok.

Thanks guys!
Joyce A. Recacho
São Paulo/SP
Brazil
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Post by joycerecacho »

I found the problem guys!
The thing is that the file .odbc.ini was in a Windows format, with Windows 'end of lines': char 13, char 10.
When we changed it to Unix format, the job worked!!!

Tks guys for your help!
Joyce A. Recacho
São Paulo/SP
Brazil
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... how in the heck did you end up with DOS delimiters in your file? Are you transferring them to a PC for editing and then transferring them back rather than editing them directly on the UNIX server? If so, you needs to learn yourself some vi. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

You should have seen them thro' vi . The additional DOS character ( Carriage Return) will usually show up as ^M in vi. You may not be able to see it when you do "cat filename".

My favorite utility for control characters remains unix's "od"
od -c and od -x to be specific :)
Post Reply