HOW TO AUTOMATICALLY RECEIVE LAST DAY DATABASE ERRORS I.E FROM 7AM T0 6PM
HOW TO AUTOMATICALLY RECEIVE LAST DAY DATABASE ERRORS I.E FROM 7AM T0 6PM
Hi;
HOW TO AUTOMATICALLY RECEIVE LAST DAY DATABASE ERRORS I.E FROM 7AM T0 6PMYou can type script and check your alert.log. By the way why specific time?Error can be happen all the time period.
Please see my blog:
http://heliosguneserol.wordpress.com/2010/06/11/oracle-alert-log-file-check-script/
Regard
Helios
Similar Messages
-
How to get the last day of the week?
Hii
i can get the calender week number for any given date using
SELECT to_char(to_date('04/04/2011','MM/DD/YYYY'),'WW') FROM dual
can any body tell me, how to get the last day of that week ?
and the answer should be 04/08/2011(8th april )
thanks
San
Edited by: sandeep9 on Apr 4, 2011 3:50 AMHi, San,
Here's one way:
WITH sample_data AS
SELECT DATE '2011-04-04' AS dt
FROM dual
SELECT dt
, TO_CHAR (dt, 'WW') AS week_num
, NEXT_DAY ( dt - 1
, TO_CHAR ( TRUNC (dt, 'YEAR') - 1
, 'Day'
) AS end_o_week
FROM sample_data;Another way is to use date arrithmetic:
WITH sample_data AS
SELECT DATE '2011-04-09' AS dt
FROM dual
SELECT dt
, TO_CHAR (dt, 'WW') AS week_num
, TRUNC (dt, 'YEAR')
+ (7 * CEIL ( (dt - (TRUNC (dt, 'YEAR') - 1))
/ 7
- 1 AS using_date_arithmetic
FROM sample_data; -
How to get the last day of a month?
HI,
I want to know how to get the last day of a month.
In my JClient form, I tried to get it by using oracle.sql.Date method, that is:
lastday=oracle.sql.Date anydate.lastDayOfMonth();
But it does not work. The result is lastday=anydate.
Why?
StephenYou can use the Calender class...
Calendar c = Calendar.getInstance();
and then something like...
c.add(c.MONTH, 1);
int dayOfMonth = c.get(Calender.MONTH);
c.add(c.DAY_OF_MONTH, - (dayOfMonth-1) );
other usefull functions are:
System.out.println(" YEAR : " + c.get(Calendar.YEAR));
System.out.println(" MONTH : " + c.get(Calendar.MONTH));
System.out.println(" DAY_OF_MONTH : " + c.get(Calendar.DAY_OF_MONTH));
System.out.println(" DAY_OF_WEEK : " + c.get(Calendar.DAY_OF_WEEK));
System.out.println(" DAY_OF_YEAR : " + c.get(Calendar.DAY_OF_YEAR));
System.out.println(" WEEK_OF_YEAR : " + c.get(Calendar.WEEK_OF_YEAR));
System.out.println(" WEEK_OF_MONTH : " + c.get(Calendar.WEEK_OF_MONTH));
System.out.println(" DAY_OF_WEEK_IN_MONTH : " + c.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println(" HOUR : " + c.get(Calendar.HOUR));
System.out.println(" AM_PM : " + c.get(Calendar.AM_PM));
System.out.println(" HOUR_OF_DAY (24-hour): " + c.get(Calendar.HOUR_OF_DAY));
System.out.println(" MINUTE : " + c.get(Calendar.MINUTE));
System.out.println(" SECOND : " + c.get(Calendar.SECOND));
System.out.println();*/ -
How to get the last day according to fiscal period input in selection scree
Hello expert
how to get the last day of fiscal period input.
the fiscal period inculdes 1-16
when fiscal period is greater than 12, only calculate the last day of 12nd month
your solution will be apprecaited, FM existing?
thank you
KevinHi,
when you give a particular date in any month
the following fm will give you the last date of that month
here you can give
R_FDATE-HIGH as 01 and month as the period you wnat and year for current year
concatenates '01' month year into r_fdate-high separated by '.'.
then it will give g_ltdt for that month and year which wil be the last date of that month
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
DAY_IN = R_FDATE-HIGH
IMPORTING
LAST_DAY_OF_MONTH = G_LTDT
EXCEPTIONS
DAY_IN_NO_DATE = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
thanks & regards,
Venkatesh -
How to automatically open last opened document when Reader launches?
How to automatically open last opened document when Reader launches?
Install this Add-on:
*'''''New TabURL''''': http://sogame.awardspace.com/newtaburl/
*then set the options in Add-ons > Extensions > New TabURL > Options
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update as necessary:
*Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
*Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
*Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
*Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
*Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox] -
BIP eBusiness Suite Dates - How to include the last day of the month?
How can I get my report to include the last day of the month 'without' forcing my users to enter the non-intuitive first of the next month as a parm?
I have a report that will generally be run for a month but can be run for any pair of dates representing the first and last date to be included in the report.
When we pass the dates from Oracle Apps to the report it is truncating the date to midnight. This results in the last date entered 'NOT' being included in the report as the second date is marked as "midnight". When I attempt to simply add "=1" to the end date it fails due to formatting issues in apps (only). I have gotten this to work on our Enterprise edition server that we use for testing (only) but it fails in our apps environment.
In APPs we input the date in the format "01-AUG-2007", and this is how it shows in the parm line before the report is submitted as well as in the "View Details" after the report is executed: http://home.swbell.net/grog1//work/req_details_5607586.jpg
However it is odd in that we in the "View Log" entry it shows the date formatted as "2007/08/01 00:00:00": http://home.swbell.net/grog1/work/view_log_5607586.jpg
Even odder is that under diagnostics, "View XML" the date is formatted third way as: "2007/08/01 00:00:00.0" (note it now includes tenths of a second): http://home.swbell.net/grog1/work/view_xml_5607586.jpg
This of course makes it difficult to perform conversions and calculations on the date in the SQL.
Is APPs doing some sort of 'timestamp' conversion?
How can I get my report to include the last day of the month 'without' forcing my users to enter the non-intuitive first of the next month as a parm?
Any feedback is appreciated,
ScottNo. The problem/error occurs long before the data is formatted into xml for presentation to the format template.
The error occurs in the SQL in the 'data' template when I attempt to add a day to the date. It either does not like the implicit conversion with the "+1" and then the use of the "between" with another date or if I attempt to manually convert it has problems with the format mask.
Scott -
How to get the last day of the payroll period
Hi all,
I need to get the last day of the payroll period e.g. last day of Jan 2007 is 31 Jan 2007. Can anyone suggest as to how to get it?
Thanks,
MadhuT549S contains the payroll periods with pay date. T549Q contains the begin and end dates of the payroll period.
You can select from the appropriate table (or from both depending on your given data) to get the end date of the period.
Hope that helps.
Mary -
How to get the last day of the previous month
Hello Team,
If my input date is today , then i need to find out the last day of the previous month for the same.
Can someone help me to find out .. how can this be done.
Regards,
RaviHi,
Try the below code.
// get a calendar object
GregorianCalendar calendar = new GregorianCalendar();
// convert the year and month to integers
int yearInt = Integer.parseInt(year);
int monthInt = Integer.parseInt(month);
int dayInt = Integer.parseInt(day);
// adjust the month for a zero based index
monthInt = monthInt - 1;
// set the date of the calendar to the date provided
calendar.set(yearInt, monthInt, dayInt);
int day = calendar.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
return Integer.toString(day);
Regards
Venkat -
When the database user is in locked status or the user's password has expired the Apache logon returns a generic screen 'Database Log In Failed' after three attempts. When you logon outside the web interface then you get the error number and message returned. How can Oracle Apache be configured to return the database errors at logon.
Mayu,
Look at what is done in the UpdateAction code.
try
catch (JboException ex)
errors = buildErrorsFromException(request, ex);
Then call saveErrors on the action:
saveErrors(request, errors);
In the html you need to display the error using the errors tag:
<html:errors/>
An other way to do it but not as flexible is to use a global exception.
<global-exceptions>
<exception type="oracle.jbo.JboException" path="/errorpage.jsp" key="globalerror.jboException"/>
</global-exceptions>
You would list the specific exception and errorpage needed.
Charles. -
How to get the last day of calweek
Hi Guys,
Is there any function module to get the last day of the calendarweek.
I want to show that last date of calweek in my column heading.You can use the Calender class...
Calendar c = Calendar.getInstance();
and then something like...
c.add(c.MONTH, 1);
int dayOfMonth = c.get(Calender.MONTH);
c.add(c.DAY_OF_MONTH, - (dayOfMonth-1) );
other usefull functions are:
System.out.println(" YEAR : " + c.get(Calendar.YEAR));
System.out.println(" MONTH : " + c.get(Calendar.MONTH));
System.out.println(" DAY_OF_MONTH : " + c.get(Calendar.DAY_OF_MONTH));
System.out.println(" DAY_OF_WEEK : " + c.get(Calendar.DAY_OF_WEEK));
System.out.println(" DAY_OF_YEAR : " + c.get(Calendar.DAY_OF_YEAR));
System.out.println(" WEEK_OF_YEAR : " + c.get(Calendar.WEEK_OF_YEAR));
System.out.println(" WEEK_OF_MONTH : " + c.get(Calendar.WEEK_OF_MONTH));
System.out.println(" DAY_OF_WEEK_IN_MONTH : " + c.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println(" HOUR : " + c.get(Calendar.HOUR));
System.out.println(" AM_PM : " + c.get(Calendar.AM_PM));
System.out.println(" HOUR_OF_DAY (24-hour): " + c.get(Calendar.HOUR_OF_DAY));
System.out.println(" MINUTE : " + c.get(Calendar.MINUTE));
System.out.println(" SECOND : " + c.get(Calendar.SECOND));
System.out.println();*/ -
How to get the last day of the next month?
Hi all.
I need to get the last day of the next month. E.g. if the date is 20.03.2008 I need to get 30.04.2008.
Is there any FM for it?
TIA, Nikolai.hi Nikolai,
pls. have a look athe following piece of code:
PARAMETERS : p_date TYPE sy-datum.
DATA : gv_res TYPE sy-datum.
CALL FUNCTION 'CALCULATE_DATE'
EXPORTING
* DAYS = '0'
months = '2'
start_date = p_date
IMPORTING
result_date = gv_res.
==> Now you have (gv_res) 2 months later as today
gv_res+6(2) = '01'. ==> gv_res is first day of next-next month
gv_res = gv_res - 1. ==> gv_res is last day of next month
hope this helps
ec -
Object date - how to get the last day of the month?
hi all,
I have a date object in which I would like to get the last day of the month. any idea?
eg AUG=31
Feb = 28 (depends if a leap year)
thanksUse java.util.Calendar
Add 1 month to the day.
Set the day of month to be 1.
Subtract 1 day.
Now you are on the last day of the month you wanted. -
How to automatically generate a build file of the application from command-line
Hi All
How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?
ThanksUser, which jdev version do you use?
I don't think you can do this. You can only create an ant build.xml from the project inside jdev.
You can use ojdeploy to build the project. This is the only method which will also make the necessary changes to the descriptors.
Timo -
How to automate an oracle 8i database startup
I have an Oracle 8i database with the SID = MUKREC and installed on C:\
Whenever the computer is restarted, the database doesnot startup automatically
But has to be started manually. What could be the cause of this issue and how
can I resolve it. So that whenever I restart the PC I donot have to start the
database manually.
Thanks
KaybrozDear Pravintakpire,
Thanks alot for the reply but,
When I open the Services console, there is a service called OracleServiceMukrec and its startup type is already Automatic and the status is showing 'Starting'
Me I suspect the issue may be arising on the init.ora file because when I try to use the GUI(DBA Studio) to start the database I realise that it is pointing to "C:\Oracle\Ora81\sysman\ifiles\def_MUKREC.ora" as the init.ora file yet it should be pointing to "C:\Oracle\admin\Mukrec\pfile\init.ora"
So how should go about it and what's your opnion concerning this.
Thanks -
How to configure the last day of 4-4-5 Financial Period
Hi,
Given a 4-4-5 financial calendar as below, the 31-12-2010 posting date will not be mapped into any of the periods since the last date on this calendar is 30th December. Hence how can we map the last date of 31st december into a 4-4-5 financial period?
Begin Date | End Date | Days | Period
1-Jan-2010 | 28-Jan-2010 | 28 | 1
29-Jan-2010 | 25-Feb-2010 | 28 | 2
26-Feb-2010 | 1-Apr-2010 | 35 | 3
2-Apr-2010 | 29-Apr-2010 | 28 | 4
30-Apr-2010 | 27-May-2010 | 28 | 5
28-May-2010 | 1-Jul-2010 | 35 | 6
2-Jul-2010 | 29-Jul-2010 | 28 | 7
30-Jul-2010 | 26-Aug-2010 | 28 | 8
27-Aug-2010 | 30-Sep-2010 | 35 | 9
1-Oct-2010 | 28-Oct-2010 | 28 | 10
29-Oct-2010 | 25-Nov-2010 | 28 | 11
26-Nov-2010 | 30-Dec-2010 | 35 | 12
Edited by: FICO Consultant on Feb 1, 2011 10:24 AMT549S contains the payroll periods with pay date. T549Q contains the begin and end dates of the payroll period.
You can select from the appropriate table (or from both depending on your given data) to get the end date of the period.
Hope that helps.
Mary
Maybe you are looking for
-
How to avoid white color in photo taking in iphone 4s at night with flash?
how to avoid white color in photo taking in iphone 4s at night with flash?
-
What is the current status of the GMA 950/SL issues described in this (archived) thread: http://discussions.apple.com/thread.jspa?threadID=2132473&start=0&tstart=0 ? I've been going crazy with my 2007 Macbook which stopped playing fullscreen video sm
-
Is it possible to host WebBrowser control in Java
hi, all, is it possible to invoke APIs of WebBrowser control (COM) in Java, i.e. host WebBrowser control in Java, and how to do that? cheers daiyue
-
In the "Numbers" app can you paste "as values" as you can in excel?
In the "Numbers" app can you paste "as values" as you can in excel?
-
Adjust Date/Time of Imported Video
I had to convert a couple of .MTS files to .MOV to bring them into Final Cut Pro X. I made this videos before I realized I needed to archive the file structure. I haven't been able to find the area in Final Cut that lets me adjust the date and time o