DavidYahalom.com is an IT knowledgebase dedicated to the world of databses and RDBMS systems by David Yahalom. Here you'll find articles, views, news, tips and in-depth analysis about Oracle, DB2 LUW, Sql Server and MySql. I hope you'll enjoy your stay.
19th
APR
What to do if you receieve an “ORA-00600: internal error code, arguments: [keltnfy-ldmInit]” when creating a new database
Posted by David Yahalom under Oracle
If you try and create a new Oracle database (either using DBCA or manually) and get the Oracle ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], [] error, this usually signifies that there was a problem resolving your server’s hostname.
Oracle needs to be able to resolve your server’s hostname from within the server on which you are installing Oracle. In case of the above error check your /etc/hosts file and verify that your server hostname is pingable.
19th
How to resolve EXP-00056: ORACLE error 19206 encountered during an export
Posted by David Yahalom under Oracle
Sometimes you might receive the following error during an export of an entire schema in Oracle9i/10g:
EXP-00056: ORACLE error 19206 encountered ORA-19206: Invalid value for query or REF CURSOR parameter ORA-06512: at "SYS.DBMS_XMLGEN", line 83 ORA-06512: at "SYS.DBMS_METADATA", line 353 ORA-06512: at "SYS.DBMS_METADATA", line 418 ORA-06512: at "SYS.DBMS_METADATA", line 457 ORA-06512: at "SYS.DBMS_METADATA", line 1181 ORA-06512: at "SYS.DBMS_METADATA", line 1162 ORA-06512: at line 1 EXP-00056: ORACLE error 19206 encountered ORA-19206: Invalid value for query or REF CURSOR parameter ORA-06512: at "SYS.DBMS_XMLGEN", line 83 ORA-06512: at "SYS.DBMS_METADATA", line 353 ORA-06512: at "SYS.DBMS_METADATA", line 418 ORA-06512: at "SYS.DBMS_METADATA", line 457 ORA-06512: at "SYS.DBMS_METADATA", line 1181 ORA-06512: at "SYS.DBMS_METADATA", line 1162 ORA-06512: at line 1 EXP-00000: Export terminated unsuccessfully
While an export of a single table might work, exporting an entire user (”schema“) will fail with the above error.
This problem is caused when the metadata tables needed to perform an export are missing or invalid and can sometimes occur if you have dropped or modified the XMLDB schema.
It is quite easily resolved, simply run the following script when connected as sysdba:
$ORACLE_HOME/rdbms/admin/catmeta.sql
2nd
APR
MySQL InnoDB statistics gathering (analyze table)
Posted by David Yahalom under MySQL
I’ve seen many MySQL DBAs completely unaware of the fact that like most modern RDBMS systems, MySQL also relies on using statistics for keeping track of data distribution in tables and for optimizing join statements.
The syntax for analyzing a table for statistics is very simple:
ANALYZE [LOCAL | NO_WRITE_TO_BINLOG] TABLE <em class="replaceable"><code>tbl_name</code></em> [, <em class="replaceable"><code>tbl_name</code></em>] ...
- You must hold insert and select privileges on the table you want to analyze.
- On MyISM tables this will result in a READ LOCK on the table.
- On InnoDB tables this will result in a WRITE LOCK on the table.
Analyzing data distribution in tables is relevant to both MyISM and InnoDB tables.
The equivalent to the above command is using:
myisamchk --analyze
…on MyISM tables and
mysqlcheck -Aa -uroot -p
or
mysqlcheck --analyze --all-databases<strong>
..on InnoDB tables.
One more thing, keep in mind that unlike myisamchk, mysqlcheck can run online while the database is open.
Category Cloud
ASM DB2 LUW ETL General IT Grid Control Hardware ITIL Linux Monitoring MySQL Oracle RAC Security Solaris SQL Server Storage Uncategorized Unix Windows
Recent Posts
- What will happen to ASM when the disk path changes in Linux?
- The relation between an Oracle instance and memory in Windows
- Blog has been renamed!
- Cloud Oracle Storage: how to make ASM even better, the NAS way.
- ORA-600: Oracle process has no purpose in life!
Active polls
Categories
- ASM (2)
- DB2 LUW (11)
- ETL (2)
- General IT (7)
- Grid Control (1)
- Hardware (4)
- ITIL (1)
- Linux (3)
- Monitoring (1)
- MySQL (1)
- Oracle (32)
- RAC (5)
- Security (3)
- Solaris (3)
- SQL Server (1)
- Storage (1)
- Uncategorized (1)
- Unix (2)
- Windows (2)
Archives
- September 2009
- February 2009
- January 2009
- November 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- October 2007
- September 2007
- July 2007
- June 2007
- April 2007
- March 2007
- February 2007
- January 2007
- March 2006
Blogroll
DavidYahalom.com - Oracle, Databases, SQL, news, views, articles and in-depth analysis is powered by Wordpress. Designed by Free WordPress Themes.
