Thursday, November 24, 2011

APConsole

I was tired of not having something similar to emconsole for standard edition databases.

So I developed APConsole.

APConsole Features
  • Operational when CONTROL_MANAGEMENT_PACK_ACCESS is set to none where performance views don't get populated.
  • Does not use any of the views mentioned in diagnostic pack nor tuning pack.
  • One APConsole installation monitors Oracle Database 10gR2 through 11gR2.
  • Works with both single instance and Real Application Cluster Databases.
  • Get performance visualisation of Standby databases, even physical standby databases in mount mode. (Not open as read only with 11g active data guard feature).
  • Monitor multiple wait classes and none related wait events in a single performance view.
  • Drill down IO Functions by file types.
  • View multiple IO Functions in a single performance view with respective file types.
  • APConsole is a client side tool with only read operations on the database without any write overhead.
  • Easy access to historical data and extract historical performance views as PDFs or image files.
Notification
  • Email performance views as a scheduled notification or on request with few clicks.
  • Send email notification using standard email server or using free email services (Hotmail, Gmail). Other emailing servers could be integrated to APConsole on request.
Save
  • APConsole allows performance views to be saved quickly and easily.
  • Save multiple performance views into single PDF or as PNG images.
Configure
  • Set desired degree of granularity for wait event reporting which range from microseconds to seconds.
  • Set threshold values on wait class level or on event level to filter out low value events.
  • Set number of hours visible on the performance views.
  • Change the look and feel of APConsole to fit the client OS and APConsole behaviour to fit DBAs needs.

Full Page Demo



Comparison of EM Console vs APConsole
APCosnole has a longer x-axis than EM Cosnole therefore the graph's shape may seemed wider but time values are same and also the y-axis values.

Waits (APConsole vs EM Console)



IO Throughput (APConsole vs EM Console)


IO Rate (APConsole vs EM Console)


IO Type : Throughput (APConsole vs EM Console)


IO Type : Rate (APConsole vs EM Console)


Database load was generated with DBMS_RESOURCE_MANAGER.CALIBRATE_IO which gave the output of max_iops = 119, latency = 7, max_mbps = 19

Tuesday, November 22, 2011

ORA-00600 [kqlindp-bad-user]

ORA-00600 [kqlindp-bad-user] error started to happen in a two node RAC running 11.1.0.7 on RHEL 64 bit system.

Effect on the system was both expdp and impdp was giving the following errors on the client side and ORA-00600 [kqlindp-bad-user] being logged on the alert.log. For import
UDI-31623: operation generated ORACLE error 31623
ORA-31623: a job is not attached to this session via the specified handle
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2862
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4052
ORA-06512: at line 1
For export
UDE-31623: operation generated ORACLE error 31623
ORA-31623: a job is not attached to this session via the specified handle
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2862
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4052
ORA-06512: at line 1 and also any local PL/SQL package execution would a
The only metalink note (at the time of writing) related to this ora-600 was ORA-600 [kqlindp-bad-user] [ID 753007.1] which wasn't much help.

Other issue was execution of PL/SQL packages (even users own ones, not the pl/sql packages on a different schema) throw up the ORA-00600 [kqlindp-bad-user] error. The error was coming up on the client side (JDBC connections) as well as beign logged on the server side.

There were plenty of metalink notes for errors UDI-31623 and ORA-31623 but none of those solutions helped.

After raising a SR following steps were recommended which resolved the issue.

1. Execute the following query and examine the output
select owner#, name
from sys.obj$ where owner# not in (select user# from sys.user$) and type# != 10;
This returned set of PL/SQL objects with owner id in this case all the objects seem to be from one owner.

2. After submitting the above query output Oracle came back with The output of the previous query shows non-existent users referenced by table sys.obj$. If you run hcheck.full it may show some data dictionary inconsistency. The ORA-600 error is not directly a consequence of the orphan obj$ rows; it is caused by one or more of the bad obj# being present in the objerror$ table.

Offered solution was take a full backup and in order to fix the issue remove the row from objerror$:
startup restrict
delete from sys.objerror$ where obj# in (select obj# from sys.obj$ where owner# = owner_id from previous sql and owner# not in (select user# from sys.user$));
commit;
shutdown abort;
The shutdown abort is required to save changes to the data dictionary. Once the database is shutdown, you must then perform a startup and a clean shutdown before it can be used again.
startup restrict;
shutdown immediate;
startup;
3. This resolved the issue with ORA-00600 [kqlindp-bad-user] coming up when executing pl/sql packages but expdp and impdp still gave errors, but this time it was different error.
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_FULL_01 for user SYSTEM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 601
ORA-39080: failed to create queues "" and "" for Data Pump job
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPC$QUE_INT", line 1550
ORA-01403: no data found
4. After refereing metalink notes
Impdp or Expdp Fails With ORA-31626 and ORA-31637 [ID 345198.1]
How To Reload Datapump Utility EXPDP/IMPDP [ID 430221.1] and
Invalid Objects After Installing a 10.2 Patchset [ID 361025.1]

@?/rdbms/admin/catproc.sql + steps in 361025.1 and @?/rdbms/admin/utlrp was executed which resolved the issue.

Friday, November 18, 2011

CLSC_RECEIVE: (*) ERROR 2

crsd.log would have lines similar to
2011-11-17 19:12:19.860: [ COMMCRS][1455892800]clsc_receive: (0x1582a560) error 2
According to metalink note 733659.1 "This is basically a warning/informational message. The "error 2" is a generic failure code for a single message transmit."

More on Crsd.Log Showing The Following Message: CLSC_RECEIVE: (*) ERROR 2 [ID 733659.1]