Coder Social home page Coder Social logo

oracle-fmw's Introduction

oracle-fmw Cookbook

This cookbook lets you install and configure Oracle Fusion Middleware.

Support SOA and BPM 12c Quickstart distributions, and SOA and BPM Suite 11g.

Requirements

packages

  • java - oracle-fmw use java cookbook to install JDK 6/7
  • oracle-xe - oracle-fmw recommend to use oracle-xe to install Oracle XE and create a database instance

operating systems

  • oracle-fmw is tested to be used on Oracle Linux, Red Hat and Centos related distributions.

Attributes

11g version

oracle-fmw::prepare-environment-11g

Creates an OS user and group to run commands and install software.

Key Type Description Default
['fmw-11g']['os_user'] String OS user oracle-fmw
(*oracle* is not recommended if your are using *oracle-xe* cookbook before using *oracle-fmw*)
['fmw-11g']['os_installer_group'] String OS group oinstall
['fmw-11g']['os_timezone'] String OS Timezone. Used to avoid JDBC issue. America/Lima
['fmw-11g']['home'] String OS user home /home/#{node['fmw-11g']['os_user']}
['fmw-11g']['home'] String Middleware Home #{node['fmw-11g']['os_user_home']}/fmw/bpm_qs/#{node['fmw-11g']['version']}

oracle-fmw::install-wls-11g

Installs Oracle WebLogic Server 11g.

Key Type Description Default
['wls-11g']['home_directory'] String Name of WLS directory on Middleware Home wlserver_10.
['wls-11g']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/wls-11g/wls1036_generic.jar

oracle-fmw::install-soa-11g

Installs Oracle SOA Suite 11g.

Key Type Description Default
['soa-11g']['home_directory'] String Name of SOA directory on Middleware Home OracleSOA1
['soa-11g']['url_1'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/soa-11g/ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip
['soa-11g']['url_2'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/soa-11g/ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip

oracle-fmw::install-osb-11g

Installs Oracle OSB Suite 11g.

Key Type Description Default
['osb-11g']['home_directory'] String Name of SOA directory on Middleware Home OracleOSB1
['osb-11g']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/osb-11g/ofm_osb_generic_11.1.1.7.0_disk1_1of1.zip

oracle-fmw::create-rcu_repository-11g

Creates RCU repositories with Middleware required schemas.

Key Type Description Default
['rcu-11g']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/rcu-11g/ofm_rcu_linux_11.1.1.7.0_32_disk1_1of1.zip
['rcu-11g']['db_hostname'] String Database hostname or IP localhost
['rcu-11g']['db_port'] String Database listener port 1521
['rcu-11g']['db_service'] String Database service name XE
['rcu-11g']['db_dba_role'] String Database DBA role name sysdba
['rcu-11g']['db_dba_user'] String Database DBA username sys
['rcu-11g']['db_dba_password'] String Database DBA user password welcome1
['rcu-11g']['db_schemas_password'] String Password used by new schemas welcome1
['rcu-11g']['db_schema_prefix'] String Prefix used by new schemas DEV01
['rcu-11g']['components'] Array[String] Components to create a schema for [ #"SOAINFRA", #"MDS", #"ORASDPM" ]
['rcu-11g']['keep_existing_schema'] String Avoid recreating schemas if your are running provisioning several times true

oracle-fmw::create-domain-11g

Creates a new domain.

Key Type Description Default
['domain-11g']['name'] String Domain name DefaultDomain
['domain-11g']['domains_path'] String Domains directory /home/oracle-fmw/work/domains
['domain-11g']['apps_path'] String Applications directory /home/oracle-fmw/work/apps
['domain-11g']['start_mode'] String Domain start mode: dev or prod dev
['domain-11g']['admin_username'] String Domain admin username weblogic
['domain-11g']['admin_password'] String Domain admin password welcome1
['domain-11g']['db_repo_host'] String Database repository hostname or ip localhost
['domain-11g']['db_repo_port'] String Database repository listener port 1521
['domain-11g']['db_repo_sid'] String Database repository service name XE
['domain-11g']['db_repo_prefix'] String Database schemas prefix XE
['domain-11g']['db_repo_password'] String Database schemas password welcome1
['domain-11g']['apps'] Array[App] Applications to add to domain: SOA, BPM, BAM, OSB. Attributes: name (String), enabled (Boolean) [ {"name" : "SOA", "enabled" : true}, {"name" : "SOA_DEV", "enabled" : true}, {"name" : "BAM", "enabled" : true}, {"name" : "EM", "enabled" : true}, {"name" : "OSB", "enabled" : false}, {"name" : "OSB_DEV", "enabled" : false} ]
['domain-12c']['machines'] Array[Machine] WebLogic Machines: name, nm_address, nm_port []
['domain-12c']['admin_server'] Server WebLogic Server {"base_name" : "AdminServer", "new_name" : "bpm_bpm-server", "port" : "7001"}
['domain-12c']['managed_servers'] Array[Server] WebLogic Managed Servers. []

12c version

oracle-fmw::prepare-environment-12c

Creates an OS user and group to run commands and install software.

Key Type Description Default
['fmw-12c']['os_user'] String OS user oracle-fmw
(*oracle* is not recommended if your are using *oracle-xe* cookbook before using *oracle-fmw*)
['fmw-12c']['os_installer_group'] String OS group oinstall
['fmw-12c']['os_timezone'] String OS Timezone. Used to avoid JDBC issue. America/Lima
['fmw-12c']['home'] String OS user home /home/#{node['fmw-12c']['os_user']}
['fmw-12c']['home'] String Middleware Home #{node['fmw-12c']['os_user_home']}/fmw/bpm_qs/#{node['fmw-12c']['version']}

oracle-fmw::install-bpm_qs-12c

Installs Oracle BPM 12c Quickstart.

Key Type Description Default
['bpm_qs-12c']['version'] String Product version 12.1.3
['bpm_qs-12c']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/bpm_qs-12c/fmw_#{node['bpm_qs-12c']['version']}.0.0_bpmqs_Disk1_1of1.zip

oracle-fmw::install-soa_qs-12c

Installs Oracle SOA 12c Quickstart.

Key Type Description Default
['soa_qs-12c']['version'] String Product version 12.1.3
['soa_qs-12c']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/soa_qs-12c/fmw_#{node['soa_qs-12c']['version']}.0.0_soaqs_Disk1_1of1.zip

oracle-fmw::create-rcu_repository-12c

Creates RCU repositories with Middleware required schemas.

Key Type Description Default
['rcu-12c']['oracle_home'] String Oracle Home directory /home/oracle-fmw/fmw/bpm_qs/12c
['rcu-12c']['timezone'] String OS timezone America/Lima
['rcu-12c']['db_hostname'] String Database hostname or IP localhost
['rcu-12c']['db_port'] String Database listener port 1521
['rcu-12c']['db_service'] String Database service name XE
['rcu-12c']['db_dba_role'] String Database DBA role name sysdba
['rcu-12c']['db_dba_user'] String Database DBA username sys
['rcu-12c']['db_dba_password'] String Database DBA user password welcome1
['rcu-12c']['db_schemas_password'] String Password used by new schemas welcome1
['rcu-12c']['db_schema_prefix'] String Prefix used by new schemas DEV01
['rcu-12c']['components'] Array[String] Components to create a schema for [ "SOAINFRA", "OPSS", "IAU", "MDS", "WLS", "UCSUMS", "IAU_APPEND", "IAU_VIEWER" ]

oracle-fmw::create-domain-12c

Creates a new domain.

Key Type Description Default
['domain-12c']['name'] String Domain name DefaultDomain
['domain-12c']['domains_path'] String Domains directory /home/oracle-fmw/work/domains
['domain-12c']['apps_path'] String Applications directory /home/oracle-fmw/work/apps
['domain-12c']['mode'] String Domain mode: Expanded or Compact Expanded
['domain-12c']['start_mode'] String Domain start mode: dev or prod dev
['domain-12c']['admin_username'] String Domain admin username weblogic
['domain-12c']['admin_password'] String Domain admin password welcome1
['domain-12c']['db_repo_host'] String Database repository hostname or ip localhost
['domain-12c']['db_repo_port'] String Database repository listener port 1521
['domain-12c']['db_repo_sid'] String Database repository service name XE
['domain-12c']['db_repo_prefix'] String Database schemas prefix XE
['domain-12c']['db_repo_password'] String Database schemas password welcome1
['domain-12c']['apps'] Array[App] Applications to add to domain: SOA, BPM, BAM, OSB. Attributes: name (String), enabled (Boolean) [ {"name" : "SOA", "enabled" : true}, {"name" : "BPM", "enabled" : true}, {"name" : "BAM", "enabled" : true}, {"name" : "OSB", "enabled" : false} ]
['domain-12c']['machines'] Array[Machine] WebLogic Machines: name, nm_address, nm_port []
['domain-12c']['admin_server'] Server WebLogic Server {"base_name" : "AdminServer", "new_name" : "bpm_bpm-server", "port" : "7001"}
['domain-12c']['managed_servers'] Array[Server] WebLogic Managed Servers. []

Usage

Example to install Oracle BPM 12c and create a domain with SOA/BPM/BAM.

{
  "name" : "demo-bpm_bam-12c",
  "default_attributes" : {
    "domain-12c": {
      "name": "demo-bpm_bam-domain",
      "mode": "Compact",
      "apps": [
        {"name" : "SOA", "enabled" : true},
        {"name" : "BPM", "enabled" : true},
        {"name" : "BAM", "enabled" : true},
        {"name" : "OSB", "enabled" : false}
      ],
      "machines": [
      ],
      "admin_server": {
        "base_name" : "AdminServer",
        "new_name" : "bpm_bpm-server",
        "port" : "7001"
      },
      "managed_servers": [
      ],
      "db_repo_host": "localhost",
      "db_repo_port": "1521",
      "db_repo_sid": "xe",
      "db_repo_prefix": "DEMO",
      "db_repo_password": "welcome1"
    },
    "rcu-12c": {
      "db_schema_prefix": "DEMO",
      "db_dba_user": "SYS",
      "db_dba_role": "SYSDBA",
      "db_dba_password": "welcome1",
      "db_schemas_password": "welcome1",
      "db_hostname": "localhost",
      "db_port": "1521",
      "db_service": "xe",
      "components": [
        "SOAINFRA",
        "OPSS",
        "IAU",
        "MDS",
        "WLS",
        "UCSUMS",
        "IAU_APPEND",
        "IAU_VIEWER"
      ]
    }
  },
  "run_list" : [
  "recipe[oracle-fmw::install-bpm_qs-12c]",
  "recipe[oracle-fmw::create-rcu_repository-12c]",
  "recipe[oracle-fmw::create-domain-12c]"
  ]
}

More samples on chef-repo

Contributing

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Jorge Quilcate ([email protected])

oracle-fmw's People

Contributors

jeqo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

oracle-fmw's Issues

Alter Datasource Fails

scripts failing on below step.

[2016-01-15T12:39:38-05:00] INFO: Processing execute[/home/oracle-fmw/fmw/12c/wlserver/common/bin/wlst.sh /etc/ge/corp/local-mode-cache/cache/new_domain-12c.py ] action run (oracle-fmw::create-domain-12c line 61)
[2016-01-15T12:44:49-05:00] INFO: Running queued delayed notifications before re-raising exception
[2016-01-15T12:44:49-05:00] INFO: template[/etc/postfix/main.cf] sending restart action to servicepostfix
[2016-01-15T12:44:49-05:00] INFO: Processing service[postfix] action restart (postfix::_common line 123)
[2016-01-15T12:44:49-05:00] INFO: service[postfix] restarted
[2016-01-15T12:44:49-05:00] ERROR: Running exception handlers
[2016-01-15T12:44:49-05:00] ERROR: Exception handlers complete
[2016-01-15T12:44:49-05:00] FATAL: Stacktrace dumped to /etc/ge/corp/local-mode-cache/cache/chef-stacktrace.out
[2016-01-15T12:44:49-05:00] ERROR: execute[/home/oracle-fmw/fmw/12c/wlserver/common/bin/wlst.sh /etc/ge/corp/local-mode-cache/cache/new_domain-12c.py](oracle- fmw::create-domain-12c line 61) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /home/oracle-fmw/fmw/12c/wlserver/common/bin/wlst.sh /etc/ge/corp/local-mode-cache/cache/new_domain-12c.py ----
STDOUT: Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Creating Domain
Adding Templates
Creating Resources
Error: cd() failed. Do dumpStack() to see details.
STDERR: Problem invoking WLST - Traceback (innermost last):
File "/etc/ge/corp/local-mode-cache/cache/new_domain-12c.py", line 66, in ?
File "/etc/ge/corp/local-mode-cache/cache/new_domain-12c.py", line 16, in alterDatasource
File "/tmp/WLSTOfflineIni8269976080529373646.py", line 23, in cd
at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:56)
at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:2279)
at com.oracle.cie.domain.script.jython.WLScriptContext.cd(WLScriptContext.java:1069)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: java.lang.UnsupportedOperationException: Could not create generic operation:JDBCDriverParams
---- End output of /home/oracle-fmw/fmw/12c/wlserver/common/bin/wlst.sh /etc/ge/corp/local-mode-cache/cache/new_domain-12c.py ----
Ran /home/oracle-fmw/fmw/12c/wlserver/common/bin/wlst.sh /etc/ge/corp/local-mode-cache/cache/new_domain-12c.py returned 1
[2016-01-15T17:44:49+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Any thing i am missing here.

Create Domain failed

   Running handlers:
   [2015-03-25T13:37:26-05:00] ERROR: Running exception handlers
   Running handlers complete
   [2015-03-25T13:37:26-05:00] ERROR: Exception handlers complete
   [2015-03-25T13:37:26-05:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   Chef Client failed. 5 resources updated in 240.215734177 seconds
   [2015-03-25T13:37:26-05:00] ERROR: execute[/home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py] (oracle-fmw

::create-domain-12c line 58) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py ----
STDOUT: Initializing WebLogic Scripting Tool (WLST) ...

   Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not

return a prompt right away.

   Welcome to WebLogic Server Administration Scripting Shell

   Type help() for help on available commands

   Creating Domain
   Adding Templates
   Creating Resources
   Error: cd() failed. Do dumpStack() to see details.
   STDERR: Problem invoking WLST - Traceback (innermost last):
     File "/tmp/kitchen/cache/new_domain-12c.py", line 66, in ?
     File "/tmp/kitchen/cache/new_domain-12c.py", line 16, in alterDatasource
     File "/tmp/WLSTOfflineIni5449516747795960387.py", line 23, in cd
    at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:56)
    at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:2279)
    at com.oracle.cie.domain.script.jython.WLScriptContext.cd(WLScriptContext.java:1069)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)

   com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: java.lang.UnsupportedOperationException: Could not

create generic operation:JDBCDriverParams
---- End output of /home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py ----
Ran /home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py returned 1
[2015-03-25T18:37:27+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Converge failed on instance .
Please see .kitchen/logs/systinet-dev-Corp-OEL.log for more details
------Exception-------
Class: Kitchen::ActionFailed
Message: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json

below is the order i have been trying to install

include_recipe "oracle-fmw::prepare-environment-12c"
include_recipe "oracle-fmw::install-bpm_qs-12c"
include_recipe "oracle-fmw::create-rcu_repository-12c"
include_recipe "oracle-fmw::create-domain-12c"

create-domain-12c is failing

Hi, create domain script has failed for me with below error

Generated at 2015-05-12 08:47:15 -0500
Mixlib::ShellOut::ShellCommandFailed: execute[/home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py](oracle-fmw::create-domain-12c line 58) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py ----
STDOUT: Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Creating Domain
Adding Templates
Creating Resources
Error: cd() failed. Do dumpStack() to see details.
STDERR: Problem invoking WLST - Traceback (innermost last):
File "/tmp/kitchen/cache/new_domain-12c.py", line 66, in ?
File "/tmp/kitchen/cache/new_domain-12c.py", line 16, in alterDatasource
File "/tmp/WLSTOfflineIni1379176903898246675.py", line 23, in cd
at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:56)
at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:2279)
at com.oracle.cie.domain.script.jython.WLScriptContext.cd(WLScriptContext.java:1069)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: java.lang.UnsupportedOperationException: Could not create generic operation:JDBCDriverParams
---- End output of /home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py ----
Ran /home/oracle-fmw/fmw/bpm_qs/12c/wlserver/common/bin/wlst.sh /tmp/kitchen/cache/new_domain-12c.py returned 1
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.0/lib/mixlib/shellout.rb:267:in invalid!' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.0/lib/mixlib/shellout.rb:254:inerror!'
/opt/chef/embedded/apps/chef/lib/chef/mixin/shell_out.rb:50:in shell_out!' /opt/chef/embedded/apps/chef/lib/chef/provider/execute.rb:60:inblock in action_run'
/opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in call' /opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:inadd_action'

am i missing anything, could you please suggest if you have faced this error before

SOA Domain extend

How can i extend or create a new domain with this scripts.
I tried by running config.sh in SOA folder inside 12c, seems to be it didnt work since i dont have GUI interface. i tried with mode as silent, no luck.

Could you pls explain, how can i add soa or OSB or any other domain to the setup.
As im in cloud, i can use GUI interface, pls provide the details of silent installation for the setup

Setup file

Hi Jeqo,

I cant find the download link for the 12c SOA Setup.
Could you please share the link for the same.

Aslo i would like to talk with you in a call, please let me know, if we can talk

Regards
Sujan

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.