select round((second_date - first_date) * (60 * 24),2) as time_in_minutes
from
(
select
to_date('02/21/2013 01:30:00 PM','mm/dd/yyyy hh:mi:ss am') as first_date
,to_date('02/22/2013 01:30:00 PM','mm/dd/yyyy HH:MI:SS AM') as second_date
from
dual
) dual
Friday, 22 February 2013
Wednesday, 20 February 2013
Installing Windows7/Windows8 From Removable Media
Below are the steps you must follow when you want to install windows7 from USB stick:
After completing all the process your removable media will look like this
Prerequisites:1.USB Flash Drive (Minimum 4GB)
2.Windows 7 or Windows 8 installation files.
Step1:Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system.
Reason:Here we need to format the drive,as a result you may loose your data which is currently present in your removable media
Step2: Open Command Prompt with admin rights. Use any of the below methods to open Command Prompt with admin rights.
-------Type cmd in Start menu search box and hit Ctrl+ Shift+ Enter.
or
--------Press windows logo+R and then type cmd and hit enter (Note :You must be logged in as ADMIN )
Step3:Type DISKPART and hit enter
Step4:Type LIST DISK command and note down the Disk number (ex: Disk 1) of your USB flash drive. In the below screenshot my Flash Drive Disk no is Disk 1.
Step5: Next type all the below commands one by one. Here I assume that your disk drive no is “Disk 1”.If you have Disk 2 as your USB flash drive then use Disk 2.Refer the Step4 to confirm it.
So below are the commands you need to type and execute one by one:
SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS
(Format process may take few seconds)
ASSIGN
EXIT
Complete Screenshot is shown below:
Step6:Open another command promt
Step7:Insert your Windows7 media into your Optical Drive
and check the drive letter of the DVD drive. In this guide I will assume that your DVD drive letter is “D” and USB drive letter is “H” (open my computer to know about it).
Step8: Type D: and hit enter
Step9:Type CD BOOT and hit enter
Where “D” is your DVD drive letter and Boot is the Directory name
Step10: Type BOOTSECT.EXE /NT60 H:
---->To update the USB drive with BOOTMGR compatible code.
Now Your removable Media is ready to Boot
Step10: Copy your Windows 7 or Windows 8 DVD contents to the USB flash drive.
Step11:Your USB drive is ready to boot and install Windows 7 or Windows 8. Only thing you need to change the boot priority at the BIOS to USB from the HDD or CD Drive
Sunday, 10 February 2013
Creating EO without WHO column in OAF
As per java standards, any class which extends an abstract class, must implement the abstract methods of the parent class or should be declared abstract itslef.
So Your child class must implement theses methods which is show as below
First:import theses package
import oracle.jbo.domain.Date;
import oracle.jbo.domain.Number;
Then implement these metods
public void setCreationDate(Date date){}
public void setCreatedBy(Number number){}
public void setLastUpdateDate(Date date){}
public void setLastUpdatedBy(Number number){}
public void setLastUpdateLogin(Number number){}
Thursday, 7 February 2013
All System Date Function
A. Get the Current System Date and Time
SELECT SYSDATETIME()
,SYSDATETIMEOFFSET()
,SYSUTCDATETIME()
,CURRENT_TIMESTAMP
,GETDATE()
,GETUTCDATE();
/* Returned:
SYSDATETIME() 2007-04-30 13:10:02.0474381
SYSDATETIMEOFFSET()2007-04-30 13:10:02.0474381 -07:00
SYSUTCDATETIME() 2007-04-30 20:10:02.0474381
CURRENT_TIMESTAMP 2007-04-30 13:10:02.047
GETDATE() 2007-04-30 13:10:02.047
GETUTCDATE() 2007-04-30 20:10:02.047
B. Get the Current System Date
SELECT CONVERT (date, SYSDATETIME())
,CONVERT (date, SYSDATETIMEOFFSET())
,CONVERT (date, SYSUTCDATETIME())
,CONVERT (date, CURRENT_TIMESTAMP)
,CONVERT (date, GETDATE())
,CONVERT (date, GETUTCDATE());
/* Returned
SYSDATETIME() 2007-05-03
SYSDATETIMEOFFSET()2007-05-03
SYSUTCDATETIME() 2007-05-04
CURRENT_TIMESTAMP 2007-05-03
GETDATE() 2007-05-03
GETUTCDATE() 2007-05-04
*/
C. Get the Current System Time
SELECT CONVERT (time, SYSDATETIME())
,CONVERT (time, SYSDATETIMEOFFSET())
,CONVERT (time, SYSUTCDATETIME())
,CONVERT (time, CURRENT_TIMESTAMP)
,CONVERT (time, GETDATE())
,CONVERT (time, GETUTCDATE());
/* Returned
SYSDATETIME() 13:18:45.3490361
SYSDATETIMEOFFSET()13:18:45.3490361
SYSUTCDATETIME() 20:18:45.3490361
CURRENT_TIMESTAMP 13:18:45.3470000
GETDATE() 13:18:45.3470000
GETUTCDATE() 20:18:45.3470000
*/
Query to get the Time in YYYY format
SELECT TO_CHAR(SYSDATE,'YYYY/MM/DD HH24:MI:SS') FROM
DUAL
-->To get the time in 24hr
SELECT TO_CHAR(SYSDATE,'YYYY/MM/DD HH12:MI:SS') FROM DUAL
--> To get the time in 12hr
-->To get the time in 24hr
SELECT TO_CHAR(SYSDATE,'YYYY/MM/DD HH12:MI:SS') FROM DUAL
--> To get the time in 12hr
Wednesday, 6 February 2013
JDeveloper(OAF) Architecure
Model will take care the Data Base related Transactions, Model contains the following:
View is nothing but the OAF Page Output. View is implemented by UIX (User Interface XML).
Controller will take care of web browser activities like HTTP Get and HTTP Post
Controller have got three methods:
HTTP Post : After Loading the page if we want any changes the we use HTTP Post.
We will discuss in detail about MVC architecture in the next chapters.
The Below figure shows the interaction between Model, View, and Controller.

- Entity Object (EO)
- View Object (VO)
- Callable Statement (PL/SQL Statement)
- Prepare Statement (Single Select Statement)
- OADB Transactions (Oracle Apps Data Base Transactions)
View is nothing but the OAF Page Output. View is implemented by UIX (User Interface XML).
Controller will take care of web browser activities like HTTP Get and HTTP Post
Controller have got three methods:
- Process Request
- Process Forms Request (HTTP Get)
- Process Form Data (HTTP Post)
HTTP Post : After Loading the page if we want any changes the we use HTTP Post.
We will discuss in detail about MVC architecture in the next chapters.
The Below figure shows the interaction between Model, View, and Controller.
Subscribe to:
Posts (Atom)




