Re: update 30mil rows

2003-02-25 Thread chao_ping
Gurelei,
I suggest your create your new table as select other_columns,0 from 
your old table with nologging and parallel.





Regards
zhu chao
msn:[EMAIL PROTECTED]
www.happyit.net
www.cnoug.org(China Oracle User Group)

=== 2003-02-25 13:26:00 ,you wrote£º===

>Hi all:
>
>I need to update every row 30mil-rows table. 
>I have dropped the indices and running the update
> in parallel:
>
>update /*+ parallel (degree 8) */ table_name
>set field1=0;
>
>Is there anything else I could to to speed up this
>process. I don't think I can do an update in nologging
>mode. I'm running 8.1.7.4
>
>thanks for any advice.
>
>__
>Do you Yahoo!?
>Yahoo! Tax Center - forms, calculators, tips, more
>http://taxes.yahoo.com/
>-- 
>Please see the official ORACLE-L FAQ: http://www.orafaq.net
>-- 
>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.net
-- 
Author: chao_ping
  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: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Connor McDonald
"Connor does a much better job of presenting than I
do."

Translation:  Connor waves his arms about, swears more
and uses a little more BS, gives beer to attendees


 --- Freeman Robert - IL <[EMAIL PROTECTED]> wrote: >
>> And to the credit of Woodrow Wilson - "The wisest
> thing to do with a fool
> is
> >> to encourage him to hire a hall and discourse to
> his fellow citizens.
> >> Nothing chills nonsense like exposure to air."
> 
> Interesting quote. It's funny, I do present with
> some frequency, and I
> stress out
> about it every time I do I'm just sure that
> there are folks out there
> that know
> a lot more about the topic I'm talking about than I
> do. I fully expect,
> every single
> time, to hear hoards of folks laughing at me when I
> say something totally
> stupid.
> 
> However, the best experience I have ever had
> presenting was at UKOUG this
> last year after my
> Oracle9i New Features presentation. First, I got
> some great feedback from
> Jonathan Lewis,
> which I was very thankful for (but, honestly, I was
> so out of it at the time
> (still in stress induced fight or flight mode) that
> I don't remember much of
> it!). Second, I saw a great presentation by Connor
> McDonald on 9i. Connor
> does a much better job of presenting than I do.
> 
> 
> Cheers to you all!
> 
> RF
> 
> Robert G. Freeman
> Technical Management Consultant
> TUSC - The Oracle Experts www.tusc.com
> 904.708.5076 Cell (It's everywhere that I am!)
> Author of several books you can find on Amazon.com!
> 
> 
> -Original Message-
> Sent: Tuesday, February 25, 2003 8:29 PM
> To: Multiple recipients of list ORACLE-L
> comm
> 
> 
> Been a while since I have been able to scan the
> list, but who could resist
> this one??? :-)
> 
> Additional Do's:
> 
> Do understand the nothing is unbreakable or bullet
> proof, assume the
> impossible isn't and have a plan for disaster
> management.
> Do appreciate that oracle support probably does deal
> with enough clueless
> people to expect you to be one of the same until you
> demonstrate otherwise.
> Do remember that somewhere there is life outside of
> RDBMS challenges, and it
> should be kept relative.
> Do take the time to share your experiences, it makes
> life much simpler for
> all of us.
> Do clearly define the objective, before you start
> detailing the solution.
> 
> Additional Do Nots
> Don't get so focused on a prescribed solution that
> you don't realize when it
> becomes self-defeating to the driving cause.
> Don't forget that as good as you are at being a dba,
> you will make mistakes
> and mis-manage, and so will those who make a living
> managing you.
> Don't forget to prescribe the solution that user
> needs, not the one they
> necessarily demand.
> 
> And to the credit of Woodrow Wilson - "The wisest
> thing to do with a fool is
> to encourage him to hire a hall and discourse to his
> fellow citizens.
> Nothing chills nonsense like exposure to air."
> 
> 
> -Original Message-
> - IL
> Sent: Monday, February 24, 2003 10:40 AM
> To: Multiple recipients of list ORACLE-L
> 
> 
> * SHOCK *
> 
> You mean someone disagrees with *ME* 
> 
> Horrors the world is soon to come to an end!!
> 
> :-))
> 
> RF
> 
> Robert G. Freeman
> Technical Management Consultant
> TUSC - The Oracle Experts www.tusc.com
> 904.708.5076 Cell (It's everywhere that I am!)
> Author of several books you can find on Amazon.com!
> 
> 
> -Original Message-
> Sent: Monday, February 24, 2003 7:09 AM
> To: Multiple recipients of list ORACLE-L
> comments
> 
> 
> MccDBA:
> 
> It is just Robert's Don't list ;) but you can always
> give your opinion 
> abt that. Would you mind telling us 'Why you don't
> agree on them?'
> 
> 
> KG
> 
> --- dist cash <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > I don't agree with "don't" #1 and #5.
> > 
> > 
> > 
> > 
> > >From: "Stephane Faroult"
> <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: Multiple recipients of list ORACLE-L
> <[EMAIL PROTECTED]>
> > >Subject: RE: RE: Top 10 DBA Do's and Don'ts
> anyone - Here is my
> > list,
> > >comments
> > >Date: Mon, 24 Feb 2003 00:23:37 -0800
> > >
> > > >Here is the list of top 10 do's and don't that
> I
> > > >came up with.
> > > >
> > > >#1 - Do Maintain your Expertise
> > > >#2 - Do Use the DBMS_STATS Package to Collect
> > > >Statistics
> > > >#3 - Do Use Bind Variables
> > > >#4 - Do Put your Production Database in
> ARCHIVELOG
> > > >Mode
> > > >#5 - Do Use Locally Managed Tablespaces
> > > >#6 - Do Monitor Your Database
> > > >#7 - Do Practice Recoveries
> > > >#8 - Do Get Involved with User Groups and Other
> > > >Resources
> > > >#9 - Do Establish Standards and Change Control
> > > >Processes
> > > >#10 - Do Think Ahead
> > > >
> > > >Bonus! - Do tune to Reduce Logical IO's Not
> > > >Physical IO's.
> > > >(With regards to Cary!)
> > > >
> > > >Oracle Database Top 10 Don'ts
> > > >#1 - Don't Waste Time Re-Organizing Your
> Databases
> > > >#2 - Don't Use .Log or Other Common Exte

RE: LIBRARY CACHE LOCK !!!! ( SQL Tuning )

2003-02-25 Thread Reddy, Madhusudana
Thanks John !!
In this present case the PL/SQL code ,which was shown below itself is
causing the deadlock ( SELF DEADLOCK !! ,also plz find the deadlock graph
shown below), i mean the session which is holding the Library Cache Lock . I
want your expertise in identifying the problem with the code which i have
shown below !. that would be great help to me !!!

Thanks in advance,
Madhu

-Original Message-
Sent: Tuesday, February 25, 2003 9:29 PM
To: Multiple recipients of list ORACLE-L


To see who's holding a library cache lock on your object, you could run
the following query:

Select s.sid,kglpnmod "mode", kglpnreq "req"
>From x$kglpn p, v$session s
Where p.kglpnuse = s.sddr
And kglpnhdl=
(select p1raw 
from v$session_wait
where sid=&your_sid)
/

(as long as you know your sid)

I use this whenever there are lots of library cache pin, library cache
lock, or library cache load lock waits in v$session_wait (in my
environment, usually b/c developers are compiling code at inappropriate
times).

- John

-Original Message-
Madhusudana
Sent: Tuesday, February 25, 2003 8:49 PM
To: Multiple recipients of list ORACLE-L

Thanks Jared 


Here is the Graph i can see in the trace file : ( SELF DEADLOCK  )















A deadlock among DDL and parse locks is detected.
This deadlock is usually due to user errors in
the design of an application or from issuing a set
of concurrent statements which can cause a deadlock.
This should not be reported to Oracle Support.
The following information may aid in finding
the errors which cause the deadlock:
ORA-04020: deadlock detected while trying to lock object
MDO.MDO_BSE_TEMP_RETEK_PRICE

  object   waiting  waiting   blocking blocking
  handle   session lock mode   session lock mode
        
c0004f641168  c00031a6df18 c00033dd66f8X
c00031a6df18
c00033cef0a0S

-- DUMP OF WAITING AND BLOCKING LOCKS --

- WAITING LOCK -

SO: c00033dd66f8, type: 33, owner: c0003393b710, flag:
INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=c00033dd66f8 handle=c0004f641168
request=X
call pin=0 session pin=0
user=c00031a6df18 session=c00031a6df18 count=0 flags=[00]
savepoint=408
LIBRARY OBJECT HANDLE: handle=c0004f641168
name=MDO.MDO_BSE_TEMP_RETEK_PRICE
hash=74b60038 timestamp=01-09-2002 18:05:20
namespace=TABL/PRCD/TYPE flags=TIM/SML/[0200]
--=-055d-075d lock=S pin=S latch=1
lwt=c0004f641198[c00033dd6718,c00033dd6718]
ltm=c0004f6411a8[c0004f6411a8,c0004f6411a8]
pwt=c0004f6411c8[c0004f6411c8,c0004f6411c8]
ptm=c0004f641258[c0004f641258,c0004f641258]
ref=c0004f641178[c0004e451f50,c00035020518]
  LIBRARY OBJECT: object=c0004f6476a0
  type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
  DATA BLOCKS:
  data# heap  pointer status pins change
  -   --  --
  0 c0004f6410a8 c0004f647790 I/P/A 0 NONE
  2 c000483699e0 c00038dfdcb8 I/P/A 1 NONE
  3 c00048369a88 c00047ed33f0 I/-/A 0 NONE
  4 c0004f640c98 c000354158b8 I/-/A 0 NONE
  6 c0004f640d400 -/P/- 0 NONE
  8 c0004f640bd0 c0003b9a80f0 I/-/A 0 NONE
  9 c00048369b500 I/P/- 0 NONE
 10 c0004f640de8 c0003bf98e90 I/-/A 0 NONE
- BLOCKING LOCK 

SO: c00033cef0a0, type: 33, owner: c00033d58720, flag:
INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=c00033cef0a0 handle=c0004f641168
mode=S
call pin=c00033cec8b8 session pin=0
user=c00031a6df18 session=c00031a6df18 count=5 flags=PNC/[04]
savepoint=241
LIBRARY OBJECT HANDLE: handle=c0004f641168
name=MDO.MDO_BSE_TEMP_RETEK_PRICE
hash=74b60038 timestamp=01-09-2002 18:05:20
namespace=TABL/PRCD/TYPE flags=TIM/SML/[0200]
--=-055d-075d lock=S pin=S latch=1
lwt=c0004f641198[c00033dd6718,c00033dd6718]
ltm=c0004f6411a8[c0004f6411a8,c0004f6411a8]
pwt=c0004f6411c8[c0004f6411c8,c0004f6411c8]
ptm=c0004f641258[c0004f641258,c0004f641258]
ref=c0004f641178[c0004e451f50,c00035020518]
  LIBRARY OBJECT: o

Newspaper story about conferences, Hotsos Symposium

2003-02-25 Thread Cary Millsap








Many of you attended our Hotsos Symposium in Dallas earlier
this month. You might be interested in an article (below) that was published in
the Dallas Morning News about a week ago.

 

Thanks, Jared, for giving me the
okay to pass this on to the list…

 

Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5–6 Denver
- Hotsos Clinic 101,
Mar 25–27 London

 

Page at: http://www.dallasnews.com/business/columnists/agoldstein/stories/021903dnbustechcol.5ccdb.html

==

 

 Trading size for
substance

 

 Attendees now prefer smaller tech shows over
mega-conferences

 

 02/19/2003

 

 TECHNOLOGY

 

 With technology spending way down and no
recovery in sight, this might 

 not seem like the best time to debut a
software-related trade show.

 

 But Southlake-based Hotsos Enterprises Ltd.
launched a three-day event 

 last week that attracted about 270 people from
around the world, enough 

 of a success to begin planning for a second
annual conference.

 

 That kind of attendance might represent a
rounding error for many of the 

 technology industry's mega-conferences such as
Comdex, which at its peak 

 two years ago attracted more than 200,000
people.

 

 But when it comes to trade shows lately,
smaller, more focused events 

 are better.

 

 "If I go to a smaller conference, my
expectation is it'll have more 

 substance and less marketing," said James
 R. Foley,
a database 

 administrator for aerospace giant Boeing Co.
in Seattle,
who was 

 attending the Hotsos conference at a
Dallas-area hotel.

 

 Hotsos (pronounced "hot sauce")
helps corporate customers run their 

 Oracle-based database systems more
efficiently.

 

 "I don't go to the larger shows anymore,"
said another attendee, Jim


 Boles, a database administrator from NCS
Pearson Inc. in Eagan,
 Minn. 

 "They're not specialized enough."

 

 The big time

 

 A few years ago, anyone in search of the next
big thing out of the tech 

 industry had little choice but to brave the
throngs at huge trade shows. 

 Attendees regularly groused about getting shoved
and jostled in 

 overcrowded convention halls, hotel ballrooms
and at late-night parties. 

 They would wait impatiently through long lines
for restaurants and 

 taxicabs.

 

 The crowds have never really bothered me. I've
always liked tapping the 

 energy of the big shows, where industry
executives premiere their 

 strategies in keynote addresses -- or at least
sling amusing verbal 

 arrows at one another.

 

 Big shows are valuable for their critical mass
of expertise. I once met 

 a valued source in an airport bus leaving the
convention center in 

 Manhattan.
A conversation that I overheard on a packed flight out of Las 

 Vegas
led to a decent news story.

 

 These days, though, many big conferences have
a lot more breathing room.

 

 Attendance at Comdex in Las
  Vegas in November fell by nearly half from 

 its zenith in 2000. The show's organizer filed
for bankruptcy protection 

 this month.

 

 Other shows are struggling, too. Journalists
have been joking that 

 they've outnumbered industry attendees at some
of the major trade shows 

 -- and it hasn't seemed like much of an
exaggeration.

 

 Blame the weak economy and a lot of corporate
skepticism about whether 

 technology investments are worth all the
trouble and expense.

 

 Businesses that once sent teams of staffers to
the mega-shows to learn 

 about hot Internet strategies have sharply
curtailed spending for travel 

 as well as for technology. Tech companies that
used to feel obligated to 

 exhibit at all the venues have slashed their
marketing plans -- or gone 

 out of business.

 

 Tighter focus

 

 Those who still get to travel to conferences are
being told to choose more 

 carefully, said Gary
 Goodman,
co-founder and manager of Hotsos.

 

 "People might say, 'I can only do one
show this year,' " he said. "So 

 they can go to a big show and get a trickle of
information about a lot 

 of things, or come here and drink from a fire
hose."

 

 Hotsos' message is tailored for tough times.
Its conference focused on 

 how database administrators can improve
performance by reducing the 

 demand on existing equipment, rather than
making additional purchases.

 

 One of the speakers I heard exhorted customers
to set priorities in how 

 they tweak systems -- making improvements only
where they'll have the 

 greatest impact. Sensible stuff.

 

 Some large expositions are still thriving, but
they're more focused than 

 the broad and diffuse Comdex. The Consumer
Electronics Show is now the 

 biggest trade show in North
 America; the event last month in Las
  Vegas 

 hosted more than 100,000 attendees. The annual
Cellular 

 Telecommunications & Internet Association
show remains indispensable for 

 people in the wireless industry.

 

 "People have a no-nonsense a

Re: SQL struggle - UPDATE too?

2003-02-25 Thread Chip
Do these SQL statements work ?

SELECT whse_code
,  item_num
,  last_cost
,  ( SELECT last_cost
FROM   item_whl1
WHERE  whse_code = 'HL1'
ANDREPLACE(u.item_num,'-OR') = hl1.item_num
  ) hl1_cost
FROM   item_wu
/
UPDATE (
SELECT whse_code
,  item_num
,  last_cost
,  ( SELECT last_cost
FROM   item_whl1
WHERE  whse_code = 'HL1'
ANDREPLACE(u.item_num,'-OR') = hl1.item_num
  ) hl1_cost
FROM   item_wu
WHERE  whse_code <> 'HL1'
)
SET last_cost = hl1_cost
/
Note: whse_code and item_num could be removed from the UPDATE statement.
Also, added WHERE whse_code <> 'HL1' so the source last_cost is not updated
to its current value (reduces redo log entries and rollback segment usage).
Have Fun :)

Saira Somani wrote:

I am very confused (and fairly new to SQL which would be my excuse to
post such amateurish questions on this list).
Now I've been asked to update LAST_COST on item_w so it looks like this:

WHSE_CODEITEM_NUM   LAST_COST
 -- --
HL1  111230   1.12
CPD-TWH  111230-OR1.12
CPD-TGH  111230-OR1.12
HL1  50034 .91
MSH-CDS  50034 .91
CPD-TGH  50034-OR  .91
HL1  650300  4.789
TWH-STAT 650300  4.789
CPD-TWH  650300-OR   4.789
CPD-TGH  650300-OR   4.789
-Original Message-
Sent: February 25, 2003 12:55 PM
To: '[EMAIL PROTECTED]'
List Gurus,

I need help and I won't be ashamed to ask :) 

Oracle 8.1.7 on AIX 4.3

Here is what my data looks like in a table called item_w:

WHSE_CODEITEM_NUM   LAST_COST
 -- --
HL1  111230   1.12
CPD-TWH  111230-OR   0
CPD-TGH  111230-OR   0
HL1  50034 .91
MSH-CDS  50034   0
CPD-TGH  50034-OR0
HL1  650300  4.789
TWH-STAT 650300  0
CPD-TWH  650300-OR   0
CPD-TGH  650300-OR   0
If you'll notice, only the items with WHSE_CODE='HL1' have a cost
associated with them.
What I need to is:

Parse ITEM_NUM for those items which have a suffix of -OR in order to
compare with an ITEM_NUM without -OR so that I can take the last cost
from there and display it beside the one that has -OR. Also note, there
are some $0 cost items that don't have a suffix of -OR; I would need to
match those up with a cost as well. 

So in the end, I suppose, this is the result I'm looking for:

WHSE_CODEITEM_NUM  LAST_COSTLAST_COST_REV
 - --
HL1  111230 1.12   1.12
CPD-TWH  111230-OR  0  1.12
CPD-TGH  111230-OR  0  1.12
HL1  50034  0.91   0.91
MSH-CDS  50034  0  0.91
CPD-TGH  50034-OR   0  0.91
HL1  650300 4.789  4.789
TWH-STAT 650300 0  4.789
CPD-TWH  650300-OR  0  4.789
CPD-TGH  650300-OR  0  4.789
And if any of you out there use Cognos Impromptu, perhaps you could tell
me how I can achieve these results in a report.
Thanks in advance for your time,

Saira Somani
IT Support/Analyst
Hospital Logistics Inc. 

 



--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Chip
 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: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Cary Millsap
Facts can have different "truths" only when those facts are filtered
through the lenses of contradictory value judgments. Politics is an
*excellent* example: lots of people describe themselves as believing in
"equality." However, one political sector believes that equality means
"equality of opportunity." Another believes that equality means
"equality of outcome." Which you believe defines how you perceive the
"truth" about many political issues. People's basic value judgments are
often a matter of *faith*, which makes them impervious to change through
intellectual debate.

However, our small technical community has the luxury of far fewer
differences in value judgment about what constitutes quality in our
work. It's pretty easy to distinguish excellence from garbage when the
two are laid out side-by-side. There might be optimizations that are
superior for DSS environments and different optimizations that are
superior for TP environments, but for the most part, we're all basing
our professional careers in the same basic value judgment: that
superiority means providing the fastest, most reliable data with the
least possible economic sacrifice.

With the advent of quantum microbiology and the like, most informed
people agree that 21st medicine is a science. However, medicine as
practiced in the 17th century was definitely an art, not a science. The
argument that "tuning" is an "art"--that it is subjective like a
symphony or like cooking--is rapidly losing. The measuring tools that
allow us to approach "tuning" as a completely scientific endeavor have
been present in the Oracle kernel now for over a decade. And some of our
community's members with so-called shallow-minded views are doing an
excellent job of finally figuring out how to apply them.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
Robert - IL
Sent: Tuesday, February 25, 2003 10:19 PM
To: Multiple recipients of list ORACLE-L
comm

Yes, but WHO's truth. Truth is a three sided sword, your side, my
side
and 
The edge.. Truth is, unfortunately, subjective Point in case,
politics. :-)

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Tuesday, February 25, 2003 9:54 PM
To: Multiple recipients of list ORACLE-L
comm


The only thing wrong with President Wilson's advice is that exceptional
oratory skill can, in the short term, overcome some pretty horrendous
content deficiencies. I do have faith enough in free people to believe
that in the long term, the truth wins.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
Sent: Tuesday, February 25, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L
comm

Been a while since I have been able to scan the list, but who could
resist
this one??? :-)

Additional Do's:

Do understand the nothing is unbreakable or bullet proof, assume the
impossible isn't and have a plan for disaster management.
Do appreciate that oracle support probably does deal with enough
clueless
people to expect you to be one of the same until you demonstrate
otherwise.
Do remember that somewhere there is life outside of RDBMS challenges,
and it
should be kept relative.
Do take the time to share your experiences, it makes life much simpler
for
all of us.
Do clearly define the objective, before you start detailing the
solution.

Additional Do Nots
Don't get so focused on a prescribed solution that you don't realize
when it
becomes self-defeating to the driving cause.
Don't forget that as good as you are at being a dba, you will make
mistakes
and mis-manage, and so will those who make a living managing you.
Don't forget to prescribe the solution that user needs, not the one they
necessarily demand.

And to the credit of Woodrow Wilson - "The wisest thing to do with a
fool is
to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."


-Original Message-
- IL
Sent: Monday, February 24, 2003 10:40 AM
To: Multiple recipients of list ORACLE-L


* SHOCK *

You mean someone disagrees with *ME* 

Horrors the world is soon to come to an end!!

:-))

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Monday, February 24, 2003 7:09 AM
To: Multiple recipients of list ORACLE-L
comments


MccDBA:

It is just Robert's Don't list ;) but you can always give your opinion 
abt that. Would you mind telling us 'Why you don't agree on them?'


KG

--- dist

Query failing in CBO mode

2003-02-25 Thread Anubha Jalsingh
I have an application query that runs fine in RBO mode but failing in CBO with 
ORA-01722: invalid number -

select /*+ rule */ ORDER_NO,ITEM_NO
from [EMAIL PROTECTED]
where ORDER_NO = 4432089
and PROJECT_ORDER = 'Y' and ORDER_STATUS ='O'

ORDER_NO ITEM_NO
-- 
4432089 TOOLING COSTS

1 row selected.

select /*+ choose */ ORDER_NO,ITEM_NO
from [EMAIL PROTECTED]
where ORDER_NO = 4432089
and PROJECT_ORDER = 'Y' and ORDER_STATUS ='O'

ERROR:
ORA-01722: invalid number
ORA-02063: preceding line from DB01.WORLD

no rows selected

ORDER_NO column is varchar2 field and it may be containing some non-numeric data, so I 
understand that Oracle may be doing implicit conversion on order_no. But, then why it 
is working fine in RULE based. The explain plan is same in both cases and is using 
FULL Table access. The table has unique index on ORDER no.

Thanks in advance.
Manmohan



_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Anubha Jalsingh
  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).



Hard Returns

2003-02-25 Thread Freeman Robert - IL
I promise that someday, I will quit putting hard returns in my posts so my
email messages format much better. If only they would look like they do on
my client for everyone else!!

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Tuesday, February 25, 2003 10:30 PM
To: Multiple recipients of list ORACLE-L


Ok... with the changes to the "touch point" memory management methodology in
9i, I found myself wondering, Does Oracle still scan the equivalent of the
LRU list to find free blocks,
and if so is it still called the LRU list, or has the name of this list been
changed along with the architecture changes or has the architecture for
assigning free memory changed completely? Anyone want to share some
knowledge?

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Freeman Robert - IL
  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: Freeman Robert - IL
  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: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Daniel W. Fink




This reminds me of the paper I wrote for American Goverment in high school.
I don't recall the author, but the gist was that Free Speech must not be
impeded, because in the end, the Truth will prevail.
Very well said. Thank you Cary.

Cary Millsap wrote:

  The only thing wrong with President Wilson's advice is that exceptional
oratory skill can, in the short term, overcome some pretty horrendous
content deficiencies. I do have faith enough in free people to believe
that in the long term, the truth wins.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
Sent: Tuesday, February 25, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L
comm

Been a while since I have been able to scan the list, but who could
resist
this one??? :-)

Additional Do's:

Do understand the nothing is unbreakable or bullet proof, assume the
impossible isn't and have a plan for disaster management.
Do appreciate that oracle support probably does deal with enough
clueless
people to expect you to be one of the same until you demonstrate
otherwise.
Do remember that somewhere there is life outside of RDBMS challenges,
and it
should be kept relative.
Do take the time to share your experiences, it makes life much simpler
for
all of us.
Do clearly define the objective, before you start detailing the
solution.

Additional Do Nots
Don't get so focused on a prescribed solution that you don't realize
when it
becomes self-defeating to the driving cause.
Don't forget that as good as you are at being a dba, you will make
mistakes
and mis-manage, and so will those who make a living managing you.
Don't forget to prescribe the solution that user needs, not the one they
necessarily demand.

And to the credit of Woodrow Wilson - "The wisest thing to do with a
fool is
to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."


-Original Message-
- IL
Sent: Monday, February 24, 2003 10:40 AM
To: Multiple recipients of list ORACLE-L


* SHOCK *

You mean someone disagrees with *ME* 

Horrors the world is soon to come to an end!!

:-))

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Monday, February 24, 2003 7:09 AM
To: Multiple recipients of list ORACLE-L
comments


MccDBA:

It is just Robert's Don't list ;) but you can always give your opinion 
abt that. Would you mind telling us 'Why you don't agree on them?'


KG

--- dist cash <[EMAIL PROTECTED]> wrote:
  
  

I don't agree with "don't" #1 and #5.






  From: "Stephane Faroult" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
  

list,


  comments
Date: Mon, 24 Feb 2003 00:23:37 -0800

  
  
Here is the list of top 10 do's and don't that I
came up with.

#1 - Do Maintain your Expertise
#2 - Do Use the DBMS_STATS Package to Collect
Statistics
#3 - Do Use Bind Variables
#4 - Do Put your Production Database in ARCHIVELOG
Mode
#5 - Do Use Locally Managed Tablespaces
#6 - Do Monitor Your Database
#7 - Do Practice Recoveries
#8 - Do Get Involved with User Groups and Other
Resources
#9 - Do Establish Standards and Change Control
Processes
#10 - Do Think Ahead

Bonus! - Do tune to Reduce Logical IO's Not
Physical IO's.
(With regards to Cary!)

Oracle Database Top 10 Don'ts
#1 - Don't Waste Time Re-Organizing Your Databases
#2 - Don't Use .Log or Other Common Extensions For
Your Database File Names
#3 - Don't Leave Your Database Open To Attack
#4 - Don't Decide Against Hot Backups
#5 - Don't Use ASSM
#6 - Don't Forget the 80/20 Rule
#7 - Don't Stack Views
#8 - Don't Be a Normalization Bigot
#9 - Don't Forget to Document Everything
#10 - Do Not Use Products You are Not Licensed For.


Bonus!! - Do Not Assume A Good or Bad Hit Ratio
Means Anything

Ok, anyone wanna comment?


Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


  
  Robert,

  DO #3 and DON'T #7 are developer stuff, not DBA stuff ... I would 
gladly replace DO #3 by 'Relentlessly preach good practice
  

to


  developers'. I can hardly talk to a developer without mentioning
DBMA_APPLICATION_INFO in the first 30 seconds :-).

Regards,

Stephane Faroult
Oriole
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Stephane Faroult
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting
  

services


9iR2 Oracle SGA Memory

2003-02-25 Thread Freeman Robert - IL
Ok... with the changes to the "touch point" memory management methodology in
9i, I found myself wondering, Does Oracle still scan the equivalent of the
LRU list to find free blocks,
and if so is it still called the LRU list, or has the name of this list been
changed along with the architecture changes or has the architecture for
assigning free memory changed completely? Anyone want to share some
knowledge?

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Freeman Robert - IL
  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: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Daniel W. Fink




Connor corollary to Wilson theory...
"The truth will out...especially when demonstrated with free beer!"

Freeman Robert - IL wrote:

  

  And to the credit of Woodrow Wilson - "The wisest thing to do with a fool
  

  
  is
  
  

  to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."
  

  
  
Interesting quote. It's funny, I do present with some frequency, and I
stress out
about it every time I do I'm just sure that there are folks out there
that know
a lot more about the topic I'm talking about than I do. I fully expect,
every single
time, to hear hoards of folks laughing at me when I say something totally
stupid.

However, the best experience I have ever had presenting was at UKOUG this
last year after my
Oracle9i New Features presentation. First, I got some great feedback from
Jonathan Lewis,
which I was very thankful for (but, honestly, I was so out of it at the time
(still in stress induced fight or flight mode) that I don't remember much of
it!). Second, I saw a great presentation by Connor McDonald on 9i. Connor
does a much better job of presenting than I do.


Cheers to you all!

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Tuesday, February 25, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L
comm


Been a while since I have been able to scan the list, but who could resist
this one??? :-)

Additional Do's:

Do understand the nothing is unbreakable or bullet proof, assume the
impossible isn't and have a plan for disaster management.
Do appreciate that oracle support probably does deal with enough clueless
people to expect you to be one of the same until you demonstrate otherwise.
Do remember that somewhere there is life outside of RDBMS challenges, and it
should be kept relative.
Do take the time to share your experiences, it makes life much simpler for
all of us.
Do clearly define the objective, before you start detailing the solution.

Additional Do Nots
Don't get so focused on a prescribed solution that you don't realize when it
becomes self-defeating to the driving cause.
Don't forget that as good as you are at being a dba, you will make mistakes
and mis-manage, and so will those who make a living managing you.
Don't forget to prescribe the solution that user needs, not the one they
necessarily demand.

And to the credit of Woodrow Wilson - "The wisest thing to do with a fool is
to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."


-Original Message-
- IL
Sent: Monday, February 24, 2003 10:40 AM
To: Multiple recipients of list ORACLE-L


* SHOCK *

You mean someone disagrees with *ME* 

Horrors the world is soon to come to an end!!

:-))

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Monday, February 24, 2003 7:09 AM
To: Multiple recipients of list ORACLE-L
comments


MccDBA:

It is just Robert's Don't list ;) but you can always give your opinion 
abt that. Would you mind telling us 'Why you don't agree on them?'


KG

--- dist cash <[EMAIL PROTECTED]> wrote:
  
  

I don't agree with "don't" #1 and #5.






  From: "Stephane Faroult" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
  

list,


  comments
Date: Mon, 24 Feb 2003 00:23:37 -0800

  
  
Here is the list of top 10 do's and don't that I
came up with.

#1 - Do Maintain your Expertise
#2 - Do Use the DBMS_STATS Package to Collect
Statistics
#3 - Do Use Bind Variables
#4 - Do Put your Production Database in ARCHIVELOG
Mode
#5 - Do Use Locally Managed Tablespaces
#6 - Do Monitor Your Database
#7 - Do Practice Recoveries
#8 - Do Get Involved with User Groups and Other
Resources
#9 - Do Establish Standards and Change Control
Processes
#10 - Do Think Ahead

Bonus! - Do tune to Reduce Logical IO's Not
Physical IO's.
(With regards to Cary!)

Oracle Database Top 10 Don'ts
#1 - Don't Waste Time Re-Organizing Your Databases
#2 - Don't Use .Log or Other Common Extensions For
Your Database File Names
#3 - Don't Leave Your Database Open To Attack
#4 - Don't Decide Against Hot Backups
#5 - Don't Use ASSM
#6 - Don't Forget the 80/20 Rule
#7 - Don't Stack Views
#8 - Don't Be a Normalization Bigot
#9 - Don't Forget to Document Everything
#10 - Do Not Use Products You are Not Licensed For.


Bonus!! - Do Not Assume A Good or Bad Hit Ratio
Means Anything

Ok, anyone wanna comment?


Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's

Perl Modules

2003-02-25 Thread sstefick
I've done some basic Perl programming for UNIX Sys admin kinda tasks, but now 
I'm looking to get more into the DB functionality of it.  I was wondering if 
anyone could give me a list of Perl Modules I should have for effective DB 
programming in Perl.

Jared, I know this is definitely your area

Thanks,
Scott


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: sstefick
  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: Oracle Performance Tuning Exam

2003-02-25 Thread Mogens Nørgaard




Yeah, if you've taken the performance exam, you must now unlearn what you
have learnt, to quote from Starwars. I've considered creating a one- or two-day
class that would put people into the right track of thinking after having
studied and passed that exam. The other exams are more or less fine. The
tuning one really - ahm - could be improved...

Mogens

[EMAIL PROTECTED] wrote:
   
  
 
  
  RE: Oracle Performance Tuning Exam

  Guys, 
  
  I took this exam after 12 hours studying and missed 4
questions.  I studied using the self-test software (few practice exams) some
memorization and the student guides from the oracle 8 tuning - read through
once and not every item (not 8i class) - where the heck was statspack in
the examm, btw?  I took it in 20 minutes.  Only the network one to go.  Can't
wait to get this done so can do the 9i upgrade exam - then wishing to concentrate
on certification relating to 9ias - is there such a beast?
  
  -Original Message- 
  From: DENNIS WILLIAMS [mailto:[EMAIL PROTECTED]] 
  
  Sent: Tuesday, June 11, 2002 11:14 AM 
  To: Multiple recipients of list ORACLE-L 
  Subject: RE: Oracle Performance Tuning Exam 
 
  
  Arslan - I'm hoping you get some good replies since I
plan to take this exam 
  next. 
  
  I just took the B&R last week. The resource that
helped me the most is: 
  Oracle8i Certified Professional DBA Practice Exams by Jason
S. Couchman 
  http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=1G60ZMKA1 
  
  J&isbn=0072133414 (hopefully this link will work, it
will be broken into two 
  lines which you must patch back together). 
  
  Dennis Williams 
  DBA, 20% OCP 
  Lifetouch, Inc. 
  [EMAIL PROTECTED] 
 
 
  
  -Original Message- 
  Sent: Tuesday, June 11, 2002 7:38 AM 
  To: Multiple recipients of list ORACLE-L 
 
  
    I will enter my last exam at next week. 
    Could DBAs which have this exam  give  some advice. 
  
    
  --  
  Please see the official ORACLE-L FAQ: http://www.orafaq.com 
  
  --  
  Author: Arslan Bahar 
    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: DENNIS WILLIAMS 
    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 long to hold onto old Oracle CDs?

2003-02-25 Thread Mogens Nørgaard




Heh-heh. OK, I'm going to send the definitive and final message on this thread.
I just got it from Michael Möller:

 GOLD key functions are shown as bottom function. 

    ___ ___ 

  |Move up|Mov Dow|Mov Lef|Mov Rig|   | Gold  | HELP  |FndNxt
| Del L | 
  |  Top  |Bottom |StaOfLi|EndOfLi|   |  key  |KeyDefs| Find 
|Res Lin| 
  |___|___|___|___|   |___|___|___|___| 

  |MovByPa| Sect  |Append
| Del W | 
  To get help on commands, type a |  Do   | Fill  |EDT Rep|Res
Wor| 
  command or ? and press RETURN.  |___|___|___|___| 

  |  Do   |Reverse|Remove
| Del C | 
  For a list of all key definitions,  |Bottom |  Top  |Ins Her|Res
Cha| 
  type Keys and press RETURN, or  |___|___|___|___| 

  press GOLD-HELP.    |Sequenc|  EOL  |Sequenc|   
| 
  |ChngCas|Del EOL|SpecIns|  
| 
  To show a key definition, use the   |___|___|___|Return
| 
  command SHOW KEY.   |   EDT Line    |Select
| Subs  | 
  |   Open Line   | Reset
|   | 
  |___|___|___| 



That's it.

Mogens

Jesse, Rich wrote:

  WAS an editor?  WAS?  Some of us still use it!  Well, I have migrated to
the EVE editor built on TPU, but it still has the same wonderful
functionality of the original in addition to a programmable interface (wrote
some sweet sweet TPU back in the day).  The KB I'm typing this on is an
LK450, complete with the WORD-11 (MASS-11) keycaps and all the GOLD keydefs.

Yes, your recollection of KP keys 0, 4, and 5 are correct.  Remember the
vi-like substitution command?

Sorry, Jared, for the OT.  I MISS VMS!  Stability, performance, security.
No wonder it didn't sell.

Back to planning the removal of our remaining Oracle DBs from OpenVMS
:(


Rich

Rich JesseSystem/Database Administrator
[EMAIL PROTECTED]   Quad/Tech International, Sussex, WI USA


-Original Message-
Sent: Tuesday, February 25, 2003 4:41 AM
To: Multiple recipients of list ORACLE-L





0 was next line. Wasn't 4 Forward and 5 Back?  I've CC'ed Michael 
Möller, who writes DSI (Data Server Internals) classes in Oracle 
Development. He taught me all I ever needed to know about the EDT editor 
on VAX/VMS. He really should be able to remember all those wonderful 
keys. Yes, it was a fantastic editor, by the way.

  
  

Ah yes - too true. Now we are getting nostalgic...
  

  
  

Mogens

Gogala, Mladen wrote:

  
  
Nope, but I do have a 5MB RZ05 drive for interchangeable disks.
I don't have a computer to attach it to, but I have good memories
of KED and PF1 (Gold) key. KP-6 was "cut" GOLD-KP-6 was paste, PF2 was
"help" and PF3 was "Search". The best editor ever!

  






RE: SQL struggle - UPDATE too?

2003-02-25 Thread netmadcap
Saira : how do u want to achive this ? using procedure or a single update
stmt ?

-Original Message-
Somani
Sent: Tuesday, February 25, 2003 3:27 PM
To: Multiple recipients of list ORACLE-L


I am very confused (and fairly new to SQL which would be my excuse to
post such amateurish questions on this list).

Now I've been asked to update LAST_COST on item_w so it looks like this:

WHSE_CODEITEM_NUM   LAST_COST
 -- --
HL1  111230   1.12
CPD-TWH  111230-OR1.12
CPD-TGH  111230-OR1.12
HL1  50034 .91
MSH-CDS  50034 .91
CPD-TGH  50034-OR  .91
HL1  650300  4.789
TWH-STAT 650300  4.789
CPD-TWH  650300-OR   4.789
CPD-TGH  650300-OR   4.789


-Original Message-
Sent: February 25, 2003 12:55 PM
To: '[EMAIL PROTECTED]'

List Gurus,

I need help and I won't be ashamed to ask :)

Oracle 8.1.7 on AIX 4.3

Here is what my data looks like in a table called item_w:

WHSE_CODEITEM_NUM   LAST_COST
 -- --
HL1  111230   1.12
CPD-TWH  111230-OR   0
CPD-TGH  111230-OR   0
HL1  50034 .91
MSH-CDS  50034   0
CPD-TGH  50034-OR0
HL1  650300  4.789
TWH-STAT 650300  0
CPD-TWH  650300-OR   0
CPD-TGH  650300-OR   0

If you'll notice, only the items with WHSE_CODE='HL1' have a cost
associated with them.

What I need to is:

Parse ITEM_NUM for those items which have a suffix of -OR in order to
compare with an ITEM_NUM without -OR so that I can take the last cost
from there and display it beside the one that has -OR. Also note, there
are some $0 cost items that don't have a suffix of -OR; I would need to
match those up with a cost as well.

So in the end, I suppose, this is the result I'm looking for:

WHSE_CODEITEM_NUM  LAST_COSTLAST_COST_REV
 - --
HL1  111230 1.12   1.12
CPD-TWH  111230-OR  0  1.12
CPD-TGH  111230-OR  0  1.12
HL1  50034  0.91   0.91
MSH-CDS  50034  0  0.91
CPD-TGH  50034-OR   0  0.91
HL1  650300 4.789  4.789
TWH-STAT 650300 0  4.789
CPD-TWH  650300-OR  0  4.789
CPD-TGH  650300-OR  0  4.789

And if any of you out there use Cognos Impromptu, perhaps you could tell
me how I can achieve these results in a report.

Thanks in advance for your time,


Saira Somani
IT Support/Analyst
Hospital Logistics Inc.

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Saira Somani
  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: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Freeman Robert - IL
Yes, but WHO's truth. Truth is a three sided sword, your side, my side
and 
The edge.. Truth is, unfortunately, subjective Point in case,
politics. :-)

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Tuesday, February 25, 2003 9:54 PM
To: Multiple recipients of list ORACLE-L
comm


The only thing wrong with President Wilson's advice is that exceptional
oratory skill can, in the short term, overcome some pretty horrendous
content deficiencies. I do have faith enough in free people to believe
that in the long term, the truth wins.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
Sent: Tuesday, February 25, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L
comm

Been a while since I have been able to scan the list, but who could
resist
this one??? :-)

Additional Do's:

Do understand the nothing is unbreakable or bullet proof, assume the
impossible isn't and have a plan for disaster management.
Do appreciate that oracle support probably does deal with enough
clueless
people to expect you to be one of the same until you demonstrate
otherwise.
Do remember that somewhere there is life outside of RDBMS challenges,
and it
should be kept relative.
Do take the time to share your experiences, it makes life much simpler
for
all of us.
Do clearly define the objective, before you start detailing the
solution.

Additional Do Nots
Don't get so focused on a prescribed solution that you don't realize
when it
becomes self-defeating to the driving cause.
Don't forget that as good as you are at being a dba, you will make
mistakes
and mis-manage, and so will those who make a living managing you.
Don't forget to prescribe the solution that user needs, not the one they
necessarily demand.

And to the credit of Woodrow Wilson - "The wisest thing to do with a
fool is
to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."


-Original Message-
- IL
Sent: Monday, February 24, 2003 10:40 AM
To: Multiple recipients of list ORACLE-L


* SHOCK *

You mean someone disagrees with *ME* 

Horrors the world is soon to come to an end!!

:-))

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Monday, February 24, 2003 7:09 AM
To: Multiple recipients of list ORACLE-L
comments


MccDBA:

It is just Robert's Don't list ;) but you can always give your opinion 
abt that. Would you mind telling us 'Why you don't agree on them?'


KG

--- dist cash <[EMAIL PROTECTED]> wrote:
> 
> 
> I don't agree with "don't" #1 and #5.
> 
> 
> 
> 
> >From: "Stephane Faroult" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> >Subject: RE: RE: Top 10 DBA Do's and Don'ts anyone - Here is my
> list,
> >comments
> >Date: Mon, 24 Feb 2003 00:23:37 -0800
> >
> > >Here is the list of top 10 do's and don't that I
> > >came up with.
> > >
> > >#1 - Do Maintain your Expertise
> > >#2 - Do Use the DBMS_STATS Package to Collect
> > >Statistics
> > >#3 - Do Use Bind Variables
> > >#4 - Do Put your Production Database in ARCHIVELOG
> > >Mode
> > >#5 - Do Use Locally Managed Tablespaces
> > >#6 - Do Monitor Your Database
> > >#7 - Do Practice Recoveries
> > >#8 - Do Get Involved with User Groups and Other
> > >Resources
> > >#9 - Do Establish Standards and Change Control
> > >Processes
> > >#10 - Do Think Ahead
> > >
> > >Bonus! - Do tune to Reduce Logical IO's Not
> > >Physical IO's.
> > >(With regards to Cary!)
> > >
> > >Oracle Database Top 10 Don'ts
> > >#1 - Don't Waste Time Re-Organizing Your Databases
> > >#2 - Don't Use .Log or Other Common Extensions For
> > >Your Database File Names
> > >#3 - Don't Leave Your Database Open To Attack
> > >#4 - Don't Decide Against Hot Backups
> > >#5 - Don't Use ASSM
> > >#6 - Don't Forget the 80/20 Rule
> > >#7 - Don't Stack Views
> > >#8 - Don't Be a Normalization Bigot
> > >#9 - Don't Forget to Document Everything
> > >#10 - Do Not Use Products You are Not Licensed For.
> > >
> > >
> > >Bonus!! - Do Not Assume A Good or Bad Hit Ratio
> > >Means Anything
> > >
> > >Ok, anyone wanna comment?
> > >
> > >
> > >Robert G. Freeman
> > >Technical Management Consultant
> > >TUSC - The Oracle Experts www.tusc.com
> > >904.708.5076 Cell (It's everywhere that I am!)
> > >Author of several books you can find on Amazon.com!
> > >
> >
> >Robert,
> >
> >   DO #3 and DON'T #7 are developer stuff, not DBA stuff ... I would 
> >gladly replace DO #3 by 'Relentlessly preach good practice
> to
> >developers'. 

RE: Event Triggers in 8i ?

2003-02-25 Thread netmadcap
Bob,

here is the code :

CREATE OR REPLACE TRIGGER bef_dbshutdown
  BEFORE SHUTDOWN
  ON DATABASE
BEGIN
  insert into db_updown_log(log_date) values(sysdate);
END;
/

u just have to replace the insert statement with whatever u want. also,
doesnt matter under what schema u create the trigger.

hope this helps !

-sam

-Original Message-
Sent: Tuesday, February 25, 2003 3:39 PM
To: Multiple recipients of list ORACLE-L


All,

I would like to insert v$license table info into
different table before shutting down the database with
the help of Event Triggers.

SQL>desc v$license
Column NameNull?Type
--  
SESSIONS_MAXNUMBER
SESSIONS_WARNINGNUMBER
SESSIONS_CURRENTNUMBER
SESSIONS_HIGHWATER  NUMBER
USERS_MAX   NUMBER

I would like to add sysdate in addition to above
columns into temporary table on daily basis.

Did any one setup similar to this?

Thanks,
Bob



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Bob 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).




-- 
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: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Freeman Robert - IL
>> And to the credit of Woodrow Wilson - "The wisest thing to do with a fool
is
>> to encourage him to hire a hall and discourse to his fellow citizens.
>> Nothing chills nonsense like exposure to air."

Interesting quote. It's funny, I do present with some frequency, and I
stress out
about it every time I do I'm just sure that there are folks out there
that know
a lot more about the topic I'm talking about than I do. I fully expect,
every single
time, to hear hoards of folks laughing at me when I say something totally
stupid.

However, the best experience I have ever had presenting was at UKOUG this
last year after my
Oracle9i New Features presentation. First, I got some great feedback from
Jonathan Lewis,
which I was very thankful for (but, honestly, I was so out of it at the time
(still in stress induced fight or flight mode) that I don't remember much of
it!). Second, I saw a great presentation by Connor McDonald on 9i. Connor
does a much better job of presenting than I do.


Cheers to you all!

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Tuesday, February 25, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L
comm


Been a while since I have been able to scan the list, but who could resist
this one??? :-)

Additional Do's:

Do understand the nothing is unbreakable or bullet proof, assume the
impossible isn't and have a plan for disaster management.
Do appreciate that oracle support probably does deal with enough clueless
people to expect you to be one of the same until you demonstrate otherwise.
Do remember that somewhere there is life outside of RDBMS challenges, and it
should be kept relative.
Do take the time to share your experiences, it makes life much simpler for
all of us.
Do clearly define the objective, before you start detailing the solution.

Additional Do Nots
Don't get so focused on a prescribed solution that you don't realize when it
becomes self-defeating to the driving cause.
Don't forget that as good as you are at being a dba, you will make mistakes
and mis-manage, and so will those who make a living managing you.
Don't forget to prescribe the solution that user needs, not the one they
necessarily demand.

And to the credit of Woodrow Wilson - "The wisest thing to do with a fool is
to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."


-Original Message-
- IL
Sent: Monday, February 24, 2003 10:40 AM
To: Multiple recipients of list ORACLE-L


* SHOCK *

You mean someone disagrees with *ME* 

Horrors the world is soon to come to an end!!

:-))

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Monday, February 24, 2003 7:09 AM
To: Multiple recipients of list ORACLE-L
comments


MccDBA:

It is just Robert's Don't list ;) but you can always give your opinion 
abt that. Would you mind telling us 'Why you don't agree on them?'


KG

--- dist cash <[EMAIL PROTECTED]> wrote:
> 
> 
> I don't agree with "don't" #1 and #5.
> 
> 
> 
> 
> >From: "Stephane Faroult" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> >Subject: RE: RE: Top 10 DBA Do's and Don'ts anyone - Here is my
> list,
> >comments
> >Date: Mon, 24 Feb 2003 00:23:37 -0800
> >
> > >Here is the list of top 10 do's and don't that I
> > >came up with.
> > >
> > >#1 - Do Maintain your Expertise
> > >#2 - Do Use the DBMS_STATS Package to Collect
> > >Statistics
> > >#3 - Do Use Bind Variables
> > >#4 - Do Put your Production Database in ARCHIVELOG
> > >Mode
> > >#5 - Do Use Locally Managed Tablespaces
> > >#6 - Do Monitor Your Database
> > >#7 - Do Practice Recoveries
> > >#8 - Do Get Involved with User Groups and Other
> > >Resources
> > >#9 - Do Establish Standards and Change Control
> > >Processes
> > >#10 - Do Think Ahead
> > >
> > >Bonus! - Do tune to Reduce Logical IO's Not
> > >Physical IO's.
> > >(With regards to Cary!)
> > >
> > >Oracle Database Top 10 Don'ts
> > >#1 - Don't Waste Time Re-Organizing Your Databases
> > >#2 - Don't Use .Log or Other Common Extensions For
> > >Your Database File Names
> > >#3 - Don't Leave Your Database Open To Attack
> > >#4 - Don't Decide Against Hot Backups
> > >#5 - Don't Use ASSM
> > >#6 - Don't Forget the 80/20 Rule
> > >#7 - Don't Stack Views
> > >#8 - Don't Be a Normalization Bigot
> > >#9 - Don't Forget to Document Everything
> > >#10 - Do Not Use Products You are Not Licensed For.
> > >
> > >
> > >Bonus!! - Do Not Assume A Good or Bad Hit Ratio
> > >Means Anything
> > >
> > >Ok, anyone wanna comment?
> > >
> > >
> > >Robert G. Freeman
> > >Technical Management Consultant
> > >TUSC - Th

RE: It takes too long to shutdown database

2003-02-25 Thread Sinardy Xing
Title: It takes too long to shutdown database



Hi 
David,
 
These 
are what I think
 
first, 
you are not using shutdown immediate (Oracle waiting user to close 
the session) - unlikely for this case.
or
It has 
been so long you never shutdown your database, Oracle doing housekeeping, your 
rollback segment, update your data files, things like 
that
or
you 
are using archive log mode with 8.1.6, and legend said bug cause the 
shutdown took hours (oracle code performing endless loop I quest), I 
encounter this problem then I did :
    startup force follow with shutdown immediate  
(hmm... I think, I am a lousy dba, he he he...)
the problem never occur again, and my database 
life happily ever after.
 
Sinardy
 

  -Original Message-From: Nguyen, David M 
  [mailto:[EMAIL PROTECTED]Sent: 26 February 2003 
  09:44To: Multiple recipients of list ORACLE-LSubject: It 
  takes too long to shutdown database
  I try to bounce database by shutting it down and starting it 
  back up but it just hang in there for almost 45 minutes trying to shut 
  down.  It is running on Solaris8, I can press Ctrl+C to interrupt it or 
  issue a kill command to kill it but I hesitate to do so.  Do you have any 
  advices and why it takes too long to shutdown database?  It usually only 
  takes me about 3 minutes to bounce database.
  Thanks, David 



RE: RE: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Cary Millsap
The only thing wrong with President Wilson's advice is that exceptional
oratory skill can, in the short term, overcome some pretty horrendous
content deficiencies. I do have faith enough in free people to believe
that in the long term, the truth wins.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
Sent: Tuesday, February 25, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L
comm

Been a while since I have been able to scan the list, but who could
resist
this one??? :-)

Additional Do's:

Do understand the nothing is unbreakable or bullet proof, assume the
impossible isn't and have a plan for disaster management.
Do appreciate that oracle support probably does deal with enough
clueless
people to expect you to be one of the same until you demonstrate
otherwise.
Do remember that somewhere there is life outside of RDBMS challenges,
and it
should be kept relative.
Do take the time to share your experiences, it makes life much simpler
for
all of us.
Do clearly define the objective, before you start detailing the
solution.

Additional Do Nots
Don't get so focused on a prescribed solution that you don't realize
when it
becomes self-defeating to the driving cause.
Don't forget that as good as you are at being a dba, you will make
mistakes
and mis-manage, and so will those who make a living managing you.
Don't forget to prescribe the solution that user needs, not the one they
necessarily demand.

And to the credit of Woodrow Wilson - "The wisest thing to do with a
fool is
to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."


-Original Message-
- IL
Sent: Monday, February 24, 2003 10:40 AM
To: Multiple recipients of list ORACLE-L


* SHOCK *

You mean someone disagrees with *ME* 

Horrors the world is soon to come to an end!!

:-))

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Monday, February 24, 2003 7:09 AM
To: Multiple recipients of list ORACLE-L
comments


MccDBA:

It is just Robert's Don't list ;) but you can always give your opinion 
abt that. Would you mind telling us 'Why you don't agree on them?'


KG

--- dist cash <[EMAIL PROTECTED]> wrote:
> 
> 
> I don't agree with "don't" #1 and #5.
> 
> 
> 
> 
> >From: "Stephane Faroult" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> >Subject: RE: RE: Top 10 DBA Do's and Don'ts anyone - Here is my
> list,
> >comments
> >Date: Mon, 24 Feb 2003 00:23:37 -0800
> >
> > >Here is the list of top 10 do's and don't that I
> > >came up with.
> > >
> > >#1 - Do Maintain your Expertise
> > >#2 - Do Use the DBMS_STATS Package to Collect
> > >Statistics
> > >#3 - Do Use Bind Variables
> > >#4 - Do Put your Production Database in ARCHIVELOG
> > >Mode
> > >#5 - Do Use Locally Managed Tablespaces
> > >#6 - Do Monitor Your Database
> > >#7 - Do Practice Recoveries
> > >#8 - Do Get Involved with User Groups and Other
> > >Resources
> > >#9 - Do Establish Standards and Change Control
> > >Processes
> > >#10 - Do Think Ahead
> > >
> > >Bonus! - Do tune to Reduce Logical IO's Not
> > >Physical IO's.
> > >(With regards to Cary!)
> > >
> > >Oracle Database Top 10 Don'ts
> > >#1 - Don't Waste Time Re-Organizing Your Databases
> > >#2 - Don't Use .Log or Other Common Extensions For
> > >Your Database File Names
> > >#3 - Don't Leave Your Database Open To Attack
> > >#4 - Don't Decide Against Hot Backups
> > >#5 - Don't Use ASSM
> > >#6 - Don't Forget the 80/20 Rule
> > >#7 - Don't Stack Views
> > >#8 - Don't Be a Normalization Bigot
> > >#9 - Don't Forget to Document Everything
> > >#10 - Do Not Use Products You are Not Licensed For.
> > >
> > >
> > >Bonus!! - Do Not Assume A Good or Bad Hit Ratio
> > >Means Anything
> > >
> > >Ok, anyone wanna comment?
> > >
> > >
> > >Robert G. Freeman
> > >Technical Management Consultant
> > >TUSC - The Oracle Experts www.tusc.com
> > >904.708.5076 Cell (It's everywhere that I am!)
> > >Author of several books you can find on Amazon.com!
> > >
> >
> >Robert,
> >
> >   DO #3 and DON'T #7 are developer stuff, not DBA stuff ... I would 
> >gladly replace DO #3 by 'Relentlessly preach good practice
> to
> >developers'. I can hardly talk to a developer without mentioning
> >DBMA_APPLICATION_INFO in the first 30 seconds :-).
> >
> >Regards,
> >
> >Stephane Faroult
> >Oriole
> >--
> >Please see the official ORACLE-L FAQ: http://www.orafaq.net
> >--
> >Author: Stephane Faroult
> >   INET: [EMAIL PROTECTED]
> >
> >Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> >San Diego, California-- Mailing list and web hosting
> services
>
>-

RE: LIBRARY CACHE LOCK !!!! ( SQL Tuning )

2003-02-25 Thread John Clarke
To see who's holding a library cache lock on your object, you could run
the following query:

Select s.sid,kglpnmod "mode", kglpnreq "req"
>From x$kglpn p, v$session s
Where p.kglpnuse = s.sddr
And kglpnhdl=
(select p1raw 
from v$session_wait
where sid=&your_sid)
/

(as long as you know your sid)

I use this whenever there are lots of library cache pin, library cache
lock, or library cache load lock waits in v$session_wait (in my
environment, usually b/c developers are compiling code at inappropriate
times).

- John

-Original Message-
Madhusudana
Sent: Tuesday, February 25, 2003 8:49 PM
To: Multiple recipients of list ORACLE-L

Thanks Jared 


Here is the Graph i can see in the trace file : ( SELF DEADLOCK  )















A deadlock among DDL and parse locks is detected.
This deadlock is usually due to user errors in
the design of an application or from issuing a set
of concurrent statements which can cause a deadlock.
This should not be reported to Oracle Support.
The following information may aid in finding
the errors which cause the deadlock:
ORA-04020: deadlock detected while trying to lock object
MDO.MDO_BSE_TEMP_RETEK_PRICE

  object   waiting  waiting   blocking blocking
  handle   session lock mode   session lock mode
        
c0004f641168  c00031a6df18 c00033dd66f8X
c00031a6df18
c00033cef0a0S

-- DUMP OF WAITING AND BLOCKING LOCKS --

- WAITING LOCK -

SO: c00033dd66f8, type: 33, owner: c0003393b710, flag:
INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=c00033dd66f8 handle=c0004f641168
request=X
call pin=0 session pin=0
user=c00031a6df18 session=c00031a6df18 count=0 flags=[00]
savepoint=408
LIBRARY OBJECT HANDLE: handle=c0004f641168
name=MDO.MDO_BSE_TEMP_RETEK_PRICE
hash=74b60038 timestamp=01-09-2002 18:05:20
namespace=TABL/PRCD/TYPE flags=TIM/SML/[0200]
--=-055d-075d lock=S pin=S latch=1
lwt=c0004f641198[c00033dd6718,c00033dd6718]
ltm=c0004f6411a8[c0004f6411a8,c0004f6411a8]
pwt=c0004f6411c8[c0004f6411c8,c0004f6411c8]
ptm=c0004f641258[c0004f641258,c0004f641258]
ref=c0004f641178[c0004e451f50,c00035020518]
  LIBRARY OBJECT: object=c0004f6476a0
  type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
  DATA BLOCKS:
  data# heap  pointer status pins change
  -   --  --
  0 c0004f6410a8 c0004f647790 I/P/A 0 NONE
  2 c000483699e0 c00038dfdcb8 I/P/A 1 NONE
  3 c00048369a88 c00047ed33f0 I/-/A 0 NONE
  4 c0004f640c98 c000354158b8 I/-/A 0 NONE
  6 c0004f640d400 -/P/- 0 NONE
  8 c0004f640bd0 c0003b9a80f0 I/-/A 0 NONE
  9 c00048369b500 I/P/- 0 NONE
 10 c0004f640de8 c0003bf98e90 I/-/A 0 NONE
- BLOCKING LOCK 

SO: c00033cef0a0, type: 33, owner: c00033d58720, flag:
INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=c00033cef0a0 handle=c0004f641168
mode=S
call pin=c00033cec8b8 session pin=0
user=c00031a6df18 session=c00031a6df18 count=5 flags=PNC/[04]
savepoint=241
LIBRARY OBJECT HANDLE: handle=c0004f641168
name=MDO.MDO_BSE_TEMP_RETEK_PRICE
hash=74b60038 timestamp=01-09-2002 18:05:20
namespace=TABL/PRCD/TYPE flags=TIM/SML/[0200]
--=-055d-075d lock=S pin=S latch=1
lwt=c0004f641198[c00033dd6718,c00033dd6718]
ltm=c0004f6411a8[c0004f6411a8,c0004f6411a8]
pwt=c0004f6411c8[c0004f6411c8,c0004f6411c8]
ptm=c0004f641258[c0004f641258,c0004f641258]
ref=c0004f641178[c0004e451f50,c00035020518]
  LIBRARY OBJECT: object=c0004f6476a0
  type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
  DATA BLOCKS:
  data# heap  pointer status pins change
  -   --  --
  0 c0004f6410a8 c0004f647790 I/P/A 0 NONE
  2 c000483699e0 c00038dfdcb8 I/P/A 1 NONE
  3 c00048369a88 c00047ed33f0 I/-/A 0 NONE
  4 c0004f640c98 c000354158b8 I/-/A 0 NONE
  6 c0004f640d400 -/P/- 0 NONE
  8 c0004f6

Re: Select Statement Gone South??

2003-02-25 Thread Ferenc Mantfeld
Title: Select Statement Gone South??



Laura
 
It would seem you have a Cartesian product, since 
you are not joining in the pph alias (part_price_histories )  into the 
main query, but you have included as a standalone correlated subquery, which 
then references two of the outer query's tables.
 
Join the pph directly to the other three tables and 
then put and AND clause to include the correlated subquery, that ought to do 
it.
 
HTH. Regards :
Ferenc MantfeldDreaming costs you nothing. Not dreaming costs you 
everything.

  - Original Message - 
  From: 
  Burton, 
  Laura L. 
  To: Multiple recipients of list ORACLE-L 
  
  Sent: Wednesday, February 26, 2003 12:23 
  PM
  Subject: Select Statement Gone 
  South??
  
  I am inserting records into a table 
  based on a select statement and it is taking way too much time.  I have 
  created indexes of the foreign keys and tried to rearrange the where clause to 
  omit records earlier, but to no avail.  
  The statement looks like this:
  Insert into table test
    select 
  part_num, 
   
  nomenclature, 
   
  to_char(requisition_date,'yddd')||lpad(preq.document_serial,4,0),
   
  2,  /*  '53-Purchase'  */
   
  PSA.TRANS_date,
   
  requisition_qty, 
   
  unit_price,
   
  4  /*  'ALMD Disapproval'  */
      from part_master_catalogs 
  pmc,
   
  part_requisitions preq,
   
  part_price_histories pph,
   
  part_status_assocs psa
     
  where preq.pmc_id_fk = pmc.pmc_id
   and preq.preq_id = 
  psa.preq_id_fk
   and 
  psa.req_status_cd_fk = 'D'
   AND PSA.TRANS_DATE 
  <= TO_DATE('&&NEWMEDATE','MM-DD-')
   AND PSA.TRANS_DATE 
  >  TO_DATE('&&LASTMEDATE','MM-DD-')
   and 
  pmc.pre_approved_purch_flag = 'N'
   and 
  pmc.company_reimburse_flag = 'Y'
   and pph.pph_id = 
  (select max(pph_id) from part_price_histories
      
  where preq.pmc_id_fk = pmc_id_fk
    
  and requisition_date >= effective_date)
  Any ideas??  Any insight would be 
  appreciated.
  Thanks,
  Laura


RE: urgent: lots of db file sequential read

2003-02-25 Thread John Clarke
What's the average time/wait, since adding devices?

I think you should focus on time/event, not count/event.

Thanks.

-Original Message-
Sent: Tuesday, February 25, 2003 3:04 PM
To: Multiple recipients of list ORACLE-L

hi, friends:
  My db server has one poor t3(raid5, 256M Cache) and it is rather slow
in disk io.
  This night, I added a second T3(256M Cache,Raid10) to the database and
moved half of datafiles to the second raid.
  But it seems from statspack, IO wait is more than before:

StatisticTotal   per Secondper
Trans
-  

CPU used by this session66,663 23.5
8.2
CPU used when call started  66,692 23.5
8.2

  
---
db file sequential read   225,846  178,026
93.03
log file sync   8,6044,167
2.18
log file parallel write 8,6653,593
1.88
db file parallel write7682,455
1.28

now:  66 cpu used /178 cpu waited.
But with the old configuration,  cpu used vs cpu waited is like:
old:  7832 cpu used / 17508 cpu waited


  
---
db file sequential read10,164,408   17,508,898
83.50
db file parallel write 46,1301,072,257
5.11
enqueue90,498  854,241
4.07

StatisticTotal   per Secondper
Trans
-  

CPU used by this session 7,832,321167.4
9.5
CPU used when call started   7,832,333167.4
9.5

  These snapshot are from different time and different time lengh, but I
think after i added a disk array to disk array, IO wait should slowdown,
but from the new statspack, relatively more time is spent on io wait?
  How to explain this?
  Thanks.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: chao_ping
  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: John Clarke
  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).



OEM - Automation of Start of Collection for Performance Reports

2003-02-25 Thread VIVEK_SHARMA

How can Start of Collection of Performance Reports be automated in OEM 9.2 , before a 
Transactions' Run ?

There Exist about 100 such Performance Reports .
Manually starting Collection of these individually takes too much effort & collection 
has to be started much before the actual transactions' run thereby containing lots of 
unnecessary data .

NOTE - Collection for All these STARTed performance reports can be STOPPED by a Single 
Click .

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: VIVEK_SHARMA
  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: It takes too long to shutdown database

2003-02-25 Thread Ron Yount
Title: Message



David,
 
One 
likely culprit is the need to rollback a long-running transaction that did not 
complete before shutdown.
 
You 
can avoid this wait on shutdown with abort, but then it will still need to 
process the rollback on startup.
 
You 
did not mention the type of shutdown that you issued: normal, transactional, 
immediate, abort.  Each one has potential to add more necessary events 
before shutdown will complete.  The alert log is a good place to start 
looking when this occurs.
 
-Ron-

  
  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Nguyen, David MSent: 
  Tuesday, February 25, 2003 7:44 PMTo: Multiple recipients of list 
  ORACLE-LSubject: It takes too long to shutdown 
  database
  I try to bounce database by shutting it down and starting it 
  back up but it just hang in there for almost 45 minutes trying to shut 
  down.  It is running on Solaris8, I can press Ctrl+C to interrupt it or 
  issue a kill command to kill it but I hesitate to do so.  Do you have any 
  advices and why it takes too long to shutdown database?  It usually only 
  takes me about 3 minutes to bounce database.
  Thanks, David 



RE: RE: Top 10 DBA Do's and Don'ts anyone - Here is my list, comm

2003-02-25 Thread Ron Yount
Been a while since I have been able to scan the list, but who could resist
this one??? :-)

Additional Do's:

Do understand the nothing is unbreakable or bullet proof, assume the
impossible isn't and have a plan for disaster management.
Do appreciate that oracle support probably does deal with enough clueless
people to expect you to be one of the same until you demonstrate otherwise.
Do remember that somewhere there is life outside of RDBMS challenges, and it
should be kept relative.
Do take the time to share your experiences, it makes life much simpler for
all of us.
Do clearly define the objective, before you start detailing the solution.

Additional Do Nots
Don't get so focused on a prescribed solution that you don't realize when it
becomes self-defeating to the driving cause.
Don't forget that as good as you are at being a dba, you will make mistakes
and mis-manage, and so will those who make a living managing you.
Don't forget to prescribe the solution that user needs, not the one they
necessarily demand.

And to the credit of Woodrow Wilson - "The wisest thing to do with a fool is
to encourage him to hire a hall and discourse to his fellow citizens.
Nothing chills nonsense like exposure to air."


-Original Message-
- IL
Sent: Monday, February 24, 2003 10:40 AM
To: Multiple recipients of list ORACLE-L


* SHOCK *

You mean someone disagrees with *ME* 

Horrors the world is soon to come to an end!!

:-))

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!)
Author of several books you can find on Amazon.com!


-Original Message-
Sent: Monday, February 24, 2003 7:09 AM
To: Multiple recipients of list ORACLE-L
comments


MccDBA:

It is just Robert's Don't list ;) but you can always give your opinion 
abt that. Would you mind telling us 'Why you don't agree on them?'


KG

--- dist cash <[EMAIL PROTECTED]> wrote:
> 
> 
> I don't agree with "don't" #1 and #5.
> 
> 
> 
> 
> >From: "Stephane Faroult" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> >Subject: RE: RE: Top 10 DBA Do's and Don'ts anyone - Here is my
> list,
> >comments
> >Date: Mon, 24 Feb 2003 00:23:37 -0800
> >
> > >Here is the list of top 10 do's and don't that I
> > >came up with.
> > >
> > >#1 - Do Maintain your Expertise
> > >#2 - Do Use the DBMS_STATS Package to Collect
> > >Statistics
> > >#3 - Do Use Bind Variables
> > >#4 - Do Put your Production Database in ARCHIVELOG
> > >Mode
> > >#5 - Do Use Locally Managed Tablespaces
> > >#6 - Do Monitor Your Database
> > >#7 - Do Practice Recoveries
> > >#8 - Do Get Involved with User Groups and Other
> > >Resources
> > >#9 - Do Establish Standards and Change Control
> > >Processes
> > >#10 - Do Think Ahead
> > >
> > >Bonus! - Do tune to Reduce Logical IO's Not
> > >Physical IO's.
> > >(With regards to Cary!)
> > >
> > >Oracle Database Top 10 Don'ts
> > >#1 - Don't Waste Time Re-Organizing Your Databases
> > >#2 - Don't Use .Log or Other Common Extensions For
> > >Your Database File Names
> > >#3 - Don't Leave Your Database Open To Attack
> > >#4 - Don't Decide Against Hot Backups
> > >#5 - Don't Use ASSM
> > >#6 - Don't Forget the 80/20 Rule
> > >#7 - Don't Stack Views
> > >#8 - Don't Be a Normalization Bigot
> > >#9 - Don't Forget to Document Everything
> > >#10 - Do Not Use Products You are Not Licensed For.
> > >
> > >
> > >Bonus!! - Do Not Assume A Good or Bad Hit Ratio
> > >Means Anything
> > >
> > >Ok, anyone wanna comment?
> > >
> > >
> > >Robert G. Freeman
> > >Technical Management Consultant
> > >TUSC - The Oracle Experts www.tusc.com
> > >904.708.5076 Cell (It's everywhere that I am!)
> > >Author of several books you can find on Amazon.com!
> > >
> >
> >Robert,
> >
> >   DO #3 and DON'T #7 are developer stuff, not DBA stuff ... I would 
> >gladly replace DO #3 by 'Relentlessly preach good practice
> to
> >developers'. I can hardly talk to a developer without mentioning
> >DBMA_APPLICATION_INFO in the first 30 seconds :-).
> >
> >Regards,
> >
> >Stephane Faroult
> >Oriole
> >--
> >Please see the official ORACLE-L FAQ: http://www.orafaq.net
> >--
> >Author: Stephane Faroult
> >   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: advanced junk mail protection and 2 months FREE*
> http:

Re: Select Statement Gone South??

2003-02-25 Thread Mark Richard
Laura,

Unfortunately it's hard to provide advice without knowing a lot more about
the tables, the cardinality of the columns in the where clause, and perhaps
even whether there are tricks we might be able to abuse by knowing
information about the data that's not immediately obvious.

Ignoring that, an explain plan (as requested by Connor) will certainly
help.  Other things that would help are row counts of each table, and for
the columns in the where clause what is there selectivity like.

One way to determine selectivity would be something like:

select count(*) total_rows,
 sum(decode(pre_approved_purch_flag, 'N', 1, 0)) pre_app_is_n,
 sum(decode(company_reimburse_flag, 'Y', 1, 0)) com_reim_is_y,
 sum(decode(pre_approved_purch_flag||company_reimburse_flag, 'NY', 1,
0)) both_cond_met
from part_master_catalogs

This will give an idea of how many rows meet each criteria, and how many
meet both criteria.  This may then give some hint as to whether an index
access path is worthwhile or whether a full table scan is quicker.  Is
there a magic figure to determine which is faster?  No.  But the extremes
(like 1% and 90%) will be obvious.

With regard to your specific query, I would ensure that the subselect
performs very fast since it is probably being called in some kind of nested
loop.  Since some of the columns in the subselect aren't prefixed with a
table alias I can't even work out which table they necessarily come from.

Regards,
 Mark.



   

"Burton, Laura 

L."  To: Multiple recipients of list ORACLE-L 
<[EMAIL PROTECTED]>   
<[EMAIL PROTECTED]   cc:   

plus.com>Subject: Select Statement Gone South??

Sent by:   

[EMAIL PROTECTED]  
   
om 

   

   

26/02/2003 

12:23  

Please respond 

to ORACLE-L

   

   





I am inserting records into a table based on a select statement and it is
taking way too much time.  I have created indexes of the foreign keys and
tried to rearrange the where clause to omit records earlier, but to no
avail.  The statement looks like this:


Insert into table test


  select part_num,


 nomenclature,


 to_char(requisition_date,'yddd')
||lpad(preq.document_serial,4,0),


 2,  /*  '53-Purchase'  */


 PSA.TRANS_date,


 requisition_qty,


 unit_price,


 4  /*  'ALMD Disapproval'  */


from part_master_catalogs pmc,


 part_requisitions preq,


 part_price_histories pph,


 part_status_assocs psa


   where preq.pmc_id_fk = pmc.pmc_id


 and preq.preq_id = psa.preq_id_fk


 and psa.req_status_cd_fk = 'D'


 AND PSA.TRANS_DATE <= TO_DATE('&&NEWMEDATE','MM-DD-')


 AND PSA.TRANS_DATE >  TO_DATE('&&LASTMEDATE','MM-DD-')


 and pmc.pre_approved_purch_flag = 'N'


 and pmc.company_reimburse_flag = 'Y'


 and pph.pph_id = (select max(pph_id) from part_price_histories


where preq.pmc_id_fk = pmc_id_fk


  and requisition_date >= effective_date)


Any ideas??  Any insight would be appreciated.


Thanks,


Laura






<<>>
   Privileged/Confidential information may be contained in this message.
  If you are not the addressee indicated in this message
   (or respons

RE: Select Statement Gone South??

2003-02-25 Thread Burton, Laura L.
Title: Select Statement Gone South??









Never mind...I found my problem!!  I had one key that had not been indexed. 

Laura

 

-Original Message-
From: Burton, Laura L.
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003
7:24 PM
To: Multiple recipients of list
ORACLE-L
Subject: Select Statement Gone
South??

 

I am inserting records into a table based on a select
statement and it is taking way too much time.  I have created indexes of the foreign
keys and tried to rearrange the where clause to omit records earlier, but to no
avail.  The statement looks like this:

Insert into table test

  select part_num, 


nomenclature, 


to_char(requisition_date,'yddd')||lpad(preq.document_serial,4,0),


2,  /*  '53-Purchase'  */


PSA.TRANS_date,


requisition_qty, 


unit_price,


4  /*  'ALMD Disapproval'  */

    from
part_master_catalogs pmc,


part_requisitions preq,


part_price_histories pph,


part_status_assocs psa

   where
preq.pmc_id_fk = pmc.pmc_id

 and
preq.preq_id = psa.preq_id_fk

 and
psa.req_status_cd_fk = 'D'

 AND
PSA.TRANS_DATE <= TO_DATE('&&NEWMEDATE','MM-DD-')

 AND
PSA.TRANS_DATE >  TO_DATE('&&LASTMEDATE','MM-DD-')

 and
pmc.pre_approved_purch_flag = 'N'

 and
pmc.company_reimburse_flag = 'Y'

 and
pph.pph_id = (select max(pph_id) from part_price_histories

   
where preq.pmc_id_fk = pmc_id_fk

 
and requisition_date >= effective_date)

Any ideas??  Any insight would be appreciated.

Thanks,

Laura








Re: update 30mil rows

2003-02-25 Thread Connor McDonald
Is the table partitioned ?  I though that parallel dml
only worked on partitioned tables before v9.  In any
event, you need to "alter session enable parallel dml"
before you start.

If you're not really getting parallel dml, then you
may have to fake it by using multiple sessions and
applying appropriate where-clauses to break the load
into pieces.

hth
connor

 --- Gurelei <[EMAIL PROTECTED]> wrote: > Hi all:
> 
> I need to update every row 30mil-rows table. 
> I have dropped the indices and running the update
>  in parallel:
> 
> update /*+ parallel (degree 8) */ table_name
> set field1=0;
> 
> Is there anything else I could to to speed up this
> process. I don't think I can do an update in
> nologging
> mode. I'm running 8.1.7.4
> 
> thanks for any advice.
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> -- 
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.net
> -- 
> 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).
>  

=
Connor McDonald
web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: [EMAIL PROTECTED]

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will 
sit in a boat and drink beer all day"

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  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: Select Statement Gone South??

2003-02-25 Thread Connor McDonald
If you run the 'select' in isolation does it also take
a long time?  This tells us whether its the insert or
the query that's hurting.  An explain-plan would also
help the list.

hth
connor

 --- "Burton, Laura L." <[EMAIL PROTECTED]> wrote:
> I am inserting records into a table based on a
> select statement and it is
> taking way too much time.  I have created indexes of
> the foreign keys and
> tried to rearrange the where clause to omit records
> earlier, but to no
> avail.  The statement looks like this:
> 
> Insert into table test
>   select part_num, 
>  nomenclature, 
>  
>
to_char(requisition_date,'yddd')||lpad(preq.document_serial,4,0),
>  2,  /*  '53-Purchase'  */
>  PSA.TRANS_date,
>  requisition_qty, 
>  unit_price,
>  4  /*  'ALMD Disapproval'  */
> from part_master_catalogs pmc,
>  part_requisitions preq,
>  part_price_histories pph,
>  part_status_assocs psa
>where preq.pmc_id_fk = pmc.pmc_id
>  and preq.preq_id = psa.preq_id_fk
>  and psa.req_status_cd_fk = 'D'
>  AND PSA.TRANS_DATE <=
> TO_DATE('&&NEWMEDATE','MM-DD-')
>  AND PSA.TRANS_DATE > 
> TO_DATE('&&LASTMEDATE','MM-DD-')
>  and pmc.pre_approved_purch_flag = 'N'
>  and pmc.company_reimburse_flag = 'Y'
>  and pph.pph_id = (select max(pph_id) from
> part_price_histories
> where preq.pmc_id_fk =
> pmc_id_fk
>   and requisition_date
> >= effective_date)
> 
> Any ideas??  Any insight would be appreciated.
> 
> Thanks,
> Laura
> 
>  

=
Connor McDonald
web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: [EMAIL PROTECTED]

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will 
sit in a boat and drink beer all day"

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  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: LIBRARY CACHE LOCK !!!! ( SQL Tuning )

2003-02-25 Thread Reddy, Madhusudana
Thanks Jared 


Here is the Graph i can see in the trace file : ( SELF DEADLOCK  )











A deadlock among DDL and parse locks is detected.
This deadlock is usually due to user errors in
the design of an application or from issuing a set
of concurrent statements which can cause a deadlock.
This should not be reported to Oracle Support.
The following information may aid in finding
the errors which cause the deadlock:
ORA-04020: deadlock detected while trying to lock object
MDO.MDO_BSE_TEMP_RETEK_PRICE

  object   waiting  waiting   blocking blocking
  handle   session lock mode   session lock mode
        
c0004f641168  c00031a6df18 c00033dd66f8X  c00031a6df18
c00033cef0a0S

-- DUMP OF WAITING AND BLOCKING LOCKS --

- WAITING LOCK -

SO: c00033dd66f8, type: 33, owner: c0003393b710, flag: INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=c00033dd66f8 handle=c0004f641168 request=X
call pin=0 session pin=0
user=c00031a6df18 session=c00031a6df18 count=0 flags=[00]
savepoint=408
LIBRARY OBJECT HANDLE: handle=c0004f641168
name=MDO.MDO_BSE_TEMP_RETEK_PRICE
hash=74b60038 timestamp=01-09-2002 18:05:20
namespace=TABL/PRCD/TYPE flags=TIM/SML/[0200]
--=-055d-075d lock=S pin=S latch=1
lwt=c0004f641198[c00033dd6718,c00033dd6718]
ltm=c0004f6411a8[c0004f6411a8,c0004f6411a8]
pwt=c0004f6411c8[c0004f6411c8,c0004f6411c8]
ptm=c0004f641258[c0004f641258,c0004f641258]
ref=c0004f641178[c0004e451f50,c00035020518]
  LIBRARY OBJECT: object=c0004f6476a0
  type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
  DATA BLOCKS:
  data# heap  pointer status pins change
  -   --  --
  0 c0004f6410a8 c0004f647790 I/P/A 0 NONE
  2 c000483699e0 c00038dfdcb8 I/P/A 1 NONE
  3 c00048369a88 c00047ed33f0 I/-/A 0 NONE
  4 c0004f640c98 c000354158b8 I/-/A 0 NONE
  6 c0004f640d400 -/P/- 0 NONE
  8 c0004f640bd0 c0003b9a80f0 I/-/A 0 NONE
  9 c00048369b500 I/P/- 0 NONE
 10 c0004f640de8 c0003bf98e90 I/-/A 0 NONE
- BLOCKING LOCK 

SO: c00033cef0a0, type: 33, owner: c00033d58720, flag: INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=c00033cef0a0 handle=c0004f641168 mode=S
call pin=c00033cec8b8 session pin=0
user=c00031a6df18 session=c00031a6df18 count=5 flags=PNC/[04]
savepoint=241
LIBRARY OBJECT HANDLE: handle=c0004f641168
name=MDO.MDO_BSE_TEMP_RETEK_PRICE
hash=74b60038 timestamp=01-09-2002 18:05:20
namespace=TABL/PRCD/TYPE flags=TIM/SML/[0200]
--=-055d-075d lock=S pin=S latch=1
lwt=c0004f641198[c00033dd6718,c00033dd6718]
ltm=c0004f6411a8[c0004f6411a8,c0004f6411a8]
pwt=c0004f6411c8[c0004f6411c8,c0004f6411c8]
ptm=c0004f641258[c0004f641258,c0004f641258]
ref=c0004f641178[c0004e451f50,c00035020518]
  LIBRARY OBJECT: object=c0004f6476a0
  type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
  DATA BLOCKS:
  data# heap  pointer status pins change
  -   --  --
  0 c0004f6410a8 c0004f647790 I/P/A 0 NONE
  2 c000483699e0 c00038dfdcb8 I/P/A 1 NONE
  3 c00048369a88 c00047ed33f0 I/-/A 0 NONE
  4 c0004f640c98 c000354158b8 I/-/A 0 NONE
  6 c0004f640d400 -/P/- 0 NONE
  8 c0004f640bd0 c0003b9a80f0 I/-/A 0 NONE
  9 c00048369b500 I/P/- 0 NONE
 10 c0004f640de8 c0003bf98e90 I/-/A 0 NONE











Re: dbms_job

2003-02-25 Thread Connor McDonald
It will submit the job and continue.  Even nicer is
that if you subsequently do a rollback later, then the
job will be roll'd back as well.  In this way, you
could put dbms_job into (say) a trigger and if the
statement later roll's back you don't end up with a
mess

hth
connor

 --- "Basavaraja, Ravindra"
<[EMAIL PROTECTED]> wrote: > Hi,
> 
> I have a procedure that submits a dbms_job for
> immediate processing for onetime.I want to know if
> the procedure that submits the job will have to wait
> till the job gets executed to execute the next piece
> of code after the dbms_job.submit() in the procedure
> or will the procedure submit the dbms_job and
> continue executing
> the next line of code in the procedure.
> 
> Thanks
> -- 
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.net
> -- 
> Author: Basavaraja, Ravindra
>   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).
>  

=
Connor McDonald
web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: [EMAIL PROTECTED]

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will 
sit in a boat and drink beer all day"

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  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).



It takes too long to shutdown database

2003-02-25 Thread Nguyen, David M
Title: It takes too long to shutdown database





I try to bounce database by shutting it down and starting it back up but it just hang in there for almost 45 minutes trying to shut down.  It is running on Solaris8, I can press Ctrl+C to interrupt it or issue a kill command to kill it but I hesitate to do so.  Do you have any advices and why it takes too long to shutdown database?  It usually only takes me about 3 minutes to bounce database.

Thanks,
David





Select Statement Gone South??

2003-02-25 Thread Burton, Laura L.
Title: Select Statement Gone South??





I am inserting records into a table based on a select statement and it is taking way too much time.  I have created indexes of the foreign keys and tried to rearrange the where clause to omit records earlier, but to no avail.  The statement looks like this:

Insert into table test

  select part_num, 

 nomenclature, 

 to_char(requisition_date,'yddd')||lpad(preq.document_serial,4,0),

 2,  /*  '53-Purchase'  */

 PSA.TRANS_date,

 requisition_qty, 

 unit_price,

 4  /*  'ALMD Disapproval'  */

    from part_master_catalogs pmc,

 part_requisitions preq,

 part_price_histories pph,

 part_status_assocs psa

   where preq.pmc_id_fk = pmc.pmc_id

 and preq.preq_id = psa.preq_id_fk

 and psa.req_status_cd_fk = 'D'

 AND PSA.TRANS_DATE <= TO_DATE('&&NEWMEDATE','MM-DD-')

 AND PSA.TRANS_DATE >  TO_DATE('&&LASTMEDATE','MM-DD-')

 and pmc.pre_approved_purch_flag = 'N'

 and pmc.company_reimburse_flag = 'Y'

 and pph.pph_id = (select max(pph_id) from part_price_histories

    where preq.pmc_id_fk = pmc_id_fk

  and requisition_date >= effective_date)

Any ideas??  Any insight would be appreciated.

Thanks,

Laura




RE: Sun admininstrator

2003-02-25 Thread Nguyen, David M









What's requirements?

 

David

 

-Original Message-
From: John Shaw
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003
5:04 PM
To: Multiple recipients of list
ORACLE-L
Subject: Sun admininstrator

 



I normally wouldn't post this kind
of thing on this forum - but since the job market stinks ya'all might know
someone who's looking.





My company has an opening for
a experienced Solaris admin. We are installing a F 12k (32processor) and they
want somebody with experience on it and haven't found anyone locally yet. 
Also have a Hitachi SAN (99000 lightning 2 T) so SAN experience is also wanted.
Unfortunately (please no flames - it's not me ) we don't have relo or can we
accept H1-b's. We are a private prison management company headquartered in
Nashville, Tn.  We are putting several good sized Oracle
databases on it (there's my Oracle connection). If you know anyone looking send
them my email.





Thanks 





[EMAIL PROTECTED]










RE: Problem starting Oracle on W2K

2003-02-25 Thread netmadcap
Thanks Chip !

well then if the service is started, i dont need the startora.sql !!!


-Original Message-
Sent: Tuesday, February 25, 2003 12:34 AM
To: Multiple recipients of list ORACLE-L


set ORACLE_HOME=d:\oracle\ora81
set ORACLE_SID=everest
lsnrctl start
net start OracleServiceeverest
svrmgrl @startora.sql


The windows service has to be started before connect internal works.

Have Fun :)

[EMAIL PROTECTED] wrote:

>Hi ...
>
>oracle 817 ee
>os - win2k sp3
>
>since i dont want oracle to start always on my home pc, i have changed the
>services to manual. whenever i want oracle, i run the below batch file :
>
>set ORACLE_HOME=d:\oracle\ora81
>set ORACLE_SID=everest
>lsnrctl start
>svrmgrl @startora.sql
>
>/* startora.sql */
>connect internal
>startup
>exit
>
>but when i start svrmgrl, i get the error "ORA-12560: TNS:protocol adapter
>error". but if i start oracle from the services, i can start svrmgrl
without
>any error.
>
>what wrong m i doing ?
>
>thanks !
>
>
>
>



--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Chip
  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: DBMS_STATS

2003-02-25 Thread Johnston, Tim
To expand on this, the action level is controlled by the granularity
parameter...

Granularity of statistics to collect (only pertinent if the table is
partitioned). 

DEFAULT: Gather global- and partition-level statistics. 

SUBPARTITION: Gather subpartition-level statistics. 

PARTITION: Gather partition-level statistics. 

GLOBAL: Gather global statistics. 


So, in you case, run the following...

execute dbms_stats.gather_table_stats(ownname => 'LDGADMIN', -
  tabname => 'LOG_TRANS', -
  partname => 'LOG_TRANS_20030102',
  estimate_percent => 5,
  granularity => 'PARTITION');

See the supplied package reference for more details...

Tim

-Original Message-
Sent: Tuesday, February 25, 2003 4:50 PM
To: Multiple recipients of list ORACLE-L



The default action of dbms_stats against
a single partition of a partitioned table is
much more aggressive than a simple
analyze of the partition.

At the least, it does a similar analyze of
the whole table in order to maintain the
global table statistics - you need to set
the granularity of the analyze to stop this
happening.

On a quick test, with sql_trace turned on
and using 9.2.0.2, your choice of parameters
gave me:

Two 5% analyzes of the specified partition,
with a small difference relating to one longish
varchar() column.

One 5% analyze of the whole table.

One 50% analyze of the whole table - restricted
to a much smaller process of a subset of the columns
that omitted the one longish varchar() column.



Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

Coming soon one-day tutorials:
Cost Based Optimisation
Trouble-shooting and Tuning
Indexing Strategies
(see http://www.jlcomp.demon.co.uk/tutorial.html )

UK___March 19th
USA_(FL)_May 2nd


Next Seminar dates:
(see http://www.jlcomp.demon.co.uk/seminar.html )

USA_(CA, TX)_August


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: 25 February 2003 18:12


> I have never had good luck with DBMS_STATS.  It seems that the old
analyze runs
> much faster.
>
> Runs in 45 seconds:
> analyze table log_trans partition (log_trans_20030104) estimate
statistics
> sample 5 percent;
>
> Takes over 2 hours:
> execute dbms_stats.gather_table_stats(ownname => 'LDGADMIN', -
>   tabname => 'LOG_TRANS', -
>   partname =>
'LOG_TRANS_20030102', -
>   estimate_percent => 5);
>
> Am I missing something?  Aren't both commands the same?
>
> Thanks,
> Tom
>

-- 
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: Johnston, Tim
  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: LIBRARY CACHE LOCK !!!! ( SQL Tuning )

2003-02-25 Thread Jared . Still
If you are getting ORA-60 deadlock errors, how about posting the 
deadlock graph from the trace file?

Also read Doc # 62365.1  on MetaLink.

Jared







"Reddy, Madhusudana" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 02/25/2003 02:09 PM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
Subject:LIBRARY CACHE LOCK  ( SQL Tuning )


Hello All,

I have a PL/SQL code which will run once a week, and every time this job
will stuck doing nothing .. and end up waiting on " LIBRARY CACHE LOCK "
.Most of the time this job results in a deadlock . As I know I am not a 
SQL
tuning expert ,once again I am seeking your suggestions and help in
resolving the issue !!

Another interesting thing is , after restarting the job ( after killing 
for
the first time ) it will go through fine. I am suspecting the way it is
coded. Any inputs ???

Thanks
Madhu




***

***

***


SET SERVEROUTPUT ON
SET LINESIZE 255
SET TAB OFF

VARIABLE g_return_code NUMBER;


DECLARE
   CURSOR c_incoming_rows IS
  SELECT product_id
   , store_id
   , clearance_price
   , effective_date
   , out_of_stock_date
   , reset_date
   , flag
  FROM   mdo_pre_temp_retek_price;

   v_existing_count  NUMBER;
   e_invalid_row_count   EXCEPTION;

BEGIN
   DBMS_OUTPUT.ENABLE(100);
   :g_return_code := 1;

   FOR v_row IN c_incoming_rows LOOP
  BEGIN

 -- test for existence of existing records
 SELECT COUNT(*)
 INTO   v_existing_count
 FROM   mdo_bse_temp_retek_price
 WHERE  product_id = LTRIM(v_row.product_id,'0')
 ANDstore_id   = LTRIM(v_row.store_id,'0');

 -- if record does not already exist then insert (unless it's a
delete)
 IF (v_existing_count = 0 AND v_row.flag != 'D') THEN
:g_return_code := 2;
INSERT INTO mdo_bse_temp_retek_price (
  product_id
, store_id
, clearance_price
, effective_date
, out_of_stock_date
, reset_date
, flag )
VALUES (
  LTRIM(v_row.product_id,'0')
, LTRIM(v_row.store_id,'0')
, TO_NUMBER(v_row.clearance_price) / 100.0
, TO_DATE(v_row.effective_date,'MMDD')
, TO_DATE(v_row.out_of_stock_date,'MMDD')
, TO_DATE(v_row.reset_date,'MMDD')
, v_row.flag
);

 -- if record already exists then update or delete as needed
 ELSIF (v_existing_count = 1) THEN
:g_return_code := 3;

-- check for delete command
IF (v_row.flag = 'D') THEN
   DELETE
   FROM   mdo_bse_temp_retek_price
   WHERE  product_id = LTRIM(v_row.product_id,'0')
   ANDstore_id   = LTRIM(v_row.store_id,'0');

ELSE
   UPDATE mdo_bse_temp_retek_price
   SETclearance_price   = TO_NUMBER(v_row.clearance_price) 
/
100.0
, effective_date=
TO_DATE(v_row.effective_date,'MMDD')
, out_of_stock_date =
TO_DATE(v_row.out_of_stock_date,'MMDD')
, reset_date=
TO_DATE(v_row.reset_date,'MMDD')
, flag  = v_row.flag
   WHERE  product_id= LTRIM(v_row.product_id,'0')
   ANDstore_id  = LTRIM(v_row.store_id,'0');

END IF;

 -- if we have neither 0 nor 1 records, something is terribly 
wrong
 ELSE
:g_return_code := 4;
RAISE e_invalid_row_count;

 END IF;

  EXCEPTION
 WHEN OTHERS THEN
:g_return_code := 5;
DBMS_OUTPUT.PUT_LINE(SQLERRM);
DBMS_OUTPUT.PUT_LINE('Record ignored for store ' ||
v_row.store_id || ' sku ' ||
  v_row.product_id || '.');
  END;

   END LOOP;
   :g_return_code := 0;

END;
/
EXIT :g_return_code




***

***

***

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reddy, Madhusudana
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting servic

Re: Materialized views not refreshing

2003-02-25 Thread Jared . Still
Arup,

Sounds like good advice.  I had some downtime at 1:00 AM, and rebuilt
all the logs and MV's, and now it's all working fine.

I'm going to try and duplicate the problem in a test env.  If I can get it
to fail in test, I will try this procedure.

Jared





"Arup Nanda" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 02/25/2003 12:54 PM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
Subject:Re: Materialized views not refreshing


Jared,

I joined this thread late; so I apologize if this suggestions has been 
tried
already.

Sometimes the purge of teh MLOG$ tables leave the table in such fragmented
state that the refresh takes a considerably long time and thus it appears
that the MV are not refreshing. Could you try the following

Quiesce the master table(s)
Truncate the MLOG$ tables (not delete)
Unquiesce the master tables(s)
Refresh Full
Refresh Fast Manually once
then leave it to the jobns to do the refresh.

HTH.

Arup

- Original Message -
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 2:39 PM


>
> Yes, the jobs were firing, verified by timestamps in both
> the dba_jobs and dba_refresh views.
>
> On Tuesday 25 February 2003 05:33, Darrell Landrum wrote:
> > Is the job even firing at all?  It is a common step in upgrading to 
set
> > job_queue_processes=0 and this will prevent materialized views from
> > refreshing automatically.  Make sure this is greater than 0; I 
normally
set
> > it to 2.
> >
> > >>> [EMAIL PROTECTED] 02/25/03 04:29AM >>>
> > >
> > >Dear list,
> > >
> > >Have any of you every experienced MV's not
> > >refreshing
> > >for no particular reason?
> > >
> > >We have been using some simple MV's for several
> > >months
> > >with no problem.  Now after upgrading our app and
> > >database,
> > >there seem to be problems.
> > >
> > >Servers:
> > >
> > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > >
> > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > >
> > >These databases were previously 8.1.6.  The master
> > >database
> > >now has a UTF8 character set, and all tables have
> > >NVARCHAR2
> > >columns.
> > >
> > >These are being converted in the MV using:
> > >   translate("COLUMN_NAME" using char_cs)
> > >COLUMN_NAME
> > >when creating the MV.
> > >
> > >There are no errors, no trace files.  Data is
> > >updated on the master
> > >node and never appears in the slave.
> > >
> > >The data continues to persist in the MLOG$ tables.
> > >I've verified there
> > >is only a single MV against each MV LOG, so the
> > >data in MLOG$ should
> > >be truncated after a refresh, but the fact that it
> > >isn't makes it fairly
> > >obvious that the refresh is not working properly.
> > >
> > >I have a serverity 1 TAR open now with Oracle, but
> > >so far all that's
> > >been accomplished with the TAR is me repeating
> > >everything I
> > >included initially.
> > >
> > >Any advice appreciated, as it's rather important to
> > >get this working again.
> > >
> > >Jared
> >
> > Jared,
> >
> >   What about the refresh jobs ? Does DBA_JOBS show failures ? If so, 
can
> > you wrap the dbms_refresh call into something to catch the error ? (if
you
> > feel lazy I think that there is code to this effect on the Oriole site
in
> > one of the 'Aunt Augusta' papers).
> >
> > Regards,
> >
> > Stephane Faroult
> > Oriole
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jared Still
>   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: Arup Nanda
  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: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services

Re: Materialized views not refreshing

2003-02-25 Thread Jared . Still
Thanks for pointing it out, but I did remember to set it back.

Jared





"Zale Dba" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 02/25/2003 12:39 PM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
Subject:Re: Materialized views not refreshing


Jared,

I know this may sound stupid, but when you upgrade you change 
job_queue_processes to zero.  Did you reset your init parameter back after 

the upgrade?  I have seen that cause this problem before.

Hope it is this simple.

Later

Charles Hart







>From: Jared Still <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: Re: Materialized views not refreshing
>Date: Tue, 25 Feb 2003 11:39:09 -0800
>
>
>No, they were not being purged.
>
>On Tuesday 25 February 2003 05:59, Thomas Day wrote:
> > We had the problem where the M$LOG was not being purged after the
> > materialized view was updated.  That doesn't seem to be your problem
> > though.
> >
> >
> >
> >
> >   Jared Still
> >   recipients
> > of list ORACLE-L <[EMAIL PROTECTED]> @cybcon.com> cc:
> >   Sent by: rootSubject: Re: 
Materialized
> > views not refreshing
> >
> >
> >   02/25/2003 06:49
> >   AM
> >   Please respond
> >   to ORACLE-L
> >
> >
> >
> >
> >
> >
> >
> > No errors, no trace files.  Refreshing via refresh group or
> > directly via the snapshot both failed to update the MV.
> >
> > They've since been recreated and are working at the moment.
> >
> > I'll slap a big ole note on my forehead that says 'run a trace on
> > them stupid!' so I will remember to do so if these start failing 
again.
> >
> > Off to bed for me.
> >
> > Jared
> >
> > On Tuesday 25 February 2003 02:29, Stephane Faroult wrote:
> > > >Dear list,
> > > >
> > > >Have any of you every experienced MV's not
> > > >refreshing
> > > >for no particular reason?
> > > >
> > > >We have been using some simple MV's for several
> > > >months
> > > >with no problem.  Now after upgrading our app and
> > > >database,
> > > >there seem to be problems.
> > > >
> > > >Servers:
> > > >
> > > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > > >
> > > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > > >
> > > >These databases were previously 8.1.6.  The master
> > > >database
> > > >now has a UTF8 character set, and all tables have
> > > >NVARCHAR2
> > > >columns.
> > > >
> > > >These are being converted in the MV using:
> > > >   translate("COLUMN_NAME" using char_cs)
> > > >COLUMN_NAME
> > > >when creating the MV.
> > > >
> > > >There are no errors, no trace files.  Data is
> > > >updated on the master
> > > >node and never appears in the slave.
> > > >
> > > >The data continues to persist in the MLOG$ tables.
> > > >I've verified there
> > > >is only a single MV against each MV LOG, so the
> > > >data in MLOG$ should
> > > >be truncated after a refresh, but the fact that it
> > > >isn't makes it fairly
> > > >obvious that the refresh is not working properly.
> > > >
> > > >I have a serverity 1 TAR open now with Oracle, but
> > > >so far all that's
> > > >been accomplished with the TAR is me repeating
> > > >everything I
> > > >included initially.
> > > >
> > > >Any advice appreciated, as it's rather important to
> > > >get this working again.
> > > >
> > > >Jared
> > >
> > > Jared,
> > >
> > >   What about the refresh jobs ? Does DBA_JOBS show failures ? If so, 

>can
> > > you wrap the dbms_refresh call into something to catch the error ? 
(if
> >
> > you
> >
> > > feel lazy I think that there is code to this effect on the Oriole 
site 
>in
> > > one of the 'Aunt Augusta' papers).
> > >
> > > Regards,
> > >
> > > Stephane Faroult
> > > Oriole
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: Jared Still
> >   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: Jared Still
>   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 PROT

Re: Materialized views not refreshing

2003-02-25 Thread Jared . Still
Yes, I tried that as well on one of the MV's.

Didn't help.

Thanks,

Jared






[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
 02/25/2003 12:24 PM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
Subject:Re: Materialized views not refreshing


Jared - 

I assume you're attempting fast refreshes - Is it feasible to attempt a 
full refresh? 

I remember problems w/ snapshots (in the 8.0.4 days) where the snapshot 
logs would just stop working.  I had to perform a full refresh of the 
snapshots, then drop and recreate the snapshot logs.

Brian

- Original Message -
Date: Tuesday, February 25, 2003 1:39 pm

> 
> Yes, the jobs were firing, verified by timestamps in both
> the dba_jobs and dba_refresh views.
> 
> On Tuesday 25 February 2003 05:33, Darrell Landrum wrote:
> > Is the job even firing at all?  It is a common step in upgrading 
> to set
> > job_queue_processes=0 and this will prevent materialized views from
> > refreshing automatically.  Make sure this is greater than 0; I 
> normally set
> > it to 2.
> >
> > >>> [EMAIL PROTECTED] 02/25/03 04:29AM >>>
> > >
> > >Dear list,
> > >
> > >Have any of you every experienced MV's not
> > >refreshing
> > >for no particular reason?
> > >
> > >We have been using some simple MV's for several
> > >months
> > >with no problem.  Now after upgrading our app and
> > >database,
> > >there seem to be problems.
> > >
> > >Servers:
> > >
> > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > >
> > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > >
> > >These databases were previously 8.1.6.  The master
> > >database
> > >now has a UTF8 character set, and all tables have
> > >NVARCHAR2
> > >columns.
> > >
> > >These are being converted in the MV using:
> > >   translate("COLUMN_NAME" using char_cs)
> > >COLUMN_NAME
> > >when creating the MV.
> > >
> > >There are no errors, no trace files.  Data is
> > >updated on the master
> > >node and never appears in the slave.
> > >
> > >The data continues to persist in the MLOG$ tables.
> > >I've verified there
> > >is only a single MV against each MV LOG, so the
> > >data in MLOG$ should
> > >be truncated after a refresh, but the fact that it
> > >isn't makes it fairly
> > >obvious that the refresh is not working properly.
> > >
> > >I have a serverity 1 TAR open now with Oracle, but
> > >so far all that's
> > >been accomplished with the TAR is me repeating
> > >everything I
> > >included initially.
> > >
> > >Any advice appreciated, as it's rather important to
> > >get this working again.
> > >
> > >Jared
> >
> > Jared,
> >
> >   What about the refresh jobs ? Does DBA_JOBS show failures ? If 
> so, can
> > you wrap the dbms_refresh call into something to catch the error 
> ? (if you
> > feel lazy I think that there is code to this effect on the 
> Oriole site in
> > one of the 'Aunt Augusta' papers).
> >
> > Regards,
> >
> > Stephane Faroult
> > Oriole
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Jared Still
>  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: 
  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: 
  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: system/internal tables for QEP (Query Evaluation Plan).

2003-02-25 Thread Jamadagni, Rajendra
Title: RE: system/internal tables for QEP (Query Evaluation Plan).





Aha ... did you work on Ingres before?? QEP brings back Ingres memories ...


Raj
-
Rajendra dot Jamadagni at espn dot com
Any views expressed here are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !!



-Original Message-
From: Chuan Zhang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 25, 2003 6:09 PM
To: Multiple recipients of list ORACLE-L
Subject: system/internal tables for QEP (Query Evaluation Plan).



DBAs,


   Does anyone by all means know the system/internal tables which store the information about QEP (query evaluation plan)? QEP here means the "projection","restriction" and "join" on tables after Oracle parses the SQL statement.  What I want to do is to get this QEP and do some modification on it.


Many thanks in advance.


Chuan
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Chuan Zhang
  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).



*This e-mail 
message is confidential, intended only for the named recipient(s) above and may 
contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank 
you.*1


system/internal tables for QEP (Query Evaluation Plan).

2003-02-25 Thread Chuan Zhang
DBAs,

   Does anyone by all means know the system/internal tables which store the 
information about QEP (query evaluation plan)? QEP here means the 
"projection","restriction" and "join" on tables after Oracle parses the SQL statement. 
 What I want to do is to get this QEP and do some modification on it.


Many thanks in advance.

Chuan
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Chuan Zhang
  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).



Sun admininstrator

2003-02-25 Thread John Shaw



I normally wouldn't post this kind of thing on this forum - but since the 
job market stinks ya'all might know someone who's looking.
My company has an opening for a experienced Solaris admin. We are 
installing a F 12k (32processor) and they want somebody with experience on it 
and haven't found anyone locally yet.  Also have a Hitachi SAN (99000 
lightning 2 T) so SAN experience is also wanted. Unfortunately (please no flames 
- it's not me ) we don't have relo or can we accept H1-b's. We are a private 
prison management company headquartered in Nashville, Tn.  We are 
putting several good sized Oracle databases on it (there's my Oracle 
connection). If you know anyone looking send them my email.
Thanks 
[EMAIL PROTECTED]


V7.3.4.5

2003-02-25 Thread Charlie_Mengler

[EMAIL PROTECTED]> /

 FILE# PHYRDSPHYWRTS   PHYBLKRD  PHYBLKWRTREADTIM
WRITETIM
-- -- -- -- -- --
--
 73340334  309044567713  30904 362219
1476572
111157340   39121270225   3912 151551
122910
132585912  427026384251  42702 242112
636283
202451068   52512509170   5251 336419
218841
27 868670  37995 868673  37995 432869
14026129
323596539  979713814695  97971 537299
4645681
35 160846  60689 160846  60689 106501
2257092
36 397062  33123 397062  33123 110214
947353
402092537   53142104019   5314 163361
479852
42 787569  13478 787570  13478 204421
190629
551991149  394834483007  39483 235299
1377869
581720827 1032341720834 103234 423799
1884931
591809887  111652610392  11165 413163
172370
61 373649  17329 373649  17329 107455
373292
84 798905  26702 798908  26702 166670
550920

FWIW - File 27 hold less than a half dozen LARGE (128M or greater)
indexes.

As can be seen many more READS than WRITES are happening.
So why is the time spent doing WRITES  is so much larger
in many cases than time spent doing reads?

What, if anything, can be done to reduce the WRITE time?
For the most part the disk volumes under these files are
configured using RAID-1.



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



RE: performance issues on sun

2003-02-25 Thread Cary Millsap
I wish now that I hadn't deleted what I composed this morning... It was
this:

People probably get sick of seeing me say the same thing over and over
and over... You have some interesting information from the truss that
you've done. But you can't tell how long something took by counting how
many times it happened. The easiest way to determine what's consuming
the most *time* is to use extended SQL trace (event 10046 level 8). The
resulting trace file will tell you exactly where your time has gone, and
it will enable you to determine whether your performance problem is a
result of the kaio calls or not.

You'll probably find that the system is doing what you suspect: issuing
an async write call, failing, and then calling a synchronous write call.
However, without knowing the impact of this behavior upon response time,
it's hard to know whether the time you invest into "checking" stuff and
"fixing" stuff is worth anything. The worst feeling is to invest your
time into fixing something, succeeding, and then finding you've made no
impact because the thing you fixed accounts for only a small amount of
response time.

...Find out what activity is consuming the largest chunk of your
response time, and then try to figure out how to do that thing less. The
cheapest, fastest, most error-free way that I know to do that is to
collect the 10046 level-8 data.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:45 PM
To: Multiple recipients of list ORACLE-L


I did this and its taking the same amount of time. The difference this
time
is that it does not do the KAIO call. But the time has not improved. Its
still doing pwrite calls.

TIA

Babu



 

  John Kanagaraj

  <[EMAIL PROTECTED]To:   Multiple
recipients of list ORACLE-L <[EMAIL PROTECTED]>

  ds.com>  cc:

  Sent by: Subject:  RE: performance
issues on sun

  [EMAIL PROTECTED]

 

 

  02/25/03 01:04 PM

  Please respond to

  ORACLE-L

 

 





Babu,

> I think it is trying to do a KAIO call and failing. Then it attempts a
> synchronous PWRITE call.
>
> But our SAs are not able to help us to confirm this. Have any
> of you seen
> this issue?

I think you have hit the nail on the head. By default, the Oracle port
on
Solaris sets 'disk_async_io' to TRUE. Set this to FALSE by introducing
such
an entry in init.ora. Let us know if tihis solves your issue...

John Kanagaraj
Oracle Applications DBA
DBSoft Inc
(W): 408-970-7002

I don't know what the future holds for me, but I do know who holds my
future!

** The opinions and statements above are entirely my own and not those
of
my
employer or clients **

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: John Kanagaraj
  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).




_
This e-mail transmission and any attachments to it are intended solely
for
the use of the individual or entity to whom it is addressed and may
contain
confidential and privileged information.  If you are not the intended
recipient, your use, forwarding, printing, storing, disseminating,
distribution, or copying of this communication is prohibited.  If you
received this communication in error, please notify the sender
immediately
by replying to this message and delete it from your computer.


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

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Cary Millsap
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California   

RE: update 30mil rows

2003-02-25 Thread Cary Millsap
Add the where-clause "where field1 != 0" if there's any chance that any
of the rows already has field1 = 0.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
Sent: Tuesday, February 25, 2003 3:27 PM
To: Multiple recipients of list ORACLE-L

Hi all:

I need to update every row 30mil-rows table. 
I have dropped the indices and running the update
 in parallel:

update /*+ parallel (degree 8) */ table_name
set field1=0;

Is there anything else I could to to speed up this
process. I don't think I can do an update in nologging
mode. I'm running 8.1.7.4

thanks for any advice.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
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.net
-- 
Author: Cary Millsap
  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).



LIBRARY CACHE LOCK !!!! ( SQL Tuning )

2003-02-25 Thread Reddy, Madhusudana
Hello All,

I have a PL/SQL code which will run once a week, and every time this job
will stuck doing nothing .. and end up waiting on " LIBRARY CACHE LOCK "
.Most of the time this job results in a deadlock . As I know I am not a SQL
tuning expert ,once again I am seeking your suggestions and help in
resolving the issue !!

Another interesting thing is , after restarting the job ( after killing for
the first time ) it will go through fine. I am suspecting the way it is
coded. Any inputs ???

Thanks
Madhu




***

***

***


SET SERVEROUTPUT ON
SET LINESIZE 255
SET TAB OFF

VARIABLE g_return_code NUMBER;


DECLARE
   CURSOR c_incoming_rows IS
  SELECT product_id
   , store_id
   , clearance_price
   , effective_date
   , out_of_stock_date
   , reset_date
   , flag
  FROM   mdo_pre_temp_retek_price;

   v_existing_count  NUMBER;
   e_invalid_row_count   EXCEPTION;

BEGIN
   DBMS_OUTPUT.ENABLE(100);
   :g_return_code := 1;

   FOR v_row IN c_incoming_rows LOOP
  BEGIN

 -- test for existence of existing records
 SELECT COUNT(*)
 INTO   v_existing_count
 FROM   mdo_bse_temp_retek_price
 WHERE  product_id = LTRIM(v_row.product_id,'0')
 ANDstore_id   = LTRIM(v_row.store_id,'0');

 -- if record does not already exist then insert (unless it's a
delete)
 IF (v_existing_count = 0 AND v_row.flag != 'D') THEN
:g_return_code := 2;
INSERT INTO mdo_bse_temp_retek_price (
  product_id
, store_id
, clearance_price
, effective_date
, out_of_stock_date
, reset_date
, flag )
VALUES (
  LTRIM(v_row.product_id,'0')
, LTRIM(v_row.store_id,'0')
, TO_NUMBER(v_row.clearance_price) / 100.0
, TO_DATE(v_row.effective_date,'MMDD')
, TO_DATE(v_row.out_of_stock_date,'MMDD')
, TO_DATE(v_row.reset_date,'MMDD')
, v_row.flag
);

 -- if record already exists then update or delete as needed
 ELSIF (v_existing_count = 1) THEN
:g_return_code := 3;

-- check for delete command
IF (v_row.flag = 'D') THEN
   DELETE
   FROM   mdo_bse_temp_retek_price
   WHERE  product_id = LTRIM(v_row.product_id,'0')
   ANDstore_id   = LTRIM(v_row.store_id,'0');

ELSE
   UPDATE mdo_bse_temp_retek_price
   SETclearance_price   = TO_NUMBER(v_row.clearance_price) /
100.0
, effective_date=
TO_DATE(v_row.effective_date,'MMDD')
, out_of_stock_date =
TO_DATE(v_row.out_of_stock_date,'MMDD')
, reset_date=
TO_DATE(v_row.reset_date,'MMDD')
, flag  = v_row.flag
   WHERE  product_id= LTRIM(v_row.product_id,'0')
   ANDstore_id  = LTRIM(v_row.store_id,'0');

END IF;

 -- if we have neither 0 nor 1 records, something is terribly wrong
 ELSE
:g_return_code := 4;
RAISE e_invalid_row_count;

 END IF;

  EXCEPTION
 WHEN OTHERS THEN
:g_return_code := 5;
DBMS_OUTPUT.PUT_LINE(SQLERRM);
DBMS_OUTPUT.PUT_LINE('Record ignored for store ' ||
v_row.store_id || ' sku ' ||
  v_row.product_id || '.');
  END;

   END LOOP;
   :g_return_code := 0;

END;
/
EXIT :g_return_code




***

***

***

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reddy, Madhusudana
  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: Oracle Performance Tuning Exam

2003-02-25 Thread Paula_Stankus
Title: RE: Oracle  Performance Tuning  Exam





Guys,


I took this exam after 12 hours studying and missed 4 questions.  I studied using the self-test software (few practice exams) some memorization and the student guides from the oracle 8 tuning - read through once and not every item (not 8i class) - where the heck was statspack in the examm, btw?  I took it in 20 minutes.  Only the network one to go.  Can't wait to get this done so can do the 9i upgrade exam - then wishing to concentrate on certification relating to 9ias - is there such a beast?

-Original Message-
From: DENNIS WILLIAMS [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 11:14 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: Oracle Performance Tuning Exam



Arslan - I'm hoping you get some good replies since I plan to take this exam
next.


I just took the B&R last week. The resource that helped me the most is:
Oracle8i Certified Professional DBA Practice Exams by Jason S. Couchman
http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=1G60ZMKA1
J&isbn=0072133414 (hopefully this link will work, it will be broken into two
lines which you must patch back together).


Dennis Williams
DBA, 20% OCP
Lifetouch, Inc.
[EMAIL PROTECTED]




-Original Message-
Sent: Tuesday, June 11, 2002 7:38 AM
To: Multiple recipients of list ORACLE-L



  I will enter my last exam at next week.
  Could DBAs which have this exam  give  some advice.
 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Arslan Bahar
  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: DENNIS WILLIAMS
  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: update 30mil rows

2003-02-25 Thread Mark Richard
Since you've already dropped the indexes the following might be an option
if you have enough diskspace available...

Rename the existing table to a temporary name
Create a new table using "create table  as select ...", but
replace the field you want set to 0.  You could probably fiddle with hints
like "append" and "parallel" and maybe "nologging" if you want to squeeze
some more speed out of it.

I guess the benefit is that if you've got any plans to change storage
clauses, etc then you can do those at the same time.

Regards,
 Mark.



   

Gurelei

<[EMAIL PROTECTED]   To: Multiple recipients of list 
ORACLE-L <[EMAIL PROTECTED]>   
.com>cc:   

Sent by: Subject: update 30mil rows

[EMAIL PROTECTED]  
   
om 

   

   

26/02/2003 

08:26  

Please respond 

to ORACLE-L

   

   





Hi all:

I need to update every row 30mil-rows table.
I have dropped the indices and running the update
 in parallel:

update /*+ parallel (degree 8) */ table_name
set field1=0;

Is there anything else I could to to speed up this
process. I don't think I can do an update in nologging
mode. I'm running 8.1.7.4

thanks for any advice.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
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).




<<>>
   Privileged/Confidential information may be contained in this message.
  If you are not the addressee indicated in this message
   (or responsible for delivery of the message to such person),
you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the sender
   by reply e-mail or by telephone on (61 3) 9612-6999.
   Please advise immediately if you or your employer does not consent to
Internet e-mail for messages of this kind.
Opinions, conclusions and other information in this message
  that do not relate to the official business of
 Transurban City Link Ltd
 shall be understood as neither given nor endorsed by it.
<<<>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mark Richard
  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 

RE: update 30mil rows

2003-02-25 Thread Richard Ji
You can:

create table new_tab as select 

and perform the update there.  You can use nologging here.

Then you could index the new table, put back grants, constraints etc.
drop old table and rename the new table to old table.

Richard

-Original Message-
Sent: Tuesday, February 25, 2003 1:27 PM
To: Multiple recipients of list ORACLE-L


Hi all:

I need to update every row 30mil-rows table. 
I have dropped the indices and running the update
 in parallel:

update /*+ parallel (degree 8) */ table_name
set field1=0;

Is there anything else I could to to speed up this
process. I don't think I can do an update in nologging
mode. I'm running 8.1.7.4

thanks for any advice.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
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.net
-- 
Author: Richard Ji
  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).



Event Triggers in 8i ?

2003-02-25 Thread Bob Robert
All,

I would like to insert v$license table info into
different table before shutting down the database with
the help of Event Triggers.

SQL>desc v$license
Column NameNull?Type
--  
SESSIONS_MAXNUMBER
SESSIONS_WARNINGNUMBER
SESSIONS_CURRENTNUMBER
SESSIONS_HIGHWATER  NUMBER
USERS_MAX   NUMBER

I would like to add sysdate in addition to above
columns into temporary table on daily basis.

Did any one setup similar to this?

Thanks,
Bob


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Bob 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).



Re: DBMS_STATS

2003-02-25 Thread Jonathan Lewis

The default action of dbms_stats against
a single partition of a partitioned table is
much more aggressive than a simple
analyze of the partition.

At the least, it does a similar analyze of
the whole table in order to maintain the
global table statistics - you need to set
the granularity of the analyze to stop this
happening.

On a quick test, with sql_trace turned on
and using 9.2.0.2, your choice of parameters
gave me:

Two 5% analyzes of the specified partition,
with a small difference relating to one longish
varchar() column.

One 5% analyze of the whole table.

One 50% analyze of the whole table - restricted
to a much smaller process of a subset of the columns
that omitted the one longish varchar() column.



Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

Coming soon one-day tutorials:
Cost Based Optimisation
Trouble-shooting and Tuning
Indexing Strategies
(see http://www.jlcomp.demon.co.uk/tutorial.html )

UK___March 19th
USA_(FL)_May 2nd


Next Seminar dates:
(see http://www.jlcomp.demon.co.uk/seminar.html )

USA_(CA, TX)_August


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: 25 February 2003 18:12


> I have never had good luck with DBMS_STATS.  It seems that the old
analyze runs
> much faster.
>
> Runs in 45 seconds:
> analyze table log_trans partition (log_trans_20030104) estimate
statistics
> sample 5 percent;
>
> Takes over 2 hours:
> execute dbms_stats.gather_table_stats(ownname => 'LDGADMIN', -
>   tabname => 'LOG_TRANS', -
>   partname =>
'LOG_TRANS_20030102', -
>   estimate_percent => 5);
>
> Am I missing something?  Aren't both commands the same?
>
> Thanks,
> Tom
>

-- 
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: UPDATE...REPLACE...'...apostrophe...

2003-02-25 Thread Daniel W. Fink




Use the CHR function. CHR(39) will display/insert an apostrophe.

Daniel W. Fink

Gorden-Ozgul, Patricia E wrote:
  
  
  RE: SQL struggle
   
  
 
  
 
  
  
 

  I'm  running Oracle on Solaris 2.6.
 
   
 
  I  successfully inserted data from a composite
file by replacing apostrophes  with ' by way of  sed...s/'/\'/g...beforehand.
 
   
 
  Now I  need to perform an UPDATE, REPLACE...
 
  UPDATE  tbl SET col = REPLACE(col, ''',
...with what?)
 
   
 
  Please  advise.
 
   
 
  Pat  
 
 
-Original Message-
From: Saira Somani[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 25, 20033:24 PM
To: Multiple recipients of list ORACLE-L
Subject:RE: SQL struggle


   
   
Thank you for
yourassistance - it works -  and
I have one morequestion:
   
 
   
How can I also
getthe SELECT to show me the original item number - i.ewith the '-OR'?
   
 
   
Thanks,
   
Saira
   
 
   
-Original
   Message-
From: JacquesKilchoer
[mailto:[EMAIL PROTECTED]] 
Sent: February 25, 2003
1:57PM
To:'[EMAIL PROTECTED]'
Cc:'[EMAIL PROTECTED]'
Subject: RE: SQLstruggle
   
 
   
(see answer below) 
   
> -Original Message-  
 
> From: Saira Somani
[mailto:[EMAIL PROTECTED]]
   
> 
> Oracle 8.1.7 on AIX
   4.3 
>
> Here is whatmy
data looks like in a table called item_w: 
> 
> WHSE_CODE   ITEM_NUM  
   LAST_COST 
> --
-- 
>HL1   
 111230  1.12 
>CPD-TWH   
 111230-OR  0 
>CPD-TGH   
 111230-OR  0 
>HL1   
 50034.91 
>MSH-CDS   
 50034  0 
>CPD-TGH   
 50034-OR   0 
>HL1   
 650300 4.789 
>TWH-STAT  
 650300 0 
>CPD-TWH   
 650300-OR  0 
>CPD-TGH   
 650300-OR  0 
>
> If you'llnotice,
only the items with WHSE_CODE='HL1' have a cost
> associated with  
 them. 
>
> What I needto
is: 
>
> ParseITEM_NUM
for those items which have a suffix of -OR in order to
> compare with an ITEM_NUM
   without -OR so that I can take the last cost 
> from there and display
it beside theone that has -OR. Also 
> note, there

> are some $0 cost items
that don't have a suffixof -OR; I 
>would need to

> match those up with
a cost as well.
>
> So in theend,
I suppose, this is the result I'm looking for: 
> 
> WHSE_CODE   ITEM_NUM 
LAST_COST LAST_COST_REV 
>  -
   -  -
>HL1   
 111230          1.12          1.12   

>CPD-TWH   
 111230-OR         0         1.12
   
>CPD-TGH   
 111230-OR         0         1.12
   
>HL1   
 50034           0.91          0.91   

>MSH-CDS  50034   
         0         0.91
>CPD-TGH  50034-OR
         0         0.91
>HL1  650300  
          4.789         4.789
>TWH-STAT 650300  
         0         4.789
>CPD-TWH   
 650300-OR         0         4.789
   
>CPD-TGH  650300-OR
           0      
>   4.789  
> 
> And if any of you
out there use Cognos Impromptu,perhaps you 
>could tell

>me how I can achieve
these results in a report. 
   
 
   
Would this work? 
 select 
    a.whse_code, a.item_num,
   a.last_cost, 
    b.last_cost aslast_cost_rev

 from 
    item_w a, item_w b
   
 where  
 
    a.last_cost= 0

    and replace (a.item_num,
'-OR') =b.item_num 
    and b.last_cost >
   0 
union 
 select 
    c.whse_code, c.item_num,
   c.last_cost, 
    c.last_cost aslast_cost_rev

 from 
    item_w c

 where 
    c.last_cost > 0
   ; 

  






Re: UPDATE...REPLACE...'...apostrophe...

2003-02-25 Thread Scott Canaan



chr(44)
"Gorden-Ozgul, Patricia E" wrote:

I'm
running Oracle on Solaris 2.6.I
successfully inserted data from a composite file by replacing apostrophes
with ' by way of sed...s/'/\'/g...beforehand.Now
I need to perform an UPDATE, REPLACE...UPDATE
tbl SET col = REPLACE(col, ''', ...with what?)Please
advise.Pat 

-Original
Message-
From: Saira Somani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 25,
2003 3:24 PM
To: Multiple recipients of
list ORACLE-L
Subject: RE: SQL struggle
 


Thank
you for your assistance - it works - and
I have one more question:




How
can I also get the SELECT to show me the original item number - i.e
with the '-OR'?



Thanks,

Saira



-Original
Message-
From:
Jacques Kilchoer [mailto:[EMAIL PROTECTED]]
Sent:
February 25, 2003 1:57 PM
To:
'[EMAIL PROTECTED]'
Cc:
'[EMAIL PROTECTED]'
Subject:
RE: SQL struggle



(see
answer below)

>
-Original Message-
> From: Saira Somani [mailto:[EMAIL PROTECTED]]
> 
> Oracle 8.1.7 on AIX 4.3
> 
> Here is what my data
looks like in a table called item_w:
> 
> WHSE_CODE   
ITEM_NUM  
LAST_COST
>  --
--
> HL1 
111230  
1.12
> CPD-TWH 
111230-OR  
0
> CPD-TGH 
111230-OR  
0
> HL1 
50034
.91
> MSH-CDS 
50034  
0
> CPD-TGH 
50034-OR   
0
> HL1 
650300 
4.789
> TWH-STAT
650300 
0
> CPD-TWH 
650300-OR  
0
> CPD-TGH 
650300-OR  
0
> 
> If you'll notice, only
the items with WHSE_CODE='HL1' have a cost
> associated with them.
> 
> What I need to is:
> 
> Parse ITEM_NUM for those
items which have a suffix of -OR in order to
> compare with an ITEM_NUM
without -OR so that I can take the last cost
> from there and display
it beside the one that has -OR. Also 
> note, there
> are some $0 cost items
that don't have a suffix of -OR; I 
> would need to
> match those up with
a cost as well. 
> 
> So in the end, I suppose,
this is the result I'm looking for:
> 
> WHSE_CODE   
ITEM_NUM  LAST_COST  LAST_COST_REV
>  -
-  -
> HL1 
111230  
1.12  
1.12
> CPD-TWH 
111230-OR   
0 
1.12
> CPD-TGH 
111230-OR   
0 
1.12
> HL1 
50034   
0.91  
0.91
> MSH-CDS 
50034   
0 
0.91
> CPD-TGH 
50034-OR
0 
0.91
> HL1 
650300  
4.789 
4.789
> TWH-STAT
650300  
0 
4.789
> CPD-TWH 
650300-OR   
0 
4.789
> CPD-TGH 
650300-OR   
0 
>    4.789 
> 
> And if any of you
out there use Cognos Impromptu, perhaps you 
> could tell
> me how I can achieve
these results in a report.



Would
this work?
 select
    a.whse_code,
a.item_num, a.last_cost,
    b.last_cost
as last_cost_rev
 from
    item_w
a, item_w b
 where
    a.last_cost
= 0
    and
replace (a.item_num, '-OR') = b.item_num
    and
b.last_cost > 0
union
 select
    c.whse_code,
c.item_num, c.last_cost,
    c.last_cost
as last_cost_rev
 from
    item_w
c
 where
    c.last_cost
> 0 ;



--
Scott Canaan ([EMAIL PROTECTED])
(585) 475-7886
"Life is like a sewer, what you get out of it depends on what you put
into it." - Tom Lehrer.
 




Event Triggers in 8i ?

2003-02-25 Thread Bob Robert
All,

I would like to insert v$license table info into
different table before shutting down the database with
the help of Event Triggers.

SQL>desc v$license
Column NameNull?Type
--  
SESSIONS_MAXNUMBER
SESSIONS_WARNINGNUMBER
SESSIONS_CURRENTNUMBER
SESSIONS_HIGHWATER  NUMBER
USERS_MAX   NUMBER

I would like to add sysdate in addition to above
columns into temporary table on daily basis.

Did any one setup similar to this?

Thanks,
Bob



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Bob 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).



RE: UPDATE...REPLACE...'...apostrophe...

2003-02-25 Thread Saira Somani
Title: RE: SQL struggle









SYNTAX for REPLACE is:

 

REPLACE(,,)

 

If you want to replace with nothing, just
do this:

 

UPDATE tbl SET col = REPLACE (col, ‘'’,’’);

 

And that should replace all instances of
' with nothing. I hope that’s what you were looking for.

 

Saira

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gorden-Ozgul,
Patricia E
Sent: February 25, 2003 3:49 PM
To: Multiple recipients of list
ORACLE-L
Subject:
UPDATE...REPLACE...'...apostrophe...

 



I'm
running Oracle on Solaris 2.6.





 





I
successfully inserted data from a composite file by replacing apostrophes
with ' by way of sed...s/'/\'/g...beforehand.





 





Now I
need to perform an UPDATE, REPLACE...





UPDATE
tbl SET col = REPLACE(col, ''', ...with what?)





 





Please
advise.





 





Pat 





-Original Message-
From: Saira Somani
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:24 PM
To: Multiple recipients of list
ORACLE-L
Subject: RE: SQL struggle

Thank
you for your assistance - it works - 
and I have one more question:

 

How can
I also get the SELECT to show me the original item number - i.e with the '-OR'?

 

Thanks,

Saira

 

-Original Message-
From: Jacques Kilchoer
[mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 1:57 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: SQL struggle

 

(see answer below) 

> -Original Message- 
> From: Saira Somani [mailto:[EMAIL PROTECTED]]

> 
> Oracle 8.1.7 on AIX 4.3

> 
> Here is what my data looks
like in a table called item_w: 
> 
> WHSE_CODE   
ITEM_NUM  
LAST_COST 
>  --
-- 
>
HL1 
111230  
1.12 
>
CPD-TWH 
111230-OR  
0 
>
CPD-TGH 
111230-OR  
0 
>
HL1 
50034
.91 
>
MSH-CDS 
50034  
0 
>
CPD-TGH 
50034-OR   
0 
>
HL1 
650300 
4.789 
>
TWH-STAT
650300 
0 
>
CPD-TWH  650300-OR  
0 
>
CPD-TGH 
650300-OR  
0 
> 
> If you'll notice, only the
items with WHSE_CODE='HL1' have a cost 
> associated with them.

> 
> What I need to is:

> 
> Parse ITEM_NUM for those items
which have a suffix of -OR in order to 
> compare with an ITEM_NUM
without -OR so that I can take the last cost 
> from there and display it
beside the one that has -OR. Also 
> note, there 
> are some $0 cost items that
don't have a suffix of -OR; I 
> would need to 
> match those up with a cost as
well. 
> 
> So in the end, I suppose, this
is the result I'm looking for: 
> 
> WHSE_CODE   
ITEM_NUM  LAST_COST  LAST_COST_REV

>  -
-  - 
>
HL1 
111230      
    1.12   
       1.12 
>
CPD-TWH 
111230-OR   
   
   
0      
   1.12 
>
CPD-TGH 
111230-OR   
   
   
0      
   1.12 
>
HL1 
50034       
    0.91   
       0.91 
>
MSH-CDS  50034   
   
   
0  
       0.91 
>
CPD-TGH  50034-OR
   
   
0  
       0.91 
>
HL1  650300  
   
    4.789  
       4.789 
>
TWH-STAT 650300  
   
   
0      
   4.789 
>
CPD-TWH 
650300-OR   
   
   
0      
   4.789 
>
CPD-TGH  650300-OR
      
   
0      

>   
4.789  
> 
> And if any of you out there
use Cognos Impromptu, perhaps you 
> could tell 
> me how I can achieve these
results in a report. 

 

Would this work? 
 select 
    a.whse_code,
a.item_num, a.last_cost, 
    b.last_cost as
last_cost_rev 
 from 
    item_w a, item_w
b 
 where 
    a.last_cost = 0

    and replace
(a.item_num, '-OR') = b.item_num 
    and b.last_cost
> 0 
union 
 select 
    c.whse_code,
c.item_num, c.last_cost, 
    c.last_cost as
last_cost_rev 
 from 
    item_w c

 where 
    c.last_cost >
0 ; 










update 30mil rows

2003-02-25 Thread Gurelei
Hi all:

I need to update every row 30mil-rows table. 
I have dropped the indices and running the update
 in parallel:

update /*+ parallel (degree 8) */ table_name
set field1=0;

Is there anything else I could to to speed up this
process. I don't think I can do an update in nologging
mode. I'm running 8.1.7.4

thanks for any advice.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
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).



RE: SQL struggle - UPDATE too?

2003-02-25 Thread Saira Somani
I am very confused (and fairly new to SQL which would be my excuse to
post such amateurish questions on this list).

Now I've been asked to update LAST_COST on item_w so it looks like this:

WHSE_CODEITEM_NUM   LAST_COST
 -- --
HL1  111230   1.12
CPD-TWH  111230-OR1.12
CPD-TGH  111230-OR1.12
HL1  50034 .91
MSH-CDS  50034 .91
CPD-TGH  50034-OR  .91
HL1  650300  4.789
TWH-STAT 650300  4.789
CPD-TWH  650300-OR   4.789
CPD-TGH  650300-OR   4.789


-Original Message-
Sent: February 25, 2003 12:55 PM
To: '[EMAIL PROTECTED]'

List Gurus,

I need help and I won't be ashamed to ask :) 

Oracle 8.1.7 on AIX 4.3

Here is what my data looks like in a table called item_w:

WHSE_CODEITEM_NUM   LAST_COST
 -- --
HL1  111230   1.12
CPD-TWH  111230-OR   0
CPD-TGH  111230-OR   0
HL1  50034 .91
MSH-CDS  50034   0
CPD-TGH  50034-OR0
HL1  650300  4.789
TWH-STAT 650300  0
CPD-TWH  650300-OR   0
CPD-TGH  650300-OR   0

If you'll notice, only the items with WHSE_CODE='HL1' have a cost
associated with them.

What I need to is:

Parse ITEM_NUM for those items which have a suffix of -OR in order to
compare with an ITEM_NUM without -OR so that I can take the last cost
from there and display it beside the one that has -OR. Also note, there
are some $0 cost items that don't have a suffix of -OR; I would need to
match those up with a cost as well. 

So in the end, I suppose, this is the result I'm looking for:

WHSE_CODEITEM_NUM  LAST_COSTLAST_COST_REV
 - --
HL1  111230 1.12   1.12
CPD-TWH  111230-OR  0  1.12
CPD-TGH  111230-OR  0  1.12
HL1  50034  0.91   0.91
MSH-CDS  50034  0  0.91
CPD-TGH  50034-OR   0  0.91
HL1  650300 4.789  4.789
TWH-STAT 650300 0  4.789
CPD-TWH  650300-OR  0  4.789
CPD-TGH  650300-OR  0  4.789

And if any of you out there use Cognos Impromptu, perhaps you could tell
me how I can achieve these results in a report.

Thanks in advance for your time,


Saira Somani
IT Support/Analyst
Hospital Logistics Inc. 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Saira Somani
  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: Materialized views not refreshing

2003-02-25 Thread Thomas Day

Check bug 2259259.  The fix is to create a dummy MV (where 0=1) that will
force the snapshot to look at the log again.  On the second time around it
purges the M$LOG (or at least it has for us)

Master - 8.1.7.4 DecAlpha
Slave - 8.1.6.3 Win2K



   

  Jared Still  

  
  @cybcon.com> cc: 

  Sent by: rootSubject: Re: Materialized views not 
refreshing  
   

   

  02/25/2003 02:39 

  PM   

  Please respond   

  to ORACLE-L  

   

   






No, they were not being purged.

On Tuesday 25 February 2003 05:59, Thomas Day wrote:
> We had the problem where the M$LOG was not being purged after the
> materialized view was updated.  That doesn't seem to be your problem
> though.
>
>
>
>
>   Jared Still
>of list ORACLE-L <[EMAIL PROTECTED]> @cybcon.com> cc:
>   Sent by: rootSubject: Re: Materialized
> views not refreshing
>
>
>   02/25/2003 06:49
>   AM
>   Please respond
>   to ORACLE-L
>
>
>
>
>
>
>
> No errors, no trace files.  Refreshing via refresh group or
> directly via the snapshot both failed to update the MV.
>
> They've since been recreated and are working at the moment.
>
> I'll slap a big ole note on my forehead that says 'run a trace on
> them stupid!' so I will remember to do so if these start failing again.
>
> Off to bed for me.
>
> Jared
>
> On Tuesday 25 February 2003 02:29, Stephane Faroult wrote:
> > >Dear list,
> > >
> > >Have any of you every experienced MV's not
> > >refreshing
> > >for no particular reason?
> > >
> > >We have been using some simple MV's for several
> > >months
> > >with no problem.  Now after upgrading our app and
> > >database,
> > >there seem to be problems.
> > >
> > >Servers:
> > >
> > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > >
> > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > >
> > >These databases were previously 8.1.6.  The master
> > >database
> > >now has a UTF8 character set, and all tables have
> > >NVARCHAR2
> > >columns.
> > >
> > >These are being converted in the MV using:
> > >   translate("COLUMN_NAME" using char_cs)
> > >COLUMN_NAME
> > >when creating the MV.
> > >
> > >There are no errors, no trace files.  Data is
> > >updated on the master
> > >node and never appears in the slave.
> > >
> > >The data continues to persist in the MLOG$ tables.
> > >I've verified there
> > >is only a single MV against each MV LOG, so the
> > >data in MLOG$ should
> > >be truncated after a refresh, but the fact that it
> > >isn't makes it fairly
> > >obvious that the refresh is not working properly.
> > >
> > >I have a serverity 1 TAR open now with Oracle, but
> > >so far all that's
> > >been accomplished with the TAR is me repeating
> > >everything I
> > >included initially.
> > >
> > >Any advice appreciated, as it's rather important to
> > >get this working again.
> > >
> > >Jared
> >
> > Jared,
> >
> >   What about the refresh jobs ? Does DBA_JOBS show failures ? If so,
can
> > you wrap the dbms_refresh call into something to catch the error ? (if
>
> you
>
> > feel lazy I think that there is code to this effect on the Oriole site
in
> > one of the 'Aunt Augusta' papers).
> >
> > Regards,
> >
> > Stephane Faroult
> > Oriole
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jared Still
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> San Diego, California-- 

RE: DBMS_STATS

2003-02-25 Thread Cary Millsap
Check out $ORACLE_HOME/rdbms/mesg/oraus.msg to find out the meaning of
any kernel event.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London


-Original Message-
Rich
Sent: Tuesday, February 25, 2003 2:19 PM
To: Multiple recipients of list ORACLE-L

Reading the bug, I'm frustrated for the user.  Anyway, what does "Event
10190" do?  Or is this a case of "File a TAR"?

Rich

Rich JesseSystem/Database Administrator
[EMAIL PROTECTED]   Quad/Tech International, Sussex, WI
USA

-Original Message-
Sent: Tuesday, February 25, 2003 12:35 PM
To: Multiple recipients of list ORACLE-L


May have something to do with bug 2649728, which I just heard about for
the
first time no more than 10 seconds ago.
 
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London
-Original Message-
(Contractor) (DAASC)
Sent: Tuesday, February 25, 2003 12:13 PM
To: Multiple recipients of list ORACLE-L
 
I have never had good luck with DBMS_STATS.  It seems that the old
analyze
runs much faster.
 
Runs in 45 seconds:
analyze table log_trans partition (log_trans_20030104) estimate
statistics
sample 5 percent; 
 
Takes over 2 hours:
execute dbms_stats.gather_table_stats(ownname => 'LDGADMIN', -
  tabname => 'LOG_TRANS', -
  partname => 'LOG_TRANS_20030102',
-
  estimate_percent => 5);
Am I missing something?  Aren't both commands the same?
 
Thanks,
Tom
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jesse, Rich
  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: Cary Millsap
  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: Materialized views not refreshing

2003-02-25 Thread Arup Nanda
Jared,

I joined this thread late; so I apologize if this suggestions has been tried
already.

Sometimes the purge of teh MLOG$ tables leave the table in such fragmented
state that the refresh takes a considerably long time and thus it appears
that the MV are not refreshing. Could you try the following

Quiesce the master table(s)
Truncate the MLOG$ tables (not delete)
Unquiesce the master tables(s)
Refresh Full
Refresh Fast Manually once
then leave it to the jobns to do the refresh.

HTH.

Arup

- Original Message -
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 2:39 PM


>
> Yes, the jobs were firing, verified by timestamps in both
> the dba_jobs and dba_refresh views.
>
> On Tuesday 25 February 2003 05:33, Darrell Landrum wrote:
> > Is the job even firing at all?  It is a common step in upgrading to set
> > job_queue_processes=0 and this will prevent materialized views from
> > refreshing automatically.  Make sure this is greater than 0; I normally
set
> > it to 2.
> >
> > >>> [EMAIL PROTECTED] 02/25/03 04:29AM >>>
> > >
> > >Dear list,
> > >
> > >Have any of you every experienced MV's not
> > >refreshing
> > >for no particular reason?
> > >
> > >We have been using some simple MV's for several
> > >months
> > >with no problem.  Now after upgrading our app and
> > >database,
> > >there seem to be problems.
> > >
> > >Servers:
> > >
> > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > >
> > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > >
> > >These databases were previously 8.1.6.  The master
> > >database
> > >now has a UTF8 character set, and all tables have
> > >NVARCHAR2
> > >columns.
> > >
> > >These are being converted in the MV using:
> > >   translate("COLUMN_NAME" using char_cs)
> > >COLUMN_NAME
> > >when creating the MV.
> > >
> > >There are no errors, no trace files.  Data is
> > >updated on the master
> > >node and never appears in the slave.
> > >
> > >The data continues to persist in the MLOG$ tables.
> > >I've verified there
> > >is only a single MV against each MV LOG, so the
> > >data in MLOG$ should
> > >be truncated after a refresh, but the fact that it
> > >isn't makes it fairly
> > >obvious that the refresh is not working properly.
> > >
> > >I have a serverity 1 TAR open now with Oracle, but
> > >so far all that's
> > >been accomplished with the TAR is me repeating
> > >everything I
> > >included initially.
> > >
> > >Any advice appreciated, as it's rather important to
> > >get this working again.
> > >
> > >Jared
> >
> > Jared,
> >
> >   What about the refresh jobs ? Does DBA_JOBS show failures ? If so, can
> > you wrap the dbms_refresh call into something to catch the error ? (if
you
> > feel lazy I think that there is code to this effect on the Oriole site
in
> > one of the 'Aunt Augusta' papers).
> >
> > Regards,
> >
> > Stephane Faroult
> > Oriole
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jared Still
>   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: Arup Nanda
  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).



UPDATE...REPLACE...'...apostrophe...

2003-02-25 Thread Gorden-Ozgul, Patricia E
Title: RE: SQL struggle



I'm 
running Oracle on Solaris 2.6.
 
I 
successfully inserted data from a composite file by replacing apostrophes 
with ' by way of 
sed...s/'/\'/g...beforehand.
 
Now I 
need to perform an UPDATE, REPLACE...
UPDATE 
tbl SET col = REPLACE(col, ''', ...with what?)
 
Please 
advise.
 
Pat 


  -Original Message-From: Saira Somani 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, February 25, 2003 
  3:24 PMTo: Multiple recipients of list ORACLE-LSubject: 
  RE: SQL struggle
  
  Thank you for your 
  assistance - it works -  and I have one more 
  question:
   
  How can I also get 
  the SELECT to show me the original item number - i.e 
  with the '-OR'?
   
  Thanks,
  Saira
   
  -Original 
  Message-From: Jacques 
  Kilchoer [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 1:57 
  PMTo: 
  '[EMAIL PROTECTED]'Cc: 
  '[EMAIL PROTECTED]'Subject: RE: SQL 
  struggle
   
  (see answer below) 
  > -Original Message- 
  > From: Saira Somani [mailto:[EMAIL PROTECTED]] 
  > > Oracle 8.1.7 on AIX 
  4.3 > 
  > Here is what 
  my data looks like in a table called item_w: > > WHSE_CODE    
  ITEM_NUM   
  LAST_COST > 
   -- -- > 
  HL1  
  111230   
  1.12 > 
  CPD-TWH  
  111230-OR   
  0 > 
  CPD-TGH  
  111230-OR   
  0 > 
  HL1  
  50034 
  .91 > 
  MSH-CDS  
  50034   
  0 > 
  CPD-TGH  
  50034-OR    
  0 > 
  HL1  
  650300  
  4.789 > 
  TWH-STAT 
  650300  
  0 > 
  CPD-TWH  
  650300-OR   
  0 > 
  CPD-TGH  
  650300-OR   
  0 > 
  > If you'll 
  notice, only the items with WHSE_CODE='HL1' have a cost 
  > associated with 
  them. > 
  > What I need 
  to is: > 
  > Parse 
  ITEM_NUM for those items which have a suffix of -OR in order to 
  > compare with an ITEM_NUM 
  without -OR so that I can take the last cost > from there and display it beside the 
  one that has -OR. Also > note, there > are some $0 cost items that don't have a suffix 
  of -OR; I > 
  would need to > match those up with a cost as well. 
  > 
  > So in the 
  end, I suppose, this is the result I'm looking for: > > WHSE_CODE    
  ITEM_NUM  LAST_COST  
  LAST_COST_REV >  - 
  -  - 
  > 
  HL1  
  111230       
      1.12    
         1.12 
  > 
  CPD-TWH  
  111230-OR    
      
      
  0   
         1.12 
  > 
  CPD-TGH  
  111230-OR    
      
      
  0   
         1.12 
  > 
  HL1  
  50034        
      0.91    
         0.91 
  > 
  MSH-CDS  50034    
      
      
  0   
         0.91 
  > 
  CPD-TGH  50034-OR 
      
      
  0   
         0.91 
  > 
  HL1  650300   
      
      4.789   
         4.789 
  > 
  TWH-STAT 650300   
      
      
  0   
         4.789 
  > 
  CPD-TWH  
  650300-OR    
      
      
  0   
         4.789 
  > 
  CPD-TGH  650300-OR 
     
      
      
  0   
      >    
  4.789  > > And if any of you out there use Cognos Impromptu, 
  perhaps you > 
  could tell > 
  me how I can achieve these results in a report. 
   
  Would this work?  select     a.whse_code, a.item_num, 
  a.last_cost,     b.last_cost as 
  last_cost_rev  from     item_w a, item_w b 
   where 
      a.last_cost 
  = 0     and replace (a.item_num, '-OR') = 
  b.item_num     and b.last_cost > 
  0 union  select     c.whse_code, c.item_num, 
  c.last_cost,     c.last_cost as 
  last_cost_rev  from     item_w c  where     c.last_cost > 0 
  ; 


Re: DBMS_STATS

2003-02-25 Thread babu . nagarajan

I think since DBMS_STATS also gathers histograms its taking more time

Babu



   
 
  Tim Gorman   
 
  <[EMAIL PROTECTED]To:   Multiple recipients of list 
ORACLE-L <[EMAIL PROTECTED]>
  m>   cc: 
 
  Sent by: Subject:  Re: DBMS_STATS
 
  [EMAIL PROTECTED]
  
   
 
   
 
  02/25/03 02:59 PM
 
  Please respond to
 
  ORACLE-L 
 
   
 
   
 




Could it have to do with the fact that ANALYZE is running against a
different partition than DBMS_STATS?
 - Original Message -
 From: Terrian, Tom (Contractor) (DAASC)
 To: Multiple recipients of list ORACLE-L
 Sent: Tuesday, February 25, 2003 11:12 AM
 Subject: DBMS_STATS

 I have never had good luck with DBMS_STATS.  It seems that the old analyze
 runs much faster.

 Runs in 45 seconds:
 analyze table log_trans partition (log_trans_20030104) estimate statistics
 sample 5 percent;

 Takes over 2 hours:
 execute dbms_stats.gather_table_stats(ownname => 'LDGADMIN', -
   tabname => 'LOG_TRANS', -
   partname => 'LOG_TRANS_20030102', -
   estimate_percent => 5);
 Am I missing something?  Aren't both commands the same?

 Thanks,
 Tom


_
This e-mail transmission and any attachments to it are intended solely for
the use of the individual or entity to whom it is addressed and may contain
confidential and privileged information.  If you are not the intended
recipient, your use, forwarding, printing, storing, disseminating,
distribution, or copying of this communication is prohibited.  If you
received this communication in error, please notify the sender immediately
by replying to this message and delete it from your computer.


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



RE: Skill Sets - This may be a dumb question

2003-02-25 Thread Smith, Ron L.
Title: Message



We are 
told pretty often by management that DBA's are 'dime a dozen' and we need to be 
more than 'just DBA's' to keep our jobs.  On the other hand we are hiring 
contractors that know Peoplesoft Admin and paying them big bucks.  
Same with Data Warehouse people.  They are in demand.  I am afraid 
repetative technical skills are on their way to being farmed out to outside 
contract companies that just 'keep the lights on'.  You may be better off 
in the new position.

  
  -Original Message-From: Ruth Gramolini 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 
  2003 1:59 PMTo: Multiple recipients of list 
  ORACLE-LSubject: Re: Skill Sets - This may be a dumb 
  question
  Lisa,
  Do you like the job?  Do you think it has a 
  future?  Will it give you time with your husband and new baby?  If 
  you answer yes to 3, than it's a good job.  Don't worry about your skill 
  sets, if you are flexable that will count for alot.
  Ruth
  
- Original Message - 
From: 
Koivu, Lisa 
To: Multiple recipients of list ORACLE-L 

Sent: Tuesday, February 25, 2003 11:34 
AM
Subject: Skill Sets - This may be a 
dumb question

Hello everyone, 
Well I've been "reassigned".  I was 
responsible for the completely messed up Peoplesoft Oracle/AIX environment 
but management here decided that it was more important to separate a husband 
and wife that both work in the same department, and assigned one of them to 
be primary support in this environment instead of me.  (sshh:  The 
new person who is primary doesn't know a thing about Unix.)  My primary 
job is now suppossed to be data modeling and data warehouse/mart design, 
moving on into Problematica (er, Informatica) development into a Sql Server 
database.  I will not be the admin on the Sql Server database.  My 
new boss referred to this as "database architecture".  ??  
What?  They have already decided what they want done and just want 
someone to take the pretty pictures and implement them with unrealistic 
deadlines.
The main reason why I am upset is because it 
seems to me that data modeling is such a "soft" skill.  I am concerned 
about keeping my skills up to date and keeping my hands in an Oracle 
environment, whether it's a mess or not.  Seems to me that data 
modeling alone isn't something that can land you a new job or really spiff 
up your resume.  I think that having a finite list of skills (Oracle, 
Unix, Windows 2000, Erwin, Project, crap like that) is more what employers 
search for, and is what HR depts can easily deal with. 
Am I wrong?  This job pays well and working 
for a huge company has it's benefits, if you can deal with the bureaucracy 
similar to what is described in the 1st paragraph.  And I know in this 
market I am just lucky to have a job.  
And please tell me if I'm whining.  I may 
just need a KITA.  Who knows anymore... 
Lisa Koivu Oracle Drink Beer Again Fairfield 
Resorts, Inc. 5259 Coconut Creek 
Parkway Ft. Lauderdale, FL, USA  
33063 Office: 954-935-4117  
Fax:    
954-935-3639 Cell:    
954-683-4459 
"The sender 
believes that this E-Mail and any attachments were free of any virus, worm, 
Trojan horse, and/or malicious code when sent. This message and its 
attachments could have been infected during transmission.  By reading 
the message and opening any attachments, the recipient accepts full 
responsibility for taking proactive and remedial action about viruses and 
other defects. The sender's business entity is not liable for any loss or 
damage arising in any way from this message or its 
attachments."-- Please see the official ORACLE-L FAQ: 
http://www.orafaq.net -- Author: Koivu, Lisa 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). 

If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited.  Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. Thank you.


RE: performance issues on sun

2003-02-25 Thread babu . nagarajan

I did this and its taking the same amount of time. The difference this time
is that it does not do the KAIO call. But the time has not improved. Its
still doing pwrite calls.

TIA

Babu



   
 
  John Kanagaraj   
 
  <[EMAIL PROTECTED]To:   Multiple recipients of list 
ORACLE-L <[EMAIL PROTECTED]>
  ds.com>  cc: 
 
  Sent by: Subject:  RE: performance issues on sun 
 
  [EMAIL PROTECTED]
  
   
 
   
 
  02/25/03 01:04 PM
 
  Please respond to
 
  ORACLE-L 
 
   
 
   
 




Babu,

> I think it is trying to do a KAIO call and failing. Then it attempts a
> synchronous PWRITE call.
>
> But our SAs are not able to help us to confirm this. Have any
> of you seen
> this issue?

I think you have hit the nail on the head. By default, the Oracle port on
Solaris sets 'disk_async_io' to TRUE. Set this to FALSE by introducing such
an entry in init.ora. Let us know if tihis solves your issue...

John Kanagaraj
Oracle Applications DBA
DBSoft Inc
(W): 408-970-7002

I don't know what the future holds for me, but I do know who holds my
future!

** The opinions and statements above are entirely my own and not those of
my
employer or clients **

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: John Kanagaraj
  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).




_
This e-mail transmission and any attachments to it are intended solely for
the use of the individual or entity to whom it is addressed and may contain
confidential and privileged information.  If you are not the intended
recipient, your use, forwarding, printing, storing, disseminating,
distribution, or copying of this communication is prohibited.  If you
received this communication in error, please notify the sender immediately
by replying to this message and delete it from your computer.


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



Re: Skill Sets - This may be a dumb question

2003-02-25 Thread Ferenc Mantfeld
Lisa

You owe it to yourself to spend a few hours per day mulling over the DW
stuff at www.ralphkimball.com. I still learn something every week, and it is
not DB specific. BTW, data architect is not that bad, some would even call
it a promotion. When you travel the world going to customer's sites fixing
up one mess after the next, and see how many DBB's pass themselves off as
DBA's, sometimes you do not want to be called a DBA (at least not at THAT
site), lest you are grouped in the same skill category.

The way to increase your earning power, is to specialize. Ask Mogen, Cary,
Jonathan, Jared or any of the greats on this list and they will all tell you
that. These days, any DBB can point and click. I got my son ( 9 years old)
to install Oracle on his home PC and create a database (of course I was
standing behind him to ensure he did nothing daft).

Cheers:

Ferenc Mantfeld
Dreaming costs you nothing. Not dreaming costs you everything.
- Original Message -
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 6:29 AM


> Lisa, here is a link that you may find useful.  It is geared for data
design and datawarehouse/datamart design.  I have found it useful.
>
> http://www.dmreview.com/
>
> Dave
>
> -Original Message-
> Sent: Tuesday, February 25, 2003 12:59 PM
> To: Multiple recipients of list ORACLE-L
>
>
> Lisa,
>  You are correct in your needing a vent or "whining" as you so
> eloquently put it. Corporate policy can and has ruined a great career if
> you are not prepared for the unforseen changes that the bean counters
> produce.
>  Not knowing the knowledge level of your spouse and not wanting to
> start a family feud, Is the best person for the task assigned to the
> proper task? Perhaps there can be a compromise made and you can
> alternate positions periodically to give  both of you additional
> knowledge. That way there would be a win-win situation.(I can't believe
> I used a corporate buzz word, Sorry just my past sneaking out).
>  If the new position can be in fact a complete solution where
> suggestions are accepted and considered then perhaps you can point out
> the pluses of using Oracle for the data-mart. Then you can be in
> complete control from start to finish and keep your Oracle skill set up
> with the market.
>   It is a tough time in the Oracle DBA market place. The published job
> listings have decreased drastically in the past 2 years. There still are
> openings out there but I feel that they are more prominent in the
> "networking" job listings rather than a head hunter or internet job
> search. I know that it would be an inconvenience to start a new job
> search now with the economy in question and the recent family increase,
> but IF you are dissatisfied with the current situation and you have
> thought it out completely and have complete agreement with your spouse,
> then I wish you good fortune and good luck.
> Ron
>
> >>> [EMAIL PROTECTED] 02/25/03 11:34AM >>>
>
> Hello everyone,
> Well I've been "reassigned".  I was responsible for the completely
> messed up Peoplesoft Oracle/AIX environment but management here decided
> that it was more important to separate a husband and wife that both work
> in the same department, and assigned one of them to be primary support
> in this environment instead of me.  (sshh:  The new person who is
> primary doesn't know a thing about Unix.)  My primary job is now
> suppossed to be data modeling and data warehouse/mart design, moving on
> into Problematica (er, Informatica) development into a Sql Server
> database.  I will not be the admin on the Sql Server database.  My new
> boss referred to this as "database architecture".  ??  What?  They have
> already decided what they want done and just want someone to take the
> pretty pictures and implement them with unrealistic deadlines.
> The main reason why I am upset is because it seems to me that data
> modeling is such a "soft" skill.  I am concerned about keeping my skills
> up to date and keeping my hands in an Oracle environment, whether it's a
> mess or not.  Seems to me that data modeling alone isn't something that
> can land you a new job or really spiff up your resume.  I think that
> having a finite list of skills (Oracle, Unix, Windows 2000, Erwin,
> Project, crap like that) is more what employers search for, and is what
> HR depts can easily deal with.
> Am I wrong?  This job pays well and working for a huge company has it's
> benefits, if you can deal with the bureaucracy similar to what is
> described in the 1st paragraph.  And I know in this market I am just
> lucky to have a job.
> And please tell me if I'm whining.  I may just need a KITA.  Who knows
> anymore...
> Lisa Koivu
> Oracle Drink Beer Again
> Fairfield Resorts, Inc.
> 5259 Coconut Creek Parkway
> Ft. Lauderdale, FL, USA  33063
> Office: 954-935-4117
> Fax:954-935-3639
> Cell:954-683-4459 "The sender believes that this E-Mail and any
> attachments were fre

Re: Materialized views not refreshing

2003-02-25 Thread Zale Dba
Jared,

I know this may sound stupid, but when you upgrade you change 
job_queue_processes to zero.  Did you reset your init parameter back after 
the upgrade?  I have seen that cause this problem before.

Hope it is this simple.

Later

Charles Hart







From: Jared Still <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Subject: Re: Materialized views not refreshing
Date: Tue, 25 Feb 2003 11:39:09 -0800
No, they were not being purged.

On Tuesday 25 February 2003 05:59, Thomas Day wrote:
> We had the problem where the M$LOG was not being purged after the
> materialized view was updated.  That doesn't seem to be your problem
> though.
>
>
>
>
>   Jared Still
>   
> of list ORACLE-L <[EMAIL PROTECTED]> @cybcon.com> cc:
>   Sent by: rootSubject: Re: Materialized
> views not refreshing
>
>
>   02/25/2003 06:49
>   AM
>   Please respond
>   to ORACLE-L
>
>
>
>
>
>
>
> No errors, no trace files.  Refreshing via refresh group or
> directly via the snapshot both failed to update the MV.
>
> They've since been recreated and are working at the moment.
>
> I'll slap a big ole note on my forehead that says 'run a trace on
> them stupid!' so I will remember to do so if these start failing again.
>
> Off to bed for me.
>
> Jared
>
> On Tuesday 25 February 2003 02:29, Stephane Faroult wrote:
> > >Dear list,
> > >
> > >Have any of you every experienced MV's not
> > >refreshing
> > >for no particular reason?
> > >
> > >We have been using some simple MV's for several
> > >months
> > >with no problem.  Now after upgrading our app and
> > >database,
> > >there seem to be problems.
> > >
> > >Servers:
> > >
> > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > >
> > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > >
> > >These databases were previously 8.1.6.  The master
> > >database
> > >now has a UTF8 character set, and all tables have
> > >NVARCHAR2
> > >columns.
> > >
> > >These are being converted in the MV using:
> > >   translate("COLUMN_NAME" using char_cs)
> > >COLUMN_NAME
> > >when creating the MV.
> > >
> > >There are no errors, no trace files.  Data is
> > >updated on the master
> > >node and never appears in the slave.
> > >
> > >The data continues to persist in the MLOG$ tables.
> > >I've verified there
> > >is only a single MV against each MV LOG, so the
> > >data in MLOG$ should
> > >be truncated after a refresh, but the fact that it
> > >isn't makes it fairly
> > >obvious that the refresh is not working properly.
> > >
> > >I have a serverity 1 TAR open now with Oracle, but
> > >so far all that's
> > >been accomplished with the TAR is me repeating
> > >everything I
> > >included initially.
> > >
> > >Any advice appreciated, as it's rather important to
> > >get this working again.
> > >
> > >Jared
> >
> > Jared,
> >
> >   What about the refresh jobs ? Does DBA_JOBS show failures ? If so, 
can
> > you wrap the dbms_refresh call into something to catch the error ? (if
>
> you
>
> > feel lazy I think that there is code to this effect on the Oriole site 
in
> > one of the 'Aunt Augusta' papers).
> >
> > Regards,
> >
> > Stephane Faroult
> > Oriole
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jared Still
>   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: Jared Still
  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*  
http://join.msn.com/?page=features/junkmail

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Zale Dba
 INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, Californi

RE: SQL struggle

2003-02-25 Thread Saira Somani
Title: RE: SQL struggle









Thank you for your assistance – it works
-  and I have
one more question:

 

How can I also get the SELECT to show me
the original item number – i.e with the ‘-OR’?

 

Thanks,

Saira

 

-Original Message-
From: Jacques Kilchoer
[mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 1:57 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: SQL struggle

 

(see answer below) 

> -Original Message- 
> From: Saira Somani [mailto:[EMAIL PROTECTED]]

> 
> Oracle 8.1.7 on AIX 4.3

> 
> Here is what my data looks
like in a table called item_w: 
> 
> WHSE_CODE   
ITEM_NUM  
LAST_COST 
> 
-- -- 
>
HL1 
111230  
1.12 
>
CPD-TWH  111230-OR  
0 
>
CPD-TGH 
111230-OR  
0 
>
HL1 
50034
.91 
>
MSH-CDS 
50034  
0 
>
CPD-TGH 
50034-OR   
0 
>
HL1 
650300 
4.789 
>
TWH-STAT
650300 
0 
>
CPD-TWH 
650300-OR  
0 
>
CPD-TGH 
650300-OR  
0 
> 
> If you'll notice, only the
items with WHSE_CODE='HL1' have a cost 
> associated with them.

> 
> What I need to is:

> 
> Parse ITEM_NUM for those items
which have a suffix of -OR in order to 
> compare with an ITEM_NUM
without -OR so that I can take the last cost 
> from there and display it
beside the one that has -OR. Also 
> note, there 
> are some $0 cost items that
don't have a suffix of -OR; I 
> would need to 
> match those up with a cost as
well. 
> 
> So in the end, I suppose, this
is the result I'm looking for: 
> 
> WHSE_CODE   
ITEM_NUM  LAST_COST  LAST_COST_REV

>  -
-  - 
>
HL1 
111230      
    1.12   
       1.12 
>
CPD-TWH 
111230-OR   
   
   
0      
   1.12 
>
CPD-TGH 
111230-OR   
   
   
0      
   1.12 
>
HL1 
50034       
    0.91   
       0.91 
>
MSH-CDS  50034   
   
   
0  
       0.91 
>
CPD-TGH  50034-OR
   
   
0  
       0.91 
>
HL1  650300  
   
    4.789  
       4.789 
>
TWH-STAT 650300  
   
   
0  
       4.789 
>
CPD-TWH 
650300-OR   
   
   
0      
   4.789 
>
CPD-TGH  650300-OR
      
   
0  
    
>   
4.789  
> 
> And if any of you out there
use Cognos Impromptu, perhaps you 
> could tell 
> me how I can achieve these
results in a report. 

 

Would this work? 
 select 
    a.whse_code,
a.item_num, a.last_cost, 
    b.last_cost as
last_cost_rev 
 from 
    item_w a, item_w
b 
 where 
    a.last_cost = 0

    and replace
(a.item_num, '-OR') = b.item_num 
    and b.last_cost
> 0 
union 
 select 
    c.whse_code,
c.item_num, c.last_cost, 
    c.last_cost as
last_cost_rev 
 from 
    item_w c

 where 
    c.last_cost >
0 ; 








Re: Materialized views not refreshing

2003-02-25 Thread brian . mcgraw
Jared - 

I assume you're attempting fast refreshes - Is it feasible to attempt a full refresh?  

I remember problems w/ snapshots (in the 8.0.4 days) where the snapshot logs would 
just stop working.  I had to perform a full refresh of the snapshots, then drop and 
recreate the snapshot logs.

Brian

- Original Message -
Date: Tuesday, February 25, 2003 1:39 pm

> 
> Yes, the jobs were firing, verified by timestamps in both
> the dba_jobs and dba_refresh views.
> 
> On Tuesday 25 February 2003 05:33, Darrell Landrum wrote:
> > Is the job even firing at all?  It is a common step in upgrading 
> to set
> > job_queue_processes=0 and this will prevent materialized views from
> > refreshing automatically.  Make sure this is greater than 0; I 
> normally set
> > it to 2.
> >
> > >>> [EMAIL PROTECTED] 02/25/03 04:29AM >>>
> > >
> > >Dear list,
> > >
> > >Have any of you every experienced MV's not
> > >refreshing
> > >for no particular reason?
> > >
> > >We have been using some simple MV's for several
> > >months
> > >with no problem.  Now after upgrading our app and
> > >database,
> > >there seem to be problems.
> > >
> > >Servers:
> > >
> > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > >
> > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > >
> > >These databases were previously 8.1.6.  The master
> > >database
> > >now has a UTF8 character set, and all tables have
> > >NVARCHAR2
> > >columns.
> > >
> > >These are being converted in the MV using:
> > >   translate("COLUMN_NAME" using char_cs)
> > >COLUMN_NAME
> > >when creating the MV.
> > >
> > >There are no errors, no trace files.  Data is
> > >updated on the master
> > >node and never appears in the slave.
> > >
> > >The data continues to persist in the MLOG$ tables.
> > >I've verified there
> > >is only a single MV against each MV LOG, so the
> > >data in MLOG$ should
> > >be truncated after a refresh, but the fact that it
> > >isn't makes it fairly
> > >obvious that the refresh is not working properly.
> > >
> > >I have a serverity 1 TAR open now with Oracle, but
> > >so far all that's
> > >been accomplished with the TAR is me repeating
> > >everything I
> > >included initially.
> > >
> > >Any advice appreciated, as it's rather important to
> > >get this working again.
> > >
> > >Jared
> >
> > Jared,
> >
> >   What about the refresh jobs ? Does DBA_JOBS show failures ? If 
> so, can
> > you wrap the dbms_refresh call into something to catch the error 
> ? (if you
> > feel lazy I think that there is code to this effect on the 
> Oriole site in
> > one of the 'Aunt Augusta' papers).
> >
> > Regards,
> >
> > Stephane Faroult
> > Oriole
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Jared Still
>  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: 
  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: performance issues on sun

2003-02-25 Thread Ferenc Mantfeld
The Solaris kernel has to have asynchronous IO enabled. If you are running
with at least Solaris 2.8, this should not be a problem. If you have your
files on VxFS, then I would VERY strongly suggest looking into Veritas DB
Edition, particularly, Quick IO (writes) and cached qio (reads). This gives
you true DIRECT IO on cooked journalled file systems (VxFS). I have seen
performance gains on the IO of up to 400% just from turning this on.
Moreover, if you are looking at waits, where I installed this at a previous
client, I saw my idle CPU time go from 0% - 5% range, into the 70% range,
and the iowait% reduce on average from 50% - 90% range to single-digit
figures. Also the load on the machine was greatly reduced. There was also a
management issue . See if you can understand this logic : They were using an
A1000 with RAID5  and 8 MB write cache (I told them how RAID5 hurts redo log
writes, TEMP and RBS writes until I was blue in the face, but they kept
showing me that RAID5 allowed them to configure more logical space than RAID
10, duh !) with wait for it  SCSI UW2, yep 2, that means a full 40MBPS
throughput, woohoo !. So they were willing to fork out the 30 grand it cost
for Qio, than to replace the A1000 with a new Adaptec Durastor 7220 SS which
would have given fibre speed, and about 4 times the amount of logical space,
and they would have gotten change from 20 grand, and there was no annual
software license maintenance fee. Don't get me wrong, I think Veritas has
some FANTASTIC products, a lot is dependent on the support person they
assign to your account (it took me about 10 support calls to realize that
the reason my reads were not going any faster was because I needed to
configure cached-quick-IO, which was NOT in any of the marketing stuff, only
upon re-reading the technical guide for the 4th time, did I spot the 3 line
entry about it and decided to ask questions.

Prior to Solaris 2.8, asynch IO on Solaris was not considered safe (by the
SA's anyway), but as of 2.8, one can enable asycnh IO on Solaris for cooked
file systems, if you can convince the SA that  Oracle has its own backup and
recovery mechanism. Then the next thing you need to worry about is stripe
size and getting it just right. Oh, and if you can ditch RAID5 in favour of
RAID 10, please do so as early as possible. I have just been reading through
my complimentary copy of Gaja and Kirti's book, and Gaja does a great job of
describing stripe sizes (Gaja, you did not mention cached quick IO only QIO,
tut tut ! ). I also disagree with Gaja about the folklore on HAVING to
separate indexes and their tables into separate tablespaces, that depends on
where the volumes are physically mapped to and unless you can see this
information, there is no basis for making this claim either way. But that is
another story, for another thread.

Hope this has helped you out. Regards :

Ferenc Mantfeld
The pain of regret is far worse than the pain of discipline !.
- Original Message -
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 1:11 AM


> All
>
> We are attempting to move some applications off Compaq T64 into Sun
Solaris
> 8 and running into performance issues.
>
> I am trying to rebuild an index which is taking more than 3 1/2 hours
while
> it used to take < 20 min on T64.
>
> I find most of the waits on DIRECT PATH READS and DIRECT PATH WRITES. The
> index tablespace and the temporary tablespace are on separate mountpoints
> which reside on separate disks.
>
> I am doing a "truss" on the session and see that its doing the following
>
> kaio(AIOWAIT, 0x)   Err#22 EINVAL
> pread(364, "\b02\0\0\v\099E1 f h ECB".., 1048576, 0x26784000) = 1048576
> kaio(AIOWAIT, 0x)   Err#22 EINVAL
> lwp_cond_wait(0x7CED7F70, 0x7CED7F80, 0x) = 0
> pwrite(408, "0602\0\0\nC41007 f h SDD".., 49152, 0x10401C000) = 49152
> pwrite(408, "0602\0\0\nC410\n f h SDD".., 49152, 0x104028000) = 49152
> pwrite(408, "0602\0\0\nC410\r f h SDD".., 49152, 0x104034000) = 49152
> pwrite(408, "0602\0\0\nC41010 f h SDD".., 49152, 0x10404) = 49152
> pwrite(408, "0602\0\0\nC41013 f h SDD".., 49152, 0x10404C000) = 49152
> pwrite(408, "0602\0\0\nC41016 f h SDD".., 49152, 0x104058000) = 49152
> pwrite(408, "0602\0\0\nC41019 f h SDD".., 49152, 0x104064000) = 49152
> pwrite(408, "0602\0\0\nC4101C f h SDD".., 49152, 0x10407) = 49152
> pwrite(408, "0602\0\0\nC4101F f h SDD".., 49152, 0x10407C000) = 49152
> pwrite(408, "0602\0\0\nC410 " f h SDD".., 49152, 0x104088000) = 49152
> pwrite(408, "0602\0\0\nC410 % f h SDD".., 49152, 0x104094000) = 49152
> pwrite(408, "0602\0\0\nC410 ( f h SDD".., 49152, 0x1040A) = 49152
> pwrite(408, "0602\0\0\nC410 + f h SDD".., 49152, 0x1040AC000) = 49152
> pwrite(408, "0602\0\0\nC410 . f h SDD".., 49152, 0x1040B8000) = 49152
> pwrite(408, "0602\0\0\nC410 1 f h SDD".., 49152, 0x1040C4000) = 49152
> pwrite(408, "0602\0\0\nC410 4

For those who may be interested

2003-02-25 Thread dgoulet
I've had contact with the recruiter that sent me this 'opportunity' before. 
He's above board and honest.  If your interested, contact him not me.

Dick Goulet



Good afternoon, if you are available and interested lets talk , if your
content right now please pass on to a friend and have a GREAT weekend!!


Responsible for support and administration of SQL7 SQL2000 and  databases,
SQL server data warehouses and Crystal Enterprises in a large
enterprise environment.

24x7 support, maintenance, performance evaluation and tuning corporate
databases.  Implementation of recovery procedures for corporate databases.
Evaluation and consultation on databases application technologies and tools
within/ across multiple platforms.  Provide training, mentoring coaching
ands hands on SQL support w.various development efforts.

BS degree in computer science and job related background necessary.  3-5
years
development / maintenance exp w/SQL/2000 databases including exp w/creating
SQL triggers, stored procedures and DTS packages.   Strong problem solving
abilities coupled with reasoning powers to be able to resolve problems and
offer assistance
alternative solutions.

Brian Leary

Attain Technical Search & Placement Inc.
49 Eliot St., South Natick, MA 01760
508-653-1066   Fax: 508-653-0039
mailto:[EMAIL PROTECTED]

"After All Attitude is Everything"


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



dbms_job

2003-02-25 Thread Basavaraja, Ravindra
Hi,

I have a procedure that submits a dbms_job for immediate processing for onetime.I want 
to know if the procedure that submits the job will have to wait till the job gets 
executed to execute the next piece of code after the dbms_job.submit() in the 
procedure or will the procedure submit the dbms_job and continue executing
the next line of code in the procedure.

Thanks
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Basavaraja, Ravindra
  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: DBMS_STATS

2003-02-25 Thread Jesse, Rich
Reading the bug, I'm frustrated for the user.  Anyway, what does "Event
10190" do?  Or is this a case of "File a TAR"?

Rich

Rich JesseSystem/Database Administrator
[EMAIL PROTECTED]   Quad/Tech International, Sussex, WI USA

-Original Message-
Sent: Tuesday, February 25, 2003 12:35 PM
To: Multiple recipients of list ORACLE-L


May have something to do with bug 2649728, which I just heard about for the
first time no more than 10 seconds ago.
 
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 25-27 London
-Original Message-
(Contractor) (DAASC)
Sent: Tuesday, February 25, 2003 12:13 PM
To: Multiple recipients of list ORACLE-L
 
I have never had good luck with DBMS_STATS.  It seems that the old analyze
runs much faster.
 
Runs in 45 seconds:
analyze table log_trans partition (log_trans_20030104) estimate statistics
sample 5 percent; 
 
Takes over 2 hours:
execute dbms_stats.gather_table_stats(ownname => 'LDGADMIN', -
  tabname => 'LOG_TRANS', -
  partname => 'LOG_TRANS_20030102', -
  estimate_percent => 5);
Am I missing something?  Aren't both commands the same?
 
Thanks,
Tom
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jesse, Rich
  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: DBMS_STATS

2003-02-25 Thread Tim Gorman
Title: Message



Could it have to do with the fact that ANALYZE is 
running against a different partition than DBMS_STATS?

  - Original Message - 
  From: 
  Terrian, Tom 
  (Contractor) (DAASC) 
  To: Multiple recipients of list ORACLE-L 
  
  Sent: Tuesday, February 25, 2003 11:12 
  AM
  Subject: DBMS_STATS
  
  I have never had 
  good luck with DBMS_STATS.  It seems that the old analyze runs much 
  faster.
   
  Runs in 45 
  seconds:
  analyze table 
  log_trans partition (log_trans_20030104) estimate statistics sample 5 
  percent; 
   
  Takes over 2 
  hours:
  execute 
  dbms_stats.gather_table_stats(ownname => 'LDGADMIN', 
  -  
  tabname => 'LOG_TRANS', 
  -  
  partname => 'LOG_TRANS_20030102', 
  -  estimate_percent 
  => 5);
  Am I missing 
  something?  Aren't both commands the same?
   
  Thanks,
  Tom


Re: Skill Sets - This may be a dumb question

2003-02-25 Thread Ruth Gramolini
Title: Skill Sets - This may be a dumb question



Lisa,
Do you like the job?  Do you think it has a future?  
Will it give you time with your husband and new baby?  If you answer yes to 
3, than it's a good job.  Don't worry about your skill sets, if you are 
flexable that will count for alot.
Ruth

  - Original Message - 
  From: 
  Koivu, Lisa 
  To: Multiple recipients of list ORACLE-L 
  
  Sent: Tuesday, February 25, 2003 11:34 
  AM
  Subject: Skill Sets - This may be a dumb 
  question
  
  Hello everyone, 
  Well I've been "reassigned".  I was 
  responsible for the completely messed up Peoplesoft Oracle/AIX environment but 
  management here decided that it was more important to separate a husband and 
  wife that both work in the same department, and assigned one of them to be 
  primary support in this environment instead of me.  (sshh:  The new 
  person who is primary doesn't know a thing about Unix.)  My primary job 
  is now suppossed to be data modeling and data warehouse/mart design, moving on 
  into Problematica (er, Informatica) development into a Sql Server 
  database.  I will not be the admin on the Sql Server database.  My 
  new boss referred to this as "database architecture".  ??  
  What?  They have already decided what they want done and just want 
  someone to take the pretty pictures and implement them with unrealistic 
  deadlines.
  The main reason why I am upset is because it seems 
  to me that data modeling is such a "soft" skill.  I am concerned about 
  keeping my skills up to date and keeping my hands in an Oracle environment, 
  whether it's a mess or not.  Seems to me that data modeling alone isn't 
  something that can land you a new job or really spiff up your resume.  I 
  think that having a finite list of skills (Oracle, Unix, Windows 2000, Erwin, 
  Project, crap like that) is more what employers search for, and is what HR 
  depts can easily deal with. 
  Am I wrong?  This job pays well and working 
  for a huge company has it's benefits, if you can deal with the bureaucracy 
  similar to what is described in the 1st paragraph.  And I know in this 
  market I am just lucky to have a job.  
  And please tell me if I'm whining.  I may just 
  need a KITA.  Who knows anymore... 
  Lisa Koivu Oracle Drink Beer Again Fairfield 
  Resorts, Inc. 5259 Coconut Creek 
  Parkway Ft. Lauderdale, FL, USA  
  33063 Office: 954-935-4117  
  Fax:    954-935-3639 
  Cell:    954-683-4459 
  "The sender 
  believes that this E-Mail and any attachments were free of any virus, worm, 
  Trojan horse, and/or malicious code when sent. This message and its 
  attachments could have been infected during transmission.  By reading the 
  message and opening any attachments, the recipient accepts full responsibility 
  for taking proactive and remedial action about viruses and other defects. The 
  sender's business entity is not liable for any loss or damage arising in any 
  way from this message or its attachments."-- Please see the 
  official ORACLE-L FAQ: http://www.orafaq.net -- Author: Koivu, Lisa 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). 


urgent: lots of db file sequential read

2003-02-25 Thread chao_ping
hi, friends:
  My db server has one poor t3(raid5, 256M Cache) and it is rather slow in disk io.
  This night, I added a second T3(256M Cache,Raid10) to the database and moved half of 
datafiles to the second raid.
  But it seems from statspack, IO wait is more than before:

StatisticTotal   per Secondper Trans
-   
CPU used by this session66,663 23.5  8.2
CPU used when call started  66,692 23.5  8.2

   ---
db file sequential read   225,846  178,026   93.03
log file sync   8,6044,1672.18
log file parallel write 8,6653,5931.88
db file parallel write7682,4551.28

now:  66 cpu used /178 cpu waited.
But with the old configuration,  cpu used vs cpu waited is like:
old:  7832 cpu used / 17508 cpu waited


   ---
db file sequential read10,164,408   17,508,898   83.50
db file parallel write 46,1301,072,2575.11
enqueue90,498  854,2414.07

StatisticTotal   per Secondper Trans
-   
CPU used by this session 7,832,321167.4  9.5
CPU used when call started   7,832,333167.4  9.5

  These snapshot are from different time and different time lengh, but I think after i 
added a disk array to disk array, IO wait should slowdown, but from the new statspack, 
relatively more time is spent on io wait?
  How to explain this?
  Thanks.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: chao_ping
  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: Skill Sets - This may be a dumb question

2003-02-25 Thread Koivu, Lisa
Hi Ron, 

Maybe I wasn't clear.  It's not me and my husband they are separating.  They are 
separating a husband and wife that both work in a different office than me.  My 
husband works for the same company too but he is a bean counter in a completely 
separate dept.

After initially being very upset, I've changed my attitude and am "keeping all my 
options open".  In the mean time I am trying to be a good citizen and hand over all 
the knowledge and info I've collected about the environment to the person now "in 
charge".  I'm answering all her Unix questions and giving her my unix books.  I also 
still sign in and check things out every am. 

Thanks Ron.  Have a great afternoon.



-Original Message-
Sent: Tuesday, February 25, 2003 1:59 PM
To: Multiple recipients of list ORACLE-L


Lisa,
 You are correct in your needing a vent or "whining" as you so
eloquently put it. Corporate policy can and has ruined a great career if
you are not prepared for the unforseen changes that the bean counters
produce.
 Not knowing the knowledge level of your spouse and not wanting to
start a family feud, Is the best person for the task assigned to the
proper task? Perhaps there can be a compromise made and you can
alternate positions periodically to give  both of you additional
knowledge. That way there would be a win-win situation.(I can't believe
I used a corporate buzz word, Sorry just my past sneaking out).
 If the new position can be in fact a complete solution where
suggestions are accepted and considered then perhaps you can point out
the pluses of using Oracle for the data-mart. Then you can be in
complete control from start to finish and keep your Oracle skill set up
with the market.
  It is a tough time in the Oracle DBA market place. The published job
listings have decreased drastically in the past 2 years. There still are
openings out there but I feel that they are more prominent in the
"networking" job listings rather than a head hunter or internet job
search. I know that it would be an inconvenience to start a new job
search now with the economy in question and the recent family increase,
but IF you are dissatisfied with the current situation and you have
thought it out completely and have complete agreement with your spouse,
then I wish you good fortune and good luck.
Ron

>>> [EMAIL PROTECTED] 02/25/03 11:34AM >>>

Hello everyone, 
Well I've been "reassigned".  I was responsible for the completely
messed up Peoplesoft Oracle/AIX environment but management here decided
that it was more important to separate a husband and wife that both work
in the same department, and assigned one of them to be primary support
in this environment instead of me.  (sshh:  The new person who is
primary doesn't know a thing about Unix.)  My primary job is now
suppossed to be data modeling and data warehouse/mart design, moving on
into Problematica (er, Informatica) development into a Sql Server
database.  I will not be the admin on the Sql Server database.  My new
boss referred to this as "database architecture".  ??  What?  They have
already decided what they want done and just want someone to take the
pretty pictures and implement them with unrealistic deadlines.
The main reason why I am upset is because it seems to me that data
modeling is such a "soft" skill.  I am concerned about keeping my skills
up to date and keeping my hands in an Oracle environment, whether it's a
mess or not.  Seems to me that data modeling alone isn't something that
can land you a new job or really spiff up your resume.  I think that
having a finite list of skills (Oracle, Unix, Windows 2000, Erwin,
Project, crap like that) is more what employers search for, and is what
HR depts can easily deal with. 
Am I wrong?  This job pays well and working for a huge company has it's
benefits, if you can deal with the bureaucracy similar to what is
described in the 1st paragraph.  And I know in this market I am just
lucky to have a job.  
And please tell me if I'm whining.  I may just need a KITA.  Who knows
anymore... 
Lisa Koivu 
Oracle Drink Beer Again 
Fairfield Resorts, Inc. 
5259 Coconut Creek Parkway 
Ft. Lauderdale, FL, USA  33063 
Office: 954-935-4117  
Fax:954-935-3639 
Cell:954-683-4459 "The sender believes that this E-Mail and any
attachments were free of any virus, worm, Trojan horse, and/or malicious
code when sent. This message and its attachments could have been
infected during transmission.  By reading the message and opening any
attachments, the recipient accepts full responsibility for taking
proactive and remedial action about viruses and other defects. The
sender's business entity is not liable for any loss or damage arising in
any way from this message or its attachments."-- Please see the official
ORACLE-L FAQ: http://www.orafaq.net -- Author: Koivu, Lisa INET:
[EMAIL PROTECTED] Fat City Network Services -- 858-538-5051
http://www.fatcity.com San Diego, California -- Mailing list and web
hosting services
--

RE: Skill Sets - This may be a dumb question

2003-02-25 Thread Orr, Steve
Title: Skill Sets - This may be a dumb question



Bureaucracies don't like husbands and wives to be in the same department 
because there's a greater chance for collusion with the notion is that it's 
easier for two people to steal something when they are working together. So... 
because they don't trust them you have to adjust? Sounds very Dilbertian. I'd 
whine too but it may be better to lay low and wait just in case things blow up. 
In the meantime you can fantasize about the satisfaction you'll feel after you 
come to the rescue and say "I told you so."  ;-)
Apologies... 

  -Original Message-From: Koivu, Lisa 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, February 25, 2003 
  9:34 AMTo: Multiple recipients of list ORACLE-LSubject: 
  Skill Sets - This may be a dumb question
  Hello everyone, 
  Well I've been "reassigned".  I was 
  responsible for the completely messed up Peoplesoft Oracle/AIX environment but 
  management here decided that it was more important to separate a husband and 
  wife that both work in the same department, and assigned one of them to be 
  primary support in this environment instead of me.  (sshh:  The new 
  person who is primary doesn't know a thing about Unix.)  My primary job 
  is now suppossed to be data modeling and data warehouse/mart design, moving on 
  into Problematica (er, Informatica) development into a Sql Server 
  database.  I will not be the admin on the Sql Server database.  My 
  new boss referred to this as "database architecture".  ??  
  What?  They have already decided what they want done and just want 
  someone to take the pretty pictures and implement them with unrealistic 
  deadlines.
  The main reason why I am upset is because it seems 
  to me that data modeling is such a "soft" skill.  I am concerned about 
  keeping my skills up to date and keeping my hands in an Oracle environment, 
  whether it's a mess or not.  Seems to me that data modeling alone isn't 
  something that can land you a new job or really spiff up your resume.  I 
  think that having a finite list of skills (Oracle, Unix, Windows 2000, Erwin, 
  Project, crap like that) is more what employers search for, and is what HR 
  depts can easily deal with. 
  Am I wrong?  This job pays well and working 
  for a huge company has it's benefits, if you can deal with the bureaucracy 
  similar to what is described in the 1st paragraph.  And I know in this 
  market I am just lucky to have a job.  
  And please tell me if I'm whining.  I may just 
  need a KITA.  Who knows anymore... 
  Lisa Koivu Oracle Drink Beer Again Fairfield 
  Resorts, Inc. 5259 Coconut Creek 
  Parkway Ft. Lauderdale, FL, USA  
  33063 Office: 954-935-4117  
  Fax:    954-935-3639 
  Cell:    954-683-4459 
  "The sender 
  believes that this E-Mail and any attachments were free of any virus, worm, 
  Trojan horse, and/or malicious code when sent. This message and its 
  attachments could have been infected during transmission.  By reading the 
  message and opening any attachments, the recipient accepts full responsibility 
  for taking proactive and remedial action about viruses and other defects. The 
  sender's business entity is not liable for any loss or damage arising in any 
  way from this message or its 
attachments."


RE: Skill Sets - This may be a dumb question

2003-02-25 Thread Odland, Brad
Lisa,

Oracle DBA's make good designers as they know the ins and outs of what first
makes a healty database. And that is good data thats easy to query and
stored properly. I know DBAs appreciate having ERD's and complete schema
creation scripts. The fact that you have DBA skills means you won't create a
fetid steaming pile that someone else has to deal with. That is worth a lot
to a company...

Good luck

Brad O.












-Original Message-
Sent: Tuesday, February 25, 2003 12:59 PM
To: Multiple recipients of list ORACLE-L



Hello everyone, 
Well I've been "reassigned".  I was responsible for the completely
messed up Peoplesoft Oracle/AIX environment but management here decided
that it was more important to separate a husband and wife that both work
in the same department, and assigned one of them to be primary support
in this environment instead of me.  (sshh:  The new person who is
primary doesn't know a thing about Unix.)  My primary job is now
suppossed to be data modeling and data warehouse/mart design, moving on
into Problematica (er, Informatica) development into a Sql Server
database.  I will not be the admin on the Sql Server database.  My new
boss referred to this as "database architecture".  ??  What?  They have
already decided what they want done and just want someone to take the
pretty pictures and implement them with unrealistic deadlines.
The main reason why I am upset is because it seems to me that data
modeling is such a "soft" skill.  I am concerned about keeping my skills
up to date and keeping my hands in an Oracle environment, whether it's a
mess or not.  Seems to me that data modeling alone isn't something that
can land you a new job or really spiff up your resume.  I think that
having a finite list of skills (Oracle, Unix, Windows 2000, Erwin,
Project, crap like that) is more what employers search for, and is what
HR depts can easily deal with. 
Am I wrong?  This job pays well and working for a huge company has it's
benefits, if you can deal with the bureaucracy similar to what is
described in the 1st paragraph.  And I know in this market I am just
lucky to have a job.  
And please tell me if I'm whining.  I may just need a KITA.  Who knows
anymore... 
Lisa Koivu 
Oracle Drink Beer Again 
Fairfield Resorts, Inc. 
5259 Coconut Creek Parkway 
Ft. Lauderdale, FL, USA  33063 
Office: 954-935-4117  
Fax:954-935-3639 
Cell:954-683-4459 "The sender believes that this E-Mail and any
attachments were free of any virus, worm, Trojan horse, and/or malicious
code when sent. This message and its attachments could have been
infected during transmission.  By reading the message and opening any
attachments, the recipient accepts full responsibility for taking
proactive and remedial action about viruses and other defects. The
sender's business entity is not liable for any loss or damage arising in
any way from this message or its attachments."-- Please see the official
ORACLE-L FAQ: http://www.orafaq.net -- Author: Koivu, Lisa 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: 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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Odland, Brad
  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: Materialized views not refreshing

2003-02-25 Thread Jared Still

No, they were not being purged.

On Tuesday 25 February 2003 05:59, Thomas Day wrote:
> We had the problem where the M$LOG was not being purged after the
> materialized view was updated.  That doesn't seem to be your problem
> though.
>
>
>
>
>   Jared Still
>of list ORACLE-L <[EMAIL PROTECTED]> @cybcon.com> cc:
>   Sent by: rootSubject: Re: Materialized
> views not refreshing
>
>
>   02/25/2003 06:49
>   AM
>   Please respond
>   to ORACLE-L
>
>
>
>
>
>
>
> No errors, no trace files.  Refreshing via refresh group or
> directly via the snapshot both failed to update the MV.
>
> They've since been recreated and are working at the moment.
>
> I'll slap a big ole note on my forehead that says 'run a trace on
> them stupid!' so I will remember to do so if these start failing again.
>
> Off to bed for me.
>
> Jared
>
> On Tuesday 25 February 2003 02:29, Stephane Faroult wrote:
> > >Dear list,
> > >
> > >Have any of you every experienced MV's not
> > >refreshing
> > >for no particular reason?
> > >
> > >We have been using some simple MV's for several
> > >months
> > >with no problem.  Now after upgrading our app and
> > >database,
> > >there seem to be problems.
> > >
> > >Servers:
> > >
> > >Master:  Win2k SP2  Oracle 8.1.7.4.1
> > >
> > >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> > >
> > >These databases were previously 8.1.6.  The master
> > >database
> > >now has a UTF8 character set, and all tables have
> > >NVARCHAR2
> > >columns.
> > >
> > >These are being converted in the MV using:
> > >   translate("COLUMN_NAME" using char_cs)
> > >COLUMN_NAME
> > >when creating the MV.
> > >
> > >There are no errors, no trace files.  Data is
> > >updated on the master
> > >node and never appears in the slave.
> > >
> > >The data continues to persist in the MLOG$ tables.
> > >I've verified there
> > >is only a single MV against each MV LOG, so the
> > >data in MLOG$ should
> > >be truncated after a refresh, but the fact that it
> > >isn't makes it fairly
> > >obvious that the refresh is not working properly.
> > >
> > >I have a serverity 1 TAR open now with Oracle, but
> > >so far all that's
> > >been accomplished with the TAR is me repeating
> > >everything I
> > >included initially.
> > >
> > >Any advice appreciated, as it's rather important to
> > >get this working again.
> > >
> > >Jared
> >
> > Jared,
> >
> >   What about the refresh jobs ? Does DBA_JOBS show failures ? If so, can
> > you wrap the dbms_refresh call into something to catch the error ? (if
>
> you
>
> > feel lazy I think that there is code to this effect on the Oriole site in
> > one of the 'Aunt Augusta' papers).
> >
> > Regards,
> >
> > Stephane Faroult
> > Oriole
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jared Still
>   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: Jared Still
  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: Materialized views not refreshing

2003-02-25 Thread Jared Still

Yes, the jobs were firing, verified by timestamps in both
the dba_jobs and dba_refresh views.

On Tuesday 25 February 2003 05:33, Darrell Landrum wrote:
> Is the job even firing at all?  It is a common step in upgrading to set
> job_queue_processes=0 and this will prevent materialized views from
> refreshing automatically.  Make sure this is greater than 0; I normally set
> it to 2.
>
> >>> [EMAIL PROTECTED] 02/25/03 04:29AM >>>
> >
> >Dear list,
> >
> >Have any of you every experienced MV's not
> >refreshing
> >for no particular reason?
> >
> >We have been using some simple MV's for several
> >months
> >with no problem.  Now after upgrading our app and
> >database,
> >there seem to be problems.
> >
> >Servers:
> >
> >Master:  Win2k SP2  Oracle 8.1.7.4.1
> >
> >Slave: NT 4 SP6 Oracle 8.1.7.4.1
> >
> >These databases were previously 8.1.6.  The master
> >database
> >now has a UTF8 character set, and all tables have
> >NVARCHAR2
> >columns.
> >
> >These are being converted in the MV using:
> >   translate("COLUMN_NAME" using char_cs)
> >COLUMN_NAME
> >when creating the MV.
> >
> >There are no errors, no trace files.  Data is
> >updated on the master
> >node and never appears in the slave.
> >
> >The data continues to persist in the MLOG$ tables.
> >I've verified there
> >is only a single MV against each MV LOG, so the
> >data in MLOG$ should
> >be truncated after a refresh, but the fact that it
> >isn't makes it fairly
> >obvious that the refresh is not working properly.
> >
> >I have a serverity 1 TAR open now with Oracle, but
> >so far all that's
> >been accomplished with the TAR is me repeating
> >everything I
> >included initially.
> >
> >Any advice appreciated, as it's rather important to
> >get this working again.
> >
> >Jared
>
> Jared,
>
>   What about the refresh jobs ? Does DBA_JOBS show failures ? If so, can
> you wrap the dbms_refresh call into something to catch the error ? (if you
> feel lazy I think that there is code to this effect on the Oriole site in
> one of the 'Aunt Augusta' papers).
>
> Regards,
>
> Stephane Faroult
> Oriole
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jared Still
  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: Materialized views not refreshing

2003-02-25 Thread Jared Still

Didn't help to do  it manually.

On Tuesday 25 February 2003 06:14, Henry Poras wrote:
> Jared,
> Does it work if you do a manual refresh?
>
> Henry
>
> -Original Message-
> Sent: Tuesday, February 25, 2003 3:49 AM
> To: Multiple recipients of list ORACLE-L
>
>
>
> Dear list,
>
> Have any of you every experienced MV's not refreshing
> for no particular reason?
>
> We have been using some simple MV's for several months
> with no problem.  Now after upgrading our app and database,
> there seem to be problems.
>
> Servers:
>
> Master:  Win2k SP2  Oracle 8.1.7.4.1
>
> Slave: NT 4 SP6 Oracle 8.1.7.4.1
>
> These databases were previously 8.1.6.  The master database
> now has a UTF8 character set, and all tables have NVARCHAR2
> columns.
>
> These are being converted in the MV using:
>translate("COLUMN_NAME" using char_cs) COLUMN_NAME
> when creating the MV.
>
> There are no errors, no trace files.  Data is updated on the master
> node and never appears in the slave.
>
> The data continues to persist in the MLOG$ tables.  I've verified there
> is only a single MV against each MV LOG, so the data in MLOG$ should
> be truncated after a refresh, but the fact that it isn't makes it fairly
> obvious that the refresh is not working properly.
>
> I have a serverity 1 TAR open now with Oracle, but so far all that's
> been accomplished with the TAR is me repeating everything I
> included initially.
>
> Any advice appreciated, as it's rather important to get this working again.
>
> Jared
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jared Still
  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: Skill Sets - This may be a dumb question

2003-02-25 Thread Farnsworth, Dave
Lisa, here is a link that you may find useful.  It is geared for data design and 
datawarehouse/datamart design.  I have found it useful.

http://www.dmreview.com/

Dave

-Original Message-
Sent: Tuesday, February 25, 2003 12:59 PM
To: Multiple recipients of list ORACLE-L


Lisa,
 You are correct in your needing a vent or "whining" as you so
eloquently put it. Corporate policy can and has ruined a great career if
you are not prepared for the unforseen changes that the bean counters
produce.
 Not knowing the knowledge level of your spouse and not wanting to
start a family feud, Is the best person for the task assigned to the
proper task? Perhaps there can be a compromise made and you can
alternate positions periodically to give  both of you additional
knowledge. That way there would be a win-win situation.(I can't believe
I used a corporate buzz word, Sorry just my past sneaking out).
 If the new position can be in fact a complete solution where
suggestions are accepted and considered then perhaps you can point out
the pluses of using Oracle for the data-mart. Then you can be in
complete control from start to finish and keep your Oracle skill set up
with the market.
  It is a tough time in the Oracle DBA market place. The published job
listings have decreased drastically in the past 2 years. There still are
openings out there but I feel that they are more prominent in the
"networking" job listings rather than a head hunter or internet job
search. I know that it would be an inconvenience to start a new job
search now with the economy in question and the recent family increase,
but IF you are dissatisfied with the current situation and you have
thought it out completely and have complete agreement with your spouse,
then I wish you good fortune and good luck.
Ron

>>> [EMAIL PROTECTED] 02/25/03 11:34AM >>>

Hello everyone, 
Well I've been "reassigned".  I was responsible for the completely
messed up Peoplesoft Oracle/AIX environment but management here decided
that it was more important to separate a husband and wife that both work
in the same department, and assigned one of them to be primary support
in this environment instead of me.  (sshh:  The new person who is
primary doesn't know a thing about Unix.)  My primary job is now
suppossed to be data modeling and data warehouse/mart design, moving on
into Problematica (er, Informatica) development into a Sql Server
database.  I will not be the admin on the Sql Server database.  My new
boss referred to this as "database architecture".  ??  What?  They have
already decided what they want done and just want someone to take the
pretty pictures and implement them with unrealistic deadlines.
The main reason why I am upset is because it seems to me that data
modeling is such a "soft" skill.  I am concerned about keeping my skills
up to date and keeping my hands in an Oracle environment, whether it's a
mess or not.  Seems to me that data modeling alone isn't something that
can land you a new job or really spiff up your resume.  I think that
having a finite list of skills (Oracle, Unix, Windows 2000, Erwin,
Project, crap like that) is more what employers search for, and is what
HR depts can easily deal with. 
Am I wrong?  This job pays well and working for a huge company has it's
benefits, if you can deal with the bureaucracy similar to what is
described in the 1st paragraph.  And I know in this market I am just
lucky to have a job.  
And please tell me if I'm whining.  I may just need a KITA.  Who knows
anymore... 
Lisa Koivu 
Oracle Drink Beer Again 
Fairfield Resorts, Inc. 
5259 Coconut Creek Parkway 
Ft. Lauderdale, FL, USA  33063 
Office: 954-935-4117  
Fax:954-935-3639 
Cell:954-683-4459 "The sender believes that this E-Mail and any
attachments were free of any virus, worm, Trojan horse, and/or malicious
code when sent. This message and its attachments could have been
infected during transmission.  By reading the message and opening any
attachments, the recipient accepts full responsibility for taking
proactive and remedial action about viruses and other defects. The
sender's business entity is not liable for any loss or damage arising in
any way from this message or its attachments."-- Please see the official
ORACLE-L FAQ: http://www.orafaq.net -- Author: Koivu, Lisa 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: Ron Rogers
  INET: [EMAIL PROTECTED]

Fat City Network Services   

Re: Skill Sets - This may be a dumb question

2003-02-25 Thread Ron Rogers
Lisa,
 You are correct in your needing a vent or "whining" as you so
eloquently put it. Corporate policy can and has ruined a great career if
you are not prepared for the unforseen changes that the bean counters
produce.
 Not knowing the knowledge level of your spouse and not wanting to
start a family feud, Is the best person for the task assigned to the
proper task? Perhaps there can be a compromise made and you can
alternate positions periodically to give  both of you additional
knowledge. That way there would be a win-win situation.(I can't believe
I used a corporate buzz word, Sorry just my past sneaking out).
 If the new position can be in fact a complete solution where
suggestions are accepted and considered then perhaps you can point out
the pluses of using Oracle for the data-mart. Then you can be in
complete control from start to finish and keep your Oracle skill set up
with the market.
  It is a tough time in the Oracle DBA market place. The published job
listings have decreased drastically in the past 2 years. There still are
openings out there but I feel that they are more prominent in the
"networking" job listings rather than a head hunter or internet job
search. I know that it would be an inconvenience to start a new job
search now with the economy in question and the recent family increase,
but IF you are dissatisfied with the current situation and you have
thought it out completely and have complete agreement with your spouse,
then I wish you good fortune and good luck.
Ron

>>> [EMAIL PROTECTED] 02/25/03 11:34AM >>>

Hello everyone, 
Well I've been "reassigned".  I was responsible for the completely
messed up Peoplesoft Oracle/AIX environment but management here decided
that it was more important to separate a husband and wife that both work
in the same department, and assigned one of them to be primary support
in this environment instead of me.  (sshh:  The new person who is
primary doesn't know a thing about Unix.)  My primary job is now
suppossed to be data modeling and data warehouse/mart design, moving on
into Problematica (er, Informatica) development into a Sql Server
database.  I will not be the admin on the Sql Server database.  My new
boss referred to this as "database architecture".  ??  What?  They have
already decided what they want done and just want someone to take the
pretty pictures and implement them with unrealistic deadlines.
The main reason why I am upset is because it seems to me that data
modeling is such a "soft" skill.  I am concerned about keeping my skills
up to date and keeping my hands in an Oracle environment, whether it's a
mess or not.  Seems to me that data modeling alone isn't something that
can land you a new job or really spiff up your resume.  I think that
having a finite list of skills (Oracle, Unix, Windows 2000, Erwin,
Project, crap like that) is more what employers search for, and is what
HR depts can easily deal with. 
Am I wrong?  This job pays well and working for a huge company has it's
benefits, if you can deal with the bureaucracy similar to what is
described in the 1st paragraph.  And I know in this market I am just
lucky to have a job.  
And please tell me if I'm whining.  I may just need a KITA.  Who knows
anymore... 
Lisa Koivu 
Oracle Drink Beer Again 
Fairfield Resorts, Inc. 
5259 Coconut Creek Parkway 
Ft. Lauderdale, FL, USA  33063 
Office: 954-935-4117  
Fax:954-935-3639 
Cell:954-683-4459 "The sender believes that this E-Mail and any
attachments were free of any virus, worm, Trojan horse, and/or malicious
code when sent. This message and its attachments could have been
infected during transmission.  By reading the message and opening any
attachments, the recipient accepts full responsibility for taking
proactive and remedial action about viruses and other defects. The
sender's business entity is not liable for any loss or damage arising in
any way from this message or its attachments."-- Please see the official
ORACLE-L FAQ: http://www.orafaq.net -- Author: Koivu, Lisa 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: 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 spe

Passing data in a collection via a dblink

2003-02-25 Thread Stephane Paquette



Hi 
all,
 
A developper wants 
to pass a collection (varray) between 2 stored procs on 2 databases via a 
dblink.
Can we declared a 
collection of a remote database locally ?
 
This is on 
8172
 
 
 


Stephane Paquette
Administrateur 
de bases de donnees
Database 
Administrator
Standard 
Life
www.standardlife.ca
Tél. 
(514) 925-7187
[EMAIL PROTECTED]
 


password scripting question

2003-02-25 Thread Nick Wagner



 

This is somewhat 
related to the question earlier about how to encrypt a password in a 
script... however, what I want to do is also be able to start that database 
through a script.  
 
(Oracle 
9.2.0.)
 
Essentially I have a 
database that I want to shut down at 5pm every night, and start it back up at 
8am in the morning.  I currently have a script that logs into sqlplus "/ as 
sysdba" 
 
I tried creating a 
use OPS$ORACLE and granted it dba, sysdba, and set the tablespaces.   
And I can log in fine doing a 
 
$ sqlplus 
/
 
and when I do a 
'select user from dual;' it comes back and says OPS$ORACLE...   
exactly what I want... however when I try to start or shutdown the database it 
says I must be logged in as SYSDBA or SYSOPR...  or I try 

 
$ sqlplus "/ as 
sysdba" 
 
logs into oracle 
just fine, but when I do a 'select user from dual;' it comes back 
as SYS and not OPS$ORACLE...  what am I doing wrong?   

 
Thanks! 

 
Nick
 
 
 


RE: SQL struggle

2003-02-25 Thread Jacques Kilchoer
Title: RE: SQL struggle





(see answer below)


> -Original Message-
> From: Saira Somani [mailto:[EMAIL PROTECTED]]
> 
> Oracle 8.1.7 on AIX 4.3
> 
> Here is what my data looks like in a table called item_w:
> 
> WHSE_CODE    ITEM_NUM   LAST_COST
>  -- --
> HL1  111230   1.12
> CPD-TWH  111230-OR   0
> CPD-TGH  111230-OR   0
> HL1  50034 .91
> MSH-CDS  50034   0
> CPD-TGH  50034-OR    0
> HL1  650300  4.789
> TWH-STAT 650300  0
> CPD-TWH  650300-OR   0
> CPD-TGH  650300-OR   0
> 
> If you'll notice, only the items with WHSE_CODE='HL1' have a cost
> associated with them.
> 
> What I need to is:
> 
> Parse ITEM_NUM for those items which have a suffix of -OR in order to
> compare with an ITEM_NUM without -OR so that I can take the last cost
> from there and display it beside the one that has -OR. Also 
> note, there
> are some $0 cost items that don't have a suffix of -OR; I 
> would need to
> match those up with a cost as well. 
> 
> So in the end, I suppose, this is the result I'm looking for:
> 
> WHSE_CODE    ITEM_NUM  LAST_COST  LAST_COST_REV
>  - -  -
> HL1  111230           1.12           1.12
> CPD-TWH  111230-OR            0          1.12
> CPD-TGH  111230-OR            0          1.12
> HL1  50034            0.91           0.91
> MSH-CDS  50034            0          0.91
> CPD-TGH  50034-OR         0          0.91
> HL1  650300           4.789          4.789
> TWH-STAT 650300           0          4.789
> CPD-TWH  650300-OR            0          4.789
> CPD-TGH  650300-OR            0       
>    4.789  
> 
> And if any of you out there use Cognos Impromptu, perhaps you 
> could tell
> me how I can achieve these results in a report.



Would this work?
 select
    a.whse_code, a.item_num, a.last_cost,
    b.last_cost as last_cost_rev
 from
    item_w a, item_w b
 where
    a.last_cost = 0
    and replace (a.item_num, '-OR') = b.item_num
    and b.last_cost > 0
union
 select
    c.whse_code, c.item_num, c.last_cost,
    c.last_cost as last_cost_rev
 from
    item_w c
 where
    c.last_cost > 0 ;





Performance issue

2003-02-25 Thread Kader Ben
Hi Lisetrs,

  I have enough free memory from shared_pool_size and
I run stats every week but the BD still shows up the
low hit ratio and some times the later full down to
15%!
Here is some informations:

Obj mem:  79503437 bytes
Shared sql:  23852410 bytes
Cursors:  244875 bytes
Free memory: 204512816 bytes (195.04MB)
Shared pool utilization (total):  124320866 bytes
(118.56MB)
Shared pool allocation (actual):  3
bytes (286.1MB)
Percentage Utilized:  41%

Hit Ratio : 74.2249062

I appreciate to give me some guidelines.

Thanks,


Ben

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Kader Ben
  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 long to hold onto old Oracle CDs?

2003-02-25 Thread david davis
Wild. You would think a business that makes and sells software would keep 
better track of it. Sounds kind of sloppy.

So I guess I got lucky.

David


From: Mogens Nørgaard <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Subject: Re: How long to hold onto old Oracle CDs?
Date: Mon, 24 Feb 2003 21:48:50 -0800
On the local level (eg Denmark) they might have a CD or they might not. 
There won't be a centralised, systematic archiving effort. Frankly, when I 
was in Support, I would sometimes contact a customer that I knew had a 
certain (old) version and have them ship a copy or lend it to me, so that I 
could help another customer.

I'm not sure there's a central archive at HQ either. I've never heard about 
it, which doesn't say much, but I know for a fact about certain versions on 
certain platforms that couldn't even be located in Development during their 
supported cycle - but that's the odd exception, of course. I'd be very 
surprised if Oracle has a registered copy of version 5 in an archive, 
although there might still be some sensitive and confidential installations 
around with that version running.

Mogens

david davis wrote:

I cut an iTAR on Metalink back last Oct. It would have been simpler. If 
someone had maintained our support agreement. But while that was being 
resolved. The sent me the CD. I got the CD in a couple of days.

I was informed by someone at IBM that Oracle could burn new CD's. If you 
truly have a need for the CD. Such as lost/broken. Put pressure on them 
via your account rep.

I hardly think it is likely for a vendor to say they don't have the code. 
If we have people on the list with software dating back to Oracle 4, I 
doubt Oracle is purging its archives of the software. It would be 
irrational. It is more likely they are just being difficult. Doing nothing 
is always the easiest route for the vendor.

From: "Adams, Matthew (GECP, MABG, 088130)" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Subject: RE: How long to hold onto old Oracle CDs?
Date: Mon, 24 Feb 2003 09:24:11 -0800
Two months ago, I tried to order older non-supported
CDs (7.3, 8.0.5, 8.0.6) and they told me
they could not ship them.
How did you order them?


Matt Adams - GE Appliances - [EMAIL PROTECTED]
We have enough youth.
How about a fountain of intelligence?
-Original Message-
Sent: Monday, February 24, 2003 10:39 AM
To: Multiple recipients of list ORACLE-L
Actually the CD's are available. You just have to request them from 
Oracle.
Of course, this does depend upon having a support contract.

Ordered a replacement CD a couple of months ago for 7.3.4 (HP/UX) due to
cracked media.
>From: "Jesse, Rich" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: How long to hold onto old Oracle CDs?
>Date: Mon, 24 Feb 2003 06:58:58 -0800
>
>Hey all,
>
>Can anyone think of a reason to hold on to Oracle 7.3.3 HP/UX CDs?  
We've
>been at 8.1.7 for 18 months now.  I can't think of a good reason, other
>than
>the software isn't available anymore.
>
>Anybody want some old CDs?  :)
>
>Rich
>
>Rich JesseSystem/Database Administrator
>[EMAIL PROTECTED]   Quad/Tech International, Sussex, WI 
USA
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.net
>--
>Author: Jesse, Rich
>   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).

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: david davis
  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 messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/

RE: Openssl security breach detected - oracle concerned?

2003-02-25 Thread Boivin, Patrice J
I logged a TAR with Oracle, they responded that this is privileged
information.

; )

I recommend sending a question to the Oracle Alerts people.

That's what I am doing...

Pat.

-Original Message-
Sent: Tuesday, February 25, 2003 10:11 AM
To: Multiple recipients of list ORACLE-L


The recently installed 9i rel2 pachted to 9.2.0.2.0 uses openssl version
0.9.6b

The latest version is 0.9.7a was 0.9.6i.

Compile and then just change the file will most likely not work, will it?

kr

Apologies for any typing mistakes I failed to notice.


Markus Reger

Oracle Applications DBA
Webmaster
MBC

University for Music and Performing Art
Vienna
>>> [EMAIL PROTECTED] 02/25/03 13:28 PM >>>
You would have to verify what version of SSL.

http://www.theregister.co.uk/content/55/29423.html yesterday posted a notice
that the "experiment" was with an older version of SSL.

It could be that iAS and other Oracle products are still using that version,
I know they were way behind in the Apache release they bundled in iAS
1.0.2.2

I would be curious to learn what you find out.

Regards,
Patrice Boivin
Systems Analyst (Oracle Certified DBA)

Systems Admin & Operations | Admin. et Exploit. des systèmes
Technology Services| Services technologiques
Informatics Branch | Direction de l'informatique 
Maritimes Region, DFO  | Région des Maritimes, MPO

E-Mail: [EMAIL PROTECTED]



-Original Message-
Sent: Tuesday, February 25, 2003 6:50 AM
To: Multiple recipients of list ORACLE-L


hello to everybody

recently a security breach was detected with OpenSSL - the password of a
user could be decoded within hours, the bank account was robbed - but
just for  testing purposes - 

has anyone ever heard about a similar problem regarding to oracle ssl.
we use it and i couldn't find a patch for this particular problem if
there is any with oracle's ssl.

kind regards

Apologies for any typing mistakes I failed to notice.


Markus Reger

Oracle Applications DBA
Webmaster
MBC

University for Music and Performing Art
Vienna
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Markus Reger
  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: Boivin, Patrice J
  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: Markus Reger
  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: Boivin, Patrice J
  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: DBMS_STATS

2003-02-25 Thread Terrian, Tom (Contractor) (DAASC)
Title: Message



ok, I 
will take a look.  thanks

  
  -Original Message-From: Cary Millsap 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 
  1:35 PMTo: Multiple recipients of list ORACLE-LSubject: 
  RE: DBMS_STATS
  
  May have something to 
  do with bug 2649728, which I just heard about for the first time no more than 
  10 seconds ago.
   
  
  Cary 
  MillsapHotsos 
  Enterprises, Ltd.http://www.hotsos.comUpcoming 
  events:- RMOUG Training Days 2003, Mar 
  5-6 Denver- Hotsos 
  Clinic 101, Mar 25-27 London
  -Original 
  Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Terrian, Tom (Contractor) 
  (DAASC)Sent: Tuesday, 
  February 25, 2003 12:13 PMTo: Multiple recipients of list 
  ORACLE-LSubject: 
  DBMS_STATS
   
  
  I have never had good luck with 
  DBMS_STATS.  It seems that the old analyze runs much 
  faster.
  
   
  
  Runs in 45 
  seconds:
  
  analyze table log_trans partition 
  (log_trans_20030104) estimate statistics sample 5 
  percent; 
  
   
  
  Takes over 2 
  hours:
  
  execute 
  dbms_stats.gather_table_stats(ownname => 'LDGADMIN', 
  -  
  tabname => 'LOG_TRANS', -  
  partname => 'LOG_TRANS_20030102', -  estimate_percent 
  => 5);
  
  Am I missing something?  
  Aren't both commands the same?
  
   
  
  Thanks,
  
  Tom


RE: Embeded password in script

2003-02-25 Thread David Jones
Jared:

How do you do this for an export cron job ?

Thanks

David Jones
ITResource
-Original Message-
Sent: Monday, February 24, 2003 2:51 PM
To: Multiple recipients of list ORACLE-L


The 'hide.c' program can be implemented and compiled to prevent
parameters from appearing to ps.  I believe it still works properly on
most flavors of unix.
For the "Perl for Oracle DBA's" book we wrote one utililty that I had
wanted for some time, a password database.
For jobs that I plan to run regularly from cron, I use the password
daemon pwd.pl and retrieve the passwords across the network
( encrypted with MD5 ).
If the job is a Perl script ( fairly likely around here ) the password
can't appear to PS,  as no password is ever used on the command
line.
It's handy for command line stuff as well, as I only need rights to
access the password database via the password daemon.  I don't
have to know the database passwords to login to the account.
e.g.  sqlplus system/$(pwc.pl -instance dv01 -username jkstill)@dv01

This is the single most useful utility we put in that book IMO.

Jared

On Monday 24 February 2003 14:02, STEVE OLLIG wrote:
i'll take the first one...

on UNIX you could use a secret hidden file with appropriate permissions
where each line has the format ORACLE_SID:USER:password
then use awk to parse the file for the line with the correct $ORACLE_SID
and $USER, and set an environment variable to the password string.  Then
your scripts could use that variable with sqlplus instead of the hardcoded
password.
in ksh it could look something like this:
export password=\
`awk -F: '$1 == "sid" && $2 == "dbimpl" {print $3}' mySecretHiddenFile`
be warned that if you call sqlplus like this in your scripts:
sqlplus dbimpl/${password} @SQLscript.sql
someone could still see the Oracle password with a sneaky ps command while
your script is running.
a very similar approach could be taken with perl if awk isn't your cup of
tea.
-Original Message-
Sent: Monday, February 24, 2003 2:54 PM
To: Multiple recipients of list ORACLE-L
I have been tasked to write a script to run SQL.  I don't want a password
field to be shown in the script.  Does someone have run into this and have
a better idea?  For example, I have following line in my script.
Sqlplus dbimpl/password @SQLscript.sql

Also, from command line we go through following steps to shutdown database,
how do I code these steps in the script?
$svrmgrl
SVRMGRL>connect internal
SVRMGRL>shutdown
Thanks in advance,
David
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jared Still
 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).
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: David Jones
 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: DBMS_STATS

2003-02-25 Thread Cary Millsap
Title: Message









May have something to do with bug 2649728,
which I just heard about for the first time no more than 10 seconds ago.

 



Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- RMOUG Training Days 2003, Mar 5–6
Denver
- Hotsos Clinic 101,
Mar 25–27 London



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Terrian,
Tom (Contractor) (DAASC)
Sent: Tuesday, February 25, 2003 12:13
PM
To: Multiple recipients of list
ORACLE-L
Subject: DBMS_STATS

 



I have never had good luck with DBMS_STATS.  It seems
that the old analyze runs much faster.





 





Runs in 45 seconds:





analyze table log_trans partition (log_trans_20030104)
estimate statistics sample 5 percent; 





 





Takes over 2 hours:





execute dbms_stats.gather_table_stats(ownname =>
'LDGADMIN', -
 
tabname => 'LOG_TRANS', -
 
partname => 'LOG_TRANS_20030102', -
  estimate_percent
=> 5);





Am I missing something?  Aren't both commands the same?





 





Thanks,





Tom










RE: Skill Sets - This may be a dumb question

2003-02-25 Thread Henry Poras
Title: Skill Sets - This may be a dumb question



Lisa,
I'm 
sorry for selfish reasons. I liked having someone else on a 
Peoplesoft/Oracle/AIX environment out there. As far as the new position, just 
change your job title to Data Architect (what does that do to your tag 
lines?)
 
Henry
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Koivu, LisaSent: 
  Tuesday, February 25, 2003 11:34 AMTo: Multiple recipients of list 
  ORACLE-LSubject: Skill Sets - This may be a dumb 
  question
  Hello everyone, 
  Well I've been "reassigned".  I was 
  responsible for the completely messed up Peoplesoft Oracle/AIX environment but 
  management here decided that it was more important to separate a husband and 
  wife that both work in the same department, and assigned one of them to be 
  primary support in this environment instead of me.  (sshh:  The new 
  person who is primary doesn't know a thing about Unix.)  My primary job 
  is now suppossed to be data modeling and data warehouse/mart design, moving on 
  into Problematica (er, Informatica) development into a Sql Server 
  database.  I will not be the admin on the Sql Server database.  My 
  new boss referred to this as "database architecture".  ??  
  What?  They have already decided what they want done and just want 
  someone to take the pretty pictures and implement them with unrealistic 
  deadlines.
  The main reason why I am upset is because it seems 
  to me that data modeling is such a "soft" skill.  I am concerned about 
  keeping my skills up to date and keeping my hands in an Oracle environment, 
  whether it's a mess or not.  Seems to me that data modeling alone isn't 
  something that can land you a new job or really spiff up your resume.  I 
  think that having a finite list of skills (Oracle, Unix, Windows 2000, Erwin, 
  Project, crap like that) is more what employers search for, and is what HR 
  depts can easily deal with. 
  Am I wrong?  This job pays well and working 
  for a huge company has it's benefits, if you can deal with the bureaucracy 
  similar to what is described in the 1st paragraph.  And I know in this 
  market I am just lucky to have a job.  
  And please tell me if I'm whining.  I may just 
  need a KITA.  Who knows anymore... 
  Lisa Koivu Oracle Drink Beer Again Fairfield 
  Resorts, Inc. 5259 Coconut Creek 
  Parkway Ft. Lauderdale, FL, USA  
  33063 Office: 954-935-4117  
  Fax:    954-935-3639 
  Cell:    954-683-4459 
  "The sender 
  believes that this E-Mail and any attachments were free of any virus, worm, 
  Trojan horse, and/or malicious code when sent. This message and its 
  attachments could have been infected during transmission.  By reading the 
  message and opening any attachments, the recipient accepts full responsibility 
  for taking proactive and remedial action about viruses and other defects. The 
  sender's business entity is not liable for any loss or damage arising in any 
  way from this message or its attachments."-- Please see the 
  official ORACLE-L FAQ: http://www.orafaq.net -- Author: Koivu, Lisa 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: Which is beter a cursor or a for loop?

2003-02-25 Thread sundeep maini
Proof of pudding is in eating  Whip up a couple of examples and
check out the timings.  I suspect the CURSOR FOR LOOPS would run
faster. 

I recall a similar mention by Tom Kyte in Oracle magazine while
answering a question about explicit and implicit cusrsors. Unlike the
conventional wisdom (a.k.a Feuerstein's recommendation in his best
selling books) to use explicit cursors, he showed via an example how
and why the implicit cursors are better (Key difference was the
processing PL/SQL had to do for the explicit cursor).

It is pretty much the same for FOR LOOP (it opens, closes and fetches
from the cursor for you) and is likly to run faster. 

- Sundeep 
--- Denham Eva <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I was just asked by one of our developers which is beter to use:-
> a cursor or a for loop?
> I must admit I am not sure
> 
> Anyway the specific piece of code in discussion is similar to the
> following
>
>   FOR X IN (SELECT X FROM TABLE_NAME
>   WHERE COL1 = 'Something'))
> LOOP
> Do a whole lot of stuff in database here..
> LOOP END;
> 
> I would guess that the cursor would follow similar execution
> criteria but
> using 
> the cursor syntax.
> 
> Any ideas?
> 
> TIA
> regards
> Denham Eva
> Oracle DBA
> The real problem is not whether machines think but whether men do.
> - B. F. Skinner
> 
> 
>
_
> DISCLAIMER
> This message is for the named person's use only. It may contain
> confidential,
> proprietary or legally privileged information. No confidentiality 
> or privilege is waived or lost by any mistransmission. If you
> receive 
> this message in error, please immediately delete it and all copies 
> of it from your system, destroy any hard copies of it and notify
> the 
> sender. You must not, directly or indirectly, use, disclose, 
> distribute, print, or copy any part of this message if you are not 
> the intended recipient. TFMC, its holding company, and any of its 
> subsidiaries each reserve the right to monitor and manage all
> e-mail 
> communications through its networks.
> 
> Any views expressed in this message are those of the individual
> sender, 
> except where the message states otherwise and the sender is
> authorized 
> to state them to be the views of any such entity.
>

> 
>
_
> This e-mail message has been scanned for Viruses and Content and
> cleared 
> by MailMarshal
> 
> For more information please visit www.marshalsoftware.com
>
_
> 


=

Sundeep Maini 
Consultant 
Currently on Assignement at Caterpillar Peoria
[EMAIL PROTECTED] 

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: sundeep maini
  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).



Metalink

2003-02-25 Thread Boivin, Patrice J
Title: Message



I 
retract what I said the other day about Metalink 
technicians...
 
: 
(
 
Pat.

   


Re: SqlNet Response ports

2003-02-25 Thread Regina Harter
Thank you very much for the information Don.  We are using 9i and I think 
MTS, though I am not certain of that.  I will pass this on to our DBA, I am 
sure he will find this helpful.

At 06:03 PM 2/24/2003 -0800, you wrote:
I guess I should have asked also:

1) what version of Oracle are you using?
2) Is this using MTS or dedicated servers?
Since this is Linux, there are three cases:
1) Dedicated severs - there is no redirection.  Client talks to dedicated
server on listener port.
2) MTS & Oracle 9i - ditto
3) MTS & pre-9iR2 - MTS does redirect by default 0 to some (pseudo-)random
port above 1024 but this may be overridden by adding a pfile (init.ora)
entry like:
mts_dispatchers="(address=(protocol=tcp)(host=yourhostname)(port=443))(dispa
tchers=1)"
See: Metalink Bulletin: 1016349.102 & Note: 163082.999
Go to advanced search and search on "Doc ID" with these IDs.
There may be multiple mts_dispatchers= lines in the init file and there may
be other parameters of interest.  For the sake of this particular issue
though, the pertinent item is the ("port=443)" clause.  It would force MTS
redirects to port 443.
Actually, this parameter is obsoleted by the initiiation parameter:
   local_listener=listener_name_alias
where tnsnames.ora has an entry like:
   listener_name_alias=(address=(protocol= tcp)(host= yourhostname)(port=
443))...
and other appriopriate MTs initialization parameters.
Please see the documentation for your version for options.

Good luck!
Don Granaman
certified OraSaurus
- Original Message -
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 12:39 PM
> Redhat Linux 7.2
>
> At 07:28 PM 2/21/2003 -0800, you wrote:
> >What platform is this?  Windows?
> >
> >Don Granaman
> >OraSaurus
> >
> >- Original Message -
> >To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
> >Sent: Friday, February 21, 2003 5:48 PM
> >
> >
> > > Hi listers,
> > >
> > > Here is a question my client asked me, that I can't seem to find the
> >answer
> > > to on metalink, mostly because I am not sure how to frame the search
> > > query.  If you don't know what NMCI is, just know that it is a
government
> > > program that is establishing control over the network which our
database
> > > servers are on.  Anyone have any ideas or advice for me?
> > >
> > > TIA, Regina
> > >
> > > Then, one of the NMCI technical guys mentioned that NMCI PCs wouldn t
> >allow
> > > inbound/outbound 1521 traffic (SQLNET).  Hence, no NMCI user would be
able
> > > to use any client/server application.  Wow, that s a major problem.
There
> > > are a few possible solutions.
> > >
> > > 1.  Configure the database server to listen on port 443, because
NMCI
> > > allows 443.  But, SQLNET uses random high order ports on the
> > > return.  Anybody know if you can configure SQLNET to use only 443 on
the
> > > response?
> > >
> > > --
> > > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > > --
> > > Author: Regina Harter
> > >   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: Don Granaman
> >   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: Regina Harter
>   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 (lik

DBMS_STATS

2003-02-25 Thread Terrian, Tom (Contractor) (DAASC)
Title: Message



I have never had 
good luck with DBMS_STATS.  It seems that the old analyze runs much 
faster.
 
Runs in 45 
seconds:
analyze table 
log_trans partition (log_trans_20030104) estimate statistics sample 5 
percent; 
 
Takes over 2 
hours:
execute 
dbms_stats.gather_table_stats(ownname => 'LDGADMIN', 
-  
tabname => 'LOG_TRANS', 
-  
partname => 'LOG_TRANS_20030102', 
-  estimate_percent 
=> 5);
Am I missing 
something?  Aren't both commands the same?
 
Thanks,
Tom


RE: performance issues on sun

2003-02-25 Thread John Kanagaraj
Babu,

> I think it is trying to do a KAIO call and failing. Then it attempts a
> synchronous PWRITE call.
> 
> But our SAs are not able to help us to confirm this. Have any 
> of you seen
> this issue?

I think you have hit the nail on the head. By default, the Oracle port on
Solaris sets 'disk_async_io' to TRUE. Set this to FALSE by introducing such
an entry in init.ora. Let us know if tihis solves your issue...

John Kanagaraj
Oracle Applications DBA
DBSoft Inc
(W): 408-970-7002

I don't know what the future holds for me, but I do know who holds my
future! 

** The opinions and statements above are entirely my own and not those of my
employer or clients **

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Kanagaraj
  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).



  1   2   >