Code Monkey home page Code Monkey logo

Comments (5)

biemond avatar biemond commented on September 20, 2024

Hi,

did you also do this
https://github.com/biemond/biemond-oradb#linux-kernel-ulimits-and-required-packages

like creating the oracle user and its groups because the oradb module won't do this because most people want to do this themselves.

Cheers

from biemond-oradb.

masterlf avatar masterlf commented on September 20, 2024

Hi,

Thank you for your fast answer. I think you point the finger exactly on what is wrong. My groups are created but my oracle user might not be. I will fix this and test it again to confirm.

Regards

From: Edwin Biemond [mailto:[email protected]]
Sent: 17 April 2015 12:59
To: biemond/biemond-oradb
Cc: masterlf
Subject: Re: [biemond-oradb] error related to home directory during install on 11.2.0.3 (#51)

Hi,

did you also do this
https://github.com/biemond/biemond-oradb#linux-kernel-ulimits-and-required-packages

like creating the oracle user and its groups because the oradb module won't do this because most people want to do this themselves.

Cheers


Reply to this email directly or view it on GitHub #51 (comment) . https://github.com/notifications/beacon/ALb8DgQcXY5WFtwIK2OAxuJbxYMCo-3rks5oANDIgaJpZM4ECnBq.gif

from biemond-oradb.

masterlf avatar masterlf commented on September 20, 2024

Hi
actually i checked and i confirmed the presence of the prerequisite where my oracle user is defined with /opt/oracle as well as the installdb base parameter. still like you can see in the logs /home/oracle is called...

if i am correct the issue might come from this piece of code where the home directory of the user is not really required but in my case i might have to redefine $userbasedir=/opt

code:

if ( $bashProfile == true ) {
  if ! defined(File["${userBaseDir}/${user}/.bash_profile"]) {
    file { "${userBaseDir}/${user}/.bash_profile":
      ensure  => present,
      # content => template('oradb/bash_profile.erb'),
      content => regsubst(template('oradb/bash_profile.erb'), '\r\n', "\n", 'EMG'),
      mode    => '0775',
      owner   => $user,
      group   => $group,
    }
  }
}

logs:
Error: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp
Error: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp
Wrapped exception:
No such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock
Error: /Stage[main]/Profile::Oracle::Server_11203/Oradb::Installdb[11.2.0.3_Linux-x86-64]/File[/home/oracle/.bash_profile]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp

from biemond-oradb.

biemond avatar biemond commented on September 20, 2024

Hi,

you can set userBaseDir to /opt/oracle or disable it by setting bashProfile to false.
Hope this will help.

Thanks

from biemond-oradb.

masterlf avatar masterlf commented on September 20, 2024

Hello,
i confirm that the following is the correct one to keep the bash script and using something else than /home as user directory:
::oradb::installdb { '11.2.0.3_Linux-x86-64':
version => '11.2.0.3',
file => 'p10404530_112030_Linux-x86-64',
databaseType => 'SE',
userBaseDir => '/opt',
oracleBase => '/opt/oracle',
oracleHome => '/opt/oracle/product/11.2/db',
user => 'oracle',
group => 'dba',
group_install => 'oinstall',
downloadDir => '/install',
remoteFile => true,
puppetDownloadMntPoint => "puppet:///modules/oradb/",
initfile => true,
}

thank you for your support, this was much appreciated.
cheers

from biemond-oradb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.