RE: partitioning questions

2002-11-22 Thread Viral Desai

MyViews below...
Regards, Viral
Scenario: 

Range-Partition tableA on a service_date field by year; Range-Partition tableB on a posted_date field by year; 

These tables are frequently joined using a separate field called charge_id, a surrogate key. 

Queries against these tables usually include some sort of date filter, join on the charge_id field, and are done in parallel. 
1) Would this configuration promote the use of partition-wise joins between tableA and tableB by the optimizer? -- NO, they have to be equi-partitioned and you have to specify atleast the leading keys in the join for both tables.

2) Would it be better to partition the tables (either range or hash) by the join field, charge_id? 
-- SEEMS like a good choice since you always limit your query on charge_id, however data distribution in that column also plays a role.
  3) If we range-partition by date, subpartition by hash (charge_id), would queries that do not reference the date field, but do jointhe tables by charge_id still benefit? 
- Dont think that would help. However, you could have a global index on charge_id on both tables. If you insist topartition the data as mentioned in #3, then for the benefit of your queries you may want the exclusive globalindex on charge_id. (As there are pros, there are cons for this too)
Again depending on the type of the data contents/value of the columns, you could have 2 bitmap indexes (one on the date and another on charge_id, but this is not always advisable)



4) Is it more expensive, less expensive, or about equal to do a full table scan on a partitioned table vs the same table non-partitioned? -- I think it is same as non-partioned tables.


From: "Gogala, Mladen" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Subject: RE: partitioning questions 
Date: Fri, 22 Nov 2002 08:08:55 -0800 
 
That was not a good buy. Partitioning comes with Oracle 9, partitioning 
option is no longer sold separately. 
 
  -Original Message- 
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, November 22, 2002 8:44 AM 
  To: Multiple recipients of list ORACLE-L 
  Subject: partitioning questions 
  
  
  
  Hello, 
  
  We are planning to move to Oracle 9.2 on as-yet-undecided platform 
  (probably red hat linux on ibm hardware). 
  
  We finally pursuaded management to purchase the partitioning 
  license, and I have some questions on partitioning: 
  
  Scenario: 
  Range-Partition tableA on a service_date field by year; 
  Range-Partition tableB on a posted_date field by year; 
  These tables are frequently joined using a separate field 
  called charge_id, a surrogate key. 
  
  Queries against these tables usually include some sort of 
  date filter, join on the charge_id field, and are done in parallel. 
  
  1) Would this configuration promote the use of partition-wise 
  joins between tableA and tableB by the optimizer? 
  2) Would it be better to partition the tables (either range or hash) 
  by the join field, charge_id? 
  3) If we range-partition by date, subpartition by hash (charge_id), 
  would queries that do not reference the date field, but do join 
  the tables by charge_id still benefit? 
  4) Is it more expensive, less expensive, or about equal to do a 
  full table scan on a partitioned table vs the same table 
  non-partitioned? 
  
  As always, thanks to any responders. 
  [EMAIL PROTECTED] 
  
  -- 
  Please see the official ORACLE-L FAQ: http://www.orafaq.com 
  -- 
  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). 
  
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Gogala, Mladen 
 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). 
MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 months FREE*.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  INET: [EMAIL PROTECTED]

Fat City Network 

Re: Oracle is a time machine!!

2002-11-22 Thread Viral Desai

I think this is because during this time Pope Gregory removed 10 days from the calendar to align with solar calendar...
check this out...
http://webexhibits.org/calendars/timeline.html


From: "Freeman, Robert" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Subject: Oracle is a time machine!! 
Date: Fri, 22 Nov 2002 09:55:21 -0800 
 
Don't believe me?? Try this: 
 
create table test(the_date date); 
 
insert into test values (to_date('10-05-1582','mm-dd-') ); 
 
select to_char(the_date, 'mm/dd/') from test; 
 
What do you get? :-)) 
 
Robert G. Freeman - Oracle OCP 
Oracle Database Architect 
CSX Midtier Database Administration 
Author of several Oracle books you can find on Amazon.com! 
 
Londo Mollari: Ah, arrogance and stupidity all in the same package. How 
efficient of you. 
 
 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Freeman, Robert 
 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). 
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  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: More question about TEMP

2002-11-08 Thread Viral Desai
Ron,

Data files in this case would be visible in dba_temp_files
The object will exist after the session has ended but it will release any space if the session created rows in that object. In other words as you create more rows, it will allocate extents, as soon as your session ends it will release those temp extents, it will still have some space allocated to it since the definition of the table will remain in the schema.
You can verify space allocation/deallocation using v$sort_usage dynamic view.
Regards,
Viral


From: "Ron Rogers" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Subject: More question about TEMP 
Date: Fri, 08 Nov 2002 07:33:34 -0800 
 
List, 
Sorry for the confusion. 
 As the DBA I "grant create session to rrogers" and "grant create 
table to rrogers" 
As rrogers I 
"create temporary tablespace fubar 
tempfile '/data4/ror.dbf 'size 10M 
extent management local uniform size 128k;" 
 
The tablespace gets created and is visable by the DBA with 
"Select * from dba_tablespaces where tablespace_name 'FUBAR';" 
The datafile is NOT visable in the dba_data_files view. 
 
As rrogers I create a table 
"Create global temporary table testror( 
col1 char(1000));" 
 The table is visable to the DBA as 
select * from dba_tables where owner ='RROGERS'; 
and desc rrogers.testror. 
 
As rrogers I exit the system and the table is still visable to the DBA. 
The manual says that the "temporary tablespace"fubar is an allocation 
of space that can contain schema objects for the duration of the 
session" If this is so then why is the table still there.??? 
I think that the manual should read that the object created can contain 
data only for the duration of the session Or something to the same 
effect as the objects still exist after the session has ended. 
Am I correct in my tests? 
Ron 
 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Ron Rogers 
 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). 
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  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: Changing column format

2002-11-07 Thread Viral Desai


David
Try this...
alter table tablename drop primary key;
alter table tablename add constraint tbl_pkey primary key (username );
Viral

From: "Nguyen, David M" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Subject: Changing column format 
Date: Thu, 07 Nov 2002 12:33:39 -0800 
 
I create a table to store user account information and set "userid" column 
to be primary key. I now want to set "username" to be primary key instead 
of "userid", how do I change it? There are couple hundreds of records in 
table. Please advise. 
 
Thanks, 
David 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Nguyen, David M 
 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). 
The new MSN 8: smart spam protection and 2 months FREE* 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  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: count(*)

2002-09-20 Thread Viral Desai
 or something
similar).

Actually this app is being ported from Informix. Informix can somehow keep 
a
trak of the count(*) of a  table in its header somewhere.

And yes I have tries count(1) , count(indexed_column) etc.


Thanks In Advance.

R.h
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: DENNIS WILLIAMS
   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.com
--
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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Naveen Nahata
   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.com
--
Author: DENNIS WILLIAMS
   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).




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  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: How to load text file into database table

2002-09-20 Thread Viral Desai

Oracle sql*loader has many many features...at two of them are applicable in 
your specific case.

You could use CONCATENATE or CONTINUEIF clauses of control file. These 
clauses help you wherever you have multiple physical records form one 
logical record.

Cheers
Viral Desai.



From: DENNIS WILLIAMS [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: How to load text file into database table
Date: Fri, 20 Sep 2002 08:53:34 -0800

David - If the file is in just the format you show, my first impulse would
be to use the perl script language to get it into a form that sqlldr could
easily read. Perl is available on all platforms, including Windows. If you
get ambitious, Perl can even directly insert the values into Oracle. Jared
Still, the manager of this list has just published a book on that aspect.

http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=0E2CIPD0W
9isbn=0596002106

 
Dennis Williams
DBA
Lifetouch, Inc.
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


-Original Message-
Sent: Friday, September 20, 2002 10:54 AM
To: Multiple recipients of list ORACLE-L


I have a text file and need to load it into database table using sqlldr
utility.  Is there a way to load a text file? I know how to load csv file
but not text file.

*** Below is text file format.

Date: Wed Aug 29 10:43:53 CDT 2001
Name: Paris By Night
Email: [EMAIL PROTECTED]
Phone: 202-333-
Location: Washington, DC
Equipment needing to access: EMS, , , , ,
Reason: Not working

I want to above data into useraccount table which has following columns.

date
username
email
phone
location
equipment
reason

Thanks in advance,
David

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Nguyen, David M
   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.com
--
Author: DENNIS WILLIAMS
   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).




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  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: How to load text file into database table

2002-09-20 Thread Viral Desai

Dennis,

Absolutely, I agree. Perl is very handy and easy to learn..., You could use 
awk also on unix, pretty nifty stuff...

To answer to your situation where the REASON line could be more than 
one/two/three or n lines- Yes, you could use CONTINUEIF.

It provides a comparison operators (= and !=) in each physical line to look 
for certain tokens in certain positions. You can look/peek at current, 
previous or next physical lines before deciding break of lof=gical record, 
while loading Pretty cool stuff.

I think you can load any free-format as long as you can define logical 
record by some rule. Again, not to discount your suggestion, there are many 
ways, I just thought passing my idea.

Cheers,
Viral.


From: DENNIS WILLIAMS [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: How to load text file into database table
Date: Fri, 20 Sep 2002 12:05:43 -0800

Viral - I'm glad that someone a lot more familiar than I with SQL*Loader
replied, and hopefully that will handle David's problem. I'm just curious
about one thing, having encountered this sort of thing before. Can
SQL*Loader handle the situation where some lines may not be present? For
example, suppose the REASON line is sometimes two or three lines. When I've
had situations like this, I've often seen a variable number of lines. That
is why I suggested Perl, which can easily handle this sort of thing. Of
course, Perl is so handy that I think every DBA should learn it, for tasks
just like this.

 
Dennis Williams
DBA
Lifetouch, Inc.
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


-Original Message-
Sent: Friday, September 20, 2002 2:44 PM
To: Multiple recipients of list ORACLE-L


Oracle sql*loader has many many features...at two of them are applicable in
your specific case.

You could use CONCATENATE or CONTINUEIF clauses of control file. These
clauses help you wherever you have multiple physical records form one
logical record.

Cheers
Viral Desai.



 From: DENNIS WILLIAMS [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Subject: RE: How to load text file into database table
 Date: Fri, 20 Sep 2002 08:53:34 -0800
 
 David - If the file is in just the format you show, my first impulse 
would
 be to use the perl script language to get it into a form that sqlldr 
could
 easily read. Perl is available on all platforms, including Windows. If 
you
 get ambitious, Perl can even directly insert the values into Oracle. 
Jared
 Still, the manager of this list has just published a book on that aspect.
 
 http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=0E2CIPD0
W
 9isbn=0596002106
 
  
 Dennis Williams
 DBA
 Lifetouch, Inc.
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
 
 -Original Message-
 Sent: Friday, September 20, 2002 10:54 AM
 To: Multiple recipients of list ORACLE-L
 
 
 I have a text file and need to load it into database table using sqlldr
 utility.  Is there a way to load a text file? I know how to load csv file
 but not text file.
 
 *** Below is text file format.
 
 Date: Wed Aug 29 10:43:53 CDT 2001
 Name: Paris By Night
 Email: [EMAIL PROTECTED]
 Phone: 202-333-
 Location: Washington, DC
 Equipment needing to access: EMS, , , , ,
 Reason: Not working
 
 I want to above data into useraccount table which has following columns.
 
 date
 username
 email
 phone
 location
 equipment
 reason
 
 Thanks in advance,
 David
 
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Nguyen, David M
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.com
 --
 Author: DENNIS WILLIAMS
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).




_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com

RE: Lost ofall redo logs

2002-09-19 Thread Viral Desai

This is very rare that one would loose every online log files for the 
instance.

Hey, I don't think the advice here could be bad, it is the discretion of the 
user who is going to use it.

KG and/or Arun,

Anyways, I'm more interested in KG's comment about you will
have to do some more tricks to get the database up if it is crashed (read: 
shutdown ABORT).

Could you please elaborate please?

Thanks,
Viral Desai.



From: Mercadante, Thomas F [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: Lost ofall redo logs
Date: Thu, 19 Sep 2002 05:13:27 -0800

I agree with you Joe.

I would *never* use an undocumented parameter unless Oracle told me to (or
unless I was testing something that I could recreate).

Using these params on the advice of someone from this list is very
dangerous.

The larger question is, why are the redo logs not being backed up?

Arun, you need to establish a backup policy *immediately* so that you are
not being put into this position again.

Tom Mercadante
Oracle Certified Professional


-Original Message-
Sent: Thursday, September 19, 2002 7:48 AM
To: Multiple recipients of list ORACLE-L


KG, doesn't anyone think not having a backup is a bad thing.

You can go down that route if you wish but as I remember undocumented
parameters are best used with the assistance of OWS and not just used at
will.

joe


K Gopalakrishnan wrote:

 Arun:
 
 You are right. The original poster *clearly* said
 
 LOST ALL REDO LOGS
 NO BACKUP.
 
 In the above situation, you have to open the
 databases using the some special tricks and
 I don't think you need to go back and refer
 BAckup and Recovery Manuals (You can not
 find anything for this situation, that is
 another story)
 
 Those parameters will bring up the database
 if the database is cleanly shudowned (read:
 Shutdown Normal/Immediate) and you will
 have to do some more tricks to get the
 database up if it is crashed (read: shutdown
 ABORT).
 
 I don't think it is a bad advice..
 
 YMMV
 
 KG
 
 
 -Original Message-
 Chakrapanirao
 Sent: Wednesday, September 18, 2002 11:08 PM
 To: Multiple recipients of list ORACLE-L
 
 
 Well one I do want to make clear I have never tried to give bad advice to
 people.
 Since the user in his mail had said that he does not have a backup and 
does
 not have any online redo logs can you please let me know how else can he
 open the database, when he said he does not have a back it assumes that 
he
 does not have a os backup and also the rman backup.
 This might be the undocumented thing but this Is the only way it works
 And this had happened in one our case and the only way we could open the
 database is to force open the database in a corrupt mode take an export 
and
 import back into the new database.
 
 If you still think I am trying to give a bad advice well sorry that I am
 giving bad advices.
 
 
 -Original Message-
 Sent: Thursday, September 19, 2002 12:33 AM
 To: Multiple recipients of list ORACLE-L
 
 Arun, since WHEN has been using undocumented parameters the normal way
 of doing things, I think you need to go back and lookup backup/recovery
 concepts.
 
 Feel free to read both user managed and RMAN backup recovery
docs/scenarios.
 
 You are giving bad advice to people on the list who might be new.
 
 joe
 
 
 Arun Chakrapanirao wrote:
 
 
 
 The only way u can open your database is to add a parameter file
 as
 
 _allow_resetlogs_corruption=TRUE
 
 _corrupted_rollback_segments= TRUE
 
 _offline_rollback_segments=(the rollback segment names)
 
 activate the database and  then immediately take an export of the whole
 database.
 Create a new database and then import all the data to this new database.
 
 
 -Original Message-
 Sent: Wednesday, September 18, 2002 5:23 PM
 To: Multiple recipients of list ORACLE-L
 
 Nop, all redo logs gone away...
 
 - Original Message -
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Sent: Wednesday, September 18, 2002 5:43 PM
 
 
 
 
 
 
 What about mirrored redo group members?
 
 Igor Neyman, OCP DBA
 [EMAIL PROTECTED]
 
 
 
 - Original Message -
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Sent: Wednesday, September 18, 2002 4:30 PM
 
 
 Hi people...
 
 What to do if I have LOST ALL REDO LOGS and i don4t have any backup?
 
 Thanks in advance!
 
 :
 Gilberto Gampert  Universidade de Passo Fundo
 Administrador de Banco de Dados   Passo Fundo - RS - Bra5il
 [EMAIL PROTECTED]http://www.upf.br
 :
 
 
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Gilberto Gampert
  INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services

RE: sqlplus question

2002-09-19 Thread Viral Desai

select substr(ename,1,length(ename)), job from emp;

From: Bob Metelsky [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: sqlplus question
Date: Thu, 19 Sep 2002 08:18:51 -0800


 
  I am spooling my sqlplus output to a file with no
  headings and all the fields separated by a delimiter. I have
  a field that is defined as varchar2(56), but typically only 4
  or 5 bytes are filled. Oracle recognizes that and if you
  select length(fld1) from the table, you will get 4. But if I
  spool this to a file, I always get the full 56 bytes padded
  with blanks. In other words, I get 4 bytes of data and 52
  blanks for that field. I only want the four valid bytes so
  that my delimiter comes immediately after that 4th byte. My
  sqlplus options are as follows:
 
  set newpage 0 space 0 linesize 5000 pagesize 0 echo off
  recsep off feedback off heading off trimspool on colsep |

Sounds to me like the trimspool should do it...

Are you sure its set on

ME@DB1 - trimspool on
SP2-0734: unknown command beginning trimspool ... - rest of line
ignored.

Try  set trims on

Or

Set trimspool on


bob
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Bob Metelsky
   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).




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  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: Why does my insert creates so many logs?

2002-09-19 Thread Viral Desai


A couple of things to try ---

1. Drop the indexes and primary key instead of disabling them. Insert the 
data and recreate pk.

2. This could be due to changes in data dictionary, when you insert large 
number of rows in the table, new extents may be allocated or high water mark 
of the table would be modified. This information need to be logged. I think 
that the redo generated due to this should not be very large though.

Hope this helps.
Viral Desai


From: Gurelei [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: Why does my insert creates so many logs?
Date: Thu, 19 Sep 2002 06:03:29 -0800

None.
--- Nicoll, Iain (Calanais)
[EMAIL PROTECTED] wrote:
  Doesn't have any triggers does it?
 
  -Original Message-
  Sent: Wednesday, September 18, 2002 8:39 PM
  To: Multiple recipients of list ORACLE-L
 
 
  Hi.
 
  A developer of mine is running a large insert as
  select:
 
  insert /* parallel hint */ into table A
  nologging
  (select * from table b where ...);
 
  There are no indices on table A and a PK disabled.
  Still that insert generates a large amount of logs.
  What could be the reason for that? Any ideas? Table
  A
  is not partitioned and has NOLOGGING attribute on
  the
  dba_tables set to Yes.
 
  thanks
 
  Gene
 
  __
  Do you Yahoo!?
  Yahoo! News - Today's headlines
  http://news.yahoo.com
  --
  Please see the official ORACLE-L FAQ:
  http://www.orafaq.com
  --
  Author: Gurelei
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.com
  --
  Author: Nicoll, Iain \(Calanais\)
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).


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Gurelei
   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).




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  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: NLS_DATE_FORMAT

2002-09-10 Thread Viral Desai

To set it at the session level, You need,

Alter session set nls_date_format='DD-MON- HH24:MI';

You can give any valid format string.
If you want this to happen automatically in your sqlplus session you can add 
this to your glogin.sql script.

Hope this helps.
Viral.

From: Farnsworth, Dave [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: NLS_DATE_FORMAT
Date: Mon, 09 Sep 2002 11:48:24 -0800

Set it in the SIDinit.ora.

Dave

-Original Message-
Sent: Monday, September 09, 2002 2:18 PM
To: Multiple recipients of list ORACLE-L


On NT/2000, how can you set the NLS date format at the session level?  
Isn't
there a file that you can set it in?  What do you write in the file?
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Eric Richmon
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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.com
--
Author: Farnsworth, Dave
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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).




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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: Inserts are taking time !

2002-09-06 Thread viral desai
 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).
 
  Justin Cave
 
  --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com
  --
  Author: Justin Cave
INET: [EMAIL PROTECTED]
 
  Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
  San Diego, California-- Public Internet access / Mailing Lists
  
  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.com
--
Author: Marul Mehta
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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.com
--
Author:
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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).




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: viral desai
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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: How to get rid off certain character from a string ???

2002-09-06 Thread Viral Desai

Hello,

I believe you want to get rid of the _.

Here is a simple method . The third argument in the function is null string.

select replace('WC_89_06_03', '_', '') from dual;

Cheers
Viral.


From: Janet Linsy [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: How to get rid off certain character from a string ???
Date: Fri, 06 Sep 2002 12:03:34 -0800

Hi all,

How to get rid off certain character from a string.
For example, I have string 'WC_89_06_03', what's an
easy way to get 'WC890603' out, is there a function?

Thank you in advance!

Janet

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Janet Linsy
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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).




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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: couple of questions ???

2002-09-06 Thread Viral Desai


Janet,

1. Did you try to compile the SP in your session before doing the show 
errors? It will only show errors to you if you did the compile prior to 
doing show errors.

2. One of the resons this could occur if there are stored objects like other 
packages, functions and procedure being referred to in your procedure and if 
they are invalid. If there are a number of invalid objects then this problem 
may occur..One way to verify this is to remove the dbms lines and try 
recompiling the package and see if it compiles..

Viral


From: BALA,PRAKASH (Non-HP-USA,ex1) [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: couple of questions ???
Date: Fri, 06 Sep 2002 11:58:29 -0800

Janet,

The last place where I worked, we had to split a big package into smaller
ones since we hit a # of lines limit (undocumented!).

Prakash

-Original Message-
Sent: Thursday, September 05, 2002 5:58 PM
To: Multiple recipients of list ORACLE-L


Hi all,

I have couple of questions, 817 on NT.

1. There is an invalid SP, my collegue did a Show
Errors in SQL Plus, it shows the error; but I did the
same thing in my Sql Plus, I got No errors.  Is
there any settings I need to change?

2. There is a valid SP, when I did a Alter procedure
p_Name compile.  It just hangs.  It was compiling
fine, now I added two lines (dbms_output stuff), and
it just compiling forever.  The code now has 7969
lines. Does that hit the limit? (I really doubt) Or
are there any other reasons?

Thanks,

Janet

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Janet Linsy
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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.com
--
Author: BALA,PRAKASH (Non-HP-USA,ex1)
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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).




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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).



[no subject]

2002-08-12 Thread viral desai
186 31-MAY-2002 106429
186 30-JUN-2002  98260
186 31-JUL-2002  88069
478 31-JUL-2002 889841
479 31-JUL-2002 132331
   1008 31-JUL-2002532
   1010 31-JUL-2002   2244
--
sum2560503

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: viral desai
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

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).