Tuesday, September 10, 2013

Adding Entities (Component) to the Software Library in Oracle Enterprise Manager 12.1.0.3.0

As part of a blog series I'm currently working on for Provisioning and Patching in OEM12c, I needed to create a Software Library Component for the DB12c installation media. With 12.1.0.3, oracle introduced an dmcli approach (create_swlib_entity) to creating the relevant components. I'll explore the GUI method for now, and write a related blog for it later.

Before we begin, let's set some expectations :)

The blog post aims to
  • Create appropriate folders within the Software Library (SWLIB)
  • Create the relevant Entity (type Component) in the Software Library
It assumes that
  • The Software Library is already setup
  • Database 12.1.0.1.0 Install Media is downloaded, are compressed into a single file instead of two separate ones.
For reference, I have provided a link the Oracle Documentation as well.
 
Onward!

Where do I go?

1. Find your way to the Software Library home under "Patching and Provisioning".
NewImage
2. This page contains the Entities within our Software Library. It is important to note, that Entities with the lock icon are un-editable and are called Oracle-owned Entities. Thats by design, and in part encourages OEM administrators to create their own folder structures or, use the suggested ones. For example, Components, Directives, Images, Networks, Suites etc.
NewImage
Creating Folders
3. For the purpose of this demo, I'd like to create a custom entity, i.e. "Component" within the SWLIB.
3.1 Highlight the Components Folder, click Actions -> Create Folder. Why folders? Well, I personally like to keep things neatly organized.
NewImage
3.2 Similarlry, create a sub-folder within "Database Provisioning"
NewImage
4. For the purpose of this demo, I'd like to create a custom entity, i.e. "Component" within the SWLIB. Highlight the Components Folder, click Actions -> Create Entity -> Component
NewImage
5. Select "Installation Media" from the drop-down list. Click Continue.
NewImage
6. I try to be as specific with the names as possible. Enter an appropriate name for the entity. Click Next
NewImage
7. Select the appropriate Product, Platform, and Version for the installation media.
NewImage
Upload Installation Media
8. Okay, this part requires information regarding the files we need to upload, as well as, the destination location. We will upload the files to the SWLIB (as shown).

8.1 First, select the upload location. Leave the "Upload Files" radio button check. Select the SWLIB location where the files should be uploaded. You can, alternatively, chose the "Refer Files" link to upload to Reference File Location within the SWLIB. See documentation for more information.
NewImage
8.2 Next, add the install media. For me, using a "Local Machine" option ended in Java Errors. Either its a bug in OEM or there is an issue with my browser. Therefore, select "Agent Host" from the drop down and follow the screen shots below.
NewImage
8.3 Click on "Add". Follow screen shots below. Basically, I'm logging into the Agent Host, browsing through the relevant folders and adding the two installation files to the selection list.
NewImage
Save and Upload
9. Finally, click Save and Upload on the last page. A job is submitted to uploading the files.

NewImage

NewImage
9.1 Job Status looks good and completes successfully.
NewImage
Did it work?
10. Navigate back to the SWLIB page in Patching and Provisioning.
NewImage
So what did we learn (Bruce*)?
Well, for one thing, its really easy to add an entity component to the SWLIB in OEM12c. I will refer to this post in my Patching and Provisioning series which will highlight how to actually use it.

Hope you enjoyed reading and found it useful.

Cheers!

* Batman Begins reference - sorry I'm a big dork :)

No comments :

Post a Comment