| To: | Marko Myllynen <myllynen@xxxxxxxxxx> |
|---|---|
| Subject: | Re: Oracle connection debugging (was Re: [pcp] Handling Oracle PMDA Latencies) |
| From: | Nathan Scott <nathans@xxxxxxxxxx> |
| Date: | Thu, 14 Apr 2016 18:37:21 -0400 (EDT) |
| Cc: | pcp developers <pcp@xxxxxxxxxxx> |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <570F511E.5000605@xxxxxxxxxx> |
| References: | <56F25541.9020602@xxxxxxxxxx> <874656864.33839965.1458781570723.JavaMail.zimbra@xxxxxxxxxx> <56F36E49.8010501@xxxxxxxxxx> <675902814.33867352.1458794396829.JavaMail.zimbra@xxxxxxxxxx> <570D1333.2040109@xxxxxxxxxx> <899654573.39808794.1460523158800.JavaMail.zimbra@xxxxxxxxxx> <570F511E.5000605@xxxxxxxxxx> |
| Reply-to: | Nathan Scott <nathans@xxxxxxxxxx> |
| Thread-index: | 3el88pmuICVzllTFT39CUb8AG2ms7A== |
| Thread-topic: | Oracle connection debugging (was Re: [pcp] Handling Oracle PMDA Latencies) |
----- Original Message -----
> On 2016-04-13 07:52, Nathan Scott wrote:
> > ----- Original Message -----
> >> [...]
> >> connect.pl says "OK", after PMDA installation there are no oracle
> >> metrics available and the Oracle PMDA log is silent.
> >
> > Hmm, I've not seen anything like that. Usually theres a big warning
> > in the pmcd/oracle.log file ... and usually its that initial connect
> > that fails.
> >
> >> Are there any recommended sanity checks that could be done in this case?
> >
> > I'd verify the connection with sqlplus, issuing queries like those
> > listed in the pmdaoracle.pl code (near the start - bunch of 'em you
> > could try there). Those should all show columns/values returned by
> > sqlplus.
>
> Here are some additional details and perhaps a clue:
>
Ah - does this patch help?
diff --git a/src/pmdas/oracle/pmdaoracle.pl b/src/pmdas/oracle/pmdaoracle.pl
index ec4731b..e4e0d5c 100644
--- a/src/pmdas/oracle/pmdaoracle.pl
+++ b/src/pmdas/oracle/pmdaoracle.pl
@@ -3624,6 +3624,7 @@ WRITETIM column of the V$FILESTAT view.');
# $ENV{PCP_PERL_DEBUG} = 'LIBPMDA';
$pmda = PCP::PMDA->new('oracle', 32);
+$pmda->connect_pmcd;
$pmda->set_user($os_user);
oracle_control_setup();
cheers.
--
Nathan
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] Client Certificates, Martins Innus |
|---|---|
| Next by Date: | [Bug 1268297] Obsolete disk.dev metric references, bugzilla |
| Previous by Thread: | Re: Oracle connection debugging (was Re: [pcp] Handling Oracle PMDA Latencies), Marko Myllynen |
| Next by Thread: | Re: Oracle connection debugging (was Re: [pcp] Handling Oracle PMDA Latencies), Marko Myllynen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |