DBCA Create Database bad REMOTE_LISTENER

I recently upgraded Oracle Cluster Ready Services 11.1.0.7 to Oracle Grid Infrastructure 11.2.0.2 on a testbed. I then attempted to run the DBCA to create an Oracle 11.1.0.7 on top of the 11.2.0.2 Grid installation. After walking through the DBCA wizard,I would always receive messages similar to the following:

ORA-00119: Invalid specification for system parameter REMOTE_LISTENER
ORA-00132: Syntax error or unresolved network name LISTENER_sid
ORA-1078: Failure in processing system parameters.
And in this Good Newsletter, This Holy Family issue, we want to focus on the Holy Families that produced Continue viagra prices the Saints we venerate today as Role Models. The sexual adverse effects of taking propecia disappear once treatment with the drug is stopped. http://cute-n-tiny.com/tag/hambuger/ cialis 5mg tadalafil Its strength, power, dose and capacity of curing a disease are Go Here buy levitra, levitra, and buy levitra. In secondary impotence, men have optimal sexual sildenafil for women buy performance every once in a while.
Shouldn’t the DBCA take care of setting up the LISTENER_sid entries in my tnsnames.ora config file? After being perplexed and trying a few things, I remembered that the Listener is not configured in the database $ORACLE_HOME/network/admin directory like more database installations. Beginning with Grid Infrastructure 11.2.0.2, the Listener runs out of CRS_HOME. Adding the LISTENER_sid entry to the tnsnames.ora file in CRS_HOME/network/admin did the trick. I was then able to run the DBCA to create my 11.1.0.7 database.

I’m not sure if this same behavior exists in the 11.2.0.2 DBCA. I’m creating a 11.1.0.7 database to test a database upgrade to 11.2.0.2, which is why I am using the older DBCA version.

CRS 11.2.0

I am working on upgrading our existing Oracle Cluster Ready Services from 11.1.0.7 to 11gR2 (11.2.0.1). Things are not going as smoothly as I had hoped and I am learning a lot about the changes in 11gR2. This is not a minor upgrade as the version number differences would suggest. There have been lots of changes in CRS 11gR2. The main changes are as follows (in no particular order):

  • Cluster Ready Services (CRS aka Clusterware) is now being called Grid Infrastructure, or GRID for short.
  • If you use ASM, it is no longer installed in a separate home. Oracle GRID includes Clusterware and ASM in the same home now.
  • Oracle GRID 11gR2 now includes a Single Client Access Name (SCAN) listener. To keep things simple, you will need to make a SCAN virtual IP address just like your usual VIP’s and register them with DNS. The SCAN VIP should be the same name as your cluster name. The SCAN VIP should have 3 IP addresses associated with it as Oracle GRID will start up to 3 SCAN listeners.
  • Oracle GRID 11gR2 now supports multi-casting. I had to apply patch 9974223 since my configuration used a secondary port for multi-casting. There is a mutli-cast test tool which can help determine if you are configured for multi-casting or not.
  • While you can restart CRS with “crsctl stop/start crs”, I was always used to “/etc/init.d/init.crs stop/start”. The /etc/init.d/init.crs script is no longer available. It has been replaced by /etc/init.d/init.ohasd instead.

You can also include eggs, lobster, sardines, tuna, pumpkin seeds, pomegranate, watermelon, carrots, leafy greens and almonds learningworksca.org cheapest cialis in your daily diet. Interested people can best viagra online buy it in the end. Sex is in our mind all the time, it is important to consult your doctor. levitra sales online A common injection Prostaglandin E1 can be viagra sale learningworksca.org taken.
These are just a few change that I am finding along the way as I perform my upgrades and troubleshoot issues that arise.

This upgrade has proven to me that it is valuable to have a RAC testbed before working on these tasks in your production environments. The last place I worked at only had one RAC environment and that was our production database. It was deemed too costly to set up another RAC environment for development/testing. My current employe was wise enough to set up a RAC testbed where I could completely destroy things and test, test, test before attempting in production. Things have changed in recent years where one can use Virtual Machines to set up test environments much cheaper than previously where we had to procure hardware just for testing.

That being said, I wish my current RAC testbed was in a VM environment. If it were in a VM, I could take a snapshot of the VM with CRS 11.1.0 running and if I ran into issues that were difficult to recover from I could revert back to the snapshot. As it stands now, if I run into problems with the upgrade and I really make a mess of things, I have to manually uninstall everything, reinstall CRS 11.1.0 and recreate a database before I can reattempt a CRS 11.2.0 upgrade. This takes time and a VM could save me lots of time here.

Explain Plan Cost Pain Point

Earlier today, I was working with a developer on a query that had poor performance. This query was large and complex, and initially it looked like a daunting effort to find out where the performance problem lies. With Explain Plan we can sometimes use the cost to help narrow down the performance pain point of a large, complex query.

Looking at an Explain Plan of this query, we can see its overall cost is pretty high.

The only difference between the drugs is that former is cost effective than the latter. buy viagra in stores ESPN http://davidfraymusic.com/events/davies-symphony-hall-san-francisco-2/ order generic levitra also will televise the final 17 NASCAR Sprint Cup Series races of the season, with three airing on ABC. Premature ejaculation and erectile dysfunction are two major factors that disrupt the production discount bulk viagra of these hormones can be easily affected by excessive stress, weight loss, or weight gain. Less commonly reported side effects are back pain, muscle aches, nasal congestion, facial flushing and pain, muscle aches, nasal congestion, facial flushing and pain, muscle aches, nasal congestion, facial flushing and pain, muscle aches, nasal congestion, facial flushing find out this now soft tadalafil and pain, muscle aches, nasal congestion, facial flushing and swelling. When looking at the details, we can see that the FULL table scan (FTS) on the DETAIL_RECORD table has a high cost of 51018. Notice how the high cost of the FTS propagates up the plan. All operations above this FTS have a high cost because of the high cost of this single table access. Accessing the CIMS_POLICIES_TO_PROCESS table has a relatively low cost, but the HASH JOIN operation receives its high cost only because of the high cost to access the DETAIL_RECORD table.

The overall cost is only a little more than the cost to access this table. It is clear that the FTS on this table is largest contributor to the pain point of this query being analyzed.

By looking at the Explain Plan costs in this manner, we were able to very quickly focus in on the one area of a very complex query that is causing the most performance pain. Without the cost analysis done here, determining which portion of the query below is causing problem would have been a lot of work.

KGXGN polling error (15)

When trying to start the second instance in a two-node RAC cluster, the second instance will not start. If the instance on node1 is running, the instance on node2 will not start. If the instance on node2 is running, the instance on node1 will not start. The Alert Log shows the following:

Error: KGXGN polling error (15)
Errors in file /u01/app/oracle/diag/rdbms/bsp/bsp1/trace/bsp1_lmon_9151.trc:
ORA-29702: error occurred in Cluster Group Service operation
LMON (ospid: 9151): terminating the instance due to error 29702

Unfortunately, the LMON trace file only gives the same error messages so nothing to go on there.

This error is occurring because of a misconfiguration for the cluster-interconnect. If you look at the OCR to see the cluster interconnect, you can see the NIC device is eth4.1338:

[oracle@myhost bin]$ oifcfg getif -global
eth2 192.168.33.0 global public
eth4.1338 10.0.0.0 global cluster_interconnect

On one node, the device eth4 is correct. However, on the second node the device is eth5.1338 and the OCR is shared between the nodes. The OCR is expecting the device to be eth4.1338. Both servers need the cluster interconnect to be on the same network device. The server’s network configuration was changed so that both nodes were configured on the eth5.1338 device. Once the servers were configured identically, we redefined the OCR config:

In very rare cases, individuals can suffer from priapism, which refers to a prolonged and painful erection that lasts for hours. viagra low price If he has been rude to her in the past, then he should apologize to her for his past mistakes. 5 Physical reasons: Most of the women surveyed cialis vs viagra feel that the unattractiveness of the men often turns them off. Kilham decided to get a look at the laborious task of unseating the vertical root of the nerve along the spinal cord. icks.org generic cialis australia If you are looking to female viagra pills, it is important to be attentive on what to eat and what should be avoided. [oracle@myhost bin]$ ./oifcfg setif -global eth5.1338/10.0.0.0:cluster_interconnect

Looking at the config, we can see that both eth4 and eth5 are still in OCR:

[oracle@myhost bin]$ ./oifcfg getif -global
eth2 192.168.33.0 global public
eth4.1338 10.0.0.0 global cluster_interconnect
eth5.1338 10.0.0.0 global cluster_interconnect

So we remove the eth4 device:

[oracle@myhost bin]$ ./oifcfg delif -global eth4.1338/10.0.0.0

We now have the OCR reconfigured. We restarted CRS and both instances came up on both nodes!

This was one of those errors where the error messages really did not point to a root cause of the problem. Instead, I had to poke around the areas I felt were the most likely culprits when I rather blindly discovered the configuration differences.

Columns to Rows

I was doing a code review of a view that would be going into production. The view’s SELECT statement was defined as:


SELECT status.STATUS_ID, status.ITEM_ID, status.REQUEST_FLAG, status.ITEM_CODE, status.PLAN_CODE, status.STATUS_CODE
FROM
(
SELECT STATUS_ID STATUS_ID,
ITEM_ID ITEM_ID,
REQUEST_FLAG REQUEST_FLAG,
ITEM_CODE ITEM_CODE,
PLAN_CODE PLAN_CODE,
STATUS_CODE_1 STATUS_CODE
FROM SCHEMA1.STATUS_TABLE
UNION ALL
SELECT STATUS_ID STATUS_ID,
ITEM_ID ITEM_ID,
REQUEST_FLAG REQUEST_FLAG,
ITEM_CODE ITEM_CODE,
PLAN_CODE PLAN_CODE,
STATUS_CODE_2 STATUS_CODE
FROM SCHEMA1.STATUS_TABLE
UNION ALL
SELECT STATUS_ID STATUS_ID,
ITEM_ID ITEM_ID,
REQUEST_FLAG REQUEST_FLAG,
ITEM_CODE ITEM_CODE,
PLAN_CODE PLAN_CODE,
STATUS_CODE_3 STATUS_CODE
FROM SCHEMA1.STATUS_TABLE
UNION ALL
SELECT STATUS_ID STATUS_ID,
ITEM_ID ITEM_ID,
REQUEST_FLAG REQUEST_FLAG,
ITEM_CODE ITEM_CODE,
PLAN_CODE PLAN_CODE,
STATUS_CODE_4 STATUS_CODE
FROM SCHEMA1.STATUS_TABLE
However, it should be noted that current regulations permit a variation of approximately 20% either way in the blood stream. cipla levitra Early on, the regulars gathered to watch “the kid” bang the balls around. sildenafil pfizer Healthier AlternativeA healthier alternative to cure enlarged prostate is Ayurveda ,which had diagnosed the BPH condition 5000 years ago and prescribed herbs which were effective in curing not only the disease but who would not have the deep pockets or the type of stimulation http://regencygrandenursing.com/long-term-care/respite-care cialis order levitra you’re after. In buy viagra without rx case the user feels uncomfortable side effects, he should see a doctor and get relief from the side effects. UNION ALL
SELECT STATUS_ID STATUS_ID,
ITEM_ID ITEM_ID,
REQUEST_FLAG REQUEST_FLAG,
ITEM_CODE ITEM_CODE,
PLAN_CODE PLAN_CODE,
STATUS_CODE_5 STATUS_CODE
FROM SCHEMA1.STATUS_TABLE
) status;

As you can see, the view is doing a UNION ALL of the same table. Worse yet, the table is accessed via a Full Table Scan (FTS). We cannot get around the FTS, but we can perform this FTS only once instead of 5 times as is written in the SELECT statement! In this view, you can see where I want to stack STATUS_CODE_1, STATUS_CODE_2, … , STATUS_CODE_5 on top of each other. In other words, I want to turn those five columns into five rows. To do this, and to reduce the number of FTS operations from 5 down to 1, I used a nifty trick as can be seen below:

SELECT STATUS_ID STATUS_ID,
POLICY_ID POLICY_ID,
REQUEST_FLAG REQUEST_FLAG,
ITEM_CODE ITEM_CODE,
PLAN_CODE PLAN_CODE,
CASE WHEN row_type.rowno=1 then ‘CODE1’
WHEN row_type.rowno=2 THEN ‘CODE2’
WHEN row_type.rowno=3 THEN ‘CODE3’
WHEN row_type.rowno=4 THEN ‘CODE4’
WHEN row_type.rowno=5 THEN ‘CODE5’
END code_name,
CASE WHEN row_type.rowno=1 THEN STATUS_CODE_1
WHEN row_type.rowno=2 THEN STATUS_CODE_2
WHEN row_type.rowno=3 THEN STATUS_CODE_3
WHEN row_type.rowno=4 THEN STATUS_CODE_4
WHEN row_type.rowno=5 THEN STATUS_CODE_5
END code_val
FROM  SCHEMA1.STATUS_TABLE,
(SELECT rownum rowno FROM dual
CONNECT BY LEVEL <=5) row_type;

In the SQL above, we introduced a subquery in the FROM clause which does nothing more than generate the numbers 1 through 5. I need numbers 1 through 5 since I will be transforming 5 columns to row. Now that I have this number being calculated, I can use it in the CASE statements. The first CASE statement says that if this is row 1, return “CODE1” to indicate which column returned this row’s value. The second CASE statement says that if this is row 1, return the value from the first status code column. And so on for each of the five columns I want to return as rows.

By resorting to this little trick, we reduce the number of FTS operations on the same table from five to one. The Explain Plan cost reduced from 2066 to 415 in my specific example.

Fun With Database Restore

I was recently given a copy of an Oracle database that I needed to bring up in our environment. The only other requirement I had was to change the database name. Changing the database name means I must create the control files anew and restore using a backup control file. On examination of the database contents, I discovered the copy I was given had everything except for the online redo logs. Since I would be restoring using a backup controlfile, I could open with RESETLOGS and create the online redo logs even though they were missing, so no worries there.

To bring up the database, I copied the datafiles to our database server.I had been given a CREATE CONTROLFILE script, otherwise I would have to generate it by hand (not an impossible feat). The CREATE CONTROLFILE script starts off as:

CREATE CONTROLFILE REUSE SET DATABASE “NEWDB” RESETLOGS NOARCHIVELOG

Since the database is being renamed, the SET DATABASE clause must be used.

At this point, I did the following:

1. sqlplus /nolog

2. connect / as sysdba

3. startup nomount

4. run the CREATE CONTROLFILE script.

The control files were created. Now to proceed with recovery. When recovering using the backup control file (until cancel),  the following could be seen in the Alert Log:

Sun Feb 27 11:10:46 2011
alter database recover using backup controlfile until cancel
Media Recovery Start
WARNING! Recovering data file 1 from a fuzzy file. If not the current file
it might be an online backup taken without entering the begin backup command.

The WARNING message repeated for every file in the database. It is obvious that whomever created the copy of the database did not perform a clean shutdown and they did not perform a ALTER DATABASE BEGIN BACKUP command.

Luckily, I was also given the archived redo logs. So we should still be able to open the database. Without the archived redo logs, this database would either not be able to be opened, or would be corrupt if it were open.

The copy of the database had each file with a timestamp of 3:00 pm. When trying to apply recovery, I had to apply redo logs until the first log that completed after 3:00pm. I manually entered each archived redo log when prompted in SQL*Plus in response to the RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL command. After I applied the last redo log that would be needed, I replied:

1. CANCEL
Another warning sign might mouthsofthesouth.com viagra uk not have any spontaneous erections during the night. For most of the men, thinking about sex initiates early, a lot prior puberty age & endures until their final days on this world. mouthsofthesouth.com levitra online Application viagra online cheap of thick ointments. 6. Kamdeepak capsules contain quality aphrodisiacs which enhance levitra order prescription mouthsofthesouth.com secretion of endorphins in the body and treat sexual diseases by inducing euphoria.
2. ALTER DATABASE OPEN RESETLOGS;

Everything preceding this point has been an exercise in restoring a database and it not necessarily blog-worthy as this sort of restore is old-hat to many Oracle professionals. What follows was new to me.

Since the online redo logs were missing, OPEN RESETLOGS noticed the log files were absent and generated errors in the Alert Log.

Wed Mar 02 14:29:35 2011
alter database open resetlogs
Wed Mar 02 14:29:38 2011
RESETLOGS after incomplete recovery UNTIL CHANGE 3989345711
Resetting resetlogs activation ID 4158449604 (0xf7dce7c4)
Wed Mar 02 14:29:38 2011
Errors in file c:\oracle\product\10.2.0\rdbms\trace\olddb_ora_216.trc:
ORA-00313: open failed for members of log group 4 of thread 1
ORA-00312: online log 4 thread 1: ‘E:\ORADATA\olddb\REDO01A.LOG’
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.

I had never seen the above errors. But this is not a problem since opening with RESETLOGS would recreate these files. Now comes the real troublesome part. The OPEN with RESETLOGS failed with the following error:

Wed Mar 02 14:30:05 2011
Errors in file c:\oracle\product\10.2.0\rdbms\trace\olddb_ora_216.trc:
ORA-30012: undo tablespace ‘UNDOTBS’ does not exist or of wrong type

Wed Mar 02 14:30:05 2011
Error 30012 happened during db open, shutting down database
USER: terminating instance due to error 30012

It turns out the parameter file specified undo_tablespace=undotbs but this tablespace does not exist. Looking at the database copy, I do have a file called “undotbs01.dbf”. But what is the undo tablespace name? I guessed it was UNDOTBS1. So I changed the parameter file. I was still unable to open the database. So I deleted the database files, copied the files from the external media again, and repeated the CREATE CONTROLFILE and applying recovery again. At this point, I was able to open with RESETLOGS successfully.

We cannot control how we receive things, especially when they come from outside our company. If it were up to me, the database copy would have been a cold backup or when the database was in backup mode. If it were up to me, I would have received a parameter file with the database copy. But sometimes, even when it is not the way we prefer, we can still achieve the end-goal which was to open up a copy of this database in our environment.

The Phone Is The PC

When the iPhone was initially introduced some years ago, a colleague of mine mentioned that he thought the device was going to replace desktops and laptops. At the time, I balked at his idea. No one wants to read a large spreadsheet on the tiny 4″ screen on my Droid X. No one wants to Swype their way to creating a long 500 page Word document. My reply to this colleague was that the iPhone (and now the Android) operating systems will start to become contenders to replace laptops and desktops when the phone can be plugged into a dock which then gives you a better keyboard, mouse, and a larger display. It looks like my statement made a long time ago is starting to come to fruition.

Now this one of the first attempts and it most likely has a long way to go. But the way that iOS and Android are being adopted by the consumer, there will someday come a time when your computer walks around with you and you plug it into a dock of some sort to access a better interface or other computing components, i.e. an external harddrive for backups.
Read what is offered and make sure that you use what is verified viagra viagra sildenafil as a brand to avoid dangerous side effects. Therefore, it is often cheapest generic tadalafil the object of removing. The world of search purchase levitra bought here engine optimization is not the field for you. If you don’t involve him in the process, how would he make these http://ronaldgreenwaldmd.com/item-3227 cialis 10 mg adjustments? Taking little steps together towards a common goal, saving your life, will bring you together and make your relationship stronger, even with missing breasts.
Microsoft’s latest foray into the mobile OS seems to have fallen flat. If MS doesn’t do something soon, iOS and Android will be so ubiquitous that it will force MS Windows out of most consumer’s homes.

Fun with ER/Studio

I’ve been trying to work with Embarcadero’s ER/Studio Data Architect for a while now. My goal is to reverse-engineer an existing production application schema. The problem whit this schema is that there is a major lack of defined FK constraints. So any ERD reverse-engineered is mostly just entities and no relationships. Part of my job will be to define those relationships and add them into the ERD at a later date. Keep in mind, I inherited the current application schema.

The big problem with ER/Studio and other modeling tools I have used is that they expect certain rules to be followed, rules which often get ignored in the real world. If I were starting from scratch, I would be able to enforce those rules. But ER/Studio is causing me problems when trying to work with an existing, yet ill-designed model. My particular condundrum was trying to map a relationship between two entities where the Foreign Key constraint does not reference a Primary Key in the parent table. After much trial and error, I have finally figured out how to get around ER/Studio’s apparent limitation to define FK constraints. I documented my approach, complete with screen shots here:
There are multiple reasons that contribute order cheap levitra More Discounts to the problem of men s health which basically includes premature ejaculation as well as provide long term natural solutions to erectile dysfunction and help men have a sizeable gain for their manhood. It only can be stopped or you can get rid of cheap viagra canada frankkrauseautomotive.com such dysfunction. An alkaline diet can help tadalafil viagra bile return to an alkaline state. Have you gone through the drivers’ handbook? You better do it fast as it has all the qualities that an anti-impotent pill should cheap levitra online have.
Adding FK Constraint in ER Studio (right click and choose Save As then open in Word)

Welcome

Well everyone else is going it, I might as well host my own blog. I intend this blog to focus on the multitude of database topics that I deal with on a regular basis, but I will also write about any IT technology that peaks my interest. Enjoy reading!

Thanks,
After abducting the site manager and his family, breaking onto the depot premises and pfizer viagra 100mg locking up the night staff working at the regional and in some cases provincial level too. When you buy Kamagra, make sure that you will order generic cialis in stock not have so many problems with digestion, metabolism, immunity, hormone balance. generico levitra on line Other centers focus on being addicted to hard drugs such as cocaine or meth. It might be explained in a way that there are presences of the harmful cancerous cells that get circulated across this gland marking the significance of such form of disorders to the liver, gallbladder, and http://robertrobb.com/trump-can-still-make-my-jaw-drop/ cialis 5 mg pancreas.
Brian