must export the DB2INSTANCE before the connect to the database. This is need particularly for the daemon which cannot get it from the environement
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5230 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
127e59a6cd
commit
1921256e4c
@ -715,6 +715,10 @@ sub new
|
||||
$self->{connstring} =~ s/^/dbi:/;
|
||||
#return undef;
|
||||
}
|
||||
if ($xcatcfg =~ /^DB2:/) { # for DB2 ,export the INSTANCE name
|
||||
$ENV{'DB2INSTANCE'} = $self->{dbuser};
|
||||
}
|
||||
|
||||
my $oldumask= umask 0077;
|
||||
unless ($::XCAT_DBHS->{$self->{connstring},$self->{dbuser},$self->{dbpass},$self->{realautocommit}}) { #= $self->{tabname};
|
||||
$::XCAT_DBHS->{$self->{connstring},$self->{dbuser},$self->{dbpass},$self->{realautocommit}} =
|
||||
|
Loading…
Reference in New Issue
Block a user