dsadm stop / start DataStage

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
zhaicaibing
Participant
Posts: 49
Joined: Wed Jun 11, 2003 12:49 am

dsadm stop / start DataStage

Post by zhaicaibing »

Hi,

I wonder dsadm can stop and start DataStage v6.0 on Sun Solaris 8 platform :?:

Is dsadm the supper user?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You have to have installed DataStage 6.0 as the dsadm user. There is a separate chapter in the installation guide on this.
The dsadm user is not the superuser, and does not have superuser privileges or effective user ID of 0. All the required adjustments are made to DataStage executables at installation time.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

We just did a couple installations of version 7.x on Solaris, the software was installed by the root user and afterwards the DataStage server could be stopped and started by the dsadm user. As Ray suggested you need to read the DataStage Upgrade Guide for the pre-installation steps for Solaris that outline setting up the dsadm user correctly so it can correctly administer your DataStage environment.
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: dsadm stop / start DataStage

Post by ogmios »

zhaicaibing wrote:Hi,

I wonder dsadm can stop and start DataStage v6.0 on Sun Solaris 8 platform :?:

Is dsadm the supper user?
So dsadm is not the super user. If you install DataStage as root some binaries are 'setuid'ed and run under root permissions but dsadm on itself is pretty harmless for the rest.

Ogmios
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The setuid thing happens even when installed by root.

You can also (in version 7.0 and later), install so that any other user ID "impersonates" the Administrator user. It's all in the manual. We've just installed 7.0 on AIX using user datastg as the Administrator.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Post by ogmios »

ray.wurlod wrote:The setuid thing happens even when installed by root.

...
This is what I meant, when you install as root some binaries get setuid to root and as a result the DataStage subprocesses are able to run using the userid that logs on to DataStage (root authority is required to switch ids).

When you don't install as root I doubt the subprocesses will run under the id you logged on with, they will "only" run under the dsadm user id as the DataStage server process won't be able to switch user ids on the subprocesses.

I have not yet installed a DataStage without being root.

Ogmios
MukundShastri
Premium Member
Premium Member
Posts: 103
Joined: Tue Oct 14, 2003 4:07 am

Post by MukundShastri »

Can you check if your dsadm user id created properly. I mean it should have 'dstage' as the primary group. Also check if 'dsadm' has execute access on 'uv' script in $dshome/bin directory.

Thanks

Mukund
zhaicaibing
Participant
Posts: 49
Joined: Wed Jun 11, 2003 12:49 am

stop and start DS using dsadm

Post by zhaicaibing »

That means I have done the right thing because I am using root to install datastage.
Please tell me in detail how can I make dsadm to be able to stop and start DS. I am using Sun Solaris and I am not very good at Sun Solaris, please guide me step by step.

Thanks
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: stop and start DS using dsadm

Post by ogmios »

If you install DataStage as root and have a correctly setup dsadm account it should be automatic.

Login in as dsadm and:

Code: Select all

cd `cat /.dshome`
cd bin
./uv -admin -start
To stop:

Code: Select all

cd `cat /.dshome`
cd bin
./uv -admin -stop
And then you have the issues of open connections when bouncing DataStage :D

Ogmios
zhaicaibing
Participant
Posts: 49
Joined: Wed Jun 11, 2003 12:49 am

stop / start datastage

Post by zhaicaibing »

What do you mean by correctly setup dsadm?
I have done this

1.) create the dstg directory
2.) create user dsadm but not manage to assign dstg as home directory
3.) use root to install datastage
4.) manage to assign dstg directory as dsamd's home directory

Now dsadm cannot stop and start. It looks like the step is wrong. But is there a way for solve the problem instead of reinstall?
How to give dsadm the permission?

Pleas help
zhaicaibing
Participant
Posts: 49
Joined: Wed Jun 11, 2003 12:49 am

Post by zhaicaibing »

Ogmios,

Please tell me what do you mean by correctly setup dsadm.
My setup might be wrong.
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Post by ogmios »

zhaicaibing wrote:Ogmios,

Please tell me what do you mean by correctly setup dsadm.
My setup might be wrong.
I guess we also have uv as root setuid program, this would explain why I can stop/start DataStage as dsadm :D

Ogmios
MukundShastri
Premium Member
Premium Member
Posts: 103
Joined: Tue Oct 14, 2003 4:07 am

Post by MukundShastri »

You need to contact your unix administrator:
Ask him the following:
1] Create user group 'dstage' and user id 'dsadm'.
2] make dstage as the primary group of dsadm
3] give read and write access to group 'dstage' for datastage directory in which you are installing dastage.

Now you can install with root.
There is nothing else you have to do so as 'dsadm' can get engine stop/start right..
Post Reply