<?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>Database.fi &#187; Oracle</title>
	<atom:link href="http://www.database.fi/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.database.fi</link>
	<description>Database Performance &#38; Disaster Solutions</description>
	<lastBuildDate>Tue, 25 Oct 2011 07:43:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dropping Enterprise Manager 12c repository</title>
		<link>http://www.database.fi/2011/10/dropping-enterprise-manager-12c-repository/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dropping-enterprise-manager-12c-repository</link>
		<comments>http://www.database.fi/2011/10/dropping-enterprise-manager-12c-repository/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 07:26:39 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Enterprise Manager]]></category>
		<category><![CDATA[OEM 12c Cloud Control]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OEM 12c CC]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=249</guid>
		<description><![CDATA[Just a real quick one, since I need to do it right away&#8230;
EM CC 12c installation blew up and need to re-create, since here are the instructions to remove an existing OEM CC (or OEM GC) repository of a failed installation using the following command:

$/sysman/admin/emdrep/bin/RepManager    -dbUser sys -dbPassword  -dbRole sysdba -reposName [...]]]></description>
			<content:encoded><![CDATA[<p>Just a real quick one, since I need to do it right away&#8230;</p>
<p>EM CC 12c installation blew up and need to re-create, since here are the instructions to remove an existing OEM CC (or OEM GC) repository of a failed installation using the following command:<br />
<code><br />
$<OMS_HOME>/sysman/admin/emdrep/bin/RepManager <repository_database_host> <repository_database_port> <repository_database_sid> -dbUser sys -dbPassword <sys password> -dbRole sysdba -reposName sysman -reposPassword
<password of sysman user> -action dropall [-mwHome <middleware home>] [-mwOraHome <Oracle Home>]<br />
</code></p>
<p>For Oracle Enterprise Manager Database Control (single instance) repository use this command:<br />
<code>emca -deconfig dbcontrol db -repos drop -cluster -SYS_PWD sys1 -SYSMAN_PWD SYS_PASSWORD<br />
</code></p>
<p>HTH,<br />
 Pasi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2011/10/dropping-enterprise-manager-12c-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Expdp &amp; impdp and changing schemas with remap_schema</title>
		<link>http://www.database.fi/2011/05/using-expdp-impdp-and-changing-schemas-with-remap_schema/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-expdp-impdp-and-changing-schemas-with-remap_schema</link>
		<comments>http://www.database.fi/2011/05/using-expdp-impdp-and-changing-schemas-with-remap_schema/#comments</comments>
		<pubDate>Mon, 16 May 2011 09:00:53 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[expdp and impdp]]></category>
		<category><![CDATA[expdp]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[impdp]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[remap_schema]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=209</guid>
		<description><![CDATA[What is really great about expdp &#038; impdp is that you can export and import to new schemas very easily. That needed some work earlier with export and import.
Let&#8217;s say that I want to import into HR_NEW schema instead of HR.
We just add a remap_schema into the import command: remap_schema=HR:HR_NEW 
This will actually even create [...]]]></description>
			<content:encoded><![CDATA[<p>What is really great about expdp &#038; impdp is that you can export and import to new schemas very easily. That needed some work earlier with export and import.</p>
<p>Let&#8217;s say that I want to import into HR_NEW schema instead of HR.</p>
<p>We just add a remap_schema into the import command: remap_schema=HR:HR_NEW </p>
<p>This will actually even create the new user (schema)!</p>
<p>C:\Temp>impdp system/oracle dumpfile=hr.dmp directory=dmpdir schemas=hr logfile=<br />
hr_imp.log remap_schema=HR:HR_NEW</p>
<p>Import: Release 11.2.0.2.0 &#8211; Beta on Ma Touko 16 11:42:28 2011</p>
<p>Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.</p>
<p>Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 &#8211; Beta<br />
Master table &#8220;SYSTEM&#8221;.&#8221;SYS_IMPORT_SCHEMA_01&#8243; successfully loaded/unloaded<br />
Starting &#8220;SYSTEM&#8221;.&#8221;SYS_IMPORT_SCHEMA_01&#8243;:  system/******** dumpfile=hr.dmp direc<br />
tory=dmpdir schemas=hr logfile=hr_imp.log remap_schema=HR:HR_NEW<br />
Processing object type SCHEMA_EXPORT/USER<br />
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT<br />
Processing object type SCHEMA_EXPORT/ROLE_GRANT<br />
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE<br />
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA<br />
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA<br />
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE<br />
Processing object type SCHEMA_EXPORT/TABLE/TABLE<br />
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA<br />
. . imported &#8220;HR_NEW&#8221;.&#8221;COUNTRIES&#8221;                        6.367 KB      25 rows<br />
. . imported &#8220;HR_NEW&#8221;.&#8221;DEPARTMENTS&#8221;                      7.007 KB      27 rows<br />
. . imported &#8220;HR_NEW&#8221;.&#8221;EMPLOYEES&#8221;                        16.80 KB     107 rows<br />
. . imported &#8220;HR_NEW&#8221;.&#8221;JOB_HISTORY&#8221;                      7.054 KB      10 rows<br />
. . imported &#8220;HR_NEW&#8221;.&#8221;JOBS&#8221;                             6.992 KB      19 rows<br />
. . imported &#8220;HR_NEW&#8221;.&#8221;LOCATIONS&#8221;                        8.273 KB      23 rows<br />
. . imported &#8220;HR_NEW&#8221;.&#8221;REGIONS&#8221;                          5.476 KB       4 rows<br />
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX<br />
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT<br />
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS<br />
Processing object type SCHEMA_EXPORT/TABLE/COMMENT<br />
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE<br />
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE<br />
Processing object type SCHEMA_EXPORT/VIEW/VIEW<br />
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT<br />
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER<br />
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS<br />
Job &#8220;SYSTEM&#8221;.&#8221;SYS_IMPORT_SCHEMA_01&#8243; successfully completed at 11:42:47</p>
<p>The new user is still locked:<br />
SQL> connect hr_new/hr_new<br />
ERROR:<br />
ORA-28000: the account is locked</p>
<p>Unlock:<br />
C:\Temp>sqlplus system/oracle</p>
<p>SQL*Plus: Release 11.2.0.2.0 Beta on Ma Touko 16 11:44:30 2011</p>
<p>Copyright (c) 1982, 2010, Oracle.  All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 11g Express Edition Release 11.2.0.2.0 &#8211; Beta</p>
<p>SQL> alter user hr_new account unlock;</p>
<p>User altered.</p>
<p>SQL> alter user hr_new identified by hr_new;</p>
<p>User altered.</p>
<p>SQL> connect hr_new/hr_new<br />
Connected.</p>
<p>SQL> select count(*) as amount, object_type<br />
  2  from user_objects<br />
  3  group by object_type;</p>
<p>    AMOUNT OBJECT_TYPE<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
         3 SEQUENCE<br />
         2 PROCEDURE<br />
         2 TRIGGER<br />
         7 TABLE<br />
        19 INDEX<br />
         1 VIEW</p>
<p>6 rows selected.</p>
<p>Sometimes you need to also remap_tablespaces with &#8230; remap_tablespace. What a tool!</p>
<p>That was of course possible with exp &#038; imp. But since it was not supported I remember setting quotas to 0 and changing default tablespaces to be able to import to different tablespace..</p>
<p>Hope this helps,<br />
 Pasi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2011/05/using-expdp-impdp-and-changing-schemas-with-remap_schema/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using expdp and impdp export and import in 10g and 11g</title>
		<link>http://www.database.fi/2011/05/using-expdp-and-impdp-export-and-import-in-10g-11g/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-expdp-and-impdp-export-and-import-in-10g-11g</link>
		<comments>http://www.database.fi/2011/05/using-expdp-and-impdp-export-and-import-in-10g-11g/#comments</comments>
		<pubDate>Mon, 16 May 2011 08:49:24 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[expdp and impdp]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[expdp]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[impdp]]></category>
		<category><![CDATA[import]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=205</guid>
		<description><![CDATA[Just a quick example of expdp and impdp.
First, check that you have the OS directory like /temp or c:\temp.
Since this example was made in Windows world, we use c\temp.
Log in and create an Oracle Directory:
C:\Temp>sqlplus system/oracle
SQL*Plus: Release 11.2.0.2.0 Beta on Ma Touko 16 11:05:13 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Connected to:
Oracle Database [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick example of expdp and impdp.</p>
<p>First, check that you have the OS directory like /temp or c:\temp.</p>
<p>Since this example was made in Windows world, we use c\temp.</p>
<p>Log in and create an Oracle Directory:</p>
<p><code>C:\Temp>sqlplus system/oracle</p>
<p>SQL*Plus: Release 11.2.0.2.0 Beta on Ma Touko 16 11:05:13 2011</p>
<p>Copyright (c) 1982, 2010, Oracle.  All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta</p>
<p>SQL> create directory dmpdir AS 'c:\temp';</p>
<p>Directory created.<br />
</code></p>
<p>You may have a suitable Oracle Directory already, you can check it from DBA_DIRECTORIES:</p>
<p><code>SQL> SELECT directory_name, directory_path FROM dba_directories ;</p>
<p>DIRECTORY_NAME<br />
------------------------------<br />
DIRECTORY_PATH<br />
-------------------------------------------------------------------</p>
<p>DMPDIR<br />
c:\temp<br />
</code></p>
<p>All right, we have what we need. </p>
<p>Let&#8217;s say that we need to export HR without knowing HR user&#8217;s password.</p>
<p>From OS level:</p>
<p><code>C:\Temp>expdp system/oracle dumpfile=hr.dmp directory=dmpdir schemas=hr logfile=<br />
hr_exp.log</p>
<p>Export: Release 11.2.0.2.0 - Beta on Ma Touko 16 11:29:37 2011</p>
<p>Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.</p>
<p>Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta<br />
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_02":  system/******** dumpfile=hr.dmp direc<br />
tory=dmpdir schemas=hr logfile=hr_exp.log<br />
Estimate in progress using BLOCKS method...<br />
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA<br />
Total estimation using BLOCKS method: 448 KB<br />
Processing object type SCHEMA_EXPORT/USER<br />
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT<br />
Processing object type SCHEMA_EXPORT/ROLE_GRANT<br />
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE<br />
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA<br />
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA<br />
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE<br />
Processing object type SCHEMA_EXPORT/TABLE/TABLE<br />
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX<br />
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT<br />
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS<br />
Processing object type SCHEMA_EXPORT/TABLE/COMMENT<br />
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE<br />
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE<br />
Processing object type SCHEMA_EXPORT/VIEW/VIEW<br />
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT<br />
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER<br />
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS<br />
. . exported "HR"."COUNTRIES"                            6.367 KB      25 rows<br />
. . exported "HR"."DEPARTMENTS"                          7.007 KB      27 rows<br />
. . exported "HR"."EMPLOYEES"                            16.80 KB     107 rows<br />
. . exported "HR"."JOB_HISTORY"                          7.054 KB      10 rows<br />
. . exported "HR"."JOBS"                                 6.992 KB      19 rows<br />
. . exported "HR"."LOCATIONS"                            8.273 KB      23 rows<br />
. . exported "HR"."REGIONS"                              5.476 KB       4 rows<br />
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded<br />
******************************************************************************<br />
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_02 is:<br />
  C:\TEMP\HR.DMP<br />
Job "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully completed at 11:32:55</p>
<p>C:\Temp>dir</p>
<p>16.05.2011  11:30    <KANSIO>       .<br />
16.05.2011  11:30    <KANSIO>       ..<br />
16.05.2011  11:32           503 808 HR.DMP<br />
16.05.2011  11:32             2 395 hr_exp.log<br />
</code></p>
<p>Import is very simple.<br />
expdp / impdp is somewhat easier to use than exp/imp, since most of the times you can use the same parameters while exporting and importing.</p>
<p>Basically I changed EXPDP => IMPDP and the name of the logfile.</p>
<p>Impdp command:<br />
<code>impdp system/oracle dumpfile=hr.dmp directory=dmpdir schemas=hr logfile=hr_imp.log</code></p>
<p>What is really great about expdp &#038; impdp is that you can export and import to new schemas very easily. That needed some work earlier with export and import.</p>
<p><a href="http://www.database.fi/2011/05/using-expdp-impdp-and-changing-schemas-with-remap_schema/">I wrote another entry about that, just click here to see it. </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2011/05/using-expdp-and-impdp-export-and-import-in-10g-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check Oracle database character set?</title>
		<link>http://www.database.fi/2011/04/how-to-check-oracle-database-character-set/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-check-oracle-database-character-set</link>
		<comments>http://www.database.fi/2011/04/how-to-check-oracle-database-character-set/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 11:48:57 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[NLS]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Character set]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=158</guid>
		<description><![CDATA[Just a quick one.
If you need to check what is the running database character set&#8230; 
SELECT * FROM NLS_DATABASE_PARAMETERS;
SELECT value$ FROM sys.props$ WHERE name = &#8216;NLS_CHARACTERSET&#8217; ;
HTH,
 Pasi
]]></description>
			<content:encoded><![CDATA[<p>Just a quick one.</p>
<p>If you need to check what is the running database character set&#8230; </p>
<p>SELECT * FROM NLS_DATABASE_PARAMETERS;<br />
SELECT value$ FROM sys.props$ WHERE name = &#8216;NLS_CHARACTERSET&#8217; ;</p>
<p>HTH,<br />
 Pasi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2011/04/how-to-check-oracle-database-character-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Database 11g Express Edition beta (XE) is finally here!</title>
		<link>http://www.database.fi/2011/04/oracle-database-11g-express-edition-beta-xe-is-finally-here/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=oracle-database-11g-express-edition-beta-xe-is-finally-here</link>
		<comments>http://www.database.fi/2011/04/oracle-database-11g-express-edition-beta-xe-is-finally-here/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 20:25:33 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Express Edition]]></category>
		<category><![CDATA[Oracle XE]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=200</guid>
		<description><![CDATA[Apparently it came out on first of April 2011.
So far I&#8217;ve installed it on two boxes, no glitches at all.
More on this later.. Need to study it more.
SQL> select status, instance_name from v$instance;
STATUS       INSTANCE_NAME
------------ ----------------
OPEN         xe
SQL> select * from v$version;
BANNER
--------------------------------------------------------------
Oracle Database [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently it came out on first of April 2011.</p>
<p>So far I&#8217;ve installed it on two boxes, no glitches at all.</p>
<p>More on this later.. Need to study it more.<br />
<code>SQL> select status, instance_name from v$instance;</p>
<p>STATUS       INSTANCE_NAME<br />
------------ ----------------<br />
OPEN         xe</p>
<p>SQL> select * from v$version;</p>
<p>BANNER<br />
--------------------------------------------------------------</p>
<p>Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta<br />
PL/SQL Release 11.2.0.2.0 - Beta<br />
CORE    11.2.0.2.0      Production<br />
TNS for 32-bit Windows: Version 11.2.0.2.0 - Beta<br />
NLSRTL Version 11.2.0.2.0 - Production</p>
<p>SQL></code></p>
<p>BR,<br />
 Pasi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2011/04/oracle-database-11g-express-edition-beta-xe-is-finally-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Internet Directory (OID) and Weblogic installation on Linux</title>
		<link>http://www.database.fi/2011/03/oracle-internet-directory-oid-and-weblogic-installation-on-linux/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=oracle-internet-directory-oid-and-weblogic-installation-on-linux</link>
		<comments>http://www.database.fi/2011/03/oracle-internet-directory-oid-and-weblogic-installation-on-linux/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 23:17:38 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle Internet Directory]]></category>
		<category><![CDATA[Weblogic]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[OID]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=181</guid>
		<description><![CDATA[I was just recently asked to diagnose and re-install Oracle Internet Directory and I thought it might be a good idea to document the installation steps &#8211; so here goes.
We will use the latest versions available at the time of writing this (22th March 2011).
Installation manual:
http://download.oracle.com/docs/cd/E17904_01/install.1111/e12002/instps2001.htm
Basic steps:
1. Install Oracle
2. Install OID (and FMW control and [...]]]></description>
			<content:encoded><![CDATA[<p>I was just recently asked to diagnose and re-install Oracle Internet Directory and I thought it might be a good idea to document the installation steps &#8211; so here goes.</p>
<p>We will use the latest versions available at the time of writing this (22th March 2011).</p>
<p>Installation manual:</p>
<p>http://download.oracle.com/docs/cd/E17904_01/install.1111/e12002/instps2001.htm</p>
<p>Basic steps:<br />
1. Install Oracle<br />
2. Install OID (and FMW control and ODSM)</p>
<p>Oracle installation is quite trivial, so let&#8217;s focus on the OID installation.<br />
- Just remember to use the AL32UTF8 character set on the database!</p>
<p>You need to download:<br />
- Oracle WebLogic Server 10.3.4.<br />
- Oracle Identity Management 11.1.1.2.0 &#038; 11.1.1.3.0</p>
<p>Actual installation: </p>
<p>1. Install WLS 10.3.4<br />
- Run the installation .bin<br />
 * In 64 bit environments use: JAVA_HOME/bin/java -jar wls1034_generic.jar<br />
 * You need JDK 1.6 or later<br />
- Create a new FMW home<br />
- Register for security updates..<br />
- Typical or Custom<br />
- Change or accept the installation directories (df -h &#8230;)<br />
- Summary => Next<br />
- Installation&#8230;</p>
<p>2. Install OID 11.1.1.2.0<br />
- unzip ../ofm_idm_linux_11.1.1.2.0_32_disk1_1of1.zip &#8230;<br />
- ./runInstaller<br />
- Install Software &#8211; DO NOT CONFIGURE!<br />
- Use SAME MIDDLEWARE HOME as WLS above!<br />
- Oracle Home Directory: This will be the directory name under Middleware Home<br />
- Installation &#8230;<br />
- Run root script: /middleware_home_directory/oracle_home_dir/oracleRoot.sh<br />
- Save Summary.</p>
<p>3. Install OID 11.1.1.3.0 Patch Set<br />
- unzip ../ofm_idm_linux_11.1.1.3.0_32_disk1_1of1.zip &#8230;<br />
- ./runInstaller<br />
- Install Software<br />
- Use same homes !<br />
- Next, next<br />
- Root script<br />
- Save Summary</p>
<p>OID Configuration with FMW Control and ODSM:</p>
<p>1. Configuration</p>
<p>/middleware_home_directory/oracle_home_dir/bin/config.sh<br />
- Installer starts<br />
- Create new domain<br />
 => FMW Control is being configured to manage OID here<br />
 * User Name: WLS Admin user details<br />
 * Domain name<br />
- Installation location<br />
 * Weblogic Server Directory<br />
 * Oracle Instance location, new &#8220;ASInstance&#8221; (Not actual Oracle Instance)<br />
 * Oracle Instance Name, new &#8220;ASInstance&#8221; (Not actual Oracle Instance)<br />
- De-select others than Oracle Internet Directory<br />
 => We will configure only that<br />
- Auto configuration ports normally OK, you can select them if you want<br />
- Create Schema<br />
 * Create ODS Database Schema<br />
 * Connect string, for example: myserver:1521:orcl<br />
 * SYS<br />
 * Sys_password<br />
- OID Passwords<br />
 * ODS Schema password &#038; confirm  (all directory content)<br />
 * ODSSM Schema password &#038; confirm (OID statistics and DIP schema)<br />
- OID information<br />
 * Realm, for example: dc=us,dc=oracle,dc=com<br />
 * Admin user: orcladmin<br />
 * Admin password: &#8230;<br />
- Install<br />
- Save Summary<br />
 * Note: Weblogic Console ie: http://myhost.us.oracle.com:7001/console</p>
<p>Verify installation:<br />
- &#8230;home/bin/opmnctl status -l<br />
- Alive:<br />
 * OVD<br />
 * oidldapd<br />
 * oidldapd<br />
 * oidmon => LDAP port, LDAPS port<br />
 * EMAGENT<br />
- ldapsearch -p LDAP_port -b &#8220;&#8221; -s base &#8220;objectclass=*&#8221; orcldirectoryversion<br />
=> orcldirectoryversion=OID 11.1.1.3.0</p>
<p>Open Enterprise Manager Fusion Middleware Control 11g<br />
 * For example:  http://myhost.us.oracle.com:7001/em<br />
- Find oid1 in FMW Control<br />
- Verify version number in FMW Control</p>
<p>Open Oracle Directory Services Manager<br />
 * For example: http://myhost.us.oracle.com:7005/odsm<br />
- Connect to a directory<br />
 * OID &#8211; directory name<br />
 * User Name: cn=orcladmin<br />
 * password<br />
- Verify OID version</p>
<p>After you&#8217;re done installing and configuring the OID itself, you can proceed to netca to configure the destination databases &#8220;tnsnames.ora&#8221;.<br />
That will update sqlnet.ora and ldap.ora</p>
<p>Examples<br />
LDAP.ORA:<br />
DEFAULT_ADMIN_CONTEXT = “ou=ora,dc=company,dc=com”<br />
DIRECTORY_SERVERS = (ldap1.company.com:389, ldap2.company.com:389)<br />
DIRECTORY_SERVER_TYPE = OID</p>
<p>Oracle can &#8220;officially&#8221; only use OID or AD as LDAP servers.<br />
The type can be OID or AD. The multiple servers are for redundancy; it will not try each one in turn. Then in SQLNET.ORA:</p>
<p>NAMES.DIRECTORY_PATH=(LDAP, TNSNAMES)</p>
<p>The means try LDAP first, then try TNSNAMES.ORA, then give up.</p>
<p>If you want to use a third-party LDAP server, Oracle has a product called Virtual Directory that will act as a proxy between them.</p>
<p>Note:<br />
- OID is a standalone system component (no run time dependency on WLS)<br />
- FMW Control and ODSM are J2EE apps running in WLS. These components are used for managing OID via GUI interface.</p>
<p>Links section</p>
<p>Complete tutorial:</p>
<p>http://www.oracle.com/technetwork/middleware/id-mgmt/overview/ods11g-use-cases-084303.html</p>
<p>http://download.oracle.com/otndocs/products/oid/11113-oid-fresh-installation/11113oidfreshinstallation_viewlet_swf.html</p>
<p>http://www.oracle.com/technetwork/middleware/id-mgmt/overview/oracleauthenticationservices-100184.html</p>
<p>Concepts:</p>
<p>http://onlineappsdba.com/index.php/2009/07/28/oracle-fusion-middleware-11g-concepts-for-apps-dbas/</p>
<p>Download:</p>
<p>http://www.oracle.com/technetwork/middleware/downloads/fmw-11-download-092893.html</p>
<p>http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html</p>
<p>http://download.oracle.com/otndocs/products/oid/11113-oid-fresh-installation/11113oidfreshinstallation_viewlet_swf.html</p>
<p>http://www.oracle.com/technetwork/testcontent/index-092280.html</p>
<p>LDAP configuration:</p>
<p>http://serverfault.com/questions/192359/oracle-replacing-tnsnames-ora-with-ldap-lookup</p>
<p>http://laurentschneider.com/wordpress/2006/10/migration-of-tnsnamesora-to-ldap-sun-java-system-directory-server.html</p>
<p>Tnsnames.ora information from OpenLDAP:</p>
<p>http://oracle-cookies.blogspot.com/2007/01/get-tnsnamesora-from-openldap.html</p>
<p>Orafaq:</p>
<p>http://www.orafaq.com/wiki/Oracle_Internet_Directory</p>
<p>OID basics:</p>
<p>http://onlineappsdba.com/index.php/2006/12/04/oracle-internet-directory-oid/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2011/03/oracle-internet-directory-oid-and-weblogic-installation-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing or Upgrading Oracle APEX</title>
		<link>http://www.database.fi/2011/01/installing-or-upgrading-oracle-apex/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=installing-or-upgrading-oracle-apex</link>
		<comments>http://www.database.fi/2011/01/installing-or-upgrading-oracle-apex/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 18:51:39 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Apex]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Apex]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=120</guid>
		<description><![CDATA[HTML DB did not impress me much (huh?) &#8211; but I have to say I am pretty impressed with Oracle Apex.
It is one of the quickest ways to make db-aware web solutions. That combined with the fact that is uses Oracle is just great. 
Well, anyway &#8211; I was asked to upgrade the APEX to [...]]]></description>
			<content:encoded><![CDATA[<p>HTML DB did not impress me much (huh?) &#8211; but I have to say I am pretty impressed with Oracle Apex.</p>
<p>It is one of the quickest ways to make db-aware web solutions. That combined with the fact that is uses Oracle is just great. </p>
<p>Well, anyway &#8211; I was asked to upgrade the APEX to the latest version (4.02 while writing this).<br />
Here is a quick guide:<br />
1. Download apex installation package<br />
2. Unzip it somewhere like c:\oraclexe\apex or /var/oraclexe/apex<br />
3. Open shell or cmd and CD there, &#8220;sqlplus / as sysdba&#8221; from that directory<br />
4. @apexins SYSAUX SYSAUX TEMP /i/<br />
5. ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;<br />
5.1. ALTER USER APEX_PUBLIC_USER IDENTIFIED BY new_password</p>
<p>If your images are not displayed correctly, you may need to run also:<br />
@apxldimg c:\oraclexe\</p>
<p>In order to change the admin account password, run: @apxxepwd.sql</p>
<p>BR,<br />
 Pasi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2011/01/installing-or-upgrading-oracle-apex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 11g virtual columns</title>
		<link>http://www.database.fi/2010/04/oracle-11g-virtual-columns/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=oracle-11g-virtual-columns</link>
		<comments>http://www.database.fi/2010/04/oracle-11g-virtual-columns/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:06:22 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 11g New Features]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=74</guid>
		<description><![CDATA[When I found out about virtual columns I just had to try it.
Just a simple example for our familiar employees table. 
First I made a copy of the employees:
Create table duunarit as select * from employees;

SQL> desc duunarit
 Name                 [...]]]></description>
			<content:encoded><![CDATA[<p>When I found out about virtual columns I just had to try it.<br />
Just a simple example for our familiar employees table. </p>
<p>First I made a copy of the employees:<br />
Create table duunarit as select * from employees;</p>
<p><code><br />
SQL> desc duunarit<br />
 Name                                      Null?    Type<br />
 ----------------------------------------- -------- ---------------------</p>
<p> EMPLOYEE_ID                                        NUMBER(6)<br />
 FIRST_NAME                                         VARCHAR2(20)<br />
 LAST_NAME                                 NOT NULL VARCHAR2(25)<br />
 EMAIL                                     NOT NULL VARCHAR2(25)<br />
 PHONE_NUMBER                                       VARCHAR2(20)<br />
 HIRE_DATE                                 NOT NULL DATE<br />
 JOB_ID                                    NOT NULL VARCHAR2(10)<br />
 SALARY                                             NUMBER(8,2)<br />
 COMMISSION_PCT                                     NUMBER(2,2)<br />
 MANAGER_ID                                         NUMBER(6)<br />
 DEPARTMENT_ID                                      NUMBER(4)<br />
</code></p>
<p>I would like to add a salgrade column to the table with some simple reasoning based on salary:<br />
 when salary is less than 3000, print &#8216;Poor you&#8217;<br />
 when salary is 3000 &#8211; 5000, print &#8216;Lucky you&#8217;<br />
 when it is above 5000, print &#8216;You bastard&#8217;</p>
<p> <img src='http://www.database.fi/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So here is my column definition:</p>
<p><code>alter table duunarit add<br />
(salgrade varchar2(20)<br />
generated always as<br />
(<br />
case<br />
 when salary < 3000 then 'Poor you'<br />
 when salary < 5000 then 'Lucky you'<br />
 else 'You bastard'<br />
end<br />
)virtual<br />
);</p>
<p>Table altered.<br />
</code></p>
<p>Let's try it!</p>
<p><code>SQL> l<br />
  1* select last_name, salary, salgrade from duunarit</p>
<p>LAST_NAME                     SALARY SALGRADE<br />
------------------------- ---------- --------------------<br />
King                           24000 You bastard<br />
Kochhar                        17000 You bastard<br />
De Haan                        17000 You bastard<br />
Hunold                          9000 You bastard<br />
Ernst                           6000 You bastard<br />
Austin                          4800 Lucky you<br />
Pataballa                       4800 Lucky you<br />
Lorentz                         4200 Lucky you<br />
Greenberg                      12000 You bastard<br />
Faviet                          9000 You bastard<br />
Chen                            8200 You bastard</p>
<p>LAST_NAME                     SALARY SALGRADE<br />
------------------------- ---------- --------------------<br />
Sciarra                         7700 You bastard<br />
Urman                           7800 You bastard<br />
Popp                            6900 You bastard<br />
Raphaely                       11000 You bastard<br />
Khoo                            3100 Lucky you<br />
Baida                           2900 Poor you<br />
Tobias                          2800 Poor you<br />
Himuro                          2600 Poor you<br />
Colmenares                      2500 Poor you<br />
Weiss                           8000 You bastard<br />
Fripp                           8200 You bastard<br />
</code></p>
<p>This looks great functionality!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2010/04/oracle-11g-virtual-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Statspack to Oracle (dbms_job configuration)</title>
		<link>http://www.database.fi/2010/03/installing-and-configuring-statspack-to-oracle/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=installing-and-configuring-statspack-to-oracle</link>
		<comments>http://www.database.fi/2010/03/installing-and-configuring-statspack-to-oracle/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 15:58:46 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Jobs]]></category>
		<category><![CDATA[Statspack]]></category>
		<category><![CDATA[dbms_ijob]]></category>
		<category><![CDATA[dbms_job]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[oracle job]]></category>
		<category><![CDATA[Oracle Performance Tuning]]></category>
		<category><![CDATA[Performance Tuning]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=55</guid>
		<description><![CDATA[I was asked to provide instructions on how to install and configure Statspack into Oracle so here goes.
The statspack scripts can be found from under this directory structure:
$Oracle_home/rdbms/admin

The installation needs to be run as SYS user.
Basic installation is done simply by running this script:
@?/rdbms/admin/spcreate.sql

This installs the Statspack engine &#038; tables to database.
You can (if you [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked to provide instructions on how to install and configure Statspack into Oracle so here goes.</p>
<p>The statspack scripts can be found from under this directory structure:<br />
<code>$Oracle_home/rdbms/admin<br />
</code></p>
<p>The installation needs to be run as SYS user.</p>
<p>Basic installation is done simply by running this script:<br />
<code>@?/rdbms/admin/spcreate.sql<br />
</code></p>
<p>This installs the Statspack engine &#038; tables to database.</p>
<p>You can (if you want) automate the snap creation with this script:<br />
<code>@?/rdbms/admin/spauto.sql<br />
</code><br />
This script takes snaps every hour starting from the next hour.</p>
<p>You can modify this script to make another kind of scheduling.<br />
For example if you want to take snaps every half an hour, you need to modify:<br />
<code>"sysdate+1/24" => "sysdate+1/48"</p>
<p>dbms_job.submit(:jobno, 'statspack.snap;', trunc(sysdate+1/24,'HH'), 'trunc(SYSDATE+1/24,''HH'')', TRUE, :instno);<br />
</code><br />
=><br />
<code>dbms_job.submit(:jobno, 'statspack.snap;', trunc(sysdate+1/48,'HH'), 'trunc(SYSDATE+1/48,''HH'')', TRUE, :instno);<br />
</code></p>
<p>If you need to ie. change the currently running job interval, you need to find out the job number first.<br />
Connect as dba user to Oracle and run this query:<br />
<code><br />
select job, what, interval from dba_jobs;</p>
<p>       JOB<br />
----------<br />
WHAT<br />
-----------------------------<br />
INTERVAL<br />
-----------------------------<br />
        21<br />
statspack.snap;<br />
trunc(SYSDATE+1/24,'HH')</code></p>
<p>So the statspack.snap is run every hour and job number is 21. Fine.<br />
Let&#8217;s say that we need to run it every half an hour.<br />
We need to change the interval to: 1/48.</p>
<p>You can update the job interval like this. You can set is as the job owner with this syntax:<br />
<code>exec dbms_job.interval(21,'TRUNC(SYSDATE+1/48,''HH'')');</p>
<p>PL/SQL procedure successfully completed.<br />
</code></p>
<p>Or as another user with DBA privileges:<br />
<code>SQL> show user<br />
USER is "SYS"<br />
SQL> exec dbms_ijob.interval(21,'TRUNC(SYSDATE+1/48,''HH'')');</p>
<p>PL/SQL procedure successfully completed.<br />
</code></p>
<p><em>Please note: there are two single quotes &#8216; around HH, not one double-quote &#8220;.<br />
</em></p>
<p>Also you could remove the job with:<br />
<code>exec dbms_job.remove(21);</code></p>
<p>and re-create it with:<br />
<code><br />
variable jobno number;<br />
variable instno number;<br />
begin<br />
  select instance_number into :instno from v$instance;<br />
  dbms_job.submit(:jobno, 'statspack.snap;', trunc(sysdate+1/48,'HH'), 'trunc(SYSDATE+1/48,''HH'')', TRUE, :instno);<br />
  commit;<br />
end;<br />
/<br />
</code></p>
<p>You should try that the job runs now.</p>
<p>Run as the job owner:<br />
<code>SQL> exec dbms_job.run(21);</p>
<p>PL/SQL procedure successfully completed.<br />
</code><br />
Run as a DBA user:<br />
<code>SQL> exec dbms_ijob.run(21);</p>
<p>PL/SQL procedure successfully completed.</code></p>
<p>You can check when the next scheduled job run is:<br />
<code><br />
SQL> select job, what, interval, to_char(next_date, 'DD.MM.YYYY HH24:MI:SS') from dba_jobs where job=21;</p>
<p>       JOB<br />
----------<br />
WHAT<br />
-------------------------------------<br />
INTERVAL<br />
-------------------------------------<br />
TO_CHAR(NEXT_DATE,'<br />
-------------------<br />
        21<br />
statspack.snap;<br />
TRUNC(SYSDATE+1/48,'HH')<br />
29.03.2010 11:00:00</code></p>
<p>Statspack was introduced in Oracle 9i and it is still an usable tool in current Oracle version of 11.2.<br />
AWR is superior technology compared to Statspack, but for many purposes Statspack still holds its place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2010/03/installing-and-configuring-statspack-to-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic start of Oracle database on Linux</title>
		<link>http://www.database.fi/2010/03/automatic-start-of-oracle-database-on-linux/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=automatic-start-of-oracle-database-on-linux</link>
		<comments>http://www.database.fi/2010/03/automatic-start-of-oracle-database-on-linux/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 21:46:47 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Auto-start]]></category>
		<category><![CDATA[Automatic start]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=18</guid>
		<description><![CDATA[In certain cases Oracle does not start automatically on Linux after installation.
To fix this, you need to do these steps:
Modify oratab
vi /etc/oratab
change the “N” at the end => “Y”
For example:
From: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:N
To: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y
Create a dbora file under /etc/init.d/
vi /etc/init.d/dbora
#!/bin/sh
# chkconfig: 345 99 10
# description: Automatic Oracle database start-stop script.
# Set ORA_OWNER to the user id of [...]]]></description>
			<content:encoded><![CDATA[<p>In certain cases Oracle does not start automatically on Linux after installation.<br />
To fix this, you need to do these steps:<br />
Modify oratab<br />
vi /etc/oratab<br />
change the “N” at the end => “Y”<br />
For example:<br />
From: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:N<br />
To: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y<br />
Create a dbora file under /etc/init.d/<br />
vi /etc/init.d/dbora<br />
#!/bin/sh<br />
# chkconfig: 345 99 10<br />
# description: Automatic Oracle database start-stop script.<br />
# Set ORA_OWNER to the user id of the owner of the<br />
# Oracle database in ORA_HOME.<br />
ORA_HOME=/u01/app/oracle/product/11.2.0/dbhome_1<br />
ORA_OWNER=oracle<br />
if [ ! -f $ORA_HOME/bin/dbstart ]<br />
then<br />
echo &#8220;Oracle startup: cannot start&#8221;<br />
exit<br />
fi<br />
case &#8220;$1&#8243; in<br />
&#8217;start&#8217;)<br />
# Start Oracle databases:<br />
su &#8211; $ORA_OWNER -c &#8220;$ORA_HOME/bin/dbstart $ORA_HOME&#8221;<br />
touch /var/lock/subsys/dbora<br />
;;<br />
&#8217;stop&#8217;)<br />
# Stop Oracle databases:<br />
su &#8211; $ORA_OWNER -c &#8220;$ORA_HOME/bin/dbshut $ORA_HOME&#8221;<br />
rm -f /var/lock/subsys/dbora<br />
;;<br />
esac<br />
If you modify the script above, remember to keep the 3 first commented lines (shell, chkconfig and description).<br />
Change the privileges to appropriate level with:<br />
chmod 750 /etc/init.d/dbora<br />
Now add the script to chkconfig:<br />
chkconfig &#8211;add dbora<br />
You can check this with:</p>
<p>$> chkconfig &#8211;list | grep db<br />
dbora 0:off 1:off 2:off 3:on 4:on 5:on 6:off<br />
You’re done, verify after next reboot:<br />
ps -ef | grep smon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2010/03/automatic-start-of-oracle-database-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

