Comments on: Scripts and Presentations https://dbakevlar.com Making Technology Bulletproof Thu, 17 Apr 2025 22:15:14 +0000 hourly 1 By: karthik https://dbakevlar.com/scripts/#comment-1929600 Thu, 16 Nov 2017 19:59:00 +0000 https:/?page_id=3#comment-1929600 I am having issues with the alerts that I am receiving from OEM13c especially related to Warning:xyz.com – Agent is unable to communicate with the OMS. (REASON = Agent is Unreachable (REASON : Agent to OMS Communication is broken. Failure connecting to https://xyz:4903/empbs/upload and it clears immediately in couple of seconds. Can you please let me know how to fix this error. I know this issue occurs when the agent is unable to reach the OMS but because of this error I am receiving other alerts like “The current status of the target is Up” especially related to the databases. Can you please let me know if there is a work around or a patch that needs to be applied to fix this issue

Thank you
Karthik

]]>
By: Ben (Database Star) https://dbakevlar.com/scripts/#comment-1928815 Thu, 17 Aug 2017 19:30:00 +0000 https:/?page_id=3#comment-1928815 In reply to DBAkevlar.

Sorry for the late reply!
No problem, the site is here:
https://www.databasestar.com/oracle-sql-indexes/
Thanks!
Ben

]]>
By: DBAkevlar https://dbakevlar.com/scripts/#comment-1928518 Wed, 28 Jun 2017 19:40:00 +0000 https:/?page_id=3#comment-1928518 In reply to Ben (Database Star).

Would love a link, thanks!
Kellyn

]]>
By: GBuc https://dbakevlar.com/scripts/#comment-1928459 Fri, 23 Jun 2017 18:10:00 +0000 https:/?page_id=3#comment-1928459 In reply to DBAkevlar.

If anyone stumbles here and looks for a solution to the same problem: No templates for 13c HOWEVER, there is a fix:

Create an empty 12.2 (or your version) database to be used as OEM 13c repository.

Use Database Configuration Assistant. Choose “create a database” , “Advanced Configuration”, “Single Instance database”, then choose the “GENERAL PURPOSE or TRANSACTION PROCESSING” Template.

So far, been working just right for me.

]]>
By: TIm Boles https://dbakevlar.com/scripts/#comment-1928003 Mon, 01 May 2017 15:50:00 +0000 https:/?page_id=3#comment-1928003 Kellyn,

I am wondering if you have any leads on any one that has previously integrated OEM 13c (or even before) with the vFire Core (VM Service Manager) for the purpose of ticketing. Most of the documents and information I find is for OEM managing VMware virtual machines not for connecting with the Service Manager. I have looked at some documentation for building connectors for OEM and I have glanced at the API User Guide for VMware Service Manager. They seem to have two totally different approaches so I am not sure they are even compatible.

]]>
By: DBAkevlar https://dbakevlar.com/scripts/#comment-1927955 Wed, 12 Apr 2017 19:24:00 +0000 https:/?page_id=3#comment-1927955 In reply to vinay singh.

Look into creating a metric extension to check and on trigger, submit the corrective action.

]]>
By: DBAkevlar https://dbakevlar.com/scripts/#comment-1927954 Wed, 12 Apr 2017 19:23:00 +0000 https:/?page_id=3#comment-1927954 In reply to Sandeep Sinha.

I’d submit an SR to EM support. There are some changes in EBS support for 13c, so see if there is a known issue or a patch.

]]>
By: DBAkevlar https://dbakevlar.com/scripts/#comment-1927953 Wed, 12 Apr 2017 19:22:00 +0000 https:/?page_id=3#comment-1927953 In reply to GBuc.

Sorry, haven’t see a template built for this yet, but its common to have a delay from the time the database release goes GA and the time a template’s been created. I’d stay tuned and soon enough they’ll have it!

]]>
By: GBuc https://dbakevlar.com/scripts/#comment-1927952 Wed, 12 Apr 2017 19:13:00 +0000 https:/?page_id=3#comment-1927952 Windows Server 2012 R2 Standard: Clean install of Oracle DB
12c, Release 2 (12.2.0.1.0) as we prepare to load OEM 13c.

Found the wonderful templates for OEM 13c; however, they are
for Oracle 12.1. šŸ™

I could not find OEM 13c Template for DB 12.2.0.1.0.

Q: Have you found
templates for OEM13c and DB 12.2?

If not, I am searching for values to use as found in the
templates for 12.1

Thanks!

]]>
By: Jeffrey Zollars https://dbakevlar.com/scripts/#comment-1927915 Thu, 06 Apr 2017 21:56:00 +0000 https:/?page_id=3#comment-1927915 In reply to Jeffrey Zollars.

On further research, I believe that I’ve worked out the correct syntax and answered my own question. The syntax …
emcli set_monitoring_credential -target_name=’DR_SID’ -target_type=’oracle_database’ -set_name=’DBCredsSYSDBA’ -cred_type=’DB_Creds’ -attributes=’DBUserName:sys;DBPassword:xxxxxxxxx;DBRole:SYSDBA’

However, the command runs without any response back to the terminal – ie, no command processed type reply.

I have even tried logging into emcli with the -force option …
emcli login -username=sysman -password=xxx -force

and repeated the set_monitoring_credential command. It also fails. I may be running into the Bug 21367784.

I’ll retest this again in the future.

]]>
By: Jeffrey Zollars https://dbakevlar.com/scripts/#comment-1927904 Wed, 05 Apr 2017 00:08:00 +0000 https:/?page_id=3#comment-1927904 Kellyn,
I was wondering if you might have any insight into the syntax of an emcli command below.

I need to regularly update the SYS password for the DB per our security policy. The sys account password is set directly to the DB from Cyberark. We’ve written a Bash shell script to then copy the password file to the Standby. I am trying to set the monitoring password for the Standby DB’s in EM Grid control for around 100 DBs after copying the password file over to the Standby DB server. I’m running the emcli commands as the SYSMAN account for Grid OMS.

The questions that I have are:
Does this update have to be run from the local standby DB server or can it be run from EM Grid Control OMS server? I’m hoping to run this from the OMS server rather than all the individual DB servers.

The syntax I’ve worked out so far is the following …

emcli set_monitoring_credential -target_name=DR_SID -target_type=oracle_database -set_name=DBCredsSYSDBA -cred_type=DBCreds -test -attributes=”DBUserName:SYS;DBPassword:password;DBRole:SYSDBA”

and I’ve also tried with the set_name=DBCredsMonitoring and both failed.

The error I’m getting is …
Error:Invalid credential type for set name.Credential set not found for target type , Setname DBCredsSYSDBA

Any input would be appreciated.

Thanks,

Jeff

]]>
By: Sandeep Sinha https://dbakevlar.com/scripts/#comment-1927538 Fri, 17 Feb 2017 17:37:00 +0000 https:/?page_id=3#comment-1927538 In reply to DBAkevlar.

I already did the agent restart but no luck…

still facing the same issue..

]]>
By: Sandeep Sinha https://dbakevlar.com/scripts/#comment-1927532 Thu, 16 Feb 2017 23:06:00 +0000 https:/?page_id=3#comment-1927532 Need help in fixing Error while tying to register EBS12.2.5 on OEM 13.1.0.0.0

Error Message:

EBSTargetDiscovererR122 WLS Admin Server not running on Patch node. Starting it.
EBSTargetDiscovererR122 Starting WLS Admin Server using /XXXX/app/oracle/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl
EBSTargetDiscovererR122 Failed to start Admin Server on Patch node.
Discovery Error: oracle.apps.fnd.oam.em.sdk.targetData.discovery.AppsDiscoveryException: Error while attempting to discover EBS on : XXXX( oracle_database )

===========

All the services on both file system is already up and running…
not sure why it is tying to restart again and erroring out..

]]>
By: vinay singh https://dbakevlar.com/scripts/#comment-1925477 Sat, 18 Jun 2016 12:23:00 +0000 https:/?page_id=3#comment-1925477 Is there any way to capture the dbsnmp “account lock” errors in oem 12c and create corrective action for that ..We have a big environment and a lot of time databases show as down only because of this .we cannot keep the same password forever due to the policies.

]]>
By: rajeshwar https://dbakevlar.com/scripts/#comment-1925427 Wed, 08 Jun 2016 00:41:00 +0000 https:/?page_id=3#comment-1925427 In reply to DBAkevlar.

Thank you. I will try this and let you know, am not sure if I have privileges to query the dbms_xplan.Btw, am a developer and very much interested in learning about performance tuning, oem etc. What’s a good book you would recommend if I’ve to understand looking at oem and understanding the awr reports etc, understanding explain plans etc?

]]>
By: DBAkevlar https://dbakevlar.com/scripts/#comment-1925424 Tue, 07 Jun 2016 01:25:00 +0000 https:/?page_id=3#comment-1925424 In reply to rajeshwar.

There are a couple different ways to do this, but I would start with ensuring the stats are up to date for the objects involved and then create an explain plan for the statement, then
SET LINESIZE 130
SET PAGESIZE 0
SELECT * FROM table(DBMS_XPLAN.DISPLAY);
Inspect the temp usage displayed for the explain plan.

If the statement has already run, you can look at the data in the AWR:
SELECT * FROM table(DBMS_XPLAN.DISPLAY_AWR(”));
Thanks,
Kellyn

]]>
By: rajeshwar https://dbakevlar.com/scripts/#comment-1925421 Mon, 06 Jun 2016 22:45:00 +0000 https:/?page_id=3#comment-1925421 I am running into temp space errors when trying to run a sql query. How can I estimate how much temp space would I need for a query that is currently running?

]]>
By: Foued Grayâa https://dbakevlar.com/scripts/#comment-1924629 Thu, 18 Feb 2016 13:32:00 +0000 https:/?page_id=3#comment-1924629 Very kind and very nice to share such scripts as well as those articles. Grateful for that.
Foued

]]>