Error 6 initializing SQL*Plus

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
svpurna
Participant
Posts: 3
Joined: Wed Dec 05, 2007 2:45 am

Error 6 initializing SQL*Plus

Post by svpurna »

Recently we have migrated our jobs to new server and imported the project to that server. It was running successfully before. Even now we are able to connect to sql but we are getting this error now. We did check for envorinmental variables in the profile and everything is set.

Error 6 initializing SQL*Plus Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

Please Help.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome!

If everything was set correctly, this error wouldn't occur. Have you configured your dsenv file correctly for Oracle?
-craig

"You can never have too many knives" -- Logan Nine Fingers
svpurna
Participant
Posts: 3
Joined: Wed Dec 05, 2007 2:45 am

Post by svpurna »

thanks a lot for reply.

I can run the other jobs in this project with the same setup and all.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

But do the other jobs access ORACLE? It sounds like a dsenv file problem that needs to be corrected by adding the Oracle libraries, paths and environment variables. When you run the job, the ENV settings are displayed. IS "ORACLE_HOME" set there?
svpurna
Participant
Posts: 3
Joined: Wed Dec 05, 2007 2:45 am

Post by svpurna »

We have used oracle stage in other jobs which are running fine. This particular error is popping up when executing a UNIX script with uses sqlplus..
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The same problem, the Oracle settings need to be set in your shell script as well.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly. Your script can make no assumptions about where it is or what environment variables are available. Source your dsenv file in the script or do something to set the proper variables up.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply