Wednesday Oct 15, 2014

Critical Patch Update for Oracle Fusion Middleware - CPU October 2014

The latest Critical Patch Update (CPU) has been released for Oracle products. Start your reading here

Critical Patch Updates, Security Alerts and Third Party Bulletin 

This is the home page containing links to all "Critical Patch Updates" released to date, along with sections detailing 

  • Security Alerts 
  • Third Party Bulletin
  • Public Vulnerabilities Fixed
  • Policies
  • Reporting Security Vulnerabilities

On this page you will find the link to the

Oracle Critical Patch Update Advisory - October 2014

The advisory lists the support documents that cover the patch availability for all Oracle products. For Oracle Fusion Middleware, go to:

Patch Set Update and Critical Patch Update October 2014 Availability  [ID [1912224.1]

If you are hit any unexpected errors when applying the CPU patches, check out the known issues documented in these two support documents.

  • Critical Patch Update October 2014 Oracle Fusion Middleware Known Issues  [ID 1912243.1]
  • Critical Patch Update October 2014 Database Known Issues [ID 1911781.1]

And lastly, for an informal summary of what the Critical Patch Update fixes, check out the blog posts by "Oracle Software Security Assurance" team

October 2014 Critical Patch Update Released

Thursday May 15, 2014

Become an Oracle Fusion Middleware Support Specialist!

My Oracle Support Accreditation Series

My Oracle Support Accreditation Series delivers a targeted learning experience that is designed to increase your expertise with My Oracle Support core functions and build skills to help you leverage Oracle product solutions, tools, and knowledge. The accreditation framework is targeted at customers and partners who have actively used My Oracle Support for at least 6-9 months.

The Level 1 path focuses on My Oracle Support functionality and features - foundation learning before you take on one or more product specific level 2 paths - Database, E-Business Suite, Fusion Middleware, and Business Analytics.



Oracle Fusion Middleware Accreditation Series (Level 2) path will help you:
  • Understand how Oracle Fusion Middleware products are supported
  • Find solutions and answers to Fusion Middleware issues more quickly in My Oracle Support
  • Learn the essentials of install, upgrade, and maintenance planning
  • Become aware of resources and diagnostics tools
Accreditation is achieved by watching the videos before taking an online exam. Questions in the exam are based on the information delivered in the videos.

Get started today by visiting the My Oracle Support document:

My Oracle Support Accreditation - Series Index [ID 1583898.1]

Monday May 12, 2014

Critical Patch Update for Oracle Fusion Middleware - CPU April 2014

The latest Critical Patch Update (CPU) has been released for Oracle products. Start your reading here

Critical Patch Updates, Security Alerts and Third Party Bulletin 

This is the home page containing links to all "Critical Patch Updates" released to date, along with sections detailing 

  • Security Alerts 
  • Third Party Bulletin
  • Public Vulnerabilities Fixed
  • Policies
  • Reporting Security Vulnerabilities

On this page you will find the link to the

Oracle Critical Patch Update Advisory - April 2014

The advisory lists the support documents that cover the patch availability for all Oracle products. For Oracle Fusion Middleware, go to:

Patch Set Update and Critical Patch Update April 2014 Availability  [ID [1618213.1]

If you are hit any unexpected errors when applying the CPU patches, check out the known issues documented in these two support documents.

  • Critical Patch Update April Oracle Fusion Middleware Known Issues  [ID 1618208.1]
  • Critical Patch Update April 2014 Database Known Issues [ID 1615881.1]

And lastly, for an informal summary of what the Critical Patch Update fixes, check out the blog posts by "Oracle Software Security Assurance" team

April 2014 Critical Patch Update Released

Thursday Mar 13, 2014

New Java Collections in Remote Diagnostic Agent (RDA) 8.03

What is RDA?

Not familiar with RDA (Remote Diagnostic Agent)? Learn more, take a look at :

Resolve Problems Faster! Use Remote Diagnostic Agent - Fusion Middleware and WebLogic Server [ID 1498376.1

RDA 8.03

RDA 8.03 was released on March 11th 2014. The download links can be found in the support document referenced above. Changes / fixes / enhancements in this version can be found in "RDA Release Notes [ID 414970.1]". In particular, there are new data collection profiles for:

  • Glassfish Server
  • Business Intelligence Applications
  • Oracle Identity Manager

And here are some other Fusion Middleware product highlights:

     Product  Enhancement
     WebLogic
    • Included Oracle Java Virtual Machine-related information
    • MBean configuration values collected even if WLST connection to Admin Server fails.
    Oracle Internet Directory
    • Added replication information
    • Added WebLogic process information
    • Added DIP profile configuration information
    SOA Suite
    • Extended MBean collections (via WLST)
    • Support finding of DB details from multiple data sources
    • Included version information
    Oracle Service Bus
    • Extended MBean collections (via WLST)

    New JVM Diagnostic Collections - WebLogic Server and Glassfish

    A significant addition to the WebLogic and Glassfish data collection set is the capture of JVM related information. RDA 8.03 does the following:

    • harvests JVM information from the log files
    • makes best efforts to find and collect garbage collection and JVM crash logs
    • identifies the JVM pid and leverages os (unix only) and JDK tools to capture diagnostic information such as heap summary, process map, address space and native thread stack.

    Screenshots of JVM Related Info collections in RDA

    Currently these new java collections are performed by RDA if run against a result set configuration created using the WebLogicServer or GlassFishServer profiles - example:

    Create a WebLogicServer profile result set configuration. In this example, we will use the '-s' to explicitly name the result set configuration rather than leave RDA to create the result set configuration using the default name - output.cfg

    rda.sh -S -s mywlscollection -p WebLogicServer

    Run the collection:

    rda.sh -s mywlscollection

    Instructions to view the output will be provided in the standard out after the collection is complete.

    Friday Feb 28, 2014

    Read all about it! March 2014 Edition of Middleware Support News

    March 2014 edition of "Oracle Fusion Middleware Support News" is published!

    Image of FMW Support News

    Oracle Fusion Middleware Support News : Current Edition - Volume 11 : March 2014 [ID 1347075.1]

    Highlights:

    • Reasons for upgrading to Oracle Forms 11g Release 2 …
    • Remote Diagnostic Agent Now Available in OPatch Format …
    • WebCenter Content Clustering and High Availability …
    • WebCenter Customer Advisory Board (CAB) Meetings in March and April, 2014 …
    • Critical Patch Update For Oracle Fusion Middleware - CPU January 2013 …
    • Oracle Fusion Middleware - Proactive Patching Corner …
    • Fusion Middleware Proactive Support Blogging …
    • And Finally ... New Look Support Communities! …

    Note: My Oracle Support login is required to view the Support News article.

    Tuesday Jan 21, 2014

    Critical Patch Update for Oracle Fusion Middleware - CPU January 2014

    The latest Critical Patch Update (CPU) has been released for Oracle products. Start your reading here

    Critical Patch Updates, Security Alerts and Third Party Bulletin 

    This is the home page containing links to all "Critical Patch Updates" released to date, along with sections detailing 

    • Security Alerts 
    • Third Party Bulletin
    • Public Vulnerabilities Fixed
    • Policies
    • Reporting Security Vulnerabilities

    On this page you will find the link to the

    Oracle Critical Patch Update Advisory - January 2014

    The advisory lists the support documents that cover the patch availability for all Oracle products. For Oracle Fusion Middleware, go to:

    Patch Set Update and Critical Patch Update January 2014 Availability Document [ID 1594621.1]

    If you are hit any unexpected errors when applying the CPU patches, check out the known issues documented in these two support documents.

    • Critical Patch Update January 2014 Oracle Fusion Middleware Known Issues  [ID 1594610.1]
    • Critical Patch Update January 2014 Database Known Issues [ID 1593192.1]

    And lastly, for an informal summary of what the Critical Patch Update fixes, check out the blog posts by "Oracle Software Security Assurance" team

    January 2014 Critical Patch Update Released

    Thursday Dec 19, 2013

    RDA not working due to Perl being unavailable or inaccessible?

    What is RDA?

    Not familiar with RDA (Remote Diagnostic Agent)? Learn more, take a look at :

    • Resolve Problems Faster! Use Remote Diagnostic Agent - Fusion Middleware [ID 1498376.1]

    The Perl Problem 

    RDA is written in perl. If RDA cannot find Perl 5.005 or above, you may see one of the following messages:

    Error: ORACLE_HOME is not set
    Please set your ORACLE_HOME.

    or 

    Error: Perl not found in the PATH or in known folder locations.
    Although the default RDA engine requires Perl, a compiled version without Perl requirements is available.
    Please download the platform-specific RDA engine from My Oracle Support and place it within the top folder of your RDA installation.

    To work around you can configure RDA to use a compiled binary engine. The compiled engine is available for most platforms and is shipped as part of the RDA / OCM bundle. Find the engine binary in "RDA_HOME/engine".

    Good news! RDA 8.02 auto-enables the compiled engine

    The recently released RDA 8.02 automatically enables the compiled engine should RDA determines Perl is not available, accessible or valid. If you are reading this blog, having experienced the messages above or other perl errors, the likelihood is that you are using an older version of RDA. Upgrade to 8.02 now to benefit from this enhancement and others!

    Earlier versions of RDA require the compiled engine to be manually enabled if RDA is not able to use Perl.  

    Reference: 
    How to Manually Enable the Remote Diagnostic Agent ( RDA ) Compiled Engine .. [ID 1603021.1]

    Using RDA 8.02 and the perl problem described above still reproduces? Check the following:

    1. Does "RDA_HOME/engine" contain a compiled engine binary (rda_<platform> e.g rda_linux) and a rda.cfg.

    • You may have downloaded RDA standalone rather than the RDA / OCM Bundle. Or, you are working on a platform for which no compiled engine is available.

    2. Does the os user have read / write privileges to:

    • the directory from which they are launching the RDA command script
    • the RDA_HOME/engine/rda.cfg 

    3. Are you able to manually enable the compiled engine as per the instructions given in  [ID 1603021.1]

    Monday Nov 18, 2013

    Fusion Middleware Error Correction Policy - Have You Got a Patch and Maintain Strategy?

    It is not uncommon to come across Fusion Middleware 11g product solutions which do not have the latest patch set applied. Example: a business has a SOA Suite 11.1.1.3 in production. The solution has been working fine for three years, and then new business requirements forces an application change. The change, unfortunately, breaks rather than enhances existing functionality. A Service Request is logged with My Oracle Support and the business receive the news that the problem is caused by a bug, a patch for which is available. "Good news!" But, it is a patch which can only be applied against the latest patch set. Furthermore, the fix will not be backported to 11.1.1.3. "Oh .. really .. why can't we get a fix for the patch set we are on? Lifetime Support Policy - Level: Premier Support - has not yet expired for 11g."

    The business has been blissfully unaware of the Server Technology Products Software Error Correction Policy.  This document describes the different types of patches which Oracle may release for products and the policies which surround them. It is particularly important, however, to read the product line specific advice found in the Appendix. To part quote, the advice for Oracle Fusion Middleware:

    Grace Period: up to 1 year, minimum 3 months.

    You have up to one year from the initial release of the patch set to install the new patch set, and can receive new bug fixes for the previous patch set during that time ...

    For details (including links to documents containing error correction dates for specific products and patch sets), see

    Error Correction Support Dates for Oracle Fusion Middleware (10g/11g/WLS) (Doc ID 944866.1).

    In 944866.1, you will find a link to

    Error Correction Support Dates for Oracle Fusion Middleware 11g (11.1.1/11.1.2) (Doc ID 1290894.1)

    which shows that the error correction grace period for Fusion Middleware (which covers SOA) 11.1.1.3 ended in January 2012. This explains why, in our scenario above, the business will need to first apply the latest available patch set, followed by the interim patch in order to fix their issue.

    In conclusion, having a patch and maintain strategy is essential. Maintaining Fusion Middleware products at the latest major version and/or patch set release + updates has the following benefits:

    • Proactively applying the latest patch set and updates can avoid problems and therefore minimize downtime.
    • It can reduce the time taken to consume or obtain fixes for new issues.

    If you are using Oracle Fusion Middleware 11g, bookmark and regularly review:

    Information Center: Patching and Maintaining Oracle Fusion Middleware 11g (Doc ID 1341616.2)

    Screenshot of Information Center: Patching and Maintain Fusion Middleware 11g

    This Information Center contains links to knowledge articles which discuss the Error Correction policy and list Error Correction end dates. The Information Center is also a one stop shop for links to patch and patch set collateral:

    • Patch Set Release Announcements
    • Patch Set Updates (including Critical Patch Update) information
    • Patching Documentation 
    • And more ..

    Get proactive, know your error correction end dates and put in a place a strategy to keep your product up to date with the latest patch set and updates.

    Thursday Oct 31, 2013

    Critical Patch Update for Oracle Fusion Middleware - CPU October 2013

    The latest Critical Patch Update (CPU) has been released for Oracle products. Start your reading here

    Critical Patch Updates, Security Alerts and Third Party Bulletin 

    This is the home page containing links to all "Critical Patch Updates" released to date, along with sections detailing 

    • Security Alerts 
    • Third Party Bulletin
    • Public Vulnerabilities Fixed
    • Policies
    • Reporting Security Vulnerabilities

    On this page you will find the link to the

    Oracle Critical Patch Update Advisory - October 2013

    The advisory lists the support documents that cover the patch availability for all Oracle products.

    For Oracle Fusion Middleware, go to:

    Patch Set Update and Critical Patch Update October 2013 Availability Document [ID 1571391.1]

    If you are hit any unexpected errors when applying the CPU patches, check out the known issues documented in these two support documents.

    • Critical Patch Update October 2013 Oracle Fusion Middleware Known Issues  [ID 1571369.1]
    • Critical Patch Update October 2013 Database Known Issues [ID 1571653.1]

    And lastly, for an informal summary of what the Critical Patch Update fixes, check out the blog posts by "Oracle Software Security Assurance" team

    October 2013 Critical Patch Update Released

    Monday Oct 07, 2013

    RDA 8.01 - Now A Better Experience for WebLogic Administrators

    What is RDA?

    Not familiar with RDA (Remote Diagnostic Agent)? Well I won't use this blog entry to provide a lesson, but if you want to learn more, take a look at these two support articles:

    • Get Proactive with Fusion Middleware : Resolve Problems Faster! Use Remote Diagnostic Agent [ID 1498376.1]
    • How to Run Remote Diagnostic Agent ( RDA ) Against Oracle WebLogic Server ( WLS ) [ID 1262157.1]

    Too many questions in set up

    "I have to answer too many questions at set up time!". The first of two criticisms leveled at a RDA collection which targeted a WebLogic Server based technology stack. Well I pleased to say that the number of questions of has been reduced.

    If, for example, you set up RDA using the "WebLogicServer" profile, you will encounter a set up dialogue similar to the one copied / pasted from a Weblogic 12c solution, on Unix, below.

    Tip: Work through the set up questions a little quicker by configuring your environment variables to point at your Middleware Home and location of your WebLogic domain prior to running RDA set up. Doing so, allows RDA to find default values for certain questions, which means you can just hit return and move on.

    # Setting the environment
    
    . /home/oracle/app/FMW12c_1212/config/user_projects/domains/my_domain/bin/setDomainEnv.sh
    ORACLE_HOME=/home/oracle/app/FMW12c_1212/oh; export ORACLE_HOME
    
    # Running RDA set up 
    
    cd /home/oracle/software/rda
    ./rda.sh -S -p WebLogicServer
     
    # Set up dialogue
    Enter the network domain name for this server
    > uk.acme.com
    
    Enter the Oracle home to be used for data analysis
    Hit "Return" to accept the default (/home/oracle/app/FMW12c_1212/oh)
    > 
    
    Enter the location of the directory where the domains to analyze are located
    (For example in UNIX, <BEA Home>/user_projects/domains or 
    <Middleware Home>/user_projects/domains)
    Hit "Return" to accept the default
    (/home/oracle/app/FMW12c_1212/config/user_projects/domains)
    > 
    For a successful WLS connection, ensure that the domain Admin Server is up 
    and running.
    
    Data Collection Type:
      1  Perform offline collection
      2  Perform online collection (using WLS connection)
    
    Enter the item number
    Hit "Return" to accept the default (2)
    > 
    
    Select a Oracle WebLogic Server domain home target list:
      1  Domain my_domain (in
         /home/oracle/app/FMW12c_1212/config/user_projects/domains)
    
      A  All Oracle WebLogic Server domain home targets
      D  Define a new Oracle WebLogic Server domain home target
      E  Edit an Oracle WebLogic Server domain home target
      N  No Oracle WebLogic Server domain home targets
     
    Enter your selection, as a comma-separated list of item numbers or ranges
    Hit "Return" to accept the default (1)
    > 
    
    Server list for 'my_domain' domain:
      1  AdminServer
      2  ms3
    Enter your selection, as a comma-separated list of item numbers or ranges
    Hit "Return" to accept the default (1-2)
    > 
    Are custom scripts used to start Oracle WebLogic servers (Y/N)?
    Hit "Return" to accept the default (N)
    >
    
    # The next prompt concerns OCM. You are not required to configure OCM. 
    # If time is short, just answer 'N'
    
    RDA benefits from Oracle Configuration Manager by improving its 
    data collection. Oracle Configuration Manager (OCM) collects the 
    configuration information and uploads it to the OCM Repository 
    in connected mode. When OCM is configured in disconnected mode, it 
    adds the OCM payload to the RDA report packages in future RDA runs.
    
    Pending Configurations in /home/oracle/app/FMW12c_1212/oh:
      MH_T0001  Middleware home /home/oracle/app/FMW12c_1212/oh
    
    Hit 'Return' to continue
    
    Do you want RDA to configure OCM now (Y/N)?
    Hit "Return" to accept the default (Y)
    > N
    
    
    # After answering the prompts set up will be complete. 
    # Now just launch the command line script (no parameters) 
    # to run the collection
    
    ./rda.sh 

    "Cannot see the wood for the trees" in the output

    This is the second of the criticisms. RDA does collects many files and metrics - this is one its strengths. Yet I think it is fair to say that the presentation of WebLogic Server data in the RDA Start Menu (generated as part of the output) lacked some order and structure. For example, server log files were somewhat buried, and similarly, unless you knew to scroll down to WLST collections, you could not easily ascertain the basic contents of a targeted Weblogic domain. In RDA 8.01, the sub menus for the WebLogic Domain and Servers have been re-ordered to address this concern. Review the screenshots below.

    Figure 1 : WebLogic Domain Sub Menu


    Note: In the Main Index, RDA will only list managed servers which have been targeted for collection. In this example, only AdminServer and ms3 were targeted for collection. Yet we can see from the Domain MBeans that the domain contains other managed servers and a cluster. 

    Figure 2 : MBean Drill Down Example - Admin Server State

    Figure 3: WebLogic Server Sub Menu


    To take advantage of these changes download the latest version of RDA. The download links can be found in

    Get Proactive with Fusion Middleware : Resolve Problems Faster! Use Remote Diagnostic Agent [ID 1498376.1]

    Monday Sep 16, 2013

    OOW 2013 - Sessions Focused on Support Services and Oracle Fusion Middleware


    Only a few days to go and Oracle OpenWorld 2013 will be upon us! Oracle Support and Services will be at Oracle OpenWorld in full force this year with 500 Services experts, 40+ sessions, a Support Stars Bar, a My Oracle Support Community Meet up, and demos of powerful new support tools. Learn best practices for maintaining Oracle Fusion Middleware, how to utilize Oracle Fusion Middleware products in a private cloud environment, tips for running Oracle Fusion Middleware in critical environments, and more. Go here a listing of Fusion Middleware specific sessions - for example:

    Conference Sessions

    Best Practices for a Private Cloud with Oracle Fusion Middleware

    Running Oracle Fusion Middleware in Critical Environments: Tips from SWIFT

    Best Practices for Maintaining Oracle Fusion Middleware

    Demo

    Migration Tools and Resources for Oracle Fusion Middleware

    And more

    There is also a My Oracle Support Meet Up Event" on Monday, Sep 23 and do come visit the Support Stars Bar - Monday 23rd through to Wednesday 25th

    To all going, have an enjoyable OpenWorld 2013!

    Friday Sep 06, 2013

    Read all about it! Middleware Support News

    The September 2013 edition of Oracle Fusion Middleware Support News is now available - featuring:

    • Introducing Fusion Middleware 12c (12.1.2) Infrastructure
    • New to SOA 11g Adapters? Here's an overview
    • WebCenter 11.1.1.8 - Center of Mobile Engagement for Business
    • Get an Identity Management education in bitesize chunks!
    • + all the latest proactive patch and patch set release news

    Since the last time I blogged about the support news (June 2012), this My Oracle Support knowledge article has undergone a face lift. As well as looking a little more groovy, you can collapse / expand news articles to make for easier reading. Here's a screenshot.


    Find the Support News by navigating to the document below:

    Oracle Fusion Middleware Support News : Current Edition - Volume 9 : September 2013 (Document 1347075.1)

    Enjoy! 

    Thursday Jul 18, 2013

    Critical Patch Update for Oracle Fusion Middleware - CPU July 2013

    The latest Critical Patch Update (CPU) has been released for Oracle products. Start your reading here

    Critical Patch Updates, Security Alerts and Third Party Bulletin 

    This is the home page containing links to all "Critical Patch Updates" released to date, along with sections detailing 

    • Security Alerts 
    • Third Party Bulletin
    • Public Vulnerabilities Fixed
    • Policies
    • Reporting Security Vulnerabilities

    On this page you will find the link to the

    Oracle Critical Patch Update Advisory - July 2013

    The advisory lists the support documents that cover the patch availability for all Oracle products.

    For Oracle Fusion Middleware, go to:

    Patch Set Update and Critical Patch Update July 2013 Availability Document [ID 1548709.1]

    Highlights - WebLogic Server Patch Set Updates (PSU)

    • WebLogic Server - 12.1.1.0.5
    • WebLogic Server - 10.3.6.0.5

    July 2013 marks the end of CPU/PSU patches for Weblogic Server 10.3.5. Looking forward, we will see the final CPU patches for Weblogic Server 9.2.3.0 and 9.2.4.0 in October 2013

    If you are hit any unexpected errors when applying the CPU patches, check out the known issues documented in these two support documents.

    • Critical Patch Update July 2013 Oracle Fusion Middleware Known Issues  [ID 1548690.1]
    • Critical Patch Update July 2013 Database Known Issues [ID 1546428.1]

    And lastly, for an informal summary of what the Critical Patch Update fixes, check out the blog posts by "Oracle Software Security Assurance" team

    July 2013 Critical Patch Update Released

    Tuesday Jun 25, 2013

    Example WLST Script to Obtain JDBC and JTA MBean Values

    Introduction

    Following on from the blog entry "Get an Offline or Online WebLogic Domain Summary Using WLST!", I have had a request to create a smaller example which only collects a selection of JDBC (System Resource) and JTA configuration and runtime MBeans values. So, here it is.

    Download Sample Script

    You can grab the sample script by clicking here.

    Instructions to Run:

    1. After download, extract the zip to the machine hosting the WebLogic environment. You should have three directories along with a readme.txt

    • output
    • Sample_Output
    • scripts

    2. In the scripts directory, find the start wrapper script startWLSTJDBCSummarizer.sh (Unix) or startWLSTJDBCSummarizer.cmd (MS Windows). Open the appropriate file in an editor and change the environment variable settings to suit your system.

    Example - startWLSTDomainSummarizer.cmd

    set WL_HOME=D:\product\FMW11g\wlserver_10.3
    set DOMAIN_HOME=D:\product\FMW11g\user_projects\domains\MyDomain
    set WLST_OUTPUT_PATH=D:\WLSTDomainSummarizer\output\
    set WLST_OUTPUT_FILE=WLST_JDBC_Summary_Via_MBeans.html
    call "%WL_HOME%\common\bin\wlst.cmd" WLS_JDBC_Summary_Online.py

    Note: The WLST_OUTPUT_PATH directory value must have a trailing slash. If there is no trailing slash, the script will error and not continue. 

    3. Run the shell / command line wrapper script. It should launch WLST and kick off "WLS_JDBC_Summary_Online.py". This will hit you with some prompts e.g.

    Is your domain Admin Server up and running and do you have the connection details? (Y /N ):
    Y
    Enter connection URL to Admin Server e.g t3://mymachine.acme.com:7001 :
    t3://localhost:7001
    
    Enter weblogic username:
    weblogic
    Enter weblogic username password (function prompt 1):
    welcome1
    

    (Note: the value typed in for password will not be echoed back to the console).

    4. If the scripts run successfully, you should get a HTML summary in the specified output directory. See example screenshots below:

    Screenshot 1 - JDBC System Resource Tab Page

     Screenshot 2 - JTA Tab Page

    5. For the HTML to render correctly, ensure the .js and .css files provided (review the output directory created by the zip file extraction) are accessible. For example, to view the HTML locally (without using a web server), place the HTML output, jquery-ui.js, spry.js and wlstsummarizer.css in the same directory.

    Disclaimer

    This is a sample script. I have tested it against WebLogic Server 10.3.6 domains on MS Windows and Unix.  I cannot guarantee that the script will run error free or produce the expected output on your system. If you have any feedback add a comment to the blog. I will endeavour to fix any problems with my WLST code.

    Credits

    JQuery: http://jquery.com/
    Spry (Adobe) : https://github.com/adobe/Spry
    http://www.red-team-design.com/cool-headings-with-pseudo-elements

    Friday May 31, 2013

    How to Query Fusion Middleware Metadata Schemas Via JDBC

    Introduction

    You are dealing with a Fusion Middleware product, such as SOA, which uses Metadata Schemas, typically created in an Oracle Database via the Repository Creation Utility (RCU). As a Middleware administrator you would like to run a script which queries the schemas. However, the database resides on a different host from the Middleware Home, and there is no SQL*Plus or similar tool available. 

    The solution? Although Fusion Middleware products do not ship SQL*Plus, Weblogic Server does include JDBC drivers. This presents an opportunity to try out / brush up your java program coding skills.

    Example Solution

    Having recently dabbled in WLST to query Weblogic Domain MBeans - Get an Offline or Online WebLogic Domain Summary Using WLST! - I have written an example java program to tackle the problem outlined above. The program utilizes the standard Oracle JDBC driver to:

    • establish a connection to an Oracle Database (which can be remote from the machine hosting Weblogic)
    • attempts three queries listed below
    • renders the output in HTML. (I have reused the html / javascript techniques I employed for the WLST Domain Summarizer to present the results in a nice readable format.)

    Query ALL_USERS for owners / "prefixes" of Fusion Middleware schemas.

    SELECT USERNAME, CREATED
    FROM ALL_USERS
    WHERE USERNAME LIKE  '%_MDS'
    OR USERNAME LIKE '%_IAU'
    OR USERNAME LIKE '%_IAU_%'
    OR USERNAME LIKE '%_WLS'
    OR USERNAME LIKE '%_STB'
    OR USERNAME LIKE '%_UMS'
    OR USERNAME LIKE '%_UCSCC'
    OR USERNAME LIKE '%_OPSS' 
    OR USERNAME LIKE '%_SOAINFRA'
    ORDER BY 2

    Schema Version Registry Summary

    SELECT COMP_ID, COMP_NAME, VERSION, STATUS, UPGRADED
    FROM
    SCHEMA_VERSION_REGISTRY
    ORDER BY 1,2

    SOAINFRA - Cube Instance Summary

    SELECT COMPOSITE_NAME, COMPONENT_NAME, COMPONENTTYPE,
    (CASE WHEN STATE=1 THEN 'OPEN AND RUNNING'
    WHEN STATE=2 THEN 'OPEN AND SUSPENDED'
    WHEN STATE=3 THEN 'OPEN AND FAULTED' 
    WHEN STATE=4 THEN 'CLOSED AND PENDING'
    WHEN STATE=5 THEN 'CLOSED AND COMPLETED'
    WHEN STATE=6 THEN 'CLOSED AND FAULTED'
    WHEN STATE=7 THEN 'CLOSED AND CANCELLED'
    WHEN STATE=8 THEN 'CLOSED AND ABORTED'
    WHEN STATE=9 THEN 'CLOSED AND STALE'
    WHEN STATE=10 THEN 'NON-RECOVERABLE' ELSE STATE || ''  END) AS STATE,
    COUNT(*) AS NUM_OF_CUBE_INST
    FROM " + v_dbuser_soainfra + ".CUBE_INSTANCE
    GROUP BY COMPOSITE_NAME, COMPONENT_NAME, COMPONENTTYPE,STATE
    ORDER BY COUNT(*) DESC

    Download

    You can grab the zip package containing  the class, java source and example output by clicking here.

    Instructions

    1. After download, extract the zip.

    2. cd to the directory labelled "class"

    3. Edit the LaunchMetadataCollector.sh (Unix) or LaunchMetadataCollector.cmd (Windows) and change the environment variable setting - WL_HOME - to point at your Weblogic Server home.

    4. Then run the LaunchMetadataCollector wrapper script. This will prompt for database connection details e.g.

    >Enter the database hostname or ip address: mydbhost.acme.com
    >Enter the database port number: 1521
    >Enter the database sid: orcl
    >Enter the database username: system
    >Enter the password: 
    >Enter the password again: 
    [Optional] Enter the database user which owns the SOAINFRA schema: DEV

    5. If the program runs successfully you should see the result of the queries in an output file labelled MetadataCollectorOutput.html

    If you want to amend / adapt / enhance the program feel free to take a look at the java source file which is located in the "source" directory.

    About

    This is the blog of the Oracle Fusion Middleware Proactive Support Delivery Team. Here we will provide information about our activities, publications, product related information and more. Feedback welcome.

    Follow OracleMWSupport on Twitter

    Search

    Archives
    « July 2015
    SunMonTueWedThuFriSat
       
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
     
           
    Today