Finding And Deleting Old Files (on Unix and Windows)

I needed to write short scripts to delete old files on a Windows Server. It’s a very easy task on UNIX flavors but the limited capacity of Windows command line made me worried. You can use a simple “find” command to find old files on UNIX. For example, the following command will be enough to find and delete files older than 7 days:

For the ones who are not familiar with the find command, I’ll try to explain its parameters. The parameter “-type f” is not mandatory but it will help you find only “files” (and filter out directories etc). The parameter “exec” lets you run a command for the selected files. The brackets are replaced with the name of the selected file. The plus sign (+) will make the command line is built by appending each selected file name at the end.

Applying Enterprise Manager Cloud Control 12c Bundle Patch 1 (Solaris) Part I

As you may know, EM12c BP1 was released for Solaris about 3 weeks ago. Our EM12c runs on Solaris, so I decided to apply it to our production system. To apply BP1 to EM12c environment, first we need to apply BP1 (and additional 1-2 patches) to OMS (Oracle Management Service), then apply some patches to deployed agents, and lastly, upgrade EM12c plug-ins (some of them may require additional patches to be applied to OMS). As you may guess, it’s not a piece of cake. Oracle recommends you to analyze how much effort you need to re-configure and re-deploy agents, and if it’s feasible, uninstall the existing Cloud Control and do a fresh installation.

These instructions are only valid (and tested) for EM12c running gon Solaris 10 (SPARC). You may need additional patches for Linux or AIX. My OMS is located in “/u03/oracle/Middleware/oms/”. My repository DB is “emrep” and located in a server named “erciyes”. Before I start to apply the patch, I stop all services by issuing the following command:

Important: Before you apply Bundle Patch 1, Oracle recommends to back up all EM components:

  • Management Repository Database (Highly Recommended!)
  • Middleware Home and EM domain
  • Instance Home where OMS is installed
  • Default Management Agent with OMS
  • Software Library
  • Oracle Inventory

Oracle Enterprise Manager 12c Bundle Patch 1 available for Solaris and AIX

At last, OEM 12c Bundle Patch 1 is available for Solaris and AIX! We installed our OEM Cloud Control 12c on a Sparc server, and I was waiting this bundle patch about 4 months. I’ll apply it as soon as possible because all actual plug-ins require this must-have bundle patch. Of course, I’ll blog about the patching process. After applying patch, I’m planning to test Management Connector for CA Service Desk and I’ll also blog about it.

OEM Base Platform Patch Number is 13242773.

As you may know, if you do a fresh install, you don’t need to apply this patch, because installation packages include BP1.

Here is the link for OEM 12c with BP1 for Solaris SPARC:

http://www.oracle.com/technetwork/oem/grid-control/downloads/solsoft-094433.html

Oracle Releases Oracle Solaris 11

Oracle today announced availability of Oracle Solaris 11. Here are some key points about Oracle Solaris 11:

  • Oracle Solaris Zones provides virtualization with lower overhead than VMware. New integrated network virtualization allows you to create data center topologies within a single OS instance with bandwidth control and monitoring.
  • Oracle Enterprise Manager Ops Center provides enterprise wide, centralized control over hardware, OS and virtualization resources for Solaris 11, and it’s “included” in systems support (not requires an extra license).
  • Oracle Solaris 11 is “secure by default”, it locks down services from first install and provides role-based root access.
  • Oracle Solaris ZFS provides flash-enabled tiered storage pools, encryption and the scalability to store unlimited amounts of data. With Oracle Solaris ZFS deduplication, storage requirements in virtualized environments can be reduced by 10x.
  • Oracle Solaris and Oracle software applications (such as Oracle Database 11g, Oracle Fusion Middleware 11g) are designed and tested together to provide faster fail-over, reliability and better application performance.