<?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>HollyGhozi &#187; Oracle</title>
	<atom:link href="http://hollyghozi.com/index.php/category/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://hollyghozi.com</link>
	<description>is another Javanese Indonesian fellow blog</description>
	<lastBuildDate>Mon, 12 Dec 2011 01:52:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>OpenWorks: Create default Wallet</title>
		<link>http://hollyghozi.com/index.php/2009/05/openworks-create-default-wallet/</link>
		<comments>http://hollyghozi.com/index.php/2009/05/openworks-create-default-wallet/#comments</comments>
		<pubDate>Mon, 04 May 2009 08:48:47 +0000</pubDate>
		<dc:creator>hollyghozi</dc:creator>
				<category><![CDATA[Landmark]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OpenWorks]]></category>

		<guid isPermaLink="false">http://hollyghozi.com/?p=150</guid>
		<description><![CDATA[As addition to the OpenWorks: OS Authentication in R5000. You can create default wallet without having to login into OpenWorks by running the script below. Before you run the script, you have to make sure that the following environment variable is populated correctly: OWHOME OWSYSSID ORACLE_HOME OW_HOME_DIR From your linux shell, please run the following: [...]]]></description>
			<content:encoded><![CDATA[<p>As addition to the OpenWorks: <a href="http://hollyghozi.com/?p=141">OS Authentication in R5000</a>. You can create default wallet without having to login into OpenWorks by running the script below.</p>
<p>Before you run the script, you have to make sure that the following environment variable is populated correctly:<br />
<code>OWHOME<br />
OWSYSSID<br />
ORACLE_HOME<br />
OW_HOME_DIR</code></p>
<p>From your linux shell, please run the following:<br />
<code>Bash$ ${OWHOME}/jre/bin/java \<br />
-classpath ${OWHOME}/jar/com_lgc_ow_devkit.jar \<br />
com.lgc.ow.credentials.OracleWallet \<br />
${OWSYSSID} ${ORACLE_HOME} ${OW_HOME_DIR}</code></p>
<p>If it&#8217;s not exist, it will create ${HOME}/wallet directory with user and password entry. The password created by the script has to be equal as the user. If you have different password value, you&#8217;ll need to use the default OpenWorks user dialog.</p>
]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/05/openworks-create-default-wallet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Oracle: Default Temporary Tablespace in 9i/10g</title>
		<link>http://hollyghozi.com/index.php/2009/05/oracle-default-temporary-tablespace-in-10g/</link>
		<comments>http://hollyghozi.com/index.php/2009/05/oracle-default-temporary-tablespace-in-10g/#comments</comments>
		<pubDate>Mon, 04 May 2009 08:14:05 +0000</pubDate>
		<dc:creator>hollyghozi</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://hollyghozi.com/?p=143</guid>
		<description><![CDATA[In Oracle 9i or above, we can create default temporary tablespace. By default, if user doesn&#8217;t have any temporary tablespace set, it will automatically use this default temporary tablespace. Before setting up the default temporary tablespace, you have to create the temporary tablespace: SQL> CREATE TEMPORARY TABLESPACE temp TEMPFILE '/oradata/tempfile_01.dbf' SIZE 10M EXTENT MANAGEMENT LOCAL [...]]]></description>
			<content:encoded><![CDATA[<p>In Oracle 9i or above, we can create default temporary tablespace. By default, if user doesn&#8217;t have any temporary tablespace set, it will automatically use this default temporary tablespace.</p>
<p>Before setting up the default temporary tablespace, you have to create the temporary tablespace:<br />
<code>SQL> CREATE TEMPORARY TABLESPACE temp TEMPFILE '/oradata/tempfile_01.dbf' SIZE 10M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 10M;</code><br />
The tablespace has to be &#8216;Temporary&#8217; type.</p>
<p>The command to set the default temporary tablespace:<br />
<code>SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp; </code></p>
<p>And to see if the default temporary tablespace has been configured correctly:<br />
<code>SQL> SELECT * FROM DATABASE_PROPERTIES where PROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';</code><br />
You&#8217;ll see the temporary tablespace there.</p>
]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/05/oracle-default-temporary-tablespace-in-10g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenWorks: OS Authentication in R5000</title>
		<link>http://hollyghozi.com/index.php/2009/04/openworks-os-authentication-in-r5000/</link>
		<comments>http://hollyghozi.com/index.php/2009/04/openworks-os-authentication-in-r5000/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 02:29:13 +0000</pubDate>
		<dc:creator>hollyghozi</dc:creator>
				<category><![CDATA[Landmark]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OpenWorks]]></category>

		<guid isPermaLink="false">http://hollyghozi.com/?p=141</guid>
		<description><![CDATA[OpenWorks R2003 use traditional external user as the authentication. By simply, creating user via sqlplus: create user osuser identified externally And you can connect to OpenWorks Oracle database by: sqlplus /@openworksdb In R5000, end user is still able to logon without password but the method is slightly different. R5000 uses Oracle Secure External Password Store. [...]]]></description>
			<content:encoded><![CDATA[<p>OpenWorks R2003 use traditional external user as the authentication. By simply, creating user via sqlplus:<br />
<code>create user osuser identified externally</code><br />
And you can connect to OpenWorks Oracle database by:<br />
<code>sqlplus /@openworksdb</code></p>
<p>In R5000, end user is still able to logon without password but the method is slightly different. R5000 uses Oracle Secure External Password Store. There&#8217;s a good tutorial on this created by <a href="http://www.oracle-base.com/articles/10g/SecureExternalPasswordStore_10gR2.php">oracle-base.com</a>.</p>
<p>The wallet directory is set by ${OW_HOME_DIR} environment variable. By default the value is equal as ${HOME}. You would see wallet directory in your home directory. So, if your R5000 environment is set correctly, you will able to do:<br />
<code>sqlplus /@openworksdb</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/04/openworks-os-authentication-in-r5000/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle: Drop database 10g</title>
		<link>http://hollyghozi.com/index.php/2008/06/oracle-drop-database-10g/</link>
		<comments>http://hollyghozi.com/index.php/2008/06/oracle-drop-database-10g/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 21:04:00 +0000</pubDate>
		<dc:creator>Holly</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://hollyghozi.wordpress.com/2008/06/24/oracle-drop-database-10g/</guid>
		<description><![CDATA[Steps to drop your 10g database: bash$sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jun 24 17:40:08 2008 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL&#62; shutdown immediate Database closed. Database [...]]]></description>
			<content:encoded><![CDATA[<p>Steps to drop your 10g database:<br />
<code>bash$sqlplus "/ as sysdba"<br />
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jun 24 17:40:08 2008<br />
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.<br />
Connected to:<br />
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production<br />
With the Partitioning, OLAP and Data Mining options<br />
SQL&gt; shutdown immediate<br />
Database closed.<br />
Database dismounted.<br />
ORACLE instance shut down.<br />
SQL&gt; startup restrict mount;<br />
ORACLE instance started.<br />
Total System Global Area 838860800 bytes<br />
Fixed Size 2076464 bytes<br />
Variable Size 805306576 bytes<br />
Database Buffers 25165824 bytes<br />
Redo Buffers 6311936 bytes<br />
Database mounted.<br />
SQL&gt; drop database;<br />
Database dropped.<br />
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production<br />
With the Partitioning, OLAP and Data Mining options</code><br />
All files that relate with the database control-file will be deleted as well. But all other file, *dump, password file, pfile still intact. If you wish to delete completely, use $ORACLE_HOME/bin/dbca</p>
]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2008/06/oracle-drop-database-10g/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Oracle: When Windows XP&#8217;s Firewall blocks Oracle connection</title>
		<link>http://hollyghozi.com/index.php/2006/11/oracle-when-windows-xps-firewall-blocks-oracle-connection/</link>
		<comments>http://hollyghozi.com/index.php/2006/11/oracle-when-windows-xps-firewall-blocks-oracle-connection/#comments</comments>
		<pubDate>Wed, 15 Nov 2006 10:40:00 +0000</pubDate>
		<dc:creator>Holly</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://hollyghozi.wordpress.com/2006/11/15/oracle-when-windows-xps-firewall-blocks-oracle-connection/</guid>
		<description><![CDATA[When client try to make connection to the listener (default using port 1521), the listener spawn new user-process. This user process use random port to handle the client&#8217;s request. Mainly, oracle use two main program, which are &#8221; oracle.exe&#8221; for oracle-instance, and &#8220;tnslsnr.exe&#8221; for listener. We can check it through &#8220;Task Manager&#8221; Windows firewall support [...]]]></description>
			<content:encoded><![CDATA[<div>When client try to make connection to the listener (default using port 1521), the listener spawn new user-process. This user process use random port to handle the client&#8217;s request. Mainly, oracle use two main program, which are &#8221; oracle.exe&#8221; for oracle-instance, and &#8220;tnslsnr.exe&#8221; for listener. We can check it through &#8220;Task Manager&#8221;<br />
Windows firewall support port and program exception. We use both to make exception in Windows-Firewall.</p>
<p>From Control Panel &#8211;&gt; Windows Firewall :<br />
1. &#8220;Add Port&#8221; =&gt; 1521<br />
2. &#8220;Add Program =&gt; browse to the ORACLE_HOME/bin for &#8221; oracle.exe&#8221; and &#8220;tnslsnr.exe&#8221;</p>
<p>Ok, now try to reconnect your client to the Oracle Server, and feel that your firewall configuration works&#8230; good luck!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2006/11/oracle-when-windows-xps-firewall-blocks-oracle-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: Rename the Oracle SID in Oracle 9i</title>
		<link>http://hollyghozi.com/index.php/2006/11/oracle-rename-the-oracle-sid-in-oracle-9i/</link>
		<comments>http://hollyghozi.com/index.php/2006/11/oracle-rename-the-oracle-sid-in-oracle-9i/#comments</comments>
		<pubDate>Tue, 14 Nov 2006 10:40:00 +0000</pubDate>
		<dc:creator>Holly</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://hollyghozi.wordpress.com/2006/11/14/oracle-rename-the-oracle-sid-in-oracle-9i/</guid>
		<description><![CDATA[Some of my fellows ask me how to change the oracle SID. For those who never done these steps see that this is a difficult thing, but it&#8217;s quite simple though. 1. Login as sysdba [ora9i@training01 ~]$ sqlplus "/ as sysdba" SQL*Plus: Release 9.2.0.4.0 - Production on Mon Nov 13 16:23:56 2006 Copyright (c) 1982, [...]]]></description>
			<content:encoded><![CDATA[<p>Some of my fellows ask me how to change the oracle SID. For those who never done these steps see that this is a difficult thing, but it&#8217;s quite simple though.</p>
<p>1. Login as sysdba<br />
<code>[ora9i@training01 ~]$ sqlplus "/ as sysdba"<br />
SQL*Plus: Release 9.2.0.4.0 - Production on Mon Nov 13 16:23:56 2006<br />
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.<br />
Connected to:<br />
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production<br />
With the Partitioning, OLAP and Oracle Data Mining options<br />
JServer Release 9.2.0.4.0 - Production </code></p>
<p>2. Note the user dump directory<br />
<code>SQL&gt; show parameter user_dump<br />
NAME                                 TYPE        VALUE<br />
------------------------------------ -----------------------------------------<br />
user_dump_dest                       string      /apps/ora9i/OraHome1/admin/ora<br />
sid/udump </code></p>
<p>3. Switch logfile several times using the following command.<br />
<code>SQL&gt; alter system switch logfile;<br />
SQL&gt; alter system switch logfile;<br />
SQL&gt; alter system switch logfile; </code></p>
<p>4. Create the basic SQL script for renaming the SID.<br />
<code>SQL&gt; alter database backup controlfile to trace;<br />
Database altered. </code></p>
<p>5. Shutdown the database<br />
<code>SQL&gt; shutdown<br />
SQL&gt; exit</code></p>
<p>6. Find the file created from step 4 in directory in step 2, and rename it to appropriate name.<br />
<code>[ora9i@training01 ~]$ cd /apps/ora9i/OraHome1/admin/orasid/udump<br />
[ora9i@training01 ~]$ ls –ltr<br />
-rw-r-----    1 ora9i    dba           1617 Nov  3 16:05 oldsid_ora_7120.trc<br />
-rw-r-----    1 ora9i    dba          1617 Nov  3 16:08 oldsid_ora_7837.trc<br />
-rw-r-----    1 ora9i    dba          1617 Nov  3 16:13 oldsid_ora_3482.trc<br />
-rw-r-----    1 ora9i     dba          1616 Nov  3 16:16 oldsid_ora_4412.trc<br />
-rw-r-----    1 ora9i    dba          1617 Nov   3 17:59 oldsid_ora_1818.trc<br />
-rw-r-----    1 ora9i    dba          3284 Nov  6 11:31 oldsid_ora_1770.trc<br />
-rw-r-----    1 ora9i    dba          7095 Nov 13 21:52 oldsid_ora_32410.trc<br />
[ora9i@training01 ~]$ mv oldsid_ora_32410.trc renameorasid.sql</code></p>
<p>7. Delete unwanted lines and update as necessary, the result appears as below. Please notify the one in bold.<br />
<code>[ora9i@training01 ~]$ vi renameorasid.sql<br />
CREATE CONTROLFILE <strong>set</strong>  DATABASE <strong>"orasid" RESETLOGS</strong>  NOARCHIVELOG<br />
--  SET STANDBY TO MAXIMIZE PERFORMANCE<br />
MAXLOGFILES 5<br />
MAXLOGMEMBERS 5<br />
MAXDATAFILES 100<br />
MAXINSTANCES 1<br />
MAXLOGHISTORY 453<br />
LOGFILE<br />
GROUP 1 (<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/logg1m1orasid.log',<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/logg1m2 orasid.log'<br />
) SIZE 8M,<br />
GROUP 2 (<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/logg2m1orasid.log',<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/logg2m2orasid.log'<br />
) SIZE 8M,<br />
GROUP 3 (<br />
'/apps/ora9i/OraHome1/database/datafiles/ orasid/logg3m1orasid.log',<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/logg3m2orasid.log'<br />
) SIZE 8M<br />
-- STANDBY LOGFILE<br />
DATAFILE<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/systemorasid.dbf',<br />
'/apps/ora9i/OraHome1/database/datafiles/ orasid/undoorasid.dbf',<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/exampleorasid.dbf',<br />
'/apps/ora9i/OraHome1/database/datafiles/ orasid/toolsorasid.dbf',<br />
'/apps/ora9i/OraHome1/database/datafiles/orasid/userorasid.dbf'<br />
CHARACTER SET US7ASCII<br />
;</code></p>
<p>8. Create/move directories and rename the datafiles.<br />
<code>[ora9i@training01 ~]$ mkdir -p /apps/ora9i/OraHome1/admin/orasid<br />
[ora9i@training01 ~]$ mkdir /apps/ora9i/OraHome1/admin/orasid /cdump<br />
[ora9i@training01 ~]$ mkdir /apps/ora9i/OraHome1/admin/orasid/udump<br />
[ora9i@training01 ~]$ mkdir /apps/ora9i/OraHome1/admin/orasid/bdump<br />
[ora9i@training01 ~]$ cd /apps/ora9i/OraHome1/database/datafiles/<br />
[ora9i@training01 ~]$ mv oldsid orasid<br />
[ora9i@training01 ~]$ cd orasid<br />
[ora9i@training01 ~]$ mv logg1m1oldsid.log logg1m1orasid.log<br />
[ora9i@training01  ~]$ mv logg1m2oldsid.log logg1m2orasid.log<br />
[ora9i@training01 ~]$ mv logg2m1oldsid.log logg2m1orasid.log<br />
[ora9i@training01 ~]$ mv logg2m2oldsid .log logg2m2orasid.log<br />
[ora9i@training01 ~]$ mv logg3m1oldsid.log logg3m1orasid.log<br />
[ora9i@training01 ~]$ mv logg3m2oldsid.log logg3m2orasid .log<br />
[ora9i@training01 ~]$ mv systemoldsid.dbf systemorasid.dbf<br />
[ora9i@training01 ~]$ mv undooldsid.dbf undoorasid.dbf<br />
[ora9i@training01 ~]$ mv example oldsid.dbf exampleorasid.dbf<br />
[ora9i@training01 ~]$ mv toolsoldsid.dbf toolsorasid.dbf<br />
[ora9i@training01 ~]$ mv useroldsid.dbf user orasid.dbf<br />
[ora9i@training01 ~]$ mv tempoldsid.dbf temporasid.dbf</code></p>
<p>9. Update initialization parameter file<br />
<code>[ora9i@training01 ~]$ cd /apps/ora9i/OraHome1/dbs/<br />
[ora9i@training01 ~]$ vi initorasid.ora<br />
*.compatible='9.2.0.0.0'<br />
*.control_files='/apps/ora9i/OraHome1/database/datafiles/orasid/control1orasid.ctl','/apps/ora9i/OraHome1/database/datafiles/ orasid/control2orasid.ctl','/apps/ora9i/OraHome1/database/datafiles/orasid/control3orasid.ctl'<br />
*.core_dump_dest='/apps/ora9i/OraHome1/admin/orasid /cdump'<br />
*.user_dump_dest='/apps/ora9i/OraHome1/admin/orasid/udump'<br />
*.background_dump_dest='/apps/ora9i/OraHome1/admin/orasid/bdump'<br />
*.db_block_size=8192<br />
*.db_cache_size=134217728<br />
*.db_domain=''<br />
*.db_file_multiblock_read_count=32<br />
*.db_files=1024<br />
*.db_name='orasid'<br />
*.dml_locks=500<br />
*.fast_start_mttr_target=300<br />
*.global_names=FALSE<br />
*.instance_name=' orasid'<br />
*.java_pool_size=52428800<br />
*.job_queue_processes=2<br />
*.log_buffer=1048576<br />
*.max_dump_file_size='10240'<br />
*.max_enabled_roles=48<br />
*.open_cursors=400<br />
*.os_authent_prefix=''<br />
*.processes=150<br />
*.remote_login_passwordfile='NONE'<br />
*.remote_os_authent=TRUE<br />
*.shared_pool_size=54525952<br />
*.sort_area_size=524288<br />
*.undo_management='AUTO'<br />
*.undo_tablespace='UNDOTBS'<br />
*.utl_file_dir='*'</code></p>
<p>9. Create password file<br />
<code>[ora9i@training01 ~]$ cd /apps/ora9i/OraHome1/dbs/<br />
[ora9i@training01 ~]$ orapwd file=orapw password=o entries=10</code></p>
<p>10. Update the environment file in ora9i home directory, and then relogin<br />
<code>[ora9i@training01 ~]$ cd ~<br />
[ora9i@training01 ~]$ vi .login<br />
setenv ORACLE_SID orasid<br />
setenv ORACLE_OWNER ora9i<br />
setenv ORACLE_BASE /apps/ora9i<br />
setenv ORACLE_HOME ${ORACLE_BASE}/OraHome1</code></p>
<p>11. Running the script.<br />
<code>[ora9i@training01 ~]$ sqlplus "/ as sysdba"<br />
SQL&gt; startup nomount<br />
SQL&gt; @renameorasid.sql<br />
SQL&gt; recover database using backup controlfile;<br />
SQL&gt; alter database open resetlogs;<br />
SQL&gt; alter database rename global_name to orasid;</code></p>
<p>12. Restart the database<br />
<code>[ora9i@training01 ~]$ sqlplus "/ as sysdba"<br />
SQL&gt; shutdown<br />
SQL&gt; startup</code></p>
<p>13. Setting up the client<br />
<code>[ora9i@training01 ~]$ cd /apps/ora9i/OraHome/network/admin<br />
[ora9i@training01 ~]$ vi tnsadmin.ora<br />
orasid =<br />
(DESCRIPTION =<br />
(ADDRESS_LIST =<br />
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))<br />
)<br />
(CONNECT_DATA =<br />
(SERVER = DEDICATED)<br />
(SERVICE_NAME = orasid)<br />
)<br />
)</code></p>
<p>You see that the main steps are step 4 and 7, which create the script and rename.<br />
Okay, you&#8217;re now ready with your new name of the database instance. Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2006/11/oracle-rename-the-oracle-sid-in-oracle-9i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

