<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-2310788557656096376</atom:id><lastBuildDate>Sat, 17 Oct 2009 10:40:55 +0000</lastBuildDate><title>Oracle AppsDBAs World</title><description></description><link>http://appsdbasworld.blogspot.com/</link><managingEditor>leesenshan@gmail.com (Senthil Kumaran)</managingEditor><generator>Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-6984639957301139470</guid><pubDate>Fri, 08 Aug 2008 17:18:00 +0000</pubDate><atom:updated>2008-08-08T10:25:26.962-07:00</atom:updated><title>web cache cloning</title><description>WEBCACHE CLONING     &lt;br /&gt;===================&lt;br /&gt;&lt;br /&gt;SOURCE SERVER      (192.9.200.251)&lt;br /&gt;DESTINATION SERVER (192.9.200.227)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Create groups and users using the following commands&lt;br /&gt;&lt;br /&gt;#groupadd dba&lt;br /&gt;&lt;br /&gt;#groupadd oinstall&lt;br /&gt;&lt;br /&gt;#useradd -g oinstall -G dba oraweb&lt;br /&gt;&lt;br /&gt;id must be same in source and destination&lt;br /&gt;(uid=500(oraweb) gid=500(oinstall) groups=500(oinstall),501(dba) context=user_u:system_r:unconfined_t)&lt;br /&gt;&lt;br /&gt;Change the permisson&lt;br /&gt;&lt;br /&gt;chmod 777 /u01&lt;br /&gt;&lt;br /&gt;copy datas from source to destination through &lt;oraweb&gt;&lt;br /&gt;scp -r oracle  oraweb@192.9.200.227:/u01&lt;br /&gt;&lt;br /&gt;after copying &lt;br /&gt;set the environment in .bashprofile&lt;br /&gt;&lt;br /&gt;su - oraweb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;vi .bash_profile&lt;br /&gt;export ORACLE_HOME=/u01/oracle/10.1.2/OraHome_1&lt;br /&gt;export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;change hostname(if its required only)&lt;br /&gt;vi /etc/sysconfig/network&lt;br /&gt;&lt;br /&gt;put hostentry&lt;br /&gt;vi /etc/hosts&lt;br /&gt;&lt;br /&gt;change ip&lt;br /&gt;netconfig&lt;br /&gt;&lt;br /&gt;start emctl start iasconsole&lt;br /&gt;Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.2  &lt;br /&gt;Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.&lt;br /&gt;http://csd.oneapps.com:1156/emd/console/aboutApplication &lt;br /&gt;Oracle Enterprise Manager 10g Application Server Control is running.&lt;br /&gt;&lt;br /&gt;start opmnctl startall&lt;br /&gt;starting opmnctl got error&lt;br /&gt;&lt;br /&gt;log file=cat /u01/oracle/10.1.2/OraHome_1/webcache/logs/event_log&lt;br /&gt;&lt;br /&gt;error: couldnot increase the numberof file/socket descriptors to 1100&lt;br /&gt;======&lt;br /&gt;       check $ORACLE_HOME/webcache/webcache.xml&lt;br /&gt;&lt;br /&gt; MULTIPORT&gt;&lt;br /&gt;    &lt;LISTEN IPADDR="ANY" PORT="1100" PORTTYPE="NORM"/&gt;   ==========&lt;br /&gt;    &lt;LISTEN IPADDR="ANY" PORT="4000" PORTTYPE="ADMINISTRATION"/&gt;&lt;br /&gt;    &lt;LISTEN IPADDR="ANY" PORT="4003" PORTTYPE="INVALIDATION"/&gt;&lt;br /&gt;    &lt;LISTEN IPADDR="ANY" PORT="4002" PORTTYPE="STATISTICS"/&gt;&lt;br /&gt;  &lt;/MULTIPORT&gt;&lt;br /&gt;&lt;br /&gt;solution steps&lt;br /&gt;=================&lt;br /&gt;(Port numbers less than 1024 are reserved for use by privileged processes on UNIX. &lt;br /&gt;If you want to configure OracleAS Web Cache to listen on a port less than 1024, such as on port 80, then the webcached executable must run as the root user)&lt;br /&gt;&lt;br /&gt;set oraclehome&lt;br /&gt;&lt;br /&gt;export ORACLE_HOME=/u01/oracle/10.1.2/OraHome_1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;solution: from root user execute ./webcache_setuser.sh setidentity 500&lt;br /&gt;=========&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-6984639957301139470?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/web-cache-cloning.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-3510659329126501133</guid><pubDate>Wed, 06 Aug 2008 17:44:00 +0000</pubDate><atom:updated>2008-08-06T10:47:10.418-07:00</atom:updated><title>Create A Production (Full or Partial) Duplicate On The Same Host</title><description>Reference:&lt;br /&gt;-------------&lt;br /&gt;Primary DB : ORCL&lt;br /&gt;Clone DB     :  AUX&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Production Database should be archive enabled.&lt;br /&gt;&lt;br /&gt;Startup mount;&lt;br /&gt;alter database archivelog;&lt;br /&gt;alter database open;&lt;br /&gt;archive log list;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Recovery catalog for RMAN &lt;br /&gt;&lt;br /&gt;Creating the Recovery Catalog Owner &lt;br /&gt;Start by creating a database schema (usually called rman). Assign an appropriate tablespace to it and grant it the recovery_catalog_owner role. Look at this example:&lt;br /&gt;&lt;br /&gt;% sqlplus '/ as sysdba'&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE USER rman IDENTIFIED BY rman&lt;br /&gt;     DEFAULT TABLESPACE tools  &lt;br /&gt;     TEMPORARY TABLESPACE temp&lt;br /&gt;     QUOTA UNLIMITED ON tools; &lt;br /&gt;&lt;br /&gt;SQL&gt; GRANT CONNECT, RECOVERY_CATALOG_OWNER TO rman;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating the Recovery Catalog &lt;br /&gt;&lt;br /&gt;% rman catalog rman/rman@ORCL&lt;br /&gt;&lt;br /&gt;RMAN&gt; CREATE CATALOG; &lt;br /&gt;&lt;br /&gt;Registering the target database&lt;br /&gt;&lt;br /&gt;% rman TARGET / CATALOG rman/rman@ORCL&lt;br /&gt;&lt;br /&gt;RMAN&gt; REGISTER DATABASE; &lt;br /&gt;&lt;br /&gt;Reference : Note:452529.1 &lt;br /&gt;Reference : RMAN: How to Query the RMAN Recovery Catalog ( Note:98342.1 )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example Source Listener.ora&lt;br /&gt;&lt;br /&gt;SID_LIST_LISTENER =&lt;br /&gt;  (SID_LIST =&lt;br /&gt;    (SID_DESC =&lt;br /&gt;      (SID_NAME = PLSExtProc)&lt;br /&gt;      (ORACLE_HOME = /newpart//product/10.2.0/)&lt;br /&gt;      (PROGRAM = extproc)&lt;br /&gt;    )&lt;br /&gt;    (SID_DESC =&lt;br /&gt;      (GLOBAL_DBNAME = ORCL)&lt;br /&gt;      (ORACLE_HOME = /newpart//product/10.2.0)&lt;br /&gt;      (SID_NAME = ORCL)&lt;br /&gt;    )&lt;br /&gt;    (SID_DESC =&lt;br /&gt;      (GLOBAL_DBNAME = AUX)&lt;br /&gt;      (ORACLE_HOME = /newpart//product/10.2.0)&lt;br /&gt;      (SID_NAME = AUX)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;LISTENER =&lt;br /&gt;  (DESCRIPTION_LIST =&lt;br /&gt;    (DESCRIPTION =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (DESCRIPTION =&lt;br /&gt;      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example Source tnsnames.ora&lt;br /&gt;&lt;br /&gt;AUX =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SERVICE_NAME = AUX)(UR=A)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;ORCL =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SERVICE_NAME = ORCL)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;EXTPROC_CONNECTION_DATA =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SID = PLSExtProc)&lt;br /&gt;      (PRESENTATION = RO)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note : Make use of netca and netmgr to configure listener and tnsnames&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Find Production Database Files:&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$datafile;&lt;br /&gt;Create the Auxiliary Database directories needed&lt;br /&gt;cd $ORACLE_HOME/dbs&lt;br /&gt;create parameter file initAUX.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;db_file_name_convert = ('/old/path1', '/new/path1',&lt;br /&gt;                                          '/old/path2', '/new/path2',&lt;br /&gt;                                          '/old/path3', '/new/path3')&lt;br /&gt;&lt;br /&gt;log_file_name_convert = ('/old/path1', '/new/path1',&lt;br /&gt;                                          '/old/path2', '/new/path2',&lt;br /&gt;                                          '/old/path3', '/new/path3')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;eg:-&lt;br /&gt;&lt;br /&gt;db_name = aux&lt;br /&gt;db_block_size = 8192&lt;br /&gt;compatible = 10.2.0.1.0&lt;br /&gt;remote_login_passwordfile = exclusive&lt;br /&gt;control_files = ('/newpart&lt;br /&gt;SQL&gt; startup nomount pfile=$ORACLE_HOME/dbs/initAUX.ora&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Start the Duplication&lt;br /&gt;ORACLE_SID=AUX; export ORACLE_SID # ksh&lt;br /&gt;sqlplus /nolog&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt;     Connected to an idle instance&lt;br /&gt;SQL&gt; startup nomount pfile=$ORACLE_HOME/dbs/initAUX.ora&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Set your SID back to the TARGET for duplication. &lt;br /&gt;&lt;br /&gt;&gt; rman trace.log&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production&lt;br /&gt;Copyright (c)  Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;RMAN&gt; connect target&lt;br /&gt;connected to target database: V10GREL4 (DBID=2510891965)&lt;br /&gt;&lt;br /&gt;RMAN&gt;backup database;&lt;br /&gt;&lt;br /&gt;RMAN&gt;sql 'alter system switch logfile';&lt;br /&gt;&lt;br /&gt;RMAN&gt; connect auxiliary sys/pwd@AUX&lt;br /&gt;connected to auxiliary database: AUX (not mounted)&lt;br /&gt;&lt;br /&gt;RMAN&gt; duplicate target database to AUX device type disk;&lt;br /&gt;Once this is done, login to duplicate database with alter database open resetlogs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-3510659329126501133?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/create-production-full-or-partial.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-5278268271251441455</guid><pubDate>Wed, 06 Aug 2008 17:32:00 +0000</pubDate><atom:updated>2008-08-06T10:34:03.559-07:00</atom:updated><title>Creating a Duplicate Database on a New Host Using RMAN</title><description>For reference:&lt;br /&gt;----------------&lt;br /&gt;&lt;br /&gt;Primary Database SID:       ORCL&lt;br /&gt;Duplicate Database SID:    AUX&lt;br /&gt;RMAN Catalog SID:          RMAN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;     Backup of the primary database.&lt;br /&gt;&lt;br /&gt;     Host A (Target)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# export ORACLE_SID=ORCL&lt;br /&gt;&lt;br /&gt;# rman target=/ catalog=rman/rman@ORCL&lt;br /&gt;&lt;br /&gt;RMAN&gt; run {&lt;br /&gt;allocate channel d1 type disk;&lt;br /&gt;backup format '/backups/PROD/df_t%t_s%s_p%p' database;&lt;br /&gt;sql 'alter system archive log current';&lt;br /&gt;backup format '/backups/PROD/al_t%t_s%s_p%p' archivelog all;&lt;br /&gt;release channel d1;&lt;br /&gt;}&lt;br /&gt;This command will perform a full database backup including archivelogs and the current controlfile.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Host B (Aux)&lt;br /&gt;&lt;br /&gt;    Making the backup available for the duplicate process.&lt;br /&gt;&lt;br /&gt;If your backup resides on disk you will need to copy this back up from host A to host B. Ensure you place it in the same directory as where it was created. &lt;br /&gt;RMAN&gt; list backup;&lt;br /&gt;&lt;br /&gt;Create same directory of host b and give appropriate permissions for the oracle user&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Create the pfile [initAUX.ora] parameter file in the $ORACLE_HOME/dbs directory for the auxiliary database. &lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;db_name = aux&lt;br /&gt;db_block_size = 8192&lt;br /&gt;compatible = 10.2.0.1.0&lt;br /&gt;remote_login_passwordfile = exclusive&lt;br /&gt;control_files = ('/d02/oradata/aux/control01.ctl')&lt;br /&gt;db_file_name_convert = ('/newpart/oradata/orcl',&lt;br /&gt;                        '/d02/oradata/aux')&lt;br /&gt;log_file_name_convert = ('/newpart/oradata/orcl',&lt;br /&gt;                         '/d02/oradata/aux')&lt;br /&gt;*.undo_management='AUTO'&lt;br /&gt;*.undo_tablespace='UNDOTBS1'&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;   Following the creation of the initAUX.ora startup nomount the auxiliary instance.&lt;br /&gt;export ORACLE_SID=AUX&lt;br /&gt;&lt;br /&gt;sqlplus '/as sysdba'&lt;br /&gt;&lt;br /&gt;startup nomount;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Ensuring SQL*NET connections to primary database and RMAN catalog are  working.&lt;br /&gt;&lt;br /&gt;  Host B(AUX)&lt;br /&gt;&lt;br /&gt; sqlplus ‘sys/oracle@PROD as sysdba’&lt;br /&gt;&lt;br /&gt; sqlplus rman/rman@PROD   (not mandatory)&lt;br /&gt;Add tnsnames.ora entry – Eg:&lt;br /&gt;ORCL =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SERVICE_NAME = ORCL)&lt;br /&gt;    )&lt;br /&gt;  ) &lt;br /&gt;Prepare RMAN duplicate script.&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;allocate auxiliary channel C1 device type disk;&lt;br /&gt;duplicate target database to AUX;&lt;br /&gt;}&lt;br /&gt;Save it as dup.sql&lt;br /&gt;    &lt;br /&gt;Execute the RMAN script&lt;br /&gt;&lt;br /&gt;Start RMAN, connect to the production target, the catalog instance and also the auxiliary clone. Run the RMAN duplicate script as shown below. Before doing this ensure that the Oracle SID environment variable is set to the duplicate clone database.&lt;br /&gt;# export ORACLE_SID=AUX&lt;br /&gt;&lt;br /&gt;# rman target sys/pwd@ORCL catalog rman/rman@ORCL auxiliary /&lt;br /&gt;&lt;br /&gt;RMAN&gt; @dup.sql&lt;br /&gt;After this, login to aux database and alter database open with resetlogs option.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-5278268271251441455?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/creating-duplicate-database-on-new-host.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-2521873613761652622</guid><pubDate>Wed, 06 Aug 2008 17:24:00 +0000</pubDate><atom:updated>2008-08-06T10:25:54.026-07:00</atom:updated><title>Database Cloning</title><description>Database Cloning&lt;br /&gt;--------------------&lt;br /&gt;&lt;br /&gt;1. Ensure that your database is recoverable back to original location and state by backing it up before executing this procedure:&lt;br /&gt;&lt;br /&gt;Database in NON-ARCHIVE LOG MODE - take an off-line database backup.&lt;br /&gt;Database in ARCHIVELOG MODE - take an on-line or off-line database backup.&lt;br /&gt;&lt;br /&gt;2.  Connect to sql*plus as the user  ‘SYS AS SYSDBA’ and ensure that all users have logged off the system by executing the following command.&lt;br /&gt;&lt;br /&gt; SQL&gt; connect / as sysdba&lt;br /&gt; Connected.&lt;br /&gt; SQL&gt; select username from v$session;&lt;br /&gt; SQL&gt; select username from v$session;&lt;br /&gt;USERNAME&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SYS&lt;br /&gt;8 rows selected.&lt;br /&gt;SQL&gt;&lt;br /&gt;&lt;br /&gt;You should see several fields returning with no username (these are internal oracle logins and the will not affect your operations) and one SYS login (this is you).&lt;br /&gt;&lt;br /&gt;3.  Place the system in restricted mode:&lt;br /&gt;&lt;br /&gt; SQL&gt; alter system enable restricted session;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;4. Connect as SYS with SYSDBA privileges and execute the following SQL command:&lt;br /&gt;&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt; Connected.&lt;br /&gt;    SQL&gt; alter database backup controlfile to trace;&lt;br /&gt; SQL&gt; &lt;br /&gt;&lt;br /&gt;The [alter database backup controlfile to trace;] command will generate a SQL script that can be used to regenerate the database. &lt;br /&gt;&lt;br /&gt;5.  Execute the sql*plus command show parameter &lt;parameter_name&gt; to find your user dump directory.&lt;br /&gt;&lt;br /&gt;SQL&gt; show parameter user_dump_dest&lt;br /&gt;NAME                        TYPE        VALUE&lt;br /&gt;-------------------------- ----------- ------------------------------&lt;br /&gt;user_dump_dest          string      /opt/app/oracle/product/admin/orcl/udump&lt;br /&gt;&lt;br /&gt;6.  Exit to the OS layer and move to the user_dump_dest directory.  Trace file names are generated by oracle in the following format [instance_name]+[oracle generated number].trc, so use the timestamp to locate the last trace file generated.  Open the file in a text editor and remove everything above the ‘STARTUP NOMOUNT ..' statement. Alter the  ‘CREATE CONTROLFILE’ statement for the following uses:&lt;br /&gt;&lt;br /&gt;Rename DB in Archivelog mode:&lt;br /&gt;         CREATE CONTROLFILE SET DATABASE "new_db_name" RESETLOGS&lt;br /&gt;         ARCHIVELOG&lt;br /&gt;&lt;br /&gt;Rename DB in Non-Archivelog mode:&lt;br /&gt; CREATE CONTROLFILE SET DATABASE "new_db_name" NORESETLOGS&lt;br /&gt;         NOARCHIVELOG&lt;br /&gt;&lt;br /&gt;Reuse DB name in Archivelog mode:&lt;br /&gt;CREATE CONTROLFILE REUSE DATABASE "db_name"  RESETLOGS  ARCHIVELOG&lt;br /&gt;&lt;br /&gt;Reuse DB name in Non-Archivelog mode:&lt;br /&gt; CREATE CONTROLFILE REUSE DATABASE "db_name"  NORESETLOGS&lt;br /&gt;         NOARCHIVELOG&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7.  Edit the rest of this file to reference the correct locations of you log files, datafiles and temp files.&lt;br /&gt;&lt;br /&gt;8.  Move the trace file to an appropriate location and name to recreate_db.sql.&lt;br /&gt;&lt;br /&gt;9.  Connect as SYS with SYSDBA privileges and shutdown the database in immediate mode:&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt; Connected.&lt;br /&gt;    SQL&gt; shutdown immediate&lt;br /&gt;&lt;br /&gt;10. Move the following files to there corresponding locations in updated recreate_db.sql file.&lt;br /&gt; DATAFILES&lt;br /&gt; Log files&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;11. Restore or copy the backup and the archived logs (if any) to the new machine.&lt;br /&gt;&lt;br /&gt;12. Move your INIT$ORACLE_SID.ORA file to its new location. Ensure your controlfile and archive destinations in INIT are set properly to the new locations.&lt;br /&gt;&lt;br /&gt;13. Connect to SQLPLUS on your new machine as SYS AS SYSDBA and run create_db.sql script as follows:&lt;br /&gt;&lt;br /&gt;SQL&gt; @[directory_location]/create_db.sql&lt;br /&gt;&lt;br /&gt;14.  Change the global database name if you renamed your database as follows:&lt;br /&gt;&lt;br /&gt;     SQL&gt; ALTER DATABASE RENAME GLOBAL_NAME = new_db_name;&lt;br /&gt;&lt;br /&gt;15.  Perform full system backup and store in a safe location.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-2521873613761652622?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/database-cloning.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-1885929427052482648</guid><pubDate>Wed, 06 Aug 2008 16:49:00 +0000</pubDate><atom:updated>2008-08-06T10:12:40.139-07:00</atom:updated><title>11g top new features</title><description>Oracle Database 11g  Top New Features &lt;br /&gt;===============================&lt;br /&gt;&lt;br /&gt;1) Automatic Diagnostic Repository  [ADR]&lt;br /&gt;&lt;br /&gt;2) Database Replay&lt;br /&gt;&lt;br /&gt;3) Automatic Memory Tuning&lt;br /&gt;&lt;br /&gt;4) Case sensitive password&lt;br /&gt;&lt;br /&gt;5) Virtual columns and indexes&lt;br /&gt;&lt;br /&gt;6) Interval Partition and System Partition&lt;br /&gt;&lt;br /&gt;7) The Result Cache&lt;br /&gt;&lt;br /&gt;8) ADDM RAC Enhancements&lt;br /&gt;&lt;br /&gt;9) SQL Plan Management and SQL Plan Baselines&lt;br /&gt;&lt;br /&gt;10) SQL Access Advisor &amp; Partition Advisor&lt;br /&gt;&lt;br /&gt;11) SQL Query Repair Advisor&lt;br /&gt;&lt;br /&gt;12) SQL Performance Analyzer (SPA) New&lt;br /&gt;&lt;br /&gt;13) DBMS_STATS Enhancements&lt;br /&gt;&lt;br /&gt;14) The Result Cache&lt;br /&gt;&lt;br /&gt;15) Total Recall (Flashback Data Archive)&lt;br /&gt;&lt;br /&gt;Note: The above are only top new features, there are other features as well introduced in 11g which will be included subsequently&lt;br /&gt;&lt;br /&gt;Oracle 11g Database DBA New Features  with brief explanation&lt;br /&gt;==========================================&lt;br /&gt;&lt;br /&gt;# Database Capture/replay database workloads :&lt;br /&gt;   This allows the total database workload to be captured, transferred to a test database&lt;br /&gt;   create from a backup or standby database, then replayed to test the affects of an upgrade or&lt;br /&gt;   system change. Currently, these are working to a capture performance overhead of 5%,&lt;br /&gt;   so this will capture real production workloads&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Automatic Memory Tuning:&lt;br /&gt;&lt;br /&gt;   Automatic PGA tuning was introduced in Oracle 9i. Automatic SGA tuning was already&lt;br /&gt;   introduced in  Oracle 10g.  But In 11g, all memory can be tuned automatically by setting one&lt;br /&gt;   parameter.  We can literally tell Oracle how much memory it has and it determines how &lt;br /&gt;   much  to use for PGA, SGA and OS Processes. Maximum and minimum thresholds can be set&lt;br /&gt;&lt;br /&gt;# Interval partitioning for tables :&lt;br /&gt;&lt;br /&gt;   Interval partitions are extensions to range partitioning. These provide automation for &lt;br /&gt;   equi-sized range partitions. Partitions are created as metadata and only the start partition is&lt;br /&gt;   made persistent. The additional segments are allocated as the data arrives. The additional&lt;br /&gt;   partitions and local indexes are automatically created.&lt;br /&gt;&lt;br /&gt;# Feature Based Patching:&lt;br /&gt;&lt;br /&gt;    All one-off patches will be classified as to which feature they affect. This allows you to easily&lt;br /&gt;    identify which patches are necessary for the features you are using. EM will allow you to&lt;br /&gt;    subscribe to a feature based patching service, so EM automatically scans for available&lt;br /&gt;    patches for the features you are using  &lt;br /&gt;&lt;br /&gt;# RMAN UNDO bypass :&lt;br /&gt;&lt;br /&gt;    Rman backup can bypass undo. Undo tablespaces are getting huge, but contain lots of&lt;br /&gt;    useless information. Now rman can bypass those types of tablespace. Great for exporting a&lt;br /&gt;    tablespace from backup.&lt;br /&gt;&lt;br /&gt;# Virtual columns/indexes :&lt;br /&gt;&lt;br /&gt;    User can create Virtual index on table. This Virtual index is not visible to optimizer, so it will&lt;br /&gt;    not affect performance, Developer can user HINT and see is Index is useful or not.Invisible&lt;br /&gt;    Indexesprevent premature use of newly created indexes&lt;br /&gt;&lt;br /&gt;# New default audit settings :&lt;br /&gt;&lt;br /&gt;    Oracle database where general database auditing was "off" by default, logging is intended&lt;br /&gt;    to be enabled by default with the Oracle Database 11g beta secure configuration. Notable&lt;br /&gt;    performance improvements are planned to be introduced to reduce the performance&lt;br /&gt;    degradation typically associated with auditing.&lt;br /&gt;&lt;br /&gt;# Case sensitive password :&lt;br /&gt;&lt;br /&gt;    Passwords are expected to also become case sensitive This and other changes should result&lt;br /&gt;    in better protection against  password guessing scenarios. For&lt;br /&gt;    example, in addition to limiting the number of failed login attempts to 10 (default&lt;br /&gt;    configuration in 10gR2), Oracle 11g beta’s planned default settings should expire&lt;br /&gt;    passwords every 180 days, and limit to seven the number of times a user can login with an&lt;br /&gt;    expired password before disabling access.&lt;br /&gt;&lt;br /&gt;# Faster DML triggers : Create a disabled trigger; specify trigger firing order&lt;br /&gt;&lt;br /&gt;# Fine grained access control for Utl_TCP:&lt;br /&gt;&lt;br /&gt;   in 10g all port are available, now it is controlled.&lt;br /&gt;&lt;br /&gt;# Data Guard supports "Flashback Standby"&lt;br /&gt;&lt;br /&gt;# New Trigger features&lt;br /&gt;&lt;br /&gt;# Partitioning by logical object and automated partition creation.&lt;br /&gt;&lt;br /&gt;# LOB's - New high-performance LOB features.&lt;br /&gt;&lt;br /&gt;# New Oracle11g Advisors&lt;br /&gt;&lt;br /&gt;# Enhanced Read only tables&lt;br /&gt;&lt;br /&gt;# Table trigger firing order&lt;br /&gt;&lt;br /&gt;# Enhanced Index rebuild online : - Online index build with NO pause to DML.&lt;br /&gt;&lt;br /&gt;# No recompilation of dependent objects:- When&lt;br /&gt;&lt;br /&gt;    A) Columns added to tables&lt;br /&gt;    B) Procedures added to packages&lt;br /&gt;&lt;br /&gt;# Improved optimizer statistics collection speed&lt;br /&gt;&lt;br /&gt;# Online index build with NO pause to DML&lt;br /&gt;&lt;br /&gt;# Read only table :-&lt;br /&gt;&lt;br /&gt;    alter table t read only&lt;br /&gt;&lt;br /&gt;    alter table t read write&lt;br /&gt;&lt;br /&gt;Oracle 11g Database SQL/PL-SQL New Features&lt;br /&gt;----------------------------------------------&lt;br /&gt;&lt;br /&gt;Fine Grained Dependency Tracking:&lt;br /&gt;&lt;br /&gt;   In 11g we track dependencies at the level of element within unit. so  that these changes have&lt;br /&gt;   no consequence&lt;br /&gt;&lt;br /&gt;    • Transparent performance improvement&lt;br /&gt;    •Unnecessary recompilation certainly consumes CPU&lt;br /&gt;&lt;br /&gt;    create table t(a number)&lt;br /&gt;&lt;br /&gt;    create view v as select a from t&lt;br /&gt;&lt;br /&gt;    alter table t add(Unheard_Of number)&lt;br /&gt;&lt;br /&gt;    select status from User_Objectswhere Object_Name = 'V'&lt;br /&gt;    - -----&lt;br /&gt;    VALID&lt;br /&gt;&lt;br /&gt;    No recompilation of dependent objects when Columns added to tables OR Procedures&lt;br /&gt;    added to packages&lt;br /&gt;&lt;br /&gt;&gt; Named and Mixed Notation from SQL:&lt;br /&gt;&lt;br /&gt;    select fun(P4=&gt;10) from DUAL&lt;br /&gt;&lt;br /&gt;    In 10g not possible to call function in select statment by passing 4th parameter,&lt;br /&gt;    but in 11g it is possible&lt;br /&gt;&lt;br /&gt;&gt; PL/SQL "continue" keyword - It is same as we read in c/c++ loop&lt;br /&gt;&lt;br /&gt;&gt; Support for “super”: It is same "super" in Java.&lt;br /&gt;&lt;br /&gt;&gt; Powerfull Regular Expression:&lt;br /&gt;&lt;br /&gt;   Now we can access data between TAGS like data between  tags &lt;BOOK&gt; .........&lt;/BOOK&gt;&lt;br /&gt;&lt;br /&gt;  The new built-in REGEXP_COUNT returns the number of times the pattern is matched in the&lt;br /&gt;   input string.&lt;br /&gt;&lt;br /&gt;&gt; New table Data Type "simple_integer"&lt;br /&gt;&lt;br /&gt;&gt; SQL Performance Analyzer(SPA) :&lt;br /&gt;&lt;br /&gt;   It is same as Database replay except it not capture all transaction.The SQL Performance&lt;br /&gt;   Analyzer (SPA) leverages existing Oracle Database 10g SQL tuning components. The SPA&lt;br /&gt;   provides the ability to capture a specific SQL workload in a SQL Tuning Set, take a&lt;br /&gt;   performance baseline before a major database or system change, make the desired change&lt;br /&gt;   to the system, and then replay the SQL workload against the modified database or&lt;br /&gt;   configuration. The before and after performance of the SQL workload can then be compared&lt;br /&gt;   with just a few clicks of the mouse. The DBA only needs to isolate any SQL statements that&lt;br /&gt;   are now performing poorly and tune them via the SQL Tuning Advisor&lt;br /&gt;&lt;br /&gt;&gt; Caching The Results with /*+ result_cache */ :&lt;br /&gt;&lt;br /&gt;   select /*+ result_cache */ * from my_table, New for Oracle 11g, the result_cache hint caches&lt;br /&gt;   the result set of a select statement. This is similar to alter table table_name cache,but as you&lt;br /&gt;   can adding predicates makes /*+ result_cache */ considerably more powerful by caching a&lt;br /&gt;   subset of larger tables and common queries.&lt;br /&gt;&lt;br /&gt;    select /*+ result_cache */ col1, col2, col3 from my_table where colA = :B1&lt;br /&gt;&lt;br /&gt;&gt; The compound trigger :&lt;br /&gt;&lt;br /&gt;    A compound trigger lets you implement actions for each of the  table DML timing points in a&lt;br /&gt;    single trigger&lt;br /&gt;&lt;br /&gt;&gt; PL/SQL unit source can exceeds 32k characters&lt;br /&gt;&lt;br /&gt;&gt; Easier to execute table DDL operations online:&lt;br /&gt;&lt;br /&gt;   Option to wait for active DML operations  instead of aborting&lt;br /&gt;&lt;br /&gt;&gt; Fast add column with default value:&lt;br /&gt;&lt;br /&gt;   Does not need to updateall rows to default value.&lt;br /&gt;&lt;br /&gt;Oracle 11g Database Backup &amp; Recovery New Features&lt;br /&gt;------------------------------------------------&lt;br /&gt;&lt;br /&gt;* Enhanced configuration of archive deletion policies Archive can be deleted ,    if it is not&lt;br /&gt;   need DG , Streams Flashback etc  When you CONFIGURE an archived log deletion policy&lt;br /&gt;   applies to all archiving destinations,   including the flash recovery area. BACKUP ... DELETE&lt;br /&gt;   INPUT and DELETE... ARCHIVELOG use  this configuration, as does the flash recovery area.&lt;br /&gt;   When we back up the recovery area, RMAN can fail over to other archived redo log&lt;br /&gt;   destinations if the flash recovery area is  inaccessible.&lt;br /&gt;&lt;br /&gt;* Configuring backup compression:&lt;br /&gt;&lt;br /&gt;   In 11g can use CONFIGURE command to choose between the BZIP2 and ZLIB compression&lt;br /&gt;   algorithms for RMAN backups.&lt;br /&gt;&lt;br /&gt;* Active Database Duplication:&lt;br /&gt;&lt;br /&gt;   Now DUPLICATE command is network aware i.e.we can create a duplicate or standby&lt;br /&gt;   database over the network without taking backup or using old backup.&lt;br /&gt;&lt;br /&gt;* Parallel backup and restore for very large files:&lt;br /&gt;&lt;br /&gt;   RMAN Backups of large data files now use multiple parallel server processes to efficiently&lt;br /&gt;   distribute theworkload for each file.   This features improves the performance of backups.&lt;br /&gt;&lt;br /&gt;* Improved block media recovery performance:&lt;br /&gt;&lt;br /&gt;   RECOVER command can recover individual data blocks.&lt;br /&gt;   RMAN take older, uncorrupted blocks from flashback and the RMAN can use these blocks,&lt;br /&gt;   thereby speeding up block media recovery.&lt;br /&gt;&lt;br /&gt;* Fast incremental backups on physical standby database:&lt;br /&gt;&lt;br /&gt;  11g has included new feature of enable block change tracking on a physical standby&lt;br /&gt;  database (ALTER DATABASE ENABLE/DISABLE BLOCK CHANGE TRACKING SQL statement).&lt;br /&gt;  This new 11g feature enables faster incremental backups on a physical standby database&lt;br /&gt;  than in previous releases.because RMAN identifywe the changed blocks sincethe last&lt;br /&gt;  incremental backup.&lt;br /&gt;&lt;br /&gt;11g ASM New Features&lt;br /&gt;-----------------------&lt;br /&gt;&lt;br /&gt;    The new features in Automatic Storage Management (ASM) extend the storage&lt;br /&gt;    management automation, improve scalability, and further simplify management for&lt;br /&gt;    Oracle Database files.&lt;br /&gt;&lt;br /&gt;■ ASM Fast Mirror Resync&lt;br /&gt;&lt;br /&gt;    A new SQL statement, ALTER DISKGROUP ... DISK ONLINE, can be executed&lt;br /&gt;    after a failed disk has been repaired. The command first brings the disk online for&lt;br /&gt;    writes so that no new writes are missed. Subsequently, it initiates a copy of all extents&lt;br /&gt;    marked as stale on a disk from their redundant copies.&lt;br /&gt;    This feature significantly reduces the time it takes to repair a failed diskgroup,&lt;br /&gt;    potentially from hours to minutes. The repair time is proportional to the number of&lt;br /&gt;    extents that have been written to or modified since the failure.&lt;br /&gt;&lt;br /&gt;■ ASM Manageability Enhancements&lt;br /&gt;&lt;br /&gt;The new storage administration features for ASM manageability include the following:&lt;br /&gt;&lt;br /&gt;    ■  New attributes for disk group compatibility&lt;br /&gt;        To enable some of the new ASM features, you can use two new disk group&lt;br /&gt;        compatibility attributes, compatible.rdbms and compatible.asm. These&lt;br /&gt;        attributes specify the minimum software version that is required to use disk&lt;br /&gt;        groups for the database and for ASM, respectively. This feature enables&lt;br /&gt;        heterogeneous environments with disk groups from both Oracle Database 10g and&lt;br /&gt;        Oracle Database 11g. By default, both attributes are set to 10.1. You must advance&lt;br /&gt;        these attributes to take advantage of the new features.&lt;br /&gt;&lt;br /&gt;    ■ New ASM command-line utility (ASMCMD) commands and options&lt;br /&gt;&lt;br /&gt;        ASMCMD allows ASM disk identification, disk bad block repair, and backup and&lt;br /&gt;        restore operations in your ASM environment for faster recovery.&lt;br /&gt;&lt;br /&gt;    ■ ASM fast rebalance&lt;br /&gt;&lt;br /&gt;        Rebalance operations that occur while a disk group is in RESTRICTED mode&lt;br /&gt;        eliminate the lock and unlock extent map messaging between ASM instances in&lt;br /&gt;        Oracle RAC environments, thus improving overall rebalance throughput.&lt;br /&gt;        This collection of ASM management features simplifies and automates storage&lt;br /&gt;        management for Oracle databases.&lt;br /&gt;&lt;br /&gt;    ■ ASM Preferred Mirror Read&lt;br /&gt;&lt;br /&gt;        When ASM failure groups are defined, ASM can now read from the extent that is&lt;br /&gt;        closest to it, rather than always reading the primary copy. A new initialization&lt;br /&gt;        parameter, ASM_PREFERRED_READ_FAILURE_GROUPS, lets the ASM administrator&lt;br /&gt;        specify a list of failure group names that contain the preferred read disks for each node&lt;br /&gt;        in a cluster.&lt;br /&gt;&lt;br /&gt;        In an extended cluster configuration, reading from a local copy provides a great&lt;br /&gt;        performance advantage. Every node can read from its local diskgroup (failure group),&lt;br /&gt;        resulting in higher efficiency and performance and reduced network traffic.&lt;br /&gt;&lt;br /&gt;    ■ ASM Rolling Upgrade&lt;br /&gt;&lt;br /&gt;        Rolling upgrade is the ability of clustered software to function when one or more of&lt;br /&gt;        the nodes in the cluster are at different software versions. The various versions of the&lt;br /&gt;        software can still communicate with each other and provide a single system image.&lt;br /&gt;        The rolling upgrade capability will be available when upgrading from Oracle&lt;br /&gt;        Database 11g Release 1 (11.1).&lt;br /&gt;&lt;br /&gt;        This feature allows independent nodes of an ASM cluster to be migrated or patched&lt;br /&gt;        without affecting the availability of the database. Rolling upgrade provides higher&lt;br /&gt;        uptime and graceful migration to new releases.&lt;br /&gt;&lt;br /&gt;■ ASM Scalability and Performance Enhancements&lt;br /&gt;&lt;br /&gt;    This feature increases the maximum data file size that Oracle can support to 128 TB.&lt;br /&gt;    ASM supports file sizes greater than 128 TB in any redundancy mode. This provides&lt;br /&gt;    near unlimited capacity for future growth. The ASM file size limits are:&lt;br /&gt;&lt;br /&gt;        ■ External redundancy - 140 PB&lt;br /&gt;        ■ Normal redundancy - 42 PB&lt;br /&gt;        ■ High redundancy - 15 PB&lt;br /&gt;&lt;br /&gt;    Customers can also increase the allocation unit size for a disk group in powers of 2 up&lt;br /&gt;    to 64 MB.&lt;br /&gt;&lt;br /&gt;■ Convert Single-Instance ASM to Clustered ASM&lt;br /&gt;&lt;br /&gt;    This feature provides support within Enterprise Manager to convert a non-clustered&lt;br /&gt;    ASM database to a clustered ASM database by implicitly configuring ASM on all&lt;br /&gt;    nodes. It also extends the single-instance to Oracle RAC conversion utility to support&lt;br /&gt;    standby databases.&lt;br /&gt;&lt;br /&gt;    Simplifying the conversion makes it easier for customers to migrate their databases&lt;br /&gt;    and achieve the benefits of scalability and high availability provided by Oracle RAC.&lt;br /&gt;&lt;br /&gt;■ New SYSASM Privilege for ASM Administration&lt;br /&gt;&lt;br /&gt;    This feature introduces the new SYSASM privilege to allow for separation of database&lt;br /&gt;    management and storage management responsibilities.&lt;br /&gt;    The SYSASM privilege allows an administrator to manage the disk groups that can be&lt;br /&gt;    shared by multiple databases. The SYSASM privilege provides a clear separation of&lt;br /&gt;    duties from the SYSDBA privilege.&lt;br /&gt;&lt;br /&gt;For complete list of 11g ASM New Feature, You can refer the following&lt;br /&gt;&lt;br /&gt;Note 551205.1 11g ASM New Features Technical White Paper&lt;br /&gt;http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-asm.html&lt;br /&gt;&lt;br /&gt;For Complete list of 11g New Features, You can refer to the following link&lt;br /&gt;&lt;br /&gt;&lt;http://database.us.oracle.com/pls/htmldb/f?p=301:28:3345601244290425::NO:::&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-1885929427052482648?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/11g-top-new-features.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-7822009552042055487</guid><pubDate>Wed, 06 Aug 2008 16:36:00 +0000</pubDate><atom:updated>2008-08-06T09:38:03.386-07:00</atom:updated><title>Indian localization patch</title><description>INDIAN LOCALIZATION PATCH&lt;br /&gt;&lt;br /&gt;$FND_TOP/patch/115/sql/afopp002.sql ( FND_CP_GSM_OPP_AQ Queue is Invalidated )&lt;br /&gt;&lt;br /&gt;6491231&lt;br /&gt;-------&lt;br /&gt;&lt;br /&gt;perl install.pl appspwd=apps japwd=ja&lt;br /&gt;&lt;br /&gt;5498551&lt;br /&gt;----------&lt;br /&gt;&lt;br /&gt;select count(*) from dba_objects where status='INVALID'&lt;br /&gt;&lt;br /&gt;exec sys.utl_recomp.recomp_parallel(8)&lt;br /&gt;&lt;br /&gt;select object_name, object_type from all_objects where object_name = 'DBMS_SUPPORT' and object_type like 'PACKAGE%' ;&lt;br /&gt;&lt;br /&gt;sqlplus apps/apps @$ORACLE_HOME/rdbms/admin/dbmssupp.sql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sqlplus apps/apps @ja_chk_stat.sql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note:382829.1 Usage of DFF in India Localization&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;update MTL_SYSTEM_ITEMS set ATTRIBUTE11 = ATTRIBUTE15;&lt;br /&gt;&lt;br /&gt;select owner, table_name from all_tables where table_name = 'JA_IN_INSTALL_CHECK_INFO_D' and owner = 'APPS' ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;perl $JA_TOP/inpatch/indpatch.pl drvr_file=5498551.drv fnd_patchset=H appspwd=apps japwd=ja systempwd=manager&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;perl compile_il_apps_obj.pl appspwd=apps&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sqlplus apps/apps @$JA_TOP/5498551/11_5_3/ja_in_match_lines_v.sql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sqlplus apps/apps @$JA_TOP/5498551/11_5_3/ja_in_po_lines_tax_update_trg.sql&lt;br /&gt;&lt;br /&gt;sqlplus apps/apps @$JA_TOP/5498551/11_5_3/ja_in_tds_temp_after_insert_trg.sql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;po/po&lt;br /&gt;&lt;br /&gt;create index ja_in_rcv_shipment_headers_n1 on rcv_shipment_headers(receipt_num);&lt;br /&gt;create index ja_in_rcv_transactions_n1 on rcv_transactions (rma_reference);&lt;br /&gt;&lt;br /&gt;ar/ar&lt;br /&gt;&lt;br /&gt;create index ja_in_ra_customer_trx_all_n1 on ra_customer_trx_all(interface_header_attribute1, interface_header_attribute6);&lt;br /&gt;&lt;br /&gt;inv/inv&lt;br /&gt;&lt;br /&gt;create index ja_in_mtl_transactions_n1 on mtl_material_transactions(rcv_transaction_id);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afffload.lct patch/115/import/US/AP_INVOICE_DISTRIBUTIONS_E.ldt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cp backup/resource/CUSTOM.pll $AU_TOP/resource/CUSTOM.pll&lt;br /&gt;&lt;br /&gt;f60gen module=CUSTOM userid=apps/apps module_type=LIBRARY&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Go to "Application Developer" Responsibility&lt;br /&gt;- Open View -&gt; Requests&lt;br /&gt;- Click on "Submit New Request"&lt;br /&gt;- Click on "Single Request"&lt;br /&gt;- Enter "Generate Messages" in Name field&lt;br /&gt;- Enter the following parameters&lt;br /&gt;Language : US&lt;br /&gt;Application : Asia/Pacific Localizations&lt;br /&gt;Mode : DB_TO_RUNTIME&lt;br /&gt;- Click Ok and then Submit the request, ensure that request completes successfully&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use "adadmin" utility to compile the menus&lt;br /&gt;&lt;br /&gt;6167056&lt;br /&gt;----------&lt;br /&gt;&lt;br /&gt;perl $JA_TOP/inpatch/indpatch.pl drvr_file=6167056.drv fnd_patchset=H appspwd=apps japwd=ja systempwd=manager&lt;br /&gt;&lt;br /&gt;cp backup/resource/CUSTOM.pll $AU_TOP/resource/CUSTOM.pll&lt;br /&gt;&lt;br /&gt;f60gen module=CUSTOM userid=apps/apps module_type=LIBRARY&lt;br /&gt;&lt;br /&gt;6079063&lt;br /&gt;--------&lt;br /&gt;&lt;br /&gt;perl $JA_TOP/inpatch/indpatch.pl drvr_file=6079063.drv fnd_patchset=H&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6410725&lt;br /&gt;------&lt;br /&gt;cp $JA_TOP/6410725/patch/115/import/*.lct $JA_TOP/patch/115/import&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;perl $JA_TOP/inpatch/indpatch.pl drvr_file=6410725.drv fnd_patchset=H&lt;br /&gt;&lt;br /&gt;cp backup/resource/CUSTOM.pll $AU_TOP/resource/CUSTOM.pll&lt;br /&gt;&lt;br /&gt;f60gen module=CUSTOM userid=apps/apps module_type=LIBRARY&lt;br /&gt;&lt;br /&gt;Attach "India Local Project Billing" responsibility to application user&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6410766&lt;br /&gt;--------&lt;br /&gt;&lt;br /&gt;perl compile_il_apps_obj.pl appspwd=apps&lt;br /&gt;&lt;br /&gt;perl $JA_TOP/inpatch/indpatch.pl drvr_file=6410766.drv fnd_patchset=H&lt;br /&gt;&lt;br /&gt;FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afffload.lct patch/115/import/US/RCV_SHIPMENT_HEADERS_2_E.ldt - CUSTOM_MODE=FORCE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;i. To add the Custom responsibility:&lt;br /&gt;---------------------------------&lt;br /&gt;a. From the Oracle System Administrator menu, select Security &gt; Responsibility &gt; Define.&lt;br /&gt;b. Enter the following values.&lt;br /&gt;Responsibility Name : XXXXXXXXXX&lt;br /&gt;Application : iSupplier Portal&lt;br /&gt;Responsbility Key : XXXXXXXXXX&lt;br /&gt;Description : XXXXXXXXXX&lt;br /&gt;&lt;br /&gt;Available form(Radio button): Select the following&lt;br /&gt;(X) "Oracle Self Service Web Applications"&lt;br /&gt;&lt;br /&gt;Data Group:&lt;br /&gt;Name : Standard&lt;br /&gt;Application : iSupplier Portal&lt;br /&gt;&lt;br /&gt;Menu : "ILS iSupplier Portal New Application Menu" (Please note that this menu contains personalized IL functions)&lt;br /&gt;&lt;br /&gt;c. Apply Securing Attributes to Custom Responsibility&lt;br /&gt;&lt;br /&gt;There are three securing attributes that can be used to control access. These attributes&lt;br /&gt;are all seeded with the pre-defined Oracle iSupplier Portal responsibilities that are&lt;br /&gt;released with the product: (Please refer iSupplier implementation guide for details)&lt;br /&gt;&lt;br /&gt;? ICX_SUPPLIER_ORG_ID - Identifier for the supplier.&lt;br /&gt;? ICX_SUPPLIER_SITE_ID - Identifier for the supplier site.&lt;br /&gt;? ICX_SUPPLIER_CONTACT_ID - Identifier for the supplier contact.&lt;br /&gt;&lt;br /&gt;1. Select Securing Attributes region in Responsibility form, search for the three securing attributes that have to be applied to this responsibility.&lt;br /&gt;2. When you have identified all the attributes to apply to this responsibility,&lt;br /&gt;select ICX_SUPPLIER_CONTACT_ID &gt; click Values button and give ?9999,&lt;br /&gt;select ICX_SUPPLIER_SITE_ID &gt; Click Values button and give -9999.&lt;br /&gt;&lt;br /&gt;d. Click Save.&lt;br /&gt;&lt;br /&gt;ii. Assign Responsibilities to Users&lt;br /&gt;-----------------------------------------&lt;br /&gt;a. From the Oracle System Administrator menu, select Security &gt; User &gt; Define.&lt;br /&gt;b. Enter the name of the user to whom you wish to grant the responsibility.&lt;br /&gt;c. In the Direct Responsibilities section, enter the custom responsibility in the&lt;br /&gt;Responsibility text box.&lt;br /&gt;d. Click Save.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6410797&lt;br /&gt;--------&lt;br /&gt;perl compile_il_apps_obj.pl appspwd=apps&lt;br /&gt;&lt;br /&gt;perl $JA_TOP/inpatch/indpatch.pl drvr_file=6410797.drv fnd_patchset=H&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;i. To add the Custom responsibility:&lt;br /&gt;---------------------------------&lt;br /&gt;a. From the Oracle System Administrator menu, select Security &gt; Responsibility &gt; Define.&lt;br /&gt;b. Enter the following values.&lt;br /&gt;Responsibility Name : XXXXXXXXXX&lt;br /&gt;Application : Self-Service Web Applications&lt;br /&gt;Responsbility Key : XXXXXXXXXX&lt;br /&gt;Description : XXXXXXXXXX&lt;br /&gt;&lt;br /&gt;Available form(Radio button): Select the following&lt;br /&gt;(X) "Oracle Self Service Web Applications"&lt;br /&gt;&lt;br /&gt;Data Group:&lt;br /&gt;Name : Standard&lt;br /&gt;Application : Self-Service Web Applications&lt;br /&gt;&lt;br /&gt;Menu : "India Local Procurement home" (Please note that this menu contains personalized IL functions)&lt;br /&gt;&lt;br /&gt;d. Click Save.&lt;br /&gt;&lt;br /&gt;ii. Assign Responsibilities to Users&lt;br /&gt;--------------------------------&lt;br /&gt;a. From the Oracle System Administrator menu, select Security &gt; User &gt; Define.&lt;br /&gt;b. Enter the name of the user to whom you wish to grant the responsibility.&lt;br /&gt;c. In the Direct Responsibilities section, enter the custom responsibility in the&lt;br /&gt;Responsibility text box.&lt;br /&gt;d. Click Save.&lt;br /&gt;&lt;br /&gt;iii.Assign User Authorisations&lt;br /&gt;--------------------------&lt;br /&gt;Two new Profiles specific to iProcurement for IL Support are added to System Profile Values to restrict tax modification and entry:&lt;br /&gt;a. ?IL: Access iProcurement Tax information? - Authority to modify IL taxes in iProcurement&lt;br /&gt;b. ?IL: Allow iProcurement RTV CENVAT Process? - Authority to claim CENVAT during iProcurement Return to Vendor transactions.&lt;br /&gt;c. Default values for these profiles are set to ?NO? implying No authorization.System Administrators should set the profile values to each iProcurement users with appropriate values to ensure the proper user authorization levels.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6372361&lt;br /&gt;--------&lt;br /&gt;&lt;br /&gt;6053828&lt;br /&gt;6030861&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;perl $JA_TOP/inpatch/indpatch.pl drvr_file=6372361.drv fnd_patchset=H&lt;br /&gt;&lt;br /&gt;Labels: Apps 11i&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-7822009552042055487?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/indian-localization-patch.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-7747985998016153959</guid><pubDate>Wed, 06 Aug 2008 16:28:00 +0000</pubDate><atom:updated>2008-08-06T09:30:55.675-07:00</atom:updated><title>New background processes in 10g</title><description>New background processes in 10g&lt;br /&gt;---------------------------------------&lt;br /&gt;&lt;br /&gt;MMAN&lt;br /&gt;&lt;br /&gt;Memory Manager (MMAN) coordinates the sizing of different memory components within SGA. MMAN keeps a track of sizes of components and allocates/de-allocates memory based on their usage. This process is used only when you enable Automatic Shared Memory Management.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RVWR&lt;br /&gt;&lt;br /&gt;Process responsible for writing flashback logs which stores pre-image of data-blocks.&lt;br /&gt;&lt;br /&gt;These logs can be used to flash back database to past point in time. It proves very handy specially in situation of logical data corruptions like an accidental drop/truncate of a table or commit of an unwanted transaction.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CTWR&lt;br /&gt;&lt;br /&gt;Change Tracking Writer (CTWR) Process introduced in 10g to track changes to block to assist fast RMAN incremental backups.&lt;br /&gt;&lt;br /&gt;MMNL&lt;br /&gt;&lt;br /&gt;The Memory Monitor Light (MMNL) process introduced in 10g is responsible for writing out statistics buffer to disk as needed. It works with Automatic Workload Repository (AWR)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MMON&lt;br /&gt;&lt;br /&gt;The memory monitor (MMON) process was introduced in 10g is responsible for gathering statistics for Automatic Workload Repository. This helps Oracle doing automatic problem detection and self tuning.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;M000&lt;br /&gt;&lt;br /&gt;MMON background slave (m000) processes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RBAL&lt;br /&gt;&lt;br /&gt;RBAL (Re-balancer) is the ASM related process that performs rebalancing of disk resources controlled by ASM.&lt;br /&gt;&lt;br /&gt;ARBx&lt;br /&gt;&lt;br /&gt;These processes are managed by the RBAL process and are used to do the actual rebalancing of ASM controlled disk resources. The number of ARBx processes invoked is directly influenced by the asm_power_limit parameter.&lt;br /&gt;&lt;br /&gt;ASMB&lt;br /&gt;&lt;br /&gt;The ASMB process is used to provide information to and from the Cluster Synchronization Services used by ASM to manage the disk resources. It is also used to update statistics and provide a heartbeat mechanism.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-7747985998016153959?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/new-background-processes-in-10g.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-722166156729027522</guid><pubDate>Wed, 06 Aug 2008 16:12:00 +0000</pubDate><atom:updated>2008-08-06T09:14:55.751-07:00</atom:updated><title>R12.AD.A.DELTA.4 Patch</title><description>R12.AD.A.DELTA.4&lt;br /&gt;&lt;br /&gt;patch-6510214&lt;br /&gt;&lt;br /&gt;--Instructions For Applying This Patch&lt;br /&gt;&lt;br /&gt;Execute the following command to generate your instance specific installation&lt;br /&gt;instructions&lt;br /&gt;&lt;br /&gt;1. Source the Applications environment file&lt;br /&gt;2. Run the Patch Application Assistant by entering "admsi.pl".&lt;br /&gt;&lt;br /&gt;--Preparation Tasks&lt;br /&gt;&lt;br /&gt;The tasks in this section can be completed without taking any Applications services or users offline.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--Pre-install Tasks&lt;br /&gt;&lt;br /&gt;You must shut down all Application tier services before performing the tasks in this section.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AD.A Grants&lt;br /&gt;&lt;br /&gt;Run the adgrants.sql script as a user that can connect as SYSDBA to grant privileges to selected SYS objects and create PL/SQL profiler objects.&lt;br /&gt;&lt;br /&gt;Usage:&lt;br /&gt;&lt;br /&gt;1. Create $ORACLE_HOME/appsutil/admin on the database server.&lt;br /&gt;&lt;br /&gt;2. Copy adgrants.sql (UNIX) from this patch directory to&lt;br /&gt;$ORACLE_HOME/appsutil/admin.&lt;br /&gt;Or, copy adgrants_nt.sql (Windows) from this patch directory to&lt;br /&gt;%ORACLE_HOME%\appsutil\admin.&lt;br /&gt;&lt;br /&gt;3. Set the environment to point to ORACLE_HOME on the database server.&lt;br /&gt;&lt;br /&gt;4. Use SQL*Plus to run the script:&lt;br /&gt;&lt;br /&gt;UNIX:&lt;br /&gt;$ sqlplus /nolog&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt;SQL&gt; @$ORACLE_HOME/appsutil/admin/adgrants.sql&lt;br /&gt;&lt;br /&gt;Windows:&lt;br /&gt;C:\&gt; sqlplus /nolog&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt;SQL&gt; @%ORACLE_HOME%\appsutil\admin\adgrants_nt.sql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--Apply patch&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You must apply critical patch 6767273 before applying the AD Mini pack. This patch can not be merged with the AD Mini pack and must be applied separately.&lt;br /&gt;&lt;br /&gt;Note: If you have not installed an off-cycle product, you may skip this step. To determine if your environment has an off cycle product, verify the following.&lt;br /&gt;&lt;br /&gt;* Check for prod.txt files located under the $APPL_TOP/admin directory.&lt;br /&gt;&lt;br /&gt;* For the products found in the directory, make sure there is an entry in the applprod.txt file located under the $APPL_TOP/admin directory&lt;br /&gt;&lt;br /&gt;* You must apply patch 6767273 if you have products not listed in the applprod.txt file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--Apply The Patch&lt;br /&gt;&lt;br /&gt;his patch contains the following unified driver file to be applied with&lt;br /&gt;AutoPatch:&lt;br /&gt;u6510214.drv (This is the unified driver)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--Post-install Tasks&lt;br /&gt;&lt;br /&gt;You must complete the tasks in this section before starting up Application tier services.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-722166156729027522?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/08/r12adadelta4-patch.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-7769707590310874192</guid><pubDate>Tue, 29 Jul 2008 09:11:00 +0000</pubDate><atom:updated>2008-07-29T02:16:53.443-07:00</atom:updated><title>10g Data Pump</title><description>Data pump:&lt;br /&gt;--------------- &lt;br /&gt;In Oracle 10g, exp and imp have been redesigned as the Oracle Data Pump, which is much faster than these old client commands. Data Pump runs as a job inside the database, rather than as a stand-alone client application. This means that jobs are somewhat independent of the process that started the export or import. One machine (say a scheduled job) could start the export, while another machine (such as a DBA's laptop) can check the status of the job. Since the job is inside the database &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Basic settings:&lt;br /&gt;--------------------  &lt;br /&gt;if you want to export to a file, the first thing that you must do is create a database DIRECTORY object for the output directory, and grant access to users who will be doing exports and imports.&lt;br /&gt;&lt;br /&gt;Why Directory Objects?&lt;br /&gt;They are needed to ensure data security and integrity. Otherwise, users would be able to read data that they should not have access to and perform unwarranted operations on the server.&lt;br /&gt;&lt;br /&gt;For example will use scott user account and create a directory object it can access,&lt;br /&gt;&lt;br /&gt;connect to sqlplus as sys user,&lt;br /&gt;&lt;br /&gt;$sqlplus '/as sysdba'&lt;br /&gt;&lt;br /&gt;make sure that scott user account has unlocked by connecting to sqlplus as scott user.&lt;br /&gt;&lt;br /&gt;Assign create directory privilege to scott,&lt;br /&gt;&lt;br /&gt;GRANT CREATE ANY DIRECTORY TO scott;&lt;br /&gt;CREATE OR REPLACE DIRECTORY test_dir AS '/u01/logicalbkp';&lt;br /&gt;Assign read,write privilege to scott on that particular directory where we need to take the backup.&lt;br /&gt;GRANT READ, WRITE ON DIRECTORY test_dir TO scott;&lt;br /&gt;Tables export and import:&lt;br /&gt;-----------------------------------&lt;br /&gt;&lt;br /&gt;expdp scott/tiger tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log&lt;br /&gt;&lt;br /&gt;impdp scott/tiger tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log&lt;br /&gt;TABLE_EXISTS_ACTION=APPEND parameter allows data to be imported into existing tables. &lt;br /&gt;&lt;br /&gt;Schemas export and import:&lt;br /&gt;------------------------------------&lt;br /&gt;&lt;br /&gt;expdp scott/tiger schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log&lt;br /&gt;impdp scott/tiger schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=impdpSCOTT.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database exports and imports:&lt;br /&gt;------------------------------- &lt;br /&gt;&lt;br /&gt;expdp system/password full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=expdpDB10G.log&lt;br /&gt;&lt;br /&gt;impdp system/password full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=impdpDB10G.log&lt;br /&gt; &lt;br /&gt; Data pump performance can be improved by using the PARALLEL parameter. This should be used in conjunction with the "%U" wildcard in the DUMPFILE parameter to allow multiple dumpfiles to be created or read:&lt;br /&gt;expdp scott/tiger schemas=SCOTT directory=TEST_DIR parallel=4 dumpfile=SCOTT_%U.dmp logfile=expdpSCOTT.log&lt;br /&gt;The DBA_DATAPUMP_JOBS view can be used to monitor the current jobs:&lt;br /&gt;system@db10g&gt; select * from dba_datapump_jobs;&lt;br /&gt;&lt;br /&gt;OWNER_NAME                     JOB_NAME                       OPERATION&lt;br /&gt;------------------------------ ------------------------------ ------------------------------&lt;br /&gt;JOB_MODE                       STATE                              DEGREE ATTACHED_SESSIONS&lt;br /&gt;------------------------------ ------------------------------ ---------- -----------------&lt;br /&gt;SYSTEM                         SYS_EXPORT_FULL_01             EXPORT&lt;br /&gt;FULL                           EXECUTING                               1                 1&lt;br /&gt; &lt;br /&gt; The INCLUDE and EXCLUDE parameters can be used to limit the export/import to specific objects. When the INCLUDE parameter is used, only those objects specified by it will be included in the export. When the EXCLUDE parameter is used all objects except those specified by it will be included in the export:&lt;br /&gt;expdp scott/tiger schemas=SCOTT include=TABLE:"IN ('EMP', 'DEPT')" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log&lt;br /&gt;&lt;br /&gt;expdp scott/tiger schemas=SCOTT exclude=TABLE:"= 'BONUS'" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log&lt;br /&gt; &lt;br /&gt; All data pump actions are performed by multiple jobs (server processes not DBMS_JOB jobs). These jobs are controlled by a master control process which uses Advanced Queuing. At runtime an advanced queue table, named after the job name, is created and used by the master control process. The table is dropped on completion of the data pump job. The job and the advanced queue can be named using the JOB_NAME parameter. Cancelling the client process does not stop the associated data pump job. Issuing "ctrl+c" on the client during a job stops the client output and presents a command prompt. Typing "status" at this prompt allows you to monitor the current job: &lt;br /&gt;&lt;br /&gt;Export&gt; status&lt;br /&gt;&lt;br /&gt;Job: SYS_EXPORT_FULL_01&lt;br /&gt;  Operation: EXPORT&lt;br /&gt;  Mode: FULL&lt;br /&gt;  State: EXECUTING&lt;br /&gt;  Bytes Processed: 0&lt;br /&gt;  Current Parallelism: 1&lt;br /&gt;  Job Error Count: 0&lt;br /&gt;  Dump File: D:TEMPDB10G.DMP&lt;br /&gt;    bytes written: 4,096&lt;br /&gt;&lt;br /&gt;Worker 1 Status:&lt;br /&gt;  State: EXECUTING&lt;br /&gt;  Object Schema: SYSMAN&lt;br /&gt;  Object Name: MGMT_CONTAINER_CRED_ARRAY&lt;br /&gt;  Object Type: DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC&lt;br /&gt;  Completed Objects: 261&lt;br /&gt;  Total Objects: 261&lt;br /&gt;The HELP=Y option displays the available parameters: &lt;br /&gt;&lt;br /&gt;expdp help=y&lt;br /&gt;Export: Release 10.1.0.2.0 - Production on Tuesday, 23 March, 2004 8:33&lt;br /&gt;&lt;br /&gt;Copyright (c) 2003, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Data Pump export utility provides a mechanism for transferring data objects&lt;br /&gt;between Oracle databases. The utility is invoked with the following command:&lt;br /&gt;&lt;br /&gt;   Example: expdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp&lt;br /&gt;&lt;br /&gt;You can control how Export runs by entering the 'expdp' command followed&lt;br /&gt;by various parameters. To specify parameters, you use keywords:&lt;br /&gt;&lt;br /&gt;   Format:  expdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN)&lt;br /&gt;   Example: expdp scott/tiger DUMPFILE=scott.dmp DIRECTORY=dmpdir SCHEMAS=scott&lt;br /&gt;               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table&lt;br /&gt;&lt;br /&gt;USERID must be the first parameter on the command line.&lt;br /&gt;&lt;br /&gt;Keyword               Description (Default)&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;ATTACH                Attach to existing job, e.g. ATTACH [=job name].&lt;br /&gt;CONTENT               Specifies data to unload where the valid keywords are:&lt;br /&gt;                      (ALL), DATA_ONLY, and METADATA_ONLY.&lt;br /&gt;DIRECTORY             Directory object to be used for dumpfiles and logfiles.&lt;br /&gt;DUMPFILE              List of destination dump files (expdat.dmp),&lt;br /&gt;                      e.g. DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.&lt;br /&gt;ESTIMATE              Calculate job estimates where the valid keywords are:&lt;br /&gt;                      (BLOCKS) and STATISTICS.&lt;br /&gt;ESTIMATE_ONLY         Calculate job estimates without performing the export.&lt;br /&gt;EXCLUDE               Exclude specific object types, e.g. EXCLUDE=TABLE:EMP.&lt;br /&gt;FILESIZE              Specify the size of each dumpfile in units of bytes.&lt;br /&gt;FLASHBACK_SCN         SCN used to set session snapshot back to.&lt;br /&gt;FLASHBACK_TIME        Time used to get the SCN closest to the specified time.&lt;br /&gt;FULL                  Export entire database (N).&lt;br /&gt;HELP                  Display Help messages (N).&lt;br /&gt;INCLUDE               Include specific object types, e.g. INCLUDE=TABLE_DATA.&lt;br /&gt;JOB_NAME              Name of export job to create.&lt;br /&gt;LOGFILE               Log file name (export.log).&lt;br /&gt;NETWORK_LINK          Name of remote database link to the source system.&lt;br /&gt;NOLOGFILE             Do not write logfile (N).&lt;br /&gt;PARALLEL              Change the number of active workers for current job.&lt;br /&gt;PARFILE               Specify parameter file.&lt;br /&gt;QUERY                 Predicate clause used to export a subset of a table.&lt;br /&gt;SCHEMAS               List of schemas to export (login schema).&lt;br /&gt;STATUS                Frequency (secs) job status is to be monitored where&lt;br /&gt;                      the default (0) will show new status when available.&lt;br /&gt;TABLES                Identifies a list of tables to export - one schema only.&lt;br /&gt;TABLESPACES           Identifies a list of tablespaces to export.&lt;br /&gt;TRANSPORT_FULL_CHECK  Verify storage segments of all tables (N).&lt;br /&gt;TRANSPORT_TABLESPACES List of tablespaces from which metadata will be unloaded.&lt;br /&gt;VERSION               Version of objects to export where valid keywords are:&lt;br /&gt;                      (COMPATIBLE), LATEST, or any valid database version.&lt;br /&gt;&lt;br /&gt;The following commands are valid while in interactive mode.&lt;br /&gt;Note: abbreviations are allowed&lt;br /&gt;&lt;br /&gt;Command               Description&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;ADD_FILE              Add dumpfile to dumpfile set.&lt;br /&gt;                      ADD_FILE=dumpfile-name&lt;br /&gt;CONTINUE_CLIENT       Return to logging mode. Job will be re-started if idle.&lt;br /&gt;EXIT_CLIENT           Quit client session and leave job running.&lt;br /&gt;HELP                  Summarize interactive commands.&lt;br /&gt;KILL_JOB              Detach and delete job.&lt;br /&gt;PARALLEL              Change the number of active workers for current job.&lt;br /&gt;                      PARALLEL=.&lt;br /&gt;START_JOB             Start/resume current job.&lt;br /&gt;STATUS                Frequency (secs) job status is to be monitored where&lt;br /&gt;                      the default (0) will show new status when available.&lt;br /&gt;                      STATUS=[interval]&lt;br /&gt;STOP_JOB              Orderly shutdown of job execution and exits the client.&lt;br /&gt;                      STOP_JOB=IMMEDIATE performs an immediate shutdown of the&lt;br /&gt;                      Data Pump job.&lt;br /&gt;&lt;br /&gt;impdp help=y&lt;br /&gt;&lt;br /&gt;Import: Release 10.1.0.2.0 - Production on Saturday, 11 September, 2004 17:22&lt;br /&gt;&lt;br /&gt;Copyright (c) 2003, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Data Pump Import utility provides a mechanism for transferring data objects&lt;br /&gt;between Oracle databases. The utility is invoked with the following command:&lt;br /&gt;&lt;br /&gt;     Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp&lt;br /&gt;&lt;br /&gt;You can control how Import runs by entering the 'impdp' command followed&lt;br /&gt;by various parameters. To specify parameters, you use keywords:&lt;br /&gt;&lt;br /&gt;     Format:  impdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN)&lt;br /&gt;     Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp&lt;br /&gt;&lt;br /&gt;USERID must be the first parameter on the command line.&lt;br /&gt;&lt;br /&gt;Keyword               Description (Default)&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;ATTACH                Attach to existing job, e.g. ATTACH [=job name].&lt;br /&gt;CONTENT               Specifies data to load where the valid keywords are:&lt;br /&gt;                      (ALL), DATA_ONLY, and METADATA_ONLY.&lt;br /&gt;DIRECTORY             Directory object to be used for dump, log, and sql files.&lt;br /&gt;DUMPFILE              List of dumpfiles to import from (expdat.dmp),&lt;br /&gt;                      e.g. DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.&lt;br /&gt;ESTIMATE              Calculate job estimates where the valid keywords are:&lt;br /&gt;                      (BLOCKS) and STATISTICS.&lt;br /&gt;EXCLUDE               Exclude specific object types, e.g. EXCLUDE=TABLE:EMP.&lt;br /&gt;FLASHBACK_SCN         SCN used to set session snapshot back to.&lt;br /&gt;FLASHBACK_TIME        Time used to get the SCN closest to the specified time.&lt;br /&gt;FULL                  Import everything from source (Y).&lt;br /&gt;HELP                  Display help messages (N).&lt;br /&gt;INCLUDE               Include specific object types, e.g. INCLUDE=TABLE_DATA.&lt;br /&gt;JOB_NAME              Name of import job to create.&lt;br /&gt;LOGFILE               Log file name (import.log).&lt;br /&gt;NETWORK_LINK          Name of remote database link to the source system.&lt;br /&gt;NOLOGFILE             Do not write logfile.&lt;br /&gt;PARALLEL              Change the number of active workers for current job.&lt;br /&gt;PARFILE               Specify parameter file.&lt;br /&gt;QUERY                 Predicate clause used to import a subset of a table.&lt;br /&gt;REMAP_DATAFILE        Redefine datafile references in all DDL statements.&lt;br /&gt;REMAP_SCHEMA          Objects from one schema are loaded into another schema.&lt;br /&gt;REMAP_TABLESPACE      Tablespace object are remapped to another tablespace.&lt;br /&gt;REUSE_DATAFILES       Tablespace will be initialized if it already exists (N).&lt;br /&gt;SCHEMAS               List of schemas to import.&lt;br /&gt;SKIP_UNUSABLE_INDEXES Skip indexes that were set to the Index Unusable state.&lt;br /&gt;SQLFILE               Write all the SQL DDL to a specified file.&lt;br /&gt;STATUS                Frequency (secs) job status is to be monitored where&lt;br /&gt;                      the default (0) will show new status when available.&lt;br /&gt;STREAMS_CONFIGURATION Enable the loading of Streams metadata&lt;br /&gt;TABLE_EXISTS_ACTION   Action to take if imported object already exists.&lt;br /&gt;                      Valid keywords: (SKIP), APPEND, REPLACE and TRUNCATE.&lt;br /&gt;TABLES                Identifies a list of tables to import.&lt;br /&gt;TABLESPACES           Identifies a list of tablespaces to import.&lt;br /&gt;TRANSFORM             Metadata transform to apply (Y/N) to specific objects.&lt;br /&gt;                      Valid transform keywords: SEGMENT_ATTRIBUTES and STORAGE.&lt;br /&gt;                      ex. TRANSFORM=SEGMENT_ATTRIBUTES:N:TABLE.&lt;br /&gt;TRANSPORT_DATAFILES   List of datafiles to be imported by transportable mode.&lt;br /&gt;TRANSPORT_FULL_CHECK  Verify storage segments of all tables (N).&lt;br /&gt;TRANSPORT_TABLESPACES List of tablespaces from which metadata will be loaded.&lt;br /&gt;                      Only valid in NETWORK_LINK mode import operations.&lt;br /&gt;VERSION               Version of objects to export where valid keywords are:&lt;br /&gt;                      (COMPATIBLE), LATEST, or any valid database version.&lt;br /&gt;                      Only valid for NETWORK_LINK and SQLFILE.&lt;br /&gt;&lt;br /&gt;The following commands are valid while in interactive mode.&lt;br /&gt;Note: abbreviations are allowed&lt;br /&gt;&lt;br /&gt;Command               Description (Default)&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;CONTINUE_CLIENT       Return to logging mode. Job will be re-started if idle.&lt;br /&gt;EXIT_CLIENT           Quit client session and leave job running.&lt;br /&gt;HELP                  Summarize interactive commands.&lt;br /&gt;KILL_JOB              Detach and delete job.&lt;br /&gt;PARALLEL              Change the number of active workers for current job.&lt;br /&gt;                      PARALLEL=.&lt;br /&gt;START_JOB             Start/resume current job.&lt;br /&gt;                      START_JOB=SKIP_CURRENT will start the job after skipping&lt;br /&gt;                      any action which was in progress when job was stopped.&lt;br /&gt;STATUS                Frequency (secs) job status is to be monitored where&lt;br /&gt;                      the default (0) will show new status when available.&lt;br /&gt;                      STATUS=[interval]&lt;br /&gt;STOP_JOB              Orderly shutdown of job execution and exits the client.&lt;br /&gt;                      STOP_JOB=IMMEDIATE performs an immediate shutdown of the&lt;br /&gt;                      Data Pump job.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-7769707590310874192?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/data-pump.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-3625127260969431482</guid><pubDate>Sat, 19 Jul 2008 10:55:00 +0000</pubDate><atom:updated>2008-07-19T04:01:45.643-07:00</atom:updated><title>Script to start/stop R12 services</title><description>Script to start R12 services&lt;br /&gt;-------------------------------------&lt;br /&gt;Open a file in vi editor and save it as a script(.sh) format.&lt;br /&gt;&lt;br /&gt;#vi start.sh&lt;br /&gt;&lt;br /&gt;echo "Starting Database Listener"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addlnctl.sh start VIS'&lt;br /&gt;echo "Database Listener started"&lt;br /&gt;sleep 5&lt;br /&gt;echo "Starting Oracle Database"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addbctl.sh start'&lt;br /&gt;echo "Oracle Database started"&lt;br /&gt;sleep 15&lt;br /&gt;echo "Starting Oracle Applications"&lt;br /&gt;/usr/bin/su - applvis -c '/u01/apps/VIS_lab/admin/scripts/adstrtal.sh apps/apps'&lt;br /&gt;echo "Oracle Applications Started"&lt;br /&gt;&lt;br /&gt;:wq!(save &amp; quit)&lt;br /&gt;&lt;br /&gt;Script to stop R12 services&lt;br /&gt;-----------------------------------&lt;br /&gt;Open a file in vi editor and save it as a script(.sh) format.&lt;br /&gt;&lt;br /&gt;#vi stop.sh&lt;br /&gt;&lt;br /&gt;echo "Stopping Oracle Applications"&lt;br /&gt;/usr/bin/su - applvis -c '/u01/apps/VIS_lab/admin/scripts/adstpall.sh apps/apps'&lt;br /&gt;echo "Oracle Applications stopped"&lt;br /&gt;sleep 5&lt;br /&gt;kill -9 `ps -ef | grep applvis | awk '{print $2}'`&lt;br /&gt;echo "Stopping Database Listener"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addlnctl.sh stop VIS'&lt;br /&gt;echo "Database Listener stopped"&lt;br /&gt;echo "Stopping Oracle Database"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addbctl.sh stop immediate'&lt;br /&gt;sleep 5&lt;br /&gt;echo "Oracle Database stopped"&lt;br /&gt;&lt;br /&gt;:wq(save &amp; quit)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use these shell scripts to start/stop r12 services instead of doing manually.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-3625127260969431482?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/script-to-startstop-r12-services.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-7107128690480340733</guid><pubDate>Wed, 16 Jul 2008 02:42:00 +0000</pubDate><atom:updated>2008-07-15T19:43:09.456-07:00</atom:updated><title>Listener password</title><description>Set listener password:&lt;br /&gt;----------------------------&lt;br /&gt;LSNRCTL&gt; set save_config_on_stop on&lt;br /&gt;Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))&lt;br /&gt;LISTENER parameter "save_config_on_stop" set to ON&lt;br /&gt;The command completed successfully&lt;br /&gt;LSNRCTL&gt; set password t0p53cr3t&lt;br /&gt;The command completed successfully&lt;br /&gt;LSNRCTL&gt;&lt;br /&gt;&lt;br /&gt;The commands will instruct the listener to save the configuration to the file after stopping the listener, as mentioned by the command set save_config_on_stop on. This will place the following lines in the file listener.ora&lt;br /&gt;&lt;br /&gt;#----ADDED BY TNSLSNR 05-JUL-2003 00:12:48---&lt;br /&gt;SAVE_CONFIG_ON_STOP_LISTENER = ON&lt;br /&gt;#--------------------------------------------&lt;br /&gt;&lt;br /&gt;#----ADDED BY TNSLSNR 05-JUL-2003 00:13:49---&lt;br /&gt;PASSWORDS_LISTENER = 8D5438362F7F2951&lt;br /&gt;#--------------------------------------------&lt;br /&gt;&lt;br /&gt;Note how the password has been recorded in the file, but in an encrypted manner.&lt;br /&gt;&lt;br /&gt;In this setup, where the encrypted password is mentioned in the parameter file, setting the password is like the case where the password is not specified in the parameter file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-7107128690480340733?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/listener-password.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-365382198403186597</guid><pubDate>Wed, 16 Jul 2008 00:48:00 +0000</pubDate><atom:updated>2008-07-15T21:29:50.485-07:00</atom:updated><title>sqlplus command line history</title><description>Command Line History and Editing in SQL*Plus and RMAN on Linux&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;The rlwrap (readline wrapper) utility provides a command history and editing of keyboard input for any other command. This is a really handy addition to SQL*Plus and RMAN on Linux.&lt;br /&gt;&lt;br /&gt;Download the latest rlwrap software from the following URL.&lt;br /&gt;http://utopia.knoware.nl/~hlub/uck/rlwrap/ &lt;br /&gt;Unzip and install the software using the following commands. &lt;br /&gt;gunzip rlwrap*.gz&lt;br /&gt;tar -xvf rlwrap*.tar&lt;br /&gt;cd rlwrap*&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make check&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;Run the following commands, or better still append then to the ".bash_profile" of the oracle software owner.&lt;br /&gt;&lt;br /&gt;alias sqlplus='rlwrap ${ORACLE_HOME}/bin/sqlplus'&lt;br /&gt;alias rman='rlwrap ${ORACLE_HOME}/bin/rman'&lt;br /&gt;alias expdp='rlwrap ${ORACLE_HOME}/bin/expdp'&lt;br /&gt;&lt;br /&gt;You can now start SQL*Plus or RMAN using "rlsqlplus" and "rlrman" respectively, and you will have a basic command history and the current line will be editable using the arrow and delete keys.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-365382198403186597?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/sqlplus-command-line-history.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-2304281960713662486</guid><pubDate>Wed, 16 Jul 2008 00:12:00 +0000</pubDate><atom:updated>2008-07-15T17:18:08.284-07:00</atom:updated><title>Script to start/stop release12 services</title><description>Release12 Start/stop scripts&lt;br /&gt;----------------------------------&lt;br /&gt;Script to start services in Release12&lt;br /&gt;------------------------------------------&lt;br /&gt;login as root user then,&lt;br /&gt;#vi start.sh&lt;br /&gt;echo "Starting Database Listener"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addlnctl.sh start VIS'&lt;br /&gt;echo "Database Listener started"&lt;br /&gt;sleep 5&lt;br /&gt;echo "Starting Oracle Database"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addbctl.sh start'&lt;br /&gt;echo "Oracle Database started"&lt;br /&gt;sleep 5&lt;br /&gt;echo "Starting Oracle Applications"&lt;br /&gt;/usr/bin/su - applvis -c '/u01/apps/VIS_lab/admin/scripts/adstrtal.sh apps/apps'&lt;br /&gt;echo "Oracle Applications Started"&lt;br /&gt;&lt;br /&gt;:wq(save and quit)&lt;br /&gt;&lt;br /&gt;Script to stop Release12 services&lt;br /&gt;---------------------------------------&lt;br /&gt;log in as root user then&lt;br /&gt;#vi stop.sh&lt;br /&gt;echo "Stopping Oracle Applications"&lt;br /&gt;/usr/bin/su - applvis -c '/u01/apps/VIS_lab/admin/scripts/adstpall.sh apps/apps'&lt;br /&gt;echo "Oracle Applications stopped"&lt;br /&gt;sleep 5&lt;br /&gt;kill -9 `ps -ef | grep applvis | awk '{print $2}'`&lt;br /&gt;echo "Stopping Database Listener"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addlnctl.sh stop VIS'&lt;br /&gt;echo "Database Listener stopped"&lt;br /&gt;echo "Stopping Oracle Database"&lt;br /&gt;/usr/bin/su - oravis -c '/u02/oracle/db/tech_st/10.2.0/appsutil/scripts/VIS_lab/addbctl.sh stop immediate'&lt;br /&gt;sleep 5&lt;br /&gt;echo "Oracle Database stopped"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:wq (save and quit)&lt;br /&gt;&lt;br /&gt;Use these scripts to start/stop release services.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-2304281960713662486?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/script-to-startstop-release12-services.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-3668206472580269149</guid><pubDate>Tue, 15 Jul 2008 14:09:00 +0000</pubDate><atom:updated>2008-07-15T07:10:41.832-07:00</atom:updated><title>Creating custom top</title><description>Creating custom top&lt;br /&gt;-----------------------&lt;br /&gt;&lt;br /&gt;SCHEMA NAME    :   XXRLT&lt;br /&gt;&lt;br /&gt;TOP NAME          :   XXRLT_TOP&lt;br /&gt;&lt;br /&gt;Application         :   XXRLT Custom Application&lt;br /&gt;&lt;br /&gt;Data Group         :   XXRLTGroup&lt;br /&gt;&lt;br /&gt;Request Group    :   XXRLT Request Group&lt;br /&gt;&lt;br /&gt;Menu                  :   XXRLT_CUSTOM_MENU&lt;br /&gt;&lt;br /&gt;Responsibility      :   XXRLT Custom &lt;br /&gt;&lt;br /&gt;1)  Make the directory structure for your custom application files. &lt;br /&gt;&lt;br /&gt;cd $APPL_TOP&lt;br /&gt;&lt;br /&gt;mkdir xxrlt&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/admin&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/admin/sql&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/admin/odf&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/sql&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/bin&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/reports&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/reports/US&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/forms&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/forms/US&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/lib&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/out&lt;br /&gt;&lt;br /&gt;mkdir xxrlt/12.0.0/log &lt;br /&gt;&lt;br /&gt;2)  Add the custom module into the environment &lt;br /&gt;&lt;br /&gt;cd $APPL_TOP &lt;br /&gt;&lt;br /&gt;vi customPROD_app01.env&lt;br /&gt;&lt;br /&gt;XXRLT_TOP=/sandb1/oracle/PROD/apps/apps_st/appl/xxrlt/12.0.0&lt;br /&gt;&lt;br /&gt;export XXRLT_TOP&lt;br /&gt;&lt;br /&gt;source the environment file ( /sandb1/oracle/PROD/apps/apps_st/appl/APPSPROD_pkgprod.env ) &lt;br /&gt;&lt;br /&gt;Make entry to context file &lt;br /&gt;&lt;br /&gt;/sandb1/oracle/PROD/inst/apps/PROD_pkgprod/appl/admin/PROD_pkgprod.xml &lt;br /&gt;&lt;br /&gt;&lt;XXRLT_TOP oa_var="s_xxrltop" oa_type="PROD_TOP" oa_enabled="FALSE"&gt;/sandb1/oracle/PROD/apps/apps_st/appl/xxrlt/12.0.0&lt;/XXRLT_TOP&gt; &lt;br /&gt;&lt;br /&gt;cd $INST_TOP/admin/install&lt;br /&gt;&lt;br /&gt;sh adgentopfile.sh &lt;br /&gt;&lt;br /&gt;Open new session, source environment file, and stop middle tier services, run autoconfig&lt;br /&gt;&lt;br /&gt;Open new session, source environment file, check for custom top in topfile.txt in $APPL_TOP/admin, start the middle tier services. &lt;br /&gt;&lt;br /&gt;3) create tablespace XXRLT datafile '/sandb1/oracle/PROD/db/apps_st/data/xxrlt01.dbf' size 500M  &lt;br /&gt;&lt;br /&gt;4) create user xxrlt identified by xxrlt&lt;br /&gt;&lt;br /&gt;   default tablespace xxrlt&lt;br /&gt;&lt;br /&gt;   temporary tablespace temp1&lt;br /&gt;&lt;br /&gt;   quota unlimited on xxrlt&lt;br /&gt;&lt;br /&gt;   grant connect, resource to xxrlt; &lt;br /&gt;&lt;br /&gt;5)  Register your Oracle Schema.&lt;br /&gt;&lt;br /&gt;Login to Applications with System Administrator responsibility&lt;br /&gt;&lt;br /&gt;Navigate to Application--&gt;Register&lt;br /&gt;&lt;br /&gt;      Application = XXRLT Custom Application&lt;br /&gt;&lt;br /&gt;      Short Name  = XXRLT&lt;br /&gt;&lt;br /&gt;      Basepath    = XXRLT_TOP&lt;br /&gt;&lt;br /&gt;      Description = XXRLT Custom Application &lt;br /&gt;&lt;br /&gt;6)  Register Oracle User&lt;br /&gt;&lt;br /&gt;Naviate to Security--&gt;Oracle--&gt;Register&lt;br /&gt;&lt;br /&gt;      Database User Name = XXRLT&lt;br /&gt;&lt;br /&gt;      Password           = XXRLT&lt;br /&gt;&lt;br /&gt;      Privilege          = Enabled&lt;br /&gt;&lt;br /&gt;      Install Group      = 0&lt;br /&gt;&lt;br /&gt;      Description        = XXRLT Custom Application User &lt;br /&gt;&lt;br /&gt;7)  Add Application to a Data Group&lt;br /&gt;&lt;br /&gt;Navigate to Security--&gt;Oracle--&gt;DataGroup&lt;br /&gt;&lt;br /&gt;      Data Group  = XXRLTGroup&lt;br /&gt;&lt;br /&gt;      Description = XXRLT Custom Data Group&lt;br /&gt;&lt;br /&gt;Click on "Copy Applications from" and pick Standard data Group, then add the following entry.&lt;br /&gt;&lt;br /&gt;      Application = XXRLT Custom&lt;br /&gt;&lt;br /&gt;      Oracle ID   = APPS&lt;br /&gt;&lt;br /&gt;      Description = XXRLT Custom Application &lt;br /&gt;&lt;br /&gt;8)  Create custom request group&lt;br /&gt;&lt;br /&gt;This will act as a placeholder for any custom reports we wish to make available for the Custom Responsibility (which is defined at a later stage)&lt;br /&gt;&lt;br /&gt;Navigate to Security--&gt;responsbility--&gt;Request&lt;br /&gt;&lt;br /&gt;      Group       = XXRLT Request Group&lt;br /&gt;&lt;br /&gt;      Application = XXRLT Custom&lt;br /&gt;&lt;br /&gt;      Code        = XXRLT&lt;br /&gt;&lt;br /&gt;      Description = XXRLT Custom Requests&lt;br /&gt;&lt;br /&gt;We will not define any requests to add to the group at this stage, but you can add some now if required. &lt;br /&gt;&lt;br /&gt;9)  Create custom menu&lt;br /&gt;&lt;br /&gt;This will act as a placeholder for any menu items we wish to make available for the Custom Responsibility (which is defined at a later stage). We will create two menus, one for Core Applications and one for Self Service.&lt;br /&gt;&lt;br /&gt;Navigate to Application--&gt;Menu&lt;br /&gt;&lt;br /&gt;      Menu           = XXRLT_CUSTOM_MENU&lt;br /&gt;&lt;br /&gt;      User Menu Name = XXRLT Custom Application&lt;br /&gt;&lt;br /&gt;      Menu Type      = &lt;leave blank&gt;&lt;br /&gt;&lt;br /&gt;      Description    = XXRLT Custom Application Menu&lt;br /&gt;&lt;br /&gt;      Seq         = 100&lt;br /&gt;&lt;br /&gt;      Prompt      = View Requests&lt;br /&gt;&lt;br /&gt;      Submenu     = &lt;leave blank&gt;&lt;br /&gt;&lt;br /&gt;      Function    = View All Concurrent Requests&lt;br /&gt;&lt;br /&gt;      Description = View Requests &lt;br /&gt;&lt;br /&gt;      Seq         = 110&lt;br /&gt;&lt;br /&gt;      Prompt      = Run Requests&lt;br /&gt;&lt;br /&gt;      Submenu     = &lt;leave blank&gt;&lt;br /&gt;&lt;br /&gt;      Function    = Requests: Submit&lt;br /&gt;&lt;br /&gt;      Description = Submit Requests &lt;br /&gt;&lt;br /&gt;      Menu           = XXRLT_CUSTOM_MENU_SSWA&lt;br /&gt;&lt;br /&gt;      User Menu Name = XXRLT Custom Application SSWA&lt;br /&gt;&lt;br /&gt;      Menu Type      = &lt;leave blank&gt;&lt;br /&gt;&lt;br /&gt;      Description    = XXRLT Custom Application Menu for SSWA &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;10)  Create new responsibility.   One for Core Applications and One for Self Service (SSWA)&lt;br /&gt;&lt;br /&gt;Navigate to Security--&gt;Responsibility--&gt;Define&lt;br /&gt;&lt;br /&gt;      Responsibility Name       = XXRLT Custom&lt;br /&gt;&lt;br /&gt;      Application               = XXRLT Custom&lt;br /&gt;&lt;br /&gt;      Responsibility Key        = XXRLTCUSTOM&lt;br /&gt;&lt;br /&gt;      Description               = XXRLT Custom Responsibility&lt;br /&gt;&lt;br /&gt;      Available From            = Oracle Applications&lt;br /&gt;&lt;br /&gt;      Data Group Name           = XXRLTGroup&lt;br /&gt;&lt;br /&gt;      Data Group Application    = XXRLT Custom&lt;br /&gt;&lt;br /&gt;      Menu                      = XXRLT Custom Application&lt;br /&gt;&lt;br /&gt;      Request Group Name        = XXRLT Request Group &lt;br /&gt;&lt;br /&gt;      Responsibility Name       = XXRLT Custom SSWA&lt;br /&gt;&lt;br /&gt;      Application               = XXRLT Custom&lt;br /&gt;&lt;br /&gt;      Responsibility Key        = XXRLTCUSTOMSSWA&lt;br /&gt;&lt;br /&gt;      Description               = XXRLT Custom Responsibility SSWA&lt;br /&gt;&lt;br /&gt;      Available From            = Oracle Self Service Web Applications&lt;br /&gt;&lt;br /&gt;      Data Group Name           = XXRLTGroup&lt;br /&gt;&lt;br /&gt;      Data Group Application    = XXRLT Custom&lt;br /&gt;&lt;br /&gt;      Menu                      = XXRLT Custom Application SSWA&lt;br /&gt;&lt;br /&gt;      Request Group Name        = XXRLT Request Group &lt;br /&gt;&lt;br /&gt;11)  Add responsibility to user&lt;br /&gt;&lt;br /&gt;Navigate to Security--&gt;User--&gt;Define&lt;br /&gt;&lt;br /&gt;Add XXRLT Custom responsibility to users as required. &lt;br /&gt;&lt;br /&gt;12)  Other considerations&lt;br /&gt;&lt;br /&gt;You are now ready to create your database Objects, custom Reports, Forms, Packages, etc &lt;br /&gt;&lt;br /&gt;Create the source code files in the XXRLT_TOP directory appropriate for the type of object.   For example forms would be located in $XXRLT_TOP/forms/US or package source code in $XXRLT_TOP/admin/sql for example. &lt;br /&gt;&lt;br /&gt;Database Objects, such as tables, indexes and sequences should be created in the XXRLT schema, and then you need to&lt;br /&gt;&lt;br /&gt;      a) Grant all privilege from each custom data object to the APPS schema.&lt;br /&gt;&lt;br /&gt;            For example :  logged in as XXRLT user&lt;br /&gt;&lt;br /&gt;                  grant all privileges on myTable to apps; &lt;br /&gt;&lt;br /&gt;      b) Create a synonym in APPS for each custom data object&lt;br /&gt;&lt;br /&gt;            For example :  logged in as APPS user&lt;br /&gt;&lt;br /&gt;                  create synonym myTable for XXRLT.myTable; &lt;br /&gt;&lt;br /&gt;13) Login to sysadmin, Application Developer Responsibility &lt;br /&gt;&lt;br /&gt;Application &gt; Form  ( Register the form )&lt;br /&gt;&lt;br /&gt;Application &gt; Funtion ( Add the form to a function )&lt;br /&gt;&lt;br /&gt;Application &gt; Menu ( Attach the function to a menu ) &lt;br /&gt;&lt;br /&gt;Menu that is added to a particular responsbility is given to specific user&lt;br /&gt;&lt;br /&gt;Security &gt; User &gt; Define&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-3668206472580269149?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/creating-custom-top.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-1071508828537774684</guid><pubDate>Tue, 15 Jul 2008 11:51:00 +0000</pubDate><atom:updated>2008-07-15T05:01:06.544-07:00</atom:updated><title>Installation of maintenance wizard</title><description>INSTALLING MAINTAINENCE WIZARD(Metalink Doc.id:329476.1)&lt;br /&gt;=========================================&lt;br /&gt;&lt;br /&gt;System Requirements&lt;br /&gt;---------------------&lt;br /&gt;Maintenance Wizard must be installed into an RDBMS 10g with a 10g iAS ORACLE_HOME on a UNIX or Linux machine. (Your e-Business Suite Applications may be on other operating systems, however). &lt;br /&gt;&lt;br /&gt;create group&lt;br /&gt;--------------- &lt;br /&gt;groupadd dba&lt;br /&gt;&lt;br /&gt;create user&lt;br /&gt;----------------&lt;br /&gt;useradd -g dba oracle&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MAINTENCE WIZARD&lt;br /&gt;================&lt;br /&gt;&lt;br /&gt;Prerequistite Instructions&lt;br /&gt;--------------------------&lt;br /&gt;Setting up OpenSSH&lt;br /&gt;On the Maintenance Wizard Node: &lt;br /&gt;Log in as the user who will own Maintenance Wizard. &lt;br /&gt;Generate the ssh key by issuing the following command: &lt;br /&gt;ssh-keygen -t rsa&lt;br /&gt;Press the Enter key three times. &lt;br /&gt;CD into the .ssh directory, which is located under the home directory. Note that a file called id_rsa.pub is created. &lt;br /&gt;Use FTP to copy id_rsa.pub to the /tmp directory of the Remote Nodes. &lt;br /&gt;&lt;br /&gt;On the Remote Node(s): &lt;br /&gt;----------------------&lt;br /&gt;Login as the user who owns the product being upgraded or maintained. For Applications tiers, use the applmgr account. For the database tiers, use the oracle account. &lt;br /&gt;Remove specialized .login, .profile or similar files which cause extra verbiage to be displayed to the screen. &lt;br /&gt;Create a directory called .ssh in the home directory. &lt;br /&gt;If an authorized_keys file does not exist, create a new, empty one. &lt;br /&gt;Copy the content of /tmp/id_rsa.pub (from the Maintenance Wizard Node) into a new file named authorized_keys. (If you already have a file called authorized_keys in this directory, open it in vi, go to the bottom of the file, add one blank line and then copy and paste the contents of the file /tmp/id_rsa.pub into the existing file and save it.) &lt;br /&gt;Verify that the .ssh directory permission is set to 700. &lt;br /&gt;Verify that the authorized_keys file permission is set to 600. &lt;br /&gt;Verify that the $HOME directory does not have write permissions for group and others. &lt;br /&gt;chmod go-w $HOME &lt;br /&gt;Repeat the above steps for each Remote Node&lt;br /&gt;&lt;br /&gt;Test the installation: &lt;br /&gt;----------------------&lt;br /&gt;Login to the Maintenance Wizard Node as Maintenance Wizard owner. &lt;br /&gt;Execute the following command, replacing [user] with the username on the Remote Node, and [SERVER] with the host name of the Remote Node: &lt;br /&gt;ssh -l [user] [SERVER]&lt;br /&gt;When prompted to confirm the identity, respond "Yes". &lt;br /&gt;Disconnect from the server. &lt;br /&gt;Execute the following command: &lt;br /&gt;ssh -l [user] [SERVER] echo 'foo' &lt;br /&gt;Only the word foo should appear, followed by the prompt, and you should not be asked to enter and ID or password. If you are prompted for a password, verify the following: &lt;br /&gt;The content of the authorized_keys file contains the content of id_rsa.pub of the client &lt;br /&gt;The permissions of the authorized_keys file are set to 600. &lt;br /&gt;The permissions of the .ssh directory are set to 700. &lt;br /&gt;The permissions of the $HOME directory do not include execute for group and other. &lt;br /&gt;If more than the word foo appears, then repeat the step above to remove all .login, .profile or similar files until ONLY the word foo appears.&lt;br /&gt;&lt;br /&gt;INSTALL 10g RDBMS 10.2.0&lt;br /&gt;========================&lt;br /&gt;hosts file&lt;br /&gt;----------&lt;br /&gt;vi /etc/hosts &lt;br /&gt;192.9.200.225 ias.oneapps.com  ias&lt;br /&gt;&lt;br /&gt;Set Kernel Parameters&lt;br /&gt;---------------------&lt;br /&gt;/etc/sysctl.conf &lt;br /&gt;kernel.shmall = 2097152&lt;br /&gt;kernel.shmmax = 2147483648&lt;br /&gt;kernel.shmmni = 4096&lt;br /&gt;# semaphores: semmsl, semmns, semopm, semmni&lt;br /&gt;kernel.sem = 250 32000 100 128&lt;br /&gt;fs.file-max = 65536&lt;br /&gt;net.ipv4.ip_local_port_range = 1024 65000&lt;br /&gt;net.core.rmem_default=262144&lt;br /&gt;net.core.rmem_max=262144&lt;br /&gt;net.core.wmem_default=262144&lt;br /&gt;net.core.wmem_max=262144&lt;br /&gt;&lt;br /&gt;/sbin/sysctl -p&lt;br /&gt;&lt;br /&gt;/etc/security/limits.conf &lt;br /&gt;soft    nproc   2047&lt;br /&gt;hard    nproc   16384&lt;br /&gt;soft    nofile  2048&lt;br /&gt;hard    nofile  65536&lt;br /&gt;&lt;br /&gt;set environment file in bash profile&lt;br /&gt;&lt;br /&gt;run ./runinstaller&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE DATABASE USING: $ORACLE_HOME/bin run DBCA&lt;br /&gt;-------------------------------------------------&lt;br /&gt;Choose "Create a Database". &lt;br /&gt;Choose "General Purpose". &lt;br /&gt;Specify the Global Database Name. &lt;br /&gt;Specify whether to configure to database with Enterprise Manager. &lt;br /&gt;Set the default password for the SYS and SYSTEM accounts. (PLEASE, record these in a secure location!) &lt;br /&gt;Choose your storage mechanism. We recommend that you choose "File System" and select a Common Location. &lt;br /&gt;Specify any desired recovery options. &lt;br /&gt;Specify NO sample schemas. &lt;br /&gt;In the Character Sets tab, do NOT modify the Default Language (American) and Default Date Format (US). &lt;br /&gt;Specify the desired values for parameters SGA, PGA and processes. &lt;br /&gt;When the process has completed, exit the Database Creation Assistant. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;INSTALL 10G ias 10.1.3&lt;br /&gt;----------------------&lt;br /&gt;rpms&lt;br /&gt;&lt;br /&gt;glibc-2.3.4-2.9&lt;br /&gt;glibc-common-2.3.4-2.9&lt;br /&gt;binutils-2.15.92.0.2-13&lt;br /&gt;compat-libstdc++-296-2.96-132.7.2&lt;br /&gt;gcc-3.4.3-22.1&lt;br /&gt;gcc-c++-3.4.3-22.1&lt;br /&gt;libstdc++-3.4.3-22.1&lt;br /&gt;libstdc++-devel-3.4.3-22.1&lt;br /&gt;openmotif21-2.1.30-11.RHEL4.4&lt;br /&gt;pdksh-5.2.14-30&lt;br /&gt;setarch-1.6-1&lt;br /&gt;make-3.80-5&lt;br /&gt;gnome-libs-1.4.1.2.90-44.1&lt;br /&gt;sysstat-5.0.5-1&lt;br /&gt;compat-db-4.1.25-9&lt;br /&gt;compat-libstdc++-devel-7.3-2.96.128&lt;br /&gt;compat-glibc-7.x-2.2.4.32.6&lt;br /&gt;compat-libstdc++-7.3-2.96.128&lt;br /&gt;control-center-2.8.0-12&lt;br /&gt;xscreensaver-4.18-5.rhel4.2&lt;br /&gt;&lt;br /&gt;./runinstaller&lt;br /&gt;&lt;br /&gt;To copy the file: &lt;br /&gt;-----------------&lt;br /&gt;cp &lt;RDBMS ORACLE_HOME&gt;/network/admin/tnsnames.ora &lt;iAS ORACLE_HOME&gt;/network/admin/&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;create a symbolic link: &lt;br /&gt;&lt;br /&gt;cd &lt;iAS ORACLE_HOME&gt;/network/admin&lt;br /&gt;ln -s &lt;RDBMS ORACLE_HOME&gt;/network/admin/tnsnames.ora tnsnames.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Create the NEWEOF tablespace where the Maintenance Wizard schema objects will be stored&lt;br /&gt;sqlplus&lt;br /&gt;system user&lt;br /&gt;&lt;br /&gt;create tablespace NEWEOF datafile '/u01/oracle/oradata/eof01.dbf' size 50M AUTOEXTEND ON NEXT 5M MAXSIZE 75M;&lt;br /&gt;&lt;br /&gt;Verify that Zip and UnZip executables are installed and that ping is in the $PATH using the following commands: &lt;br /&gt;which zip&lt;br /&gt;which unzip&lt;br /&gt;which ping &lt;br /&gt;&lt;br /&gt;Installation Steps&lt;br /&gt;==================&lt;br /&gt;SU - ORACLE&lt;br /&gt;&lt;br /&gt;SET BASH PROFILE RDBMS 10g&lt;br /&gt;&lt;br /&gt;ORACLE_HOME=&lt;RDBMS ORACLE_HOME&gt;; export ORACLE_HOME&lt;br /&gt;PATH=$ORACLE_HOME/bin:$PATH; export PATH&lt;br /&gt;TWO_TASK=&lt;connect_string of the database used for the installation of this tool&gt;;export TWO_TASK &lt;br /&gt;TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;create the Maintenance Wizard directory in the RDBMS $ORACLE_HOME directory&lt;br /&gt;&lt;br /&gt;cd $ORACLE_HOME&lt;br /&gt;mkdir eof&lt;br /&gt;EOF_HOME=$ORACLE_HOME/eof; export EOF_HOME &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DOWN LOAD THE Maintenance Wizard PATCH =6972475&lt;br /&gt;&lt;br /&gt;unzip it into $EOF_HOME&lt;br /&gt;&lt;br /&gt;cd ${EOF_HOME}/config &lt;br /&gt;&lt;br /&gt;Run the installation script&lt;br /&gt;./setup.sh &lt;br /&gt;&lt;br /&gt;Stop and restart iAS. &lt;br /&gt;opmnctl stopall&lt;br /&gt;opmnctl startall &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Post Install Steps&lt;br /&gt;==================&lt;br /&gt;&lt;br /&gt;Secure the $EOF_HOME/EOF.env file. &lt;br /&gt;chmod 700 $EOF_HOME/EOF.env &lt;br /&gt;&lt;br /&gt;URL http://&lt;hostname&gt;.&lt;domain&gt;:&lt;ApachePort&gt;/EOF/&lt;br /&gt;&lt;br /&gt;SYSADMIN/YOURPASS:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-1071508828537774684?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/installation-of-maintenance-wizard.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-8752705811186133431</guid><pubDate>Tue, 15 Jul 2008 11:40:00 +0000</pubDate><atom:updated>2008-07-15T04:43:28.098-07:00</atom:updated><title>Create A Production (Full or Partial) Duplicate On The Same Host</title><description>Create A Production (Full or Partial) Duplicate On The Same Host&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;(Metalink Doc.id:388424.1)&lt;br /&gt;&lt;br /&gt;Primary DB : ORCL&lt;br /&gt;Clone DB   :  AUX&lt;br /&gt;&lt;br /&gt;Production Database should be archive enabled.&lt;br /&gt;&lt;br /&gt;Startup mount;&lt;br /&gt;alter database archivelog;&lt;br /&gt;alter database open;&lt;br /&gt;archive log list;&lt;br /&gt;&lt;br /&gt;Recovery catalog for RMAN &lt;br /&gt;&lt;br /&gt;Creating the Recovery Catalog Owner &lt;br /&gt;Start by creating a database schema (usually called rman). Assign an appropriate tablespace to it and grant it the recovery_catalog_owner role. Look at this example:&lt;br /&gt;&lt;br /&gt;% sqlplus '/ as sysdba'&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE USER rman IDENTIFIED BY rman&lt;br /&gt;     DEFAULT TABLESPACE tools  &lt;br /&gt;     TEMPORARY TABLESPACE temp&lt;br /&gt;     QUOTA UNLIMITED ON tools; &lt;br /&gt;&lt;br /&gt;SQL&gt; GRANT CONNECT, RECOVERY_CATALOG_OWNER TO rman;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating the Recovery Catalog &lt;br /&gt;&lt;br /&gt;% rman catalog rman/rman@ORCL&lt;br /&gt;&lt;br /&gt;RMAN&gt; CREATE CATALOG; &lt;br /&gt;&lt;br /&gt;Registering the target database&lt;br /&gt;&lt;br /&gt;% rman TARGET / CATALOG rman/rman@ORCL&lt;br /&gt;&lt;br /&gt;RMAN&gt; REGISTER DATABASE; &lt;br /&gt;&lt;br /&gt;Reference : Note:452529.1 &lt;br /&gt;Reference : RMAN: How to Query the RMAN Recovery Catalog ( Note:98342.1 )&lt;br /&gt;&lt;br /&gt;Example Source Listener.ora&lt;br /&gt;&lt;br /&gt;SID_LIST_LISTENER =&lt;br /&gt;  (SID_LIST =&lt;br /&gt;    (SID_DESC =&lt;br /&gt;      (SID_NAME = PLSExtProc)&lt;br /&gt;      (ORACLE_HOME = /newpart//product/10.2.0/)&lt;br /&gt;      (PROGRAM = extproc)&lt;br /&gt;    )&lt;br /&gt;    (SID_DESC =&lt;br /&gt;      (GLOBAL_DBNAME = ORCL)&lt;br /&gt;      (ORACLE_HOME = /newpart//product/10.2.0)&lt;br /&gt;      (SID_NAME = ORCL)&lt;br /&gt;    )&lt;br /&gt;    (SID_DESC =&lt;br /&gt;      (GLOBAL_DBNAME = AUX)&lt;br /&gt;      (ORACLE_HOME = /newpart//product/10.2.0)&lt;br /&gt;      (SID_NAME = AUX)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;LISTENER =&lt;br /&gt;  (DESCRIPTION_LIST =&lt;br /&gt;    (DESCRIPTION =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (DESCRIPTION =&lt;br /&gt;      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example Source tnsnames.ora&lt;br /&gt;&lt;br /&gt;AUX =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SERVICE_NAME = AUX)(UR=A)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;ORCL =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SERVICE_NAME = ORCL)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;EXTPROC_CONNECTION_DATA =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SID = PLSExtProc)&lt;br /&gt;      (PRESENTATION = RO)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note : Make use of netca and netmgr to configure listener and tnsnames&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#Find Production Database Files:&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$datafile;&lt;br /&gt;Create the Auxiliary Database directories needed&lt;br /&gt;cd $ORACLE_HOME/dbs&lt;br /&gt;create parameter file initAUX.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;db_file_name_convert = ('/old/path1', '/new/path1',&lt;br /&gt;                                          '/old/path2', '/new/path2',&lt;br /&gt;                                          '/old/path3', '/new/path3')&lt;br /&gt;&lt;br /&gt;log_file_name_convert = ('/old/path1', '/new/path1',&lt;br /&gt;                                          '/old/path2', '/new/path2',&lt;br /&gt;                                          '/old/path3', '/new/path3')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;eg:-&lt;br /&gt;&lt;br /&gt;db_name = aux&lt;br /&gt;db_block_size = 8192&lt;br /&gt;compatible = 10.2.0.1.0&lt;br /&gt;remote_login_passwordfile = exclusive&lt;br /&gt;control_files = ('/newpart/oradata/aux/control01.ctl',&lt;br /&gt;                         '/newpart/oradata/aux/control02.ctl')&lt;br /&gt;db_file_name_convert = ('/newpart/oradata/orcl',&lt;br /&gt;                                         '/newpart/oradata/aux')&lt;br /&gt;log_file_name_convert = ('/newpart/oradata/orcl',&lt;br /&gt;                                           '/newpart/oradata/aux')&lt;br /&gt;*.undo_management='AUTO'&lt;br /&gt;*.undo_tablespace='UNDOTBS1'&lt;br /&gt;&lt;br /&gt;# create a passwordfile for remote connections as sysdba&lt;br /&gt;&lt;br /&gt;% orapwd password=&lt;sys_pwd&gt; file=orapwAUX&lt;br /&gt;&lt;br /&gt;% sqlplus /nolog&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt;SQL&gt; startup nomount pfile=$ORACLE_HOME/dbs/initAUX.ora&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Start the Duplication&lt;br /&gt;ORACLE_SID=AUX; export ORACLE_SID # ksh&lt;br /&gt;sqlplus /nolog&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt;     Connected to an idle instance&lt;br /&gt;SQL&gt; startup nomount pfile=$ORACLE_HOME/dbs/initAUX.ora&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Set your SID back to the TARGET for duplication. &lt;br /&gt;&lt;br /&gt;&gt; rman trace.log&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production&lt;br /&gt;Copyright (c)  Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;RMAN&gt; connect target&lt;br /&gt;connected to target database: V10GREL4 (DBID=2510891965)&lt;br /&gt;&lt;br /&gt;RMAN&gt;backup database;&lt;br /&gt;&lt;br /&gt;RMAN&gt;sql 'alter system switch logfile';&lt;br /&gt;&lt;br /&gt;RMAN&gt; connect auxiliary sys/pwd@AUX&lt;br /&gt;connected to auxiliary database: AUX (not mounted)&lt;br /&gt;&lt;br /&gt;RMAN&gt; duplicate target database to AUX device type disk;&lt;br /&gt;Once this is done, login to duplicate database with alter database open resetlogs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-8752705811186133431?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/create-production-full-or-partial.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-4105823889893951341</guid><pubDate>Tue, 15 Jul 2008 11:20:00 +0000</pubDate><atom:updated>2008-07-15T04:35:26.138-07:00</atom:updated><title>Creating a Duplicate Database on a New Host Using RMAN</title><description>Creating a Duplicate Database on a New Host Using RMAN(Metalink Doc.id:388431.1)&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;Reference:&lt;br /&gt;---------------&lt;br /&gt;Primary Database SID   : ORCL&lt;br /&gt;Duplicate Database SID : AUX&lt;br /&gt;RMAN Catalog SID       : RMAN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# export ORACLE_SID=ORCL&lt;br /&gt;&lt;br /&gt;# rman target=/ catalog=rman/rman@ORCL&lt;br /&gt;&lt;br /&gt;RMAN&gt; run {&lt;br /&gt;allocate channel d1 type disk;&lt;br /&gt;backup format '/backups/PROD/df_t%t_s%s_p%p' database;&lt;br /&gt;sql 'alter system archive log current';&lt;br /&gt;backup format '/backups/PROD/al_t%t_s%s_p%p' archivelog all;&lt;br /&gt;release channel d1;&lt;br /&gt;}&lt;br /&gt;This command will perform a full database backup including archivelogs and the current controlfile.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Host B (Aux)&lt;br /&gt;&lt;br /&gt;    Making the backup available for the duplicate process.&lt;br /&gt;&lt;br /&gt;If your backup resides on disk you will need to copy this back up from host A to host B. Ensure you place it in the same directory as where it was created. &lt;br /&gt;RMAN&gt; list backup;&lt;br /&gt;&lt;br /&gt;Create same directory of host b and give appropriate permissions for the oracle user&lt;br /&gt;    &lt;br /&gt;Create the pfile [initAUX.ora] parameter file in the $ORACLE_HOME/dbs directory for the auxiliary database. &lt;br /&gt;------------------------------------------------------------------------------------------&lt;br /&gt;db_name = aux&lt;br /&gt;db_block_size = 8192&lt;br /&gt;compatible = 10.2.0.1.0&lt;br /&gt;remote_login_passwordfile = exclusive&lt;br /&gt;control_files = ('/d02/oradata/aux/control01.ctl')&lt;br /&gt;db_file_name_convert = ('/newpart/oradata/orcl',&lt;br /&gt;                        '/d02/oradata/aux')&lt;br /&gt;log_file_name_convert = ('/newpart/oradata/orcl',&lt;br /&gt;                         '/d02/oradata/aux')&lt;br /&gt;*.undo_management='AUTO'&lt;br /&gt;*.undo_tablespace='UNDOTBS1'&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;   Following the creation of the initAUX.ora startup nomount the auxiliary instance.&lt;br /&gt;export ORACLE_SID=AUX&lt;br /&gt;&lt;br /&gt;sqlplus '/as sysdba'&lt;br /&gt;&lt;br /&gt;startup nomount;&lt;br /&gt;&lt;br /&gt;Ensuring SQL*NET connections to primary database and RMAN catalog are  working.&lt;br /&gt;&lt;br /&gt;Host B(AUX)&lt;br /&gt;&lt;br /&gt;sqlplus ‘sys/oracle@PROD as sysdba’&lt;br /&gt;sqlplus rman/rman@PROD   (not mandatory)&lt;br /&gt;&lt;br /&gt;Add tnsnames.ora entry – Eg:&lt;br /&gt;ORCL =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SERVICE_NAME = ORCL)&lt;br /&gt;    )&lt;br /&gt;  ) &lt;br /&gt;&lt;br /&gt;Prepare RMAN duplicate script.&lt;br /&gt;------------------------------------&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;allocate auxiliary channel C1 device type disk;&lt;br /&gt;duplicate target database to AUX;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Save it as dup.sql&lt;br /&gt;    &lt;br /&gt;Execute the RMAN script&lt;br /&gt;&lt;br /&gt;Start RMAN, connect to the production target, the catalog instance and also the auxiliary clone. Run the RMAN duplicate script as shown below. Before doing this ensure that the Oracle SID environment variable is set to the duplicate clone database.&lt;br /&gt;# export ORACLE_SID=AUX&lt;br /&gt;&lt;br /&gt;# rman target sys/pwd@ORCL catalog rman/rman@ORCL auxiliary /&lt;br /&gt;&lt;br /&gt;RMAN&gt; @dup.sql&lt;br /&gt;After this, login to aux database and alter database open with resetlogs option.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-4105823889893951341?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/creating-duplicate-database-on-new-host.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-4366548703001305193</guid><pubDate>Tue, 15 Jul 2008 11:09:00 +0000</pubDate><atom:updated>2008-07-15T04:13:13.806-07:00</atom:updated><title>Database cloning</title><description>1. Ensure that your database is recoverable back to original location and state by backing it up before executing this procedure:&lt;br /&gt;&lt;br /&gt;Database in NON-ARCHIVE LOG MODE - take an off-line database backup.&lt;br /&gt;Database in ARCHIVELOG MODE - take an on-line or off-line database backup.&lt;br /&gt;&lt;br /&gt;2.  Connect to sql*plus as the user  ‘SYS AS SYSDBA’ and ensure that all users have logged off the system by executing the following command.&lt;br /&gt;&lt;br /&gt; SQL&gt; connect / as sysdba&lt;br /&gt; Connected.&lt;br /&gt; SQL&gt; select username from v$session;&lt;br /&gt;USERNAME&lt;br /&gt;&lt;br /&gt;-----&lt;br /&gt;-----&lt;br /&gt;-----&lt;br /&gt;-----&lt;br /&gt;SYS&lt;br /&gt;8 rows selected.&lt;br /&gt;SQL&gt;&lt;br /&gt;&lt;br /&gt;You should see several fields returning with no username (these are internal oracle logins and the will not affect your operations) and one SYS login (this is you).&lt;br /&gt;&lt;br /&gt;3.  Place the system in restricted mode:&lt;br /&gt;&lt;br /&gt; SQL&gt; alter system enable restricted session;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;4. Connect as SYS with SYSDBA privileges and execute the following SQL command:&lt;br /&gt;&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt; Connected.&lt;br /&gt;    SQL&gt; alter database backup controlfile to trace;&lt;br /&gt; SQL&gt; &lt;br /&gt;&lt;br /&gt;The [alter database backup controlfile to trace;] command will generate a SQL script that can be used to regenerate the database. &lt;br /&gt;&lt;br /&gt;5.  Execute the sql*plus command show parameter &lt;parameter_name&gt; to find your user dump directory.&lt;br /&gt;&lt;br /&gt;SQL&gt; show parameter user_dump_dest&lt;br /&gt;NAME                        TYPE        VALUE&lt;br /&gt;-------------------------- ----------- ------------------------------&lt;br /&gt;user_dump_dest          string      /opt/app/oracle/product/admin/orcl/udump&lt;br /&gt;&lt;br /&gt;6.  Exit to the OS layer and move to the user_dump_dest directory.  Trace file names are generated by oracle in the following format [instance_name]+[oracle generated number].trc, so use the timestamp to locate the last trace file generated.  Open the file in a text editor and remove everything above the ‘STARTUP NOMOUNT ..' statement. Alter the  ‘CREATE CONTROLFILE’ statement for the following uses:&lt;br /&gt;&lt;br /&gt;Rename DB in Archivelog mode:&lt;br /&gt;         CREATE CONTROLFILE SET DATABASE "new_db_name" RESETLOGS&lt;br /&gt;         ARCHIVELOG&lt;br /&gt;&lt;br /&gt;Rename DB in Non-Archivelog mode:&lt;br /&gt; CREATE CONTROLFILE SET DATABASE "new_db_name" NORESETLOGS&lt;br /&gt;         NOARCHIVELOG&lt;br /&gt;&lt;br /&gt;Reuse DB name in Archivelog mode:&lt;br /&gt;CREATE CONTROLFILE REUSE DATABASE "db_name"  RESETLOGS  ARCHIVELOG&lt;br /&gt;&lt;br /&gt;Reuse DB name in Non-Archivelog mode:&lt;br /&gt; CREATE CONTROLFILE REUSE DATABASE "db_name"  NORESETLOGS&lt;br /&gt;         NOARCHIVELOG&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7.  Edit the rest of this file to reference the correct locations of you log files, datafiles and temp files.&lt;br /&gt;&lt;br /&gt;8.  Move the trace file to an appropriate location and name to recreate_db.sql.&lt;br /&gt;&lt;br /&gt;9.  Connect as SYS with SYSDBA privileges and shutdown the database in immediate mode:&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt; Connected.&lt;br /&gt;    SQL&gt; shutdown immediate&lt;br /&gt;&lt;br /&gt;10. Move the following files to there corresponding locations in updated recreate_db.sql file.&lt;br /&gt; DATAFILES&lt;br /&gt; Log files&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;11. Restore or copy the backup and the archived logs (if any) to the new machine.&lt;br /&gt;&lt;br /&gt;12. Move your INIT$ORACLE_SID.ORA file to its new location. Ensure your controlfile and archive destinations in INIT are set properly to the new locations.&lt;br /&gt;&lt;br /&gt;13. Connect to SQLPLUS on your new machine as SYS AS SYSDBA and run create_db.sql script as follows:&lt;br /&gt;&lt;br /&gt;SQL&gt; @[directory_location]/create_db.sql&lt;br /&gt;&lt;br /&gt;14.  Change the global database name if you renamed your database as follows:&lt;br /&gt;&lt;br /&gt;     SQL&gt; ALTER DATABASE RENAME GLOBAL_NAME = new_db_name;&lt;br /&gt;&lt;br /&gt;15.  Perform full system backup and store in a safe location.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-4366548703001305193?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/database-cloning.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-7883849050293305631</guid><pubDate>Tue, 15 Jul 2008 10:43:00 +0000</pubDate><atom:updated>2008-07-15T04:00:03.254-07:00</atom:updated><title>10g AS installation with linux</title><description>Part I: Installing Linux&lt;br /&gt;----------------------------&lt;br /&gt;This Minimum Hardware Configuration For Linux Server:&lt;br /&gt;• 800MHz Pentium III CPU&lt;br /&gt;• 1GB of RAM (Minimum)&lt;br /&gt;• Hard Disk – 40 GB ((IDE, SCSI, or FireWire) with at least 10GB of free space.&lt;br /&gt;• One 100Base-T Ethernet adapter&lt;br /&gt;A fresh install of OS (Linux ) is Desired (as opposed to an upgrade), that the server will be&lt;br /&gt;dedicated to Oracle, and that no other operating systems or data are on the server.&lt;br /&gt;RHEL4 Installation&lt;br /&gt;Oracle Database 10g Release 2 is certified to run the base release of RHEL4 (Advanced&lt;br /&gt;Server and Enterprise Server) without updates.&lt;br /&gt;Steps:&lt;br /&gt;---------&lt;br /&gt;1. Boot the server using the first CD.&lt;br /&gt;o You may need to change your BIOS settings to allow booting from the CD.&lt;br /&gt;2. The boot screen appears with the boot: prompt at the bottom of the screen.&lt;br /&gt;o Select Enter to continue with a graphical install on the console.&lt;br /&gt;o The installer scans your hardware, briefly displays the Red Hat splash screen,&lt;br /&gt;and then begins a series of screen prompts.&lt;br /&gt;3. Language Selection&lt;br /&gt;o Accept the default.&lt;br /&gt;4. Keyboard Configuration&lt;br /&gt;o Accept the default.&lt;br /&gt;5. Welcome Screen&lt;br /&gt;o Click on Next.&lt;br /&gt;6. Disk Partitioning Setup&lt;br /&gt;Note: Improperly partitioning a disk is one of the surest and fastest ways to wipe out&lt;br /&gt;everything on your hard disk. If you are unsure how to proceed, stop and get help,&lt;br /&gt;or you will risk losing data!&lt;br /&gt;&lt;br /&gt;Minimum Partition Requirements&lt;br /&gt;-------------------------------------&lt;br /&gt; The 9GB disk on the first controller (/dev/sda) will hold all Linux and&lt;br /&gt;Oracle software and contains the following partitions:&lt;br /&gt; 100MB /boot partition&lt;br /&gt; 1,500MB swap partition—Set this to at least twice the amount of RAM in&lt;br /&gt;the system but to no more than 2GB. (As 32-bit systems do not support&lt;br /&gt;swap files larger than 2GB.)&lt;br /&gt; 8,192MB for /usr&lt;br /&gt; 1024 MB for /tmp&lt;br /&gt; 256MB for /boot&lt;br /&gt; 1024 MB for /home&lt;br /&gt; 512MB for /opt&lt;br /&gt; 512MB for /var&lt;br /&gt;OR&lt;br /&gt; 15,630 MB(15GB) for root partition—This partition will be used for&lt;br /&gt;everything, including /usr, /tmp, /var, /opt, /home, and more. Boot&lt;br /&gt;Loader Configuration&lt;br /&gt;&lt;br /&gt;7. Network Configuration&lt;br /&gt;o It is usually best to configure database servers with a static IP address. To do&lt;br /&gt;so, click on Edit .&lt;br /&gt;o A pop-up window appears. Uncheck the Configure using DHCP box, and&lt;br /&gt;enter the IP Address and Netmask for the server. Be sure that Activate on&lt;br /&gt;boot is checked, and click on OK .&lt;br /&gt;o In the Hostname box, select manually and enter the hostname.&lt;br /&gt;o In the Miscellaneous Settings box, enter the remaining network settings.&lt;br /&gt;&lt;br /&gt;8. Firewall Configuration&lt;br /&gt;o For the purposes of this installation, no firewall is configured. Select No&lt;br /&gt;firewall&lt;br /&gt;o Select Disabled on the "Enable SELinux" drop down list.&lt;br /&gt;o Click on Proceed when the "Warning - No Firewall" window appears.&lt;br /&gt;&lt;br /&gt;9. Additional Language Support&lt;br /&gt;o Accept the default.&lt;br /&gt;&lt;br /&gt;10. Time Zone Selection&lt;br /&gt;o Choose the time settings that are appropriate for your area. Setting the system&lt;br /&gt;clock to UTC is usually a good practice for servers. To do so, click on System&lt;br /&gt;clock uses UTC.&lt;br /&gt;&lt;br /&gt;11. Set Root Password&lt;br /&gt;o Enter a password for root, and enter it again to confirm.&lt;br /&gt;Note: If you need more than 2GB of swap space, create multiple swap&lt;br /&gt;partitions.&lt;br /&gt;&lt;br /&gt;12. Package Installation Defaults&lt;br /&gt;o Select Customize software packages to be installed.&lt;br /&gt;o Select Install Everything&lt;br /&gt;o Click on Next to proceed.&lt;br /&gt;&lt;br /&gt;13. Installing Packages&lt;br /&gt;o Software will be copied to the hard disk and installed. Change disks as&lt;br /&gt;prompted.&lt;br /&gt;&lt;br /&gt;14. Congratulations&lt;br /&gt;o Remove the installation media from the system, and click on Reboot.&lt;br /&gt;&lt;br /&gt;15. The system automatically reboots and presents a new welcome screen.&lt;br /&gt;o Click on Next.&lt;br /&gt;&lt;br /&gt;16. License Agreement&lt;br /&gt;o Read the license agreement. If you agree to the terms, select Yes, I agree to&lt;br /&gt;the License Agreement and click on Next.&lt;br /&gt;&lt;br /&gt;17. Date and Time&lt;br /&gt;o Set the Date and Time.&lt;br /&gt;o If you want to use an NTP server (recommended), select Enable Network&lt;br /&gt;Time Protocol and enter the name of the NTP server.&lt;br /&gt;&lt;br /&gt;18. Display&lt;br /&gt;o Accept the defaults or change as required.&lt;br /&gt;&lt;br /&gt;19. Red Hat Login&lt;br /&gt;o Enter your Red Hat Network login and password or create a new one.&lt;br /&gt;&lt;br /&gt;20. System User&lt;br /&gt;o Create an account for yourself.&lt;br /&gt;o Do not create an account for oracle at this time.&lt;br /&gt;&lt;br /&gt;21. Additional CDs&lt;br /&gt;o Click on Next.&lt;br /&gt;&lt;br /&gt;22. Finish Setup&lt;br /&gt;o Click on Next.&lt;br /&gt;&lt;br /&gt;23. A graphical login screen appears.&lt;br /&gt;&lt;br /&gt;24. Congratulations! Your RHEL4 software is now installed.&lt;br /&gt;Verifying the Installation&lt;br /&gt;Required kernel version: 2.6.9-5.0.5.EL This kernel, or any of the kernels supplied in&lt;br /&gt;updates, works with Oracle Database 10g Release 2 .&lt;br /&gt;&lt;br /&gt;Check your kernel version by running the following command:&lt;br /&gt;#uname -r&lt;br /&gt;2.6.9-11.ELsmp&lt;br /&gt;Once you've completed the steps above, all of the packages required for Oracle Database&lt;br /&gt;10g Release 2 will have been installed. Verify this using the example below.&lt;br /&gt;&lt;br /&gt;Required package versions (or later):&lt;br /&gt;-----------------------------------------&lt;br /&gt;• binutils-2.15.92.0.2-10.EL4&lt;br /&gt;• compat-db-4.1.25-9&lt;br /&gt;• control-center-2.8.0-12&lt;br /&gt;• gcc-3.4.3-9.EL4&lt;br /&gt;• gcc-c++-3.4.3-9.EL4&lt;br /&gt;• glibc-2.3.4-2&lt;br /&gt;• glibc-common-2.3.4-2&lt;br /&gt;• gnome-libs-1.4.1.2.90-44.1&lt;br /&gt;• libstdc++-3.4.3-9.EL4&lt;br /&gt;• libstdc++-devel-3.4.3-9.EL4&lt;br /&gt;• make-3.80-5&lt;br /&gt;• pdksh-5.2.14-30&lt;br /&gt;• sysstat-5.0.5-1&lt;br /&gt;• xscreensaver-4.18-5.rhel4.2&lt;br /&gt;• libaio-0.3.96&lt;br /&gt;• openmotif21-2.1.30-11.RHEL4.2&lt;br /&gt;&lt;br /&gt;To see which versions of these packages are installed on your system, run the following&lt;br /&gt;command:&lt;br /&gt;# rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common \ gnomelibs&lt;br /&gt;libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio openmotif21&lt;br /&gt; Check for any uninstalled RPMs&lt;br /&gt; Some RPMs need to be upgraded&lt;br /&gt;For RPM installation&lt;br /&gt;# rpm –ivh &lt;package name&gt;&lt;br /&gt;For RPM Update&lt;br /&gt;# rpm –Uvh &lt;package name&gt;&lt;br /&gt;&lt;br /&gt;If any of the package versions on your system are missing or the versions are earlier than&lt;br /&gt;those specified above, you can download and install the updates from the Linux Portal&lt;br /&gt;(&lt;a href="http://rpm.pbone.net"&gt;rpm.pbone.net&lt;/a&gt;/).&lt;br /&gt;# rpm –Uvh &lt;package name &gt; # for Updating Installed RPM to the required version.&lt;br /&gt;&lt;br /&gt;Part II: Configuring Linux for Oracle&lt;br /&gt;-------------------------------------------&lt;br /&gt;Now Linux software is installed, we need to configure it for Oracle. The steps required to&lt;br /&gt;configure Linux for Oracle Database 10g Release 2.&lt;br /&gt;Verifying System Requirements&lt;br /&gt;To verify that your system meets the minimum requirements for an Oracle Database 10g&lt;br /&gt;Release 2 database, log in as root and run the commands below.&lt;br /&gt;&lt;br /&gt;To check the amount of RAM and swap space available, run this:&lt;br /&gt;# grep MemTotal /proc/meminfo&lt;br /&gt;MemTotal: 1034680 kB&lt;br /&gt;# grep SwapTotal /proc/meminfo&lt;br /&gt;SwapTotal: 1534196 kB&lt;br /&gt;The minimum RAM required is 1024MB, and the minimum required swap space is 1GB.&lt;br /&gt;Note: Swap space should be twice the amount of RAM for systems with 2GB of RAM or&lt;br /&gt;less and between one and two times the amount of RAM for systems with more than 2GB.&lt;br /&gt;&lt;br /&gt;The Minimum Space Requirement for Oracle DB 10g R2&lt;br /&gt;• 2.5GB for the Oracle Database 10g Release2 Software&lt;br /&gt;• 1.2GB for the database.&lt;br /&gt;• The /tmp directory needs at least 400MB of free space.&lt;br /&gt;&lt;br /&gt;To check the available disk space on your system, run the following command:&lt;br /&gt;# df -h&lt;br /&gt;[oracle@oneman ~]$ df -h&lt;br /&gt;Filesystem Size Used Avail Use% Mounted on&lt;br /&gt;/dev/hdc7 4.9G 485M 4.1G 11% /&lt;br /&gt;/dev/hdc1 291M 16M 260M 6% /boot&lt;br /&gt;/dev/hdc2 79G 6.3G 69G 9% /d01&lt;br /&gt;/dev/hdc9 26G 8.4G 16G 35% /d02&lt;br /&gt;none 497M 0 497M 0% /dev/shm&lt;br /&gt;/dev/hdc3 15G 218M 14G 2% /home&lt;br /&gt;/dev/hdc6 9.7G 56M 9.1G 1% /tmp&lt;br /&gt;/dev/hdc5 12G 5.8G 5.3G 53% /usr&lt;br /&gt;&lt;br /&gt;Create the Oracle Groups and User Account&lt;br /&gt;Oracle AS 10gR2 Comprising of two tiers&lt;br /&gt;1. Infra Tier ( Infrastructure )&lt;br /&gt;• Database&lt;br /&gt;• HTTP Server&lt;br /&gt;• OC4J&lt;br /&gt;• OID&lt;br /&gt;&lt;br /&gt;2. Middle Tier&lt;br /&gt;• Application Server&lt;br /&gt;• Discoverer&lt;br /&gt;• Portal&lt;br /&gt;• Forms&lt;br /&gt;• Reports&lt;br /&gt;• OC4J&lt;br /&gt;• HTTP Server&lt;br /&gt;&lt;br /&gt;So We need to Create 2 User Accounts ( For Infra &amp; Middle Tier)&lt;br /&gt;Create the Linux groups and user account that will be used to install and maintain the Oracle&lt;br /&gt;Database 10g Release 2 software. The user accounts will be called orainfra, and oramid&lt;br /&gt;the groups will be oinstall and dba. Execute the following commands as root:&lt;br /&gt;# groupadd oinstall&lt;br /&gt;# groupadd dba&lt;br /&gt;# useradd -g oinstall -G dba orainfra&lt;br /&gt;# id orainfra&lt;br /&gt;uid=500(orainfra)gid=502(oinstall)groups=502(oinstall),503(dba)&lt;br /&gt;&lt;br /&gt;Set the password on the orainfra account:&lt;br /&gt;# passwd orainfra&lt;br /&gt;Changing password for user orainfra.&lt;br /&gt;New password:&lt;br /&gt;Retype new password:&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;# useradd -g oinstall -G dba oramid&lt;br /&gt;# id oramid&lt;br /&gt;uid=501(oramid) gid=502(oinstall) groups=502(oinstall),503(dba)&lt;br /&gt;# passwd oramid&lt;br /&gt;Changing password for user oramid.&lt;br /&gt;New password:&lt;br /&gt;Retype new password:&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;&lt;br /&gt;Creation of Directories&lt;br /&gt;-----------------------------&lt;br /&gt;Now create two directories to store the Oracle Database 10g Release 2 Infrastructure and&lt;br /&gt;the Middle Tier.&lt;br /&gt;Note: The following directories are being created in the root filesystem. This is done for the&lt;br /&gt;sake of simplicity and is not recommended as a general practice. These directories would&lt;br /&gt;normally be created as separate file systems.&lt;br /&gt;&lt;br /&gt;Issue the following commands as root:&lt;br /&gt;--For Infra Tier&lt;br /&gt;#mkdir -p /u01/OraHome_1&lt;br /&gt;#chown -R orainfra:oinstall /u01/OraHome_1&lt;br /&gt;#chmod -R 777 //u01/OraHome_1&lt;br /&gt;--For Middle Tier&lt;br /&gt;#mkdir -p /u01/OraHome_2&lt;br /&gt;#chown -R oramid:oinstall /u01/OraHome_1&lt;br /&gt;#chmod -R 777 //u01/OraHome_1&lt;br /&gt;&lt;br /&gt;Configuring the Linux Kernel Parameters&lt;br /&gt;Linux allows modification of most kernel parameters while the system is up and running.&lt;br /&gt;There's no need to reboot the system after making kernel parameter changes. Oracle&lt;br /&gt;Database 10g Release 2 requires the kernel parameter settings shown below. The values&lt;br /&gt;given are minimums, so if your system uses a larger value, don't change it.&lt;br /&gt;Run the Following Commands as Root&lt;br /&gt;# cat &gt;&gt; /etc/sysctl.conf &lt;&lt;EOF&lt;br /&gt;&gt; kernel.sysrq = 0&lt;br /&gt;&gt; kernel.shmmax = 4294967295&lt;br /&gt;&gt; kernel.shmmni = 4096&lt;br /&gt;&gt; kernel.sem = 256 32000 100 142&lt;br /&gt;&gt; kernel.msgmnb = 65535&lt;br /&gt;&gt; EOF&lt;br /&gt;&lt;br /&gt;Note: If you're following along and have just installed Linux, the kernel parameters will&lt;br /&gt;all be at their default values and you can just cut and paste the following commands&lt;br /&gt;while logged in as root.&lt;br /&gt;To Refresh the Keranel Issue the following Command.&lt;br /&gt;# /etc/sysctl -p&lt;br /&gt;&lt;br /&gt;Part III: Installing Oracle Infrastructure&lt;br /&gt;-------------------------------------------------&lt;br /&gt;Installing Oracle Infrastructure&lt;br /&gt;Log in using the orainfra account.&lt;br /&gt;# su - orainfra&lt;br /&gt;Mount the CD to the desired point, if not Automatically mounted&lt;br /&gt;Start the Oracle Universal Installer.&lt;br /&gt;$ /Media/Cdrecorder/runInstaller&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx37vNiu4I/AAAAAAAAAFs/C_a8eOkMKWM/s1600-h/1.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx37vNiu4I/AAAAAAAAAFs/C_a8eOkMKWM/s320/1.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223181536012188546" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Specify Inventory Directory and Credentials&lt;br /&gt;o Inventory Directory: /u01/oraInventory&lt;br /&gt;o Operating System group name: oinstall&lt;br /&gt;o Click on Next&lt;br /&gt;Click Here&lt;br /&gt;2. Select Installation Path&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_soV4hRbNZ5U/SHx4IQ7Za-I/AAAAAAAAAF0/5kucXMTvT_I/s1600-h/2.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_soV4hRbNZ5U/SHx4IQ7Za-I/AAAAAAAAAF0/5kucXMTvT_I/s320/2.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223181751221316578" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;o Installation Directory: /u01/OraHome1&lt;br /&gt;Change the Path to&lt;br /&gt;/u01/OraHome_1&lt;br /&gt;Select Oracle Application Server infra Structure&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx4SEFQpQI/AAAAAAAAAF8/dtPk-g8MJT4/s1600-h/3.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx4SEFQpQI/AAAAAAAAAF8/dtPk-g8MJT4/s320/3.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223181919571715330" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;o Installation Type: Identity Management and Metadata Repository (3.63GB)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx4bpRGpiI/AAAAAAAAAGE/mb3uXrMSNnQ/s1600-h/4.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx4bpRGpiI/AAAAAAAAAGE/mb3uXrMSNnQ/s320/4.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182084172326434" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Follow the Instructions Carefully from the GUI (like running&lt;br /&gt;/u01/OraHome_1/root.sh after logging on as root )&lt;br /&gt;&lt;br /&gt;o Incase any Error then resolve it by doing necessary action (For Eg. Any&lt;br /&gt;Kernel Parameter is not configured properly will result in error).&lt;br /&gt;Note: If any error occurs then resolve it first and click Back rather than&lt;br /&gt;Retry.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx4ltQTBvI/AAAAAAAAAGM/B-x3KeM_Hew/s1600-h/5.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx4ltQTBvI/AAAAAAAAAGM/B-x3KeM_Hew/s320/5.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182257041377010" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Incase any Error then resolve it by doing necessary action (For Eg. Any&lt;br /&gt;Kernel Parameter is not configured properly will result in error).&lt;br /&gt;Note: If any error occurs then resolve it first and click Back rather than retry.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx4ltQTBvI/AAAAAAAAAGM/B-x3KeM_Hew/s1600-h/5.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx4ltQTBvI/AAAAAAAAAGM/B-x3KeM_Hew/s320/5.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182257041377010" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;o Confirm that all the kernel parameters memory and swap space are&lt;br /&gt;configured properly before continuing.&lt;br /&gt;&lt;br /&gt;Select the Required components from the list&lt;br /&gt;o OID&lt;br /&gt;o Oracle Application SSO&lt;br /&gt;o Oracle Application Server Delegated Administration&lt;br /&gt;o Oracle Applications Server Directory Integration&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx4u5I6pKI/AAAAAAAAAGU/lGFB5Dmc8Og/s1600-h/6.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx4u5I6pKI/AAAAAAAAAGU/lGFB5Dmc8Og/s320/6.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182414850466978" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note: High Availability and Replication is selected based on the requirement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Port Configuration&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_soV4hRbNZ5U/SHx42JXjlfI/AAAAAAAAAGc/hDjUk1BhSEE/s1600-h/7.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp1.blogger.com/_soV4hRbNZ5U/SHx42JXjlfI/AAAAAAAAAGc/hDjUk1BhSEE/s320/7.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182539465922034" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Go for Automatic ones&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Namespace in Internet Directory&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx49wi50yI/AAAAAAAAAGk/ypW4BfJs6eg/s1600-h/8.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx49wi50yI/AAAAAAAAAGk/ypW4BfJs6eg/s320/8.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182670241583906" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Go for the Suggested namespace (ie, the Default)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database Configuration Options&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx5Gqu_JgI/AAAAAAAAAGs/WOOsduYVrZI/s1600-h/9.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx5Gqu_JgI/AAAAAAAAAGs/WOOsduYVrZI/s320/9.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182823300474370" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Specify the Database name and SID&lt;br /&gt;o Specify the Oradata Directory for File location&lt;br /&gt;&lt;br /&gt;Change the DB name&lt;br /&gt;Specify the Location&lt;br /&gt;Specify Database Schema Passwords&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx5Q8sltnI/AAAAAAAAAG0/iSjjEXdM2fk/s1600-h/10.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx5Q8sltnI/AAAAAAAAAG0/iSjjEXdM2fk/s320/10.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223182999920948850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Select Use the same password for all accounts or can give separate&lt;br /&gt;passwords for each schema depends on requirement.&lt;br /&gt;o Enter Password and Click NEXT&lt;br /&gt;Confirm the Passwords&lt;br /&gt;Specify Instance name and ias_admin Password&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_soV4hRbNZ5U/SHx5Xp886hI/AAAAAAAAAG8/cAUNJjQApyA/s1600-h/11.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_soV4hRbNZ5U/SHx5Xp886hI/AAAAAAAAAG8/cAUNJjQApyA/s320/11.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223183115148388882" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Instance Name: &lt;specify relevant name&gt;&lt;br /&gt;o Specify ias_admin Password&lt;br /&gt;o Then click NEXT&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx5ei0jzHI/AAAAAAAAAHE/H-CkRK2XlxU/s1600-h/12.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx5ei0jzHI/AAAAAAAAAHE/H-CkRK2XlxU/s320/12.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223183233493224562" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Click Install to start the installation of the Listed Products&lt;br /&gt;o On successful Installation close the Window by clicking exit.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Part IV: Installing Oracle Application Server&lt;br /&gt;--------------------------------------------------&lt;br /&gt;Installing Oracle Infrastructure&lt;br /&gt;--------------------------------------&lt;br /&gt;Log in using the oramid account.&lt;br /&gt;# su - oramid&lt;br /&gt;Mount the CD to the desired point, if not Automatically mounted&lt;br /&gt;Start the Oracle Universal Installer.&lt;br /&gt;$ /Media/Cdrecorder/runInstaller&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_soV4hRbNZ5U/SHx5m4nEOSI/AAAAAAAAAHM/_32terKmt4o/s1600-h/13.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp1.blogger.com/_soV4hRbNZ5U/SHx5m4nEOSI/AAAAAAAAAHM/_32terKmt4o/s320/13.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223183376781162786" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Select Installation Path&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx5vE6QCtI/AAAAAAAAAHU/K6LUgNXZ__Q/s1600-h/14.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx5vE6QCtI/AAAAAAAAAHU/K6LUgNXZ__Q/s320/14.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223183517521808082" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;o Installation Directory: /u01/OraHome_2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Select Oracle Application Server infra Structure&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx53bY4f8I/AAAAAAAAAHc/wZlhYEC9WsM/s1600-h/15.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx53bY4f8I/AAAAAAAAAHc/wZlhYEC9WsM/s320/15.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223183660994822082" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Installation Type: Business Intelligence and Forms (1.90GB)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_soV4hRbNZ5U/SHx5-U91-5I/AAAAAAAAAHk/2Uqc26SRp6M/s1600-h/16.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_soV4hRbNZ5U/SHx5-U91-5I/AAAAAAAAAHk/2Uqc26SRp6M/s320/16.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223183779529882514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Select Business Intelligence and Forms and then click NEXT&lt;br /&gt;Pre-RequisiteChecks&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_soV4hRbNZ5U/SHx6GWAZWeI/AAAAAAAAAHs/Io0RqPbLkhQ/s1600-h/17.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_soV4hRbNZ5U/SHx6GWAZWeI/AAAAAAAAAHs/Io0RqPbLkhQ/s320/17.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223183917247977954" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Incase any Error then resolve it by doing necessary action (For Eg. Any&lt;br /&gt;Kernel Parameter is not configured properly will result in error).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: If any error occurs then resolve it first and click Back rather than&lt;br /&gt;Retry.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_soV4hRbNZ5U/SHx6NkkAAoI/AAAAAAAAAH0/Uflp5I86NLs/s1600-h/18.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_soV4hRbNZ5U/SHx6NkkAAoI/AAAAAAAAAH0/Uflp5I86NLs/s320/18.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223184041414492802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Confirm that all the kernel parameters memory and swap space are&lt;br /&gt;configured properly before continuing. Then click NEXT&lt;br /&gt;&lt;br /&gt;Select the Required components from the list&lt;br /&gt;o Oracle Application Server 10g Portal&lt;br /&gt;o Oracle Application Server 10g Wireless&lt;br /&gt;o Oracle Application Server Discoverer&lt;br /&gt;o Oracle Applications Server Personalization&lt;br /&gt;o Oracle Applications Server Forms Services&lt;br /&gt;o Oracle Applications Server Report Services&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx6YlPOQFI/AAAAAAAAAH8/3XiO3S22aNQ/s1600-h/19.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx6YlPOQFI/AAAAAAAAAH8/3XiO3S22aNQ/s320/19.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223184230574342226" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then Click Next&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx6hZzMz-I/AAAAAAAAAIE/g-hCjD2b-4U/s1600-h/20.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx6hZzMz-I/AAAAAAAAAIE/g-hCjD2b-4U/s320/20.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223184382122840034" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;o Specify the Port Configuration Options as Automatic&lt;br /&gt;&lt;br /&gt;Registering with Oracle Internet Directory&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_soV4hRbNZ5U/SHx6p_2WtaI/AAAAAAAAAIM/qQCwe1zvC3s/s1600-h/21.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_soV4hRbNZ5U/SHx6p_2WtaI/AAAAAAAAAIM/qQCwe1zvC3s/s320/21.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223184529775572386" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;o Specify Hostname&lt;br /&gt;o Specify Port (389 for Normal and 686 for SSL)&lt;br /&gt;Note:&lt;br /&gt;1. Hostname can be obtained by the following command&lt;br /&gt;# hostname&lt;br /&gt;Csdtest.oneapps.com&lt;br /&gt;2. Port no can be obtained by the following command&lt;br /&gt;# vi /OraHome_1/install/portlist.ini&lt;br /&gt;Specify the Hostname &amp; Port No Then&lt;br /&gt;Click Next&lt;br /&gt;Specify OID Login&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_soV4hRbNZ5U/SHx68MyktlI/AAAAAAAAAIc/cBC3vuKADEA/s1600-h/23.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_soV4hRbNZ5U/SHx68MyktlI/AAAAAAAAAIc/cBC3vuKADEA/s320/23.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5223184842487019090" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;o Go for the Default name&lt;br /&gt;o Specify password for the same&lt;br /&gt;o Then Click NEXT&lt;br /&gt;Then Finalize the setting same as for Infra Tier Except the instance name (Specify&lt;br /&gt;different Instance name for Middle Tier)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Configuring Bash_profiles&lt;br /&gt;--------------------------------&lt;br /&gt;FOR INFRA TIER&lt;br /&gt;o Switch to orainfra user&lt;br /&gt;# su – orainfra&lt;br /&gt;o Edit the Following Parameter in the bash_profile&lt;br /&gt;&lt;br /&gt;# vi .bash_profile&lt;br /&gt;&lt;br /&gt;ORACLE_HOME=&lt;home Location&gt;&lt;br /&gt;export ORACLE_HOME&lt;br /&gt;PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin&lt;br /&gt;export PATH&lt;br /&gt;ORACLE_SID=&lt;sid name&gt;&lt;br /&gt;export ORACLE_SID=&lt;sid name&gt;&lt;br /&gt;unset USERNAME&lt;br /&gt;Then Run the same by the Following command&lt;br /&gt;# . .bash_profile&lt;br /&gt;&lt;br /&gt;FOR MIDDLE TIER&lt;br /&gt;o Switch to oramid user&lt;br /&gt;# su – oramid&lt;br /&gt;o Edit the Following Parameter in the bash_profile&lt;br /&gt;&lt;br /&gt;# vi .bash_profile&lt;br /&gt;&lt;br /&gt;ORACLE_HOME=&lt;home Location&gt;&lt;br /&gt;export ORACLE_HOME&lt;br /&gt;PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin&lt;br /&gt;export PATH&lt;br /&gt;unset USERNAME&lt;br /&gt;&lt;br /&gt;Then Run the same by the Following command&lt;br /&gt;# . .bash_profile&lt;br /&gt;POST INSTALLATION ACTIVITIES&lt;br /&gt;INFRA Tier&lt;br /&gt;Starting Services&lt;br /&gt; Start the Listener&lt;br /&gt; Start the Database&lt;br /&gt; Start all the services of Oracle Process Management Notifications&lt;br /&gt;(opmnctl)&lt;br /&gt; Start the services of Enterprise Manager Control (emctl).&lt;br /&gt;&lt;br /&gt;# su - orainfra&lt;br /&gt;# lsnrctl status / start&lt;br /&gt;# sqlplus “ / as sysdba”&lt;br /&gt;( if connected to an Idle Instance then issue STARTUP&lt;br /&gt;command)&lt;br /&gt;# opmnctl startall / status&lt;br /&gt;# emctl start / status iasconsole&lt;br /&gt;# emctl start / status dbconsole&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;1.If some components of opmnctl is not coming up (down) then issue the&lt;br /&gt;following command to bring it alive.&lt;br /&gt;# opmnctl startproc ias-component = &lt;component name&gt;&lt;br /&gt;2. Start the service in the Given Sequence.&lt;br /&gt;&lt;br /&gt;MIDDLE Tier&lt;br /&gt;--------------&lt;br /&gt;Starting Services&lt;br /&gt; Start all the services of Oracle Process Management Notifications&lt;br /&gt;(pmnctl)&lt;br /&gt; Start the services of Enterprise Manager Control (emctl).&lt;br /&gt;# opmnctl startall / status&lt;br /&gt;# emctl start / status iasconsole&lt;br /&gt;# emctl start / status dbconsole&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;1.If some components of opmnctl is not coming up (down) then issue the&lt;br /&gt;following command to bring it alive.&lt;br /&gt;# opmnctl startproc ias-component = &lt;component name&gt;&lt;br /&gt;2. Shutdown the services in the Reverse Order&lt;br /&gt;i.e, First stop all the services of Middle Tier&lt;br /&gt;# emctl stop iasconsole&lt;br /&gt;# opmnctl stopall&lt;br /&gt;Then,&lt;br /&gt;Do the same for Infra Tier and Shutdown the Database and Stop the&lt;br /&gt;Listener.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-7883849050293305631?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/10g-as-installation.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_soV4hRbNZ5U/SHx37vNiu4I/AAAAAAAAAFs/C_a8eOkMKWM/s72-c/1.bmp' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-7729323165531561353</guid><pubDate>Tue, 15 Jul 2008 06:32:00 +0000</pubDate><atom:updated>2008-07-14T23:48:23.263-07:00</atom:updated><title>Installing Oracle Database 9i (9.2.0.8) on RHEL 4</title><description>Prerequisites to Install Oracle Database 9i (9.2.0.8) on RHEL 4 &lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Things to check before installation:&lt;br /&gt;------------------------------------------&lt;br /&gt;Prerequisite Red Hat Packages: &lt;br /&gt;---------------------------------------&lt;br /&gt;Install below Red Hat RPM packages:&lt;br /&gt;&lt;br /&gt;make-3.80-6.EL4&lt;br /&gt;compat-db-4.1.25-9&lt;br /&gt;compat-gcc-32-3.2.3-47.3&lt;br /&gt;compat-gcc-32-c++-3.2.3-47.3&lt;br /&gt;compat-oracle-rhel4-1.0-5&lt;br /&gt;compat-libcwait-2.0-2&lt;br /&gt;compat-libgcc-296-2.96-132.7.2&lt;br /&gt;compat-libstdc++-296-2.96-132.7.2&lt;br /&gt;compat-libstdc++-33-3.2.3-47.3&lt;br /&gt;gcc-3.4.6-3&lt;br /&gt;gcc-c++-3.4.6-3&lt;br /&gt;gnome-libs-1.4.1.2.90-44.1&lt;br /&gt;gnome-libs-devel-1.4.1.2.90-44.1&lt;br /&gt;libaio-devel-0.3.105-2&lt;br /&gt;libaio-0.3.105-2&lt;br /&gt;openmotif21-2.1.30-11.RHEL4.6&lt;br /&gt;xorg-x11-deprecated-libs-devel-6.8.2-1.EL.13.37.5&lt;br /&gt;xorg-x11-deprecated-libs-6.8.2-1.EL.13.37.5 &lt;br /&gt;&lt;br /&gt;Oracle Supplied Compat Packages:&lt;br /&gt;----------------------------------------&lt;br /&gt;compat-oracle-rhel4-1.0-5.i386.rpm&lt;br /&gt;compat-libcwait-2.0-2.i386.rpm &lt;br /&gt;&lt;br /&gt;Oracle Software:&lt;br /&gt;--------------------&lt;br /&gt;Download below files&lt;br /&gt;ship_9204_linux_disk1.cpio.gz&lt;br /&gt;ship_9204_linux_disk2.cpio.gz&lt;br /&gt;ship_9204_linux_disk3.cpio.gz &lt;br /&gt;&lt;br /&gt;Patches:&lt;br /&gt;--------------&lt;br /&gt;p4198954_21_LINUX.zip&lt;br /&gt;p4547809_92080_LINUX.zip&lt;br /&gt;p5632264_92080_LINUX.zip &lt;br /&gt;&lt;br /&gt;Check Installed Required RPMs&lt;br /&gt;-------------------------------------&lt;br /&gt;rpm -q make compat-db compat-gcc-32 compat-gcc-32-c++ compat-oracle-rhel4 compat-libcwait compat-libgcc-296 compat-libstdc++-296 compat-libstdc++-33 gcc gcc-c++ gnome-libs gnome-libs-devel libaio-devel libaio openmotif21 xorg-x11-deprecated-libs-devel xorg-x11-deprecated-libs &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If any of packages are not installed, Download  and intsall that packages using below command&lt;br /&gt;rpm -ivh (or)Uvh packagename --nodeps&lt;br /&gt;-ivh – to install packages&lt;br /&gt;-Uvh – to upgrade packages&lt;br /&gt;-- nodeps to uncheck dependencies.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Install oracle supplied packages:&lt;br /&gt;-------------------------------------------&lt;br /&gt;&lt;br /&gt;[root@csd u01]# cd 4198954/&lt;br /&gt;[root@csd 4198954]# rpm -Uvh compat-oracle-rhel4-1.0-5.i386.rpm compat-libcwait-2.0-2.i386.rpm&lt;br /&gt;Preparing... ########################################### [100%]&lt;br /&gt;cat: /etc/ld.so.preload: No such file or directory&lt;br /&gt;1:compat-libcwait ########################################### [ 50%]&lt;br /&gt;2:compat-oracle-rhel4 ########################################### [100%]&lt;br /&gt;[root@deskpro 4198954]# &lt;br /&gt;&lt;br /&gt;Create USER and GROUPS:&lt;br /&gt;--------------------------------&lt;br /&gt;&lt;br /&gt;[root@csd ~]# groupadd dba&lt;br /&gt;[root@csd ~]# groupadd oinstall&lt;br /&gt;[root@csd ~]# useradd -c "Oracle software owner" -g oinstall -G dba oracle&lt;br /&gt;[root@csd ~]# passwd oracle&lt;br /&gt;Changing password for user oracle.&lt;br /&gt;New UNIX password:&lt;br /&gt;Retype new UNIX password:&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;[root@csd 4198954]#&lt;br /&gt;&lt;br /&gt;Create Oracle Software Directory:&lt;br /&gt;-----------------------------------------&lt;br /&gt;&lt;br /&gt;[root@csd ~]# mkdir -p /u01/app/oracle/product/9.2.0&lt;br /&gt;[root@csd ~]# chown -R oracle.oinstall /u01&lt;br /&gt;[root@csd ~]# chmod -R 775 /u01 &lt;br /&gt;&lt;br /&gt;Set Kernel Parameters, File Handlers, and Limits:&lt;br /&gt;-------------------------------------------------------&lt;br /&gt;Adding these parameters to /etc/sysctl.conf will take effect only after reboot. To make this effective immediately, issue the following command &lt;br /&gt;&lt;br /&gt;net.ipv4.ip_forward = 0&lt;br /&gt;net.ipv4.conf.default.rp_filter = 1&lt;br /&gt;net.ipv4.conf.default.accept_source_route = 0&lt;br /&gt;kernel.sysrq = 0&lt;br /&gt;kernel.core_uses_pid = 1&lt;br /&gt;kernel.shmmax = 1073741824&lt;br /&gt;kernel.shmmni = 4096&lt;br /&gt;kernel.shmall = 2097152&lt;br /&gt;kernel.sem = 250 32000 100 128 &lt;br /&gt;fs.file-max = 65536 &lt;br /&gt;&lt;br /&gt;Shell Limits:&lt;br /&gt;-------------------- &lt;br /&gt;Login as root, and add below lines to /etc/security/limits.conf&lt;br /&gt;oracle soft nofile 63536&lt;br /&gt;oracle hard nofile 63536&lt;br /&gt;oracle soft nproc 16384&lt;br /&gt;oracle hard nproc 16384&lt;br /&gt;Add soft and hard limit to ~oracle/.bash_profile&lt;br /&gt;ulimit -n 63536&lt;br /&gt;ulimit -u 16384&lt;br /&gt; &lt;br /&gt;Create Swap Space: &lt;br /&gt;-------------------------&lt;br /&gt;root@csd ~]# grep MemTotal /proc/meminfo&lt;br /&gt;MemTotal: 385956 kB&lt;br /&gt;[root@csd ~]# cat /proc/swaps&lt;br /&gt;Filename Type Size Used Priority&lt;br /&gt;/dev/hda2 partition 1048468 160 -1&lt;br /&gt;&lt;br /&gt;Here is the command to create temporary swap space.&lt;br /&gt;[root@csd ~]# dd if=/dev/zero of=tmpswap bs=1k count=900000&lt;br /&gt;900000+0 records in&lt;br /&gt;900000+0 records out&lt;br /&gt;[root@csd ~]# chmod 600 tmpswap&lt;br /&gt;[root@csd ~]# mkswap tmpswap&lt;br /&gt;Setting up swapspace version 1, size = 921595 kB&lt;br /&gt;[root@csd ~]# swapon tmpswap&lt;br /&gt;&lt;br /&gt;Setup Oracle Environment Variables:&lt;br /&gt;-------------------------------------------&lt;br /&gt;Add below lines to ~oracle/.bash_profile &lt;br /&gt;export LD_ASSUME_KERNEL=2.4.19 &lt;br /&gt;export ORACLE_BASE=/u01/app/oracle&lt;br /&gt;export ORACLE_HOME=$ORACLE_BASE/product/9.2.0&lt;br /&gt;export ORACLE_SID=db9i1&lt;br /&gt;export ORACLE_TERM=xterm&lt;br /&gt;export NLS_LANG=AMERICAN&lt;br /&gt;&lt;br /&gt;export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data&lt;br /&gt;export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH&lt;br /&gt;export PATH=$PATH:$ORACLE_HOME/bin&lt;br /&gt;Unpack Oracle Software Archives:&lt;br /&gt;&lt;br /&gt;[oracle@csd ~]$ gunzip ship_9204_linux_disk1.cpio.gz ship_9204_linux_disk2.cpio.gz ship_9204_linux_disk3.cpio.gz &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[oracle@csd ~]$ cpio -idmv &lt; ship_9204_linux_disk1.cpio&lt;br /&gt;[oracle@csd ~]$ cpio -idmv &lt; ship_9204_linux_disk2.cpio&lt;br /&gt;[oracle@csd ~]$ cpio -idmv &lt; ship_9204_linux_disk3.cpio&lt;br /&gt;[oracle@csd ~]$ chown -R oracle.dba Disk1/ Disk2/ Disk3/ &lt;br /&gt;&lt;br /&gt;Verify X-Windows:&lt;br /&gt;-----------------------&lt;br /&gt;Execute the below command&lt;br /&gt;[oracle@csd ~]$ xclock &lt;br /&gt;If you don’t see a graphical clock on the console then, Issue the below command in terminal &lt;br /&gt;[oracle@csd ~]$ echo "DISPLAY=localhost:0.0;export DISPLAY" &lt;br /&gt;[oracle@csd ~]$ source .bash_profile &lt;br /&gt;[oracle@csd ~]$ xclock &lt;br /&gt;&lt;br /&gt;Starting Oracle Universal Installer:&lt;br /&gt;--------------------------------------------&lt;br /&gt;Execute the below command to start the installation&lt;br /&gt;[oracle@csd ~]$ cd Disk1/ &lt;br /&gt;[oracle@csd Disk1]$ ./runInstaller&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-7729323165531561353?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/prerequisites-to-install-oracle.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-3324223416519162663</guid><pubDate>Tue, 15 Jul 2008 04:11:00 +0000</pubDate><atom:updated>2008-07-15T06:58:09.053-07:00</atom:updated><title>Opening forms from linux machine</title><description>Opening forms forms from linux machine&lt;br /&gt;----------------------------------------------&lt;br /&gt;&lt;br /&gt;I found out no plugins were installed in Firefox yet, so I had to download the sun java plugin.&lt;br /&gt;I decided to download version 1.5.0.12. After installing the downloaded file, the plugin has to be noticed by Firefox. You can do this by creating a link in the FIREFOX_HOME/plugins directory.&lt;br /&gt;&lt;br /&gt;Create a link to the libjavaplugin_oji.so from the installed jre...&lt;br /&gt;ln -s /usr/java/jre1.5.0_12/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oij.so&lt;br /&gt;&lt;br /&gt;After the link is created, the java plugin is recognized in Firefox.&lt;br /&gt;Next step is to let EBS now, you can also use the sun java plgin instead of the default jinitiator. This can be done by adjusting the $OA_HTML/bin/appsweb_sid.cfg and change the following lines.&lt;br /&gt;&lt;br /&gt;sun_plugin_mimetype=application/x-java-applet;jpi-version=1.5.0_12&lt;br /&gt;sun_plugin_version=1.5.0_12&lt;br /&gt;&lt;br /&gt;After bouncing the webserver you can use the sun java plugin, but also the default jinitiator.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-3324223416519162663?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/opening-forms-from-linux-machine.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-6656156763302981077</guid><pubDate>Tue, 15 Jul 2008 03:53:00 +0000</pubDate><atom:updated>2008-07-14T20:55:31.248-07:00</atom:updated><title>Replacing Jinitiator with JRE for Oracle Apps 11i</title><description>Replacing Jinitiator with JRE for Oracle Apps 11i&lt;br /&gt;----------------------------------------------------&lt;br /&gt;&lt;br /&gt;Download Interoperability patch  6863618 (Metalink)&lt;br /&gt;&lt;br /&gt;Download the Java Runtime Environment (JRE) 6 plug-in at, http://java.sun.com/javase/downloads/index.jsp&lt;br /&gt;&lt;br /&gt;Downloaded JRE Native plug-in file from jre-6_uX-windows-i586-p.exe and rename to j2se160x.exe&lt;br /&gt;(Where X = the version number. Using jre-6u5 as an example this would be j2se16005.exe)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Move the j2se1600X.exe file to the web application tier and place it in [COMMON_TOP]/util/jinitiator&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Apply Developer 6i Patchset 18 ( 4948577 )&lt;br /&gt;&lt;br /&gt;unzip patch to $ORACLE_HOME&lt;br /&gt;cd $ORACLE_HOME/developer6i_patch18&lt;br /&gt;./patch_install.sh 2&gt;&amp;1 | tee patch_install_p18.log&lt;br /&gt;&lt;br /&gt;cd $ORACLE_HOME/procbuilder60/lib; make -f ins_procbuilder.mk install&lt;br /&gt;cd $ORACLE_HOME/forms60/lib; make -f ins_forms60w.mk install&lt;br /&gt;cd $ORACLE_HOME/graphics60/lib; make -f ins_graphics60w.mk install&lt;br /&gt;cd $ORACLE_HOME/reports60/lib; make -f ins_reports60w.mk install&lt;br /&gt;&lt;br /&gt;cp developer6i_patch18/bin/genshlib $ORACLE_HOME/bin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Additional Patches&lt;br /&gt;------------------&lt;br /&gt;5713544&lt;br /&gt;&lt;br /&gt;sh patch.sh&lt;br /&gt;adrelink.sh force=y "fnd f60webmx"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4261542 &lt;br /&gt;&lt;br /&gt;cd $ORACLE_HOME&lt;br /&gt;unzip  p4261542_600_GENERIC.zip  &lt;br /&gt;&lt;br /&gt;cp -r $ORACLE_HOME/forms60/java/oracle/forms/handler/AlertDialog.class $ORACLE_HOME/forms60/java/oracle/forms/handler/AlertDialog.class.PRE_BUG4261542&lt;br /&gt;cp -r $ORACLE_HOME/forms60/java/oracle/forms/engine/Main.class $ORACLE_HOME/forms60/java/oracle/forms/engine/Main.class.PRE_BUG4261542&lt;br /&gt;&lt;br /&gt;cd $ORACLE_HOME/4261542/oracle/forms/engine&lt;br /&gt;cp Main.class $ORACLE_HOME/forms60/java/oracle/forms/engine/Main.class&lt;br /&gt;cd $ORACLE_HOME/4261542/oracle/forms/handler&lt;br /&gt;cp AlertDialog.class $ORACLE_HOME/forms60/java/oracle/forms/handler/AlertDialog.class&lt;br /&gt;&lt;br /&gt;Generate Product JAR Files ( adadmin )&lt;br /&gt;&lt;br /&gt;5216496&lt;br /&gt;sh patch.sh&lt;br /&gt;&lt;br /&gt;5753922&lt;br /&gt;sh patch.sh&lt;br /&gt;adrelink.sh force=y "fnd f60webmx"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6195758 &lt;br /&gt;cd $ORACLE_HOME&lt;br /&gt;unzip  p6195758_600_GENERIC.zip&lt;br /&gt;cp -r $ORACLE_HOME/forms60/java/oracle/forms/handler/UICommon.class $ORACLE_HOME/forms60/java/oracle/forms/handler/UICommon.class.PRE_BUG6195758&lt;br /&gt;cp -r $ORACLE_HOME/forms60/java/oracle/forms/handler/ComponentItem.class $ORACLE_HOME/forms60/java/oracle/forms/handler/ComponentItem.class.PRE_BUG6195758&lt;br /&gt;cd $ORACLE_HOME/6195758/oracle/forms/handler&lt;br /&gt;cp UICommon.class  $ORACLE_HOME/forms60/java/oracle/forms/handler/UICommon.class&lt;br /&gt;cp ComponentItem.class  $ORACLE_HOME/forms60/java/oracle/forms/handler/ComponentItem.class&lt;br /&gt;Generate Product JAR Files ( adadmin )&lt;br /&gt;&lt;br /&gt;5938515&lt;br /&gt;sh patch.sh&lt;br /&gt;adrelink.sh force=y "fnd f60webmx"&lt;br /&gt;&lt;br /&gt;3830807&lt;br /&gt;sh patch.sh&lt;br /&gt;&lt;br /&gt;4586086 &lt;br /&gt;cd $ORACLE_HOME&lt;br /&gt;unzip &lt;patch_file&gt;.zip &lt;br /&gt;cd $ORACLE_HOME/forms60/lib &lt;br /&gt;mv env_forms60.mk env_forms60.mk.PRE_BUG4586086&lt;br /&gt;cp $ORACLE_HOME/bug4586086/env_forms60.mk $ORACLE_HOME/forms60/lib&lt;br /&gt;cd $ORACLE_HOME/forms60/lib&lt;br /&gt;make -f cus_forms60w.mk libso_install&lt;br /&gt;adrelink.sh force=y "fnd f60webmx"&lt;br /&gt;&lt;br /&gt;relink - adadmin&lt;br /&gt;select 'Maintain Applications Files Menu' and then select 'Relink Applications Program'&lt;br /&gt;Enter list of products to link ('all' for all products)[all] : fnd&lt;br /&gt;Generate specific executables for each selected product [No] ? y&lt;br /&gt;Relink with debug information [No] ? n&lt;br /&gt;Enter executables to relink, or enter 'all' [all] : f60webmx ar60run ar60runb ar60rund *&lt;br /&gt;&lt;br /&gt;4888294 (adpatch )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5884875&lt;br /&gt;&lt;br /&gt;cd $ORACLE_HOME&lt;br /&gt;unzip  p5884875_600_GENERIC.zip  &lt;br /&gt;cp -r $ORACLE_HOME/forms60/java/oracle/forms/engine/Main.class $ORACLE_HOME/forms60/java/oracle/forms/engine/Main.class.PRE_BUG5884875&lt;br /&gt;cp -r $ORACLE_HOME/forms60/java/oracle/forms/handler/AlertDialog.class $ORACLE_HOME/forms60/java/oracle/forms/handler/AlertDialog.class.PRE_BUG5884875&lt;br /&gt;cd $ORACLE_HOME/5884875/oracle/forms/engine&lt;br /&gt;cp Main.class $ORACLE_HOME/forms60/java/oracle/forms/engine/Main.class&lt;br /&gt;cd $ORACLE_HOME/5884875/oracle/forms/handler&lt;br /&gt;cp AlertDialog.class $ORACLE_HOME/forms60/java/oracle/forms/engine/AlertDialog.class&lt;br /&gt;Run adadmin  "Generate JAR Files" &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(6863618)&lt;br /&gt;---------&lt;br /&gt;&lt;br /&gt;Apply the Patch Driver using adpatch&lt;br /&gt;Run the txkSetPlugin.sh script from the &lt;patch_top&gt;/6863618/fnd/bin/ &lt;br /&gt;&lt;br /&gt;txkSetPlugin.sh 16005&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Start Oracle Applicatons 11.5.10.2 and start using Java instead of Jinititor for Applets&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-6656156763302981077?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/replacing-jinitiator-with-jre-for.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-861577715414163013</guid><pubDate>Tue, 08 Jul 2008 11:09:00 +0000</pubDate><atom:updated>2008-07-08T04:22:01.753-07:00</atom:updated><title>Disable concurrent manager</title><description>Disable concurrent manager:&lt;br /&gt;====================&lt;br /&gt;1. Log in as application user&lt;br /&gt;&lt;br /&gt;2. Stop all application services&lt;br /&gt;&lt;br /&gt;3. Go to $INST_TOP/appl/admin/&lt;br /&gt;&lt;br /&gt;Then  Change the parameter "s_concstatus" from &lt;oa_service_status oa_var="s_concstatus"&gt;&lt;oa_service_status oa_var="s_concstatus"&gt;enabled &lt;/oa_service_status&gt;&lt;/oa_service_status&gt;to &lt;oa_service_status oa_var="s_concstatus"&gt;disabled&lt;/oa_service_status&gt;&lt;br /&gt;&lt;oa_service_status oa_var="s_concstatus"&gt;&lt;/oa_service_status&gt;&lt;br /&gt;&lt;oa_service_status oa_var="s_concstatus"&gt;&lt;/oa_service_status&gt;&lt;br /&gt;run autoconfig. And start application services.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-861577715414163013?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/07/disable-concurrent-manager.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-6295169444565772506</guid><pubDate>Fri, 27 Jun 2008 04:15:00 +0000</pubDate><atom:updated>2008-06-27T05:20:02.764-07:00</atom:updated><title>Query to kill inactive sessions</title><description>&lt;span&gt;Query to kill inactive sessions:&lt;br /&gt;-----------------------------------&lt;br /&gt;SELECT 'ALTER SYSTEM KILL SESSION '||''''||sid ||','|| serial#||''''||'  immediate;'&lt;br /&gt;FROM v$session&lt;br /&gt;WHERE status ='INACTIVE';&lt;br /&gt;&lt;br /&gt;Save this query output as .sql format.  Then connect to sql prompt and execute this .sql file. It'll kill&lt;br /&gt;all inactive sessions.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-6295169444565772506?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/06/query-to-kill-inactive-sessions.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-2310788557656096376.post-2701088251759485321</guid><pubDate>Thu, 26 Jun 2008 11:32:00 +0000</pubDate><atom:updated>2008-06-26T04:44:33.449-07:00</atom:updated><title>Installing 11g(11.1.0) database on Redhat Linux 4</title><description>Operating System:&lt;br /&gt;==============&lt;br /&gt;Red Hat Enterprise Linux 4&lt;br /&gt;&lt;br /&gt;Database Version:&lt;br /&gt;==============&lt;br /&gt;Oracle 11g Release 1&lt;br /&gt;&lt;br /&gt;You can download the oracle 11g r1 software in the below link&lt;br /&gt;&lt;br /&gt;Download link:&lt;br /&gt;===========&lt;br /&gt;http://www.oracle.com/technology/software/products/database/index.html&lt;br /&gt;&lt;br /&gt;Pre-Installation Tasks:&lt;br /&gt;=================&lt;br /&gt;Creating OS User account and group:&lt;br /&gt;------------------------------------------&lt;br /&gt;$groupadd dba  -creating OS group&lt;br /&gt;$useradd -g dba oracle  -creating OS user and assigning to group&lt;br /&gt;$passwd oracle  -- set password for that OS user.&lt;br /&gt;&lt;br /&gt;Checking physical RAM size:&lt;br /&gt;--------------------------------&lt;br /&gt;$ grep MemTotal /proc/meminfo&lt;br /&gt;Make it sure that physical memory size should be 1GB. And it shouldn't less than 900M.&lt;br /&gt;&lt;br /&gt;Checking SWAP size:&lt;br /&gt;-------------------------&lt;br /&gt;$ grep SwapTotal /proc/meminfo&lt;br /&gt;Note:swap should be double of memory&lt;br /&gt;&lt;br /&gt;Checking space in “/tmp”&lt;br /&gt;-----------------------------&lt;br /&gt;$ df -k /tmp&lt;br /&gt;&lt;br /&gt;Checking available free space on the system:&lt;br /&gt;-------------------------------------------------&lt;br /&gt;$ df –k&lt;br /&gt;&lt;br /&gt;Checking the Software Requirements:&lt;br /&gt;===========================&lt;br /&gt;Checking linux version:&lt;br /&gt;---------------------------&lt;br /&gt;$ uname –a&lt;br /&gt;&lt;br /&gt;Checking required packages:&lt;br /&gt;---------------------------------&lt;br /&gt;binutils-2.15.92.0.2-18&lt;br /&gt;compat-libstdc++-33.2.3-47.3&lt;br /&gt;elfutils-libelf-0.97-5&lt;br /&gt;elfutils-libelf-devel-0.97-5&lt;br /&gt;glibc-2.3.9.4-2.19&lt;br /&gt;glibc-common-2.3.9.4-2.19&lt;br /&gt;glibc-devel-2.3.9.4-2.19&lt;br /&gt;gcc-3.4.5-2&lt;br /&gt;gcc-c++-3.4.5-2&lt;br /&gt;libaio-devel-0.3.105-2&lt;br /&gt;libaio-0.3.105-2&lt;br /&gt;libgcc-3.4.5&lt;br /&gt;libstdc++-3.4.5-2&lt;br /&gt;libstdc++-devel-3.4.5-2&lt;br /&gt;make-3.80-5&lt;br /&gt;sysstat-5.0.5&lt;br /&gt;unixODBC-2.2.11&lt;br /&gt;unixODBC-devel-2.2.11&lt;br /&gt;&lt;br /&gt;OS command to check RPMS are installed or not:&lt;br /&gt;------------------------------------------------------&lt;br /&gt;Execute as root user&lt;br /&gt;# rpm –q libaio-devel-0.3.105-2&lt;br /&gt;# rpm –q unixODBC-devel-2.2.11&lt;br /&gt;Like this check all rpms.&lt;br /&gt;&lt;br /&gt;Like this check for all the above RPMS.&lt;br /&gt;&lt;br /&gt;If any rpms are missing download it from&lt;br /&gt;http://rpm.pbone.net/&lt;br /&gt;&lt;br /&gt;Installing/Upgrading RPMS:&lt;br /&gt;----------------------------------&lt;br /&gt;Login as the ROOT user&lt;br /&gt;# rpm –ivh unixODBC-devel-2.2.11.3-1.i386.rpm --to install&lt;br /&gt;Or&lt;br /&gt;# rpm –Uvh unixODBC-devel-2.2.11.3-1.i386.rpm  --to upgrade&lt;br /&gt;&lt;br /&gt;Creating Directories for installation:&lt;br /&gt;-----------------------------------------&lt;br /&gt;Base Directory and Oracle Home&lt;br /&gt;Do it as oracle user,&lt;br /&gt;#mkdir /u01  -- Base directory&lt;br /&gt;# mkdir  /u01/app/oracle/product/11.0.1  -- ORACLE_HOME&lt;br /&gt;# mkdir –p /u02/oradata -- DATA_TOP&lt;br /&gt;&lt;br /&gt;If you create these directories as a oracle user, the owner of that directory&lt;br /&gt;is oracle only. If you do it as root user you need to change the ownership and&lt;br /&gt;permissons to oracle user for that directory.&lt;br /&gt;&lt;br /&gt;# chown –R oracle:dba /u01/app/oracle/product/11.0.1&lt;br /&gt;# chown –R oracle:dba /u02/oradata&lt;br /&gt;&lt;br /&gt;Changing permissions:&lt;br /&gt;----------------------------&lt;br /&gt;# chmod –R 755 /u01/app/oracle/product/11.0.1&lt;br /&gt;# chmod –R 755 /u02/oradata&lt;br /&gt;&lt;br /&gt;Configuring Kernel Parameters:&lt;br /&gt;------------------------------------&lt;br /&gt;Check the current parameters and values in /etc/sysctl.conf&lt;br /&gt;&lt;br /&gt;fs.file-max = 76800&lt;br /&gt;kernel.shmall = 2097152&lt;br /&gt;kernel.shmmax = 2147483648&lt;br /&gt;kernel.shmmni = 4096&lt;br /&gt;kernel.sem = 250 32000 100 128&lt;br /&gt;net.ipv4.ip_local_port_range = 1024 65000&lt;br /&gt;net.core.rmem_default = 4194304&lt;br /&gt;net.core.rmem_max = 4194304&lt;br /&gt;net.core.wmem_default = 262144&lt;br /&gt;net.core.wmem_max = 262144&lt;br /&gt;&lt;br /&gt;if any of these entries are missing just add it. Before that take a ackup of that file&lt;br /&gt;#cp /etc/sysctl.conf /etc/sysctl.confbkp&lt;br /&gt;&lt;br /&gt;Changing current values of the kernel parameters:&lt;br /&gt;-------------------------------------------------------&lt;br /&gt;# /sbin/sysctl -p&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ckeck the following lines in the /etc/security/limits.conf file.&lt;br /&gt;-----------------------------------------------------------------&lt;br /&gt;Before editig take a backup of that file.&lt;br /&gt;&lt;br /&gt;# cp –p /etc/security/limits.conf /etc/security/limits.confbkp&lt;br /&gt;&lt;br /&gt;And add this lines in /etc/security/limits.conf if its not existing,&lt;br /&gt;&lt;br /&gt;oracle soft nproc 2047&lt;br /&gt;oracle hard nproc 16384&lt;br /&gt;oracle soft nofile 1024&lt;br /&gt;oracle hard nofile 65536&lt;br /&gt;&lt;br /&gt;Add or edit the following line in the /etc/pam.d/login file,&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;if this lines are not exist:&lt;br /&gt;-----------------------------&lt;br /&gt;Before editing that file take a backup.&lt;br /&gt;# cp –p /etc/pam.d/login /etc/pam.d/loginbkp&lt;br /&gt;&lt;br /&gt;session required /lib/security/pam_limits.so&lt;br /&gt;session required pam_limits.so&lt;br /&gt;&lt;br /&gt;Check Oracle User’s Environment:&lt;br /&gt;---------------------------------------&lt;br /&gt;$ vi .bash_profile&lt;br /&gt;&lt;br /&gt;Remove the oracle environments. If you set already.&lt;br /&gt;(if u created a new user no need to check this .bash_profile)&lt;br /&gt;&lt;br /&gt;Set DISPLAY variable, if its not set&lt;br /&gt;----------------------------------------&lt;br /&gt;$ echo $DISPLAY - to check display has set or not&lt;br /&gt;$ DISPLAY=:0.0  - if its returning this we need to set Display using&lt;br /&gt;the below command,&lt;br /&gt;$ set DISPLAY=(ipaddress of your server):0.0&lt;br /&gt;$ export DISPLAY&lt;br /&gt;&lt;br /&gt;Then type, as root user and check xlcock also&lt;br /&gt;# xhost +&lt;br /&gt;# xclock (should display the clock window)&lt;br /&gt;&lt;br /&gt;Starting installation:&lt;br /&gt;-------------------------&lt;br /&gt;Login as oracle user&lt;br /&gt;Su – oracle&lt;br /&gt;Go the directory where Oracle software is copied&lt;br /&gt;or if its cd or dvd, mount the device and run runinstaller&lt;br /&gt;&lt;br /&gt;$ cd /u01/software&lt;br /&gt;Unzip the dump,&lt;br /&gt;$ unzip linux_11gR1_database.zip&lt;br /&gt;&lt;br /&gt;Go to Disk1, Then run runinstaller&lt;br /&gt;&lt;br /&gt;./.runInstaller&lt;br /&gt;&lt;br /&gt;For sample screen shots just check this link&lt;br /&gt;http://www.oracle.com/technology/obe/11gr1_db/install/dbinst/dbinst.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2310788557656096376-2701088251759485321?l=appsdbasworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://appsdbasworld.blogspot.com/2008/06/installing-11g-release-1-on-redhat.html</link><author>leesenshan@gmail.com (Senthil Kumaran)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>