Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all 1640 articles
Browse latest View live

Query to check concurrent history

$
0
0
set pagesize 200
set linesize 200
col "Who submitted" for a25
col "Status" for a10
col "Parameters" for a20
col USER_CONCURRENT_PROGRAM_NAME for a42
SELECT distinct t.user_concurrent_program_name,
r.REQUEST_ID,
to_char(r.ACTUAL_START_DATE,'dd-mm-yy hh24:mi:ss') "Started at",
to_char(r.ACTUAL_COMPLETION_DATE,'dd-mm-yy hh24:mi:ss') "Completed at",
decode(r.PHASE_CODE,'C','Completed','I','Inactive','P ','Pending','R','Running','NA') phasecode,
decode(r.STATUS_CODE, 'A','Waiting', 'B','Resuming', 'C','Normal', 'D','Cancelled', 'E','Error', 'F','Scheduled', 'G','Warning', 'H','On Hold', 'I','Normal', 'M',
'No Manager', 'Q','Standby', 'R','Normal', 'S','Suspended', 'T','Terminating', 'U','Disabled', 'W','Paused', 'X','Terminated', 'Z','Waiting') "Status",r.argument_text "Parameters",substr(u.description,1,25) "Who submitted",round(((nvl(v.actual_completion_date,sysdate)-v.actual_start_date)*24*60)) Etime
FROM
apps.fnd_concurrent_requests r ,
apps.fnd_concurrent_programs p ,
apps.fnd_concurrent_programs_tl t,
apps.fnd_user u, apps.fnd_conc_req_summary_v v
WHERE
r.CONCURRENT_PROGRAM_ID = p.CONCURRENT_PROGRAM_ID
AND r.actual_start_date >= (sysdate-30)
--AND r.requested_by=22378
AND   r.PROGRAM_APPLICATION_ID = p.APPLICATION_ID
AND t.concurrent_program_id=r.concurrent_program_id
AND r.REQUESTED_BY=u.user_id
AND v.request_id=r.request_id
--AND r.request_id ='2260046' in ('13829387','13850423')
and t.user_concurrent_program_name like '%%'
order by to_char(r.ACTUAL_COMPLETION_DATE,'dd-mm-yy hh24:mi:ss');

Script to generate AWR report for 7 days and send it as attachment in mail

$
0
0
$cat awr_7days2.sh

export ORACLE_HOME=/PROD/app/oracle/product/11.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
$ORACLE_HOME/bin/sqlplus -s '/as sysdba'<<EOF
@/home/oracle/gangai/awrrpt_script/7_days_24hr_AWR_report.sql


@/home/oracle/gangai/awrrpt_script/master_awr_control.sql
EOF
exit 0


$ cat awr_report_2.sh

for inst in PROD
do
export ORACLE_SID=$inst
export ORACLE_HOME=`grep $ORACLE_SID /home/oracle/gangai/oratab|awk -F : '{print $2}'`
export ORACLE_HOME=/PROD/app/oracle/product/11.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export MAILEE="gangai.nathan@doyensys.com"
./awr_7days2.sh $inst
#mailx -s "AWR report in ${ORACLE_SID}/`hostname` Completed" $MAILEE < /home/oracle/gangai/awrrpt_script/${ORACLE_SID}_*.html
cd /home/oracle/gangai/awrrpt_script/
tar cvf html.tar *.html
mailx -s "AWR report in ${ORACLE_SID}/`hostname` Completed" -a html.tar $MAILEE < /dev/null
done



$ cat awrrpt_script/7_days_24hr_AWR_report.sql
set lines 300;
set serveroutput on
spool /home/oracle/gangai/awrrpt_script/master_awr_control.sql
select 'set head off' from dual;
declare
cursor c is
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate) group by d.name,d.dbid
union
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate-1) group by d.name,d.dbid
union
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate-2) group by d.name,d.dbid
union
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate-3) group by d.name,d.dbid
union
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate-4) group by d.name,d.dbid
union
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate-5) group by d.name,d.dbid
union
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate-6) group by d.name,d.dbid
union
select d.dbid id,d.name name,min(s.snap_id) bs,max(s.snap_id) es from dba_hist_snapshot s,gv$database d where trunc(s.begin_interval_time) = trunc(sysdate-7) group by d.name,d.dbid;
begin
for c1 in c
loop
if c1.bs > 0 then
dbms_output.put_line('spool /home/oracle/gangai/awrrpt_script/'||c1.name||'_'
||c1.bs||'_'||c1.es||'.html');
dbms_output.put_line('select output from table(dbms_workload_repository.awr_report_html( '||c1.id||',1,'||
c1.bs||','||
c1.es||',0 ));');
dbms_output.put_line('spool off');
end if;
end loop;
end;
/
spool off;
set heading off
set pages 50000
set linesize 1500
set trimspool on
set trimout on
set term off
set verify off;
set feedback off;

Script to Automated Apply or Move the Weblogic / Middle ware patches to DR from PROD

$
0
0


Scripts

#!/bin/bash
############################################################## XML ###############################################
rm -rf /home/DR_test/remonte_scp_xml.sh
rm -rf /home/DR_test/remonte_scp_jasper.sh
rm -rf /home/DR_test/remonte_scp_jrxml.sh
find /home/DR_test/mxl -name "*.xml">> /home/DR_test/demo_xml.log
ssh root@192.168.1.1 "bash -s"< /home/DR_test/remonte_xml.sh >> /home/DR_test/export_xml.log

file1="/home/DR_test/demo_xml.log"
file2="/home/DR_test/export_xml.log"

comm -23 $file1 $file2 >> /home/DR_test/test.log

c=`cat /home/DR_test/test.log | wc -l`
i=1
while [ $i -le $c ]
do
cat /home/DR_test/test.log  |awk "FNR=="$i"" |awk '{print " scp -rp " $1 " root@192.168.1.1:" $1 }'>> /home/DR_test/remonte_scp_xml.sh
i=`expr $i + 1`
done

rm /home/DR_test/demo_xml.log
rm /home/DR_test/export_xml.log
rm /home/DR_test/test.log


############################################################## JASPER ###############################################
find /home/DR_test/mxl -name "*.jasper">> /home/DR_test/demo_jasper.log
ssh root@192.168.1.1 "bash -s"< /home/DR_test/remonte_jasper.sh >> /home/DR_test/export_jasper.log

file1="/home/DR_test/demo_jasper.log"
file2="/home/DR_test/export_jasper.log"
comm -23 $file1 $file2 >> /home/DR_test/test.log

c=`cat /home/DR_test/test.log | wc -l`
i=1
while [ $i -le $c ]
do
cat /home/DR_test/test.log  |awk "FNR=="$i"" |awk '{print " scp -rp " $1 " root@192.168.1.1:" $1 }'>> /home/DR_test/remonte_scp_jasper.sh
i=`expr $i + 1`
done

rm /home/DR_test/demo_jasper.log
rm /home/DR_test/export_jasper.log
rm /home/DR_test/test.log

############################################################## JRXML ################################################

find /home/DR_test/mxl -name "*.jrxml">> /home/DR_test/demo_jrxml.log
ssh root@192.168.1.1 "bash -s"< /home/DR_test/remonte_jrxml.sh >> /home/DR_test/export_jrxml.log

file1="/home/DR_test/demo_jrxml.log"
file2="/home/DR_test/export_jrxml.log"

comm -23 $file1 $file2 >> /home/DR_test/test.log

c=`cat /home/DR_test/test.log | wc -l`
i=1
while [ $i -le $c ]
do
cat /home/DR_test/test.log  |awk "FNR=="$i"" |awk '{print " scp -rp " $1 " root@192.168.1.1:" $1 }'>> /home/DR_test/remonte_scp_jrxml.sh
i=`expr $i + 1`
done

rm /home/DR_test/demo_jrxml.log
rm /home/DR_test/export_jrxml.log
rm /home/DR_test/test.log
sh /home/DR_test/remonte_scp_xml.sh
sh /home/DR_test/remonte_scp_jasper.sh
sh /home/DR_test/remonte_scp_jrxml.sh
find /home/DR_test/mxl -name "*.xml"
find /home/DR_test/mxl -name "*.jasper"
find /home/DR_test/mxl -name "*.jrxml"
Scripts Explanation

#!/bin/bash
############################################################## XML ###############################################
rm -rf /home/DR_test/remonte_scp_xml.sh
rm -rf /home/DR_test/remonte_scp_jasper.sh
rm -rf /home/DR_test/remonte_scp_jrxml.sh
find /home/DR_test/mxl -name "*.xml">> /home/DR_test/demo_xml.log
ssh root@192.168.1.1 "bash -s"< /home/DR_test/remonte_xml.sh (find /home/DR_test/mxl -name "*.xml") >> /home/DR_test/export_xml.log
file1="/home/DR_test/demo_xml.log"
file2="/home/DR_test/export_xml.log"

comm -23 $file1 $file2 >> /home/DR_test/test.log

c=`cat /home/DR_test/test.log | wc -l`
i=1
while [ $i -le $c ]
do
cat /home/DR_test/test.log  |awk "FNR=="$i"" |awk '{print " scp -rp " $1 " root@192.168.1.1:" $1 }'>> /home/DR_test/remonte_scp_xml.sh
i=`expr $i + 1`
done

rm /home/DR_test/demo_xml.log
rm /home/DR_test/export_xml.log
rm /home/DR_test/test.log



XML
    
    In XML script we have to copy all the xml files to DR site. First we have to take count and number of xml files in PROD and  DR and store it in demo_xml.log and export_xml.log. Now compare this tow files and store the o/p in test.log file. Then take a count from test.log file and store it in a variable C and check with condition while 1 is less than or equal to variable  C  then copy the files from source to destination.


Scripts for JASPER

 ############################################################## JASPER ###############################################
find /home/DR_test/mxl -name "*.jasper">> /home/DR_test/demo_jasper.log
ssh root@192.168.1.1 "bash -s"< /home/DR_test/remonte_jasper.sh >> /home/DR_test/export_jasper.log

file1="/home/DR_test/demo_jasper.log"
file2="/home/DR_test/export_jasper.log"
comm -23 $file1 $file2 >> /home/DR_test/test.log

c=`cat /home/DR_test/test.log | wc -l`
i=1
while [ $i -le $c ]
do
cat /home/DR_test/test.log  |awk "FNR=="$i"" |awk '{print " scp -rp " $1 " root@192.168.1.1:" $1 }'>> /home/DR_test/remonte_scp_jasper.sh
i=`expr $i + 1`
done

rm /home/DR_test/demo_jasper.log
rm /home/DR_test/export_jasper.log
rm /home/DR_test/test.log


JASPER
   
In Jasper script we have to copy all the jasper files to DR site. First we have to take count and number of jasper files in PROD and  DR and store it in demo_jasper.log and export_jasper.log. Now compare this tow files and store the o/p in test.log file. Then take a count from test.log file and store it in a variable C and check with condition while 1 is less than or equal to variable  C  then copy the files from source to destination.






Scripts for JRXML


############################################################## JRXML ################################################

find /home/DR_test/mxl -name "*.jrxml">> /home/DR_test/demo_jrxml.log
ssh root@192.168.1.1 "bash -s"< /home/DR_test/remonte_jrxml.sh >> /home/DR_test/export_jrxml.log

file1="/home/DR_test/demo_jrxml.log"
file2="/home/DR_test/export_jrxml.log"

comm -23 $file1 $file2 >> /home/DR_test/test.log

c=`cat /home/DR_test/test.log | wc -l`
i=1
while [ $i -le $c ]
do
cat /home/DR_test/test.log  |awk "FNR=="$i"" |awk '{print " scp -rp " $1 " root@192.168.1.1:" $1 }'>> /home/DR_test/remonte_scp_jrxml.sh
i=`expr $i + 1`
done

rm /home/DR_test/demo_jrxml.log
rm /home/DR_test/export_jrxml.log
rm /home/DR_test/test.log
sh /home/DR_test/remonte_scp_xml.sh
sh /home/DR_test/remonte_scp_jasper.sh
sh /home/DR_test/remonte_scp_jrxml.sh

Auto Apply Patch in DR from PROD in weblogicserver

$
0
0


Scripts


#!/bin/bash
#############################################################Move_bkp.sh#############################################
cd /data/bea/user_projects/domains/domain_FirstGen/
for f in *.ear
do
   cp -rf $f /data/bea/user_projects/domains/domain_FirstGen/${f%.ear}.ear_bkp_$(date +%m%d%y)
rm -rf $f
done
############################################################## Test1.sh ###############################################
ssh root@192.168.1.1"bash -s"< /xgen/xgtest3/script/move_bkp.sh >> /xgen/xgtest3/script/1.log

scp -r /xgen/xgtest3/bea/user_projects/domains/domain_FirstGen/*.ear root@192.168.1.1:/data/bea/user_projects/domains/domain_FirstGen

 

 

 

Scripts Explanation


#!/bin/bash
#############################################################Move_bkp.sh#############################################
cd /data/bea/user_projects/domains/domain_FirstGen/
for f in *.ear
do
   cp -rf $f /data/bea/user_projects/domains/domain_FirstGen/${f%.ear}.ear_bkp_$(date +%m%d%y)
rm -rf $f
done


Move_bkp
           
            In move_bkp  script we have to take backup of the previous ear files in DR site to copy the new ear file in DR.


Scripts for Test1

ssh root@192.168.1.1 "bash -s"< /xgen/xgtest3/script/move_bkp.sh >> /xgen/xgtest3/script/1.log

scp -r /xgen/xgtest3/bea/user_projects/domains/domain_FirstGen/*.ear root@192.168.1.1:/data/bea/user_projects/domains/domain_FirstGen



Test
         
This is the main script it calls the move_bkp script to take backup of old ear files in DR and copy the new ear files from PROD to DR

To Grant Read only access on v$ tables to User

$
0
0
SQL*Plus: Release 12.1.0.2.0 Production on Thu Mar 31 02:51:14 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options

SQL> grant select on v$instance to gnos;
grant select on v$instance to cognos
                *
ERROR at line 1:
ORA-02030: can only select from fixed tables/views


SQL> select owner, object_name from dba_objects where object_name in ('V$INSTANCE','V$DATABASE');

OWNER                 OBJECT_NAME

--------------------------------------------------------------------------------
PUBLIC                  V$DATABASE

PUBLIC                  V$INSTANCE





SQL> SELECT TABLE_OWNER,TABLE_NAME FROM DBA_SYNONYMS  where SYNONYM_NAME in ('V$INSTANCE','V$DATABASE');

TABLE_OWNER                       TABLE_NAME

--------------------------------------------------------------------------------
SYS                              V_$DATABASE

SYS                              V_$INSTANCE


SQL> grant select on V_$DATABASE to gnos;

Grant succeeded.

SQL>  grant select on V_$INSTANCE to gnos;

Grant succeeded.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options

OPM:Can not find one alive process , Could not reserve enough space for object heap

$
0
0
Issue :

 After running adcfgclone in apps Tier in 11i , It got completed without any error and When we tried to login the First page comes but when we try to click on homepage, it redirects to blank page which says "Page cannot be displayed" instead of login page.

In Apache Error log:
--------------------------

iAS Home/Apache/Apache/logs :

[Tue Apr  5 20:41:43 2016] [error] [client 10.1.163.122] File does not exist:
[Tue Apr  5 20:45:05 2016] [error] [client 10.1.163.122] File does not exist: /u01/app/doyen/doyencomn/html/US/ICXINDEX_doyen_usws1rdvcm04.htm
[Tue Apr  5 20:45:22 2016] [error] OPM:Can not find one alive process
[Tue Apr  5 20:45:22 2016] [error] [client 10.1.163.122] File does not exist: /servlets/weboam/oam/oamLogin/oam/oamLogin
[Tue Apr  5 20:51:13 2016] [error] OPM: EW: Fail to start process with mod=JServ and grp=DiscoGroup, it's possible that your configuration file is not correct.
[Tue Apr  5 20:51:13 2016] [error] OPM: EW: Fail to start process with mod=JServ and grp=OACoreGroup, it's possible that your configuration file is not correct.
[Tue Apr  5 20:51:13 2016] [error] OPM: EW: Fail to start process with mod=JServ and grp=OACoreGroup, it's possible that your configuration file is
[Tue Apr  5 21:12:18 2016] [notice] Oracle HTTP Server Powered by Apache/1.3.19 configured -- resuming normal operations
[Tue Apr  5 21:25:42 2016] [error] [client 10.1.163.122] File does not exist: /u01/app/doyen/doyencomn/portal/doyen_doyendb02/favicon.ico
[Tue Apr  5 21:25:45 2016] [error] [client 10.1.163.122] File does not exist: /u01/app/doyen/doyencomn/portal/doyen_doyendb02/favicon.ico
[Tue Apr  5 21:25:45 2016] [error] OPM:Can not find one alive process

In Jserv Logs:
----------------

[apdoyen@doyendb02 jvm]$ pwd
/u01/app/doyen/doyenora/iAS/Apache/Jserv/logs/jvm

vi OACoreGroup.4.stderr

Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
Could not create the Java virtual machine.

vi XmlSvcsGrp.0.stdout

/usr/bin/jdk1.6.0_30/jre/bin/java -DCLIENT_PROCESSID=8314 -verbose:gc -Xmx1600M -Xms1600M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:
+PrintClassHistogram -XX:+UseTLAB -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=false -DFND_TOP=/u01/app/doyen/doyenappl/fnd/11.5.0 -OA_HTML=/u01/app/doyen/doyencomn/html/ -DOA_MEDIA=/u01/app/doyen/doyencomn/java/oracle/apps/media/ -DOASMTPServer=doyendb02.hrbl.net -DWebProxyHost=doyendb02.hrbl.net -
DWebProxyPort=80 -DWebProxyByPassDomain=hrbl.net -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -
DOASSLCACertFile=/u01/app/doyen/doyenora/iAS/Apache/Apache/conf/ssl.crt/ca-bundle.crt -DOXTAInPoolSize=1 -DOXTAOutThreads=1 -DOXTAOutUseProxy=false -
DOXTAOutProxyHost=doyendb02.hrbl.net -DOXTAOutProxyPort=80 -DCOMMON_TOP=/u01/app/doyen/doyencomn -DOXTALogDebugMsg=false -DEXTERNAL_URL=http://doyendb02.hrbl.net:8016 -
Djbo.323.compatible=true -DAPPLRGF=/u01/app/doyen/doyencomn/rgf/doyen_doyendb02 -DJTFDBCFILE=/u01/app/doyen/doyenappl/fnd/11.5.0/secure/doyenapps01_doyen.dbc -
Dservice.Logging.common.filename=/u01/app/doyen/doyencomn/temp/ibe.log -Dframework.Logging.system.filename=/u01/app/doyen/doyencomn/temp/fwsys.log -
DIMT_COM_PROPERTY_FILE=/u01/app/doyen/doyenappl/imt/11.5.0/admin/scripts/imtjserv.properties -Dpoolsize=100 -Dminpoolsize=10 -Dpoolincrement=10 -Dpooldelayincrement=3 -
DBNEDBCFILE=/u01/app/doyen/doyenappl/fnd/11.5.0/secure/doyenapps01_doyen.dbc -Djserv.session.getValue.instrument=false org.apache.jserv.JServ -opmpropfile
/u01/app/doyen/doyenora/iAS/Apache/Jserv/etc/xmlsvcs.properties -opmhost doyendb02.hrbl.net -opmport 8116 -opmgrp XmlSvcsGrp -opmindex 0 -opmprocid 7
-------------------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
---------------------------------------------------

Solution  :
-----------
Cause :
---------

System was unable to reserve 1600M java heap memory for the jvm …

Solution : 

Reduced the java heap memory to be used by the jvm to 512M (updated the s_jvm_options  in the CONTEXT_FILE and ran autoconfig)


Before:
<jvm_options oa_var="s_jvm_options" osd="Linux">-verbose:gc –Xmx1600M –Xms1600M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:
+PrintClassHistogram -XX:+UseTLAB -XX:+CMSClassUnloadingEnabled</jvm_options>

After:

<jvm_options oa_var="s_jvm_options" osd="Linux">-verbose:gc -Xmx512M -Xms512M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -
XX:+PrintClassHistogram -XX:+UseTLAB -XX:+CMSClassUnloadingEnabled</jvm_options>

After this Run Autoconfig and retest the issue.

Reference : Error 'Could not reserve enough space for object heap' During Initialization of JVM (Doc ID 1028915.1)

ORA-00600: internal error code, arguments: [2619], [4476], [], [], [], [], [], [], [], [], [], []

$
0
0
Problem:

Physical standby recovery reports error in alert log:

Wed Jun 23 01:10:22 2010
Media Recovery Log /mnt/import/recovery_standby/4_77799_650412287.dbf
Errors in file /oracle/diag/rdbms/db1/DB1/trace/DB1_pr00_16417.trc (incident=360443):
ORA-00600: internal error code, arguments: [2619], [77799], [], [], [], [], [], [], [], [], [], []
Incident details in:
Managed Standby Recovery not using Real Time Apply
Recovery interrupted!
...
ORA-10877: error signaled in parallel recovery slave
ORA-10877: error signaled in parallel recovery slave
...
MRP0: Background Media Recovery process shutdown


Cause:

ORA-600[2619] is raised due to an invalid next_change# detected in archive log.

In this case, it is caused by the archive log disk space ran out on standby site, causing that archive log not fully written on disk. This lead to ORA-600[2619] when the archive log was applied.

Solution:

1. Clear the disk space where archive log stored on standby site

2. Copy the problem archive log  from the primary site and replace the one on the standby, then restart Managed Recovery.
Archive log should be applied properly now.

Article 20

$
0
0
                     
                              Kkjcre1p: Unable To Spawn Jobq Slave Process, Error 1089



SYMPTOMS:

During RMAN cold backup when the database goes down we may see the error in alert log
kkjcre1p: unable to spawn jobq slave process, error 1089

Alert log shows
Thu
Dec 1 02:16:17 2005
Shutting down instance: further logons disabled
Thu Dec 1 02:16:18 2005
kkjcre1p: unable to spawn jobq slave process, error 1089
Thu Dec 1 02:16:21 2005
Stopping background process CJQ0
Thu Dec 1 02:16:24 2005
Job queue slave processes stopped

CAUSE:

ORA01089 is just a warning that the DB is being shut down.
If a job is about to be spawned when shutdown of database is in progress, you will see these errors in the alert log file and this is perfectly valid.

SOLUTION:

There is no harm at all because of this warning being logged to the alert.log The Error can be safely ignored as
the job coordinator process tried to spawn a job slave when the Shutdown was in progress.
One workaround that we can suggest is to set an underscore parameter
_JOB_QUEUE_INTERVAL=120 or greater value
The default value is 60 but when we change to 120 there are less chances of getting the above warnings in the

alert log file.

Ref:Doc ID 344275.1

Article 19

$
0
0
 
       
        11g RAC :Convert NON RAC database to RAC database using RCONFIG

When you navigate through the $ORACLE_HOME/assistants/rconfig/sampleXMLS, you will find two sample XML input files.

- ConvertToRAC_AdminManaged.xml
- ConvertToRAC_PolicyManaged.xml


– Edit AdminManaged.xml and make following changes :

   . Specify current OracleHome of non-rac database for SourceDBHome
   . Specify OracleHome where the rac database should be configured. It can be same as SourceDBHome
   . Specify SID of non-rac database and credential. User with sysdba role is required to perform conversion
   . Specify the list of nodes that should have rac instances running for the Admin Managed Cluster Database. LocalNode should be the first node in this nodelist.
   . Instance Prefix tag is optional starting with 11.2. If left empty, it is derived from db_unique_name
   . Specify the type of storage to be used by rac database. Allowable values are CFS|ASM
   . Specify Database Area Location to be configured for rac database.
   . Specify Flash Recovery Area to be configured for rac database.




SAMPLE SCRIPT that changes were made in XML file to convert.


<?xml version="1.0" encoding="UTF-8"?>
<n:RConfig xmlns:n="http://www.oracle.com/rconfig"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.oracle.com/rconfig rconfig.xsd">
    <n:ConvertToRAC>
<!-- Verify does a precheck to ensure all pre-requisites are met, before the conversion is attempted. Allowable values are: YES|NO|ONLY -->
        <n:Convert verify="ONLY">
<!--Specify current OracleHome of non-rac database for SourceDBHome -->
              <n:SourceDBHome>/backup/PROD/db/tech_st/11.2.0</n:SourceDBHome>
<!--Specify OracleHome where the rac database should be configured. It can be same as SourceDBHome -->
              <n:TargetDBHome>/u01/app/oracle/product/11.2.0/dbhome_1</n:TargetDBHome>
<!--Specify SID of non-rac database and credential. User with sysdba role is required to perform conversion -->
              <n:SourceDBInfo SID="PROD">
                <n:Credentials>
                  <n:User>sys</n:User>
                  <n:Password>oracle</n:Password>
                  <n:Role>sysdba</n:Role>
                </n:Credentials>
              </n:SourceDBInfo>
<!--Specify the list of nodes that should have rac instances running for the Admin Managed Cluster Database. LocalNode should be the first node in this nodelist. -->
              <n:NodeList>
                <n:Node name="hostname1"/>
                <n:Node name="hostname2"/>
              </n:NodeList>
<!--Specify RacOneNode along with servicename to convert database to RACOne Node -->
              <!--n:RacOneNode  servicename="salesrac1service"/-->
<!--Instance Prefix tag is optional starting with 11.2. If left empty, it is derived from db_unique_name.-->
              <n:InstancePrefix></n:InstancePrefix>
<!-- Listener details are no longer needed starting 11.2. Database is registered with default listener and SCAN listener running from Oracle Grid Infrastructure home. -
->
<!--Specify the type of storage to be used by rac database. Allowable values are CFS|ASM. The non-rac database should have same storage type. ASM credentials are no nee
ded for conversion. -->
              <n:SharedStorage type="ASM">
<!--Specify Database Area Location to be configured for rac database.If this field is left empty, current storage will be used for rac database. For CFS, this field wil
l have directory path. -->
                <n:TargetDatabaseArea>+DISKNAME</n:TargetDatabaseArea>
<!--Specify Fast Recovery Area to be configured for rac database. If this field is left empty, current recovery area of non-rac database will be configured for rac data
base. If current database is not using recovery Area, the resulting rac database will not have a recovery area. -->
                <n:TargetFlashRecoveryArea>+DISKNAME</n:TargetFlashRecoveryArea>
              </n:SharedStorage>
        </n:Convert>
    </n:ConvertToRAC>



Note: In the xml file ,

<!-- Verify does a precheck to ensure all pre-requisites are met, before the conversion is attempted. Allowable values are: YES|NO|ONLY -->
        <n:Convert verify="ONLY"> ------> this value does only check the pre-requisites.

In order to convert we should specify YES value


<!-- Verify does a precheck to ensure all pre-requisites are met, before the conversion is attempted. Allowable values are: YES|NO|ONLY -->
        <n:Convert verify="YES"> ------> this value does the convention from non-rac to rac.






Golden Gate script (info all)

$
0
0
export ORACLE_SID=oracl
export ORACLE_HOME=/opt/oracle/product/11.2.0.3.0/db_1
export ORACLE_BASE=/opt/oracle/product
export GGS_HOME=/opt/oracle/product/ggate
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/local/bin:/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
$GGS_HOME/ggsci <<EOF
info all
exit
EOF

Golden Gate script( stats Replicat)

$
0
0
export ORACLE_SID=orcl
export ORACLE_HOME=/opt/oracle/product/11.2.0.3.0/db_1
export ORACLE_BASE=/opt/oracle/product
export GGS_HOME=/opt/oracle/product/ggate
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/local/bin:/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
$GGS_HOME/ggsci <<EOF
stats replicat $1
exit
EOF

Golden gate script(Stats Extract)

$
0
0
export ORACLE_HOME=/opt/oracle/product/11.2.0.3.0/db_1
export ORACLE_BASE=/opt/oracle/product
export GGS_HOME=/opt/oracle/product/ggate
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/local/bin:/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
$GGS_HOME/ggsci <<EOF
#stats extract ereg
stats extract $1
exit
EOF

Golden gate script (lag replicat)

$
0
0
export ORACLE_SID=orcl
export ORACLE_HOME=/opt/oracle/product/11.2.0.3.0/db_1
export ORACLE_BASE=/opt/oracle/product
export GGS_HOME=/opt/oracle/product/ggate
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/local/bin:/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
$GGS_HOME/ggsci <<EOF
lag replicat $1
exit
EOF

Golden gate script(info Replicat)

$
0
0
export ORACLE_SID=orcl
export ORACLE_HOME=/opt/oracle/product/11.2.0.3.0/db_1
export ORACLE_BASE=/opt/oracle/product
export GGS_HOME=/opt/oracle/product/ggate
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/local/bin:/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
$GGS_HOME/ggsci <<EOF
info replicat $1 detail
exit
EOF

Golden gate script (info manager)

$
0
0
export ORACLE_SID=orcl
export ORACLE_HOME=/opt/oracle/product/11.2.0.3.0/db_1
export ORACLE_BASE=/opt/oracle/product
export GGS_HOME=/opt/oracle/product/ggate
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/local/bin:/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
$GGS_HOME/ggsci <<EOF
info manager  $1 detail
exit

Golden gate script(info extract)

$
0
0
export ORACLE_SID=orcl
export ORACLE_HOME=/opt/oracle/product/11.2.0.3.0/db_1
export ORACLE_BASE=/opt/oracle/product
export GGS_HOME=/opt/oracle/product/ggate
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/local/bin:/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
$GGS_HOME/ggsci <<EOF
info extract $1 detail
exit
EOF

Article 11

$
0
0

Oracle EBS Login Page Error : The page cannot be found


Normally, after cloning a new test environment on a new server, when we try to get the login
page by url “http://ServerName.domain:port/OA_HTML/AppsLocalLogin.jsp” , we get the error
message “The page cannot be found”.
Also if we try http://ServerName.domain:port and we will get the same error message.


Solution :

Step 1 : First , we need to check all Apache configuration files - httpd.conf, httpds.conf,
apps.conf, oprocmgr.conf, httpd_pls.conf .

Step 2 : We need to check required Linux RPM’s that may be missing as it is a new server.

Step 3 : We need to check the /etc/hosts file :

Most of the time, we make wrong entry in /etc/hosts file as shown below.
127.0.0.1 localhost.localdomain localhost ServerName
192.168.214.134 ServerName

We need to edit the /etc/hosts file as follows:

127.0.0.1 localhost.localdomain localhost
192.168.214.134 ServerName.domain ServerName

Step 4 : Clear cache from $COMMON_TOP/_pages/_oa__html/

Step 5 : Restart Apache
Now we will get the login page………

Article 10

$
0
0

Steps to recover Applications context file if it is corrupted ordeleted accidentally


If the Oracle Applications Context file is corrupted or deleted accidentally, then we need to
follow the below steps to recover the Context file.

To retrieve the Applications tier context file.

Run the adclonectx.pl as shown below.

perl /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 and retrieve it to the default
location specified by the script.

The above command (adclonectx.pl can be used only when INST_TOP the is still intact. In
case that 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 scrip

Article 9

$
0
0

Important tables for ADPATCH


Here are some of the important tables used by ADPATCH utility.

 AD_APPL_TOPS

This table holds the various APPL-TOP’s in the Oracle Applications installation
that have ever been patched.

 AD_APPLIED_PATCHES

AD_APPLIED_PATCHES holds information about the “distinct” Oracle
Applications patches that have been applied. If 2 patches happen to have the
same name but are different in content (eg. “merged” patches), then they are
considered distinct and this table will therefore hold 2 records.

 AD_BUGS

AD_BUGS holds information about the various Oracle Applications bugs whose
fixes have been applied (ie. patched) in the Oracle Applications installation.

 AD_PATCH_DRIVERS

This table holds information about the patch drivers that comprise a patch.

 AD_FILE_VERSIONS

This table holds the various versions of Oracle Applications files (real files, not
“pseudo-files”) that have ever been patched or executed in the Oracle
Applications installation.

 AD_FILES

AD_FILES is the “files repository”. It contains information about the various files
that have been patched in the Oracle Applications installation. Some entries are
“pseudo-files” and not real files, (eg. directories) in which case some of the
columns are not applicable and would then hold the value “DUMMY”

Article 8

$
0
0

Restrict single session per user and R12



In Release 12:

In Oracle E-Business Suite release 12, there is no need to apply any patch as the files
required are already present in the filesytem. The instructions are as follows:

 Load the event with the command:

java oracle.apps.fnd.wf.WFXLoad -u < apps_un> < apps_pw> < apps_dbserver.+fqdn>
:< db_port>:< SID> thin US \ $FND_TOP/patch/115/xml/US/icxevte.wfx

 Load the event subscription:

java oracle.apps.fnd.wf.WFXLoad -u < apps_un> < apps_pw> < apps_dbserver.+fqdn>
:< db_port>:< SID> thin US \ $FND_TOP/patch/115/xml/US/icxevts.wfx

We can enable/disable the business event through the System Administrator > Business Events
screen (SYSADMIN user only) by searching for the word ’security’. It will pull up the
oracle.apps.icx.security.session.created event. Click on the Update icon and enable/disable.
You then need to close all browsers for the change to take affect.
Viewing all 1640 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>