<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle Database Experts &#187; General DBA</title>
	<atom:link href="http://www.dbaexpert.com/blog/category/general-dba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbaexpert.com/blog</link>
	<description>By Charles Kim</description>
	<lastBuildDate>Mon, 06 Sep 2010 14:07:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Detaching an Oracle Home</title>
		<link>http://www.dbaexpert.com/blog/2010/09/detaching-an-oracle-home/</link>
		<comments>http://www.dbaexpert.com/blog/2010/09/detaching-an-oracle-home/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 22:18:34 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=889</guid>
		<description><![CDATA[The past couple of week, we ran into corrupt oraInventory on both Oracle Database 11g Release 1 (11.1) and Release 2 (11.2) RAC environments at two different clients.  In the 11.1 release, following Oracle Metalink link notes to copy the subdirectory over from $ORACLE_HOME/inventory/oneoffs from the first RAC node to the target RAC node [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2010/09/detaching-an-oracle-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Recommended Patches</title>
		<link>http://www.dbaexpert.com/blog/2010/08/oracle-recommended-patches/</link>
		<comments>http://www.dbaexpert.com/blog/2010/08/oracle-recommended-patches/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 16:48:06 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=856</guid>
		<description><![CDATA[Excerpt from Introduction to Oracle Recommended Patches [ID 756388.1]
What are Recommended Patches?
Oracle has introduced a set of Recommended Patches which make it easier for customers to obtain and deploy fixes for known critical issues encountered in targeted environments and configurations. As part of Oracle&#8217;s overall maintenance strategy, these provide proactive patch recommendations to customers seeking [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2010/08/oracle-recommended-patches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate SQL*Loader Control File Script</title>
		<link>http://www.dbaexpert.com/blog/2010/07/generate-sqlloader-control-file-script/</link>
		<comments>http://www.dbaexpert.com/blog/2010/07/generate-sqlloader-control-file-script/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 15:30:11 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=854</guid>
		<description><![CDATA[Here&#8217;s what I think is an incredible piece of code to generate SQL*Loader control files for any table in the database.

cat generate_control.sql
def TAB='&#38;1'
set head off feed off pages 0 trims on serveroutput on size 1000000 lines 2000 ver off
var v_tab VARCHAR2(100);

spool &#38;TAB..control
declare
v_col VARCHAR2(255);

cursor c1 is
select column_name, data_type
from dba_tab_columns
where table_name=upper('&#38;TAB');

v_counter NUMBER := 0;

BEGIN
:v_tab := '&#38;TAB';
dbms_output.put_line('load data');
dbms_output.put_line('INFILE [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2010/07/generate-sqlloader-control-file-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting dbconsole from command line in Oracle Database 11g Release 2</title>
		<link>http://www.dbaexpert.com/blog/2009/09/starting-dbconsole-from-command-line-in-oracle-database-11g-release-2/</link>
		<comments>http://www.dbaexpert.com/blog/2009/09/starting-dbconsole-from-command-line-in-oracle-database-11g-release-2/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 10:35:51 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=549</guid>
		<description><![CDATA[Note:
1.  We are running a single node RAC on Red Hat 5 Update 3
2.  We are running 11.2.0.1 of the database

[oracle@jin1 ~]$ . oraenv
ORACLE_SID = [dbtools1] ? +ASM1
The Oracle base for ORACLE_HOME=/apps/11.2.0/grid is /apps/oracle
[oracle@jin1 ~]$ srvctl start database -d DBTOOLS
[oracle@jin1 ~]$ . oraenv
ORACLE_SID = [+ASM1] ? DBTOOLS1
The Oracle base for ORACLE_HOME=/apps/oracle/product/11.2.0/dbhome_1 is /apps/oracle
[oracle@jin1 [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2009/09/starting-dbconsole-from-command-line-in-oracle-database-11g-release-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrapping PL/SQL to hide the source</title>
		<link>http://www.dbaexpert.com/blog/2009/08/wrapping-plsql-to-hide-the-source/</link>
		<comments>http://www.dbaexpert.com/blog/2009/08/wrapping-plsql-to-hide-the-source/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 14:41:50 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=232</guid>
		<description><![CDATA[Software vendors often hide the source code so that their intellectual property and software can not be reverse engineered or stolen.  You too can encrypt your source code using the wrap executable from $ORACLE_HOME/bin directory.  You can encrypt packages, stored procedures and functions.  

wrap iname=dbi_header.sql oname=dbi_header.plb
wrap iname=dbi_body.sql oname=dbi_body.plb

One important information to reveal [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2009/08/wrapping-plsql-to-hide-the-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Streams &#8211; Critical Metalink Articles</title>
		<link>http://www.dbaexpert.com/blog/2009/08/oracle-streams-critical-metalink-articles/</link>
		<comments>http://www.dbaexpert.com/blog/2009/08/oracle-streams-critical-metalink-articles/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 21:01:29 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=256</guid>
		<description><![CDATA[At a minimum, you should apply all the recommended patch requirements from Metalink Doc ID:  437838.1.  Wether you are running Oracle Database 10g Release 2 or Oracle Database 11g, following the recommended Streams patches can, and most likely, save you hours and even days of production replication issues. 
Subject: 	Streams Specific Patches &#8211; [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2009/08/oracle-streams-critical-metalink-articles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide C Program</title>
		<link>http://www.dbaexpert.com/blog/2009/08/hide-c-program/</link>
		<comments>http://www.dbaexpert.com/blog/2009/08/hide-c-program/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:52:30 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=236</guid>
		<description><![CDATA[Here&#8217;s the old traditional hide.c program that Oracle provided back may moons ago.

ckim: cat hide.c
/*---------------------------------------------------------------------------+
 &#124;     Copyright (c) 1992 Oracle Corporation Belmont, California, USA        &#124;
 &#124;                   [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2009/08/hide-c-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculate IOPs</title>
		<link>http://www.dbaexpert.com/blog/2009/08/calculate-iops/</link>
		<comments>http://www.dbaexpert.com/blog/2009/08/calculate-iops/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 19:14:45 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>
		<category><![CDATA[Performance Tuning]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=191</guid>
		<description><![CDATA[You can calculate the difference between executions to determine the I/Os per second on your database environment.  

--
-- get_iops.sql
--
set linesize 100
set head off
select to_char(sysdate, 'dd-mon-rr hh24:mi:ss') from dual;

SELECT   'Number of Small Reads :'
         &#124;&#124; SUM(DECODE (name, 'physical read total IO requests', VALUE, 0)
  [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2009/08/calculate-iops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating SQL for database objects</title>
		<link>http://www.dbaexpert.com/blog/2009/07/generating-sql-for-database-objects/</link>
		<comments>http://www.dbaexpert.com/blog/2009/07/generating-sql-for-database-objects/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 00:19:20 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=218</guid>
		<description><![CDATA[You can use SQL to generate SQL for DDL for database objects.  Here&#8217;s another alternative using the DBMS_METADATA package:


----------------------------------------------------------------------------------------------
--
SELECT dbms_metadata.get_dependent_ddl('OBJECT_GRANT', 'ORDERS', 'OE') from dual;
SELECT  DBMS_METADATA.GET_DEPENDENT_DDL('TRIGGER','&#60;table_name&#62;','&#60;schema&#62;') from dual;

----------------------------------------------------------------------------------------------
--
set pagesize 0
set long 90000
set feedback off
set echo off 

spool schema.sql 

SELECT DBMS_METADATA.GET_DDL('TABLE',u.table_name)
     FROM USER_TABLES u;

SELECT DBMS_METADATA.GET_DDL('INDEX',u.index_name)
     FROM USER_INDEXES [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2009/07/generating-sql-for-database-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace the existing temp tablespace</title>
		<link>http://www.dbaexpert.com/blog/2008/12/replace-the-existing-temp-tablespace/</link>
		<comments>http://www.dbaexpert.com/blog/2008/12/replace-the-existing-temp-tablespace/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 20:34:32 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=135</guid>
		<description><![CDATA[First, create a new temporary tablespace and set the new temp tablespace at the database level:
&#160;

create temporary tablespace temp2 tempfile '+data';
Tablespace created.
alter database default temporary tablespace temp2;
Database altered.


Drop the original temp tablespace: 

drop tablespace temp;
Tablespace dropped.


Create the new temp tablespace and set the new default temporary tablespace at the database level:

create temporary tablespace temp tempfile [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2008/12/replace-the-existing-temp-tablespace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Larry Ellison&#8217;s Keynote speech</title>
		<link>http://www.dbaexpert.com/blog/2008/09/larry-ellisons-keynote-speech/</link>
		<comments>http://www.dbaexpert.com/blog/2008/09/larry-ellisons-keynote-speech/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 22:37:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=134</guid>
		<description><![CDATA[Large database in today&#8217;s market have reached up to 200TB.&#160; Large databases are tripling every two years.&#160; Disk storage that exist today cannot cope with the data bandwidth.&#160; Storage subsystem can house the data but run into the data bandwidth problems.&#160; At about 1TB is where the problem raises it&#8217;s ugly head and the problem [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2008/09/larry-ellisons-keynote-speech/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oradebug</title>
		<link>http://www.dbaexpert.com/blog/2007/10/oradebug/</link>
		<comments>http://www.dbaexpert.com/blog/2007/10/oradebug/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 18:17:35 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[General DBA]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=56</guid>
		<description><![CDATA[Trace SQL statements with bind variables
&#62; oradebug setospid 10121
Oracle pid: 91, Unix process pid: 10121, image: oracleorcl
&#62; oradebug EVENT 10046 trace name context forever, level 12
Statement processed.
&#62; ! vi /app/oracle/admin/orcl/bdump/ora_10121.trc
Trace Process Statistics
&#62; oradebug setorapid 2
Unix process pid: 1436, image: ora_pmon_orcl
&#62; oradebug procstat
Statement processed.
&#62; oradebug TRACEFILE_NAME
/app/oracle/admin/orcl/bdump/pmon_1436.trc
List semaphores and shared memory segments in use
&#62; oradebug ipc
Dump Error [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2007/10/oradebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
