Friday, September 27, 2013
Patch and Provision with EM12c: #3 Database Provisioning - Using Profiles
What I'd to achieve today
- Provision RDBMS software and Create a Database using a procreated profile
1. Find your custom profiles by navigating to the Database Provisioning homepage.
2. Highlight the Profile you'd like to use and click "Provision".
3. On the next page, the profile you selected in the previous screen is already populated. Click the "Add" button, and select the correct host. Note, that you can select multiple hosts, but unfortunately I only have a single one to test with.
Configuration
4. On the next screen, as we have seen with earlier posts, the Configuration screens require a step-through of the Host, Software, Database, and Compliance areas.
4.1 Click on Setup Hosts
4.2 Select the correct values from the next couple of screens.
4.3 Click on "Deploy Software".
4.4 Enter the Oracle Base and Home directories.
4.5 Time for "Create Database".
4.6 Configure Database settings accordingly.
4.7 I usually just skip the Compliance setup. Clicked through it to get ahead.
4.8 Getting close to the end now!
4.9 Submit the task!
Progress
5. The procedure activity screen displays periodically refreshed status updates.
5.1 Let's start with the first one.
5.2 Bingo, we're done!
6. Upon searching for the container database, I find it.
Conclusion
The story doesn't end here, I could go a few steps further to provision the GI, RDBMS, and Database with a single profile. I'd like to save that for another time :)
I do understand, that in a test/lab environment the results aren't as critical as in a production one. The aim of these exercises is to show you that it is possible to leverage profiles to provision software plus database quite easily.
Cheers!
Thursday, September 26, 2013
How long did your Database Upgrade actually take?
Saturday, September 21, 2013
ORA-00119 During a Database Upgrade
- 11.1.0.7.0 CRS & ASM upgraded to 11.2.0.3.0 GI.
- 11.2.0.3.0 RDBMS Software Installed.
ORA000132: syntax error inresolved network name 'LISTENER_FREEDOM1'
ORA000132: syntax error inresolved network name 'LISTENER_FREEDOM2'
alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = xxxx-vip)(PORT = 1521))' scope=spfile sid='xxx2';
- Shutdown Database (from 11.1 RDBMS home)
- Startup Upgrade one instance on (from 11.2 RDBMS home)
- Upgrade Database Components
- Post Upgrade
Wednesday, September 18, 2013
DB12c: ORA-19504: failed to create file "+DATA" While Creating Pluggable Database Manually
- There’s a missing script “piece” while creating the CDB manually
- Or, there’s a bug within the code which is hit while creating the PDB on ASM.
Tuesday, September 17, 2013
Oracle Open World 2013 Schedule
So, two weeks before OOW, when I had resigned myself for nothing being able to go I found out that I'm actually going! Now, I'd been following the twitter feed on the happenings out here so, it didn't take me long to get my schedule together.
Saturday:
I'm taking the last flight out to SFO, and fortunately for the time change arrive late in the evening :)
Sunday:
I found out about the Open World Bridge Run earlier on, and couldn't resist going. Jeff Smith (@thatjeffsmith) has promised a ribbon for the first 50 people out there. Not that its my only motivation, but I'd like to increase my ribbon collection this year :) Afterwards, there are a handful of User Group sessions which I will attend. After Larry's keynote, the dinner venue is up for debate at this time!
Monday:
Chet Justice (@oraclenerd) posted this, and again I couldn't resist! Oracle Open World San Francisco Bay Swim - Part II at the Dolphin Swimming and Boating Club is going to be a fun way to kick off the "working" week at OOW. If I'm not mistaken, over 50 folks have signed up. I just hope someone brings hot drinks after the cold pacific water swim.
After the keynote later on in the afternoon, is my presentation with Oracle Partner Exchange: Developing a Cloud Services Practice with Oracle Technology [CON9843].
Post presentation, I'm hoping to hit some Oak Table presentations along with a few Big Data ones from OOW. I'm suck a slacker that I haven't even done my schedule yet :) Dinner plans for Monday are iffy, I'm sure that I will tag along with whomever is unlucky enough to bear my company!
Tuesday:
So, the highlight of the day is RACAttack! I have the honor of being one of the esteemed Ninja's for this attack session :) Come and join us to build a DB12c RAC Cluster, and at the same time network and make friends with your peers. Outside of that, again Oak Table, and OOW presentations wherever I can fit them. The day will be finished off with a bowling event, and hopefully some sleep!
Wednesday:
Early morning flight back home. Either I will be wide away on the plane, or I'll be blogging about my wonderful experience.
In any case, the short of it is, I'm looking forward to meeting existing friends, and to make new ones!
Please do ping on twitter @maaz_anjum up if you're out there, as I'd love to meet up! :)
Note: Another events that I'd recommend is the Bloggers Meet Up on Wednesday.
Cheers!
Saturday, September 14, 2013
Patch and Provision with EM12c: #2 Database Provisioning - Profiles
Provisioning Profiles
To put the concept into perspective, lets start with a story.
A certain Mr. Green (DBA Manager) is responsible for dozens (maybe more) servers, which host many databases. Now, for a growing organization, there's a need to provision database servers for upcoming projects. Most likely these projects will go through a Development Lifecycle, i.e. Development, Pre-Prod, and eventually Production. Mr. Green's DBA's are busy people preoccupied with internal projects. Much to his dismay, previous server build cycles were inconsistent.
He wishes there were a way to streamline it. A way to standardize software, and database provisioning.
Database Provisioning, specifically Provisioning Profiles offer a robust and more importantly, a repeatable approach to Mr. Green's problem. Not only would he be able to standardize his deployments, configurations from a Pre-Prod environment can easily be replicated to Production.
Okay, maybe I tend to over-simplify things. Oracle Documentation provides good examples on how to configure a Database Profile, however I'd like to explore the concept further and discuss The three types of profiles template options.
Straight from Docs:
"Provisioning Profile is an entity which contains software bits and configuration. When a provisioning profile is created from an existing installation, it provides the flexibility to clone either Grid Infrastructure (with software or configuration) and Oracle Database (with software or configuration). You can create database templates using provisioning profiles. A designer or administrator can create a database provisioning profile as a one-time activity; which can be used by operators for mass deployment. Using provisioning profile enables standardization in deployments and reduces need for rescheduling deployments by avoiding errors while configuring deployment procedures."
To set some expectations, in the post I will create profiles for
- GI Home
- RDBMS Home
- Database Template
1. Find your way to the Database Provisioning link.
2. Click "Create".
Grid Infrastructure Profile
3.3 Review the setting and click "Submit".
3.4 We are redirected to the Procedure Activity page. Under the hood, the procedure is actually creating a clone of the GI Home. Then, upload it to the SWLIB. Pretty neat!!
3.5 After a few minutes, the Activity is complete!
3.7 Go back to the "Database Provisioning" home page. There it is!
RDBMS Profile
4. Back on the "Database Provisioning" home page.
4.1 Click on "Create".
4.2 Again, all I changed is the "Profile Name". Click "Next".
4.3 Review the settings and click "Submit".
4.4 As with the prior Target Type, the Procedure Activity (among many other tasks) will clone the Oracle Home.
4.5 Back on the "Database Provisioning" home, we'll see the new profile.
Database Profile
5. Let's create a Database Profile now! It's important to mention what this profile actually contains:
- RDBMS Software Image
- Database Template
5.2 On this page, as previously stated, I only changed the "Profile Name".
5.3 Review and click "Submit".
5.4 Progress is always good :)
5.5 After taking a while, the process finally completed.
5.6 And as before, the new profile is now part of the library of profile under the "Database Provisioning" home page.
Downloading Profiles
6. In case, one doesn't want to create their own profiles, and download them from a different source (OTN), there's a neat feature to do that. On the "Database Provisioning" home page, click on "Download Profile…". This actually takes you to the "Self Update" page, but as you can see, there aren't any new profiles available for download. I would imagine, in the situation where the Oracle Database plugin is updated to the latest 12.1.0.4.0 one which supports 12c Databases, the profiles would be automatically imported. That's only a theory at this point!
Conclusion
There's potential here, no doubt about that. You've probably noticed, that I don't talk about licensing during this exercise. There is a management pack you would need to purchase for the Database - unless I am mistaken, its the Lifecycle Management Pack. In any case, if you were Mr. Green, the benefits of this feature would be quite apparent, and well worth the cost.
I hope you enjoyed reading, as much as I did composing this blog. I think, next time, I will likely explore further on Deployment Procedures.
Cheers!
Next in Series: Using Profiles