SV: Date Format: Mystery
Title: Meddelelse Rajesh, SYSDATE is of datatype DATE (that's what the documentation says), i.e. it contains century, year, month, day, hour, minute and second (without decimals). I have made a little test. FirstIdump a SYSDATE to see the internal representation. Then Icreate a table with a SYSDATE anddump it. SQL select to_char(sysdate, '.MM.DD HH24:MI:SS'), dump(sysdate) 2 from dual; TO_CHAR(SYSDATE,'YYYDUMP(SYSDATE)--2004.01.30 08:13:16Typ=13 Len=8: 7,212,1,30,8,13,16,0 SQL create table testdate as 2 select sysdate d 3 from dual; Table created. SQL select to_char(d, '.MM.DD HH24:MI:SS'), dump(d) 2 from testdate; TO_CHAR(D,'.MM.DDUMP(D)--2004.01.30 08:13:16Typ=12 Len=7: 120,104,1,30,9,14,17 Certainly som conversion is going on here. This might be the reason why there has been confusion about 7 or 8 bytes in a DATE datatype. To answer your question, it is possible to deal with fractions of seconds, byt you need to use theTIMESTAMP datatype. The function SYSTIMESTAMP could be useful. Be aware that Oracle supports 9 decimals, but not all hardware platforms do. Therefore the results might be inaccurate. SQL select to_char(systimestamp, '.MM.DD HH24:MI:SS.S'), dump(systimestamp) 2 from dual; TO_CHAR(SYSTIMESTAMP,'.MM-DUMP(SYSTIMESTAMP)--2004.01.30 08:13:16.295961616Typ=188 Len=20: 7,212,1,30,7,13,16,0,6,14,35,240,1,0,5,46,0,0,32,32 Regards Jesper Haure Nørrevang -Oprindelig meddelelse-Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Pillai, RajeshSendt: 30. januar 2004 01:59Til: Multiple recipients of list ORACLE-LEmne: RE: Date Format: Mystery Carel-Jan, This explanation helps. Thanks a lot. Could you also answer if displaying centiseconds or milliseconds or 1/10th of a second in oracle is possible or not Thanks, Rajesh -Original Message-From: Carel-Jan Engel [mailto:[EMAIL PROTECTED]Sent: Thursday, January 29, 2004 4:29 PMTo: Multiple recipients of list ORACLE-LSubject: Re: Date Format: MysteryRajesh,A look into the docs might help you:In date-format SS means seconds as of the seconds 00-59 in a minute.S means seconds since midnight, thus 0 - 86399Compiling the statement the longest part is recocnized first.So:SS give 06 in your first example. gives 20, but twice: 2020SS consists of the S part, followed by an unrecocnized single S: error consists of S, followed by SS, followed by an unrecognized S: errorSS is S S, so the result is 46439 46439.Regards, Carel-JanAt 10:29 PM 1/29/2004, you wrote: Hi All,See the following - 1) select to_char(sysdate,'-MM-DD HH24:MI:SS AM') from dual;result = 2004-01-29 12:52:06 PM2) select to_char(sysdate,'-MM-DD HH24:MI: AM') from dual;result = 2004-01-29 12:52:2020 PM3) select to_char(sysdate,'-MM-DD HH24:MI:SS AM') from dual;ORA-01821: date format not recognized4) select to_char(sysdate,'-MM-DD HH24:MI: AM') from dual;ORA-01821: date format not recognized5) select to_char(sysdate,'-MM-DD HH24:MI:SS AM') from dual;result = 2004-01-29 12:53:4643946439 PMWhat does it mean? If I want to see the 10th part of the second or 100th part of the second, Is it poosible?I would appreciate all your hints.Thanks,Rajesh-- Please see the official ORACLE-L FAQ: http://www.orafaq.net-- Author: Pillai, Rajesh INET: [EMAIL PROTECTED]Fat City Network Services -- 858-538-5051 http://www.fatcity.comSan Diego, California -- Mailing list and web hosting services-To REMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). ===If you think education is expensive, try ignorance. (Derek Bok)===DBA!ert, Independent Oracle Consultancy Kastanjelaan 61C2743 BX WaddinxveenThe Netherlandstel. +31 (0) 182 640 428fax +31 (0) 182 640 429mobile+31 (0) 653 911 950e-mail [EMAIL PROTECTED]
Re: [Q] wait time /lob def
Tanel, Oracle 9-2 SQL Ref manual. Lob storage clause. The options for lobs on creation are: CACHE NO CACHE CACHE READS I don't think the last one appeared until 9.2 I was wrong about caching only writes, though - one of the joys of trying to quote everything from memory. The CACHE READS option means that the LOB goes into the buffer cache for reads, but not for writes. Pity, really, because I'd quite like to see it the other way around. Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The educated person is not the person who can answer the questions, but the person who can question the answers -- T. Schick Jr Next public appearances: Jan 29th 2004 UKOUG Unix SIG - v$ and x$ March 2004 Hotsos Symposium - The Burden of Proof March 2004 Charlotte NC OUG - CBO Tutorial April 2004 Iceland One-day tutorials: http://www.jlcomp.demon.co.uk/tutorial.html Three-day seminar: see http://www.jlcomp.demon.co.uk/seminar.html UK___February UK___June The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, January 30, 2004 12:19 AM Jonathan, about which version are you talking here? (You do also have the option in more recent versions of refining the caching properties so the LOB can be readcache only, writecache only or read/write cache or nocache, I believe). I haven't found a way to explicitly set read or write caching for LOBs in system level, although I've done some research on them lately (on 10g as well). Or are you talking about OCI LOB caching here? Tanel. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Lewis INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: [Q] wait time /lob def
It's just one example of my general suggestion that messing about with block sizes rarely has any direct performance benefit. But if you can put something out of the way where it can't do so much damage then the performance of everything else might benefit. Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The educated person is not the person who can answer the questions, but the person who can question the answers -- T. Schick Jr Next public appearances: Jan 29th 2004 UKOUG Unix SIG - v$ and x$ March 2004 Hotsos Symposium - The Burden of Proof March 2004 Charlotte NC OUG - CBO Tutorial April 2004 Iceland One-day tutorials: http://www.jlcomp.demon.co.uk/tutorial.html Three-day seminar: see http://www.jlcomp.demon.co.uk/seminar.html UK___February UK___June The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Thursday, January 29, 2004 11:04 PM That is an interesting use of an alternate block size Jonathan. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Lewis INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: [Q] wait time /lob def
Hi Jonathan, I don't think the last one appeared until 9.2 I was wrong about caching only writes, though - one of the joys of trying to quote everything from memory. Thank you for this note, I had somehow missed this important improvement. The CACHE READS option means that the LOB goes into the buffer cache for reads, but not for writes. Pity, really, because I'd quite like to see it the other way around. It guess it has to do with the kernel cache layer, that it's probably not feasible to start modifying cache layer code the way it wouldn't log any changes? Anyway, some testing needs to be done now :) Actually CACHE READS is exactly what I need for a current project, the incoming LOB feed is too high to have them logging, but the app can somewhat benefit from LOB caching in buffer cache. I relieved write performance problem by using OCI LOB caching and batch writes for incoming content feed (and the app is gonna run on a dedicated write-cache enabled Hitachi 9980V as well). Thanks, Tanel. Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The educated person is not the person who can answer the questions, but the person who can question the answers -- T. Schick Jr Next public appearances: Jan 29th 2004 UKOUG Unix SIG - v$ and x$ March 2004 Hotsos Symposium - The Burden of Proof March 2004 Charlotte NC OUG - CBO Tutorial April 2004 Iceland One-day tutorials: http://www.jlcomp.demon.co.uk/tutorial.html Three-day seminar: see http://www.jlcomp.demon.co.uk/seminar.html UK___February UK___June The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, January 30, 2004 12:19 AM Jonathan, about which version are you talking here? (You do also have the option in more recent versions of refining the caching properties so the LOB can be readcache only, writecache only or read/write cache or nocache, I believe). I haven't found a way to explicitly set read or write caching for LOBs in system level, although I've done some research on them lately (on 10g as well). Or are you talking about OCI LOB caching here? Tanel. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Lewis INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
SV: Date Format: Mystery
Title: Meddelelse Sorry! I was mixingformat-masks. The last SQL should read (i.e. instead of ): select to_char(systimestamp, '.MM.DD HH24:MI:SS.'), dump(systimestamp) from dual; /Jesper -Oprindelig meddelelse-Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Jesper Haure NorrevangSendt: 30. januar 2004 08:24Til: Multiple recipients of list ORACLE-LEmne: SV: Date Format: Mystery Rajesh, SYSDATE is of datatype DATE (that's what the documentation says), i.e. it contains century, year, month, day, hour, minute and second (without decimals). I have made a little test. FirstIdump a SYSDATE to see the internal representation. Then Icreate a table with a SYSDATE anddump it. SQL select to_char(sysdate, '.MM.DD HH24:MI:SS'), dump(sysdate) 2 from dual; TO_CHAR(SYSDATE,'YYYDUMP(SYSDATE)--2004.01.30 08:13:16Typ=13 Len=8: 7,212,1,30,8,13,16,0 SQL create table testdate as 2 select sysdate d 3 from dual; Table created. SQL select to_char(d, '.MM.DD HH24:MI:SS'), dump(d) 2 from testdate; TO_CHAR(D,'.MM.DDUMP(D)--2004.01.30 08:13:16Typ=12 Len=7: 120,104,1,30,9,14,17 Certainly som conversion is going on here. This might be the reason why there has been confusion about 7 or 8 bytes in a DATE datatype. To answer your question, it is possible to deal with fractions of seconds, byt you need to use theTIMESTAMP datatype. The function SYSTIMESTAMP could be useful. Be aware that Oracle supports 9 decimals, but not all hardware platforms do. Therefore the results might be inaccurate. SQL select to_char(systimestamp, '.MM.DD HH24:MI:SS.S'), dump(systimestamp) 2 from dual; TO_CHAR(SYSTIMESTAMP,'.MM-DUMP(SYSTIMESTAMP)--2004.01.30 08:13:16.295961616Typ=188 Len=20: 7,212,1,30,7,13,16,0,6,14,35,240,1,0,5,46,0,0,32,32 Regards Jesper Haure Nørrevang -Oprindelig meddelelse-Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Pillai, RajeshSendt: 30. januar 2004 01:59Til: Multiple recipients of list ORACLE-LEmne: RE: Date Format: Mystery Carel-Jan, This explanation helps. Thanks a lot. Could you also answer if displaying centiseconds or milliseconds or 1/10th of a second in oracle is possible or not Thanks, Rajesh -Original Message-From: Carel-Jan Engel [mailto:[EMAIL PROTECTED]Sent: Thursday, January 29, 2004 4:29 PMTo: Multiple recipients of list ORACLE-LSubject: Re: Date Format: MysteryRajesh,A look into the docs might help you:In date-format SS means seconds as of the seconds 00-59 in a minute.S means seconds since midnight, thus 0 - 86399Compiling the statement the longest part is recocnized first.So:SS give 06 in your first example. gives 20, but twice: 2020SS consists of the S part, followed by an unrecocnized single S: error consists of S, followed by SS, followed by an unrecognized S: errorSS is S S, so the result is 46439 46439.Regards, Carel-JanAt 10:29 PM 1/29/2004, you wrote: Hi All,See the following - 1) select to_char(sysdate,'-MM-DD HH24:MI:SS AM') from dual;result = 2004-01-29 12:52:06 PM2) select to_char(sysdate,'-MM-DD HH24:MI: AM') from dual;result = 2004-01-29 12:52:2020 PM3) select to_char(sysdate,'-MM-DD HH24:MI:SS AM') from dual;ORA-01821: date format not recognized4) select to_char(sysdate,'-MM-DD HH24:MI: AM') from dual;ORA-01821: date format not recognized5) select to_char(sysdate,'-MM-DD HH24:MI:SS AM') from dual;result = 2004-01-29 12:53:4643946439 PMWhat does it mean? If I want to see the 10th part of the second or 100th part of the second, Is it poosible?I would appreciate all your hints.Thanks,Rajesh-- Please see the official ORACLE-L FAQ: http://www.orafaq.net-- Author: Pillai, Rajesh INET: [EMAIL PROTECTED]Fat City Network Services -- 858-538-5051 http://www.fatcity.comSan Diego, California -- Mailing list and web hosting services-To REMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to
Re: Re: [Q] wait time /lob def
i apologize if someone posted this answer(i missed it if you did), but why do cached lobs require writes on the control file? and jonathan said that isnt 'necessarily' bad. is that because there isnt alot of I/O? so caching lobs are primarily useful for read only or read 'mostly' LOBs? From: Jonathan Lewis [EMAIL PROTECTED] Date: 2004/01/30 Fri AM 04:09:25 EST To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Subject: Re: [Q] wait time /lob def Tanel, Oracle 9-2 SQL Ref manual. Lob storage clause. The options for lobs on creation are: CACHE NO CACHE CACHE READS I don't think the last one appeared until 9.2 I was wrong about caching only writes, though - one of the joys of trying to quote everything from memory. The CACHE READS option means that the LOB goes into the buffer cache for reads, but not for writes. Pity, really, because I'd quite like to see it the other way around. Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The educated person is not the person who can answer the questions, but the person who can question the answers -- T. Schick Jr Next public appearances: Jan 29th 2004 UKOUG Unix SIG - v$ and x$ March 2004 Hotsos Symposium - The Burden of Proof March 2004 Charlotte NC OUG - CBO Tutorial April 2004 Iceland One-day tutorials: http://www.jlcomp.demon.co.uk/tutorial.html Three-day seminar: see http://www.jlcomp.demon.co.uk/seminar.html UK___February UK___June The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, January 30, 2004 12:19 AM Jonathan, about which version are you talking here? (You do also have the option in more recent versions of refining the caching properties so the LOB can be readcache only, writecache only or read/write cache or nocache, I believe). I haven't found a way to explicitly set read or write caching for LOBs in system level, although I've done some research on them lately (on 10g as well). Or are you talking about OCI LOB caching here? Tanel. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Lewis INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: [EMAIL PROTECTED] INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: Re: [Q] wait time /lob def
Hi! i apologize if someone posted this answer(i missed it if you did), but why do cached lobs require writes on the control file? NOCACHE NOLOGGING LOBs require writes to controlfile, because last nologging operation to a datafile has to be reflected somewhere, for being able to determine which files need to be backed up (since recovery information is not logged for nologging operations). Another option would be to use NOCACHE LOGGING operations, that way no controlfile updates are needed, but I do not recommend it, because NOCACHE LOGGING LOBs require the writing of the whole LOB segment block to redo, even if you modify just one byte in it. CACHE LOGGING is more efficient way in sense of redo generation, that way only changed bytes will be recorded. and jonathan said that isnt 'necessarily' bad. is that because there isnt alot of I/O? If you don't spend too much time waiting on these events, then yes it's not bad at all. so caching lobs are primarily useful for read only or read 'mostly' LOBs? They are useful in many cases, for write LOBs as well in some cases, but the problem is that they always generate redo, which might not be acceptable in high data load environments. IMO, if you can use a combination of disk array with write cache, asynch IO, LOB buffering in client side and write batching, then NOCACHE NOLOGGING LOBs can meet acceptable performance constraints and if you use CACHE READ NOLOGGING LOBs (which seem to be available even from 8.1.6), then your performance will be just fine. Of course, there is always cases with special requirements/contstraints, so YMMAFV (your mileage may, and will vary). Tanel. - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, January 30, 2004 2:49 PM From: Jonathan Lewis [EMAIL PROTECTED] Date: 2004/01/30 Fri AM 04:09:25 EST To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Subject: Re: [Q] wait time /lob def Tanel, Oracle 9-2 SQL Ref manual. Lob storage clause. The options for lobs on creation are: CACHE NO CACHE CACHE READS I don't think the last one appeared until 9.2 I was wrong about caching only writes, though - one of the joys of trying to quote everything from memory. The CACHE READS option means that the LOB goes into the buffer cache for reads, but not for writes. Pity, really, because I'd quite like to see it the other way around. Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The educated person is not the person who can answer the questions, but the person who can question the answers -- T. Schick Jr Next public appearances: Jan 29th 2004 UKOUG Unix SIG - v$ and x$ March 2004 Hotsos Symposium - The Burden of Proof March 2004 Charlotte NC OUG - CBO Tutorial April 2004 Iceland One-day tutorials: http://www.jlcomp.demon.co.uk/tutorial.html Three-day seminar: see http://www.jlcomp.demon.co.uk/seminar.html UK___February UK___June The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, January 30, 2004 12:19 AM Jonathan, about which version are you talking here? (You do also have the option in more recent versions of refining the caching properties so the LOB can be readcache only, writecache only or read/write cache or nocache, I believe). I haven't found a way to explicitly set read or write caching for LOBs in system level, although I've done some research on them lately (on 10g as well). Or are you talking about OCI LOB caching here? Tanel. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Lewis INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: [EMAIL PROTECTED] INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the
Re: SV: Date Format: Mystery
Friday, January 30, 2004, 2:24:25 AM, Jesper Haure Norrevang ([EMAIL PROTECTED]) wrote: JHN Certainly som conversion is going on here. This might be the reason why JHN there has been confusion about 7 or 8 bytes in a DATE datatype. That's really interesting, that switch between 7 and 8 bytes. Oracle's docs, I believe in the OCI manual, do show a seven-byte format. JHN To answer your question, it is possible to deal with fractions of seconds, JHN byt you need to use the TIMESTAMP datatype. The function SYSTIMESTAMP could JHN be useful. Be aware that Oracle supports 9 decimals, but not all hardware JHN platforms do. Related to this, just because a platform returns, say, six digits, does not mean it increments on that last digit. Instead of: 21.01 seconds 21.02 seconds ... The best your platform does might look like: 21.01 seconds 21.000801 seconds 21.001601 seconds ... I just made these numbers up, but hopefully they give the idea. I'm still curious about that seven versus eight byte thing with SYSDATE. Best regards, Jonathan Gennick --- Brighten the corner where you are http://Gennick.com * 906.387.1698 * mailto:[EMAIL PROTECTED] Join the Oracle-article list and receive one article on Oracle technologies per month by email. To join, visit http://four.pairlist.net/mailman/listinfo/oracle-article, or send email to [EMAIL PROTECTED] and include the word subscribe in either the subject or body. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Gennick INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a
Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Trigger question
Hallo, I would like to write the code to atrigger that makes insert into another table inly if there is the condition PREFERED_NUMBER = 1 and TELEPHONE_TYPE_ID in (1,2, 5) How can write this in a simple way? Thanks in advance. Roland -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
dba_jobs nls_env
How does dba_jobs decide what it's nls_env values are?. They seem to vary according to whether I queue the job from a windows client or from unix. John -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: John Dunn INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: SV: Date Format: Mystery
Hi, From Note: 69028.1 on Metalink The datatype returned is 13 and not 12, the external DATE datatype. This occurs because we rely on the TO_DATE function! External datatype 13 is an internal c-structure whose length varies depending on how the c-compiler represents the structure. Note that the Len= value is 8 and not 7. Type 13 is not a part of the published 3GL interfaces for Oracle and is used for date calculations mainly within PL/SQL operations. Note that the same result can be seen when DUMPing the value SYSDATE. Garry Gillies Database Administrator Business Systems Weir Pumps Ltd 149 Newlands Road, Cathcart, Glasgow, G44 4EX T: +44 0141 308 3982 F: +44 0141 633 1147 E: [EMAIL PROTECTED] Jonathan Gennick [EMAIL PROTECTED]To: Multiple recipients of list ORACLE-L .com [EMAIL PROTECTED] Sent by: cc: [EMAIL PROTECTED]Subject: Re: SV: Date Format: Mystery .com 30/01/04 13:44 Please respond to ORACLE-L Friday, January 30, 2004, 2:24:25 AM, Jesper Haure Norrevang ([EMAIL PROTECTED]) wrote: JHN Certainly som conversion is going on here. This might be the reason why JHN there has been confusion about 7 or 8 bytes in a DATE datatype. That's really interesting, that switch between 7 and 8 bytes. Oracle's docs, I believe in the OCI manual, do show a seven-byte format. JHN To answer your question, it is possible to deal with fractions of seconds, JHN byt you need to use the TIMESTAMP datatype. The function SYSTIMESTAMP could JHN be useful. Be aware that Oracle supports 9 decimals, but not all hardware JHN platforms do. Related to this, just because a platform returns, say, six digits, does not mean it increments on that last digit. Instead of: 21.01 seconds 21.02 seconds ... The best your platform does might look like: 21.01 seconds 21.000801 seconds 21.001601 seconds ... I just made these numbers up, but hopefully they give the idea. I'm still curious about that seven versus eight byte thing with SYSDATE. Best regards, Jonathan Gennick --- Brighten the corner where you are http://Gennick.com * 906.387.1698 * mailto:[EMAIL PROTECTED] Join the Oracle-article list and receive one article on Oracle technologies per month by email. To join, visit http://four.pairlist.net/mailman/listinfo/oracle-article, or send email to [EMAIL PROTECTED] and include the word subscribe in either the subject or body. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Gennick INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). CONFIDENTIAL: The information contained in this email (including any attachments) is confidential, subject to copyright and for the use of the intended recipient only. If you are not the intended recipient please delete this message after notifying the sender. Unauthorised retention, alteration or distribution of this email is forbidden and may be actionable. Attachments are opened at your own risk and you are advised to scan incoming email for viruses before opening any attached files. We give no guarantee that any communication is virus-free and accept no responsibility for virus contamination or other system loss or damage
Re: Trigger question
On 01/30/2004 09:29:26 AM, [EMAIL PROTECTED] wrote: Hallo, I would like to write the code to atrigger that makes insert into another table inly if there is the condition Oracle9i Application Developer's Guide - Fundamentals, Ch. 15. - Using Triggers. There are examples there, too. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a
Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
Dharminder, Changes the service to AutoStart when the machine reboots. As Thomas said, the NT service has to be running for you to be able to start the database. The service will stay running even if you shut the database down. Think of the service as a backgrouond placeholder for the database. It needs to be running for the database to run, but you can still shut the database down as normal and keep the background service running. hope this helps. Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 10:34 AM To: Multiple recipients of list ORACLE-L start a Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mercadante, Thomas F INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: [Fwd: ! READ THIS - Oracle-L@fatcity.com is shutting down as
Jared Still scribbled on the wall in glitter crayon: A repost of a previous message. This is the last day for this address folks. good-bye fatcity my old friend, won't get to talk to you again... -- Bill Shrek Thater ORACLE DBA I'm going to work my ticket if I can... -- Gilwell song [EMAIL PROTECTED] This planet has -- or rather had -- a problem, which was this: most of the people living on it were unhappy for pretty much of the time. Many solutions were suggested for this problem, but most of these were largely concerned with the movements of small green pieces of paper, which is odd because on the whole it wasn't the small green pieces of paper that were unhappy. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thater, William INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: [Fwd: ! READ THIS - Oracle-L@fatcity.com is shutting down as
last post(its kinda like first post on slashdot.org) joe Thater, William wrote: Jared Still scribbled on the wall in glitter crayon: A repost of a previous message. This is the last day for this address folks. good-bye fatcity my old friend, won't get to talk to you again... -- Bill Shrek Thater ORACLE DBA I'm going to work my ticket if I can... -- Gilwell song [EMAIL PROTECTED] This planet has -- or rather had -- a problem, which was this: most of the people living on it were unhappy for pretty much of the time. Many solutions were suggested for this problem, but most of these were largely concerned with the movements of small green pieces of paper, which is odd because on the whole it wasn't the small green pieces of paper that were unhappy. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joe Testa INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: [Fwd: ! READ THIS - Oracle-L@fatcity.com is shutting down as
So, is anyone posting on the new list? I believe that I'm subscribed there but I'm only getting fatcity posts. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: [Fwd: ! READ THIS - Oracle-L@fatcity.com is shutting down as
Jared, I think you should ask the maintainers of orafaq.com to update their information about oracle-l as well, it's the first hit in google when you search for oracle-l. Tanel. - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, January 30, 2004 5:44 PM Jared Still scribbled on the wall in glitter crayon: A repost of a previous message. This is the last day for this address folks. good-bye fatcity my old friend, won't get to talk to you again... -- Bill Shrek Thater ORACLE DBA I'm going to work my ticket if I can... -- Gilwell song [EMAIL PROTECTED] This planet has -- or rather had -- a problem, which was this: most of the people living on it were unhappy for pretty much of the time. Many solutions were suggested for this problem, but most of these were largely concerned with the movements of small green pieces of paper, which is odd because on the whole it wasn't the small green pieces of paper that were unhappy. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thater, William INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Changes to RULE based optimizer between Oracle8 and 9i
We move an application that uses OPTIMIZER_MODE=RULE from Oracle8 to 9i. Most of it is fine, but there are two queries that have a very different execution plan. In one case, the execution time increases from less than a minute to more than an hour. Neither query uses any of the new Oracle 9i features. My understanding is that the Rule optimizer code has not changed, except to account for new features like IOT's. Has anyone else seen this type of behavior? Keith MooreOracle Certified Professional972-431-5126[EMAIL PROTECTED] The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If the reader of this message is not the intended recipient, you are hereby notified that your access is unauthorized, and any review, dissemination, distribution or copying of this message including any attachments is strictly prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer.
RE: Changes to RULE based optimizer between Oracle8 and 9i
Title: Message Keith, To my knowledge, RBO has not changed. That includes NOT dealing w/ IOT. So, I think if you execute a query that references an IOT, you'll implicitly invoke the CBO. That would explain why the plan is changing. So, did you change a table from heap to IOT when you moved to 9i? If so, that's what's invoking CBO. -Mark PS fatcity is going away, use freelists.org! Mark J. Bobak Oracle DBA ProQuest Company Ann Arbor, MI "Imagination was given to man to compensate him for what he is not, and a sense of humor was provided to console him for what he is." --Horace Walpole -Original Message-From: Keith Moore [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 11:54 AMTo: Multiple recipients of list ORACLE-LSubject: Changes to RULE based optimizer between Oracle8 and 9i We move an application that uses OPTIMIZER_MODE=RULE from Oracle8 to 9i. Most of it is fine, but there are two queries that have a very different execution plan. In one case, the execution time increases from less than a minute to more than an hour. Neither query uses any of the new Oracle 9i features. My understanding is that the Rule optimizer code has not changed, except to account for new features like IOT's. Has anyone else seen this type of behavior? Keith MooreOracle Certified Professional972-431-5126[EMAIL PROTECTED]
Re: [Fwd: ! READ THIS - Oracle-L@fatcity.com is shutting down as
Thanks Tanel, Frank is on top of it already. Jared Tanel Poder [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/30/2004 08:24 AM Please respond to ORACLE-L To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED] cc: Subject:Re: [Fwd: ! READ THIS - [EMAIL PROTECTED] is shutting down as Jared, I think you should ask the maintainers of orafaq.com to update their information about oracle-l as well, it's the first hit in google when you search for oracle-l. Tanel. - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, January 30, 2004 5:44 PM Jared Still scribbled on the wall in glitter crayon: A repost of a previous message. This is the last day for this address folks. good-bye fatcity my old friend, won't get to talk to you again... -- Bill Shrek Thater ORACLE DBA I'm going to work my ticket if I can... -- Gilwell song [EMAIL PROTECTED] This planet has -- or rather had -- a problem, which was this: most of the people living on it were unhappy for pretty much of the time. Many solutions were suggested for this problem, but most of these were largely concerned with the movements of small green pieces of paper, which is odd because on the whole it wasn't the small green pieces of paper that were unhappy. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thater, William INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
The Windows service implements Oracle's VOS ( virtual OS ) This is not noticed on *versions, as there is no separate step. See James Morle's book 'Scaling Oracle 8i'. Jared Mercadante, Thomas F [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/30/2004 07:44 AM Please respond to ORACLE-L To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED] cc: Subject:RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star Dharminder, Changes the service to AutoStart when the machine reboots. As Thomas said, the NT service has to be running for you to be able to start the database. The service will stay running even if you shut the database down. Think of the service as a backgrouond placeholder for the database. It needs to be running for the database to run, but you can still shut the database down as normal and keep the background service running. hope this helps. Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 10:34 AM To: Multiple recipients of list ORACLE-L start a Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mercadante, Thomas F INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP
Re: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated ....
There is not enough memory to start a dedicated connection. sochange the server mode from dedicated to shared, (you can do it change some parameters in init_sid.ora file see oracle documentation). If you are going to change the server mode to shared and you have two databaseon the same machine, thenyou have toassign one listener port for each database. hope this helps Mauricio Vélez Oracle DBA Dharminder Softhome [EMAIL PROTECTED] wrote: Hey all,Following is the environment.Windows 2000Oracle Enterprise 9.2,OEM 9.2I have two 9.2 database installed on my system. OEM is configured properly.One of the database is in automatic startmode and this DB contains OEMrepository.I start the machine, open OEM, login to OEM and then try to start the otherdatabase, but it does not start the DB, instead I getORA-12500 Failed to start a dedicatedOEM doc says that with OEM, you can start/shutdown the database using OEM.Can someone point to me what I am doing wrong. I am using sysusername/password for the startup of the second database.Thanks.-- Please see the official ORACLE-L FAQ: http://www.orafaq.net-- Author: Dharminder SofthomeINET: [EMAIL PROTECTED]Fat City Network Services -- 858-538-5051 http://www.fatcity.comSan Diego, California -- Mailing list and web hosting services-To REMOVEE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: Changes to RULE based optimizer between Oracle8 and 9i
Logic says one thing, experience says another. Question one, are the tables analyzed? If so, since RBO is deprecated in 9i even setting OPTIMIZER_MODE=RULE will invoke the CBO. Dick GouletSenior Oracle DBAOracle Certified 8i DBA -Original Message-From: Keith Moore [mailto:[EMAIL PROTECTED]Sent: Friday, January 30, 2004 11:54 AMTo: Multiple recipients of list ORACLE-LSubject: Changes to RULE based optimizer between Oracle8 and 9i We move an application that uses OPTIMIZER_MODE=RULE from Oracle8 to 9i. Most of it is fine, but there are two queries that have a very different execution plan. In one case, the execution time increases from less than a minute to more than an hour. Neither query uses any of the new Oracle 9i features. My understanding is that the Rule optimizer code has not changed, except to account for new features like IOT's. Has anyone else seen this type of behavior? Keith MooreOracle Certified Professional972-431-5126[EMAIL PROTECTED]
** v$log.status
Hi, In view v$log there is a column status. This changes from current (if the redo log is in use) to atcive then to inactive. Documentation says : ACTIVE: The log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It might or might not be archived. INACTIVE: The log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived. So if it is in 'ACTIVE' status: it means it is needed for crash/instance recovery? So what does it mean? That changes in this log are still not written to data files? What else? Is this related to delayed block cleanout etcor no connection? What factor affects how long it will bein ACTIVE state before going to INACTIVE? What can be changed to control how long it takes. Any trade off? Any detailed explanation on this will begreatly appreciated. Youcan mail me direct or to the list. Thank you. Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Re: ** v$log.status
On 01/30/2004 01:24:26 PM, A Joshi wrote: Hi, In view v$log there is a column status. This changes from current (if the redo log is in use) to atcive then to inactive. Documentation says : ACTIVE: The log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It might or might not be archived. INACTIVE: The log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived. So if it is in 'ACTIVE' status : it means it is needed for crash/instance recovery? So what does it mean? That changes in this log are still not written to data files? What else? Is this related to delayed block cleanout etc or no connection? What factor affects how long it will be in ACTIVE state before going to INACTIVE? What can be changed to control how long it takes. Any trade off? Any detailed explanation on this will be greatly appreciated. You can mail me direct or to the list. Thank you. Status of active means that log has been switched, but not all of the changes are written to the disk. It is, essentially, saying that DBWR has some more work to do to catch up. The only log that is open by the instance is the one marked CURRENT. Here is an example: SQL select group#,status from v$log; GROUP# STATUS -- 1 CURRENT 2 INACTIVE 3 INACTIVE SQL alter system switch logfile; System altered. SQL select group#,status from v$log; GROUP# STATUS -- 1 ACTIVE 2 CURRENT 3 INACTIVE So, after the checkpoint, the CKPT has updated log file headers, corresponding markers and termination records are written to the file, data file headers have been updated and so has been the control file. DBWR still has some work to do because there are still unwritten blocks modified by transactions whose log records are in the ACTIVE file. DBWR will take its time to write them down. The only log file open by the instance is redo02: [EMAIL PROTECTED] root]# fuser /data/db/OraHome1/oradata/compldb/*.log /data/db/OraHome1/oradata/compldb/redo02.log: 6019 [EMAIL PROTECTED] root]# After another checkpoint, everyhing is back to normal: SQL alter system checkpoint 2 / System altered. SQL select group#,status from v$log; GROUP# STATUS -- 1 INACTIVE 2 CURRENT 3 INACTIVE -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated ....
Mauricio I do not think it is a memory issue because I can startup the database using Windows 2000 OracleServiceSID service and it does not fail. Thanks. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Mauricio VilezSent: Friday, January 30, 2004 12:39 PMTo: Multiple recipients of list ORACLE-LSubject: Re: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated There is not enough memory to start a dedicated connection. sochange the server mode from dedicated to shared, (you can do it change some parameters in init_sid.ora file see oracle documentation). If you are going to change the server mode to shared and you have two databaseon the same machine, thenyou have toassign one listener port for each database. hope this helps Mauricio Vilez Oracle DBA Dharminder Softhome [EMAIL PROTECTED] wrote: Hey all,Following is the environment.Windows 2000Oracle Enterprise 9.2,OEM 9.2I have two 9.2 database installed on my system. OEM is configured properly.One of the database is in automatic startmode and this DB contains OEMrepository.I start the machine, open OEM, login to OEM and then try to start the otherdatabase, but it does not start the DB, instead I getORA-12500 Failed to start a dedicatedOEM doc says that with OEM, you can start/shutdown the database using OEM.Can someone point to me what I am doing wrong. I am using sysusername/password for the startup of the second database.Thanks.-- Please see the official ORACLE-L FAQ: http://www.orafaq.net-- Author: Dharminder SofthomeINET: [EMAIL PROTECTED]Fat City Network Services -- 858-538-5051 http://www.fatcity.comSan Diego, California -- Mailing list and web hosting services-To REMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Do you Yahoo!?Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
Tom, As stated earlier, here the intention is to startup the database using OEM only and without using windows service. As for as I understand if the OracleServiceSID is properly setup and if startmode for the service is set to automatic then it will startup the database automatically once you boot the machine. Thanks. -Original Message- Mercadante, Thomas F Sent: Friday, January 30, 2004 10:44 AM To: Multiple recipients of list ORACLE-L star Dharminder, Changes the service to AutoStart when the machine reboots. As Thomas said, the NT service has to be running for you to be able to start the database. The service will stay running even if you shut the database down. Think of the service as a backgrouond placeholder for the database. It needs to be running for the database to run, but you can still shut the database down as normal and keep the background service running. hope this helps. Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 10:34 AM To: Multiple recipients of list ORACLE-L start a Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mercadante, Thomas F INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
That's true. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star Sent by: ml-errors 01/30/2004 02:19 PM Please respond to ORACLE-L Tom, As stated earlier, here the intention is to startup the database using OEM only and without using windows service. As for as I understand if the OracleServiceSID is properly setup and if startmode for the service is set to automatic then it will startup the database automatically once you boot the machine. Thanks. -Original Message- Mercadante, Thomas F Sent: Friday, January 30, 2004 10:44 AM To: Multiple recipients of list ORACLE-L star Dharminder, Changes the service to AutoStart when the machine reboots. As Thomas said, the NT service has to be running for you to be able to start the database. The service will stay running even if you shut the database down. Think of the service as a backgrouond placeholder for the database. It needs to be running for the database to run, but you can still shut the database down as normal and keep the background service running. hope this helps. Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 10:34 AM To: Multiple recipients of list ORACLE-L start a Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE
Re: ** v$log.status
There is a pretty good explanation in this usenet thread: http://groups.google.com/groups?hl=enlr=ie=UTF-8oe=UTF-8threadm=OoSWa.122%246d2.89%40newssvr22.news.prodigy.comrnum=1prev=/groups%3Fq%3Dv%2524log.status%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3DOoSWa.122%25246d2.89%2540newssvr22.news.prodigy.com%26rnum%3D1 Regards, Dave [EMAIL PROTECTED] wrote: Hi, In view v$log there is a column status. This changes from current (if the redo log is in use) to atcive then to inactive. Documentation says : # ACTIVE: The log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It might or might not be archived. # INACTIVE: The log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived. So if it is in 'ACTIVE' status : it means it is needed for crash/instance recovery? So what does it mean? That changes in this log are still not written to data files? What else? Is this related to delayed block cleanout etc or no connection? What factor affects how long it will be in ACTIVE state before going to INACTIVE? What can be changed to control how long it takes. Any trade off? Any detailed explanation on this will be greatly appreciated. You can mail me direct or to the list. Thank you. Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://us.rd.yahoo.com/evt=21608/*http://webhosting.yahoo.com/ps/sb/ -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: David Hau INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
Well, you can't. Windows is different from other systems in that you have these services that have to be running in the background. Once the services are running, you can use OEM to shutdown and startup the database. But the service has to be running first. Sorry. Have you looked at OEM Jobs? Maybe you can create an OEM job to start the service. The DOS command is: NET START OracleServiceSID and NET STOP OracleServiceSID Good Luck! Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 2:20 PM To: Multiple recipients of list ORACLE-L star Tom, As stated earlier, here the intention is to startup the database using OEM only and without using windows service. As for as I understand if the OracleServiceSID is properly setup and if startmode for the service is set to automatic then it will startup the database automatically once you boot the machine. Thanks. -Original Message- Mercadante, Thomas F Sent: Friday, January 30, 2004 10:44 AM To: Multiple recipients of list ORACLE-L star Dharminder, Changes the service to AutoStart when the machine reboots. As Thomas said, the NT service has to be running for you to be able to start the database. The service will stay running even if you shut the database down. Think of the service as a backgrouond placeholder for the database. It needs to be running for the database to run, but you can still shut the database down as normal and keep the background service running. hope this helps. Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 10:34 AM To: Multiple recipients of list ORACLE-L start a Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
Dharminder, OracleServiceSID starts the database automatically, because by default the registry key ORA_SID_AUTOSTART IN HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 is set to TRUE. If you don't want your OracleServiceSID to start the database automatically, change the value to FALSE. This way service will be still running, but you should be able to startup the database from OEM. Igor Neyman, OCP DBA [EMAIL PROTECTED] -Original Message- Dharminder Softhome Sent: Friday, January 30, 2004 2:20 PM To: Multiple recipients of list ORACLE-L star Tom, As stated earlier, here the intention is to startup the database using OEM only and without using windows service. As for as I understand if the OracleServiceSID is properly setup and if startmode for the service is set to automatic then it will startup the database automatically once you boot the machine. Thanks. -Original Message- Mercadante, Thomas F Sent: Friday, January 30, 2004 10:44 AM To: Multiple recipients of list ORACLE-L star Dharminder, Changes the service to AutoStart when the machine reboots. As Thomas said, the NT service has to be running for you to be able to start the database. The service will stay running even if you shut the database down. Think of the service as a backgrouond placeholder for the database. It needs to be running for the database to run, but you can still shut the database down as normal and keep the background service running. hope this helps. Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 10:34 AM To: Multiple recipients of list ORACLE-L start a Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing
Re: ** v$log.status
Mladen, Thanks for info. So all the dirty blocks need to be written to disk after eachcheckpoint. After that is donethe status becomes 'INACTIVE'. Just that sometimes this is very unpredictable. My question : Ifa log switch always causes a implicit checkpoint then what is the need for this explicit checkpoint to be given? Thank you.Mladen Gogala [EMAIL PROTECTED] wrote: On 01/30/2004 01:24:26 PM, A Joshi wrote: Hi, In view v$log there is a column status. This changes from current (if the redo log is in use) to atcive then to inactive. Documentation says : ACTIVE: The log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It might or might not be archived. INACTIVE: The log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived. So if it is in 'ACTIVE' status : it means it is needed for crash/instance recovery? So what does it mean? That changes in this log are still not written to data files? What else? Is this related to delayed block cleanout etc or no connection? What factor affects how long it will be in ACTIVE state before going to INACTIVE? What can be changed to control how long it takes. Any trade off? Any detailed explanation on this will be greatly appreciated. You can mail me direct or to the list. Thank you.Status of active means that log has been switched, but not all of the changes are written to the disk. It is, essentially, saying that DBWRhas some more work to do to catch up. The only log that is open by theinstance is the one marked "CURRENT". Here is an example:SQL select group#,status from v$log;GROUP# STATUS-- 1 CURRENT2 INACTIVE3 INACTIVESQL alter system switch logfile;System altered.SQL select group#,status from v$log;GROUP# STATUS-- 1 ACTIVE2 CURRENT3 INACTIVESo, after the check! point, the CKPT has updated log file headers, corresponding markers and termination records are written to the file,data file headers have been updated and so has been the control file.DBWR still has some work to do because there are still unwritten blocks modified by transactions whose log records are in the "ACTIVE"file. DBWR will take its time to write them down.The only log file open by the instance is redo02:[EMAIL PROTECTED] root]# fuser /data/db/OraHome1/oradata/compldb/*.log/data/db/OraHome1/oradata/compldb/redo02.log: 6019[EMAIL PROTECTED] root]#After another checkpoint, everyhing is back to normal:SQL alter system checkpoint2 /System altered.SQL select group#,status from v$log;GROUP# STATUS-- 1 INACTIVE2 CURRENT3 INACTIVE-- Please see the official ORACLE-L FAQ: http://www.orafaq.net-- Author: Mladen GogalaINET: [EMAIL PROTECTED]Fat City Network Services -- 858-538-5051 http://www.fatcity.comSan Diego, California -- Mailing list and web hosting services-To REMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
-Original Message- Igor Neyman OracleServiceSID starts the database automatically, because by default the registry key ORA_SID_AUTOSTART IN HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 is set to TRUE. If you don't want your OracleServiceSID to start the database automatically, change the value to FALSE. This way service will be still running, but you should be able to startup the database from OEM. Igor Neyman, OCP DBA [EMAIL PROTECTED] Are you sure about that? This is the way I thought it worked with Oracle 8.1 and 9.2 (I just tried it again today using Oracle 8.1.7 on Windows 2000) If in the services control panel the database service has Startup Type Automatic, then the registry entry you mention will have ORA_sid_AUTOSTART TRUE, and when the machine is rebooted, the service will start up AND the instance will be started up. If you want to startup the instance manually on system reboot, you should set the Startup Type for the service to Manual (either in the Services control panel or the registry). Then once the machine is rebooted, you can 1) go to the Services control panel and start the Service, which will start the service and the instance OR 2) At a command prompt type in set ORACLE_SID=instance_name oradim -startup -sid %ORACLE_SID% which will start the service and the instance OR 3) At a command prompt type in set ORACLE_SID=instance_name oradim -startup -sid %ORACLE_SID% -starttype srvc which will start the service, then oradim -startup -sid %ORACLE_SID% -starttype inst which will start the instance OR 4) At a command prompt type in set ORACLE_SID=instance_name oradim -startup -sid %ORACLE_SID% -starttype srvc which will start the service, then sqlplus /nolog connect sys/password as sysdba startup which will start the instance I personally use method 4. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jacques Kilchoer INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: ** v$log.status
David Hau explained this much better and in much more clear fashion then me. Here is the most important part from the usenet thread he was referring you to: ** This makes sense if you think about where the various v$ dynamic performance views get their info from, and which Oracle background process is responsible for each task. First, note that: 1. v$log.status gets its redo log info from the *control file* 2. v$datafile_header.checkpoint_change# and checkpoint_time get their info from the *datafile headers*. Here's the sequence of events when a log switch happens: 1. LGWR switches to the next redo log file, changes the status of the previous redo log file from CURRENT to ACTIVE in the control file, and signals DBWR to do a checkpoint on the previous redo log file. 2. When DBWR finishes with the checkpoint, it signals CKPT to update datafile headers and update checkpoint info (only) in the control file. This is the info read by v$datafile_header.checkpoint_change# and checkpoint_time. Note that CKPT does not update redo log info in the control file. It only deals with checkpoint info, as its name implies. 3. When CKPT is done, it signals LGWR to update the redo log status in the control file from ACTIVE to INACTIVE. This is the info read by v$log.status. This update task is a low priority item for LGWR because the only process that cares about whether the redo log status is active or not is LGWR itself. The redo log status tells LGWR whether it can reuse a redo log file or not (i.e. whether checkpoint has completed on that redo log file.) That is, by delaying this operation, LGWR is not blocking the work of any other process. LGWR will update the redo log status in the control file when any of these occurs (and others too, that I don't know of): 1. when LGWR periodically checks for compliance with the LOG_CHECKPOINT_TIMEOUT parameter, which says that the checkpoint position should not lag behind the latest redo record by this amount of time. 2. when you issue a alter system checkpoint which is what you did. So if you want the redo log status to be updated more quickly to inactive after a checkpoint, one way to do it is to decrease the value of LOG_CHECKPOINT_TIMEOUT in init.ora. Cheers, Dave ** On 01/30/2004 03:44:29 PM, A Joshi wrote: Mladen, Thanks for info. So all the dirty blocks need to be written to disk after each checkpoint. After that is done the status becomes 'INACTIVE'. Just that sometimes this is very unpredictable. My question : If a log switch always causes a implicit checkpoint then what is the need for this explicit checkpoint to be given? Thank you. Mladen Gogala [EMAIL PROTECTED] wrote: On 01/30/2004 01:24:26 PM, A Joshi wrote: Hi, In view v$log there is a column status. This changes from current (if the redo log is in use) to atcive then to inactive. Documentation says : ACTIVE: The log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It might or might not be archived. INACTIVE: The log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived. So if it is in 'ACTIVE' status : it means it is needed for crash/instance recovery? So what does it mean? That changes in this log are still not written to data files? What else? Is this related to delayed block cleanout etc or no connection? What factor affects how long it will be in ACTIVE state before going to INACTIVE? What can be changed to control how long it takes. Any trade off? Any detailed explanation on this will be greatly appreciated. You can mail me direct or to the list. Thank you. Status of active means that log has been switched, but not all of the changes are written to the disk. It is, essentially, saying that DBWR has some more work to do to catch up. The only log that is open by the instance is the one marked CURRENT. Here is an example: SQL select group#,status from v$log; GROUP# STATUS -- 1 CURRENT 2 INACTIVE 3 INACTIVE SQL alter system switch logfile; System altered. SQL select group#,status from v$log; GROUP# STATUS -- 1 ACTIVE 2 CURRENT 3 INACTIVE So, after the checkpoint, the CKPT has updated log file headers, corresponding markers and termination records are written to the file, data file headers have been updated and so has been the control file. DBWR still has some work to do because there are still unwritten blocks modified by transactions whose log records are in the ACTIVE file. DBWR will take its time to write them down. The only log file open by the instance is redo02: [EMAIL PROTECTED] root]# fuser /data/db/OraHome1/oradata/compldb/*.log /data/db/OraHome1/oradata/compldb/redo02.log: 6019 [EMAIL PROTECTED] root]# After
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
Igor, What you have mentioned is right i.e. if I set ORA_SID_AUTOSTART to FALSE for the database in question and set OraceServiceSID startmode to Automatic then as windows starts it starts the OracleSID service (or I should say background services needed for the database to run and I believe I need to study about this more), but not the database. And then from OEM now I can startup the database. My impression was that OEM should be able to do all these tasks itself. Thanks to all others who have replied as well. -Original Message- Igor Neyman Sent: Friday, January 30, 2004 3:04 PM To: Multiple recipients of list ORACLE-L star Dharminder, OracleServiceSID starts the database automatically, because by default the registry key ORA_SID_AUTOSTART IN HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 is set to TRUE. If you don't want your OracleServiceSID to start the database automatically, change the value to FALSE. This way service will be still running, but you should be able to startup the database from OEM. Igor Neyman, OCP DBA [EMAIL PROTECTED] -Original Message- Dharminder Softhome Sent: Friday, January 30, 2004 2:20 PM To: Multiple recipients of list ORACLE-L star Tom, As stated earlier, here the intention is to startup the database using OEM only and without using windows service. As for as I understand if the OracleServiceSID is properly setup and if startmode for the service is set to automatic then it will startup the database automatically once you boot the machine. Thanks. -Original Message- Mercadante, Thomas F Sent: Friday, January 30, 2004 10:44 AM To: Multiple recipients of list ORACLE-L star Dharminder, Changes the service to AutoStart when the machine reboots. As Thomas said, the NT service has to be running for you to be able to start the database. The service will stay running even if you shut the database down. Think of the service as a backgrouond placeholder for the database. It needs to be running for the database to run, but you can still shut the database down as normal and keep the background service running. hope this helps. Tom Mercadante Oracle Certified Professional -Original Message- Sent: Friday, January 30, 2004 10:34 AM To: Multiple recipients of list ORACLE-L start a Thomas, That is the real problem. I can start the database using Windows 2000 OracleServiceSID. But I want to start up the database using OEM only. Thanks. -Original Message- Thomas Day Sent: Friday, January 30, 2004 9:19 AM To: Multiple recipients of list ORACLE-L start a Go to the SERVICES and start the service. Dharminder SofthomeTo: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] dharminder cc: @softhome.net Subject: Starting Database from OEM 9.2 gives ORA-12500 Failed to start a dedicated Sent by: ml-errors 01/29/2004 06:14 PM Please respond to ORACLE-L Hey all, Following is the environment. Windows 2000 Oracle Enterprise 9.2, OEM 9.2 I have two 9.2 database installed on my system. OEM is configured properly. One of the database is in automatic startmode and this DB contains OEM repository. I start the machine, open OEM, login to OEM and then try to start the other database, but it does not start the DB, instead I get ORA-12500 Failed to start a dedicated OEM doc says that with OEM, you can start/shutdown the database using OEM. Can someone point to me what I am doing wrong. I am using sys username/password for the startup of the second database. Thanks. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Dharminder Softhome INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you
RE: Starting Database from OEM 9.2 gives ORA-12500 Failed to star
Yes, I'm sure. If in the services control panel you change OracleServiceSID starup properties, it does not affect ORA_SID_AUTOSTART key in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 (and does not change the way the database is started when the service is started). What it does, it changes the value of Start key in HKEY_LOCAL_MACHINE\CurrentControlSet\Services\OracleServiceSID (and the way service is started when the machine is rebooted - Automatic/Manual). So, if you have Start key in HKEY_LOCAL_MACHINE\CurrentControlSet\Services\OracleServiceSID set to 2 (which means automatic) and you have ORA_SID_AUTOSTART key in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 set to FALSE, then on reboot OracleServiceSID will start automatically, but the database will not startup. So, then (whenever you ready) you can do: set oracle_sid=instance_name sqlplus /nolog connect sys/password as sysdba startup which will startup the database. Igor Neyman, OCP DBA [EMAIL PROTECTED] -Original Message- Jacques Kilchoer Sent: Friday, January 30, 2004 4:04 PM To: Multiple recipients of list ORACLE-L star -Original Message- Igor Neyman OracleServiceSID starts the database automatically, because by default the registry key ORA_SID_AUTOSTART IN HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 is set to TRUE. If you don't want your OracleServiceSID to start the database automatically, change the value to FALSE. This way service will be still running, but you should be able to startup the database from OEM. Igor Neyman, OCP DBA [EMAIL PROTECTED] Are you sure about that? This is the way I thought it worked with Oracle 8.1 and 9.2 (I just tried it again today using Oracle 8.1.7 on Windows 2000) If in the services control panel the database service has Startup Type Automatic, then the registry entry you mention will have ORA_sid_AUTOSTART TRUE, and when the machine is rebooted, the service will start up AND the instance will be started up. If you want to startup the instance manually on system reboot, you should set the Startup Type for the service to Manual (either in the Services control panel or the registry). Then once the machine is rebooted, you can 1) go to the Services control panel and start the Service, which will start the service and the instance OR 2) At a command prompt type in set ORACLE_SID=instance_name oradim -startup -sid %ORACLE_SID% which will start the service and the instance OR 3) At a command prompt type in set ORACLE_SID=instance_name oradim -startup -sid %ORACLE_SID% -starttype srvc which will start the service, then oradim -startup -sid %ORACLE_SID% -starttype inst which will start the instance OR 4) At a command prompt type in set ORACLE_SID=instance_name oradim -startup -sid %ORACLE_SID% -starttype srvc which will start the service, then sqlplus /nolog connect sys/password as sysdba startup which will start the instance I personally use method 4. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jacques Kilchoer INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Igor Neyman INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: ** v$log.status
Thanks Mladen and David It is great to get such detailed info. If we take your example of three redo logs then you could have a situation where one is is 'CURRENT' status and two are in 'ACTIVE' status. As follows : GROUP# STATUS-- 1 ACTIVE2 CURRENT3 ACTIVE Now if group 2 ('CURRENT') fills up or if 'alter system switch logfile' command is given then it will try to go to the next one. Since the next one (in fact both) is 'ACTIVE' it cannot be allocated and made current.Right?So in that case will the database hang?Will it wait for the next sequenceredo log which is group 3 to get 'INACTIVE' or will itallocate group 1 if it becomes 'INACTIVE' before group 3. Basically given limited space is it advisable to have many smaller redo log groups instead of Oracle suggested bigger redo logs which switch once an hour. I agree it is unlikely and might as well just get extra space but the point is to put in the best possible setup and be ready for crazy activityinstead of just going by the 'thumb rule' of having one log switch per hour. Thank youagain Mladen Gogala [EMAIL PROTECTED] wrote: David Hau explained this much better and in much more clearfashion then me. Here is the most important part from the usenetthread he was referring you to:**This makes sense if you think about where the various v$ dynamic performanceviews get their info from, and which Oracle background process isresponsible for each task. First, note that:1. v$log.status gets its redo log info from the *control file*2. v$datafile_header.checkpoint_change# and checkpoint_time get their infofrom the *datafile headers*.Here's the sequence of events when a log switch happens:1. LGWR switches to the next redo log file, changes the status of theprevious redo log file from CURRENT to ACTIVE in the control file, andsignals DBWR to do a checkpoint on the previous ! redo log file.2. When DBWR finishes with the checkpoint, it signals CKPT to updatedatafile headers and update checkpoint info (only) in the control file.This is the info read by v$datafile_header.checkpoint_change# andcheckpoint_time. Note that CKPT does not update redo log info in thecontrol file. It only deals with checkpoint info, as its name implies.3. When CKPT is done, it signals LGWR to update the redo log status in thecontrol file from ACTIVE to INACTIVE. This is the info read byv$log.status. This update task is a low priority item for LGWR because theonly process that cares about whether the redo log status is active or notis LGWR itself. The redo log status tells LGWR whether it can reuse a redolog file or not (i.e. whether checkpoint has completed on that redo logfile.) That is, by delaying this operation, LGWR is not blocking the workof any other process.LGWR will update the redo log status i! n the control file when any of theseoccurs (and others too, that I don't know of):1. when LGWR periodically checks for compliance with theLOG_CHECKPOINT_TIMEOUT parameter, which says that the checkpoint positionshould not lag behind the latest redo record by this amount of time.2. when you issue a "alter system checkpoint" which is what you did.So if you want the redo log status to be updated more quickly to inactiveafter a checkpoint, one way to do it is to decrease the value ofLOG_CHECKPOINT_TIMEOUT in init.ora.Cheers,Dave**On 01/30/2004 03:44:29 PM, A Joshi wrote: Mladen, Thanks for info. So all the dirty blocks need to be written to disk after each checkpoint. After that is done the status becomes 'INACTIVE'. Just that sometimes this is very unpredictable. My question : If a log switch alway! s causes a implicit checkpoint then what is the need for this explicit checkpoint to be given? Thank you. Mladen Gogala <[EMAIL PROTECTED]>wrote: On 01/30/2004 01:24:26 PM, A Joshi wrote: Hi, In view v$log there is a column status. This changes from current (if the redo log is in use) to atcive then to inactive. Documentation says :ACTIVE: The log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It might or might not be archived. INACTIVE: The log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived. So if it is in 'ACTIVE' status : it means it is needed for crash/instance recover! y? So what does it mean? That changes in this log are still not written to data files? What else? Is this related to delayed block cleanout etc or no connection? What factor affects how long it will be in ACTIVE state before going to INACTIVE? What can be changed to control how long it takes. Any trade off? Any detailed explanation on this will be greatly appreciated. You can mail me direct or to the list. Thank you. Status of active means that log has been switched, but not all of the changes are
UTL_FILE question
Hello, Ihave a procedure that open a cursor anddumps some data for last 24 monthsto a file. The date range is static condition definedinside the cursor. Procedure is working great, but Iwhat I'm havingproblemfiguring outisif there is a way to create not one file with all the data, but multiple files with monthly sets of data. This way data formonth1 is created as filename_012002.txt and so forth. Thanks much! Viktor Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Bye...
bye...
Re: Bye...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 last post [EMAIL PROTECTED] wrote: | | bye... - -- Joseph S Testa Chief Technology Officer Data Management Consulting 614-791-9000 It's all about the CACHE -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAGwhjR8fSap71V7YRAr2kAJ9mCheNbKDgqaxYv+PwCZfOwfUj6wCgkTco Ekwzd7uVojMNOewaxJ6k0dU= =+8Vo -END PGP SIGNATURE- -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joe Testa INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Bye...
NOO!! -Original Message- Sent: Friday, January 30, 2004 7:44 PM To: Multiple recipients of list ORACLE-L -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 last post [EMAIL PROTECTED] wrote: | | bye... - -- Joseph S Testa Chief Technology Officer Data Management Consulting 614-791-9000 It's all about the CACHE -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAGwhjR8fSap71V7YRAr2kAJ9mCheNbKDgqaxYv+PwCZfOwfUj6wCgkTco Ekwzd7uVojMNOewaxJ6k0dU= =+8Vo -END PGP SIGNATURE- -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joe Testa INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Chris Stephens INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Bye...
It's the end of an era. How long was the list hosted here? -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jacques Kilchoer INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
ORA-01722 invalid number
I am running a query: select from WHERE COMPANY=2000 AND LOCATION='CDJ01' AND ITEMLOC.ACTIVE_STATUS='A' AND POVAGRMTLN.PROCURE_GROUP='SMAR' AND RTRIM(LTRIM(POVAGRMTLN.VEN_AGRMT_REF)) = 'COM1-21-LARROC NANCY' AND RTRIM(LTRIM(POVAGRMTLN.VENDOR))='21' and in the next part of the where I got this error:ORA-01722 invalid number AND RTRIM(LTRIM(POVAGRMTLN.VEN_AGRMT_REF)) = 'COM1-21-LARROC NANCY' If I write 'COM-21-LARROC NANCY' the error dissapear, I don't have any clue why this happen, I read about this error but the help don't seem to fit on this case. The POVAGRMTLN.VEN_AGRMT_REF field is char(30). ORA-01722 invalid number Cause: The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal. Only numeric fields or character fields containing numeric data may be used in arithmetic functions or expressions. Only numeric fields may be added to or subtracted from dates. Action: Check the character strings in the function or _expression_. Check that they contain only numbers, a sign, a decimal point, and the character "E" or "e" and retry the operation.
Re: ** v$log.status
LGWR will always write to the redo-logs in a round-robin fashion. So, on completing Group2, it would wait for Group3 to be INACTIVE. {One exception is when you ADD a new Log Group. If you added a new log file without specifying a Group#, it would be allocated Group#4, would be set to status UNUSED and would get used before Group3 if LGWR is still currently in Group2} In terms of disk space many smaller log groups is the same requirement as few large log group. Larger log groups are preferred by many DBAs so as to reduce the frequency of the Log Switch Checkpoint. {provided, of course, that LOG_CHECKPOINT_INTERVAL is set to higher than the size of the log files}. In scenarios where you have Standby Database and wish to propagate Archive Logs frequently to the Standby Site, you would have to accept frequent Log Switches {however, this does not mean that the Log Files have to be small, they could still be large} Hemant At 03:59 PM 30-01-04 -0800, you wrote: Thanks Mladen and David It is great to get such detailed info. If we take your example of three redo logs then you could have a situation where one is is 'CURRENT' status and two are in 'ACTIVE' status. As follows : GROUP# STATUS -- 1 ACTIVE 2 CURRENT 3 ACTIVE Now if group 2 ('CURRENT') fills up or if 'alter system switch logfile' command is given then it will try to go to the next one. Since the next one (in fact both) is 'ACTIVE' it cannot be allocated and made current. Right? So in that case will the database hang? Will it wait for the next sequence redo log which is group 3 to get 'INACTIVE' or will it allocate group 1 if it becomes 'INACTIVE' before group 3. Basically given limited space is it advisable to have many smaller redo log groups instead of Oracle suggested bigger redo logs which switch once an hour. I agree it is unlikely and might as well just get extra space but the point is to put in the best possible setup and be ready for crazy activity instead of just going by the 'thumb rule' of having one log switch per hour. Thank you again Mladen Gogala [EMAIL PROTECTED] wrote: David Hau explained this much better and in much more clear fashion then me. Here is the most important part from the usenet thread he was referring you to: ** This makes sense if you think about where the various v$ dynamic performance views get their info from, and which Oracle background process is responsible for each task. First, note that: 1. v$log.status gets its redo log info from the *control file* 2. v$datafile_header.checkpoint_change# and checkpoint_time get their info from the *datafile headers*. Here's the sequence of events when a log switch happens: 1. LGWR switches to the next redo log file, changes the status of the previous redo log file from CURRENT to ACTIVE in the control file, and signals DBWR to do a checkpoint on the previous ! redo log file. 2. When DBWR finishes with the checkpoint, it signals CKPT to update datafile headers and update checkpoint info (only) in the control file. This is the info read by v$datafile_header.checkpoint_change# and checkpoint_time. Note that CKPT does not update redo log info in the control file. It only deals with checkpoint info, as its name implies. 3. When CKPT is done, it signals LGWR to update the redo log status in the control file from ACTIVE to INACTIVE. This is the info read by v$log.status. This update task is a low priority item for LGWR because the only process that cares about whether the redo log status is active or not is LGWR itself. The redo log status tells LGWR whether it can reuse a redo log file or not (i.e. whether checkpoint has completed on that redo log file.) That is, by delaying this operation, LGWR is not blocking the work of any other process. LGWR will update the redo log status i! n the control file when any of these occurs (and others too, that I don't know of): 1. when LGWR periodically checks for compliance with the LOG_CHECKPOINT_TIMEOUT parameter, which says that the checkpoint position should not lag behind the latest redo record by this amount of time. 2. when you issue a alter system checkpoint which is what you did. So if you want the redo log status to be updated more quickly to inactive after a checkpoint, one way to do it is to decrease the value of LOG_CHECKPOINT_TIMEOUT in init.ora. Cheers, Dave ** On 01/30/2004 03:44:29 PM, A Joshi wrote: Mladen, Thanks for info. So all the dirty blocks need to be written to disk after each checkpoint. After that is done the status becomes 'INACTIVE'. Just that sometimes this is very unpredictable. My question : If a log switch alway! s causes a implicit checkpoint then what is the need for this explicit checkpoint to be given? Thank you. Mladen Gogala wrote: On 01/30/2004 01:24:26 PM, A Joshi wrote: Hi, In view v$log there is a
RE: Bye...
Re: ORA-01722 invalid number
My guess would be that company is not a number but because you do compare it to a number company=2000 Oracle does an implicit conversion to_number(company)=2000 and that fails when it hits a row where company is not numeric. If my guess is right try company='2000' At 07:59 PM 1/30/2004, you wrote: I am running a query: select from WHERE COMPANY=2000 AND LOCATION='CDJ01' AND ITEMLOC.ACTIVE_STATUS='A' AND POVAGRMTLN.PROCURE_GROUP='SMAR' AND RTRIM(LTRIM(POVAGRMTLN.VEN_AGRMT_REF)) = 'COM1-21-LARROC NANCY' AND RTRIM(LTRIM(POVAGRMTLN.VENDOR))='21' and in the next part of the where I got this error:ORA-01722 invalid number AND RTRIM(LTRIM(POVAGRMTLN.VEN_AGRMT_REF)) = 'COM1-21-LARROC NANCY' If I write 'COM-21-LARROC NANCY' the error dissapear, I don't have any clue why this happen, I read about this error but the help don't seem to fit on this case. The POVAGRMTLN.VEN_AGRMT_REF field is char(30). ORA-01722 invalid number Cause: The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal. Only numeric fields or character fields containing numeric data may be used in arithmetic functions or expressions. Only numeric fields may be added to or subtracted from dates. Action: Check the character strings in the function or expression. Check that they contain only numbers, a sign, a decimal point, and the character E or e and retry the operation. Wolfgang Breitling Oracle7, 8, 8i, 9i OCP DBA Centrex Consulting Corporation http://www.centrexcc.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Wolfgang Breitling INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: ORA-01722 invalid number
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 last post Wolfgang Breitling wrote: | My guess would be that company is not a number but because you do | compare it to a number company=2000 Oracle does an implicit | conversion to_number(company)=2000 and that fails when it hits a | row where company is not numeric. | If my guess is right try company='2000' | | At 07:59 PM 1/30/2004, you wrote: | | I am running a query: | select | from | WHERE COMPANY=2000 AND | LOCATION='CDJ01' AND ITEMLOC.ACTIVE_STATUS='A' AND | POVAGRMTLN.PROCURE_GROUP='SMAR' | AND RTRIM(LTRIM(POVAGRMTLN.VEN_AGRMT_REF)) = 'COM1-21-LARROC NANCY' | AND RTRIM(LTRIM(POVAGRMTLN.VENDOR))='21' | | and in the next part of the where I got this error:ORA-01722 | invalid number | | AND RTRIM(LTRIM(POVAGRMTLN.VEN_AGRMT_REF)) = 'COM1-21-LARROC NANCY' | | If I write 'COM-21-LARROC NANCY' the error dissapear, I don't have | any clue why this happen, I read about this error but the help | don't seem to fit on this case. | The POVAGRMTLN.VEN_AGRMT_REF field is char(30). | | ORA-01722 invalid number | | Cause: The attempted conversion of a character string to a number | failed because the character string was not a valid numeric | literal. Only numeric fields or character fields containing numeric | data may be used in arithmetic functions or expressions. Only | numeric fields may be added to or subtracted from dates. | | Action: Check the character strings in the function or expression. | Check that they contain only numbers, a sign, a decimal point, and | the character E or e and retry the operation. | | | Wolfgang Breitling | Oracle7, 8, 8i, 9i OCP DBA | Centrex Consulting Corporation | http://www.centrexcc.com - -- Joseph S Testa Chief Technology Officer Data Management Consulting 614-791-9000 It's all about the CACHE -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAGyRxR8fSap71V7YRApzzAKCoA6lzRXR7hCWkZmSA0RW+DXvg/QCeNQPK WQEp4pYfX7j7JxYW8RMbeN8= =kTiZ -END PGP SIGNATURE- -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joe Testa INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Bye...
drop list ORACLE-[EMAIL PROTECTED] \rm r FATCITY bye -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, January 30, 2004 5:24 PM To: Multiple recipients of list ORACLE-L Subject: Bye... bye...