Saturday, July 13, 2013

Provision Pluggable Database 12c using Enterprise Manger 12c

I am going to take my existing Oracle Database 12.1.0.1 non-CDB and use Enterprise Manager 12.1.0.1 to provision a pluggable database into my existing CDB.

This blog post is part of my Oracle database consolidation blog which you can read here.

Demo

I will be using my dbtest3 12.1.0.1 non-CDB database to plug into my container database testdbs.

Note:

The non-CDB must already be 12.1.0.1 and above.

1. Login to OEM and go to the container testdbs database home page.

3. Click on Oracle Database>Provisioning>Provision Pluggable Databases>

4. Select migrate existing databases and click launch.

5. Select plug as a PDB set your Oracle home credentials and click next.

6. Click add and select the database we are going to adopt then click select.

7. Set the database and host credentials, set the export directory, fill in the destination information, select datafile location and import directory then click next.

In my case I used the same directory for export and import but these directories can be different.
I set the name of the PDB to tstdb but you can leave the PDB name the same as the non-CDB.

8. Pre-check process will begin...

9. When validation is complete click close.

10. Give the job a new and description then set the schedule and click next.

In my case I left the name as is and the schedule as immediately.

11. Review your migration job and click submit.

12. Confirmation of job successful submitted will pop up click view job.

13. You can review the procedure activity to see the status of each step in the process. Expand the procedure steps and select the step. In the step details you can review the details of the step or steps you have selected.

14. In the below screenshot you can see in the step details it list the logs that are being created for the procedure step "Create Pluggable Database Step" click the link of the log to see what is written into the log.

15. Here we can see the output of the log as the step is running.

16. To get back to the job activity click Enterprise>Provisioning and Patching>Procedure Activity.

17. Click the job name

18. When the job completes all procedure step will show completed.

Note if you see an  then these means the step is skipped because it did not need to execute.

19. We can now see the non-CDB has been plugged into the CDB and added as a target to Enterprise Manager.

20. From the container home page we can see information about the pluggable database.



If you want to watch my YouTube video for the demo above see below.



My webpages
http://db12c.blogspot.com/
http://cloudcontrol12c.blogspot.com/

http://www.youtube.com/user/jfruiz11375

Follow me on Twitter



Wednesday, July 3, 2013

Adding Oracle Database 12c Container Database to Enterprise Manager 12c

In this demo I show how to add a Oracle Database 12c CDB to Enterprise Manager 12c.


If you have not read or heard about CDB or PDB I recommend a few references below.

Add CDB to Enterprise Manager 12c

1. Login to OEM

2. Click setup>add target>add targets manually
2. Select second option for target type select Oracle database,listener and ASM. Click add using guided discovery.
3. Select the server where the CDB is running click continue
4. Target discovery in progress
5. Select just the container database (CDB)

6. Click on the image  to configure the target

7. Set the dbsnmp password and click test connection.

If you receive a message that the dbsnmp account is locked click the change dbsnmp password button and set a new password to unlock account.
8. Review and click next
9. Review and click OK




10. Click next

11. Click save
12. Target saving will begin
13. Click OK
14. The CDB has now been added to OEM.












You can see this same demo in my YouTube video below.



My webpages
http://db12c.blogspot.com/
http://cloudcontrol12c.blogspot.com/

http://www.youtube.com/user/jfruiz11375

Follow me on Twitter

References:

Oracle Database 12c Multitenant Architecture Overview
Install Oracle 12c (12.1) + New Features and Tips
Oracle 12c Documentation Library


Enterprise Manager 12c Named and Preferred Credentials

In this demo I show how to setup Named and Preferred credentials for target password management in Enterprise Manager 12c.

Do you always find yourself or your teammates typing in the password for targets in Enterprise Manager 12c? Do you have a long list of saved passwords and you do not know what save credentials are for what target? Do you have quarterly password changes that make it a nightmare to manage the passwords for targets in Enterprise Manager 12c.

Using Named and Preferred credentials will be easier to manager all credentials for your different targets in Enterprise Manager.

Setup Named Credentials


1. Log into Enterprise Manager Cloud

2. Click Setup>Security>Named Credentials













3. Click Create


4. Type in the name and description for the credential. Select the target type for the authorization and the credential type. Set the username, password and role for the credential properties. Now test the credentials by clicking "Test and Save" button.

For my example I set database instance and database credentials. This named credential is for sys account with sysdba role privileges.


5.Click the magnifying glass.






















6. Select the target or type in the target name to search. Click Select button when ready.



7. Now click the "Test and Save" button.






















8. You will see credential operation successful. Select the newly created credential to review the details. Now click the create icon again to add a non-sysdba credential.






















9. Type in the name and description for the credential. Select the target type for the authorization and the credential type. Set the username, password and role for the credential properties. Now test the credentials by clicking "Test and Save" button.

For my example I set database instance and database credentials. This named credential is for system account with normal role privileges.





















10. Click the magnifying glass.






















11. Select the target or type in the target name to search. Click Select button when ready.























12. Now click the "Test and Save" button.





















13. You will see credential operation successful. Select the newly created credential to review the details. Now click the create icon again to add host target credential.





















14. Type in the name and description for the credential. Select the target type for the authorization and the credential type. Set the username, password and role for the credential properties. Note you can set run privileges like sudo. Now test the credentials by clicking "Test and Save" button.

For my example I set host and host credentials. This named credential is for OS authentication.





















15. Click the magnifying glass.





















16. Select the target or type in the target name to search. Click Select button when ready.





















17. Now click the "Test and Save" button.





















18. You will see credential operation successful. Select the newly created credential to review the details.





















Setup Preferred Credentials


1. Click Setup>Security>Preferred Credentials





















2. Select the target type  and click Manage Preferred Credentials.





















3. Select target name with SYSDBA database credentials and click set.





















4. Select the named credential with SYSDBA role created early  and click test and save.





















5. You will see named credentials association done successfully. You will see the target you selected now has a preferred credential set.





















6. Now select the target with normal database credentials and click set.





















7. Select the named credential with normal role created early and click test and save.





















8. You will see named credentials association done successfully. You will see the target you selected now has a preferred credential set. Now we will set the host credentials, click the preferred credentials link below the successful message.





















9. Select the host target type and click manage preferred credentials.





















10. Select the host and click set.





















11. Select the named credential created early and click test and save.





















12. You will see named credentials association done successfully. You will see the target you selected now has a preferred credential set. Now we will set the database host credentials, click the preferred credentials link below the successful message.


















13. Select database instance target type and click manage preferred credentials.





















14. Select the database target for database host credentials and click set.





















15. Select the named credential created early and click test and save.





















16. You will see named credentials association done successfully. You will see the target you selected now has a preferred credential set.




















Conclusion

Setting named and preferred credential help with password management for your Cloud Control 12c targets.

You can use the named credentials when you need to log into pages that require database log in credentials.






















When creating jobs you can use the preferred credentials to easily set the credentials needed to execute jobs.





Follow me on Twitter