Oracle client Windows Installation

asked 2017-12-20 14:16:18 -0600

Mahender gravatar image

updated 2017-12-21 13:51:50 -0600

stivesso gravatar image

Hi,

Below is the complete the code snippet, while trying to install it gives the below error.

It is downloading but unable to extract and install and gives an error code below.

exit code of oui process 259= solutions.

class ora_client::windows::install (
  $oracle_version= '12c',
  $oracle_base= 'C:/data/app/oracle',
)  {
include ora_client
  $hostname='$::hostname'
  $disk='C'
if $oracle_version == '11g' {
  $artifactory_binary_path= 'repo-url'
  $binary_name= 'Oracle11g_client32'
  $response_file= 'client.rsp.11.2.erb'
  $oracle_home= "${oracle_base}/product/11.2.0/client_1"
}
elsif $oracle_version == '12c' {
  $artifactory_binary_path= 'repo-url'
  $binary_name= 'Oracle12g_client32'
  $response_file= 'client.rsp.12.1.erb'
  $oracle_home="${oracle_base}/product/12.1.0/client_1"
}
else {
  fail('OracleVersion Not Exists')
}
file{'Windows_OracleClient_folder':
  ensure => directory,
  path   => $oracle_base,
}
#file{'oracle_base_dir':
# ensure  => directory,
#  path    => $oracle_base,
#  require => File['Windows_OracleClient_folder'],
#}
pget{'download_oraclient':
  source   => $artifactory_binary_path,
  target   => $oracle_base,
  username => 'xxxx',
  password => 'xxxxx',
  timeout  => '10000',
  require  =>  File['Windows_OracleClient_folder'],
}
exec{'unzip_oracle':
  path    => $::path,
  command => "7z.exe x ${oracle_base}/${binary_name}.zip",
  cwd     => $oracle_base,
  timeout => '10000',
  require => Pget['download_oraclient'],
  creates => "${oracle_base}/${binary_name}",
  }
file{'silent_install_file':
  ensure  => present,
  path    => "${oracle_base}/${binary_name}/response/client_install.rsp",
  content => template("ora_client/${response_file}"),
  mode    => '0755',
  require => Exec['unzip_oracle'],
}
exec { 'InstallOracle':
  path     => $::path,
  cwd      => "${oracle_base}/${binary_name}",
  command  => "cmd /c setup.exe -silent -nowait -noconfig -responseFile C:/${oracle_base}/${binary_name}/response/client_install.rsp Start-Sleep 700",
  creates  => "${oracle_home}/network/admin/sqlnet.ora",
  timeout  => 1000,
  provider => powershell,
  require  => File['silent_install_file'],
}
}
edit retag flag offensive close merge delete

Comments

Hi! Could you include more relevant information in your post? Oracle Linux puppet client? What kind of oracle client? What modules are you using? Do you have a minimal manifest to represent your failure condition?

DarylW gravatar imageDarylW ( 2017-12-20 17:02:24 -0600 )edit

Hi DaryIW, Please find the below code snipped and the details. } exec{'unzip_oracle': path => $::path, command => "7z.exe x ${oracle_base}/${binary_name}.zip", cwd => $oracle_base, timeout => '10000', require => Pget['download_oraclient'], creates => "${oracle_base}/${binary_name

Mahender gravatar imageMahender ( 2017-12-20 17:16:55 -0600 )edit

Hi, Oracle client for windows server. It is for both 11g and 12c.

Mahender gravatar imageMahender ( 2017-12-20 17:18:18 -0600 )edit

after download. exec { 'InstallOracle': path => $::path, cwd => "${oracle_base}/${binary_name}", command => "cmd /c setup.exe -silent -nowait -noconfig -responseFile C:/${oracle_base}/${binary_name}/response/client_install.rsp Start-Sleep 700", creates => "${oracle_home}/network/a

Mahender gravatar imageMahender ( 2017-12-20 17:19:32 -0600 )edit

I've edited your code snipets into the above question, but they appear to have been cut off.. You can edit your question to update the code to properly reflect your problem. You also look like you are directly just downloading the file, manually unzipping it, and running an exec to install it. ...

DarylW gravatar imageDarylW ( 2017-12-21 08:21:09 -0600 )edit