Can you post the outcome when you just have SYSDATE in the WHERE clause (i.e. without ADD_MONTHS function)?
PS_ACCOUNTING_DATE = to_char(sysdate,'yyyymm')
Main Topics
Browse All TopicsGuidance please. I am receiving an ORA-03113: end-of-file on communication channel when I run the first query listed below. When I change the reference to 'SYSDATE' in the WHERE clause to a hard coded date, as in the second query, and the query executes correctly. I am using 'SYSDATE' to build columns in both queries, and I am not having a problem when the WHERE clause has the hard coded date. Also, I do not have a problem with the first query executing when I remove the condition in the warehouse clause with 'SYSDATE'.
Can someone please provide some suggestions at to what is causing the problem?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: it-rexPosted on 2009-09-22 at 17:45:52ID: 25399142
first check your NLS_DATE_FORMAT and make sure it is working with this line ,-1),'yyyy mm')
rc p
to_char(add_months(sysdate
then you will need to turn sqlnet tracing on to diagnose an error like ORA-03113
*** Set SQL*Net trace for the RMAN client on the target host:
1. Edit sqlnet.ora file and add the following lines:
TRACE_LEVEL_CLIENT=16
TRACE_FILE_CLIENT=sqlnet.t
TRACE_DIRECTORY_CLIENT=/tm
TRACE_UNIQUE_CLIENT=on
say that you are using TOAD
2. Find the OS pids of the toad processes in the target instance:
SQL> SELECT S.SID RMAN_SID, P.SPID, S.PROGRAM, S.MODULE
FROM V$SESSION S, V$PROCESS P
WHERE S.PADDR = P.ADDR
AND S.PROGRAM LIKE '%TOAD%';
3. Check the trace file