How snapshot standby and database replay helps performance tuning in oracle

October 23, 2009 at 7:57 pm | In 1 | Leave a Comment
Tags: , , ,

Dear Readers,

Database Replay is a new feature in Oracle 11g using which you can replay all the actions in the database .This is usefull especially when you will be doing performance tuning.You can capture the database and replay it in a test database,so that you can identify the problem.But the question is the primary db and the test db will not be identical and you will not want to corrupt the test db with database replay.Oracle Snapshot standby helps here.In 11g you can put the standby database in snapshot standby mode and do the replay and performance tuning,once the job is done , when you put back the snapshot standby in managed recovery mode(normal dataguard) the flash back will be done and it will be back in normal standby mode.Your data will not corrupt and you have dataguard instance healthy.

Your comments are welcome.

– Vivek

Siebel CRM startup and shutdown scripts in linux and in Unix Flavours

October 23, 2009 at 7:55 pm | In 1 | Leave a Comment
Tags: , , , , , ,

Dear Readers,
In this post i will explain how to start and stop siebel CRM in linux

For Starting Siebel CRM do the following

1.start the oracle database and listener.

2.start the gateway server using the following command after sourcing the environment
cfgenv.sh in gtwysrvr directory and siebenv.sh in siebsrvr directory

$start_ns
the above is actually in gtwysrvr/bin directory..

after starting gateway server
3.start the siebel enterprise server using the following command after sourcing the siebenv.sh in siebsrvr
directory (this utility is in siebsrvr/bin dir)

$start_server all

4.Start the Oracle HTTP Server using the following command

cd $OHS_SERVER_PATH/opmn/bin
./opmnctl startall

Now your Siebel Server is Started…

To Stop the Siebel Server in Linux do the following

1.stop the Apache Oracle HTTP Server

./opmnctl stopall

2.stop the Siebel Enterprise Server using the following in siebsrvr/bin directory

$stop_server all

3.stop the Gateway Server using the following in gtwysrvr/bin directory

$stop_ns

4.Shutdown the listner and Oracle Database.

I hope this post will be usefull for all Siebel Administrators.

Your comments are welcome

– Vivek

Using Oracle Active DataGuard for Real Time Reporting

October 23, 2009 at 1:54 pm | In Advanced Implementation of EBS, Oracle DBA Tricks | Leave a Comment
Tags: , , ,

Dear Readers,

Its an interesting subject to discuss the above. can we use Oracle 11g Active DataGuard for Real time Reporting. Real time reporting -what i mean is the data should be always in sync with the primary(no longer time delays). Yes You can but only in Oracle 11g Active DataGuard.There will be a lot of confusion if you look at the terms.viz Active DataGuard, Snapshot standby etc., Active DataGuard is the new feature in 11g though which you can open the dataguard database in “read only ” mode when still it is recovering the data from primary.Previously in 10g and before versions,you can only open the dataguard in read only mode but your recovery will not happen in the background.If you use Active DataGuard in RealTime Apply Mode(RTA), then Yes you can use Active Guard for Real time Reporting,there will be no loss of data in the standby and it will be always in sync with the primary, no need to worry that what will happen if some thing wrong happened in primary, in 11g you have the flash back,so always you can flashback the data.And ofcourse to use ActiveDataGuard You need to buy separate license from Oracle apart from the Oracle Database License.It has some hindrances also ,you can not use right now active data guard for e-business suite since this is not certified,before deciding to go for active dataguard for realtime reporting you need to test whether it will work for your application

Your comments are most welcome
–Vivek

Manual Standby Database under Oracle Standard Edition

October 16, 2009 at 9:01 pm | In Oracle DBA Tricks | 2 Comments
Tags: , ,

Dear Readers,
In this post I will be explaining How to enable standby database in Oracle Standard Edition.
Oracle’s Standby Database technology has been renamed as DataGuard in recent versions starting from 9i of Oracle. Oracle has added advanced automation of the standby database technology, making automatic Standby technology easier. Here We will discuss about How We can use the same technology without violating the oracle licenses in Oracle’s Standard Edition.it turns out that it is still possible to create a *manual* standby database on Oracle Standard Edition..

1. First you need to create the initial standby database. Here are the steps to do that:

A. Set the primary database in archivelog mode, if it is not already, and add at least LOG_ARCHIVE_DEST and LOG_ARCHIVE_START to your init.ora.

SQL>SHUTDOWN IMMEDIATE
SQL> STARTUP MOUNT
SQL> ALTER SYSTEM ARCHIVE LOG START;
B. Next, create a hotbackup of the primary database. You can do this with RMAN, it is probably easiest to just do it manually so you know what is going on. For each tablespace do:

SQL> alter tablespace USERS begin backup;
SQL> !cp users01.dbf /u01/oracle/backup/
SQL> !cp users02.dbf /u01/oracle/backup/
SQL> !cp users03.dbf /u01/oracle/backup/
SQL> alter tablespace USERS end backup;
.

C. Now, create a standby controlfile from primary database:

ALTER DATABASE CREATE STANDBY CONTROLFILE AS ‘/u01/oracle/dbs/standby.ctl’;
D. copy everything over to the standby server including datafiles, standby controlfile & config files:

$ scp /u01/oracle/backup/*.dbf oracle@192.168.1.12:/u02/oracle/
E. In the standby machine, edit the standby init.ora file. Use this parameter to tell Oracle where files on the primary database will be located on the standby. For example if you had files in /ora/oracle on primary, and they are moved to /export/home/oracle on standby, this would work for you:

DB_FILE_NAME_CONVERT=’/u01/oracle’,'/u02/oracle’
Note that you can use MULTIPLE pairs of values here, if you have files in different locations. Alternatively, you can startup and mount the standby database then issue:

SQL> alter database rename file ‘/u01/oracle/users02.dbf’ to /u02/oracle/users02.dbf’ as an example.
You’re also likely to have a new location for your archived redo log files, and there the parameter LOG_FILE_NAME_CONVERT comes into play.

Neither of these parameters work for the ONLINE redolog files. Those you will have to rename yourself. If you do not do so, you will get an error at the time you try to SWITCHOVER your standby database. Such errors are easily remedied by running that command.

F. Now start the standby database and mount it.

SQL> startup nomount pfile=/u01/oracle/dbs/pfile/initorcl.standby
SQL> atler database mount standby database;
G. Finally recover the standby database using the AUTO option. Please note that you should build a simple shell script to startup sqlplus and run these commands. A name like manualstandbydb.sh would work well. You can then run this periodically, say every half hour, from cron to apply any new archived redolog files that have showed up via move_standby.sh below.

SQL> recover standby database;
AUTO
H. Now, , you’ll want to test your standby database. You do this by starting up in read-only mode.

SQL> alter database open read only;
I. Important Don’t forget to put it back in standby mode so that when your manualstandbydb.sh script runs from cron, it won’t return errors.

SQL> shutdown immediate;
SQL> startup nomount pfile=/u01/oracle/dbs/pfile/initorcl.standby
SQL> atler database mount standby database;

a. Enable cron scripts to copy archivelogs from primary and standby machine automatically.

Recall the script called manualstandbydb.sh -this will work well on the standby database too. This script applies new archived redologs that shipped from the production database.Run this scripts every one hour. The database should be mounted in standby mode (not read-only) otherwise this script will fail.

In the production server in the same way create a script called movestandbydb.sh, and run it every one hour . write the script so that it uses rsync to move archive log files from production to standby. A command like this would work:

$ rsync -e ssh -Pazv /u01/oracle/arch/ oracle@remote:/u01/oracle/arch/
Configure your ssh so that auto login works. Because this script (rsync) uses ssh autologin mechanism. Use ssh-keygen command. The .ssh in $HOME directory contains a public key, transfer this to the standby machine, and put in the “authorized_keys” file under .ssh directory in $HOME. . ssh will then login without a password. so this script works without a password.

b.To verify that the standby database is up to date?

Disable the manualstandbydb.sh script running from cron and then login with sqlplus and issue the command:

SQL> alter database open read only;
Verify whether the data is conistent and re-enable manualstandbydb.sh in the cron job.

Alert log errors in Manual Data Guard

You will get lot of messages like the database is trying to find the archive logs to apply and then applies it.(you can ignore them safely)

To Perform a switchover incase of failure , apply the remaining archive logs and start in read write mode.

In conclusion Athough You are having Oracle Standard Edition You can still use Oracle’s Standby log feature by little scripting and thus you can increase Your ROI.

Your Comments are welcome
– Vivek

How to Install Siebel CRM Webclient 8.0.0.0 in client machines

October 12, 2009 at 9:29 am | In 1 | Leave a Comment
Tags: , , ,

It is very hard to install siebel crm webclient unless you follow
certain steps.Mainly verify your operating system pre-requisite.Windows xp with sp2 is recommended.After that install the database client.If you are having Oracle Database 10g in the server , install oracle database 10g client(not server) in the client machine.If you want you can change the sibel.ini in file as required,Then start the siebel webclient installation, it will go through.You need Siebel Web client because you need to apply siebel crm licenses before accessing the applications.Hope this helps.

Your comments are welcome.
– Vivek

How to Install Oracle Hyperion EPM 11.1.1.3.0 In RedHat Linux Version 4

October 6, 2009 at 2:29 pm | In 1 | Leave a Comment
Tags: , ,

1.download the required zip files from http://edelivery.oracle.com
It depends upon which module you want to install

for Planning Plus Hyperion Module download the following zip files

V17766-01.zip, V17382-01.zip, V17366-01.zip , V17372-01.zip , V17389-01.zip , V17378-01.zip , V17380-01.zip, V17367-01.zip, V14827-01.zip, V17402-01.zip, V13482-01.zip, V14803-01.zip, V17390-01.zip , V17388-01.zip, V17370-01.zip, V17369-01.zip, V17397-01.zip

you can find more information on the documentation zipfile as for which module what to download.?
also download 10201_database_linux32.zip from oracle technology network.

step I.
install oracle database 10g r2 and

create a user and assign dba privelege ,this user will be used while installing hyperion

Step II.
unzip all the zip files into a centralized area

and then from vnc run the following

sh installTool.sh

It will automatically select the components and click install.

once installed click configure in the Final Page which will take you configuration

give oracle database details and leave rest of the things as default

once the configuration is successfull ,you will be able to access the hyperion EPM from the following URL’s

Hyperion workspace

http://hostname.domainname:45000/workspace

hyperion shared services

http://hostname.domainname:28080/interop/

Hyperion Planning

http://hostname.domainname:8300/HyperionPlanning/

Hyperion WebAnalysis

http://hostname.domainname:16000/WebAnalysis

username :- admin
password :- password

Your questions,comments are welcome

– Vivek R

How To Install Siebel CRM (Siebel Business Applications) 8.0.0 in Windows 2003 Server

September 30, 2009 at 7:00 am | In Oracle Apps Tips and Tricks | 2 Comments
Tags: , ,

Dear Friends,
In this post I will discuss about how to install siebel crm(siebel business applications)8.0.0 in windows 2003 Server.
1.Download all the required zip files from http://edelivery.oracle.com
2.Make a Network Install Image using windows Image creator for the required application either sba or sia.
3.Install 2003 windows server and on top of that install service pack 2.
4.create a user in windows called sadmin with password sadmin with administrator priveleges.
5.Install IIS webserver in windows 2003 server.
6.Install Oracle database version 10.2.0.2
7.create siebel_data tablespace with 10gb space.
8.Install Siebel Gateway Server,Siebel Enterprise Server,Database configuration utilites and Management server
9.run database configuration utility against the oracle database you installed.
10. then install Siebel web server extension and apply the configuration
11.Now the installation is complete.
To access the application first time you need to install siebel web client (install it in the same server) and apply license.

then access the application with url like http://servername/calllcenter_enu. or http://servername/sales_enu or http://servername/marketing_enu or which ever module you have applied licenses.

Siebel Installation made easy :) .

Your comments are welcome.

– Vivek

How To find which HRMS Family Pack level in 11i Instance.?

August 26, 2009 at 9:43 am | In Oracle Apps Tips and Tricks | Leave a Comment
Tags: ,

Dear Readers,
Running the following query will tell you which family pack of HRMS you are on in 11i.

SELECT ‘HR_PF.’ ||
DECODE (BUG_NUMBER,’2115771′ ,’A(2115771)’,
‘2268451′ ,’B(2268451)’,
‘2502761′ ,’C(2502761)’,
‘2632500′ ,’D(2632500)’,
‘2803988′ ,’E(2803988)’,
‘2968701′ ,’F(2968701)’,
‘3116666′ ,’G(3116666)’,
‘3233333′ ,’H(3233333)’,
‘3127777′ ,’I(3127777)’,
‘3333633′ ,’J(3333633)’,
‘3500000′ ,’K(3500000)’,
‘5055050′ ,’K RUP1(5055050)’,
‘5337777′ ,’K RUP2(5337777)’,
‘6699770′ ,’K RUP3(6699770)’,
‘7666111′ ,’K RUP4(7666111)’) ||
‘ patchset is installed ‘ “HR Family Pack”,
to_char(last_update_date,’DD-MON-YYYY HH24:MI:SS’) “DATE APPLIED”
FROM AD_BUGS
WHERE BUG_NUMBER in (‘2115771′,’2268451′,’2502761′,’2632500′,’2803988′,
‘2968701′,’3116666′,’3233333′,’3127777′,’3333633′,’3500000′, ‘5055050′,
‘5337777′,’6699770′,’7666111′)
ORDER BY BUG_NUMBER DESC
/

– Vivek

what is maintenance wizard in R12 and why we should use it?

August 25, 2009 at 1:48 pm | In Oracle Apps Tips and Tricks | 1 Comment
Tags: , ,

Dear Readers,
Oracle Recently release Maintenance wizard.It is a usefull tool ,
through which we can record the timings of a test upgrade run or dry run upgrade,
or production upgrade .Since we record problems when its happened in the first run,
we can review it later to reduce the downtime.We can load certain sql scripts and
execute those from the maintenance wizard,even we can run shell scripts from
maintenance wizard and schedule it.

Your comments are welcome.
– Vivek

Recover the Applications context file if it is lost or deleted accidentally

August 24, 2009 at 2:00 pm | In Oracle Apps Tips and Tricks | 2 Comments
Tags: ,

Dear Readers,

To Recover xml file in applications R12 follow these instructions

The Applications context file can be retrieved by running the adclonectx.pl script.

To retrieve the applications tier context file,

Execute the following command on the applications tier.

perl /clone/bin/adclonectx.pl retrieve

select the option of retrieving the applications tier context file that has been lost and retrieve it to the default location specified by the script.
The above command can be used only when the is still intact.

In case the has also been lost accidentally, the applications tier context file may be retrieved as follows:
Execute the following command on the database tier:
perl /appsutil/clone/bin/adclonectx.pl retrieve
On being prompted for the context file to be retrieved, select the option of retrieving the applications tier context file that has been lost.

While confirming the location for the context file, set it to any existing directory with write permission.
Once the context file has been generated in the specified location, move it to the location specified for the context file in the context variable ’s_contextfile’.
To retrieve the database tier context file,

Execute the following command on the database tier:
perl /appsutil/clone/bin/adclonectx.pl retrieve
On being prompted for the context file to be retrieved, select the database tier context file and retrieve it to the default location specified by the script.

– Vivek R

Next Page »

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.