Thursday, October 8, 2015

Oracle File Corruption - keeps happening in test Oracle Instance

If you are having more than one File Corruption... you may need to enable this!

DB_BLOCK_CHECKING

When the DB_BLOCK_CHECKING parameter is set to [TRUE|HIGH] Oracle performs a walk through of the data in the block to check it is self-consistent. Unfortunately block checking can add between 1 and 10% overhead to the server. Oracle recommend setting this parameter to [TRUE|HIGH] if the overhead is acceptable.
Allowable values include [OFF|FALSE], LOW, MEDIUM, [HIGH|TRUE]. Read the definitions here

I kept having problems with a test Oracle DB....again and again.
Until I turned on this setting I could not load data consistently.

Here is what I used to enable this feature:

db_block_checking tips

Oracle Tips by Burleson Consulting
June 15, 2009
The db_block_checking parameter is used to performs block checks for all data blocks making sure that all data in the block is consistent.  The default fordb_block_checking is false, because db_block_checking imposes an additional system overhead.

This db_block_checking parameter is used primarily in diagnosing disk I/O issues in system where replicated blocks show corruption.  checks data block integrity before writing the data block to disk.  

In this involves checking the internal block headers and footer, plus internal row linkages.

Block checking provides early detection of block corruption, however, it costs between 1-10% in overhead on the database.  The more DML and block writes that occur on a system (INSERT, UPDATE, DELETE), the more costlydb_block_checking becomes.

WARNING:  While the Oracle documentation says that db_block_checking=true only adds a 1 to 10% overhead depending on concurrency of DML, we have seen cases where db_block_checking=truemade the updates run 6x slower. 

Any errors encountered by block checking result in an ORA-600 level message in the alert log.  Before setting the db_block_checking parameter to TRUE, first execute the database verify (dbv) utility against the datafiles to make sure they are free of corruption.   Even when db_block_checking=false, Oracle still provides block checking for the system tablespace.
Note that the db_block_checking parameter can be changed with an alter systemcommand:

alter system set db_block_checking=true scope=both;

For additional information on handling corruption, see the BC expert notes on corruption and see MOSC Note 1088018.1 - Handling Oracle Database Corruption Issues.

Also see related pages:

- db_block_checksum tips 


- db_ultra_safe Tips 

Tuesday, October 6, 2015

Firefox cannot open https://server:1158/em/ enterprise manager console

Fix for Oracle 11.2.0.1.0
I tried to use the fix at http://frodo.looijaard.name/article/oem-database-control-security-certificate, but my emctl release on Oracle 11.1.0.6 does not support the options it details at the end. So I fixed it by unsecuring the console.

emctl unsecure dbconsole

A somewhat poor response I agree to what Mozilla are doing, but this system is only available on an internal network.


---------- Below may work for Oracle DB 12c


4. Re: (Error code: ssl_error_weak_server_cert_key)
Jônatan SmithNewbie
Hi,

Here in our organization, we had this problem because the OutOfBox certifications aren't 2048bits. As Firefox was working to improve the security, weaks certificates (1024,512bits) were retired (https://blog.mozilla.org/security/2014/09/08/phasing-out-certificates-with-1024-bit-rsa-keys/).

I was able to fix it by replacing default's certificates by others. We have an own Certificate Authority, trusted by all internal network, which signed a certificate for use in EM12c.

These certificates were installed using this manual:http://docs.oracle.com/cd/E24628_01/doc.121/e36415/sec_features.htm#EMSEC13070

If you don't have a Certificate Authority to use with your Enterprise Manager, you can install a self signed certificate (easy with Google) or alternatively you can disable security if it is not a requirement.

If you prefer to disable it, you can find the guidelines in the item 6 of chapter 2.3.5 of Security Manual provided above. Here are the commands:

emctl secure unlock
emctl secure unlock -console -upload


I hope it helps.
Good luck and good work.