Posts Tagged ‘MetaLink’


Cleaning up Tablespaces after OATM has Completed

December 29th, 2008 by Robert McMillen • 1 Comment »

Often after running Oracle Application Tablespace Migration (OATM) you will find that there are still indexes, tables and objects left in some of the old tablespaces.  You want to clean them up so you can delete the old tablespaces and recover the space used by the datafiles.  In the OATM documentation there’s no clear instructions on how to do this since it assumes that OATM will handle it for you.

I recently had this situation and here’s some steps I took to resolve my problem.  This example assumes that I have some tables, indexes and objects left in the old FNDD and FNDX tablespaces.  I wanted to move everything over to one of the new APPS_TS_* tablespaces so I could drop these two old tablespaces and recover the disk space.

Before I got started I found this nice article that outlines options with working on Large Objects (which I had).  The syntax examples are nice.

First I wanted to list all objects left in FNDD so I knew what to move.  I used this script and modifed the Tablespace Name to list all objects (including “free space” segments).

Next I wanted to list any tables left in FNDD so I did this.

select table_name from dba_tables where tablespace_name = ‘FNDD’;

Before you move the table (and any associated LOB segments), you may want to verify you have enough space in the destination tablespace.  You can query dba_segments to find out how many bytes are currently being used for the segments that you are planning to move.  Then verify you have enough free space at the destination.

I found that I had a table with a LOB column and the two associated LOB and LOB Index segments.  I wanted to move the table and both LOB segments to APPS_TS_MEDIA in one group.  The command to move these three objects was:

alter table OWNER.TABLENAME

move tablespace NEWTABLESPACENAME

lob(COLUMNNAME)

store as (tablespace NEWTABLESPACENAME);

The COLUMNNAME is the column name in the table that contains the Large Object.

After the move I verified that there were no other objects left in FNDD using the same script above.  I also did a:

select owner, table_name from dba_tables where tablespace_name = ‘OLDTABLESPACENAME’; to ensure that the table was gone as well.

Now it was time to check FNDX to ensure that any indexes were moved as well.  I modified the script from above to reference FNDX instead of FNDD.  I also ran a select index_name from dba_indexes where tablespace_name = ‘FNDX’;

Once I identifed the indexes I used this command to move them to the new tablespace.

alter index OWNER.INDEXNAME rebuild NEWTABLESPACENAME;

After verifying that everything was gone from FNDX and now in the new tablespaces I was able to drop the FNDD and FNDX tablespaces freeing up lots of needed space.

Several documents on Metalink were also helpful so I’ve listed them here.

  • Summary Note to LOB’s/BLOB’s/CLOB’s/NCLOB’s and BFILEs DOC ID 198160.1
  • How to move LOB Data to another Tablespace  DOC ID 130814.1

Finally, though I didn’t have to use this syntax, here is the command to move just the Large Object (LOBs) segments to a new tablespace while NOT moving the actual table that uses them.

alter table TABLENAME move lob(LOBCOLUMNNAME) store as (tablespace NEWTABLESPACENAME);

And here’s the syntax to just move a Table which doesn’t have any LOB columns.

alter table TABLENAME move tablespace NEWTABLESPACENAME;

That about wraps it up, so good luck on your tablespace cleaning!

1 Comment »

 

Release 12 Critical Patch Collection for November Available

December 1st, 2008 by Robert McMillen • No Comments »

In a previous post we discussed the new patching bundle, the Critical Patch Collection (CPC) that Oracle began issuing in October.  As a recap, this is what Oracle says about CPC’s.

R12 Financials Critical Patch Collections (CPC) are consolidated critical patches that all R12 Financials customers must apply to ensure proper operation of their systems. Advantages of applying CPCs over one-off fixes and RUPs are as follows:

  • CPCs are fully quality assured against current RUP levels. Individual one-off patches are not.
  • CPCs are consolidated and only contain critical patches that apply to broad customer usages. They are smaller in footprint and therefore much easier to apply and uptake than RUPs.
  • CPC Readmes have detailed business and functional information about the fixes included. Customers can leverage the Readmes to determine impact and testing required for specific process flows and software components involved.

The header entry for CPC’s is found in Doc 557869.1 which describes all released CPC’s.

Be aware that there is a new CPC for November, release November 12th.  This second CPC applies to just Payables and Receivables.

You can find out more about it in the following documents:

EBS: R12 Payables Critical Patch Collection November 2008, (Doc 745767.1, Patch 7456652, 23Mb)

This first patch requires a minimum of R12.AD.A.delta.2,R12.ATG_PF.A.delta.2 and R12.PJ_PF.A.delta.2

Also there is a pre-requisite for Latin American users you should check in the README.

EBS: R12 Receivables Critical Patch Collection November 2008, (Doc 745769.1, Patch 7387254, 26Mb)

This second patch requires a post-install step of running the “Import Application Accounting Definitions” concurrent request.

We haven’t applied this yet in our environments but will be doing so soon so I’ll update this post when complete.

No Comments »

 

Applying RUP6 for Release 12.0.6

December 1st, 2008 by Robert McMillen • No Comments »

I recently applied the latest RUP for Release 12 at a client that is in the midst of a new R12 installation.  I thought I’d recap my experience.

The 12.0.6 patch was released on Friday, November 7th.  We were alerted to it because we ran a fresh version of patchsets.sh during the week and it indicated that everything we had installed was superseded by an unreleased patch.  That got our curiosity going and we checked around Metalink finding that RUP6 was imminent.

The environment was using RedHat Linux 64 bit.  We had recently upgraded the Oracle database from 10.2.0.3 to 10.2.0.4.  They were already on RUP5 and we had recently applied the October CPU and the October Critical Patch Collection patches.  Bottom-line, we were very up-to-date.

Our environment consisted of two Application Servers and a single DB Server.  We were using ASM (10.2.0.4) but not using RAC.  We also had a shared APPL_TOP using OCFS2 for the two Application Servers.

You must start by applying the pre-requisite adpatch, R12 AD.A Delta 6 (Patch 7305520, Doc 736655.1).  It’s about 1.4Mb in size.  After downloading it there was a script to run for adgrants listed in the Patch 7305520 README.  We ran it, the adgrants.sql script, (as sysdba) to grant privileges to selected SYS objects and create PL/SQL profiler objects. We then applied patch 7305520 with adpatch.

Next we downloaded the RUP6 (Patch 6728000, Doc 743368.1).  It’s a big one at 2Gb in size.  It is multi-language but since we had an English-only installation we just downloaded the Linux86 version from Metalink.  It comes packaged in four files:

p6728000_R12_LINUX_1of4.zip  498Mb

p6728000_R12_LINUX_2of4.zip 546Mb

p6728000_R12_LINUX_4of4.zip 503Mb

p6728000_R12_LINUX_4of4.zip 429Mb

Looking at the README, it’s a straight-forward install with adpatch.  However if you have HR implemented there are some post-install steps which I didn’t have to do.  More information about that is in Document 145837.1 on Metalink.

The next step was to install the RUP6 Help Files (Patch 7109200, Doc 743368.1).  This is another multi-language patch where we only had to install the Generic version.  This is a simple adpatch install with no pre/post requirements.

In summary, it was a fairly simple patch exercise for our environment.  Hope yours is the same!

No Comments »

 

So That’s What Those Hidden Oracle Parameters Are For!

November 5th, 2008 by Robert McMillen • No Comments »

We hit this issue when we were cloning a production RAC environment that had been backed up using RMAN and then restored to a non-RAC test environment. To get past it, we had to add a hidden parameter to the target init.ora file to allow us to open the duplicated database, and then remove it once the database was opened.

The solution turned out to be:

Set the following parameter in the auxiliary init.ora file:

_no_recovery_through_resetlogs=TRUE

Then open with resetlogs;

Once the auxiliary has opened, removed this hidden parameter.

This problem comes from unpublished Bug 4355382 ORA-38856: FAILED TO OPEN DATABASE WITH RESETLOGS WHEN USING RAC BACKUP

According to Oracle Support:

ORA-38856 is the expected error during open database resetlogs when the set of enabled instances (redo threads) in the controlfile does not match the set of enabled instances (redo threads) in datafile checkpoint. This is expected behavior in a normal RAC restore/recover/open resetlogs situation.

However, in a cloning scenario where once the clone database is opened with resetlogs and you would never expect to restore the old (RAC) backup, this check doesn’t matter.

No Comments »

 

Oracle Critical Patch Updates for this Quarter

October 15th, 2008 by Robert McMillen • No Comments »

A Critical Patch Update is a collection of patches for multiple security vulnerabilities. It also includes non-security fixes that are required (because of inter-dependencies) by those security patches. Critical Patch Updates are cumulative (with some exceptions) but each advisory describes only the security fixes added since the previous Critical Patch Update.

The Critical Patch Update for October 2008 was released yesterday (October 14, 2008).  This Critical Patch Update contains 36 new security fixes across all products.  As always, Oracle strongly recommends applying the patches as soon as possible.

Here are some highlights:

  • This CPU is the Terminal Critical Patch Update for Oracle Application Server 9.0.4.3, Oracle Enterprise Manager Grid Control 10.2.0.3, Oracle Application Server 10.1.2.2, Oracle Database 10.2.0.3, Oracle Application Server 10.1.3.3, and, Database 11.1.0.6.
  • It contains 15 new security fixes for the Database Suite.  1 of these vulnerabilities may be remotely exploitable without authentication.
  • It contains 6 new security fixes for the Application Server Suite.  2 of these vulnerabilities may be remotely exploitable without authentication.  3 of these fixes are applicable to client-only installations, i.e. installations that do not have Oracle Application Server installed.
  • It contains 4 new security fixes for the Applications Suite.  2 of these vulnerabilities may be remotely exploitable without authentication.

The Critical Patch Update Advisory is the starting point for relevant information. It includes the list of products affected, pointers to obtain the patches, a summary of the security vulnerabilities for each product suite, and links to other important documents. Supported products that are not listed in the “Supported Products and Components Affected” section of the advisory do not require new patches to be applied.

Also, it is essential to review the Critical Patch Update supporting documentation referenced in the Advisory before applying patches, as this is where you can find important pertinent information.

You can read more about this CPU at: http://www.oracle.com/technology/deploy/security/alerts.htm

The next four Critical Patch Update release dates will be:

  • January 13, 2009
  • April 14, 2009
  • July 14, 2009
  • Oct 13, 2009

Happy Patching!

No Comments »