Thursday, October 27, 2011

OPMN Report Error 'BAD STRING' When Checking the Apps Services Status on Solaris

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem: OPMN Report Error 'BAD STRING' When Checking the Apps Services Status on Solaris
 cd $ADMIN_SCRIPTS_HOME

./adopmnctl.sh status & ./adapcctl.sh fails with the following error:


./adopmnctl.sh status

You are running adopmnctl.sh version 120.4.12000000.3

Checking status of OPMN managed processes...
Bad string
Unable to connect to opmn.
Opmn may not be up.

adopmnctl.sh: exiting with status 0

*******

Cause:

The opmnctl script makes use of the UNIX command "tr" as

MODIFIED_ORA_CONFIG_HOME="`echo $ORACLE_CONFIG_HOME | tr -d "[:space:]"`"

While running adopmnctl.sh, the environment file .env under $ORA_CONFIG_HOME/10.1.3 is sourced.
.env gets instantiated from template iAS_1013_env.tmp under $AD_TOP.


The template file has env variable PATH variable defined as $ORACLE_HOME/bin:$ORACLE_CONFIG_HOME/opmn/bin:$ORACLE_CONFIG_HOME/Apache/Apache/bin:$ORACLE_HOME/Apache/Apache/bin:$ORACLE_HOME/oui/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/appsutil/jdk/bin:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/perl/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:$PATH"

The "tr" command from /usr/bin is picked up for execution as per the PATH environment variable. As per Solaris documentation mentioned below to use "tr" command, /usr/xpg4/bin should be used. This is the root cause of the bug.

On Solaris, if the command "tr" from /usr/bin is used, the character class expressions "[:space:]" is not recognized in multibyte support environment (MSE).
As per Solaris documentations, in such cases, the "tr" command from /usr/xpg4/bin should be used.


For Solaris documentation:
You can see the note below in manual pages for tr command by executing `man tr` command.

Note: /usr/bin/tr supports character class expressions only in singlebyte locales. Use /usr/xpg4/bin/tr to support these expressions in any locale.



Solution:


Take backup for /usr/bin/tr
copy /usr/xpg4/bin/tr /usr/bin



Get Oracle Certifications for all Exams
Free Online Exams.com

Tuesday, October 25, 2011

ORA-07445[kksParseChildCursor], ORA-04030, Swap space realted issue. ora-600[17059]

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Database Alert Log file:


Sat Jan 23 20:21:53 2010
Errors in file /orasys/ipay/udump/ipay_ora_12022.trc:
ORA-07445: exception encountered: core dump [kksParseChildCursor()+1180] [SIGSEGV] [Address not mapped to object] [0xFFFFFFFF7FFF25C0] [] []
Sat Jan 23 20:24:43 2010
Errors in file /orasys/ipay/bdump/ipay_j000_11350.trc:
ORA-12012: error on auto execute of job 263
ORA-04030: out of process memory when trying to allocate 127512 bytes (QERHJ hash-joi,kllcqas:kllsltba)
ORA-06512: at "WTR.TRANSFER_INTERNET_WEB_PAYMENTS", line 17
ORA-06512: at line 1
Sat Jan 23 20:26:36 2010
Process startup failed, error stack:
Sat Jan 23 20:26:43 2010
Errors in file /orasys/ipay/bdump/ipay_psp0_2813.trc:
ORA-07445: exception encountered: core dump [_ndoprnt()+4] [SIGSEGV] [Address not mapped to object] [0xFFFFFFFF7FFF9D60] [] []
Sat Jan 23 20:26:53 2010
Errors in file /orasys/ipay/bdump/ipay_pmon_2811.trc:
ORA-00490: PSP process terminated with error
Sat Jan 23 20:26:53 2010
PMON: terminating instance due to error 490
Sat Jan 23 20:26:53 2010
Errors in file /orasys/ipay/bdump/ipay_lgwr_2825.trc:
ORA-00490: PSP process terminated with error
Sat Jan 23 20:26:53 2010
Errors in file /orasys/ipay/udump/ipay_ora_3185.trc:
ORA-00490: PSP process terminated with error
Sat Jan 23 20:26:53 2010
Error occured while spawning process J001; error = 490
Sat Jan 23 20:26:53 2010
Errors in file /orasys/ipay/bdump/ipay_cjq0_2833.trc:
ORA-00490: PSP process terminated with error
Sat Jan 23 20:26:59 2010
Instance terminated by PMON, pid = 2811



Trace files shows:


ERROR in TRACE FILE
----------------
ORA-27300: OS system dependent operation:fork failed with status: 12
ORA-27301: OS failure message: Not enough space
ORA-27302: failure occurred at: skgpspawn3
*** 2010-02-01 04:31:47.660
Process startup failed, error stack:
ORA-27300: OS system dependent operation:fork failed with status: 12
ORA-27301: OS failure message: Not enough space
ORA-27302: failure occurred at: skgpspawn3
*** 2010-02-01 04:32:05.713
error 472 detected in background process
ORA-00472: PMON process terminated with error





Solution:
It is matching an  unpublished Bug 6471770
++ Set the following parameter _gby_hash_aggregation_enabled = false : -
SQL> alter system set "_gby_hash_aggregation_enabled"=false scope=both;

++ Also set the following event along with the above parameter, same time : -
SQL> alter system set events '4030 trace name errorstack level 3;name HEAPDUMP level 536870917';

Get Oracle Certifications for all Exams
Free Online Exams.com

R12: How to change the hostname/IP address of an Applications Tier using AutoConfig

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem Description: R12: How to change the hostname/IP address of an Applications Tier using AutoConfig




Solution:






1) Deregister the instance




first run the following sql:
select NAME, SERVER_TYPE from FND_APP_SERVERS;

Then run the following plsql using the info from the above sql:
exec FND_NET_SERVICES.remove_server('<SYSTEM_NAME'>, '<SERVER_NAME>');

# (The System name is the database name [select DB_NAME from FND_DATABASES;])

This plsql will need to be run twice to remove the apps & db server_type.
Then check the system has been deregistered by rerunning the first sql.




2) Stop all app services, db & lsnr




3) Change IP (ensure /etc/hosts has been updated)




4) Start db & lsnr



5) Run autoconfig on db, then apps tiers













References:




Interesting links around Autoconfig in the E-Business-Suite [ID 949160.1]
@Note 840828.1 - 'R12: How to change the hostname/IP address of an Applications Tier using AutoConfig'
@Note 840847.1 - 'R12: How to change the hostname and/or port of the Database Tier using AutoConfig'

Get Oracle Certifications for all Exams
Free Online Exams.com

Monday, October 24, 2011

ORA-03113: end-of-file on communication channel

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem Description: Frequent Forms Processes sessions dis-connectivity


Symptoms:


on the application tier,on plsql module , database log file show the below:

Thu Feb 18 06:37:36 2010
Database adp encountered ORA-3113ORA-03113: end-of-file on communication channel
------------------------------------------------------------------------------
Thu Feb 18 06:37:42 2010
Database adp encountered ORA-3113ORA-03113: end-of-file on communication channel
------------------------------------------------------------------------------
Thu Feb 18 06:37:57 2010
Database adp encountered ORA-3113ORA-03113: end-of-file on communication channel


Some users while running sql statements from sqlplus that takes roughly >15s, they got disconnected.

Other users while working on PL/SQL application got page cannot be displayed, refresh the page sometime works and sometimes not.

Sqlnet.log shows

Fatal NI connect error 12518, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521))(CONNECT_DATA=(oracle_sid=)(CID=(PROGRAM=oracle@)(HOST=)(USER=oracle))))

VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.3.0 - Production
Time: 18-FEB-2010 06:14:37
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0



Dbstatus.log
Thu Feb 18 06:14:19 2010
Database adp encountered ORA-3113ORA-03113: end-of-file on communication channel
------------------------------------------------------------------------------
Thu Feb 18 06:14:32 2010
Database adp encountered ORA-3113ORA-03113: end-of-file on communication channel
------------------------------------------------------------------------------
Thu Feb 18 06:14:36 2010
Database adp encountered ORA-3113ORA-03113: end-of-file on communication channel



Alert log

Thu Feb 18 08:23:35 2010
WARNING: inbound connection timed out (ORA-3136)
Thu Feb 18 08:25:35 2010
WARNING: inbound connection timed out (ORA-3136)



Solution:




1. During the time of error ORA-03113 please check is there is any trace files got generated under udump/bdump/cdump location


If there exist a core dump file under location cdump then please extract the call stack functions from that core file
using the steps as mentioned in the below article :

Article-ID: Note 1812.1
Title: TECH: Getting a Stack Trace from a CORE file



2. Follow Article-ID: Note 120498.1 Title: How To Resolve Most ORA-3113 Errors


3.Check if your server administrator has any scripts which abort long running or CPU intensive processes.
An ORA-3113 process can occur if someone kills your Oracle shadow process at O/S level (Eg: kill -9 on Unix).
Get Oracle Certifications for all Exams
Free Online Exams.com

DRG-12504: stoplist CTXSYS.DEFAULT_STOPLIST does not exist

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem Description: Index Creation failed with Oracle Text errors
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-12504: stoplist CTXSYS.DEFAULT_STOPLIST does not exist
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364



Explanation:


DEFAULT_STOPLIST Not created.


Solution:




Need to run drdefus .sql to create DEFAULT_STOPLIST .
Run the drdefus.sql as CTXSYS user.


SQL> conn ctxsys/ctxsys
SQL> @$ORACLE_HOME//ctx/admin/defaults/drdefus.sql

Drop the index.
SQL> Drop index cs_b_document_subject ;
and recreate the Index.












Get Oracle Certifications for all Exams
Free Online Exams.com

Trial balance report outputs and log files are coming with inverse question marks

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem:


Reports finished with
MSG-00123: NVL(GLB.TRANSLATED_FLAG,'x') != 'R' AND GLB.CURRENCY_CODE='AED'



Trial balance report outputs and log files are coming with inverse question marks.


Explanation:


ZERO_INDICATOR format trigger was returning null value
Also referred BUG 7584735 - R12:TRIAL BALANCE DETAIL COMPLETES WITH STATUS OF ERROR



Modified the ZERO_INDICATOR format trigger. It returns 0 instead of NULL.
Fixed in the file version -- GLRTBD.rdf 120.8.12000000.7

Also referred Note 782662.1 - Trial Balance Detail Completes with Error for Selected Secured Pagebreak Values



Solution:




1) Please apply the patch 7584735:R12.GL.A
2) Bounce the server
3) Retest the issue
Get Oracle Certifications for all Exams
Free Online Exams.com

ORA-1652: unable to extend temp segment by 128 in tablespace

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem Description: ORA-1652: unable to extend temp segment by 128 in tablespace TEMP2


Alert log file shows:


Wed Mar 31 04:12:05 2010
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP2
Wed Mar 31 04:29:48 2010
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP2
Wed Mar 31 04:44:35 2010
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP2



Solution:





a) Tune the queries/statements so that the sort operations are done in memory and not on the disk.
To find the owner of a sort, please refer to Note 1069041.6 How to Find Creator of a SORT or TEMPORARY SEGMENT or Users Performing Sorts

b) If the query is well tuned then you mostly need to increase the TEMP tablespace.

Please add free space to the tablespace using one of follow ways:

1) SQL> alter tablespace <tablesapce_name> add datafile <datafile_name> size <integer>
2) SQL> alter database datafile <datafile_name> resize <integer>

Add more tempfiles, increase the size of the current ones or enable auto extend and the most important:
Note that the extents allocated for a user's sort segment are NOT deallocated but are marked as FREE from performance reasons.
The FREE extents can be further used by other users that are executing sort operations. After the database restart the allocated extens are NOT released either but are FREE to be reused.

Hence, seeing the physical space of the temporary tablespace fully allocated is not a reason to be concerned . The above query of V$SORT_SEGMENT should be used to establish the
free space inside the temporary tablespace :
SQL> select TABLESPACE_NAME,TOTAL_BLOCKS,USED_BLOCKS,FREE_BLOCKS from v$sort_segment;



References:


Note.19047.1 OERR ORA 1652 unable to extend temp segment by %s in tablespace %s P1-914CU
Note.793380.1ORA-1652 Error Troubleshooting
Note 1025288.6 Ext/Pub How to Diagnose and Resolve ORA-01650,ORA-01652,ORA-01653,ORA-01654,ORA-01688 Unable to Extend <OBJECT > by %S in Tablespace %
Note.317441.1How Do You Find Who And What SQL Is Using Temp Segments
Get Oracle Certifications for all Exams
Free Online Exams.com