Saturday

ORA-01722: Invalid Number - Weird Problem


We have an ADF application, which hooks into Portal and SOA running on Weblogic 10.3.6 in a Fusion Middleware environment.

A few weeks ago after pushing a new release of the code to production, users encountered an ORA-01722 error in some screens of the application.    We captured the SQL and could run it via SQL*Plus and Sql Developer with no errors.

We opened an SR with Oracle and they offered some suggestions and in the end recommended a patch to fix a shared cursor bug.   We haven't applied that patch yet because we are on the latest PSU for 11.1.0.7 and that patch isn't available for it.  So we've issued a patch request with Oracle.

The weird problem is, that when my co-worker starts the WebLogic Managed Server, the users do not encounter the ORA-01722 error.   The only difference is that I am ssh'ing from a Mac and he is on windows.   We ssh into the same generic account and execute the same steps.  We've also confirmed that I can restart the server a dozen times with the error and my co-worker has never had the problem. We've verified this a few times.

Today we had some more maintenance and I tried restarting the server again.    Users encountered the same ORA-01722 error.   I restarted the server again but this time from my windows computer using SecureCRT.   Error disappears.

The following is a diff between a mac and windows ssh session.   There isn't a huge difference.


< TERM=xterm
---
> TERM=xterm-256color
5c5
< SSH_CLIENT=X.X.X.X 57952 22
---
> SSH_CLIENT=X.X.X.X 65516 22
7c7
< SSH_TTY=/dev/pts/1
---
> SSH_TTY=/dev/pts/4
10c10
< LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
---
> LS_COLORS=
16c16
< LANG=en_US.UTF-8
---
> LANG=en_CA.UTF-8
23c23
< SSH_CONNECTION=X.X.X.X 57952 X.X.X.X 22
---
> SSH_CONNECTION=X.X.X.X 65516 X.X.X.X 22


The only one that catches my eye is the LANG env variable but I honestly don't see that as having any affect on the application.   If there was an environmental difference I would expect to see other types of issues.  ORA-01722 is pretty specific.

Also, we can only reproduce this on our production server.   If I restart DEV/TEST from my Mac there are no issues.    During a future maintenance window I may try changing the different environment settings after I ssh in from my Mac just to see if the error re-occurs.

Regardless, we'll still proceed with the patch request just in case it happens again.  Weird Problem!

#OOW12 - Day 4

The last day of Openworld started late and ended early.   My first session was at 11:15 and it was all over by 3:15.   I've been to quite a few Openworld's and this one has gone by much quicker than most.  Which is a good thing because it means I had a great time.

I met up with my co-worker at the first session of the day and we realized we had the same schedule.   So I switched out the middle session and he switched the last slot.   I attended two sessions on E-Business Suite.   One on performance (Recommendations for Oracle E-Business Suite Performance Tuning), the other on security (The Top 10 Things You Can Do to Secure Your Oracle E-Business Suite Instance).   While both sessions are worth downloading, I thought the second one on security was very interesting.     The presenter took what they thought are the easiest yet biggest bang for the buck things you could do to improve security.   The top ten list included checking for missing profile options, default passwords, restricting access to servers based on IP, non-reversible passwords and encrypting credit card data.

The other session I attended  Oracle Database Optimizer: An Insider’s View of How the Optimizer Works.   This was an in-depth discussion around the database optimizers and new features.     I love these low-level technical discussions and wish I could fill all my sessions with them.      I won't try to delve into the topics discussed here but if your interested in how the optimizer works then you should definitely download this presentation.    You should also follow their blog at: https://blogs.oracle.com/optimizer/


The "Its A Wrap Party" this year was hosted by the Five Hundreds and the Hives.     I believe this is the first time I stayed to the end of the closing party.   Normally I show up to check it out, have some food, a few drinks and head back to the hotel to get ready for the trip home.

However once The Hives were on stage I couldn't leave.    They put on an awesome show and by far were the most entertaining of all the bands i've seen this week.   A big kodos to the Oracle team that put together the music festival and the acts they were able bring in.   I hope they keep doing this from now on!

Friday we took time to explore the city.   We had breakfast at Sears Fine Foods, walked to Fisherman's Wharf and managed to catch some of the air show rehearsals.   A not so smart decision had us walking back towards downtown, checking out Lombardi St. on the way.   After walking all week my feet have given up and are aching considerably.    It was all well worth it tho and I hope to get the chance to do it again next year!

Friday

#OOW12 - Day 3

My first session on Wednesday was Privileged Database User Best Practices.  A new feature in (for the life of me I can't remember if the presenter said OEM 12c or DB 12c) is the ability perform privilege analysis.   Over a period of time privilege information is captured and afterwards a report shows which privileges were used, unused and how the user obtained the privileges.

This provides the DBA with the ability to easily identify and remove unused privileges which ensures that database users have the least amount of privileges required.   How often are we confronted with developers who don't know what privileges they need and request full access?  Especially if they need to troubleshoot a production issue. It happens to me almost weekly.

However, if you don't leave the capture process on long enough, information will be missing.  So its hard to say how useful this feature may be.

The second session I attended was on DaaS, Database as a Service.   I don't work for a service provider but this feature may be nice to help out developers.    Our developers like to get their hands dirty and end up installing full stacks on their desktops.    Maybe we can use DaaS to help them get a database up and running quickly for proof of concepts, etc.     Its was a good session and I plan on investigating further.

Another good session was Tips and Tricks for Hardening Fusion Middleware.   There doesn't seem to be alot of this type of information around so it was very useful to hear how other administrators are securing their environments.   Alot of the features they discussed tho were behind the firewall.  For example, we use SSL but it terminates at the load balancer.     Some of the features they talked about were using connection filters for WebLogic at the network layer, securing everything with SSL, using secureListener with node manager, separating admin traffic for your domains, etc.

I realize that statistically a large number of attacks occur internally.   Some figures estimate as high as 60%.   Even with this figure I have had a hard time persuading architects to implement more secure configurations.   They say that these configurations unnecessarily make the environment more complex, which makes it harder to develop and troubleshoot.   Have you dealt with this before, were you successful in implementing additional security layers?

Finally I attended a session which I had hoped would help with promoting changes within a Fusion Middleware environment.  The session was titled Oracle Fusion Middleware Test-to-Production Movement: Best Practices and Strategy.   This process is documented in the Fusion Middleware Administrators Guide, http://docs.oracle.com/cd/E28271_01/core.1111/e10105/clone.htm.  The T2P process (test-to-production) allows you to create a new FMW environment from an existing one.   Config settings, customizations and patches are included, transactional data isn't.  

It doesn't seem to be suited to what I need,  which is help moving changes from test to an existing production environment.   Currently to implement a change in production we follow the same steps as test.   However, this is a manual process and is prone to user error.    

Cloning (taking a copy of the software, configuration and data) will be addressed in 12c.   With e-Business suite we clone dev and test from prod at the beginning of each release cycle so that we can be sure all the environments are identical.     I'm looking forward to this feature in FMW 12c as its very easy for environments to become out of sync.

After a quick stop back at the hotel we headed out to the appreciation event on Treasure Island.   The first few days we were here San Francisco experienced unusually high temperatures.   Unfortunately it ended on Wednesday.    Even with a long sleeved shirt, hoodie and jacket I was on the borderline of being uncomfortable.   I am not sure how all the people who showed up in t-shirts and short skirts survived.     I am a big fan of Pearl Jam and was looking forward to seeing them.   However, I was disappointed by the sound quality.   I'm not sure if the wind was a factor but the music sounded very distorted.    I don't recall noticing this at previous events.     I still had a great time tho and it was nice to relax and listen to great music.

Wednesday

#OOW12 - Day 2

Lets just say it was a rough morning trying to get out the door.    I am not sure when I arrived back at the hotel but I know it was late.  

I didn't realize what time it was until my co-worker texted me asking if I was ready to leave.    I was still in bed.   Needless to say I jumped up, grabbed a quick shower and headed off to my first session.

As an EBS DBA a mandatory session for me is Steven Chan's EBS Technology Roadmap.   It provides a great overview of certifications, where you should be, what you should be planning, etc.

My next session was Tim Gorman's RDBMS Forensics, Troubleshooting with ASH.    I have to say, this was a great session.   I didn't take many notes as it was very interesting and I wanted to understand the context around the slides for when I download the presentation later.

Tim has quite a few scripts he uses in troubleshooting and he has graciously provided them online.   Be sure to bookmark his website: http://www.evdbt.com/tools.htm

I skipped my next presentation in order to line up for the keynote.  I only go to 2-3 keynotes and I like to sit near the front so I can snap off a few photos.    I took advantage of my blogger pass (Thanks Oracle!!) and was granted early access to the hall which allowed me to get a front row seat.

Unfortunately working in a small shop means most of the topics discussed have no relevance to my day job.  However, I do enjoy keeping tabs on Oracle's direction.

My last session was on the Application Management Pack for E-Business suite.   We are in the process of implementing this pack and I was looking to hear about some of the new features.  Unfortunately my sinuses started to act up and I ended up leaving.   Pretty sure the people around me were getting pretty annoyed at my sniffing.

After a quick stop at the Hotel I met up with a co-worker and we headed out to a vendor event at LuLu's restaurant.    Even tho Oracle is a huge conference, its amazing how often you run into people you know.   Earlier in the week we were introduced to some people who actually work less than a few km's from us back in our hometown.

They happened to be there, so we talked shopped for a little while before heading up to Union (opps... Oracle) Square to see Joss Stone.  


If I had known there was already a crowd there,  I would have left earlier.   In the end we still managed to find a decent spot to stand.   The only annoyance was the guy in front of me trying to take pictures and video on his phone.   Every time I tried to snap off a shot his arm/head/phone would get in the way.

For all those trying to take pictures with a cell phone, your wasting your time especially in low light.   The pictures this guy was getting were out of focus, blurry and not exposed correctly. Cell phones do a horrible job of metering in difficult environments such as a concert.

Also, don't zoom! Unless the camera has an optical zoom your better off leaving it as is and cropping it later. Its one thing to grab a pic for Instagram, Twitter or to upload to facebook to make your friends jealous, but taking 200 pictures with it over the course of an hour is an absolute waste of time. Unfortunately most don't realize this until they get home and see the pictures on their monitor. Anyways, thats my rant for today!




#OOW12 - Day 1

Wow, the conference is already half over...   The past 3 days have gone by pretty fast.    4/5 of my sessions were really good on Monday.    Currently we are running OEM 11g and there has been some talk about upgrading to 12c.   So I added Upgrading Oracle Enterprise Manager to 12c, Best Practices to my schedule. I'm glad I attended because the session provided a great overview of the upgrade process and various upgrade paths you could take.   Now an upgrade doesn't seem to be as daunting a task as I had assumed.

The next session I attended was an overview of WebCenter.   We are in the process of evaluating the product and I was asked to install the product in a dev environment.   I was impressed with the editing abilities and integrated mobile support.   It appears to be much easier to use than our current solution Oracle Portal.


Oracle E-Business Suite Future Directions mostly talked about features coming in 12.2.   After Steven Chan's presentation on Sunday I thought for sure 12.2 was going to be announced this year at Openworld.  However, I haven't heard a thing yet.    Max Arderius talked about WebLogic Server replacing the 10.1.3 stack and its impact.    

Moving forward autoconfig will have a reduced role, limited to the database, EBS and part of the weblogic server configuration.   Fusion Middleware tools will handle the rest.   There is a good slide in the presentation which provides better context.    The cloning process will also change.  Now preclone on the appsTier will take longer and require 3-4GB of disk space.   If I understood correctly you won't need to copy the weblogic files, just the 10.1.2, appl_top and common_top directories.


My last session of the day was on Best Practices for Managing and Monitoring Weblogic Server.   Our WebLogic install is pretty basic and as of yet, we haven't had a requirement for high availability.   So I am not that familiar WL HA configs.   The session provided a great overview of using clustering, ideas on how to segregate applications and some of the reasons why you would want to.  For example, some applications may need to scale up more than others.  

The session also covered some of the OEM 12c features for managing WL.   A routing topology viewer which helps identify the impact of performance issues across the various components/tiers.    One issue we had is making sure our configuration from dev-test-prod are identical.  OEM 12c apparently provides the ability to compare WL domains and alert when differences are detected.  

Just as important, as the conference (well, almost) are the networking opportunities.  The provide you with the ability to meet other like minded people and talk sports and shop.

Monday night started with an awesome event at Benu with Oracle.   The entire restaurant was open to us, including the kitchen.   You could walk right in, watch the staff prepare the food and eat it.   I'm not entirely sure what some of the things I ate were but most were very tasty.   Those I wasn't sure about I made my co-worker eat first to see his reaction.

After Benu we walked over to the W Hotel for a meetup with Pythian.   We recently signed a contract with them and it was a great opportunity to meet some of their staff and of course Mr. Paul Vallee.   I'm looking forward to working with them as I have heard great things about them.

Finally, as my coworker called an early night (wuss), I met up with my manager who was at an IBM event.   The Spazmatics (sp) were providing the music and I have to say they were pretty good.   Pretty sure I won't be able to convince the guys I jam with to play NKOTB tho.    After the event we headed over to a local pub for a few more drinks before calling it a night.

Monday

#OOW12 - Day 0

Day 0 went by pretty fast and Day 1 is just about to start.  Shortly i'll be heading down to Moscone to catch the keynote with I believe Mark Hurd.

However before I leave I thought I would write up a quick note about Day 0.   Day 0 is full of user group presentations and typically they dive into quite a bit of detail.   This time was no exception.  I attended sessions on Oracle VM and using the command line with OEM.  A rather low level view of unix-base troubleshooting with a session by Riyaj Shamsudeen titled Truss, pmap and more.  Lastly I attended a session on WebLogic HA.

Other than one session which was a complete dud (will remain nameless because there is the off chance that I misinterpreted the abstract), it was a great day.  I haven't been to IOUG before but seeing sessions like these make me think i'm missing out.  

The opening keynote started at 5 to a packed out crowd.. There had to be at least 10k people there.


A number of new announcements were made this year.   I won't dive into detail because thats not the sort of things I post about and there are probably dozens of news articles/blogs already published with in depth coverage.   In short tho 4 new products were announced

1. Infrastructure as a Service (IaaS)
2. The Oracle Private Cloud
3. Multitenant Plugable Database Architecture
4. Finally the impressive Exadata X3

Our company hosts our production and test environments with 80% of it being Oracle products, along with 3rd party, in-house developed products running on Fusion Middleware.     I'm wondering what management will think of Oracle's IaaS offering?

Multitenant database looks interesting but I would like to see more details (undoubtably throughout the conference).   Specifically database recovery.  As we all know, having multiple schemas in a single database can pose some recovery issues depending on the type of failure.

The day ended with the Welcome Reception.   My co-worker bailed early so I stayed around to see Macy Gray.   Not really my style of music but I generally like almost all types of music live.    Macy Gray put on a great show and it seemed the crowed really enjoyed it.

I better get moving or I won't get a decent spot for the keynote.

Grid Control–Oracle Application Management Pack–OMS and Agent Setup


In my last post I detailed how to make sure your e-Business Suite environment is certified to use the Oracle Applications Management Pack for Grid Control.

The next step is to install the Oracle Application Management Pack into your Grid Control environment.

Metalink Notes/Install Guides:

Getting Started with Oracle E-Business Suite Plug-in, Release 4.0 [ID 1224313.1]
Oracle® Application Management Pack for Oracle E-Business Suite Installation Guide


Special Note from the AMP Install guide:

The Oracle Application Management Pack for Oracle E-Business Suite is installed using Oracle Universal Installer. To install this pack, you must have an existing Grid Control installation. The pack must be installed into each existing Grid Control Management Service and Management Agent that will be used for Oracle E-Business Suite.


The installation process is pretty straightforward as you can see below.   I've attached both the patches I applied to the Grid Control home as well as the agent.   I also applied the recommended patches applicable to my environment from the Metalink note above.


OMS Installation

1. Stop the OMS   $ORACLE_HOME/bin/emctl stop oms

2. Set the environment variable ORACLE_HOME to ORACLE_HOME of Management Service 11.1.0.1 as shown here:
export ORACLE_HOME=/u01/oracle/em11g/oms11g

3. Unzip the p8333939_40_LINUX.zip and run the runInstaller
a. Select Grid Control Plug-in for Oracle E-Business Suite Management Pack 4.0
4. Recommended Patches apply using OPatch:
a. Patch 12980034 ACMP: NOT ABLE TO SELECT VALUE FROM FILTER WHILE CREATING SELECTION SETS
b. Patch 12916544 UNABLE TO LAUNCH AMP PACK DIAGNOSTICS ON GRID CONTROL 11G
  c. Patch 12680184 ERROR IN CREATING TRANSFORMATIONS
d. Patch 12324808 DIAGNOSTIC TEST FOR CHECK AGENT STAGE FAILS e. Patch 11062868 DIAGNOSTICS REPORT FAILS TO SUBMIT IN AIX PLATFORM
5. Start the OMS

Agent Installation

For each agent running on a e-Business Suite environment:

1. set ORACLE_HOME=/u01/app/oracle/product/agent11g


2. Unzip patch 833939 and Launch the runInstaller
a.  Select Management Agent Plug-in for Oracle E-Business Suite Management
NOTE:  You can also use the agent only install page 9757683

Tuesday

Grid Control–Application Management Pack–Getting Started


A little while ago we purchased the Oracle Application Management Pack.   As you may or may not know, you cannot use Grid Control to manage and monitor individual components of an E-Business Suite environment, such as the concurrent manager, forms, etc.

The following document on Metalink describes the packs features and how to install it:

Getting Started with Oracle E-Business Suite Plug-in, Release 4.0 [ID 1224313.1]


I figured I would document my progress with setting up the AMP pack here.  The first step is to make sure my EBS environment is at a certified level.   Unfortunately  this isn’t the case for us.   We are on ATG_PF.B.Delta.2 and to use AMP 4.0 the requirement is ATG_PF.B.Delta.3.   Also depending on the features of AMP you would like to use there are additional patches.   NOTE:  If you have applied the April 2012 CPU release tho, it had the same ATG_PF requirement.

This link is to a Google Docs spreadsheet which details the patches and steps I had to follow in order to bring our EBS environment up to the proper level.  I also used the opportunity to review our environment and apply any recommended techstack patches, such as database patches from note: 761570.1.   These metalink notes change overtime and its always a good idea to keep an eye on them.

For Reference they are:

  • Database Preparation Guidelines for an E-Business Suite Release 12.1.1 Upgrade [ID 761570.1] 
  • Upgrading OracleAS 10g Forms and Reports in Oracle E-Business Suite Release 12 [ID 437878.1] 
  • Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-Business Suite Release 12 [ID 454811.1]


Note:  Each EBS environment is different and you may not need all the patches or you may need more.   So I wouldn’t recommend following this step by step.   Its provided as a reference to give you an idea of the tasks involved.   As well, if you feel I missed anything please let me know.  Part of the advantages of sharing information is that hopefully its reciprocated. ;)

Lucky or not?

 

Flashback technology has been around for quite awhile.   However, today was the first day I actually ever had to use it in a real life scenario.   Does that mean I am lucky or not?   

A few minutes ago developer came by and asked if Oracle kept versions of pl/sql code in the database.   I replied no and asked why.   Turns out that he was working on some code, compiled it, etc and it didn’t work properly.   He didn’t have a copy of the original package.

I wasn’t sure if it would work but I thought I would give flashback query a try.  Here is the SQL I used:

1  select text from all_source
2  as of timestamp
3  to_timestamp('29-MAY-2012 15:50:00', 'DD-MON-YYYY HH24:MI:SS')
4 where type = 'PACKAGE BODY' and name = 'MYNAME’

I saved the output and sent it over to the developer.   He was very happy.   Always nice to end a day on a high note!

Monday

11.2.0.2 Database Online Mode patching

I've read on a few blogs, such as Pythians, about the new online mode patching for 11.2.0.2.   However, up until this point I have not seen any applicable patches.     Currently i'm in the process of putting together a patch analysis for the Grid Control Application Management Pack.    As part of the pre-reqs for an R12 environment I have to apply a number of database patches.

Two of the patches 10160615 and 12400751 are able to be applied in Online Mode.   Its too bad 2 other patches can't be..  Regardless its nice to see that some patches are now able to be applied while the system is up.

For more information on Online Mode (Hot Patching) take a look at Metalink note:
RDBMS Online Patching Aka Hot Patching [ID 761111.1]

Friday

AUDIT_TRAIL = DB, Portal and Grid Control


If your not familiar with Oracle’s auditing features then a good place to start is with Oracle’s Documentation.   I personally think Oracle’s documentation, especially for the database products is great. 

http://docs.oracle.com/cd/B28359_01/network.111/b28531/auditing.htm#autoId1

The above documentation linked to above describes what auditing is, why you would need it, etc.   There’s no need for me to repeat it here.

Our environment is pretty small, with a limited number of people who have access to the databases, etc.   So normally I have the audit trail disabled, however for this particular database we did need to increase logging to investigate some issues.  After we were finished, we used NOAUDIT to disable the extra logging we enabled.   However we left AUDIT_TRAIL set to DB.

Move to a few months later and on a routine scan of database performance I noticed a query consuming a fair amount of resources. 

SQL Details: gh9pd08vhptgr
SELECT TO_CHAR(current_timestamp AT TIME ZONE 'GMT', 'YYYY-MM-DD HH24:MI:SS TZD') AS curr_timestamp, COUNT(username) AS failed_count
FROM sys.dba_audit_session
WHERE returncode != 0 AND timestamp >= current_timestamp - TO_DSINTERVAL('0 0:30:00')



clip_image001

By looking at the screenshot above it seems pretty nasty but in reality it was just a small spike on the Grid Control Top Activity chart.    As I mentioned, our environment is small and our servers have more than enough horsepower, so it didn’t have a significant impact on performance. 

From Metalink note: Slow Performance Of DBA_AUDIT_SESSION Query From EM [ID 829103.1]  “There is a known performance issue with DBA_AUDIT_SESSION table per non-published Bug 7633167”

However with AUDIT_TRAIL=DB, LOGON and LOGOFF’s were still be recorded.  Since this database hosts our Portal schema it mean upwards of 200k of entries going into the sys.aud$ daily, for a grand total of 32 million rows!

The note provides two options for the query above, the first is to disable the Failed Login Count Metric, the second is to purge the sys.aud$ table.  Note 73408.1 How to Truncate, Delete, or Purge Rows from the Audit Trail Table SYS.AUD$

Since at the moment we don’t require auditing to be enabled, then I am simply going to truncate the sys.aud$ table and disable auditing by setting the database initialization parameter AUDIT_TRAIL=none and restarting the database at the next maintenance window.

If you do require auditing then you should setup a purging strategy.  If you need to do this, some good blog articles to read are:

http://www.pythian.com/news/1106/oracle-11g-audit-enabled-by-default-but-what-about-purging/
http://damir-vadas.blogspot.com/2010/06/auditing-database.html

Receiving Clear alerts after a Blackout–Grid Control


Grid Control allows you to set blackouts for targets so that while your performing maintenance you won’t get notified    You can also use them to disable notifications while your working on an issue.  Nothing worse than being paged multiple times while your trying to fix an issue. 


One of our applications has a component which requires a quick nightly bounce schedule via cron.   So I setup a blackout in Grid Control to start 5 minutes before and extend to 5 minutes after the restart.   However, at 3am I received a lovely page letting me know that an alert has cleared:


Subject: EM Alert: Clear:MyApp PROD - Test MyApp Login Page is now up

Target Name=MyApp
Target type=Web Application
Host=
Occurred At=Mar 5, 2012 3:15:00 AM EST
Message=Test MyApp Login Page is now up: MyApp Login Page has status 6 since 03/05/12 03:15:00 till 03/05/12 03:15:00 in America/New_York. Beacon RCPSC Status: 1 from 02/28/12 09:54:31 till 03/05/12 03:17:13 in -05:00. No new severities found after the blackout Metric data found after blackout, using the latest severity Latest severity from the beacon is 15 at 02/29/12 21:13:04 Beacon votes up Beacon Tenzing Status: 1 from 02/28/12 10:20:19 till 03/05/12 03:16:48 in America/New_York. No new severities found after the blackout Metric data found after blackout, using the latest severity Latest severity from the beacon is 15 at 02/29/12 19:26:14 Beacon votes up The final status of the test is UP from 03/05/12 03:15:00 till 03/05/12 03:17:13
Metric=[Test Response] Status



Strange.    Initially I thought that there may have been a system time issue between the servers, or that the restart had taken longer than I expected.   Looking into it tho that was not the case. A search on metalink turns up that there is a bug:

Bug 10210193 WEB APPS SERVICE GENERATE ERROR WHEN BLACKOUT START the Notification rule used has the metric [Test Response] Status which is generating the notification.


The solution is to remove the remove the [Test Response] metric from the rule.    No sleep interruptions the following night!

Wednesday

CPU Patches and Minimum Baselines


As you may or may not be aware, your environment has to meet a minimum baseline before you can apply CPU patches.  Typically Oracle supplies patches for both the latest patch set of a product and the previous patch set for a certain grace period. For example, below is clip taken from the EBS ECS Policy document  (Note: 1195034.1):
In addition, a given release update pack for the Applications Technology
product family will be treated as the minimum baseline 18 months after its
release. Specifically:

The Applications Technology RUP from 12.1.2 (R12.ATG_PF.B.Delta.2, Note
ID 845809.1) becomes the minimum prerequisite baseline on July 1, 2011.

The Applications Technology RUP from 12.1.3 (R12.ATG_PF.B.Delta.3, Note
ID 1066312.1) becomes the minimum prerequisite baseline on February 1,
2012
So the grace period for the ATG product family is 18 months.   ATG_PF.B.Delta.2 is the current baseline, however, after Feb. 1st the new baseline is ATG_PF.B.Delta.3.    That means if your not already on Delta.3, your going to upgrade before or as part of the July CPU release.

For other products the grace period may be different.  For example, for the database it is a minimum of 3 months, maximum of 1 year.  For more details see:  Database, FMW, EM Grid Control, and OCS Software Error Correction Support Policy [ID 209768.1]


The January 2012 CPU release information can be found here:

http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html

For Fusion Middleware and Database customers the best way to find this information is to keep an eye on the “Final Patch History” section of the patch availability document.  

For E-Business Suite customers make sure you read the yellow highlighted sections of the patch availability document.

We use E-Business Suite, Weblogic, Grid Control, Database and Fusion Middleware products.  So some key dates for us are:
  • January 2012:
    • Oracle Fusion Middleware 11.1.1.3
    • Oracle WebLogic Server 10.3.3.0
    • E-Business Suite:  ATG_PF.B.Delta.2
  • April 2012:
    • Oracle Fusion Middleware 11.1.1.4
    • Oracle WebLogic Server 10.3.4.0
  • July 2012:
    • Oracle Database 11.2.0.2
The reason I mention this is because it catches people off guard all the time.  Upgrading to new baselines can add a significant amount of time to applying CPU’s, and its nice to make sure management, business owners, etc have as much time as possible to prepare.

Friday

R12: Sometimes cloning doesn’t remove all source references


I’m in the process of applying the latest round of security patches to our environment.   While patching TEST (I’ve already applied it to a sandbox and DEV environment), I hit the following error:

OPatch found the word "error" in stderr, please look into it.
You may have to run the make again.
Stderr Output (from /var/TEST/apps/tech_st/10.1.2/.patch_storage/12828135/make_local.stderr):
/usr/bin/ld: cannot find –ljava
collect2: ld returned 1 exit status
make[1]: *** [/u01/TEST/apps/tech_st/10.1.2/sysman/lib/libnmemso.so] Error 1
make: *** [libnmemso] Error 2





I've hit a similar issue in the past, documented in post http://newappsdba.blogspot.com/2009/01/cloning-leftovers.html

The issue was with the same file:

$ORACLE_HOME/sysman/lib/env_sysman.mk

The following line was still pointing to the source system:


JRE_LIB_DIR=/u01/PROD/apps/tech_st/10.1.2/jdk/jre/lib/i386

I changed it to TEST, reran the patch and it completed successfully.   Just a reminder that cloning doesn’t update all the necessary files.

Upgrade VM Manager 2.1.5

 
Just before Xmas one of our VM Servers came to a rather unfortunate end and now needs to be rebuilt.   However, I couldn’t delete the server from VM Manager since the agent was down.   There may be a backend update you can perform but apparently you can force a delete in later versions of VM Manger.
At first I downloaded VM Manager 3 but found this in the documentation:

Oracle VM Release 3.0 is not backwardly compatible with previous Oracle VM releases. If you are using Oracle VM Release 2.x you cannot upgrade to Release 3.0.3. You must reinstall your Oracle VM Servers and Oracle VM Manager. You can, however, reuse your virtual machine templates from Oracle VM Release 2.x by importing them into Oracle VM 3.0. http://docs.oracle.com/cd/E26996_01/e18548/BABEHCGC.html



Well, I didn’t really want to have to upgrade all the VM Servers at the same time.   However, version 2.2 is backwards compatible:

Oracle VM Manager is backwardly compatible with previous Oracle VM Server releases. To make sure you are not using a newer version of Oracle VM Server that cannot be managed Oracle VM Manager, you should upgrade Oracle VM Manager to Release 2.2 before you upgrade your Oracle VM Servers to Release 2.2.


http://docs.oracle.com/cd/E15458_01/doc.22/e16206/toc.htm#BEJFHFDB

I have never upgraded VM Manager before so I wasn’t sure what to expect.   The documentation said its easy and quick but deep inside a voice say saying, “Yeah Right!”
So, here are the steps I followed to upgrade VM Manager from version 2.1.5 to 2.2:
  1. Backup existing VM Manager
    - Full backup of /opt directories oc4j and ovs-manager
    - Execute /opt/ovs-manager-2.1/bin/backup.sh
    - Took a manual export of OVS schema just to be safe.
  2. VM Manager needs to be running.
  3. Mount the VM Manager upgrade ISO on the server as root:
    [root@myserver patches]# mount -o loop,ro OracleVM-Manager-2.2.0.iso /mnt/OVM22
  4. Execute runInstaller.sh to upgrade VM Manager
[root@myserver OVM22]# pwd/mnt/OVM22[root@myserver OVM22]# sh runInstaller.sh
Welcome to Oracle VM Manager 2.2
Please enter the choice: [1|2|3]1. Install Oracle VM Manager2. Uninstall Oracle VM Manager3. Upgrade Oracle VM Manager
Starting Oracle VM Manager 2.2 upgrade ...
Backup the database before upgrade is highly recommended, to backup the database now, choose 'N' and run:
/opt/ovs-manager-2.1/bin/backup.sh
Are you sure you want to upgrade Oracle VM Manager from version 2.1.5 to 2.2 ? [y|N] y
Please enter the password for database account 'OVS':
Now upgrading OC4J ...
Please enter the password for account 'oc4jadmin':
Starting OC4J ... Done.
Now upgrading the database schema ... Done.
Now upgrading the Oracle VM Manager application ...
Done.
Please enter the keystore password for the Web Service:
Confirm the password:
Setting keystore password for Web Service ... Done
Do you want to use HTTPS access for Oracle VM Manager (Y|n)?Y
Configuring OC4J to use HTTPS ... Done
Stopping OC4J ... Done
Starting OC4J ... Done
Upgrade Oracle VM Manager successfully.
Please check the log /var/log/ovm-manager/upgrade_2.1.5_2.2.log for more information.
To access the Oracle VM Manager 2.2 home page go to:
https://127.0.0.1:4443/OVS
To access the Oracle VM Manager web services WSDL page go to:
https://127.0.0.1:4443/OVSWS/LifecycleService.wsdl
https://127.0.0.1:4443/OVSWS/ResourceService.wsdl
https://127.0.0.1:4443/OVSWS/PluginService.wsdl
https://127.0.0.1:4443/OVSWS/ServerPoolService.wsdl
https://127.0.0.1:4443/OVSWS/VirtualMachineService.wsdl
https://127.0.0.1:4443/OVSWS/AdminService.wsdl
To access the Oracle VM Manager help page go to:
https://127.0.0.1:4443/help/help
That’s it, its as simple as they said it would be.   They also make the same claim about upgrading the VM Servers themselves.   I plan on taking a look at that next week.