Code Monkey home page Code Monkey logo

Comments (11)

pythiangoryunov avatar pythiangoryunov commented on July 2, 2024

and when 12... images were provided it tried to create 18c database

TASK [oraswdb-install : install-home-db | Install Oracle Database Server] ******
fatal: [racnode-dc2-1]: FAILED! => {"changed": true, "cmd": "/u01/app/oracle/18.3.0.0/db1-base/runInstaller -responseFile /u01/stage/rsp/18300-base_racnode-dc2-1.rsp -ignorePrereq -silent -waitforcompletion", "delta": "0:00:44.896041", "end": "2019-05-30 12:30:14.470079", "failed_when_result": true, "msg": "non-zero return code", "rc": 254, "start": "2019-05-30 12:29:29.574038", "stderr": "", "stderr_lines": [], "stdout": "Launching Oracle Database Setup Wizard...\n\n[FATAL] [INS-35363] Incompatible version of Oracle Grid Infrastructure detected.\n CAUSE: The active version of Oracle Grid Infrastructure detected on the system (12.2.0.1.0), is lower than the version of Oracle Real Application Database software that you were attempting to install(18.0.0.0.0).This is not supported.\n ACTION: If Oracle Grid Infrastructure is of older version, only Oracle Single Instance Database software can be installed. If you want to install Oracle Real Application Database software,you should upgrade Oracle Grid Infrastructure to same or higher version first.", "stdout_lines": ["Launching Oracle Database Setup Wizard...", "", "[FATAL] [INS-35363] Incompatible version of Oracle Grid Infrastructure detected.", " CAUSE: The active version of Oracle Grid Infrastructure detected on the system (12.2.0.1.0), is lower than the version of Oracle Real Application Database software that you were attempting to install(18.0.0.0.0).This is not supported.", " ACTION: If Oracle Grid Infrastructure is of older version, only Oracle Single Instance Database software can be installed. If you want to install Oracle Real Application Database software,you should upgrade Oracle Grid Infrastructure to same or higher version first."]}

NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @/vagrant/extra-provision/ansible-oracle/vbox-rac-dc2.retry

PLAY RECAP *********************************************************************
racnode-dc2-1 : ok=93 changed=55 unreachable=0 failed=1

from vagrant-vbox-rac.

oravirt avatar oravirt commented on July 2, 2024

I'll have a look.
Can you show me the contents of group_vars/vbox-rac-dc2/*, and also your hosts.yml?

from vagrant-vbox-rac.

pythiangoryunov avatar pythiangoryunov commented on July 2, 2024

Thank you Mikael,

it is just one yaml file underneath of group_vars for dc2

[andrey@angor group_vars]$ cd vbox-rac-dc2
[andrey@angor vbox-rac-dc2]$ ls -l
total 8
-rw-rw-r-- 1 andrey andrey 4948 May 30 10:45 vbox-rac-dc2.yml
[andrey@angor vbox-rac-dc2]$ pwd
/home/andrey/vag/oravirt/vagrant-vbox-rac/extra-provision/ansible-oracle/group_vars/vbox-rac-dc2
[andrey@angor vbox-rac-dc2]$

hosts.yml had variables for ...dc2 (those for ...dc1 were commented out):

  • basename_vm: racnode-dc2-
    num_vm: 2
    hostgroup: vbox-rac-dc2
    domain: internal.lab
    box: oravirt/ol75
    vagrant_user: vagrant
    vagrant_pass: vagrant
    vagrant_private_key:
    ram: 6196
    cpu: 1
    base_pub_ip: 192.168.7.20
    base_pub_ip_vip: 192.168.7.120
    scan_addresses: 192.168.7.220,192.168.7.221
    base_priv_ip: 172.16.7.20
    synced_folders:
    • {src: /software/oracle/12c, dest: /media/swrepo}
      #- {src: /Users/miksan/Downloads/oracle, dest: /media/swrepo}
      base_disk_path: /vm2
      create_local_disk: true
      local_disks:
    • {name: u01, size: 75, count: 1}
      create_shared_disk: true
      shared_disks:
    • {name: crs, size: 40, count: 1}
    • {name: data, size: 8, count: 1}
    • {name: fra, size: 8, count: 1}
      provisioning: extra-provision/ansible-oracle/vbox-rac-dc2.yml
      provisioning_env_override: false

from vagrant-vbox-rac.

oravirt avatar oravirt commented on July 2, 2024

Thanks, I’ll get back to you as soon as possible

from vagrant-vbox-rac.

oravirt avatar oravirt commented on July 2, 2024

I've fixed the configuration for vbox-rac-dc2 (https://github.com/oravirt/ansible-oracle/commits/master, the 3 last commits), so now it is the same as for vbox-rac-dc1
(I haven't had time to actually run through the installation, but I hope it will work ;-) )

So, do a git pull followed by ./update-repo.sh and you should have all the latest changes.

Let me know if you run into issues.
(Also, by default both configurations will install 18.3 (GI/DB)

from vagrant-vbox-rac.

pythiangoryunov avatar pythiangoryunov commented on July 2, 2024

thanks! I downloaded it again and uncomment 2nd part, noticed that fra got 1 disk (instead of 2 for dc1 RAC) and provisioning_env_override was false so might be it worth to have them the same as dc1

I started it to see what it would produce.

from vagrant-vbox-rac.

oravirt avatar oravirt commented on July 2, 2024

Thanks, fixed with 10ad314

from vagrant-vbox-rac.

pythiangoryunov avatar pythiangoryunov commented on July 2, 2024

thank you Mikael! I was able to install it.
I noticed that oracle homes named not quite as per OFA
(/u01/app/grid/product//grid - GI,
/u01/app/oracle//db1/ - RDBMS)
where I would rather used
/u01/app//grid for GI and /u01/app/oracle/product//db.. for RDBMS.

Is there any chance to put variables at command line or in yaml to replace default values for oracle home paths?

from vagrant-vbox-rac.

oravirt avatar oravirt commented on July 2, 2024

The GI ORACLE_HOME is defined via:
oracle_home_gi, and by default it is defined as:

GI-RAC: "/u01/app/{{ oracle_install_version_gi }}/grid"
GI-SI: "{{ oracle_base }}/{{ oracle_install_version_gi }}/grid"

But, you can set oracle_home_gi to whatever you choose, and that parameter is defined in the gi.yml file.

The DB ORACLE_HOME configuration is a bit more complex, as it consists of multiple configurations.
In db-homes.yml you have the following constructs:

db_homes_config:
  18300-base:   <--- REFERRED TO AS HOMEALIAS FURTHER DOWN
     home: db1-base
     # oracle_home: /path/to/wherever/     <--- THIS WILL OVERRIDE THE DEFAULT DESTINATION
     version: 18.3.0.0
     edition: EE
  12201-latest:
     home: db1-latest
     version: 12.2.0.1
     edition: EE
db_homes_installed:
     - home: 18300-base
       apply_patches: False
       state: present
    - home: 12201-latest
       apply_patches: False
       state: present

db_homes_config defines the various OH's you might have on a host/cluster and db_homes_installed decides if a home should be installed or not
For DB homes the default is (metacode):
{{ oracle_base }}/{{db_homes_config.HOMEALIAS.version }}/{{ db_homes_config.HOMEALIAS.home }}
e.g
/u01/app/oracle/18.3.0.0/db1-base
but, this can be overridden by the {{ db_homes_config.HOMEALIAS.oracle_home }} variable. If this is set, it has to be set to the complete path.

There are some things you can change on the vagrant commandline, but setting a different path for ORACLE_HOME is not one of them (I couldn't get it to work reliably). So if you want to change that you'll have to do it the 'ansible' way, by changing the group_vars config

from vagrant-vbox-rac.

pythiangoryunov avatar pythiangoryunov commented on July 2, 2024

Thanks!
it looks like by default for RAC installation GI path chosen as for SI since
it is /u01/app/grid/product/(version)/grid
and for RDBMS home to add product to the path it will be required modification of default path.

from vagrant-vbox-rac.

pythiangoryunov avatar pythiangoryunov commented on July 2, 2024

Hi Mikael,
I checked previously created VMs with RAC database and GI path there as per OFA - /u01/app/12.1.0.2/grid
but for dbs - /u01/app/oracle/(version)/db1
so might be somehow path for GI being taken as oracle restart in new version.

Anyway I ended up
oracle_home_gi: "/u01/app/{{ oracle_install_version_gi}}/grid",
oracle_home_db: "/u01/app/oracle/product/#{DBVER}/dbhome_1"
to ansible.extra_vars in Vagrantfile

from vagrant-vbox-rac.

Related Issues (5)

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.