Showing posts with label DB version changes. Show all posts
Showing posts with label DB version changes. Show all posts
Friday, October 14, 2016
12c: Updates to Fast-Refresh Materialized Views with joins are lost after DB upgrade
An interesting article on My Oracle Support, "Updates Lost to Fast-Refresh Materialized Views with Joins After Upgrade to 12c" from document ID 2186836.1, tells us that an upgrade from 12.1.0.1 to 12.1.0.2 can negatively impact your fast-refresh materialized views with joins! It seems that the system "covers up" the problem by having the last update date updated while the data does not get updated!!
Thursday, October 1, 2015
ALERT: DB corruption after 12c upgrade for compressed tables during recovery
Did you compress tables on 11g before going to 12c? If so, you need to check out My Oracle Support article "ALERT Bug 21682261 Corruption during Recovery after upgrading to 12c for Compressed Tables" from document ID 2058461.1 because you can run into corrupted tables if you need to recover them! This is the worst possible news for a database because it violates all of the ACID principles and if you get to the recovery stage you already have your data in question!
Thursday, September 17, 2015
12c: DB 12.1.0.2 patch 12 known issues
Did you know that the latest patch for 12.1.0.2 has known issues already? While article "Oracle Quarterly Database Patch 12.1.0.2.12 Known Issues" found on My Oracle Support by document ID 2052715.1 has a very small issue, it makes me curious going forward about how we find these known issues bug reports in the future for other DB patches as well!
Tuesday, August 25, 2015
PeopleSoft: COBOL processes error out with unicode database
Greeting Earthlings! Sorry for the absence the last few days, but Thursday my PC was hit with something nasty and I wasn't able to fix it until just last night so I took a few night off from the blog!
Now that I have my PC repaired, how about we explore the My Oracle Support article "E-COB: COBOL Processes and Remote Calls Error Out & Have Zero-byte Log files Generated on a Unicode PeopleSoft database" from document ID 1629233.1 to learn something new about cloning PeopleSoft on Windows and how non-unicode and unicode databases might differ in this type of environment?
Now that I have my PC repaired, how about we explore the My Oracle Support article "E-COB: COBOL Processes and Remote Calls Error Out & Have Zero-byte Log files Generated on a Unicode PeopleSoft database" from document ID 1629233.1 to learn something new about cloning PeopleSoft on Windows and how non-unicode and unicode databases might differ in this type of environment?
Sunday, August 16, 2015
Weekend Learning: Upgrading to Oracle Database 12c R1 using DB Upgrade Assistant
Of course I, and this blog, am focused on applications and Support/Operation of those applications, but sometimes we need to step into the shoes of our DBAs to learn something new which we can later apply to our discipline! MOS document "Complete Checklist for Upgrading to Oracle Database 12c Release 1 using DBUA" is that kind of knowledge which you can find via article ID 1516557.1 to get some more details about files, objects, and other steps/scripts which you could find useful down the road!
Wednesday, August 5, 2015
ORA-06508 or FRM:40735 errors when opening EBS forms
Tonight, we have a general lesson in upgrades either with the EBS application or the Oracle database as My Oracle Support note "R12: Finally Close or Cancel FRM:40735: WHEN-BUTTON-PRESSED Trigger Raised Unhandled Exception ORA-06508" from document ID 2021590.1 shows us the simple reason why this happens as well as teaches us how to use adadmin also which you may not see if you are strictly Operations or Support.
Wednesday, July 8, 2015
R12 Payables: Payment Exception Report returns no data after 12c DB upgrade
Note 2029537.1 on My Oracle Support for article "R12:AP Payment Exception Report Does Not Retrieve Data After Database Upgrade to Version 12c" reminds us that any type of change we introduce into our systems is reason enough to run through our testing suites to validate each and every piece of the application because any change can cause problems for us!
Sunday, May 3, 2015
Weekend Learning: Investigating correct setting of SESSION_CACHED_CURSORS and OPEN_CURSORS parameters
Take a few moments this weekend to visit document ID 208857.1 in My Oracle Support to brush up on this "SCRIPT - to Set the 'SESSION_CACHED_CURSORS' and 'OPEN_CURSORS' Parameters Based on Usage" so that you can help make your databases a bit more proactive by monitoring this on a regular basis!
Sunday, April 26, 2015
Weekend Learning: R12.2 EBS DB upgrade prep guidelines
Since I just presented a session on a R12 upgrade from the application and project perspectives, I thought it was a good time to remind you about this document on MOS "Database Preparation Guidelines for an E-Business Suite Release 12.2 Upgrade" via note ID 1349240.1 so you can address the other side of the house with more technical details about the database!
Sunday, March 8, 2015
Weekend Learning: EBS 12.2 login issue when DB upgraded to 12c
Combining upgrades for both the Oracle E-Business Suite and Database, the MOS document "EBS 12.2 Login Issue after Database Upgrade to 12c - The system has encountered an error when servicing the request with initialize class oracle.apps.fnd.common.WebAppsContext error" with note ID 1987505.1 shows a very simple reason for WHAT caused the problem but not WHY it happened at all! Check it out to see what went on and how to solve it.
Tuesday, February 24, 2015
11.2.0.4: Parse time can be increased for same query on 11.2.0.3
If you have been in the Oracle space for any amount of time you will know that a new version or the latest files can actually introduce problems, but even knowing that it is surprising to read MOS article "Increased Parse Times for Queries Using Subqueries Containing Multiple OR And AND Statements on 11204 Compared to 11203" from note 1980761.1! Not only do we learn what is going on here, but we get to learn a few ALTER SESSION commands that we may not have otherwise had to know about plus this is a good warning that your performance may be suffering for no other reason than you are on the latest patchset of 11gR2!
Friday, November 14, 2014
Weekend Learning: JDBC driver cursor leak on 11.2.0.4
Do you know how sometimes you can stumble across a solution for a problem, when you are not even looking for it? Well let me introduce you to My Oracle Support document "Cursor Leak After Upgrading to JDBC Driver 11.2.0.4" via note ID 1939530.1 and ask if you have been having problem with "middleware" or "web services" after upgrading to 11.2.0.4? We are not on 11.2.0.4 YET, but on 11.2.0.3 we have had some issues with memory leaks so this type of issue could be the next condition we encounter so now I am aware of it and can potentially start looking for it when we start upgrading (and testing). Luckily we have not had the ORA-01000 errors indicated in this article, but forewarned is forearmed.
Saturday, August 9, 2014
Database Week: PSUs and overlay patches
While you may know what PSUs are (Patch Set Updates), do you know what overlay patches are? Are you aware that the My Oracle Support post "Database Patch Set Update Overlay Patches Required for Use with PSUs and Oracle E-Business Suite" document ID 1147107.1 has all the information and is a great candidate for being favorited so you can stay up to date? Well now you know!
Wednesday, July 16, 2014
Why the wait event "SQL*Net message from dblink" can suddenly increase for no reason
Following yesterday's article about making assumptions post project implementation, are the technical details to what I was talking about!
We launched our 12c upgrade to a major Oracle database in our infrastructure and being one of the first in the company to do so made us (okay, probably just me) very cautious (or leery) about what bugs would shake out of the system after we put it in. Over the weekend we did the upgrade by installing 12c on new hardware, made sure GoldenGate was up to date before we broke the link between systems, and then linking to the new system. After the logs were synchronized and everything was tested, not a creature was stirring, not even a mouse.
The next day, we still had no obvious issues but our system wait event alert told me that the activity for the wait event "SQL*Net message from dblink" was starting to trend upwards from where it normally is during the day. By midday, the activity was measured to be 10-15 TIMES what it was Friday before the deployment and not only that but "TCP Socket (KGAS)" activity was trending higher on the new 12c database. Of course, 12c is the culprit here, and we have to find out what bug we are encountering right? Not so fast. We need to get evidence and prove that out!
First off, is what we were seeing in the database log every few seconds on the new 12c database connecting back out to our main database:
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 12.1.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 12.1.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 12.1.0.1.0 - Production
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
This leads us to My Oracle Support article "ORA-0600 [17099]" in document ID 1325533.1 but why is nobody noticing a problem here that is being reported if "things are not right" to such a degree? I'm glad you asked, because while I started researching this I noticed that my SQL client tool was hanging for up to 15 minutes before the error "ORA-03113: end-of-file on communication channel" was returned. That is not right at all.
So, what kind of errors are we seeing in our main database log? I am glad you asked!
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.3.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
Client address:
Error 3135 trapped in 2PC on transaction 3283.9.55580. Cleaning up.
Error stack returned to user:
ORA-03135: connection lost contact
ORA-02063: preceding line from 12C_DB
Seeing that most of the error messages are the same between both databases made me do more research on My Oracle Support! What I found was "Alert Log Errors: 12170 TNS-12535/TNS-00505: Operation Timed Out" in document ID 1628949.1 and again the article was extensive. Not only in depth, but it had another hint to what the problem was which was found in the first MOS article I shared here.
What is the problem? The SQLNET.EXPIRE_TIME parameter was not set in the $TNS_ADMIN/sqlnet.ora file on the new 12c platform, the way it was in the original database which we "cloned" over. After setting this on both RAC nodes and reloading the listeners, the issue went away along with all of the error messages in the log file!
We never had a problem with 12c, even though it was easy to blame it outright at the start!
We launched our 12c upgrade to a major Oracle database in our infrastructure and being one of the first in the company to do so made us (okay, probably just me) very cautious (or leery) about what bugs would shake out of the system after we put it in. Over the weekend we did the upgrade by installing 12c on new hardware, made sure GoldenGate was up to date before we broke the link between systems, and then linking to the new system. After the logs were synchronized and everything was tested, not a creature was stirring, not even a mouse.
The next day, we still had no obvious issues but our system wait event alert told me that the activity for the wait event "SQL*Net message from dblink" was starting to trend upwards from where it normally is during the day. By midday, the activity was measured to be 10-15 TIMES what it was Friday before the deployment and not only that but "TCP Socket (KGAS)" activity was trending higher on the new 12c database. Of course, 12c is the culprit here, and we have to find out what bug we are encountering right? Not so fast. We need to get evidence and prove that out!
First off, is what we were seeing in the database log every few seconds on the new 12c database connecting back out to our main database:
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 12.1.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 12.1.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 12.1.0.1.0 - Production
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
This leads us to My Oracle Support article "ORA-0600 [17099]" in document ID 1325533.1 but why is nobody noticing a problem here that is being reported if "things are not right" to such a degree? I'm glad you asked, because while I started researching this I noticed that my SQL client tool was hanging for up to 15 minutes before the error "ORA-03113: end-of-file on communication channel" was returned. That is not right at all.
So, what kind of errors are we seeing in our main database log? I am glad you asked!
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.3.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
Client address:
Error 3135 trapped in 2PC on transaction 3283.9.55580. Cleaning up.
Error stack returned to user:
ORA-03135: connection lost contact
ORA-02063: preceding line from 12C_DB
Seeing that most of the error messages are the same between both databases made me do more research on My Oracle Support! What I found was "Alert Log Errors: 12170 TNS-12535/TNS-00505: Operation Timed Out" in document ID 1628949.1 and again the article was extensive. Not only in depth, but it had another hint to what the problem was which was found in the first MOS article I shared here.
What is the problem? The SQLNET.EXPIRE_TIME parameter was not set in the $TNS_ADMIN/sqlnet.ora file on the new 12c platform, the way it was in the original database which we "cloned" over. After setting this on both RAC nodes and reloading the listeners, the issue went away along with all of the error messages in the log file!
We never had a problem with 12c, even though it was easy to blame it outright at the start!
Friday, October 18, 2013
Weekend Reading: Oracle DB 11.2 Upgrade
Working on getting to the 11.2 database patch set? Well Tanel wants us to know about a slide deck from Oracle that has over 500 pages of information in it just about this! Awesome reading material, and something to sink your teeth into (Halloween pun intended) over this weekend. All that AND another document link which details the behavior changes from 8.0 to 11.2 (and I'd bet it'll be soon updated for 12c too). Have fun!
Thursday, September 5, 2013
Oracle Advanced Compression highlights
Did you know that Oracle Database version 11g brings with it a host of new features, one of which is Oracle Advanced Compression? If you didn't, you may want to browse this article which has a testimonial on how this feature allowed a customer to reduce their footprint by 50 percent. Or, you can skip to the next article to see how another client reduced their database resources by 400 percent and you can find tools that let you self-assess your savings with and without compression.
Wednesday, September 4, 2013
Statspack bug(s) and fix(es)
This article highlights a bug (and fix) with the STATSPACK package, which reminds me of another bug we have encountered and are going to be fixing if it still exists after our upgrade to R12. Currently in our 11.2.0.3 environment, and the bug exists in 11.2.0.2 as well, we encounter the following entry in the database log file every week when a job tries to run:
ORA-12012: error on auto execute of job "PERFSTAT"."STATSPACK_PURGE_61"
ORA-04063: package body "PERFSTAT.STATSPACK" has errors
ORA-06508: PL/SQL: could not find program unit being called: "PERFSTAT.STATSPACK"
ORA-06512: at line 2
You can see with this script, that several objects are marked as INVALID:
select object_name, object_type, status from dba_objects where owner = 'PERFSTAT' and status = 'INVALID'
The document you want to see to fix this on My Oracle Support is 1337034.1, and if you want to apply the patch and fix it I'd be interested to hear from you!
ORA-12012: error on auto execute of job "PERFSTAT"."STATSPACK_PURGE_61"
ORA-04063: package body "PERFSTAT.STATSPACK" has errors
ORA-06508: PL/SQL: could not find program unit being called: "PERFSTAT.STATSPACK"
ORA-06512: at line 2
You can see with this script, that several objects are marked as INVALID:
select object_name, object_type, status from dba_objects where owner = 'PERFSTAT' and status = 'INVALID'
The document you want to see to fix this on My Oracle Support is 1337034.1, and if you want to apply the patch and fix it I'd be interested to hear from you!
Tuesday, September 3, 2013
An old emperor in new clothes
As many of us are returning to work today, I wanted to share an interesting situation from last week to re-energize you for the short week! I've mentioned that we've hit a nasty database bug which affected our 11.2.0.2 environment, and still affects the database even after upgrading to 11.2.0.3, so we've created an alert for it and know how to handle those situations. The other day, we had another situation where it appeared that the inactive transaction branch bug was now affecting internal database transactions which did not go out over a database link at all. Very interesting, and very scary prospect!
I did some poking around but couldn't really come up with anything proving that this session wasn't going out over a database link, so I talked with one of our top developers about it since he usually has some really great assistance and guidance on issues like these, and he said he'd take a look. A little while later, he came back to me and just about knocked my socks off; the session was not internal, and it was going over a database link. We had saw the following script in gv$sqlarea:
select sequenceX.nextval from dual
which doesn't appear to be using any database links, right? Well the developer had found that the object had a synonym created, with the entry in DBA_SYNONYMS pointed across the database link so when we looked into the gv$sqlarea on that database with the same sql_id we found the same SQL being run! This proves out that what appeared to be a local session was in fact NOT a local session after all, and that is why it was possible for the session to be stuck in the "inactive transaction branch" wait event class.
I did some poking around but couldn't really come up with anything proving that this session wasn't going out over a database link, so I talked with one of our top developers about it since he usually has some really great assistance and guidance on issues like these, and he said he'd take a look. A little while later, he came back to me and just about knocked my socks off; the session was not internal, and it was going over a database link. We had saw the following script in gv$sqlarea:
select sequenceX.nextval from dual
which doesn't appear to be using any database links, right? Well the developer had found that the object had a synonym created, with the entry in DBA_SYNONYMS pointed across the database link so when we looked into the gv$sqlarea on that database with the same sql_id we found the same SQL being run! This proves out that what appeared to be a local session was in fact NOT a local session after all, and that is why it was possible for the session to be stuck in the "inactive transaction branch" wait event class.
Tuesday, August 6, 2013
Memory leak causing database crashes
After upgrading our database to 11.2.0.3 and applying both BP11 and EX10 Exadata patches we started having database node crashes every 2 to 3 weeks. As a result we started looking closer at the monitoring information that was being shown before the crashes. First we identified that only a single database node was starting to run out of virtual memory (swap space) in what appeared to be a random pattern, yet it appeared to happen the most at 9PM for some reason we couldn't fathom. We even had an outlier happen on Saturday morning where the system recovered free memory around 8 PM, and then ran out of free memory again an hour later!
Another mystery was why our "usable" memory never really wavered at all, even though the system was under pressure. Regardless of that, we all agreed that this was likely not an OS bug since the symptom was only presenting itself on a single node. An option presented to us by Oracle was changing the sysctl parameter to increase the memory allocated to the database processes in order to try and eliminate the stresses on swap space usage but a nagging question being asked was if we added any new stress or load to the system which would cause this node to under perform. Obviously, we didn't think so but we kept digging to see if maybe a rogue ETL process or other external partner were hitting us at the same time every night when a pattern of this occurring on a Wednesday or Saturday night started to emerge. Having dug into this a few times, our scope expanded trying to understand the problem (this is why database load was added to this next trend analysis):
This type of load jump was abnormal and led the DBAs to look closer at possible suspects like cron jobs to find this:
Since the 3,6 parameter meant the script was only running on Wednesday and Saturday at 21:00 (9:00 PM), QA testing commenced. Guess what we found out? The script is the culprit for our memory depletion because after a while free memory became 0!! Here is how QA looked before the cron job was run:
Time
|
Swap
|
Free Mem(G)
|
Usable Mem(G)
|
7:47 AM
|
2317
|
16
|
43
|
8:02 AM
|
3136
|
1
|
44
|
8:17 AM
|
4508
|
0
|
45
|
8:47 AM
|
6315
|
0
|
45
|
9:23 AM
|
7036
|
0
|
45
|
9:47 AM
|
7865
|
0
|
45
|
10:17 AM
|
8915
|
0
|
47
|
12:17 PM
|
9822
|
0
|
47
|
2:02 PM
|
10254
|
0
|
48
|
3:47 PM
|
10250
|
1
|
48
|
8:02 PM
|
9625
|
0
|
47
|
8:17 PM
|
9605
|
16
|
45
|
9:02 PM
|
9515
|
17
|
46
|
9:17 PM
|
9536
|
5
|
46
|
9:23 PM
|
9581
|
0
|
46
|
Another mystery was why our "usable" memory never really wavered at all, even though the system was under pressure. Regardless of that, we all agreed that this was likely not an OS bug since the symptom was only presenting itself on a single node. An option presented to us by Oracle was changing the sysctl parameter to increase the memory allocated to the database processes in order to try and eliminate the stresses on swap space usage but a nagging question being asked was if we added any new stress or load to the system which would cause this node to under perform. Obviously, we didn't think so but we kept digging to see if maybe a rogue ETL process or other external partner were hitting us at the same time every night when a pattern of this occurring on a Wednesday or Saturday night started to emerge. Having dug into this a few times, our scope expanded trying to understand the problem (this is why database load was added to this next trend analysis):
Time
|
Swap
|
Free Mem(G)
|
Usable Mem(G)
|
DB load (1 m avg)
|
9:02 PM
|
8353
|
29
|
37
|
1.19
|
9:17 PM
|
8455
|
1
|
37
|
4.04
|
9:22 PM
|
9097
|
0
|
38
|
4.39
|
9:47 PM
|
11144
|
0
|
38
|
5.65
|
10:02 PM
|
11840
|
0
|
38
|
3.19
|
10:17 PM
|
12160
|
0
|
39
|
3.19
|
10:23 PM
|
12142
|
0
|
39
|
1.72
|
This type of load jump was abnormal and led the DBAs to look closer at possible suspects like cron jobs to find this:
5 21 * * 3,6 /s_u01/app/applmgr/scripts/tar_tops.sh > /s_u01/app/applmgr/scripts/tar_tops.logs
Since the 3,6 parameter meant the script was only running on Wednesday and Saturday at 21:00 (9:00 PM), QA testing commenced. Guess what we found out? The script is the culprit for our memory depletion because after a while free memory became 0!! Here is how QA looked before the cron job was run:
[applmgr@server midtier]$ free -g
total used free shared buffers cached
Mem: 94 68 26 0 1 14
-/+ buffers/cache: 51 42
Swap: 23 4 19
After some time of the cron job running in QA, you can see the difference:
[applmgr@server midtier]$ free -g
total used free shared buffers cached
Mem: 94 94 0 0 1 40
-/+ buffers/cache: 52 42
Swap: 23 5 18
Once the DBAs changed the cron commenting out this job in PROD, we stopped having regular database crashes.
Once the DBAs changed the cron commenting out this job in PROD, we stopped having regular database crashes.
Wednesday, May 8, 2013
New Gather Schema Statistics errors
After moving to Exadata we were able to change some of our operational tasks, and one of those was to run our Gather Schema Statistics with the ALL parameter instead of chunking it out by our biggest schema names because of how fast it runs. With that, comes finding errors we never saw before and one of which was "ORA-20001: invalid column name or duplicate columns/column groups/expressions in method_opt" for these items:
Schema Object
-------- -------
Searching My Oracle Support I was able to find a direct hit with note "Gather Schema Statistics fails with Ora-20001 errors after 11G database upgrade [ID 781813.1]" that was able to walk me through the way to identify which items were an issue, and how they could be resolved.
Schema Object
-------- -------
| FII | FII_FIN_ITEM_HIERARCHIES |
| AP | JE_CH_PAYMENT_REF |
| JE_FR_DAS_010 | |
| JE_FR_DAS_010_NEW | |
| JG_ZZ_SYS_FORMATS_ALL_B | |
| JG_ZZ_SYS_FORMATS_ALL_TL | |
| GL | JE_BE_LINE_TYPE_MAP |
| JE_BE_LOGS | |
| JE_BE_VAT_REP_RULES | |
| ALL | JE_BE_LINE_TYPE_MAP |
| JE_BE_LOGS | |
| JE_BE_VAT_REP_RULES |
Searching My Oracle Support I was able to find a direct hit with note "Gather Schema Statistics fails with Ora-20001 errors after 11G database upgrade [ID 781813.1]" that was able to walk me through the way to identify which items were an issue, and how they could be resolved.
Subscribe to:
Posts (Atom)