<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2391083836582252608</id><updated>2012-02-16T12:04:04.483-08:00</updated><category term='ORA-01157'/><category term='Andhi'/><category term='oracle tablespace free space'/><category term='STT TELKOM'/><category term='Remote Linux using Xmanager'/><category term='Drop tablespace with missing datafile'/><category term='ORACLE10G'/><category term='Linux Xmanager'/><category term='RMAN'/><category term='Oracle'/><category term='kill'/><category term='SOA'/><category term='kill inactive user oracle'/><category term='GRID'/><category term='user'/><category term='ORACLE RMAN'/><category term='oracle monitoring'/><category term='show tablespace capacity'/><category term='setup RMAN'/><category term='using explain plain'/><category term='Remote desktop Linux'/><category term='oracle tablespace query'/><category term='setup rman using catalog database'/><category term='steps explain plan'/><category term='andzsr'/><category term='explain plan oracle'/><category term='kill user oracle'/><category term='ORA-01110'/><category term='explain plan'/><category term='explain plan steps'/><title type='text'>De AndZs Torial</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-1620455738438419165</id><published>2009-12-22T18:35:00.000-08:00</published><updated>2009-12-22T19:00:42.035-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='steps explain plan'/><category scheme='http://www.blogger.com/atom/ns#' term='explain plan oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='using explain plain'/><category scheme='http://www.blogger.com/atom/ns#' term='explain plan'/><category scheme='http://www.blogger.com/atom/ns#' term='explain plan steps'/><category scheme='http://www.blogger.com/atom/ns#' term='andzsr'/><title type='text'>Explain Plan in Oracle</title><content type='html'>Explain plan in Oracle shows execution plan in Oracle which is  choose by oracle optimizer for select statements, insert, update and delete statements. Informations we can get from explain plan in Oracle are :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Table used for sql statement we want to explain&lt;/li&gt;&lt;li&gt;Access method in tables we access.&lt;/li&gt;&lt;li&gt;Steps for executing the sql&lt;/li&gt;&lt;li&gt;join method&lt;br /&gt;&lt;/li&gt;&lt;li&gt;sorting and agregating&lt;/li&gt;&lt;/ul&gt;Steps using explain plan in Oracle :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Create table plan by execute script utlxplan.sql locates in $ORACLE_HOME/rdbms/admin/utlxplan.sql&lt;/li&gt;&lt;li&gt;Use explain plan by using this sql :                                                                                    EXPLAIN PLAN&lt;br /&gt;SET STATEMENT_ID = 'some identifier'&lt;br /&gt;INTO plan_table&lt;br /&gt;FOR sql_statement;&lt;/li&gt;&lt;li&gt;Check explain plan result :                                                                                                         Select * from PLAN_TABLE&lt;br /&gt;where statement_id = 'some identifier';&lt;/li&gt;&lt;li&gt;If we use cost based optimizer we can use this sql to check explain plan result :           SELECT LPAD(' ',2*(level-1)) || operation || ' ' || options || ' '&lt;br /&gt;||object_name||' '||&lt;br /&gt;DECODE(id,0,'Cost = '|| position) AS "Query Plan"&lt;br /&gt;FROM plan_table&lt;br /&gt;START WITH id = 0&lt;br /&gt;AND statement_id='SQL Pak Hari'&lt;br /&gt;CONNECT BY PRIOR ID = PARENT_ID&lt;br /&gt;AND statement_id = 'SQL Pak Hari';&lt;/li&gt;&lt;li&gt;Thats all&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-1620455738438419165?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/1620455738438419165/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=1620455738438419165' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/1620455738438419165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/1620455738438419165'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/12/explain-plan-in-oracle.html' title='Explain Plan in Oracle'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-1359976347474078360</id><published>2009-12-22T18:29:00.000-08:00</published><updated>2009-12-22T18:30:36.961-08:00</updated><title type='text'>Apache on Solaris 10</title><content type='html'>Solaris 10 already have Apache in it, in order to use it you just need to start the service. The step to start the Apache server are :&lt;br /&gt;1. Go to /usr/apache/bin : #cd /usr/apache/bin&lt;br /&gt;2. To start the service : #./apachectl start&lt;br /&gt;You will get error message if you don’t have httpd.conf located in /etc/apache/&lt;br /&gt;To create htttpd.conf just copy httpd.conf-example located in /etc/apache/ :&lt;br /&gt;#cp /etc/apache/httpd.conf-example /etc/apache/httpd.conf&lt;br /&gt;After that try again run command #./apachectl start&lt;br /&gt;If it success than in your solaris will show message ./apachectl start: httpd started&lt;br /&gt;3.After that you can try your Apache server using your browser and type : http://yourIPserver/&lt;br /&gt;&lt;br /&gt;That’s all&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-1359976347474078360?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/1359976347474078360/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=1359976347474078360' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/1359976347474078360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/1359976347474078360'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/12/apache-on-solaris-10.html' title='Apache on Solaris 10'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-5444307426032969720</id><published>2009-12-22T18:27:00.001-08:00</published><updated>2009-12-22T18:31:30.955-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='setup rman using catalog database'/><category scheme='http://www.blogger.com/atom/ns#' term='setup RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='ORACLE RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='andzsr'/><title type='text'>RMAN setup using catalog database quick guide</title><content type='html'>To setup RMAN using catalog database follow these steps :&lt;br /&gt;1. Create user for catalog database repository in catalogue database&lt;br /&gt;-Create tablespace for catalog database&lt;br /&gt;sql&gt;CREATE TABLESPACE RMAN_CAT&lt;br /&gt;DATAFILE ‘RMAN_CAT’ SIZE 500 M&lt;br /&gt;-Create user for catalog database&lt;br /&gt;sql&gt;create user rman_cat identified by rman_cat&lt;br /&gt;temporary tablespace temp&lt;br /&gt;default tablespace rman_cat&lt;br /&gt;quota unlimited on rman_cat&lt;br /&gt;-Grant appropriate privilege for user created&lt;br /&gt;sql&gt;grant recovery_catalog_owner,resource,create session to rman_cat&lt;br /&gt;-Connect to recovery catalog using RMAN&lt;br /&gt;$rman catalog rman_cat/rman_cat@rman_cat&lt;br /&gt;RMAN&gt;create catalog tablespace rman_cat&lt;br /&gt;2. Connect to target database (Database to be backup) and catalog database using RMAN&lt;br /&gt;-Connect using rman and register database&lt;br /&gt;$rman target sys/pass@target catalog rman_cat/rman_cat@rman_cat&lt;br /&gt;RMAN&gt;register database;&lt;br /&gt;-Check RMAN configuration&lt;br /&gt;RMAN&gt; Show all;&lt;br /&gt;Command above will see RMAN configuration&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-5444307426032969720?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/5444307426032969720/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=5444307426032969720' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/5444307426032969720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/5444307426032969720'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/12/rman-setup-using-catalog-database-quick.html' title='RMAN setup using catalog database quick guide'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-3455047933612421890</id><published>2009-12-22T18:20:00.000-08:00</published><updated>2009-12-22T18:21:51.504-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kill user oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='kill'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='kill inactive user oracle'/><title type='text'>Automate kill inactive user in oracle database</title><content type='html'>&lt;br /&gt;Step by step to automatically kill inactive user in oracle database&lt;br /&gt;To see inactive user in oracle database you can use this query “select * from v$session where status=’INACTIVE’ or user=’sys’”&lt;br /&gt;1. Create procedure for killing inactive oracle database user (oracle user have to be grant dbms_sql to execute this procedure)&lt;br /&gt;CREATE OR REPLACE PROCEDURE kill_session_1 ( session_id in varchar2,serial_num in varchar2)&lt;br /&gt;AS&lt;br /&gt;cur INTEGER;&lt;br /&gt;ret INTEGER;&lt;br /&gt;string VARCHAR2(100);&lt;br /&gt;BEGIN&lt;br /&gt;–&lt;br /&gt;– Comment out the following three lines to&lt;br /&gt;– not use KILL&lt;br /&gt;–&lt;br /&gt;string :=’ALTER SYSTEM KILL SESSION’ || CHR(10) ||CHR(39)||session_id||’,'||serial_num||CHR(39);&lt;br /&gt;–&lt;br /&gt;– Uncomment the following 4 lines to use DISCONNECT&lt;br /&gt;–&lt;br /&gt;–string := ‘ALTER SYSTEM DISCONNECT SESSION’ || CHR(10) || CHR(39)||session_id||’,'||serial_num||CHR(39)||CHR(10)||’ POST_TRANSACTION’;&lt;br /&gt;cur := dbms_sql.open_cursor;&lt;br /&gt;dbms_sql.parse(cur,string,dbms_sql.native);&lt;br /&gt;ret := dbms_sql.execute(cur) ;&lt;br /&gt;dbms_sql.close_cursor(cur);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;2. Create sql script ORA_KILL.sql for spooling command to execute procedure created (see no 1)&lt;br /&gt;REM&lt;br /&gt;REM ORA_KILL.SQL&lt;br /&gt;REM FUNCTION: Kills nonessential Oracle sessions (those that aren’t&lt;br /&gt;REM owned)&lt;br /&gt;REM : by SYS or “NULL”&lt;br /&gt;REM DEPENDENCIES: Depends on kill_session procedure&lt;br /&gt;REM MRA 9/12/96&lt;br /&gt;REM&lt;br /&gt;SET HEADING OFF TERMOUT OFF VERIFY OFF ECHO OFF&lt;br /&gt;SPOOL kill_all.sql&lt;br /&gt;SELECT ‘EXECUTE kill_session_1(‘||chr(39)||sid||chr(39)||’,'||&lt;br /&gt;chr(39)||serial#||chr(39)||’);’ FROM v$session&lt;br /&gt;WHERE username = ‘ECARE2′ and status=’INACTIVE’&lt;br /&gt;/&lt;br /&gt;SPOOL OFF&lt;br /&gt;START kill_all.sql&lt;br /&gt;&lt;br /&gt;3. Create shell script to automate execute sql script using cronjob (for unix user)&lt;br /&gt;sqlplus -s $schema/$pass@$dbLink as sysdba&lt;&lt;!&lt;br /&gt;set timing on&lt;br /&gt;@ORA_KILL&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-3455047933612421890?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/3455047933612421890/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=3455047933612421890' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/3455047933612421890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/3455047933612421890'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/12/automate-kill-inactive-user-in-oracle.html' title='Automate kill inactive user in oracle database'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-2961368346997893075</id><published>2009-04-17T19:31:00.000-07:00</published><updated>2009-04-17T19:33:14.341-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='show tablespace capacity'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle tablespace query'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle tablespace free space'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle monitoring'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='andzsr'/><title type='text'>SQL query for monitoring (next article Oracle Database Monitoring For Beginner)</title><content type='html'>This article is the sequel of my article &lt;a href="http://andzsr.wordpress.com/2008/08/27/oracle-database-monitoring-for-beginner-the-simple-way"&gt; Oracle Database Monitoring for Beginner &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Query for Status Monitoring&lt;br /&gt;Examples of Status Monitoring are, check tablespace where it's about to fills up, check segment near their maximum extents.&lt;br /&gt;-Tablespace related&lt;br /&gt;This query will show tablespace with percentage free less than 20 percent or equal 20 percent&lt;br /&gt;select ddf.TABLESPACE_NAME,&lt;br /&gt;ddf.BYTES,&lt;br /&gt;ddf.BYTES-DFS.BYTES "BYTES_USED",&lt;br /&gt;round(((ddf.BYTES-dfs.BYTES)/ddf.BYTES)*100,2) "PERCENT_USED",&lt;br /&gt;dfs.BYTES "BYTES_FREE",&lt;br /&gt;round((1-((ddf.BYTES-dfs.BYTES)/ddf.BYTES))*100,2) "PERCENT_FREE"&lt;br /&gt;from (select TABLESPACE_NAME,&lt;br /&gt;sum(BYTES) bytes&lt;br /&gt;from   dba_data_files&lt;br /&gt;where autoextensible='NO'&lt;br /&gt;group  by TABLESPACE_NAME) ddf,&lt;br /&gt;(select TABLESPACE_NAME,&lt;br /&gt;sum(BYTES) bytes&lt;br /&gt;from dba_free_space&lt;br /&gt;group by TABLESPACE_NAME) dfs&lt;br /&gt;where ddf.TABLESPACE_NAME=dfs.TABLESPACE_NAME and round((1-((ddf.BYTES-dfs.BYTES)/ddf.BYTES))*100,2) &amp;lt; 20 or              round((1-((ddf.BYTES-dfs.BYTES)/ddf.BYTES))*100,2) = 20&lt;br /&gt;order by ((ddf.BYTES-dfs.BYTES)/ddf.BYTES) desc&lt;br /&gt;&lt;br /&gt;Query to show tablespace and the datafile&lt;br /&gt;SELECT dfs.TABLESPACE_NAME, SUBSTR (df.NAME, 1, 70) file_name, df.bytes / 1024 / 1024 allocated_mb,&lt;br /&gt;((df.bytes / 1024 / 1024) - NVL (SUM (dfs.bytes) / 1024 / 1024, 0))&lt;br /&gt;used_mb,&lt;br /&gt;NVL (SUM (dfs.bytes) / 1024 / 1024, 0) free_space_mb&lt;br /&gt;FROM v$datafile df, dba_free_space dfs&lt;br /&gt;WHERE df.file# = dfs.file_id(+)&lt;br /&gt;GROUP BY dfs.file_id, df.NAME, df.file#, df.bytes, dfs.TABLESPACE_NAME&lt;br /&gt;ORDER BY file_name&lt;br /&gt;&lt;br /&gt;-Oracle Objects Extents related&lt;br /&gt;Show objects more than 50% of Max Extents&lt;br /&gt;select   OWNER,&lt;br /&gt;TABLESPACE_NAME,&lt;br /&gt;SEGMENT_NAME,&lt;br /&gt;SEGMENT_TYPE,&lt;br /&gt;BYTES,&lt;br /&gt;EXTENTS,&lt;br /&gt;MAX_EXTENTS,&lt;br /&gt;(EXTENTS/MAX_EXTENTS)*100 \"PERCENTAGE\"&lt;br /&gt;from     dba_segments&lt;br /&gt;where    SEGMENT_TYPE in ('TABLE','INDEX')&lt;br /&gt;and      EXTENTS &amp;gt; MAX_EXTENTS/2&lt;br /&gt;order by (EXTENTS/MAX_EXTENTS) desc&lt;br /&gt;&lt;br /&gt;Show Segment near their maximum extents&lt;br /&gt;SELECT e.owner,&lt;br /&gt;e.segment_type,&lt;br /&gt;Substr(e.segment_name, 1, 30) "SEGMENT_NAME",&lt;br /&gt;Trunc(s.initial_extent/1024) "INITIAL K",&lt;br /&gt;Trunc(s.next_extent/1024) "NEXT K",&lt;br /&gt;s.max_extents,&lt;br /&gt;Count(*) as extents&lt;br /&gt;FROM   dba_extents e,&lt;br /&gt;dba_segments s&lt;br /&gt;WHERE  e.owner        = s.owner&lt;br /&gt;AND    e.segment_name = s.segment_name&lt;br /&gt;AND    e.owner        NOT IN ('SYS', 'SYSTEM')&lt;br /&gt;GROUP BY e.owner, e.segment_type, e.segment_name, s.initial_extent, s.next_extent, s.max_extents&lt;br /&gt;HAVING Count(*) &amp;gt; s.max_extents - 10&lt;br /&gt;ORDER BY e.segment_type, e.owner, e.segment_type, Count(*) DESC&lt;br /&gt;&lt;br /&gt;-Show Oracle session related and memory used&lt;br /&gt;SELECT NVL(a.username,'(oracle)') AS username,&lt;br /&gt;a.sid,&lt;br /&gt;a.serial#,&lt;br /&gt;a.machine,&lt;br /&gt;a.module,&lt;br /&gt;a.program,&lt;br /&gt;a.LOGON_TIME,&lt;br /&gt;a.status,&lt;br /&gt;a.process,&lt;br /&gt;Trunc(b.value/1024) AS memory_kb&lt;br /&gt;FROM   v$session a,&lt;br /&gt;v$sesstat b,&lt;br /&gt;v$statname c&lt;br /&gt;WHERE  a.sid = b.sid&lt;br /&gt;AND    b.statistic# = c.statistic#&lt;br /&gt;AND    c.name = 'session pga memory'&lt;br /&gt;AND    a.program IS NOT NULL&lt;br /&gt;ORDER BY  MEMORY_KB desc, a.MODULE asc,username desc&lt;br /&gt;&lt;br /&gt;2. Query for Performance Monitoring&lt;br /&gt;-Show Oracle Hit Ratio&lt;br /&gt;Dictionary Hit Ratio&lt;br /&gt;The ratio of cache hits to cache lookup attempts in the data dictionary cache. In other words, the rate the database goes to the dictionary   instead of the hard disk to retrieve data. A low ratio suggests more RAM should be added&lt;br /&gt;The Dictionary Hit Ratio value have to be more than 90 percent&lt;br /&gt;SELECT sum(gets) "GETS",sum(getmisses) "CACHE MISSES",round((1 - (sum(getmisses) / sum(gets))) * 100,3) "DICTIONARY"&lt;br /&gt;FROM v$rowcache&lt;br /&gt;&lt;br /&gt;Buffer Hit Ratio&lt;br /&gt;The rate the database goes to the buffer instead of the hard disk to retrieve data. A low ratio suggests more RAM should be added to the system.&lt;br /&gt;Buffer hit ratio have to be more than 85%&lt;br /&gt;SELECT cur.value "block",con.value "con",phy.value "phy", ROUND((1-(phy.value / (cur.value + con.value)))*100,2) "BUFFER"&lt;br /&gt;FROM v$sysstat@".$dbName." cur, v$sysstat@".$dbName." con, v$sysstat@".$dbName." phy&lt;br /&gt;WHERE cur.name = 'db block gets'&lt;br /&gt;AND con.name = 'consistent gets'&lt;br /&gt;AND phy.name = 'physical reads'&lt;br /&gt;&lt;br /&gt;Library Hit Ratio&lt;br /&gt;Monitors the percentage of entries in the library cache that were parsed more than once (reloads) over the lifetime of the instance.&lt;br /&gt;Library Hit Ratio have to be more than 95%&lt;br /&gt;SELECT sum(pins) "EXEC", sum(pinhits) "EXEC HITS", round((sum(pinhits) / sum(pins)) * 100,3) "HIT RATIO", sum(reloads) "MISSES",round((sum(pins) / (sum(pins) + sum(reloads))) * 100,3) "HITRATIO"&lt;br /&gt;FROM v$librarycache&lt;br /&gt;&lt;br /&gt;-Show memory usage by user connected&lt;br /&gt;SELECT NVL(a.username,'(oracle)') AS username,&lt;br /&gt;a.machine,&lt;br /&gt;a.module,&lt;br /&gt;a.program,&lt;br /&gt;Trunc(b.value/1024) AS memory_kb&lt;br /&gt;FROM   v$session a,&lt;br /&gt;v$sesstat b,&lt;br /&gt;v$statname c&lt;br /&gt;WHERE  a.sid = b.sid&lt;br /&gt;AND    b.statistic# = c.statistic#&lt;br /&gt;AND    c.name = 'session pga memory'&lt;br /&gt;AND    a.program IS NOT NULL&lt;br /&gt;ORDER BY  MEMORY_KB desc, a.MODULE asc,username desc&lt;br /&gt;&lt;br /&gt;-Show Oracle Sort Information&lt;br /&gt;select name,to_char(value,'999,999,999,999,999') "VALUE"&lt;br /&gt;from sys.v_$sysstat&lt;br /&gt;where name like 'sort%'&lt;br /&gt;Show hit ratio for sort&lt;br /&gt;Sorting percentage on disk have less than 5 %. If the value more than 5 % then change parameter SORT_AREA_SIZE.&lt;br /&gt;select to_char(100*a.value/decode((a.value+b.value),0,1,(A.value+b.value)),'999.90') "VALUE"&lt;br /&gt;from sys.v_$sysstat a, sys.v_$sysstat b&lt;br /&gt;where a.name = 'sorts (disk)'&lt;br /&gt;and b.name = 'sorts (memory)'&lt;br /&gt;&lt;br /&gt;-Show Oracle SGA Info&lt;br /&gt;select name, to_char(value,'999,999,999,999,999') "VALUE" from sys.v_$sga&lt;br /&gt;&lt;br /&gt;-Show Oracle Invalid Objects&lt;br /&gt;This query is to show invalid objects in Oracle&lt;br /&gt;select OWNER,&lt;br /&gt;OBJECT_TYPE,&lt;br /&gt;OBJECT_NAME,&lt;br /&gt;STATUS&lt;br /&gt;from dba_objects&lt;br /&gt;where STATUS = 'INVALID'&lt;br /&gt;order by OWNER, OBJECT_TYPE, OBJECT_NAME&lt;br /&gt;&lt;br /&gt;Solution :&lt;br /&gt;if the object invalid you can recompile it or you can delete it if it's not used.&lt;br /&gt;sql : SQL&amp;gt;ALTER PROCEDURE PROC_NAME COMPILE ;&lt;br /&gt;SQL&amp;gt;ALTER PACKAGE PACKAGE_NAME COMPILE ;&lt;br /&gt;SQL&amp;gt;ALTER VIEW VIEW_NAME COMPILE ;&lt;br /&gt;Or if you have many invalid objects run this script reside in :  $ORACLE_HOME/rdbms/admin/utlrp.sql&lt;br /&gt;Login to sqlplus&lt;br /&gt;sqlplus &amp;gt; @utlrp&lt;br /&gt;&lt;br /&gt;-Show Query running in Oracle&lt;br /&gt;This query will show currently queries running in Oracle.&lt;br /&gt;SELECT *&lt;br /&gt;FROM (SELECT Substr(a.sql_text,1,50) sql_text,Trunc(a.disk_reads/Decode(a.executions,0,1,a.executions))     reads_per_execution,a.buffer_gets,a.disk_reads,a.executions,a.sorts,a.address FROM v$sqlarea a) WHERE  rownum &amp;lt;= 10&lt;br /&gt;&lt;br /&gt;To be continued .................................&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-2961368346997893075?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/2961368346997893075/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=2961368346997893075' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/2961368346997893075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/2961368346997893075'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/04/sql-query-for-monitoring-next-article.html' title='SQL query for monitoring (next article Oracle Database Monitoring For Beginner)'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-6108447807302737021</id><published>2009-03-29T23:37:00.000-07:00</published><updated>2009-04-08T02:36:23.061-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Andhi'/><category scheme='http://www.blogger.com/atom/ns#' term='GRID'/><category scheme='http://www.blogger.com/atom/ns#' term='SOA'/><category scheme='http://www.blogger.com/atom/ns#' term='STT TELKOM'/><category scheme='http://www.blogger.com/atom/ns#' term='ORACLE10G'/><title type='text'>G stands for GRID (because im curious with 10G)</title><content type='html'>Grid, the word came from the GRID ELECTRICITY analogy, when we need power electricity to make our tools , server, tv , etc works, we simply connect them to electric outlet without have to know where the electricity came from (without have to know from which generator the electricity came)&lt;br /&gt;&lt;br /&gt;When IT Resources(hardware or software) needs resources like database, CPU or other resources, this IT Resource can easily have it like our tools, tv , etc needs electricity(just plug in to electric outlet). The point is, user who is using GRID, doesnt have to know where the data reside or from which server that process the request, they only have to know the resource they request is available and can be used. Next will be RAC (Real Application Cluster) in my Data Center, user using resources have extra availabilty and performance like load balancing CMIIW)&lt;br /&gt;&lt;br /&gt;And for administrator, they can monitor these small resources likes a single entity that can be simply manage.&lt;br /&gt;&lt;br /&gt;So that IT resource can communicate with other IT Resource, it needs standard, protocol and interface. That why SOA(Service Oriented Architecture) on developing IT became important, because of there so many differents IT resources with different protocol,standard and interface. This make problem for huge organization with huge IT resource with differents architecture to communicate each other and to integrate them. &lt;br /&gt;&lt;br /&gt;The idea writing this posting, because of one Oracle 10G feature, Real Application Cluster(RAC) where in one single physical database consist of from 2 or more Oracle Instances where from that instances can communicate and share data. What makes me interested that these instances can be manage like we manages single database entity.&lt;br /&gt;&lt;br /&gt;GRID in term of computer science defined as " A computational GRID is a hradware and software infrastructure that provide dependable ,consistent,pervasive, and inexpensive access to high-end computational capabilities". That definition from Fosster and Kessellman.&lt;br /&gt;&lt;br /&gt;Yeah next will be all cluster, after hot backup(later i will write about this topic : hot backup and cold backup for Oracle), more performance and more availability.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-6108447807302737021?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/6108447807302737021/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=6108447807302737021' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/6108447807302737021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/6108447807302737021'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/03/g-stands-for-grid-because-im-curious.html' title='G stands for GRID (because im curious with 10G)'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-4446635148486842245</id><published>2009-03-29T23:25:00.001-07:00</published><updated>2009-03-29T23:26:57.625-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Drop tablespace with missing datafile'/><category scheme='http://www.blogger.com/atom/ns#' term='ORA-01110'/><category scheme='http://www.blogger.com/atom/ns#' term='ORA-01157'/><title type='text'>Drop tablespace with missing datafile</title><content type='html'>Today i have my new server installed with oracle 10G and i have to migrate old oracle 8i to this newly machine. I've already succeed mograting from oracle8i to oracle 10G by using export / import utility in oracle (later i will post how to do it in this blog)&lt;br /&gt;&lt;br /&gt;Unfortunately i'm accidentally delete one datafile (not the system datafile) and when i want to shutdown the database i get this error code &lt;br /&gt;&lt;br /&gt;ORA-01157: cannot identify/lock data file 121 - see DBWR trace file&lt;br /&gt;&lt;br /&gt;ORA-01110: data file 121: '/ora_data/ORADATA/USAGE_INDEX23_01.dbf'&lt;br /&gt;&lt;br /&gt;to solve just do this simple step:&lt;br /&gt;&lt;br /&gt;1.Shutdown abort your database to force shutdown&lt;br /&gt;&lt;br /&gt;    sqlplus &gt; shutdown abort&lt;br /&gt;&lt;br /&gt;2.Startup mount database&lt;br /&gt;&lt;br /&gt; sqlplus &gt; startup mount&lt;br /&gt;&lt;br /&gt;3.After that issue this following command&lt;br /&gt;&lt;br /&gt;sqlplus &gt; ALTER DATABASE DATAFILE ‘&lt;datafile name with complete path&gt;’ OFFLINE DROP;&lt;br /&gt;&lt;br /&gt;4.Then open the database&lt;br /&gt;&lt;br /&gt;sqlplus &gt; alter database open&lt;br /&gt;&lt;br /&gt;5.Drop the tablespace by issue this following command&lt;br /&gt;&lt;br /&gt;DROP TABLESPACE &lt;tablespace name&gt; INCLUDING CONTENTS;&lt;br /&gt;&lt;br /&gt;6.After that if you have backup your database you can recover your tablespace.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-4446635148486842245?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/4446635148486842245/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=4446635148486842245' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/4446635148486842245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/4446635148486842245'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/03/drop-tablespace-with-missing-datafile.html' title='Drop tablespace with missing datafile'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-6564434878860079319</id><published>2009-03-29T23:24:00.001-07:00</published><updated>2009-03-29T23:25:22.490-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Remote Linux using Xmanager'/><category scheme='http://www.blogger.com/atom/ns#' term='Remote desktop Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Xmanager'/><title type='text'>Remote desktop your Linux using Xmanager</title><content type='html'>&lt;p&gt;It's really helpful to remote your Linux. For example if your Linux is in Data Center where the place is so  cold  and there is  no 'cozy' place  for  you  to  install  and  configure  something  in your  Linux  that  need X11(Like install Oracle using Oracle Universal Installer).&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To remote your Linux into your workstation you need software to remote your Linux, for now i choose Xmanager (Quite simple but "LICENSED" huh). There is other tool like VNC or XMing(I think i choose XManager because i've use it in my Solaris Box long time ago and always got good connection using it)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So to enable your Linux for remote desktop just follow this simple  instruction :&lt;/p&gt;&lt;br /&gt;&lt;p&gt;1. Open gdm.conf configuration file, usually located in /etc/X11/gdm/gdm.conf or /etc/gdm/custom.conf&lt;/p&gt;&lt;br /&gt;&lt;p&gt;2. Edit gdm.conf file, in section [gdcmp] change enable =  false  to  enable  =  true&lt;/p&gt;&lt;br /&gt;&lt;p&gt;3. Change run level to 5 in file /etc/inittab (example : x:5:once:/etc/X11/prefdm -nodaemon&lt;/p&gt;&lt;br /&gt;&lt;p&gt;4. Restart gdm service by simply run command : gdm-restart&lt;/p&gt;&lt;br /&gt;&lt;p&gt;5. Find your Xmanager source, installed it but not crack it.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;PS : To enable X graphic open your terminal using root and type xhost +&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now let see my Linux Box in my workstation&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-6564434878860079319?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/6564434878860079319/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=6564434878860079319' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/6564434878860079319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/6564434878860079319'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/03/remote-desktop-your-linux-using.html' title='Remote desktop your Linux using Xmanager'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-3444873909946816757</id><published>2009-03-29T23:23:00.001-07:00</published><updated>2009-03-29T23:23:40.671-07:00</updated><title type='text'>Oracle Database Monitoring For Beginner (The Simple Way)</title><content type='html'>Why Monitor Oracle Database&lt;br /&gt;Database need to be monitored to check the performance of the monitored database, so we can change the database parameter based on result from monitoring and keep the database in it's best performance.&lt;br /&gt;&lt;br /&gt;Database monitoring also needed so we always know the condition of database, and know the symptom of our database and we can take action right before more problem happens to database.&lt;br /&gt;&lt;br /&gt;Types of Oracle Database Monitoring&lt;br /&gt;Database Monitoring can be grouped into three types :&lt;br /&gt;&lt;br /&gt;1. Status monitoring&lt;br /&gt;This monitoring type monitors current status of an events and give reports or alert when it exceeds a defined threshold&lt;br /&gt;&lt;br /&gt;Examples of Status Monitoring are, check tablespace where it's about to fills up, check segment near their maximum extents.&lt;br /&gt;&lt;br /&gt;2. Performance monitoring&lt;br /&gt;Monitors oracle instance memory (sga, buffer, etc), sql query running in database, session which consumes a lot of memory, etc.&lt;br /&gt;&lt;br /&gt;Examples of Performance monitoring are, query from v_$sqlarea to check what SQL has been running in our Oracle Machine, query from v$sgastat and query to get hit ratio for cache , library and buffer cache.&lt;br /&gt;&lt;br /&gt;3. Trend Analysis&lt;br /&gt;Collects historical data on specific event that occur in database like SGA status, segment that cannot extends, filled up tablespace and make analysis from that historical data so that we can predict the status of SGA in any given time or we can now when the tablespace will filled up.&lt;br /&gt;&lt;br /&gt;Examples of Trend Analysis are, make a histroy table for events we monitored. We can make history table for tablespace so that from that history table we could gain information and make prediction when will the time the tablespace will be filled up. Or we can make history table from v_$session, so from that table we can know what time our database accessed by so many user.&lt;br /&gt;&lt;br /&gt;Next is the query to monitored database ... soon...&lt;br /&gt;&lt;br /&gt;There are two ways to write error-free programs. Only the third one works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-3444873909946816757?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/3444873909946816757/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=3444873909946816757' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/3444873909946816757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/3444873909946816757'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/03/oracle-database-monitoring-for-beginner.html' title='Oracle Database Monitoring For Beginner (The Simple Way)'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-694029716434322624</id><published>2009-03-29T23:22:00.001-07:00</published><updated>2009-03-29T23:22:53.895-07:00</updated><title type='text'>How to enable telnet in solaris 10</title><content type='html'>&lt;p&gt; To enable telnet in Solaris open and edit file in /etc/default/login and add comment to this line CONSOLE=/dev/console&lt;/p&gt;&lt;br /&gt;&lt;p&gt;#CONSOLE=/dev/console&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The step is :&lt;/p&gt;&lt;br /&gt;&lt;p&gt;-bash-3.00$vi /etc/default/login and then add commen(#) in this line CONSOLE=/dev/console&lt;/p&gt;&lt;br /&gt;&lt;p&gt;That's all and know you can remote your solaris&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-694029716434322624?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/694029716434322624/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=694029716434322624' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/694029716434322624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/694029716434322624'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/03/how-to-enable-telnet-in-solaris-10.html' title='How to enable telnet in solaris 10'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-2603167907464968222</id><published>2009-03-29T23:19:00.000-07:00</published><updated>2009-03-29T23:21:58.546-07:00</updated><title type='text'>The points on installing Oracle in non windows environment</title><content type='html'>&lt;p&gt;The points on installing Oracle in non windows environment is (from my point of view) are :&lt;/p&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Of course you must have the &lt;a href="http://www.oracle.com/technology/software/index.html"&gt;Installer &lt;/a&gt;source and check if the installer is compatible with your UNIX or LINUX version&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Check the packages needed  by  the oracle Installer  to successfully installed in your UNIX  (check the  pkginfo)  and  Linux (check it  use  rpm  command)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Check  your  memory  ( mostly  oracle  required  512  MB)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Check  your  diskspace, including your tmp diskspace and another partition for the oracle.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create your Optimal Flexible Architecture (OFA), it's the oracle file folder  structure&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create DBA and OINSTALL group for installation&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Set environment variable for oracle, including oracle_home,oracle_base, etc.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create user oracle for installation.&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;p&gt;This some useful link for Oracle installation in non windows environment :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://tahiti.oracle.com"&gt;oracle documentation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.oracle-base.com/articles/9i/Oracle9iInstallationOnRedHatAS4AndCentos4.php"&gt;ORACLE-BASE&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-2603167907464968222?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/2603167907464968222/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=2603167907464968222' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/2603167907464968222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/2603167907464968222'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2009/03/points-on-installing-oracle-in-non.html' title='The points on installing Oracle in non windows environment'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-6167567473773732565</id><published>2008-08-12T19:47:00.001-07:00</published><updated>2008-08-12T19:47:40.851-07:00</updated><title type='text'>Web for monitoring Server and DB in DataCenter</title><content type='html'>The idea(actually is developing existing web) for creating Web for monitoring Server and DB in DataCenter is came to me when one of my comrades introduce to me and my other work partners about web for monitoring resource in Data Center like server and database.&lt;br /&gt;We need to have this web beacause we have a lot of server to monitored. And we can do it manually checking it one by one. And also inside those servers we have databases to managed.&lt;br /&gt;Actually we already have application for monitoring performance of the server, but that application only show us response time not the detail of the server.&lt;br /&gt;So in our Web for monitoring Server and DB in DataCenter will be given detail information to us about server and database performance like CPU usage, Memory usage, diskspace check , tablespace check and etc. And we hope our Web for monitoring Server and DB in DataCenter can give us notification wheter it via email or via sms (eg. server send sms when the diskspace is 80% used).&lt;br /&gt;And i have an idea for further development this web will be act like an intelligence web who can not only give us information but also can fix the problem by itself.&lt;br /&gt;So it’s not just only give us information about the condition of the server and database but also can take an action based on that information. It’s just like we plug our standard operation procedure(SOP) into that server and tell the server to do just like in SOP.&lt;br /&gt;&lt;br /&gt;So the point for our Web for monitoring Server and DB in DataCenter will be like this :&lt;br /&gt;1. Give real time usefull information about our server and database condition.&lt;br /&gt;2. Server can take immediate action based on information processsed by server and the standard operating procedure we plug in to that server&lt;br /&gt;&lt;br /&gt;The point look like simple (only 2 points), but i thought that i have to work on it more seriously so my data center will be full automate……(hopefully)&lt;br /&gt;&lt;br /&gt;When dream drives you…….&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-6167567473773732565?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/6167567473773732565/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=6167567473773732565' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/6167567473773732565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/6167567473773732565'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2008/08/web-for-monitoring-server-and-db-in.html' title='Web for monitoring Server and DB in DataCenter'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-8566485527227546330</id><published>2008-08-12T19:45:00.000-07:00</published><updated>2008-08-12T19:46:44.751-07:00</updated><title type='text'>Identity And Access Management</title><content type='html'>Identity and Access management (IdM) memberikan solusi untuk pengaturan identitas di dalam sebuah organisasi yang mencakup lifecycle dari sebuah identitas di dalam sebuah perusahaan yang mencakup authentikasi, authorization, audit dan user administration. Authentikasi merupakan proses verifikasi untuk user bahwa dia adalah user yang sebenarnya (dibuktikan dengan userid dan password yang berbeda untuk setiap user), sedangkan authorization adalah hak - hak apa saja yang didapat oleh seorang user di aplikasi yang dapat diaksesnya (biasanya menggunakan Role Base Access Control). Audit sendiri dapat diakomodasi oleh IdM melalui report seperti who has what report (seorang user dengan nik xxxx memiliki akses ke aplikasi apa saja), user access list (Aplikasi A siapa saja usernya yang valid), rogue account(user - user yang tidak dapat diidentifikasi siapa sebenarnya pemiliknya), audit sendiri untuk berhubungan dengan compliance terhadap regulasi - regulasi yang ada seperti SOA (Sarbanes Oaxley Act) compliance untuk perusahaan2 yang listing di NYSE . User Administration sendiri dapat di fasilitasi IdM melalui self request (user melalui portal meminta akses ke aplikasi ataupun meminta perubahan user role pada aplikasi dan kemudian ada approval workflow yang dapat digunakan sebagai evidence siapa saja yang mengapprove sampai karyawam tersebut mendapatkan akses ke aplikasi yang direquestnya), fasilitas lainnya adalah automatic provisioning ke application (misal sudah didefinisikan user untuk misalnya bagian finance dengan posisi tertentu mendapat hak ke aplikasi A, G, F dengan profile XC untuk App) dan automatic deprovisioning ke application (Jika user pensiun atau keluar dari perusahaan maka secara otomatis system dapat mendisable akses ke aplikasi yang user tersebut miliki semasa dia kerja)&lt;br /&gt;&lt;br /&gt;Identitas merupakan gambaran/deskripsi seseorang. Dalam sebuah organisasi setiap orang memiliki identitas yang menunjukkan seseorang tersebut memiliki posisi apa di sebuah organisasi,berada di bagian apa, sejak kapan dia bergabung di organisasi, informasi tentang data diri, informasi pensiun. Dan di sebuah organisasi yang memanfaatkan IT untuk mendukung pekerjaan karyawannya memiliki sistem terkomputerisasi dimana tidak semua karyawan boleh mengakses sistem tersebut dan level privilege yang berbeda untuk setiap IT Application yang digunakan akan berbeda untuk setiap orang yang berbeda.&lt;br /&gt;&lt;br /&gt;Sebagai contoh mengapa diperlukannya Identity and Access Management adalah sebagai berikut, jika disuatu perusahaan memiliki banyak IT Application dan setiap IT Application memiliki pengelola-pengelola yang berbeda sehingga mekanisme untuk authentication dan authorization akan menjadi berbeda untuk tiap aplikasi, hal ini juga berakibat pada banyaknya user id dan password yang dimiliki oleh setiap pengguna. Maka bagian yang mengatur akses ke banyak aplikasi IT tersebut harus mengatur user apa saja yang dapat mengakses aplikasi tersebut, role apa yang didapatnya didalam aplikasi tersebut, userid policy dan password policy apa yang harus diterapkan untuk setiap aplikasi.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Sebagai contoh seorang karyawan di bagian Technical tentunya hanya memiliki akses dengan sistem yang berhubungan dengan pekerjaannya saja,ataupun jika bisa mengakses sistem lainnya tentunya dengan hak akses yang berbeda.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Pada konsep Identity and Access Management, Identitas menunjukkan user profil dari seorang user dan access menunjukkan hak - hak akses apa saja yang bisa didapat dengan user profil tersebut(tergantung dari business process organisasi).&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Identity and Access Management menawarkan suatu konsep who has what yaitu user dengan profil seperti ini memiliki hak akses ke aplikasi apa saja dan hak - hak apa yang didapatnya diaplikasi tersebut, user profil ini memiliki akses ke aplikasi apa saja dan aplikasi ini memiliki user siapa saja.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Dengan Identity and Access Management jika seorang pensiun dan account orang tersebut di dihapus ataupun didisable maka secara otomatis akses orang tersebut ke aplikasi - aplikasi yang terkait dengan orang tersebut akan didisable juga. Pada kasus admin yang membuat user untuk melakukan kecurangan, dengan IDM setiap user pada aplikasi harus memiliki user profil pada masterdata(misal SAP HR). Sebagai contoh aplikasi A memiliki user A01 dimana A0121PROC merupakan pegawai dengan NIK A0121. Pada admin yang membuat rogue account = user yang tidak memiliki user profil pada master data. Contoh A0123PROC tetapi pada master data tidak terdapat karyawan dengan NIK A0123 maka user A0123PROC pada aplikasi tersebut adalah rogue account dan harus dihapus dari aplikasi. Dengan IDM hal diatas dapat dicegah,ketika admin membuat rogue account maka IDM akan memeriksa apakah user yang dibuat admin tersebut benar2 ada di organisasi, jika tidak ada maka IDM akan mendeletenya.&lt;br /&gt;&lt;br /&gt;Jadi dengan IDM aplikasi IT yang ada di organisasi dapat dengan mudah di audit, dimana IDM dapat menyediakan report seperti user dengan NIK A0121 memiliki akses ke aplikasi apa saja,kemudian aplikasi misal BIL01 memiliki user siapa saja dan adakah rogue account di aplikasi tersebut. Dan dapat juga memunculkan evidence siapa saja yang melakukan approval sampai seorang karyawan mendapatkan akses ke aplikasi yang direquestnya&lt;br /&gt;&lt;br /&gt;Selanjutnya di IDM. What we must prepare to successfully implemented IDM, How we get the trusted source, how we identify rogue account and how we reconcile user id from trusted source to application(user access report) and how to provision employee and deprovision employee user from application, Role Base Access Control, Single Sign On for web and non web application,Policy for Identity Management.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Sorry guys kalo ada salah - salah penulisan …. Just want to share my knowledge……&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-8566485527227546330?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/8566485527227546330/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=8566485527227546330' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/8566485527227546330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/8566485527227546330'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2008/08/identity-and-access-management.html' title='Identity And Access Management'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-5514532058118896509</id><published>2008-08-12T19:44:00.001-07:00</published><updated>2008-08-12T19:45:34.502-07:00</updated><title type='text'>How to enable telnet in solaris 10</title><content type='html'>To enable telnet in Solaris open and edit file in /etc/default/login and add comment to this line CONSOLE=/dev/console&lt;br /&gt;&lt;br /&gt;#CONSOLE=/dev/console&lt;br /&gt;&lt;br /&gt;The step is :&lt;br /&gt;&lt;br /&gt;-bash-3.00$vi /etc/default/login and then add commen(#) in this line CONSOLE=/dev/console&lt;br /&gt;&lt;br /&gt;That’s all and know you can remote your solaris&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-5514532058118896509?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/5514532058118896509/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=5514532058118896509' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/5514532058118896509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/5514532058118896509'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2008/08/how-to-enable-telnet-in-solaris-10.html' title='How to enable telnet in solaris 10'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-2734214813578235564</id><published>2008-08-12T19:43:00.001-07:00</published><updated>2008-08-12T19:43:42.540-07:00</updated><title type='text'>Apache on Solaris 10</title><content type='html'>Solaris 10 already have Apache in it, in order to use it you just need to start the service. The step to start the Apache server are :&lt;br /&gt;1. Go to /usr/apache/bin : #cd /usr/apache/bin&lt;br /&gt;2. To start the service : #./apachectl start&lt;br /&gt;You will get error message if you don’t have httpd.conf located in /etc/apache/&lt;br /&gt;To create htttpd.conf just copy httpd.conf-example located in /etc/apache/ :&lt;br /&gt;#cp /etc/apache/httpd.conf-example /etc/apache/httpd.conf&lt;br /&gt;After that try again run command #./apachectl start&lt;br /&gt;If it success than in your solaris will show message ./apachectl start: httpd started&lt;br /&gt;3.After that you can try your Apache server using your browser and type : http://yourIPserver/&lt;br /&gt;&lt;br /&gt;That’s all&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-2734214813578235564?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/2734214813578235564/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=2734214813578235564' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/2734214813578235564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/2734214813578235564'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2008/08/apache-on-solaris-10.html' title='Apache on Solaris 10'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2391083836582252608.post-1209002983463197020</id><published>2008-08-12T19:35:00.000-07:00</published><updated>2008-08-12T19:40:15.802-07:00</updated><title type='text'>Remote desktop your Linux using Xmanager</title><content type='html'>It's really helpful to remote your Linux. For example if your Linux is in Data Center where the place is so  cold  and there is  no 'cozy' place  for  you  to  install  and  configure  something  in your  Linux  that  need X11(Like install Oracle using Oracle Universal Installer).&lt;br /&gt;&lt;br /&gt;To remote your Linux into your workstation you need software to remote your Linux, for now i choose Xmanager (Quite simple but "LICENSED" huh). There is other tool like VNC or XMing(I think i choose XManager because i've use it in my Solaris Box long time ago and always got good connection using it)&lt;br /&gt;&lt;br /&gt;So to enable your Linux for remote desktop just follow this simple  instruction :&lt;br /&gt;&lt;br /&gt;1. Open gdm.conf configuration file, usually located in /etc/X11/gdm/gdm.conf or /etc/gdm/custom.conf&lt;br /&gt;&lt;br /&gt;2. Edit gdm.conf file, in section [gdcmp] change enable =  false  to  enable  =  true&lt;br /&gt;&lt;br /&gt;3. Change run level to 5 in file /etc/inittab (example : x:5:once:/etc/X11/prefdm -nodaemon&lt;br /&gt;&lt;br /&gt;4. Restart gdm service by simply run command : gdm-restart&lt;br /&gt;&lt;br /&gt;5. Find your Xmanager source, installed it but not crack it.&lt;br /&gt;&lt;br /&gt;PS : To enable X graphic open your terminal using root and type xhost +&lt;br /&gt;&lt;br /&gt;Now let see my Linux Box in my workstation&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2391083836582252608-1209002983463197020?l=andzsr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andzsr.blogspot.com/feeds/1209002983463197020/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2391083836582252608&amp;postID=1209002983463197020' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/1209002983463197020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2391083836582252608/posts/default/1209002983463197020'/><link rel='alternate' type='text/html' href='http://andzsr.blogspot.com/2008/08/remote-desktop-your-linux-using.html' title='Remote desktop your Linux using Xmanager'/><author><name>Andhi Rahman AndZs</name><uri>http://www.blogger.com/profile/03062505748072458524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
