Skip to main content

Posts

Oracle 10g Performance Tuning Scripts (Sure Shot)

Oracle 10g Performance Tuning Scripts (Sure Shot) ----------------------------------------------------------- -- SHARED POOL TUNING -- Library Cache Hit Ratio should be less than 90%. if not, increase the size of SHARED POOL select gethitratio * 100 "Library Cache Hit Ratio"   from v$librarycache  where namespace = 'SQL AREA'; -- "RELOADS TO PINS RATIO" ratio should be less than 1 percent. Other wise SHARED_POOL_SIZE need to be increased. SELECT SUM(PINS) "EXECUTIONS",        SUM(RELOADS) "CACHE MISSES",        (SUM(RELOADS) / SUM(PINS)) * 100 "RELOADS TO PINS RATIO"   FROM V$LIBRARYCACHE; -- "CACHE HIT RATIO" should be greaer than 90 percent SELECT SUM(PINS) / (SUM(PINS) + SUM(RELOADS)) * 100 "CACHE HIT RATIO"   FROM V$LIBRARYCACHE;     -- check invalidations SELECT NAMESPACE,PINS,RELOADS,INVALIDATIONS FROM V$LIBRARYCACHE; --take advice for shared pool size SELEC...

Configuring EMCTL oracle in 10g

Open a new command prompt on your DB server: bash# emca -config dbcontrol db -------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- (This command will create and configure repository for dbcontrol In background it will create synonyms, roles for sysman users) You need to know the SID of database , port on which LISTNER for database in running, the password for sysman and system user.   for that go to LSNRCTL and look for services and status STARTED EMCA at Jul 6, 2010 12:33:45 PM EM Configuration Assistant, Version 10.2.0.1.0 Production Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information: Database SID: Listener port number: 1521 Password for SYS user: ******** Password for DBSNMP user: ******* Password for SYSMAN u...

Step By Step Cloning Oracle Database Using RMAN

~`~` Step By Step Cloning Oracle Database 10g Using RMAN`~`~ Delete existing DataFile folder in oradata location.  Login to SQLprompt. SQL> shutdown abort; (target database) Now login to RMAN and set DBID: RMAN>  set DBID 123456 ; (Get it from source database, by connecting RMAN.) Now, if there is no database i.e. you have just installed the target database (software only), then check if the dump destination folders are created at dump destination.Ex. - /app/oracle/admin/ULTIMUS/bdump/. Startup the database in no mount state : SQL> startup nomount; Restore pfile: SQL> restore spfile to pfile '$ORACLE_HOME/dbs/initULTIMUS.ora' from 'BACKUP_DESTINATION/autobackup/2011_06_20/o1_mf_s_744258937_6pofdsx4_.bkp’; (or copy pfile i.e. initULTIMUS.ora from live server then paste it to dbs folder, if the following command is not working). Restart the database with new pfile: SQL> startup force nomount pfile=' $ORACLE...

Setting UP IP address in SOLARIS 10.9

Follow the below steps to setup IP address in SOLARIS 10.9 OS: Provide IP address to the file: /etc/hosts Format: 172.17.1.30      database3        loghost Provide masking info to the file: /etc/netmasks Format: 172.17.1.0       255.255.255.0 If not already created, create file “/etc/defaultrouter” and enter your routers IP address Restart the network by issuing the following command: #svcadm restart /network/physical Check the routing table and confirm the network is using the new sttings: #netstat -r Thats it. Now ping any node of your network to make sure its working. Have a good day.

Solution of problem: Resultset Exceeds the Maximum Size (100 MB)

Solution of problem: Resultset Exceeds the Maximum Size (100 MB) I was running a select statement in PL/SQL Developer. it was a short query but the data volume that the query was fetching was huge. But when ever i Click the button Fetch Last Page or press 'ALT+End' button a message box comes after a while saying: Then I started looking for the exact reason of this sort of problem in Google. When I realized there was no direct solution in the web, I started looking the PL/SQL Developer Software menu and found the ultimate solution. The reason of this problem is there is a parameter of maximum result set size in PL/SQL Developer Software which is by default set to 100 MB. To change this parameter you have to go to the following location: 1. Goto Edit Menu and click ' PL/SQL Beautifier Options '. A new window will open. 2. Click SQL Window of " Window Types ". 3. Now Change the value of "Maximum Result Set Size( 0 is unlimited)"  ...