Problem with date + time
Hi,
I have a long time problem.
I want to insert to my table the result of JXDatepicker + JSpinner (time HH:ss).
It is work until I am calulate todays link in millisecound.
please run my exampele to see my problem and I'll be happy if u can help me (cell 0,0).
if you click in every date exept todays link, u get good result format (yyyy-MM-dd HH:ss:00)
import java.awt.BorderLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.util.Date;import javax.swing.JButton;import javax.swing.JFormattedTextField;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.JScrollPane;import javax.swing.table.DefaultTableModel;import org.jdesktop.swingx.JXTable;public class MyTable extends JFrame implements ActionListener { private JXTable table; private QM6JXDatePicker date; private QM6JSpinner spinner; private JFormattedTextField TxtfPriority; public MyTable() { String[] columnNames = { "Date", "String", "Integer" }; Object[][] data = { { new Date(), "AAA", 11 }, { new Date(), "B", 22 }, { new Date(), "CCCCCC", 3 }, { new Date(), "D", 4 } }; DefaultTableModel model = new DefaultTableModel(data, columnNames); table = new JXTable(model); table.setPreferredScrollableViewportSize(table.getPreferredSize()); JScrollPane scrollPane = new JScrollPane(table); getContentPane().add(scrollPane); JButton button = new JButton("Update"); button.addActionListener(this); getContentPane().add(button, BorderLayout.SOUTH); getContentPane().add(getPanel(), BorderLayout.NORTH); } public JPanel getPanel() { JPanel panel = new JPanel(); date = new QM6JXDatePicker(); spinner = new QM6JSpinner(); panel.add(date); panel.add(spinner); return panel; } public void actionPerformed(ActionEvent arg0) { java.sql.Timestamp newDate = new java.sql.Timestamp(date.getDate() .getTime()); long miliSecDate = newDate.getTime(); String s = spinner.getTime(); String[] timeStr = s.split(":"); long miliSecTimeH = Long.parseLong(timeStr[0].trim()); long miliSecTimeS = Long.parseLong(timeStr[1].trim()); long miliSecTime = ((miliSecTimeH * 60 * 60) + (miliSecTimeS * 60)) * 1000; newDate.setTime(miliSecTime + miliSecDate); table.setValueAt(newDate, 0, 0); } public static void main(String[] args) { MyTable frame = new MyTable(); frame.setDefaultCloseOperation(EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); }}
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import javax.swing.JPanel;
import org.jdesktop.swingx.JXDatePicker;
import org.jdesktop.swingx.JXHyperlink;
import org.jdesktop.swingx.calendar.JXMonthView;
public class QM6JXDatePicker extends JXDatePicker {
private String[] dateStr = null;
private DateFormat df;
private SimpleDateFormat df2;
private JPanel newLinkPanel;
private JXMonthView calend;
public QM6JXDatePicker() {
df = DateFormat.getDateInstance(DateFormat.LONG);
df2 = new SimpleDateFormat("dd/MM/yyyy");
dateStr = new String[] { "dd/MM/yyyy" };
getJXMonthView();
LinkPanel();
setFormats(dateStr);
setMonthView(calend);
setLinkPanel(newLinkPanel);
private void LinkPanel() {
newLinkPanel = new JPanel(new BorderLayout());
JXHyperlink todayLink = new JXHyperlink();
todayLink.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
getEditor().setText(df2.format((new Date())));
setDate(new Date());
getMonthView().getParent().setVisible(false);
todayLink.setText("Today: " + df.format(new Date()));
newLinkPanel.add(todayLink, BorderLayout.CENTER);
private void getJXMonthView() {
calend = new JXMonthView();
calend.setTraversable(true);
calend.setDayForeground(7, Color.RED);
calend.setDaysOfTheWeekForeground(Color.BLUE);
calend.setSelectedBackground(Color.YELLOW);
calend.setFirstDayOfWeek(Calendar.SUNDAY);
public JXMonthView getCalend() {
return calend;
public void setCalend(JXMonthView calend) {
this.calend = calend;
import java.util.Calendar;
import java.util.Date;
import javax.swing.JSpinner;
import javax.swing.SpinnerDateModel;
public class QM6JSpinner extends JSpinner{
private JSpinner.DateEditor dateEditor;
public QM6JSpinner() {
setModel(new SpinnerDateModel(new Date(),
null, null, Calendar.MINUTE));
dateEditor = new DateEditor(this, "HH:mm");
setEditor(dateEditor);
public String getTime() {
return dateEditor.getTextField().getText();
}Tanks alot!
Yael
The main class here...
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;
import javax.swing.JButton;
import javax.swing.JFormattedTextField;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.table.DefaultTableModel;
import org.jdesktop.swingx.JXTable;
public class MyTable extends JFrame implements ActionListener {
private JXTable table;
private QM6JXDatePicker date;
private QM6JSpinner spinner;
private JFormattedTextField TxtfPriority;
public MyTable() {
String[] columnNames = { "Date", "String", "Integer" };
Object[][] data = { { new Date(), "AAA", 11 }, { new Date(), "B", 22 },
{ new Date(), "CCCCCC", 3 }, { new Date(), "D", 4 } };
DefaultTableModel model = new DefaultTableModel(data, columnNames);
table = new JXTable(model);
table.setPreferredScrollableViewportSize(table.getPreferredSize());
JScrollPane scrollPane = new JScrollPane(table);
getContentPane().add(scrollPane);
JButton button = new JButton("Update");
button.addActionListener(this);
getContentPane().add(button, BorderLayout.SOUTH);
getContentPane().add(getPanel(), BorderLayout.NORTH);
public JPanel getPanel() {
JPanel panel = new JPanel();
date = new QM6JXDatePicker();
spinner = new QM6JSpinner();
panel.add(date);
panel.add(spinner);
return panel;
public void actionPerformed(ActionEvent arg0) {
java.sql.Timestamp newDate = new java.sql.Timestamp(date.getDate()
.getTime());
long miliSecDate = newDate.getTime();
String s = spinner.getTime();
String[] timeStr = s.split(":");
long miliSecTimeH = Long.parseLong(timeStr[0].trim());
long miliSecTimeS = Long.parseLong(timeStr[1].trim());
long miliSecTime = ((miliSecTimeH * 60 * 60) + (miliSecTimeS * 60)) * 1000;
newDate.setTime(miliSecTime + miliSecDate);
table.setValueAt(newDate, 0, 0);
public static void main(String[] args) {
MyTable frame = new MyTable();
frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
Similar Messages
-
Problem with Date & Time Auto Update
Hi everyone,
I have been experiencing a date & time issue with my MacBook Air. (I am running 10.5.5 with all the latest software updates except for iTunes 8). Here's what's going on:
Under the Date & Time preferences, whenever I try to check the box for "Set date & time automatically", the date and time do not update. I thought Norton might be the culprit in this case, but I have thoroughly uninstalled it, and this problem still persists. (I am actually borrowing this laptop for work, so I don't know if someone else possibly did something weird to it before I started using it. As far as I can remember, I've always had this problem -- the automatic setting has never worked.)
I am connected to the internet when I do this, and I already have my time zone selected. Am I missing something obvious here?
I apologize if this issue has been brought up before, but I did a lot of searching and couldn't find anything. Any suggestions would be greatly appreciated!!
Thank you.whenever I try to check the box for "Set date & time automatically"
You check it and the time does not update, or you try to check it and it doesn't show a little tick mark?
Try it with Console.app open and see does it report any errors. Try changing the time server.
AK -
Problem with Date / Time Title - Showing Inacurate Information
I use iMovie to make videos for my job. The videos need to have an accurate running time and date displayed on them. I use the "Date/Time" Title option and the running time and date appear on the video. BUT- there is a problem. The time is wrong.
When I import a video clip (from my Panasonic HDC-TM80) into iMovie, I can see the "time and date created" as well as the "length" of the video clip. The time and date created shows the time and date of when the clip ENDS. When I overlay the "Date/Time" Title, it starts the time (at the beginning of the clip) from the created time (which is actually the end).
Example:
Clip Created (end of clip): 3/23/11 10:30:00am
Length of clip: 12 min. 35 sec.
The actual Date/Time Title should show 10:17:25am at the beginning and runs through 10:30:00am (the end).
But instead it shows 10:30:00am at the beginning and runs through 10:42:35am. This obviously results in a 12 min. 35 sec. inaccuracy.
Is this a problem with the software? Is there a way to contact someone to alert them of this problem? Or am I missing something simple?
Thanks in advance for anyone's help.
-as a quick fix, I adjusted the time and date on the video clips so that it would show the correct info, but I'm usually working with several clips at a time and it is laborious to change each one.I don't have an answer but was wondering how you like the TM80? Except for the date/time issue, is it compatible with iMovie'11?
Thanks! -
I have got problem with "Date & Time"
I have bought a new Macbook Air 13"
I have chosen "set date & time auto..."
However, it shows in up right corner wrong date. Also all mail, reminders and etc work with wrong date.
Please, tell me what to do with this problem.
Sincerelly,
MarkIncorrect date or time displayed in various applications
-
Problem with Date/Time field in Adobe LiveCycle
I am trying to create a form that has a check-in and check-out dates. I want the user to enter those dates and then have the form automatically compute how many nights the user intends on staying.
I have two fields, CHECKIN and CHECKOUT, set up as text fields. My third field, NIGHTS, has the following script to do the calculation:
var strStart = CHECKIN.rawValue
var strEnd = CHECKOUT.rawValue
if(strStart.length && strEnd.length)
var dateStart = util.scand("mmm d, yyyy",strStart);
var dateEnd = util.scand("mmm d, yyyy",strEnd);
var diff = dateEnd.getTime() - dateStart.getTime();
var oneDay = 24 * 60 * 60 * 1000;
var days = Math.floor(diff/oneDay);
this.rawValue = days;
else
this.rawValue = 0;
NOW...this is fine if the user inputs a four-digit year. If not, it's trouble. SO, what I want to do is change the CHECKIN and CHECKOUT fields to the date/time field so they select the date off the pop-up calendar.
When I make the changes, I can't get the script to work for the NIGHTS field.
CAN ANYONE HELP THIS NEWBIE?Make sure the format of the date strings provided by the calendar is what you are expecting. Or use the "formattedValue" for the input strings.
-
Hi All,
I want to transform the input date format to ''YYYY-MM-DD-hh.mm.ss'.I am using the below format in format-datetime function in BPEL:
'[Y0001]-[M01]-[D01]-[h01].[m01].[s01]'
It is giving correct time and format between 1 and 12 o clock timings in hours('HH' place).But when we give more than 13 it is not giving proper timinngs though it is giving proper format.It is not following 24 hrs format
Ex : When I give input value '2012-04-05T00:30:00’ and it is transforming '2012-04-05-12.30.00’ (I want it in the same time means '2012-04-05-00.30.00’
Ex 2: When I give input value '2012-04-05T15:30:00’ and it is transforming '2012-04-05-03.30.00’(I want it in the same time means '2012-04-05-15.30.00’
Why it is coming like that?Is there any mistake in the specified format('[Y0001]-[M01]-[D01]-[h01].[m01].[s01]')?Hi,
Put H01 and not h01.
Arik -
Face time fades out and then retries to connect (new Ipad Retina Display) on WiFi. Iphone 4s has no problem with face time from same location and same contact. What gives?
rdallas001 wrote:
Is the router to small?
Not necessarily, if you are using Facetime all the data goes through your WiFi router, your cable/DSL modem, your ISP and the internet to Apple's Facetime servers and then, in reverse, down to the Facetime recipient. If your ISP connection is too slow or there is excessive traffic on the internet you can have Facetime problems.
Most WiFi routers can handle this unless others in the house are also using WiFi at the same time. The problem may be your ISP connection or congestion on the internet, etc. -
I have one problem with Data Guard. My archive log files are not applied.
I have one problem with Data Guard. My archive log files are not applied. However I have received all archive log files to my physical Standby db
I have created a Physical Standby database on Oracle 10gR2 (Windows XP professional). Primary database is on another computer.
In Enterprise Manager on Primary database it looks ok. I get the following message Data Guard status Normal
But as I wrote above the archive log files are not applied
After I created the Physical Standby database, I have also done:
1. I connected to the Physical Standby database instance.
CONNECT SYS/SYS@luda AS SYSDBA
2. I started the Oracle instance at the Physical Standby database without mounting the database.
STARTUP NOMOUNT PFILE=C:\oracle\product\10.2.0\db_1\database\initluda.ora
3. I mounted the Physical Standby database:
ALTER DATABASE MOUNT STANDBY DATABASE
4. I started redo apply on Physical Standby database
alter database recover managed standby database disconnect from session
5. I switched the log files on Physical Standby database
alter system switch logfile
6. I verified the redo data was received and archived on Physical Standby database
select sequence#, first_time, next_time from v$archived_log order by sequence#
SEQUENCE# FIRST_TIME NEXT_TIME
3 2006-06-27 2006-06-27
4 2006-06-27 2006-06-27
5 2006-06-27 2006-06-27
6 2006-06-27 2006-06-27
7 2006-06-27 2006-06-27
8 2006-06-27 2006-06-27
7. I verified the archived redo log files were applied on Physical Standby database
select sequence#,applied from v$archived_log;
SEQUENCE# APP
4 NO
3 NO
5 NO
6 NO
7 NO
8 NO
8. on Physical Standby database
select * from v$archive_gap;
No rows
9. on Physical Standby database
SELECT MESSAGE FROM V$DATAGUARD_STATUS;
MESSAGE
ARC0: Archival started
ARC1: Archival started
ARC2: Archival started
ARC3: Archival started
ARC4: Archival started
ARC5: Archival started
ARC6: Archival started
ARC7: Archival started
ARC8: Archival started
ARC9: Archival started
ARCa: Archival started
ARCb: Archival started
ARCc: Archival started
ARCd: Archival started
ARCe: Archival started
ARCf: Archival started
ARCg: Archival started
ARCh: Archival started
ARCi: Archival started
ARCj: Archival started
ARCk: Archival started
ARCl: Archival started
ARCm: Archival started
ARCn: Archival started
ARCo: Archival started
ARCp: Archival started
ARCq: Archival started
ARCr: Archival started
ARCs: Archival started
ARCt: Archival started
ARC0: Becoming the 'no FAL' ARCH
ARC0: Becoming the 'no SRL' ARCH
ARC1: Becoming the heartbeat ARCH
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery not using Real Time Apply
MRP0: Background Media Recovery terminated with error 1110
MRP0: Background Media Recovery process shutdown
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[1]: Assigned to RFS process 2148
RFS[1]: Identified database type as 'physical standby'
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[2]: Assigned to RFS process 2384
RFS[2]: Identified database type as 'physical standby'
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[3]: Assigned to RFS process 3188
RFS[3]: Identified database type as 'physical standby'
Primary database is in MAXIMUM PERFORMANCE mode
Primary database is in MAXIMUM PERFORMANCE mode
RFS[3]: No standby redo logfiles created
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[4]: Assigned to RFS process 3168
RFS[4]: Identified database type as 'physical standby'
RFS[4]: No standby redo logfiles created
Primary database is in MAXIMUM PERFORMANCE mode
RFS[3]: No standby redo logfiles created
10. on Physical Standby database
SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;
PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
RFS IDLE 0 0 0 0
RFS IDLE 0 0 0 0
RFS IDLE 1 9 13664 2
RFS IDLE 0 0 0 0
10) on Primary database:
select message from v$dataguard_status;
MESSAGE
ARC0: Archival started
ARC1: Archival started
ARC2: Archival started
ARC3: Archival started
ARC4: Archival started
ARC5: Archival started
ARC6: Archival started
ARC7: Archival started
ARC8: Archival started
ARC9: Archival started
ARCa: Archival started
ARCb: Archival started
ARCc: Archival started
ARCd: Archival started
ARCe: Archival started
ARCf: Archival started
ARCg: Archival started
ARCh: Archival started
ARCi: Archival started
ARCj: Archival started
ARCk: Archival started
ARCl: Archival started
ARCm: Archival started
ARCn: Archival started
ARCo: Archival started
ARCp: Archival started
ARCq: Archival started
ARCr: Archival started
ARCs: Archival started
ARCt: Archival started
ARCm: Becoming the 'no FAL' ARCH
ARCm: Becoming the 'no SRL' ARCH
ARCd: Becoming the heartbeat ARCH
Error 1034 received logging on to the standby
Error 1034 received logging on to the standby
LGWR: Error 1034 creating archivelog file 'luda'
LNS: Failed to archive log 3 thread 1 sequence 7 (1034)
FAL[server, ARCh]: Error 1034 creating remote archivelog file 'luda'
11)on primary db
select name,sequence#,applied from v$archived_log;
NAME SEQUENCE# APP
C:\ORACLE\PRODUCT\10.2.0\ORADATA\IRINA\ARC00003_0594204176.001 3 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\IRINA\ARC00004_0594204176.001 4 NO
Luda 4 NO
Luda 3 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\IRINA\ARC00005_0594204176.001 5 NO
Luda 5 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\IRINA\ARC00006_0594204176.001 6 NO
Luda 6 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\IRINA\ARC00007_0594204176.001 7 NO
Luda 7 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\IRINA\ARC00008_0594204176.001 8 NO
Luda 8 NO
12) on standby db
select name,sequence#,applied from v$archived_log;
NAME SEQUENCE# APP
C:\ORACLE\PRODUCT\10.2.0\ORADATA\LUDA\ARC00004_0594204176.001 4 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\LUDA\ARC00003_0594204176.001 3 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\LUDA\ARC00005_0594204176.001 5 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\LUDA\ARC00006_0594204176.001 6 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\LUDA\ARC00007_0594204176.001 7 NO
C:\ORACLE\PRODUCT\10.2.0\ORADATA\LUDA\ARC00008_0594204176.001 8 NO
13) my init.ora files
On standby db
irina.__db_cache_size=79691776
irina.__java_pool_size=4194304
irina.__large_pool_size=4194304
irina.__shared_pool_size=75497472
irina.__streams_pool_size=0
*.audit_file_dest='C:\oracle\product\10.2.0\admin\luda\adump'
*.background_dump_dest='C:\oracle\product\10.2.0\admin\luda\bdump'
*.compatible='10.2.0.1.0'
*.control_files='C:\oracle\product\10.2.0\oradata\luda\luda.ctl'
*.core_dump_dest='C:\oracle\product\10.2.0\admin\luda\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_file_name_convert='luda','irina'
*.db_name='irina'
*.db_unique_name='luda'
*.db_recovery_file_dest='C:\oracle\product\10.2.0\flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=irinaXDB)'
*.fal_client='luda'
*.fal_server='irina'
*.job_queue_processes=10
*.log_archive_config='DG_CONFIG=(irina,luda)'
*.log_archive_dest_1='LOCATION=C:/oracle/product/10.2.0/oradata/luda/ VALID_FOR=(ALL_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=luda'
*.log_archive_dest_2='SERVICE=irina LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=irina'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_max_processes=30
*.log_file_name_convert='C:/oracle/product/10.2.0/oradata/irina/','C:/oracle/product/10.2.0/oradata/luda/'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.standby_file_management='AUTO'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\product\10.2.0\admin\luda\udump'
On primary db
irina.__db_cache_size=79691776
irina.__java_pool_size=4194304
irina.__large_pool_size=4194304
irina.__shared_pool_size=75497472
irina.__streams_pool_size=0
*.audit_file_dest='C:\oracle\product\10.2.0/admin/irina/adump'
*.background_dump_dest='C:\oracle\product\10.2.0/admin/irina/bdump'
*.compatible='10.2.0.1.0'
*.control_files='C:\oracle\product\10.2.0\oradata\irina\control01.ctl','C:\oracle\product\10.2.0\oradata\irina\control02.ctl','C:\oracle\product\10.2.0\oradata\irina\control03.ctl'
*.core_dump_dest='C:\oracle\product\10.2.0/admin/irina/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_file_name_convert='luda','irina'
*.db_name='irina'
*.db_recovery_file_dest='C:\oracle\product\10.2.0/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=irinaXDB)'
*.fal_client='irina'
*.fal_server='luda'
*.job_queue_processes=10
*.log_archive_config='DG_CONFIG=(irina,luda)'
*.log_archive_dest_1='LOCATION=C:/oracle/product/10.2.0/oradata/irina/ VALID_FOR=(ALL_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=irina'
*.log_archive_dest_2='SERVICE=luda LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=luda'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_max_processes=30
*.log_file_name_convert='C:/oracle/product/10.2.0/oradata/luda/','C:/oracle/product/10.2.0/oradata/irina/'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.standby_file_management='AUTO'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\product\10.2.0/admin/irina/udump'
Please help me!!!!Hi,
After several tries my redo logs are applied now. I think in my case it had to do with the tnsnames.ora. At this moment I have both database in both tnsnames.ora files using the SID and not the SERVICE_NAME.
Now I want to use DGMGRL. Adding a configuration and a stand-by database is working fine, but when I try to enable the configuration DGMGRL gives no feedback and it looks like it is hanging. The log, although says that it succeeded.
In another session 'show configuration' results in the following, confirming that the enable succeeded.
DGMGRL> show configuration
Configuration
Name: avhtest
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
avhtest - Primary database
avhtestls53 - Physical standby database
Current status for "avhtest":
Warning: ORA-16610: command 'ENABLE CONFIGURATION' in progress
It there anybody that experienced the same problem and/or knows the solution to this?
With kind regards,
Martin Schaap -
Old problem with precision time counting and /usepmtimer solution.
Hello, all!
There was a problem in Windows XP and 2003 Server with using QueryPerformanceCouner() function. Sometimes it can cause problem with precision time measurements on CPUs which support powersaving modes by changing clock frequency. The simplest solution for that was /usepmtimer key in boot.ini file which forces the system to use another timer.
I just want to know does this problem appear in Windoes 7? And how to solve it since there is no boot.ini file in Windows 7?
Thanks a lot!
P.S. This is a page with detailed description of the problem:
http://support.microsoft.com/default.aspx/kb/895980Hi ,
There is official documentation released on userpmtimer for windows 7 operating system.
Also the KB article only refere to the OS which have performance problem.
After reading the below article , i feel that this problem is taken care in windows 7 / windows 2008 ( though there is no formal written documentation )
http://blogs.technet.com/perfguru/archive/2008/02/18/explanation-for-the-usepmtimer-switch-in-the-boot-ini.aspx
you can post in windows 7 dedicated forum, so that MVP / Microsoft Engineers and community members would suggest you with latest data if any.
http://social.technet.microsoft.com/Forums/en-US/category/w7itpro -
Does anyone have problems with data usage with att and Iphone5?
Hello, Does anyone have problems with data usage or non usage I should say with Iphone 5 and AT&T?
After 4+ months of dealing with this data usage and battery drain problem that included 3 data captures of my wife's iMac, the trigger for us regarding the problems syncing with iCloud, and 5 hours of logs off my iPhone 6 to be analyzed by Apple engineers that included times my wife's computer was both on and off to demonstrate the difference in data usage and battery drain under those conditions, I can say with very reasonable certainty that the iOS 8.3 and corresponding Mac OS 10.10.3 update has solved the problem.
We have now been running for about 2 weeks and data usage with the iCloud Servers attempting to sync has dropped from a rate of 31 GBs to under 15 MBs per month. Yes, you read it right. We were burning 2000 times as much data doing absolutely nothing important on both of our phones, a 5s and a 6. Just imagine what that does to battery life! The 5s would last about 5 hours and the 6 was dead in less than 14.
The distasteful aspect of this process was how the engineers were quietly fixing the problem at the same time sending messages to my contact person within Apple that were dismissive in nature in the face of indisputable unreasonable results. I must say, this experience with the multiple times the engineers' responses were inappropriate put a little tarnish on the old Apple shine of the ‘It just works’ mantra. This was my first experience in 34 years that caused me to stop recommending Apple products without reservations and with a disclaimer.
Since the update solved the problem, then I can only conclude that there was a logic bug regarding the reaction within the process to the incoming data that was corrected. There was noting short of logging out of iCloud that circumvented the problem for us, Gator5000e and probably many others noted on other threads. I am not trying to imply that this is the cause of everyones battery use problem, but it is reasonable that it was a cause for many. -
Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?
Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?
Using 10.6.8 on MacBook Pro
MikeaaaI am running Snow Leopard. Transferring the same texts to TextEdit has no problems, so this is a Pages problem, I think. Corruption of Times New Roman and Arial fonts, I suspect, but where? and what do I do about it? I just need to be pointed to a source of advice, I think.
Thanks
Mikeaaa -
having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
I'm using Lion on an MBP and Numbers is the latest versionMay you give more details about what is wrong with your dates ?
M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : http://public.me.com/koenigyvan
Please : Search for questions similar to your own before submitting them to the community
For iWork's applications dedicated to iOS, go to :
https://discussions.apple.com/community/app_store/iwork_for_ios -
Problem with date format when ask prompt web-intelligence
Bo XIR2 with 5 SP. Instaled on Windows 2003 with support Russian.
Inside BO every labels, buttons - use russian. But when invoke web-report and Prompt appear there is problem with date format.
Looks like korean format of date 'jj.nn.aaa H:mm:ss'. I see system settings of date in Win .. everything right
What i have to do?
Where i can change format date for bo?GK, try this...
decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn -
Got one more problem Merilyn and Radhakrishnan...
Regarding the soln y provided me earler with the thread "Problem with date format"...
What is happening is....I am able to change the 2400 to 0000 but when it is changed from 2400 on jan 1st to 0000 the hour is changing but not the date....the date still remains as jan 1st instead of jan 2nd....
Eg: Jan 1st 2400 -- changed to -- jan1st 0000
instead of jan 2nd 0000
Could you please help me in this issue...
Thanks,
GKGK, try this...
decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn -
I am a rookie in SAP i have a small problem with date.Do we have any function module to find out the first day in a month if we give out the system current date ?? Pls help me out.
Hi,
As Ganesan told,you can do.
Here is the sample code.
data v type sy-datum.
data d type DTRESR-WEEKDAY.
v+6(2) = '01'.
v4(2) = sy-datum4(2).
v0(4) = sy-datum0(4).
CALL FUNCTION 'DATE_TO_DAY'
EXPORTING
date = v
IMPORTING
WEEKDAY = d.
write d.
Maybe you are looking for
-
I was just wondering whether ExtendScript has any concept like a main method, whereby if the current script is included by another script like a library import it will not execute this main function/method and only execute it when the script is run d
-
I have yesterday buyed a WiFi Card for my Satellite computer. I will use it for to connect myself to the access point of my brother. It doesn't work. Is my computer kaputt? Can me somebody help? Tousand thank. Wonne.
-
WRT110 Only provides wireless to other computers when wired to a separate laptop
This never seemed to happen on our old computers, but now that my fiancee and I are both running Windows 7 and switched our Internet Service Provider, here is our problem: Every time I try to open my laptop and connect to our router, it connects, but
-
I just updated itunes on version 7.3.1. Unfortunately loading covers is not possible. When I click on "Load Cover" I get a error message: "A cover couldn't be found. Unkown error -609" But the cover I wanted to load exists in the itunes Store. It wor
-
That's what happened. I had about 4 gigs left on the HD so I hooked an external and changed that at as my library location. Next thing you know I re-open aperture and nothing is there. I then try to open the libray from the external drive and it is o