Monday, July 13, 2009

Oracle Upgrade From 9i To 10g (Unix Platform)

Hi All,

Here is the procedure to upgrade the oracle 9i to 10g (9.2.0.6 to 10.2.0.4) ...

Some Notes You might need in between:

1) Note 841728 - 10.2: Solutions for installation and upgrade problems

2) Note 819830 - Oracle Database 10g: Additional Information on upgrade:UNIX

3) Note 886783 - Installing Oracle 9207 Client Software on UNIX

4) Note 600141 - Oracle9i: Automatic UNDO Management

5) Note 819829 - Oracle Instant Client Installation and Configuration on Unix

6) Note 830577 - Oracle Database 10g: ORA-21700 when upgrading to 10.1/10.2

7) Note 871735 - Current patch set for Oracle 10.2.0


Prerequisites for unix system :

1. Checking the Correct UNIX Users, Groups, and Authorizations:
Enter the following commands with user orasid:
touch /oracle/write_test
rm /oracle/write_test
umask 022
2) Checking the Directory Structure
Create the staging directory /oracle/stage/102_64.
Extract OR110264.SAR from CD 51031670 to /oracle/stage/102_64
Now perform the following:
cd /oracle/stage/102_64/database OR
cd /oracle/stage/102_64/database/Disk1
mv SAP SAP_ORIG

3) Download RDBMS_SAP_64.zip from note #819830 and copy it over to the
/oracle/stage /102_64/database directory

4) Extract the zip file:
cd /oracle/stage/102_64/database OR
cd /oracle/stage/102_64/database/Disk1
Unzip RDBMS_SAP_64.zip (You should now see the directory SAP extracted which
contains the updated version of SAP-specific files)

5) Check the Oracle inventory directory /var/opt/oracle/oraInst.loc
The default location for the Oracle inventory is $ORACLE_BASE/oraInventory

6) Create the empty Oracle home directory before starting the OUI.
/oracle//102_64

7) Running the Pre-Upgrade Script
Execute the following commands:
sqlplus /nolog
SQL> connect / as sysdba
SQL> spool /tmp/pre_upgrade.log
SQL> @/oracle/stage/102_64/database/Disk1/SAP/utlu102i.sql
SQL> spool off
SQL> exit

(You can check the results of the pre-upgrade script by looking at the log file /tmp/pre_upgrade.log.)

8) Checking the Prerequisites for the Oracle Universal Installer
Log in as the Oracle user ora.
Execute the following commands:
cd /oracle/stage/102_64/database/Disk1
./runInstaller –executeSysPrereqs
(If the OUI complains that the operating system version is not certified or
supported, you can ignore this.If OUI reports missing OS patches, you need to
apply these before you can continue. )

9) Download the latest version of the Oracle Client software ‒ OCL1020464.SAR
Before you start installing / extracting the Oracle client software please
shutdown the SAP application running on that host.Updating the Oracle client
software online (when the SAP system is still running) is not supported and may
result in system errors/inconsistencies.
Now do the following:
mv /oracle/client/10x_64 /oracle/client/10x_64_ORIG
mkdir /oracle/client/10x_64
IMPORTANT!! Go up to this directory, cd /oracle/client/10x_64
SAPCAR -xvf /tmp/OCL1020464.SAR
(Refer Note # 886783)

10) Execute the SQL script sapconn_role.sql as follows:
cp /oracle/stage/102_64/database/Disk1/SAP/sapconn_role.sql $ORACLE_HOME/dbs
cd $ORACLE_HOME/dbs
sqlplus /nolog @sapconn_role

11) 9. Migrating to Automatic Undo Management
Read SAP Note 600141,

12) 10. Stopping Statspack Reports (If running)
Log on as the user under which the statspack jobs run (usually PERFSTAT):
SQL> connect PERFSTAT/
SQL> select job, what from user_jobs;
This displays a list of the jobs that are currently entered under the user PERFSTAT.
Delete all jobs with the print job number :
SQL> connect PERFSTAT/
SQL> execute dbms_job.remove( );


13)Checking the SYSTEM and SYSAUX Tablespace for Free space
Make sure that the SYSTEM and SYSAUX tablespaces have at least between 500 MB and 750 MB freespace.
(If your source database is Oracle 9.2, there is no SYSAUX tablespace. In this case you can ignore references to the SYSAUX tablespace in this section. )
Check Space by:
brspace –f dbshow –c tsinfo –s SYSTEM
brspace –f dbshow –c tsinfo –s SYSAUX
If the size is less then 750 MB of freespace extend the tablespace.


14) Checking for Invalid Database Objects
a). Execute the following commands:
SQL> spool invalid_objects
SQL> select unique object_name, object_type, owner from dba_objects where status ='INVALID';
SQL> @?/rdbms/admin/utlrp.sql
SQL> select unique object_name, object_type, owner from dba_objects where status ='INVALID';
SQL> spool off
A) list of invalid objects before the upgrade is now generated.Invalid Objects Before upgrade
B) Check the list of invalid objects after the upgrade.If any objects in the list from before the upgrade are also in the list of invalid objects after the upgrade, you can be sure that this is not due to the upgrade process.

Oracle Software Installation( started )

1) Set the environment variables below by editing the files .dbenv_.sh and .dbenv_.csh in the home directory of ora.
(Do not make the changes to the environment permanent as long as the old database is still running)

a). Make sure the following environment variables are not set:
n TWO_TASK
n ORA_NLS
n ORA_NLS32
n ORA_NLS33

b). Set the following environment variables:
DISPLAY :0.0 (It is the host on which the OUI will be displayed.)
ORACLE_BASE /oracle
ORACLE_SID
ORACLE_HOME /oracle//102_64
NLS_LANG Set this to the output of the script CHECKS.SQL (/oracle/stage/102_64/database/Disk1/SAP . The database must be open before you execute the script CHECKS.SQL. )
ORA_NLS10 $ORACLE_HOME/nls/data
SAPDATA_HOME /oracle/
SHLIB_PATH $ORACLE_HOME/lib:$SHLIB_PATH


c). Include $ORACLE_HOME/bin in your PATH or path variable, replacing the existing variable with the new one:
set path = ($ORACLE_HOME/bin $path)
Check if the temporary directory (usually /tmp) has at least 400 MB of free space.


2) BackUp the Oracle Inventory

3)Running the Oracle Universal Installer

Start the OUI with the user ora as follows:
cd /oracle/stage/102_64/database/Disk1/SAP
./RUNINSTALLER


4) On The first screen press Next



5)



6) After this press Next next and you will see this screen




7) Installing the Current Patch Set
Only have to install the latest (that is, the current) patch set.
SAP Note 871735.
51036965_4 Patch CD.
Now enter the following command to unzip and extract the installation files:
$ unzip *.zip
Stop all listeners and other processes running in the Oracle home directory, where you need to install the patch set.
cd patchset_directory/Disk1
./runInstaller

8) Specify the detail and continue with installation

Prerequisites for DB Upgrade

1. Copying and Adapting the SQL*Net Files
I. Log on as user ora.
II. If ora have environment variable TNS_ADMIN set, do the following:
a) Choose a new location for the new SQL*Net parameter files and set TNS_ADMIN to point to the new location .
b) Copy the SQL*Net parameter files from the old location to
c) Edit the new SQL*Net files by adapting all file paths for the new directory. Be sure to adapt the value of ORACLE_HOME in the listener.ora file.

III. If ora has not set the TNS_ADMIN environment variable, Oracle first searches in /etc, in
$ORACLE_HOME/network/admin for the SQL*Net parameter files. Choose which of the following applies to your installation:
n The SQL*Net parameter files are located in directory /etc:
a) Make a backup copy of the files.
b) Edit the new SQL*Net files by adapting all file paths for the new directory. Be sure to adapt the value of ORACLE_HOME in the listener.ora file.
n The SQL*Net parameter files are located in /network/admin:
a) Copy the SQL*Net parameter files from to .
b) Edit the new SQL*Net files by adapting all file paths for the new directory. Be sure to adapt the value of ORACLE_HOME in the listener.ora file.

IV. Since your database is still running in the old environment, do not start the listener with the new
listener.ora file at this point.

2) Shutting Down the SAP System and Oracle Listener Process
stopsap r3
lsnrctl stop
Database Upgrade( Started)

1) Checking the oratab Entry
oratab file( /etc )
a). Make sure that the oratab file contains the following entry:
::N
Where old_ORACLE_HOME stands for the path to the old oracle software installation.
b). If this entry does not exist, insert it using a text editor.

2) Starting the Database Upgrade Assistant
Start the Oracle Database Upgrade Assistant (DBUA).
Before Starting Check:
Confirm that the following environment variables point to Oracle 10.2 directories:
ORACLE_HOME points to /oracle//102_64
PATH
ORA_NLS10
LD_LIBRARY_PATH or SHLIB_PATH or LIBPATH
Before you start the DBUA make sure that the DISPLAY environment variable is correctly set.

Now start the DBUA:
cd $ORACLE_HOME/bin
./dbua

3) After this you should be able to see this



4) Choose the database SID in the database screen. And click on “Next”

5) Check the Database Assistant Information window detail after analysis. If the information
is regarding the following points, you can ignore and proceed further by clicking “yes”
(Default is “No”)
1. Stale optimizer statistics
2. Changes to Oracle connect role
3. Information on invalid objects

6) In the SYSAUX creation screen apply the following changes
1. Datafile name and location
a. Change the data file path and file name as
/oracle/SID/sapdata1/sysaux_1/sysaux.data1
b. Increase the initial size to 1000Mb
c. Select the Autoextend on check box
d. Increment 100Mb
e. Modify the selection of Maximum size value to 2000Mb from Unlimited

7) In the Recompilation of invalid objects screen

1. Choose check for the recompilation of invalid objects
2. Select the check box for disable the Archive log during the upgrade.
3. Click on “Next” to proceed

8) Select the “I already backed up my database” and choose next

9) In the “Management Options” screen disable the Configure the database with
enterprise manager option

10) In the “Management Options” screen disable the Configure the database with
enterprise manager option

11) Click Finish on the summary Screen

12) a. Conversion Started By 09:00 PM
b. Conversion End By 11:07 Pm
c. Total Conversion Time 2Hr (Approx)

Post-Upgrade Steps

1). Finalizing the Environment of the oraUser
Make sure that the changes you made to the Oracle user environment are permanently stored in the profiles (.cshrc, .dbenv_.csh, and so on).
2) Checking the Upgraded Database
a) Log onto the database as the ora user.
b) Enter the following command to start SQLPLUS:
sqlplus / as sysdba
c) Enter the following SQL commands:
A) Enter the following command to determine the release of the installed software:
SQL> select version from V$INSTANCE;
B) Enter the following command to determine the release and status of the installed database components:
SQL> select comp_id, version, status from dba_registry;
Make sure that the command returns the status VALID.
C) Check that the version returned in the previous two commands is identical.

After the upgrade check that the following document is created:
$ORACLE_HOME/assistants/dbua/doc/help/DefaultBehaviorChangesin10g.html
3) Extract the latest BR*Tools to the kernel directory /sapmnt/SID/exe
(i) Cd /sapmnt/SYS/exe
(ii) Sapcar –xvf DBATL700O10_18-20001045.SAR

4) Copy the initSID.sap from /oracle/SID/920_64/dbs directory
(i) Cd $ORACLE_HOME/dbs
(ii) Cp /oracle/SID/920_64/dbs/initSID.sap .

5) Update the permissions for the OS$ users for BR*Tools usage
i) cp /sapmnt/SID/exe/sapdba_role.sql /oracle/SID/102_64/dbs
ii) cd /oracle/SID/102_64/dbs
iii) ./sqlplus /nolog @sapdba_role SID

6) Change database compatibility by executing the following SQL command as the ora user
a) Login as oraSID
b) Sqlplus /nolog
c) Connect / as sysdba
i) SQL> alter system set compatible='10.2.0' scope = spfile;
d) Restart the Oracle database.
i) Shutdown immediate
ii) startup

7) Deactivate the Oracle recycle bin by executing the following SQL command as the ora user:
a) SQL> purge dba_recyclebin;
b) SQL> alter system set recyclebin = 'off' scope = spfile;

8) Gather Oracle optimizer statistics as follows:
a) Execute the following commands as the ora user:
b) SQL> spool $ORACLE_HOME/cfgtoollogs/dbstats.log
c) SQL> execute dbms_scheduler.disable('GATHER_STATS_JOB');
d) SQL> execute dbms_stats.gather_system_stats;
e) SQL> execute dbms_stats.gather_dictionary_stats (ESTIMATE_PERCENT => NULL,
METHOD_OPT => 'FOR ALL COLUMNS SIZE AUTO',GRANULARITY => 'ALL',
CASCADE => TRUE, OPTIONS => 'GATHER', NO_INVALIDATE => FALSE);
f) SQL> execute dbms_stats.gather_fixed_objects_stats;
g) Check the log file dbstats.log created at $ORACLE_HOME/cfgtoollogs for any errors during the gathering of statistics

9) Identify the objects that are invalid after the upgrade as follows:
a) Execute the following commands as the ora user:
b) SQL> @?/rdbms/admin/utlrp.sql;
c) SQL> spool $ORACLE_HOME/cfgtoollogs/invalid_post.log
d) SQL> select count(*) from dba_objects where status = 'INVALID';
e) SQL> select substr(owner,1,12) owner, substr(object_name,1,30) object, substr(object_type,1,30) type, status from dba_objects where status <>'VALID' order by owner;
f) SQL> spool off;
g) Check the log file to compare the invalid objects before the start of the upgrade to the upgraded system
10) Disable the following oracle parameters
a) Alter system reset commit_write scope = spfile sid=’*’;
b) Alter system reset cursor_space_for_time scope = spfile sid=’*’;
c) Alter system reset db_file_multiblock_read_count scope = spfile sid=’*’;
d) Alter system reset hash_join_enabled scope = spfile sid=’*’;
e) Alter system reset log_archive_start scope = spfile sid=’*’;
f) Alter system reset optimizer_index_cost_adj scope = spfile sid=’*’;
g) Alter system reset optimizer_mode scope = spfile sid=’*’;
h) Alter system reset statistics_level scope = spfile sid=’*’;
i) Alter system reset timed_statistics scope = spfile sid=’*’;
j) Alter system reset trace_enabled scope = spfile sid=’*’;

11) Restart the database to activate the changes
a) Sqlplus /nolog
b) Connect / as sysdba
c) Shutdown immediate;
d) Startup

12) Gather Statistics for SAP Schema
a) sqlplus /nolog
b) SQL> connect / as sysdba
c) SQL> @/oracle/stage/102_64/database/SAP/updDBSTATC10.sql

13) Update the DBCHECKORA control table after the upgrade as follows:
a) cd /oracle/stage/102_64/database/SAP
b) sqlplus sap/ @dbcheckora10upgr

14) Checking the oratab entry
a) cd /var/opt/oracle
b) Make sure that there is an entry like the following in your oratab file:
i) SID:/oracle/C11/102_64:N

15) Start the Listener process
a) Login oraSID
b) Check the status of the listener process
(i) lsnrctl staus
c) if the process is already not running, start the process
i) To start the listener lsnrctl start

16) Don’t rename the old oracle home directory, just rename the /oracle/SID/920_64 directory.
a) mv /oracle/SID/920_64/bin /oracle/SID/920_64/bin.old

17) Change the following R3 instance parameter to the new oracle home /oracle/SID/102_64.
a) DIR_ORAHOME
b) DIR_CLIENT_ORAHOME
c) DIR_SERVER_ORAHOME

18) Install the Oracle 9.2.0.7 Client software as per the note 886783
a) Login as oraSID
b) cd /oracle/client
c) mkdir 92x_64
d) cd 92x_64
e) SAPCAR –xvf /oracle/stage/920_64/client/OCL92064.SAR

That's all If you have any Problem Start Troubleshooting

Dont forget to apply SAP recommeneded opatches after this..


Hope it will make your upgrade smooth...


Regards,

Gagan Deep Kaushal

Friday, May 22, 2009

Install TOP utility for Solaris

Hi,

Install top utility to findout resource consumption in solaris.

Go to www.sunfreeware.com.
Select your OS and platform.
Then find the top package. It will be in a gzip format.
Download this and get it on your server.
Then use gunzip to unzip the file (gunzip filename.gz).
Finally, used pkgadd to add the top package (pkgadd -d filename).

Regards,
Gagan

Sunday, May 3, 2009

SMS Setting in SAP (SCOT Configuration for SMS)

HI All ,

Here i am sharing the procedure/configuration to send the message from SAP .

Go to T-code SCOT

You will see screen like this






Click on PAG and then create button on same screen






Provide detail as:

NODE: HTTP
Description: SMS Integration




Select HTTP Node



Provide URL provided by third party



Keep password this field blank as we have provided the same in URL itself




Provide maximum length of character allowed by service provider




Provide field address area as *




Provide the time in minutes or hours (depends )




Select Node is ready to Use




Now you can see HTTP service





HTTP Virtual host Configuration

Go to T-code SICF and select default host and then New Sub element






In Log-on tab provide user name and password for same client
Click on HANDLER List tab and provide the handler as shown below




Finally activate the service



HTTP Client proxy setting:

In same T-code SICF








In HTTP Log tab provide proxy detail



Maintain pager Service

Go to Client 000 and run t-code SA14

Provide detail as shown below

Pager Serv: BAL
Use :SMS Service




Go to SPRO in your customizing client


SAP Web Application Server  Basis Services Address Management Define pager services






Provide detail

Pager serv : SMS
Pager service : SMS
Use : SMS Service





Composing a SMS

Go to T-code SBWP





Click on New Message




To monitor the process go to T-code SCOT here you can see 1 in waiting as we have given time for 2 minutes it will send the message after 2 min only




Go to T-code SOST and here we can check the status of message






That's all now you can check you mobile phone for Message :)

Regards,
Gagan Deep Kaushal

Wednesday, April 29, 2009

Run OS Commands from SAP GUI

Hi All,

What a interesting piece of information now you can run os commands from SAP GUI.

Just run report RSBDCOS0 in SA38 and enjoy .

You can change working directory and all.Now no need to ask sysadmin to give password also . :)

Hope all basis will enjoy now..Specially junior guys..

Enjoy maadi....

Regards,
Gagan Deep kaushal

Registering a program on the Gateway

RFC connection test in SM59 might give error similar to this

———————————————————————————————————

Logon Connection Error

Error Details Error when opening an RFC connection

Error Details ERROR: program not registered

Error Details LOCATION: SAP-Gateway on host / sapgw

Error Details DETAIL: TP not registered

Error Details COMPONENT: SAP-Gateway

Error Details COUNTER: 16793

Error Details MODULE: gwr3cpic.c

Error Details LINE: 1694

Error Details RETURN CODE: 679

Error Details SUBRC: 0

Error Details RELEASE: 700

Error Details TIME: Mon APR 17 13:08:02 2009

Error Details VERSION: 2

———————————————————————————————————

The program in the above error should be registered in the gateway for this connection test to complete successfully. The server program rfcexec is responsible for its registration on the gateway.

To register the program login into the OS level as sudo su - adm and execute the following command.

rfcexec –g -a -x

rfcexec is the server program name, the can be obtained from SM59, it is case sensitive and should match with the entry in SM59. The and can be obtained from the transaction SMGW. When this command is executed it goes to a hanging loop.

The connection will fail once this command is terminated or the user executing this command logs off

To avoid this, instead of using the above mentioned command an entry should be made in the file saprfc.ini

To do this, execute the following command

sudo su - adm

rfcexec –D

is the RFC destination name in SM59

So now we are done with registering the server program, but how do we check it is registered, once a server program is registered it is displayed in the Logged on clients in SMGW.

In transaction SMGW choose GOTO-> Logged on clients. There should be an entry for the server program in the screen that is displayed with system type Registered_TP (which indicates that the program is registered)

There can be many reasons due to which we might get this error saying server program is not registered, once such instance which I faced was where in the TREX server, a new RFC destination was defined, the TREX server creates a new program id each time this RFC destination is defined. This program id was not changed in TCP/IP connection is SM59 which was the reason why the destination was failing



Regards,

Gagan Deep Kaushal

Thursday, April 16, 2009

SAP Notes--That help me a lot

Hi,

Through this blog i want to share some SAP note number that can help you in particular scenario because sometime its difficult to find out the same in service market place ......

Administration:


Note 121178 - NT: Installation note for SSO Single Sign On

Note 1171650 - Automated Oracle DB parameter check

Note 830576 - Parameter recommendations for Oracle 10g

Note 153641 - Swap space requirement for R/3 64-bit kernel

Note 570375 - SAP on Sun Solaris: Swap Space and Paging

Note 63906 - Explanation for SWAP SPACE sizes in ST06

Note 150380 - Is MIT Kerberos 5 supported for use with SNC ?

Note 981875 - Optimizer merge fix for Oracle 10.2.0.2




CRM

Note 1152612 - Incorrect component type in structure WRMA_S_RESULT_DATA

Note 724713 - parameter settings for Solaris 10

Note 1038204 - Setting Up the Help Center in SAP CRM

Note 1318162 - Performance problem with document search in CRM

Note 1162685 - SAP CRM 2007 Webclient performance

Note 1277476 - Performance Issues with browser caching of Mime

Note 1255130 - WEBCUIF: Frontend performance w.r.t PAI and table

Note 1247380 - THTMLB cellerator resizing performance enhancement

Tuesday, April 14, 2009

Problem in transport

Hi All,

Recently i have faced a issue with long running transports the reasons is some corrupted transports. So once you met this error you will not be able to even transport any other request.So here is the procedure through which you can resolve any issue related to STMS

1.) Ask everybody to leave the STMS transaction

2.) Ensure that there are no running transports (I mean currently
started) and kill all "tp" processes on all application server of BWP

3.) Copy to another location the content of /usr/sap/trans/tmp
afterwards truncate the content of /usr/sap/trans/tmp

4.) Delete the content of TRBAT and TRJOB tables on BWP if they
containing some entries

5.) Please take a screenshot of the Import Monitor of BWP and after that delete the entry within

6.) Start the failing imports again.



Enjoy Maadi...............


Regards,
Gagan Deep Kaushal

Monday, April 13, 2009

How to change default log-off url in CRM web ui ??

HI All,

In CRM new WEB UI, when profile other than IC_AGENT is assigned, there will be a system link "Log Off". When user clicks on it, the web ui session will be killed, and a page will be displayed. Normally it will be http://www.sap.com.

So here i am sharing how to change that link

In spro->Customer Relationship Management->UI Framework
->Technical Role Definition->Define Technical Profile
The field URL serves for this purpose.

So change the URL in url field and next time when you click log-off it will display your customized page.


CHEERS...............


Regards,
Gagan Deep Kaushal

Setting Up the Help Center in SAP CRM

Hi All,

These days i am updating lot of things about CRM ....dont get bored will update you soon with some new products also ....mean while i dont have much option ...

So here is the process to install the Help center for CRM WEB UI just equivalent to SAP Library in our CRM ABAP or R3 ABAP...

Follow these steps ...

1) Download library from http://service.sap.com/crm-inst. For the documentation on SAP CRM 2007, go to SAP CRM 2007 -> CRM Product -> Business User Documentation.

2) Unpack the ZIP file and install the business user documentation to a local file server.

3) In SAP CRM, start transaction SR13.

4) Remove all entries on tab "DynamicHelp" if there are any.

5) Make the following settings depending on if you have installed the documentation on a local file server or a web server:
Local File Server:
Go to tab "PlainHTMLFile" and fill the entries as follows:

Variant: enter a name for the variant, for example "HelpEnglish1"

Platform: "WN32" if you are using Microsoft Windows, else select from the F4 help.

Area: "XML_DOCU"

Path: Enter the path where the help is stored, for example "\\fileserver00\helpfiles\"

"Language": Enter the language key, for example "EN" for English or "DE" for German.

Default": Select one language entry as a default. This will be the fallback entry in case a language is not available.

To make the help available in several languages, you need to add one additional line per language, with a different variant name and language key.

Save your entries.

6) In Customizing, go to Sap Web Application Server -> Knowledge Management -> Settings in the Application System -> Sequence of Enhancements in Customer Namespace. Make the following entries
SPACE_01: "BBPCRM"
Enhancement: "700".
Select "Execute".
7) Re-start the Web user interface of SAP CRM. The "Help Center" and "?" links should now work in CRM WEB UI.


Note: While sharing HELP FILES take care that you create a folder and then put EN inside that like
//server/helpserver/EN


Regards,
Gagan Deep Kaushal

Oracle DB Performance Issue

Hi All,

Here i am sharing some steps that can help you to improve your oracle Performance ,Performance slow down has its own reasons on different sites but still you can try these common steps ....

1) Update statistics (The most common thing you can do first update you DB statistics if you are not doing this on regular basis.

2) Collect No work load statistics by using sqlplus command "

EXEC DBMS_STATS.GATHER_SYSTEM_STATS;


3) Collect workload statistics :

EXEC DBMS_STATS.GATHER_SYSTEM_STATS('INTERVAL', < minutes>);


: Number of minutes during which you are to determine the WORKLOAD statistics.

4) Check alert log file for any warning errors common scenario:

a) ORA-01654: unable to extend
b) ORA-00600: internal error code, arguments:
To resolve these check your table space and increase them appropriately.

c) Check Point not complete ...Its a major issue that can effect your performance

Proposed solution : Increase the size of redologs by following below link :


REDO LOG RESIZE/MODIFY


These are the first aid steps you can perform rest you need to analyze with oracle DBA.


Regards,
Gagan Deep Kaushal

Saturday, April 11, 2009

How do you add your company logo in CRM 2007 WEB UI?

Hi All,

Here is the procedure to add your Company's logo in CRM 2007 WEB UI

Step 1: Open the BSP application THTMLB_STYLES in the ABAP workbench SE80. Open the folders MIMES->sap_skins->defaults->styling->Ishape in the same order.

Step 2: You will find an image 'logo.png' in the folder Ishape. Open the context menu (using right-click mouse button) and select 'Update and Replace'. Select your company GIF or JPG image file from your local folder in your PC.


So ....Its Done Enjoy Maadi........

Thursday, April 2, 2009

How To Add Company Logo in SAP Screen

Hi All,


Steps to add company's LOGO

Transaction code - SMW0

Select Binary data for WebRFC application

press Enter

Click Execute

Click Settings -> Maintain MIME types

Click the Create button

Fill in :- TYPE : image/gif EXTENSION : .GIF

Click Save

Click Back to the Binary data for WebRFC

Click Create
Fill in :- Obj. name : zlogo.gif
Description : Company Logo

Click Import and specify the filename where your
GIF file is located.File type is BIN. Finish press the
Transfer button.
If successful, your logo will be shown in the Binary data for WebRFC.

Now run Transaction code SM30 - Table/View - SSM_CUST
Click Maintain
Click New Entries
Name Value to be set
START_IMAGE zlogo.gif
RESIZE_IMAGE NO

Logoff and Login again


Now you can see the Logo...


Regards,
Gagan Deep Kaushal

Sunday, March 22, 2009

Temporary tablespace in Oracle

HI All,

Here is the procedure to change the temporary tablespace in oracle:
CREATE TEMPORARY TABLESPACE psaptemp1 TEMPFILE '/oracle/SRP/sapdata2/temp_1/temp1.data1' SIZE 3000M;


ALTER DATABASE DEFAULT TEMPORARY TABLESPACE psaptemp1;


DROP TABLESPACE psaptemp INCLUDING CONTENTS AND DATAFILES;


select tablespace_name from dba_temp_files;


make sure new tablespace has been added .


Regards,
Gagan

Resize Redolog Groups in Oracle

Dear All,

Buy product that make a difference SAVE ENERGY
exit signs


Here is the procedure to resize the redo log group in SAP/Oracle
To check all Redolog files Run command:
Select * from v$log;

Now add a group, To add a log group
Alter database add logfile group 5 ('/oracle/SID/origlogA/log_g15m1.dbf','/oracle/SID/mirrlogA/log_g15m2.dbf') size 200M;

alter database add logfile group 6 ('/oracle/SID/origlogB/log_g16m1.dbf','/oracle/SID/mirrlogB/log_g16m2.dbf') size 200M;

alter database add logfile group 7 ('/oracle/SID/origlogA/log_g17m1.dbf','/oracle/SID/mirrlogA/log_g17m2.dbf') size 200M;


alter database add logfile group 8 ('/oracle/SID/origlogB/log_g18m1.dbf','/oracle/SID/mirrlogB/log_g18m2.dbf') size 200M;

After these commands, Force System for log switch
Alter system switch logfile;
Drop Existing Log groups files (Make sure no group has status active or current)
Alter database drop logfile group 1;
Alter database drop logfile group 2;
Alter database drop logfile group 3;
Alter database drop logfile group 4;

Remove these files from OS level
Now again add same Group

Buy product that make a difference SAVE ENERGY

Exit Sign


alter database add logfile group 1 ('/oracle/SID/origlogA/log_g11m1.dbf','/oracle/SID/mirrlogA/log_g11m2.dbf') size 200M;

alter database add logfile group 2 ('/oracle/SID/origlogB/log_g12m1.dbf','/oracle/SID/mirrlogB/log_g12m2.dbf') size 200M;


alter database add logfile group 3 ('/oracle/SID/origlogA/log_g13m1.dbf','/oracle/SID/mirrlogA/log_g13m2.dbf') size 200M;


alter database add logfile group 4 ('/oracle/SID/origlogB/log_g14m1.dbf','/oracle/SID/mirrlogB/log_g14m2.dbf') size 200M;


We can drop Log group 5,6,7,8
In case any of these groups are Active or current stage use “Alter system switch logfile"
Alter database drop logfile group 5;
Alter database drop logfile group 6;
Alter database drop logfile group 7;
Alter database drop logfile group 8;

CHEERSSSSSSSS

Buy product that make a difference SAVE ENERGY
exit signs



Regards,
Gagan Deep Kaushal

How to calculate SAP/Oracle Performance parameter

Dear All,

Recently i stuck with SAP performance issues So maximum time its related to Database so Here i have oracle and i am sharing a report and script through which you can find out the optimum Oracle database Parameters :

Steps:
1) Log-in to SAP system
2) Go to SA38/Se38
3) Give report name RSORADJV
4) Paste this script in provide window ( Script is for 10.2.0.2 only)

select
name,
substr(order_recommendation,3) recommendation,
remark,
"SET",
is_value,
should_be_value,
substr(order_recommendation,1,1) "ID",
inst_id
from
(
select
decode(substr(pis.name,1,3),
'***',-1,pis.inst_id) inst_id,
decode(substr(pis.name,1,3),
'***',upper(pis.name),
decode(pis.subname,
' ',pis.name,
pis.name||' ('||pis.subname||')')) name,
decode(substr(pis.name,1,3),
'***','* '||
decode(substr(pis.name,17,2),
' 1','Last change: March, 10th, 2009',
' 2','Note/Version: 830576/179',
' 3','Evaluation Date/Time: '||to_char(sysdate,'YYYY-MM-DD/HH24:MI:SS'),
' 4','DB Startup Date/Time: '||to_char(ext_startup,'YYYY-MM-DD/HH24:MI:SS')
||decode(ext_rac_enabled,'TRUE',' (data of instance '||pis.inst_id||')',''),
' 5','OLAP: '||decode(substr(upper(''),1,1),'Y','TRUE','FALSE'),
' 6','Patchset: '||ext_version
||decode(ext_rac_enabled,'TRUE',' (data of instance '||pis.inst_id||')',''),
' 7','Mergefix: '||ext_mergefix
||decode(ext_rac_enabled,'TRUE',' (data of instance '||pis.inst_id||')',''),
' 8','RAC: '||ext_rac_enabled
||decode(ext_rac_enabled,' (data of other instances at the end of the list)',''),
' 9','Platform: '||ext_platform_name
||decode(ext_rac_enabled,'TRUE',' (data of instance '||pis.inst_id||')',''),
'10','Event Check: '||decode(ext_event_contains_colon,
0,'reliable',
'not reliable [event separator ":" unsupported; see note 830576]')),
decode(pis.isdefault,
'TRUE',decode(pshould.value,
null,
'O ok (not set; mentioned with other prerequisites/not mentioned in note)',
decode(substr(pshould.value,1,5),
'-man-',
'D check if default value "'||pis.value||'" is suitable ('||substr(pshould.value,6)||')',
'-aut-',
'G automatic check ok; doublecheck if default value "'||pis.value||'" is suitable ('||substr(pshould.value,6)||')',
'-any-',
'N ok (not set; any value recommended)',
'-del-',
'J ok (not set; not to be set as explicitly mentioned in note)',
decode(upper(pis.value),
upper(pshould.value),
'I add explicitly with default value "'||pshould.value||'"',
'A add with value "'||pshould.value||'"'))),
decode(pshould.value,
null,
'F check why set but mentioned with other prerequisites/not mentioned in note',
decode(substr(pshould.value,1,5),
'-man-',
'E check if value "'||pis.value||'" is suitable ('||substr(pshould.value,6)||')',
'-aut-',
'H automatic check ok; doublecheck if value "'||pis.value||'" is suitable ('||substr(pshould.value,6)||')',
'-any-',
'M ok (set; any value recommended)',
'-del-',
'B delete (set; not to be set as explicitly mentioned in note)',
decode(
decode(
substr(replace(upper(pis.value),' ',''),1,length(
substr(replace(upper(pshould.value),' ',''),1,
instr(replace(upper(pshould.value),' ',''),'[')-1))),
substr(replace(upper(pshould.value),' ',''),1,
instr(replace(upper(pshould.value),' ',''),'[')-1),'X',
' ')||
decode(
substr(replace(upper(pis.value),' ',''),-length(
substr(replace(upper(pshould.value),' ',''),
instr(replace(upper(pshould.value),' ',''),']')+1))),
substr(replace(upper(pshould.value),' ',''),
instr(replace(upper(pshould.value),' ',''),']')+1),'X',
' '),
'XX',
'K ok (set correctly =)',
decode(sign(
decode(rpad('>=',length(pshould.value),'X'),
translate(pshould.value,'1234567890','XXXXXXXXXX'),
to_number(pis.value)-to_number(substr(pshould.value,3))+1,
0)),
1,
'L ok (set correctly >=)',
'C change value to "'||pshould.value||'"')))))) order_recommendation,
decode(substr(pis.name,1,3),
'***',' ',
decode(pis.isdefault,
'TRUE','NO',
'YES')) "SET",
pis.value is_value,
decode(substr(pshould.value,1,5),
'-man-',substr(pshould.value,6),
'-aut-',substr(pshould.value,6),
'-any-','any value',
'-del-','deleted '||chr(102)||'rom parameter file',
pshould.value) should_be_value,
pshould."comment" remark
from
(
select
inst_id,
name,
subname,
value,
vs,
"comment",
hide,
ext_mergefix,
ext_rac_enabled,
ext_version,
ext_startup,
ext_platform_name,
ext_event_contains_colon
from
(
select
original.inst_id,
lower(decode(instr(original.n,','),0,original.n,substr(original.n,1,instr(original.n,',')-1))) name,
lower(decode(instr(original.n,','),0,' ',substr(original.n,instr(original.n,',')+1))) subname,
replace(decode(original.n,
'PARALLEL_MAX_SERVERS',decode(ext_cpu_count.cpu_count*10-ext_para_max.para_max,
0,'-aut-'||substr(original.w,6),original.w),
'PGA_AGGREGATE_TARGET',decode(sign(round(ext_pgastat.MAX_since_start/ext_pgastat.limit_value*100)-90),
-1,decode(sign(round(ext_pgastat.MAX_since_start/ext_pgastat.limit_value*100)-75),
1,'-aut-'||substr(original.w,6),
original.w),
original.w),
'PROCESSES',decode(sign(round(ext_resource_limit.MAX_UTILIZATION/ext_resource_limit.limit_value*100)-75),
-1,'-aut-'||substr(original.w,6),original.w),
'SESSIONS',decode(sign(round(ext_resource_limit.MAX_UTILIZATION/ext_resource_limit.limit_value*100)-75),
-1,'-aut-'||substr(original.w,6),original.w),
'SHARED_POOL_SIZE',decode(sign(ext_shared_pool_size.shared_pool_size-400*1000*1000),
-1,'>= 400 MB',
decode(sign(ext_shared_pool_size.shared_pool_size-4*1024*1024*1024),
1,'<= 4GB, if no special reason for the high setting',
decode(sign(round(ext_pools_free.min_from_history/ext_shared_pool_size.shared_pool_size*100)-90),
-1,decode(sign(round(ext_pools_free.min_from_history/ext_shared_pool_size.shared_pool_size*100)-75),
1,'-aut-'||substr(original.w,6),
original.w),
original.w))),
'UNDO_RETENTION',decode(ext_undostat.max_stolen,
0,'-aut-'||substr(original.w,6),original.w),
original.w),'[SID]',ext_database.name) value,
original.v vs,
decode(original.n,
'PARALLEL_MAX_SERVERS','Max used (gv$resource_limit): '||ext_resource_limit.MAX_UTILIZATION
||' ('||round(ext_resource_limit.MAX_UTILIZATION/ext_para_max.para_max*100)
||'%); '
||replace(original.c,'[CPU_COUNT]',to_char(ext_cpu_count.cpu_count)),
'PGA_AGGREGATE_TARGET','Max used MB (gv$pgastat): '||round(ext_pgastat.MAX_since_start/1024/1024)
||' ('||round(ext_pgastat.MAX_since_start/ext_pgastat.limit_value*100)
||'%) ',
'PROCESSES','Max used (gv$resource_limit): '||ext_resource_limit.MAX_UTILIZATION
||' ('||round(ext_resource_limit.MAX_UTILIZATION/ext_resource_limit.limit_value*100)
||'%)',
'SESSIONS','Max used (gv$resource_limit): '||ext_resource_limit.MAX_UTILIZATION
||' ('||round(ext_resource_limit.MAX_UTILIZATION/ext_resource_limit.limit_value*100)
||'%); '
||replace(original.c,'[PROCESSES]',to_char(ext_processes.processes)),
'SHARED_POOL_SIZE',
'Max used MB (dba_hist_sgastat): '||
round((ext_shared_pool_size.shared_pool_size-ext_pools_free.min_from_history)/1024/1024)
||' ('||round((ext_shared_pool_size.shared_pool_size-ext_pools_free.min_from_history)/
ext_shared_pool_size.shared_pool_size*100)
||'%)',
'UNDO_RETENTION','Max unexpired stolen blocks (gv$undostat): '||ext_undostat.max_stolen,
original.c) "comment",
decode(instr(lower(original.n),'_fix_control'),0,'FALSE',decode(ext_fix_control.bugno,null,'TRUE','FALSE')) hide,
ext_mergefix.mergefix_at_least ext_mergefix,
ext_rac.enabled ext_rac_enabled,
original.version ext_version,
original.startup_time ext_startup,
ext_database.platform_name ext_platform_name,
ext_event.contains_colon ext_event_contains_colon
from
(
select
i.inst_id inst_id,
startup_time,
version,
n,w,v,r,c
from
(
select
'*** INFORMATION '||lpad(rownum,2)||' ***' n,
'' w,
'XXXXXX' v,
'' r,
'' c from gv$parameter2 where rownum < 11 union ( select
'BACKGROUND_DUMP_DEST' n,
'/oracle/[SID]/saptrace/background' w,
'XXXXXX' v,
'OS_FAMILY[UNIX]' r,
'' c from dual ) union ( select
'BACKGROUND_DUMP_DEST' n,
'[DRIVE]:\oracle\[SID]\saptrace\background' w,
'XXXXXX' v,
'OS_FAMILY[WINDOWS]' r,
'' c from dual ) union ( select
'CLUSTER_DATABASE' n,
'-any-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'COMMIT_WRITE' n,
'-del-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'COMPATIBLE' n,
'10.2.0' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'CONTROL_FILES' n,
'-any-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'CONTROL_FILE_RECORD_KEEP_TIME' n,
'>=30' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'CORE_DUMP_DEST' n,
'/oracle/[SID]/saptrace/background' w,
'XXXXXX' v,
'OS_FAMILY[UNIX]' r,
'' c from dual ) union ( select
'CORE_DUMP_DEST' n,
'[DRIVE]:\oracle\[SID]\saptrace\background' w,
'XXXXXX' v,
'OS_FAMILY[WINDOWS]' r,
'' c from dual ) union ( select
'DB_BLOCK_BUFFERS' n,
'-del-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'DB_BLOCK_SIZE' n,
'8192' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'DB_CACHE_SIZE' n,
'-man-appropriately set' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'DB_FILE_MULTIBLOCK_READ_COUNT' n,
'-del-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'DB_FILES' n,
'-any-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'DB_NAME' n,
'[SID]' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'DB_WRITER_PROCESSES' n,
'-man-change default in case of dbwr problems only' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'EVENT,10027' n,
'10027 trace name context forever, level 1' w,
'XXXXXX' v,
'' r,
'avoid process state dump at deadlock' c from dual ) union ( select
'EVENT,10028' n,
'10028 trace name context forever, level 1' w,
'XXXXXX' v,
'' r,
'do not wait while writing deadlock trace' c from dual ) union ( select
'EVENT,10049' n,
'-man-set with level 2 if minipatch 5-9 is installed' w,
' X ' v,
'OS_FAMILY[WINDOWS]' r,
'avoid ORA-07445/ORA-00600 as of minipatch 5' c from dual ) union ( select
'EVENT,10091' n,
'10091 trace name context forever, level 1' w,
' X ' v,
'' r,
'avoid CU Enqueue during parsing' c from dual ) union ( select
'EVENT,10091' n,
'10091 trace name context forever, level 1' w,
' X ' v,
'MF[00,01,02]' r,
'avoid CU Enqueue during parsing' c from dual ) union ( select
'EVENT,10142' n,
'10142 trace name context forever, level 1' w,
' XXX' v,
'' r,
'avoid Btree Bitmap Conversion plans' c from dual ) union ( select
'EVENT,10162' n,
'10162 trace name context forever, level 1' w,
' X ' v,
'' r,
'avoid wrong values' c from dual ) union ( select
'EVENT,10183' n,
'10183 trace name context forever, level 1' w,
'XXXXXX' v,
'' r,
'avoid rounding during cost calculation' c from dual ) union ( select
'EVENT,10191' n,
'10191 trace name context forever, level 1' w,
'XXXXXX' v,
'' r,
'avoid high CBO memory consumption' c from dual ) union ( select
'EVENT,10411' n,
'10411 trace name context forever, level 1' w,
' XXX' v,
'' r,
'fixes int-does-not-correspond-to-number bug' c from dual ) union ( select
'EVENT,10629' n,
'10629 trace name context forever, level 32' w,
'XXXXXX' v,
'' r,
'influence rebuild online error handling' c from dual ) union ( select
'EVENT,10891' n,
'10891 trace name context forever, level 1' w,
'XXXXXX' v,
'' r,
'avoid high parsing times joining many tables' c from dual ) union ( select
'EVENT,14532' n,
'-man-set with level 1 if fix 5618049 is installed' w,
' X ' v,
'' r,
'avoid massive shared pool consumption' c from dual ) union ( select
'EVENT,14532' n,
'14532 trace name context forever, level 1' w,
' XXXX' v,
'' r,
'avoid massive shared pool consumption' c from dual ) union ( select
'EVENT,38068' n,
'38068 trace name context forever, level 100' w,
'XXXXXX' v,
'' r,
'long raw statistic; implement note 948197' c from dual ) union ( select
'EVENT,38085' n,
'38085 trace name context forever, level 1' w,
' XXX' v,
'' r,
'consider cost adjust for index fast full scan' c from dual ) union ( select
'EVENT,38087' n,
'-man-set with level 1 if fix 5842686 is installed' w,
' X ' v,
'' r,
'avoid ora-600 at star transformation' c from dual ) union ( select
'EVENT,38087' n,
'38087 trace name context forever, level 1' w,
' XXXX' v,
'' r,
'avoid ora-600 at star transformation' c from dual ) union ( select
'EVENT,44951' n,
'-man-set with level 1024 if fix 6376915 is installed' w,
' X ' v,
'' r,
'avoid HW enqueues during LOB inserts' c from dual ) union ( select
'EVENT,44951' n,
'44951 trace name context forever, level 1024' w,
' XXX' v,
'' r,
'avoid HW enqueues during LOB inserts' c from dual ) union ( select
'FILESYSTEMIO_OPTIONS' n,
'SETALL' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'HPUX_SCHED_NOAGE' n,
'178' w,
'XXXXXX' v,
'RAC[FALSE]' r,
'performance' c from dual ) union ( select
'LOG_ARCHIVE_DEST' n,
'-del-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'LOG_ARCHIVE_DEST_1' n,
'LOCATION=/oracle/[SID]/oraarch/[SID]arch' w,
'XXXXXX' v,
'OS_FAMILY[UNIX]' r,
'note 966073' c from dual ) union ( select
'LOG_ARCHIVE_DEST_1' n,
'LOCATION=[drive]:\oracle\[SID]\oraarch\[SID]arch' w,
'XXXXXX' v,
'OS_FAMILY[WINDOWS]' r,
'note 966073' c from dual ) union ( select
'LOG_ARCHIVE_FORMAT' n,
'%t_%s_%r.dbf' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'LOG_BUFFER' n,
'>=1048576' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'LOG_CHECKPOINTS_TO_ALERT' n,
'TRUE' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'MAX_DUMP_FILE_SIZE' n,
'20000' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'OPEN_CURSORS' n,
'>=800' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'OPTIMIZER_DYNAMIC_SAMPLING' n,
'6' w,
' XXX' v,
'' r,
'est. % of index cached (inlist, nested loop)' c from dual ) union ( select
'OPTIMIZER_FEATURES_ENABLE' n,
'-del-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'OPTIMIZER_INDEX_CACHING' n,
'-del-' w,
'XXXXXX' v,
'' r,
'est. % of index cached (inlist, nested loop)' c from dual ) union ( select
'OPTIMIZER_INDEX_COST_ADJ' n,
'20' w,
'RRRRRR' v,
'' r,
'' c from dual ) union ( select
'OPTIMIZER_INDEX_COST_ADJ' n,
'-del-' w,
'BBBBBB' v,
'' r,
'' c from dual ) union ( select
'OPTIMIZER_MODE' n,
'-del-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'PARALLEL_EXECUTION_MESSAGE_SIZE' n,
'16384' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'PARALLEL_MAX_SERVERS' n,
'-man-#DB-CPU-CORES*10' w,
'XXXXXX' v,
'' r,
'CPU_COUNT=[CPU_COUNT]' c from dual ) union ( select
'PARALLEL_THREADS_PER_CPU' n,
'1' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'PGA_AGGREGATE_TARGET' n,
'-man-appropriately set' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'PROCESSES' n,
'-man-formula how to set in parameter note' w,
'XXXXXX' v,
'' r,
'dependent: SESSIONS' c from dual ) union ( select
'QUERY_REWRITE_ENABLED' n,
'FALSE' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'RECYCLEBIN' n,
'OFF' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'REMOTE_OS_AUTHENT' n,
'TRUE' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'REPLICATION_DEPENDENCY_TRACKING' n,
'-any-' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'SESSIONS' n,
'-man-2*PROCESSES' w,
'XXXXXX' v,
'' r,
'PROCESSES=[PROCESSES]' c from dual ) union ( select
'SHARED_POOL_SIZE' n,
'-man-appropriately set' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'STAR_TRANSFORMATION_ENABLED' n,
'TRUE' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'UNDO_MANAGEMENT' n,
'AUTO' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'UNDO_TABLESPACE' n,
'PSAPUNDO' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'UNDO_RETENTION' n,
'-man-appropriately set' w,
'XXXXXX' v,
'' r,
'' c from dual ) union ( select
'USER_DUMP_DEST' n,
'/oracle/[SID]/saptrace/usertrace' w,
'XXXXXX' v,
'OS_FAMILY[UNIX]' r,
'' c from dual ) union ( select
'USER_DUMP_DEST' n,
'[DRIVE]:\oracle\[SID]\saptrace\usertrace' w,
'XXXXXX' v,
'OS_FAMILY[WINDOWS]' r,
'' c from dual ) union ( select
'_B_TREE_BITMAP_PLANS' n,
'FALSE' w,
' X ' v,
'' r,
'avoid b*tree conversion to bitmap' c from dual ) union ( select
'_BLOOM_FILTER_ENABLED' n,
'FALSE' w,
' X ' v,
'' r,
'avoid wrong values' c from dual ) union ( select
'_DB_BLOCK_NUMA' n,
'-man-without CLM: =1, OTHERWISE: do not set' w,
'XXXXXX' v,
'OS[HP-UX IA (64-bit),HP-UX (64-bit)]' r,
'performance; note 1225732' c from dual ) union ( select
'_ENABLE_NUMA_OPTIMIZATION' n,
'-man-without CLM: =FALSE, OTHERWISE: do not set' w,
'XXXXXX' v,
'OS[HP-UX IA (64-bit),HP-UX (64-bit)]' r,
'performance; note 1225732' c from dual ) union ( select
'_FIX_CONTROL,4728348' n,
'4728348:OFF' w,
' X ' v,
'MF[00,01,02]' r,
'avoid wrong values; notes 964858 and 997889' c from dual ) union ( select
'_FIX_CONTROL,5705630' n,
'5705630:ON' w,
' X XXX' v,
'' r,
'use optimal OR concatenation; note 176754' c from dual ) union ( select
'_FIX_CONTROL,5765456' n,
'5765456:3' w,
' XXX' v,
'' r,
'no further information available' c from dual ) union ( select
'_FIX_CONTROL,6120483' n,
'6120483:OFF' w,
' X ' v,
'MF[00,01,02,03,04,05]' r,
'avoid wrong plan in simple query;notes 981875,1165319' c from dual ) union ( select
'_FIX_CONTROL,6120483' n,
'6120483:OFF' w,
' X ' v,
'MF[13,14]' r,
'avoid wrong plan in simple query;notes 981875,1165319' c from dual ) union ( select
'_FIX_CONTROL,6221403' n,
'6221403:ON' w,
' XXX' v,
'' r,
'correct selectivity; note 1165319' c from dual ) union ( select
'_FIX_CONTROL,6329318' n,
'6329318:OFF' w,
' X ' v,
'MF[01,02,03,04,05]' r,
'avoid between costs lower than =; note 1165319' c from dual ) union ( select
'_FIX_CONTROL,6329318' n,
'6329318:ON' w,
' X ' v,
'MF[06,07,08,09,10,11,12,13,14,15,16,17,18]' r,
'avoid between costs lower than =; note 1165319' c from dual ) union ( select
'_FIX_CONTROL,6430500' n,
'6430500:ON' w,
' X XXX' v,
'' r,
'avoid that unique index not chosen' c from dual ) union ( select
'_FIX_CONTROL,6440977' n,
'6440977:ON' w,
' X XXX' v,
'' r,
'consider redundant predicates in join; note 981875' c from dual ) union ( select
'_FIX_CONTROL,6626018' n,
'6626018:ON' w,
' X XXX' v,
'' r,
'avoid to low filter costs; note 981875' c from dual ) union ( select
'_FIX_CONTROL,6660162' n,
'6660162:ON' w,
' X ' v,
'' r,
'choose right index; note 981875' c from dual ) union ( select
'_FIX_CONTROL,6670551' n,
'6670551:ON' w,
' X ' v,
'' r,
'calculate stats on empty table; note 1165319' c from dual ) union ( select
'_FIX_CONTROL,6972291' n,
'6972291:ON' w,
' XXX' v,
'' r,
'use column group selectivity with hgrm;note 1165319' c from dual ) union ( select
'_FIX_CONTROL,7325597' n,
'7325597:ON' w,
' X XXX' v,
'' r,
'Avoid wrong Index after optimizer mergefix' c from dual ) union ( select
'_FIX_CONTROL,7692248' n,
'7692248:ON' w,
' XXX' v,
'' r,
'collect always histogram information' c from dual ) union ( select
'_FIRST_SPARE_PARAMETER' n,
'-man-set to 1 if fix 6904068 is installed' w,
' XXX' v,
'' r,
'Avoid high CPU consumption for Mutex requests' c from dual ) union ( select
'_INDEX_JOIN_ENABLED' n,
'FALSE' w,
' X ' v,
'' r,
'avoid wrong values; workaround for note 981875' c from dual ) union ( select
'_IN_MEMORY_UNDO' n,
'FALSE' w,
' X ' v,
'' r,
'avoid corruptions' c from dual ) union ( select
'_OPTIM_PEEK_USER_BINDS' n,
'FALSE' w,
'XXXXXX' v,
'' r,
'avoid bind value peaking' c from dual ) union ( select
'_OPTIMIZER_BETTER_INLIST_COSTING' n,
'OFF' w,
' RRR' v,
'' r,
'avoid preference of index supporting inlist' c from dual ) union ( select
'_OPTIMIZER_MJC_ENABLED' n,
'FALSE' w,
'XXXXXX' v,
'' r,
'avoid cartesean merge joins in general' c from dual ) union ( select
'_PUSH_JOIN_UNION_VIEW' n,
'-man-set to false if fix 7155655 is not installed' w,
' X ' v,
'MF[00,01,02,03,04,05,06]' r,
'avoid wrong values' c from dual ) union ( select
'_SORT_ELIMINATION_COST_RATIO' n,
'10' w,
'XXXXXX' v,
'' r,
'use non-order-by-sorted indexes (first_rows)' c from dual ) union ( select
'_TABLE_LOOKUP_PREFETCH_SIZE' n,
'0' w,
' X ' v,
'' r,
'avoid wrong values; note 1109753' c from dual )
),
gv$instance i
)
original,
( select
instance_number inst_id,
decode(pool,
'shared pool','SHARED_POOL_SIZE',
'java pool','JAVA_POOL_SIZE') pool,
min(bytes) min_from_history
from
dba_hist_sgastat
where
pool in ('shared pool', 'java pool') and
name = 'free memory'
group by
instance_number,
pool
)
ext_pools_free,
( SELECT
inst_id,
upper(RESOURCE_NAME) RESOURCE_NAME,
limit_value,
MAX_UTILIZATION
FROM
gv$RESOURCE_LIMIT
WHERE
RESOURCE_NAME IN (
'processes',
'sessions',
'parallel_max_servers')
)
ext_resource_limit,
( select
pga.inst_id,
pga.value max_since_start,
param.value limit_value
from
gv$pgastat pga,
gv$parameter2 param
where
pga.inst_id=param.inst_id and
pga.name='maximum PGA allocated' and
param.name='pga_aggregate_target')
ext_pgastat,
( select inst_id, value processes from gv$parameter2 where name = 'processes')
ext_processes,
( select inst_id, value para_max from gv$parameter2 where name = 'parallel_max_servers')
ext_para_max,
( select inst_id, value cpu_count from gv$parameter2 where name = 'cpu_count')
ext_cpu_count,
( select inst_id, value shared_pool_size from gv$parameter2 where name = 'shared_pool_size')
ext_shared_pool_size,
( select inst_id, max(UNXPBLKRELCNT+UNXPBLKREUCNT) max_stolen from gv$undostat group by inst_id)
ext_undostat,
( select
nvl(max(bf.nr),0) mergefix_at_least
from
( select bg, nr, '10.2.0.2' patchset from
( select
5648287 bg, 16 nr from dual union ( select
6399597 bg, 16 nr from dual ) union ( select
6430500 bg, 16 nr from dual ) union ( select
7325597 bg, 16 nr from dual ) union ( select
6440977 bg, 14 nr from dual ) union ( select
6120483 bg, 13 nr from dual ) union ( select
6626018 bg, 13 nr from dual ) union ( select
6660162 bg, 12 nr from dual ) union ( select
6239971 bg, 12 nr from dual ) union ( select
4567767 bg, 12 nr from dual ) union ( select
6251917 bg, 11 nr from dual ) union ( select
6062266 bg, 10 nr from dual ) union ( select
6087237 bg, 9 nr from dual ) union ( select
6007259 bg, 9 nr from dual ) union ( select
6151963 bg, 9 nr from dual ) union ( select
5882954 bg, 8 nr from dual ) union ( select
4708389 bg, 8 nr from dual ) union ( select
5944076 bg, 7 nr from dual ) union ( select
6051211 bg, 7 nr from dual ) union ( select
6082745 bg, 7 nr from dual ) union ( select
5705630 bg, 7 nr from dual ) union ( select
6070954 bg, 7 nr from dual ) union ( select
5976822 bg, 7 nr from dual ) union ( select
5838613 bg, 7 nr from dual ) union ( select
5949981 bg, 7 nr from dual ) union ( select
5680702 bg, 6 nr from dual ) union ( select
5884780 bg, 3 nr from dual ) union ( select
5084239 bg, 2 nr from dual ) union ( select
5912195 bg, 1 nr from dual ) union ( select
4273361 bg, 1 nr from dual ) union ( select
4483240 bg, 1 nr from dual ) union ( select
4712638 bg, 1 nr from dual ) union ( select
5449488 bg, 1 nr from dual ) union ( select
5483301 bg, 1 nr from dual ) union ( select
5547058 bg, 1 nr from dual ) union ( select
5694984 bg, 1 nr from dual ) union ( select
5705257 bg, 1 nr from dual ) union ( select
5741121 bg, 1 nr from dual ) union ( select
5762598 bg, 1 nr from dual )
) union (
select bg, nr, '10.2.0.4' patchset from
( select
7272039 bg,11 nr from dual union ( select
7692248 bg,11 nr from dual ) union ( select
5099019 bg,10 nr from dual ) union ( select
7295298 bg, 8 nr from dual ) union ( select
7430474 bg, 7 nr from dual ) union ( select
5648287 bg, 6 nr from dual ) union ( select
6430500 bg, 6 nr from dual ) union ( select
7236148 bg, 6 nr from dual ) union ( select
7325597 bg, 6 nr from dual ) union ( select
7138405 bg, 5 nr from dual ) union ( select
6845871 bg, 5 nr from dual ) union ( select
6399597 bg, 4 nr from dual ) union ( select
6221403 bg, 3 nr from dual ) union ( select
6440977 bg, 3 nr from dual ) union ( select
6972291 bg, 3 nr from dual ) union ( select
5714944 bg, 1 nr from dual ) union ( select
6120483 bg, 1 nr from dual ) union ( select
6329318 bg, 1 nr from dual ) union ( select
6626018 bg, 1 nr from dual ) union ( select
6670551 bg, 1 nr from dual )
))
) bf,
v$system_fix_control fc,
v$instance i
where
bf.bg=fc.bugno and
substr(i.version,1,instr(i.version,'.',1,4)-1)=bf.patchset)
ext_mergefix,
v$system_fix_control
ext_fix_control,
( select decode(instr(value,'/'),0,'WINDOWS','UNIX') os_family from
v$parameter2 where name = 'control_files' and rownum < 2)
ext_os_family,
v$database
ext_database,
( select value enabled from v$parameter2 where name = 'cluster_database' )
ext_rac,
( select count(*) contains_colon from gv$parameter2 where name = 'event' and instr(value,':')>0)
ext_event
where
substr(original.v,decode(
replace(substr(original.version,1,instr(original.version,'.',1,4)-1),'.',null),
'10201',1,'10202',2,'10203',3,'10204',4,'10205',5,'10206',6),1)
in ('X', decode(substr(upper(''),1,1),'Y','B','R')) and
original.inst_id = ext_pools_free.inst_id(+) and
original.n = ext_pools_free.pool(+) and
original.inst_id = ext_resource_limit.inst_id(+) and
original.n = ext_resource_limit.RESOURCE_NAME(+) and
original.inst_id = ext_pgastat.inst_id and
original.inst_id = ext_processes.inst_id and
original.inst_id = ext_para_max.inst_id and
original.inst_id = ext_cpu_count.inst_id and
original.inst_id = ext_shared_pool_size.inst_id and
original.inst_id = ext_undostat.inst_id and
(
instr(' '||original.r,'MF[')=0 or
instr(original.r,'MF[')>0 and
instr(
substr(original.r,
instr(original.r,'MF['),
instr(original.r,']',
instr(original.r,'MF['))-
instr(original.r,'MF[')+1),
lpad(ext_mergefix.mergefix_at_least,2,'0')) >0
) and
lower(decode(instr(original.n,','),0,' ',substr(original.n,instr(original.n,',')+1)))=
to_char(ext_fix_control.bugno(+)) and
decode(ext_fix_control.bugno(+),
null, decode(instr(lower(original.n),'_fix_control'),
0,'OK',
'HIDE'),
'OK')='OK' and
(
instr(' '||original.r,'OS_FAMILY[')=0 or
instr(original.r,'OS_FAMILY[')>0 and instr(original.r,ext_os_family.os_family)>0
) and
(
instr(' '||original.r,'OS[')=0 or
instr(original.r,'OS[')>0 and instr(original.r,ext_database.platform_name)>0
) and
(
instr(' '||original.r,'RAC[')=0 or
instr(original.r,'RAC[TRUE]')>0 and ext_rac.enabled='TRUE' or
instr(original.r,'RAC[FALSE]')>0 and ext_rac.enabled='FALSE'
)
)
where hide='FALSE'
) pshould,
(
select
inst_id,
name,
subname,
trim(substr(max(sort_string),1,5)) isdefault,
substr(max(sort_string),6)||
decode(count(*),1,'',
decode(name,'event','',
decode(substr(name,1,1),'_','',
', ...'))) value
from
(
select
inst_id,
lower(name) name,
' ' subname,
concat(lpad(isdefault,5),value) sort_string
from
gv$parameter2
where
name not in ('event','_fix_control')
union
(
select
inst_id,
'_fix_control' name,
substr(trim(value),1,instr(trim(value),':')-1) subname,
concat('FALSE',trim(value)) sort_string
from
gv$parameter2
where
name='_fix_control'
)
union
(
select
inst_id,
decode(substr(lower(n),1,5),
'event','event',
'_fix_','_fix_control',
lower(n)) name,
decode(substr(lower(n),1,5),
'event',substr(n,7),
'_fix_',substr(n,14),
' ') subname,
' TRUE ' sort_string
from
(
select
inst_id,
'*** INFORMATION '||lpad(rownum,2)||
' ***' n
from
gv$mystat
where
rownum < 11
union
(
select
inst_id,
n
from
(
select '_B_TREE_BITMAP_PLANS' n from dual
union ( select '_BLOOM_FILTER_ENABLED' n from dual )
union ( select '_DB_BLOCK_NUMA' n from dual )
union ( select '_ENABLE_NUMA_OPTIMIZATION' n from dual )
union ( select '_FIRST_SPARE_PARAMETER' n from dual )
union ( select '_FIX_CONTROL 4728348' n from dual )
union ( select '_FIX_CONTROL 5705630' n from dual )
union ( select '_FIX_CONTROL 5765456' n from dual )
union ( select '_FIX_CONTROL 6120483' n from dual )
union ( select '_FIX_CONTROL 6221403' n from dual )
union ( select '_FIX_CONTROL 6329318' n from dual )
union ( select '_FIX_CONTROL 6430500' n from dual )
union ( select '_FIX_CONTROL 6440977' n from dual )
union ( select '_FIX_CONTROL 6626018' n from dual )
union ( select '_FIX_CONTROL 6660162' n from dual )
union ( select '_FIX_CONTROL 6670551' n from dual )
union ( select '_FIX_CONTROL 6972291' n from dual )
union ( select '_FIX_CONTROL 7325597' n from dual )
union ( select '_FIX_CONTROL 7692248' n from dual )
union ( select '_INDEX_JOIN_ENABLED' n from dual )
union ( select '_IN_MEMORY_UNDO' n from dual )
union ( select '_OPTIM_PEEK_USER_BINDS' n from dual )
union ( select '_OPTIMIZER_BETTER_INLIST_COSTING' n from dual )
union ( select '_OPTIMIZER_MJC_ENABLED' n from dual )
union ( select '_PUSH_JOIN_UNION_VIEW' n from dual )
union ( select '_SORT_ELIMINATION_COST_RATIO' n from dual )
union ( select '_TABLE_LOOKUP_PREFETCH_SIZE' n from dual )
union ( select 'EVENT 10027' n from dual )
union ( select 'EVENT 10028' n from dual )
union ( select 'EVENT 10049' n from dual )
union ( select 'EVENT 10091' n from dual )
union ( select 'EVENT 10142' n from dual )
union ( select 'EVENT 10162' n from dual )
union ( select 'EVENT 10183' n from dual )
union ( select 'EVENT 10191' n from dual )
union ( select 'EVENT 10411' n from dual )
union ( select 'EVENT 10629' n from dual )
union ( select 'EVENT 10891' n from dual )
union ( select 'EVENT 14532' n from dual )
union ( select 'EVENT 38068' n from dual )
union ( select 'EVENT 38085' n from dual )
union ( select 'EVENT 38087' n from dual )
union ( select 'EVENT 44951' n from dual )
),
gv$instance)
) underscore
)
union
(
select
inst_id,
'event' name,
substr(trim(translate(value,
chr(10)||chr(13)||chr(9),' ')),1,5) subname,
concat('FALSE',trim(translate(value,
chr(10)||chr(13)||chr(9),' '))) sort_string
from
(
select
vparam.inst_id,
substr(':'||vparam.value, instr(':'||vparam.value,':',1,vcnt.cnt)+1,
decode(instr(':'||vparam.value,':',1,vcnt.cnt+1),0,
length(':'||vparam.value),instr(':'||vparam.value,':',1,vcnt.cnt+1)-1)-
decode(instr(':'||vparam.value,':',1,vcnt.cnt ),0,
length(':'||vparam.value),instr(':'||vparam.value,':',1,vcnt.cnt))) value
from
gv$parameter2 vparam,
(select rownum cnt from gv$parameter2 where rownum <= 20) vcnt
where
vparam.name='event'
)
where
value is not null
)
)
group by
inst_id,
name,
subname
) pis
where
pis.inst_id=pshould.inst_id(+) and
pis.name=pshould.name(+) and
pis.subname=pshould.subname(+)
)
order by
inst_id,
id,
name;



After This execute and you will be provided with current and expected value of DB parameters.

CHEERS.............


Regards,
Gagan Deep Kaushal

Tuesday, February 3, 2009

Unable to read Software Component Versions from SLD

Hi All ,

Recently i met an error like "Unable to read Software Component Versions from SLD"

After creation Software Component and its version in System Landscape Directory (SLD), we need to import that in Integration Repository (IR) so that objects can be developed.

We do this in IR as Tools - Transfer from System Landscape Directory - Import Software Component Versions.

But while importing, it gives out above-mentioned error. Following is the checklist to resolve the error.

Use t-code SLDCHECK on ABAP stack to confirm the connection of XI system and SLD.

Check whether SLD and XI system are on same server.

In the Integration Builder page, Click on the Administration and check the following parameters to make sure they are pointing to right SLD system and port.

com.sap.aii.connect.cr.httpport

com.sap.aii.connect.cr.name

com.sap.aii.connect.landscape.httpport

com.sap.aii.connect.landscape.name


I hope This will help you .


Regards,
Gagan Deep Kaushal

Saturday, January 31, 2009

What is the difference between a Transport Domain and a Transport group?

Hi,
one of my friend ask me this question and here i am sharing my views on this question:

Transport domain and transport group does not having relationship.transport group is concern with transport directory not with transport domain.

The SAP system containing the same transport directory are
called to be in same transport group.That means in your
three system landscape is having individual directory
concept then there are three transport group in your system
landscape. and if you are having concept of common transport
directory in your system landscape then there is one
transport group in your system landscape.

Whereas a Domain Controller is the one box or SID which
would control the transports going in from DEV to TEST and
to PROD. Also the TP command is run from the domain
controller.



Regards,
Gagan Deep Kaushal

Friday, January 23, 2009

How To Change Title of SAP Transaction Code ?

Hi All,

Sometimes, you may need to change the Title of the SAP Transaction code to a more meaningful one.

The steps are as follows:

Goto tcode SE63 ,On the top left Menu of the screen - Click Translation ---> Short texts - --> Transactions

For example, assuming you want to change the title of the t-code su10 from user maintenance: Mass changes Initial Screen to Mass User changes . On the first screen, fill in the following information:

Transaction code - SU10

Source Language - English

Target Language - English

To change the Title, click the Edit button. On the second line (the one in dark yellow), type in the Title (For e.g. Mass User changes) you want for the transaction code. Click the Save button

Now, call up the transaction code /nSU10 again and you should be able to view the new Title.



Regards,
Basis Team