Oracle 8i database-Date format
hello
i got my database in mssql server, now we want to shift to Oracle8i, while accomplishing above task, i am not able to export date type data from mssql to oracle8i, because of date format
mssql date format is "07/21/2001" and oracle8i, format is "21-jul-2001" .
please help me to solve above problem as early as possible.
Regards,
Aarti
I think you're off-topic here.
Anyway: Oracle doesn't have "a" date format, it just has a default one. (The client (e.g. SQL*Plus) often has a different default one, come to think of it.)
You don't say how you're doing your data loading. If you're using SQL*loader then I think you get to specify a date format using "DATE 'mm/dd/yyyy'". If you're using a different client or tool then you can always alter the default for this session using " ALTER SESSION SET nls_date_format = 'mm/dd/yyyy'; ".
This is all fairly evident from R-ing-TFM, though. (Hope I haven't annoyed anyone by replying?) But I'd be very surprised if SQLServer doesn't let you "export" the date in another format, anyway....
(So where do your skills lie exactly, Aarti? :-))
Similar Messages
-
Forms 10g - Oracle 11g DB - Date Format Error - Urgent
Hi All,
We are migrating forms 6i to forms 10g.Data Base is 9i to 11g Migration.
In 10g forms pre-form trigger ,i have statement
:head.yr_st_dt := to_date(sc.get_property('ps.yr_st_dt'),'MON DD YYYY HH:MI:SSPM');
In 6i ,it is working fine,the :head.yr_st_dt=22-SEP-09.
In 1og forms with 11g Database, I am getting the below error
frm-40735:PRE-FORM trigger raised unhandled exception ORA-01843
It seems invalid month.
In 9i ,the NLS_DATE_FORMAT is DD-MON-RR.In 11g also same.
Thanks in Advance,
Regards,
Shanuser642745: In the list of forum topics, the fourth topic down is this:
Before posting on this forum please read. Within that post there is a recommendation: "Also read the 10 Commandments on OTN forum posting." with this link: http://blogs.oracle.com/shay/2007/03/02
Please read and follow step 6, "Get a name".
You now have 101 posts to your "user642745" name. When you write, it is difficult to distinguish between your post and the original poster's since you both have a similar number as your names.
user648338: It is clear you do not understand how Oracle handles dates. Depending on the NLS_DATE_FORMAT and NLS_LANG for the session you are running, you will get different results when you display your sc.get_property('ps.yr_st_dt') output.
The fact that you are even trying to execute the command:
select to_date('01-MAY-09','MON DD YYYY HH:MI:SSPM') from dual;shows that you do not understand standard date processing.
Internally, Oracle stores ALL dates in a 7-byte format that includes both date AND time.
The fact that you are getting results like 01-MAY-09 just means that your session is running with NLS_DATE_FORMAT set to DD-MON-YY. It does NOT mean that the date is stored that way.
Your entire problem is caused by the fact that the system on which your old Oracle 9i -- Forms 6i environment has its NLS_DATE_FORMAT (and possibly NLS_LANG) set differently than on your Oracle 11g -- Forms 10g environment.
If you can set your new environment the same as the old, your trouble will go away. Here is how you determine what the values of those environment variables are. Run this in SQL Plus:
select * from nls_session_parameters
where parameter in('NLS_LANGUAGE','NLS_TERRITORY',
'NLS_DATE_FORMAT','NLS_DATE_LANGUAGE');Be aware, though, that it is possible for your Forms environment to change the settings only for the Forms sessions, so what you get from SQL Plus may not be the same.
Edited by: Steve Cosner on Sep 23, 2008 11:13 AM -
Oracle 8i database data recover problem
Hi hi,
I've recently encountered a problem on how to restoring data from old oracle folders to a new oracle 8i database.
Originally, my oracle 8i was installed in windows 2000 server on a harddisk (J:\oracle old) separated from that the OS (windows 2000 server) resided. Recently, the harddisk with the OS has been permanantly demaged and I've installed windows 2000 server on a new harddisk (C:\winnt), reinstalled the oracle database (J:\oracle).
However, is there any way to recover the data from an instance of the original database to the newly created database.
I will be grateful for any suggestion? Thanks a lot.CREATE CONTROLFILE
Caution:
Oracle recommends that you perform a full backup of all files in the database before using this statement. For more information, see Oracle9i User-Managed Backup and Recovery Guide.
Purpose
Use the CREATE CONTROLFILE statement to re-create a control file in one of the following cases:
All copies of your existing control files have been lost through media failure.
You want to change the name of the database.
You want to change the maximum number of redo log file groups, redo log file members, archived redo log files, datafiles, or instances that can concurrently have the database mounted and open.
Note:
If it is necessary to use the CREATE CONTROLFILE statement, do not include in the DATAFILE clause any datafiles in temporary or read-only tablespaces. You can add these types of files to the database later.
An alternative to the CREATE CONTROLFILE statement is ALTER DATABASE BACKUP CONTROLFILE TO TRACE, which generates a SQL script in the trace file to re-create the controlfile. If your database contains any read-only or temporary tablespaces, that SQL script will also contain all the necessary SQL statements to add those files back into the database.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_54a.htm#SQLRF01203
Joel P�rez -
Oracle Error 1801 - "Date format is too large for internal format"
We have an application deployed under WebLogic and are using the Oracle JDBC drivers to talk to the DB. It appears that when under heavy load and trying to hit a stored procedure we get "Action:EnrollParticipant,Error
type:Application error,doing:writeEmpUpdate,dbcode:-1801,ssn:xxxxxxxxxx". The dbcode of 1801 is a "Date format is too large for internal format". Has anyone had this happen, or know what the solution might be?We have an application deployed under WebLogic and are using the Oracle JDBC drivers to talk to the DB. It appears that when under heavy load and trying to hit a stored procedure we get "Action:EnrollParticipant,Error
type:Application error,doing:writeEmpUpdate,dbcode:-1801,ssn:xxxxxxxxxx". The dbcode of 1801 is a "Date format is too large for internal format". Has anyone had this happen, or know what the solution might be? -
(RR FORMAT) ORACLE의 2000년대 DATE FORMAT
제품 : SQL*PLUS
작성날짜 : 1997-04-23
(RR FORMAT) ORACLE의 2000년대 DATE FORMAT
==========================================
이 문서는 단지 정보 제공을 목적으로 하며 여기에 있는 내용은 통보 없이 변경될
수 있습니다. 오라클은 이 문서에 오류가 없다는 것을 보증하지 않으며, 특정 목
적에 부합하거나 혹은 상업성에 대한 묵시적인 보증과 조건 -구두적으로 표현되었
거나 법적으로 함축되었거나- 을 포함하는 어떠한 보장도 제공하지 않습니다. 오라
클은 본 문서와 관련하여 어떠한 법률적 책임도 지지 않으며, 직접 또는 간접적으
로 어떠한 계약적 의무도 형성되지 않습니다. 본 문서는 오라클의 사전 서면 동의
없이 어떠한 목적으로도 전자적으로나 기계적으로 재작성되거나 다른 형태로 변경
될 수 없습니다.
ORACLE 7은 세기의 전환에 대해 'RR' 이라는 새로운 DATE FORMAT을 제공한다.
'RR' 은 DATE FORMAT의 마지막 2 DIGITS에 다른 세기에 대한 DATE값을 저장한다는
것을 제외하고는 'YY' FORMAT과 유사하다.
다음은 사용자가 지정하는 YEAR를 현재의 YEAR를 기반으로 하여,
'RR' FORMAT이 RETURN하는 DATE(세기)를 나타낸 것이다.
현재 YEAR의 지정된 YEAR의 'RR' FORMAT결과
마지막 2 DIGIT 마지막 2 DIGIT
0 - 49 0 - 49 현재 세기
50 - 99 0 - 49 다음 세기
0 - 49 50 - 99 이전 세기
50 - 99 50 - 99 현재 세기
예를 들면, 현재가 1993년이면, 50에서 90사이의 년도는 20세기에 포함되고,
0에서 49사이의 년도는 21세기에 포함된다. 마찬가지로 현재가 2001년이면
50에서 90사이의 년도는 20세기에 포함되고, 0에서 49사이의 년도는 21세기에
포함된다.
다음은 'RR'사용에 대한 예이다.
이와 같이 RR type을 사용하여 모든 application을 수정하기 곤란할 때에는
환경변수의 nls_date_format을 변경하여도 된다.
단, nls_date_format은 이후에 다른 사용자에 의해 변경되어질 수도 있으므로
application을 수정하는 것이 안전하다.
SQL> INSERT INTO EMP(empno, deptno, hiredate)
VALUES(9999, 20, TO_DATE('01-JAN-03', 'DD-MON-RR'));
1 row created.
SQL> INSERT INTO EMP(empno, deptno, hiredate)
VALUES(8888, 20, TO_DATE('01-JAN-67', 'DD-MON-RR'));
1 row created.
SQL> SELECT empno, deptno, TO_CHAR(hiredate, 'DD-MON-YYYY') hiredate
FROM EMP;
EMPNO DEPTNO HIREDATE
8888 20 01-JAN-1967
9999 20 01-JAN-2003RR was introduced as a Y2K workaround for all those programs that didn't store the century. It has a fixed window - 50 to 99 defaults to twentieth century, 00 to 49 is twenty-first. YY on teh other hand just defaults to the current century. At least in 9.2 it does. I think in earlier version of the database it defaulted to 00 - hence many systems apparently have records that were created in the first century AD.
SQL> SELECT to_char(to_date('01-JAN-50', 'DD-MON-RR'), 'DD-MON-YYYY')
2 FROM dual
3 /
TO_CHAR(TO_
01-JAN-1950
SQL> SELECT to_char(to_date('01-JAN-49', 'DD-MON-RR'), 'DD-MON-YYYY')
2 FROM dual
3 /
TO_CHAR(TO_
01-JAN-2049
SQL> SELECT to_char(to_date('01-JAN-50', 'DD-MON-YY'), 'DD-MON-YYYY')
2 FROM dual
3 /
TO_CHAR(TO_
01-JAN-2050
SQL> SELECT to_char(to_date('01-JAN-49', 'DD-MON-YY'), 'DD-MON-YYYY')
2 FROM dual
3 /
TO_CHAR(TO_
01-JAN-2049
SQL> Cheers, APC -
Pls Help with date format picture ends ......error
Hi Everyone,
I am getting the following error when I run my crystal report.
Failed to retrieve data from the database.
Details: HY000:[DataDirect][ODBC Oracle driver][Oracle]ORA-01830: date format picture ends before converting entire input string
[Database Vendor Code: 1830]
I am using SQL Command for my report and in the command my date fields are of "Date" datatype.
I am using Crystal Reports XI R2,driver - CR Oracle ODBC Driver 5.1
Any help is greatly appreciated.
Thanks in advance
My SQL Command is as follows:
<
with MAXNEWSTAT as
(select
/--Added by HAN--/
HRHISTORY.COMPANY,
HRHISTORY.EMPLOYEE,
MAX(HRHISTORY.ACT_OBJ_ID) ACT_OBJ_ID
FROM
LAWSON.HRHISTORY
WHERE
HRHISTORY.FLD_NBR=20
and TO_DATE(HRHISTORY.DATE_STAMP)
>= TO_DATE((TO_CHAR((ADD_MONTHS(SYSDATE,-1)),'YYYY/MM')||'/01'),'YYYY/MM/DD')
AND TO_DATE(HRHISTORY.DATE_STAMP) <= (TO_DATE((TO_CHAR((ADD_MONTHS(SYSDATE,0)),'YYYY/MM')||'/01'),'YYYY/MM/DD'))-1
/--Added by HAN--/
GROUP BY COMPANY,
EMPLOYEE),
NEWSTAT AS
(SELECT
/--Added by HAN--/
HRHISTORY.COMPANY,
HRHISTORY.EMPLOYEE,
HRHISTORY.A_VALUE,
HRHISTORY.DATE_STAMP,
HRHISTORY.BEG_DATE,
HRHISTORY.ACT_OBJ_ID NS_OBJ_ID,
HRHISTORY.SEQ_NBR
FROM
LAWSON.HRHISTORY
INNER JOIN LAWSON.MAXNEWSTAT
ON
/--Added by HAN--/
HRHISTORY.COMPANY = MAXNEWSTAT.COMPANY
/--Added by KAM--/
AND HRHISTORY.EMPLOYEE = MAXNEWSTAT.EMPLOYEE
AND HRHISTORY.ACT_OBJ_ID = MAXNEWSTAT.ACT_OBJ_ID
WHERE
HRHISTORY.FLD_NBR=20
and TO_DATE(HRHISTORY.DATE_STAMP)
>= TO_DATE((TO_CHAR((ADD_MONTHS(SYSDATE,-1)),'YYYY/MM')||'/01'),'YYYY/MM/DD')
AND TO_DATE(HRHISTORY.DATE_STAMP) <= (TO_DATE((TO_CHAR((ADD_MONTHS(SYSDATE,0)),'YYYY/MM')||'/01'),'YYYY/MM/DD'))-1
PREVSTATID AS
(SELECT
/--Added by HAN--/
HRHISTORY.COMPANY,
HRHISTORY.EMPLOYEE,
MAX(HRHISTORY.ACT_OBJ_ID)OBJ_ID
FROM
LAWSON.HRHISTORY
INNER JOIN LAWSON.NEWSTAT
/--Added by HAN--/
ON HRHISTORY.COMPANY = NEWSTAT.COMPANY
AND HRHISTORY.EMPLOYEE = NEWSTAT.EMPLOYEE
WHERE
HRHISTORY.FLD_NBR=20
AND TO_DATE(HRHISTORY.BEG_DATE)
< to_date(NEWSTAT.BEG_DATE)
GROUP BY
/--Added by HAN--/
HRHISTORY.COMPANY,
HRHISTORY.EMPLOYEE
PREVSTAT AS
(SELECT
/--Added by HAN--/
HRHISTORY.COMPANY,
HRHISTORY.EMPLOYEE,
HRHISTORY.A_VALUE A_VALUE,
HRHISTORY.DATE_STAMP DATE_STAMP,
HRHISTORY.BEG_DATE BEG_DATE,
HRHISTORY.ACT_OBJ_ID OBJ_ID,
HRHISTORY.SEQ_NBR SEQ_NBR
FROM
LAWSON.HRHISTORY
INNER JOIN LAWSON.PREVSTATID
/--Added by HAN--/
ON HRHISTORY.COMPANY = PREVSTATID.COMPANY
AND HRHISTORY.EMPLOYEE = PREVSTATID.EMPLOYEE
WHERE
HRHISTORY.FLD_NBR=20 AND
HRHISTORY.ACT_OBJ_ID = PREVSTATID.OBJ_ID
MAXPERSACTHST AS
(SELECT
PERSACTHST.EMPLOYEE,
/--Added by KAM--/
PERSACTHST.COMPANY,
MAX(PERSACTHST.DATE_STAMP)DATE_STAMP
FROM
LAWSON.PERSACTHST
WHERE
(PERSACTHST.ACTION_CODE='LOASTATUS' OR PERSACTHST.ACTION_CODE='STATUS')
AND TO_DATE(PERSACTHST.DATE_STAMP)
>= TO_DATE((TO_CHAR((ADD_MONTHS(SYSDATE,-1)),'YYYY/MM')||'/01'),'YYYY/MM/DD')
AND TO_DATE(PERSACTHST.DATE_STAMP) <= (TO_DATE((TO_CHAR((ADD_MONTHS(SYSDATE,0)),'YYYY/MM')||'/01'),'YYYY/MM/DD'))-1
GROUP BY PERSACTHST.EMPLOYEE,
/--Added by KAM--/
PERSACTHST.COMPANY
CHANGELIST AS
(SELECT
PERSACTHST.EMPLOYEE,
/--Added by KAM--/
PERSACTHST.COMPANY,
PERSACTHST.ACTION_CODE,
PERSACTHST.REASON_01,
PERSACTHST.DATE_STAMP,
PERSACTHST.EFFECT_DATE,
PERSACTHST.REASON_02,
PREVSTAT.A_VALUE PS_A_VALUE,
PREVSTAT.DATE_STAMP PS_HR_DATE_STAMP,
PREVSTAT.BEG_DATE PS_HR_BEG_DATE,
PREVSTAT.OBJ_ID PS_HR_OBJ_ID,
PREVSTAT.SEQ_NBR PS_HR_SEQ_ID,
NEWSTAT.A_VALUE NS_A_VALUE,
NEWSTAT.DATE_STAMP NS_DATE_STAMP,
NEWSTAT.BEG_DATE NS_BEG_DATE,
NEWSTAT.NS_OBJ_ID,
NEWSTAT.SEQ_NBR NS_SEQ_NBR
FROM
LAWSON.PERSACTHST PERSACTHST
INNER JOIN LAWSON.PREVSTAT
ON PERSACTHST.EMPLOYEE=PREVSTAT.EMPLOYEE
/--Added by KAM--/
AND PERSACTHST.COMPANY = PREVSTAT.COMPANY
INNER JOIN LAWSON.NEWSTAT
ON PERSACTHST.EMPLOYEE = NEWSTAT.EMPLOYEE
/--Added by KAM--/
AND PERSACTHST.COMPANY = NEWSTAT.COMPANY
INNER JOIN LAWSON.MAXPERSACTHST
ON PERSACTHST.EMPLOYEE = MAXPERSACTHST.EMPLOYEE
/--Added by KAM--/
AND PERSACTHST.COMPANY = MAXPERSACTHST.COMPANY
WHERE
(PERSACTHST.ACTION_CODE='LOASTATUS' OR PERSACTHST.ACTION_CODE='STATUS')
AND NEWSTAT.A_VALUE <> PREVSTAT.A_VALUE
AND MAXPERSACTHST.DATE_STAMP = PERSACTHST.DATE_STAMP
PAEMPPOSENDDATE AS
(SELECT
PAEMPPOS.EMPLOYEE,
PAEMPPOS.COMPANY,
CASE
WHEN PAEMPPOS.END_DATE = TO_DATE('1700,01,01','YYYY,MM,DD')
THEN to_date(SYSDATE + 1,'YYYY,MM,DD')
ELSE PAEMPPOS.END_DATE
END END_DATE,
PAEMPPOS.EFFECT_DATE
FROM LAWSON.PAEMPPOS),
CURRFTE AS
(SELECT
PAEMPPOS.EMPLOYEE,
/--Added by KAM--/
PAEMPPOS.COMPANY,
PAEMPPOS.FTE CURR_FTE,
PAEMPPOS.EFFECT_DATE,
PAEMPPOSENDDATE.END_DATE
FROM
LAWSON.PAEMPPOS
INNER JOIN LAWSON.NEWSTAT
ON (PAEMPPOS.EMPLOYEE = NEWSTAT.EMPLOYEE)
/--Added by KAM--/
AND (PAEMPPOS.COMPANY = NEWSTAT.COMPANY)
INNER JOIN LAWSON.PAEMPPOSENDDATE
ON PAEMPPOS.EMPLOYEE = PAEMPPOSENDDATE.EMPLOYEE
/--Added by KAM--/
AND PAEMPPOS.COMPANY = PAEMPPOSENDDATE.COMPANY
AND PAEMPPOS.EFFECT_DATE=PAEMPPOSENDDATE.EFFECT_DATE
WHERE
(PAEMPPOSENDDATE.EFFECT_DATE <= NEWSTAT.BEG_DATE AND PAEMPPOSENDDATE.END_DATE >= NEWSTAT.BEG_DATE)
PREVFTE AS
(SELECT
PAEMPPOS.EMPLOYEE,
/--Added by KAM--/
PAEMPPOS.COMPANY,
PAEMPPOS.FTE PREV_FTE,
PAEMPPOSENDDATE.END_DATE
FROM
LAWSON.PAEMPPOS
INNER JOIN LAWSON.NEWSTAT
ON (PAEMPPOS.EMPLOYEE = NEWSTAT.EMPLOYEE)
/--Added by KAM--/
AND (PAEMPPOS.COMPANY = NEWSTAT.EMPLOYEE)
INNER JOIN LAWSON.PAEMPPOSENDDATE
ON (PAEMPPOS.EMPLOYEE = PAEMPPOSENDDATE.EMPLOYEE)
/--Added by KAM--/
AND (PAEMPPOS.COMPANY = PAEMPPOSENDDATE.COMPANY)
AND (PAEMPPOS.EFFECT_DATE = PAEMPPOSENDDATE.EFFECT_DATE)
WHERE
PAEMPPOS.EFFECT_DATE <= (NEWSTAT.BEG_DATE-1)AND PAEMPPOSENDDATE.END_DATE >= (NEWSTAT.BEG_DATE -1)
SELECT DISTINCT
EMPLOYEE.EMPLOYEE,
EMPLOYEE.DEPARTMENT,
EMPLOYEE.PROCESS_LEVEL,
EMPLOYEE.EMP_STATUS,
EMPLOYEE.FIRST_NAME,
EMPLOYEE.LAST_NAME,
EMPLOYEE.MIDDLE_INIT,
EMPLOYEE.POSITION,
PAPOSITION.DESCRIPTION,
CHANGELIST.PS_A_VALUE,
/--Added by KAM--/
CHANGELIST.COMPANY,
CHANGELIST.PS_HR_DATE_STAMP,
CHANGELIST.PS_HR_BEG_DATE,
CHANGELIST.PS_HR_OBJ_ID,
CHANGELIST.NS_A_VALUE,
CHANGELIST.NS_DATE_STAMP,
CHANGELIST.NS_OBJ_ID,
CHANGELIST.ACTION_CODE,
CHANGELIST.REASON_01,
CHANGELIST.REASON_02,
CHANGELIST.DATE_STAMP PERSACTSDATESTAMP,
CHANGELIST.EFFECT_DATE PERSACTEFFDATE,
DEPTCODE.R_NAME DEPTNAME,
PRSYSTEM.R_NAME PLNAME,
PREVFTE.PREV_FTE,
CURRFTE.CURR_FTE,
CHANGELIST.NS_BEG_DATE,
PGSELECT.GROUP_NAME,
PAEMPLOYEE.SENIOR_DATE
FROM
LAWSON.CHANGELIST
INNER JOIN LAWSON.EMPLOYEE
ON (EMPLOYEE.EMPLOYEE = CHANGELIST.EMPLOYEE)
/--Added by KAM--/
AND (EMPLOYEE.COMPANY = CHANGELIST.COMPANY)
INNER JOIN LAWSON.DEPTCODE
ON ((EMPLOYEE.COMPANY=DEPTCODE.COMPANY)
AND (EMPLOYEE.PROCESS_LEVEL=DEPTCODE.PROCESS_LEVEL)
AND (EMPLOYEE.DEPARTMENT=DEPTCODE.DEPARTMENT))
INNER JOIN LAWSON.PRSYSTEM
ON ((EMPLOYEE.COMPANY=PRSYSTEM.COMPANY)
AND(EMPLOYEE.PROCESS_LEVEL=PRSYSTEM.PROCESS_LEVEL))
LEFT OUTER JOIN LAWSON.PREVFTE
ON (CHANGELIST.EMPLOYEE=PREVFTE.EMPLOYEE)
/--Added by KAM--/
AND (CHANGELIST.COMPANY=PREVFTE.COMPANY)
LEFT OUTER JOIN LAWSON.CURRFTE
ON (CHANGELIST.EMPLOYEE=CURRFTE.EMPLOYEE)
/--Added by KAM--/
AND (CHANGELIST.COMPANY=CURRFTE.COMPANY)
INNER JOIN LAWSON.PGSELECT PGSELECT
ON ((EMPLOYEE.COMPANY=PGSELECT.COMPANY)
AND (EMPLOYEE.EMP_STATUS=PGSELECT.BEGIN_VALUE))
LEFT OUTER JOIN LAWSON.PAPOSITION
ON (EMPLOYEE.POSITION=PAPOSITION.POSITION)
AND (EMPLOYEE.COMPANY=PAPOSITION.COMPANY)
INNER JOIN LAWSON.PAEMPLOYEE
ON (CHANGELIST.EMPLOYEE=PAEMPLOYEE.EMPLOYEE)
/--Added by KAM--/
AND (CHANGELIST.COMPANY=PAEMPLOYEE.COMPANY)
WHERE
(PGSELECT.GROUP_NAME='G:ACTIVE' OR PGSELECT.GROUP_NAME='G:INACTIVE')
>Hi Arsh,
The error message you receive i.e.
ORA-01830: date format picture ends before converting entire input string
is an Oracle error.
The following document would be helpful:
ORA-01830: date format picture ends before converting entire input string
Cause: A valid date format picture included extra data. The first part of the format picture was converted into a valid date, but the remaining data was not required.
Action: Check the specifications for date format pictures and correct the statement.
Regards,
Alpana -
How to specify date format in a schema
I got the following error when try to write data to a flat file using file adapter. I think it's because my variable's date format doesn't match what's in the xml schema. I defined the xml schema by using 'Define Schema for Native Format', but I can not specify date format there. How do I know what format the system will read and how to define my own date format?
file:/D:/OracleSOA/bpel/domains/default/tmp/.bpel_FileWriteTest_1.0_098a8d5cd6b8965868766a3fbb25be3c.tmp/FWrite.wsdl [ Write_ptt::Write(Root-Element) ] - WSIF JCA Execute of operation 'Write' failed due to: Translation Error.
Error while translating message to native format [Caused by: Invalid text '10-09-2006' in element: 'LastUpdateDate'].
Thank you,Under HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME{X}
NLS_DATE_FORMAT = 'dd-mm-yyyy'
You could also change the database date format :
SQL> alter system set NLS_DATE_FORMAT = 'dd-mm-yyyy' scope=spfile;
and restart the DB. -
How to Change Date Format in Registry
how to change date format in registry so when u qeury the date column, it display in our specific format like 20-05-2005 instead of 20-may-05. i dont want to use to_char in query
thanksUnder HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME{X}
NLS_DATE_FORMAT = 'dd-mm-yyyy'
You could also change the database date format :
SQL> alter system set NLS_DATE_FORMAT = 'dd-mm-yyyy' scope=spfile;
and restart the DB. -
How can I change defaut date format to dd-mon-yyyy in bi analytics
hi..
How can I change the default date format to DD-MON-YYYY in BI Analytics...
I am passing a date in a report from a prompt....but it is always taking "dd-mon-yyyy hh:mm:ss" format...I want to input the prompt in oracle's default date format i.e dd-mon-yyyy..
please help...I dont want to use cast function because it will convert the date into a character value....I want a date...Hi USer
Try this link
How to change date format in OBIEE
Re: repository variable at date prompt
Thanks
Diney -
Presentation Variables Date Format
Hi,
I have a direct sql request that uses date presentation variables via a dashboard prompt:
Direct SQL:
select id, customer
from test
where date between @startdate and @enddate
If I enter startdate '31/03/2013 00:00:00' in the dashboard prompt selection:
OBIEE converts the above query into database date format:
'YYYY-MM-DD HH24:MI:SS'
The database is in date format DD-MON-YYY, this results in error ORA-01861: literal does not match format string
can anyone help with where the date format should be set?
ThanksThere are different levels of users on this forum so you need to be more specific and provide examples to novice users....I want user to think on given hints and fix by himself instead of detailed with examples, this would help user to learn and think in new dimensions instead of depending on any one.
Sometimes I'll be responding more detail based on their registered date with OTN and # posts posted.
in your case my hint not fired!! so no full points ;)
Check this
Re: How set two presentation variables with one prompt
Edited by: Srini VEERAVALLI on Apr 11, 2013 10:55 AM -
Oracle 9i Database Download Problem
I have been trying to download a Personal Edition of Oracle 9i database.This fails with a page not found error.
- Server name : UK
- Filename : Oracle 9i database
- Date/Time : 14:20 pm (GMT)
- Browser + Version : IE 5
- O/S + Version : Windows 2000
- Error Msg : Page not foundHello,
Due to the popularity of OTN's software downloads, we sometimes experience periods of high load on our systems. We apologize for any inconvenience this may cause.
If you have downloaded a file and it appears to be corrupt, it is most likely that your connection is being dropped or lost during the transfer process.
Here are a few suggestions:
1) Please make sure that your proxy server settings are correct before attempting to download again and try alternating between browsers.
2) There is download management software available that you can try at http://www.getright.com that provides the "resume" feature. Please try using this software and let us know if it has any effect on your download.
3) Please try changing the URL of the software you would like to download from
http://download.oracle.com/xxx/xxx.zip to:
a) http://download-west.oracle.com/
b) http://download-east.oracle.com/
c) http://download-uk.oracle.com/
4) Try an alternate internet browser
Regards,
OTN -
Date format conversation in OBIEE
Hello guys
I am a quick question about how to stop OBIEE from using to_date conversation? The date format in the db is dd/month/yy, and when I run any report in OBIEE answer using Date columns, it will always convert the format to "dd/mm/YYYY". The sql generated will always have a to_date() in where clause..
Is there a way to not have OBIEE does that and just show the date with format as it is and drop the to_date conversion in SQL?
ThanksI think you are getting confused here. Oracle's default date format is dd-mon-yyyy. So when you run a query like this:
DATE_COLUMN = '01-Nov-2009'
Oracle applies an IMPLICIT data type conversion to your date string and converts it to a date data type. Whether you allow Oracle to do the implicit conversion or do it explicitly like this DATE_COLUMN = To_date('01-Nov-2009', 'dd-mon-yyyy') should always result in the same query performance. When to TO_DATE functions affect query performance? When you apply the function over the DATE_COLUMN like this:
TO_DATE(DATE_COLUMN, 'dd-mon-yyyy') = '01-Nov-2009'
Why? Because indexes on DATE_COLUMN WILL NOT be used unless you have defined a function level index with a index column using the function: TO_DATE(DATE_COLUMN, 'dd-mon-yyyy'). My guess is that your DATE_COLUMN is not a date but a varchar2, therefore when you pass in To_date('01-Nov-2009', 'dd-mon-yyyy') Oracle does an IMPLICIT conversion of your DATE_COLUMN to DATE data type to match the data type of your where condition hence it is taking long to execute as no indexes are used. Can you confirm what is the exact data type of the DATE_COLUMN you are using to filter on? Do you have an index defined in that column? Can you confirm exactly how is the index is defined? Have you ran statistics on the table AND the indexes as well? -
ADDT does not change the display date format when I set it in th ADDT Control panel.
Control panel settings:
Database date format: yyyy-mm-dd
Screen date format: mm/dd/yyyy
Display output: yyyy-mm-dd
Is output does not change regardless of th esetting in control panel.
Please advise.
Simonhello
ok here is another solution:
Go to the binding panel and select the Dynamic Text that retrieved from the recordset to display the date in your page.
- move your cruiser to the dead right end then you will found a bold down arrow beside the dynamic text click it you will found:
- dropdown menu >> click Developer toolbox >>> Date Formate
this will apply the settings you have made in the Control panel to this specified Dynamic data...
i did it and works very fine now... -
Date format issue in oracle database
Hi,
Back end : Oracle 11.2.0.2.0
Front end : Forms 11g
In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
The Nls_date_format parameter at database level is set as 'DD-MON-RR'
Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
pls help us to solve the issue.
Regards.
sathish k892913 wrote:
Hi,
Back end : Oracle 11.2.0.2.0
Front end : Forms 11g
In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
The Nls_date_format parameter at database level is set as 'DD-MON-RR'
Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
pls help us to solve the issue.
Regards.
sathish kWell the solution is right in front of you. As you say, your database environment is set to DD-MON-RR so your database is set to use 2 digit years (something most people moved away from with the millenium bug more than 10 years ago now). You can either change all your code to use RRRR as you've found, or change your database NLS setting to DD-MON-RRRR and change your front end application to pass you a date with 4 digit years so you get e.g. '20-dec-2009'.
So many people worked hard to resolve the millenium bug issues all those years ago, but still we have people, all these years later, who want to reintroduce the problem. So sad. -
Date format in different databases like DB2, MS SQL, Oracle etc.
Hi,
Is there any standard date format, which works on any database like DB2, MS SQL Server, or Oracle 8i.
Right now I am using specific format for each database.
I am using the following syntax to retrieve the records on Jun 14, 2001.
MS SQL Server:
select * from tablename where
CONVERT(character(10),ReceiptDateTime, 120) >='2001-06-14'
and CONVERT(character(10), ReceiptDateTime , 120) <'2001-06-15'
Oracle:
select * from tablename where
TO_CHAR(ReceiptDateTime,'YYYY-MM-DD') >= '2001-06-14'
AND TO_CHAR(ReceiptDateTime,'YYYY-MM-DD') < '2001-06-15'
Is there any way we can generalize the date formt?
Any help appreciated.
Thanks,
NaiduHi,
Perhaps any difference when you compare the outcomes of
SQL> select * from nls_database_parameters;
SQL> select * from nls_session_parameters;on both databases?
Maybe you are looking for
-
Getting unexpected error message with exportpdf
Export PDF is not working for me. says failed to export, unexpected error. tried several different pdf documents. not one would upload. Does this service actually work? and if so, how do I get it to work?
-
Regarding creating Excise Licence
Hi Gurus, I am facing an error "Enter valid sold to party/ship to party" while creating licence in T Code J1ILIC01. I have created a customer in Foreign Location and maintained data in J1ID. Till I am facing the problem. Kindly guide me. Thanks in a
-
How do I get to the iWeb code so I may add my megatags and keywords for better search visibility
Would like to maximize my iWeb made webpage on the web and utilizing megatags and keywords through my search engine. They say I need to add these words after my header in the code...how do I find the code?
-
H264 Sync Problems (CS4)
I'm exporting SD video footage to H.264 format at 640 x 480 (square pixels). I keep getting audio / video sync errors. Is this a known issue with Premiere Pro CS4?
-
HT4796 why a new user account following migration?
following Itunes migration from PC to Mac, a new user was created. Could not loads library to my existing account?