Should we stop analyzing?

2003-12-30 Thread Mogens Nørgaard
Friends, I'd like to start a debate, which perhaps has already taken place, but if so I don't recall it: Should we stop analyzing tables and indexes? Let me clarify: I've always told people that using the 'monitoring' option (alter table X monitoring in 8i, plus alter index I monitoring in

Re: pl/sql open cursor question

2003-12-30 Thread Carel-Jan Engel
Jared, Point taken. I should do some testing instead of publish an opinion. I still do not like the constraction, but that's a matter of taste. I have done some testing as well, because I think you were somehow comparing apples and oranges: function a uses an implicit cursor, whereas function b

Re: Should we stop analyzing?

2003-12-30 Thread Carel-Jan Engel
Analyzing over and over again might make your system unstable, because the optimizer each time might choose a different approach. But. If you never update/delete/your data after the initial load including initial analyze, performance will be consistent, and no surprises will hurt you. Instead of

Re: Should we stop analyzing?

2003-12-30 Thread Don Burleson
Hi Mogens, Ok, fun topic! Here is my take: 1 - Frequency of re-analyze - It astonishes me how many shops prohibit any un-approved production changes and get re-analyze schema stats weekly, acting surprised when things change! - I agree, most shops do not have to do this, and I agree with Dave;

Re: pl/sql open cursor question

2003-12-30 Thread Jonathan Lewis
There are times when running a test harness through a single pl/sql is going to give you a spurious result because of extra pinning (of data blocks and library cache material) may confuse the issue. Technically, if the implicit code and the explicit code were written to do exactly the same

undotbs01.dbf just keeps growing

2003-12-30 Thread John Dunn
I have recently installed Standard Engine 9.2 on AIX 5.2 and notice that the undotbs01.dbf file just keeps on growing. It is now over 1 GB. What could be the reason for this? Can I limit it's size and would this cause a problem too? John -- Please see the official ORACLE-L FAQ:

RE: Should we stop analyzing?

2003-12-30 Thread Nicoll, Iain
Mogens, We've been in the same situation here where analyzing was turned off to stop problems occurring (partly because of Oracle 7 and the fact that histograms were created at a second stage so if the analyze failed part way through the histograms were lost). Although the data does not change

Re: Should we stop analyzing?

2003-12-30 Thread Nuno Souto
- Original Message - I'd like to start a debate, which perhaps has already taken place, but if so I don't recall it: Should we stop analyzing tables and indexes? As a regular thing, yes. Unless there is a clear case for doing it often: highly variable tables. And even then, I want

Re: Should we stop analyzing?

2003-12-30 Thread Jonathan Lewis
It's just like index rebuilding. Too many people do it too aggressively, too often and waste their time and the machine resources doing it for very little benefit. But if you have the time and resources, then it doesn't often do too much damage. However, there are cases where you really do need

RE: Should we stop analyzing?

2003-12-30 Thread Jamadagni, Rajendra
Mogens, if you are looking for a poster boy ... We analyze 9 production databases ... *every day*. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any

Backing out of 9.2.0.4 upgrade

2003-12-30 Thread Jones, Richard O.
Title: Backing out of 9.2.0.4 upgrade We are about to upgrade from Oracle 9.2.0.3 to 9.2.0.4. Our applications have been tested on a 9204 test database without any problem However, it would be nice to have a contingency plan in case we get problems after the upgrade. Obviously, a back up

RE: Should we stop analyzing?

2003-12-30 Thread Jamadagni, Rajendra
On one of our OLTP databases (designed in the dark ages, made-for-rbo database design), we have seen time and again that if we skip statistics collection for a day, queries go to the town. So, reluctantly we have to analyze (a 10% keeps the developer/CBO/Query trio happy). Raj

RE: Should we stop analyzing?

2003-12-30 Thread Rachel Carmichael
I have you beat one schema in one of our databases (9.2.0.2) is analyzed every 4 hours. Not mine, and I *will* be talking to the DBA about his reasoning... however Jonathan's point may well be the reason. This is an ever-growing database, frequent insert and updates, and sequences are used

is it possible to force different 'types' of index scans?

2003-12-30 Thread ryan_oracle
I know you can hint a fast full scan. I have run into cases lately where depending on circumstances Oracle will use an index, but use a sub-optimal type of index scan with dramatic differences in performances. This is on 9.2. Any hints for forcing an 'index range scan'. Anything stronger than

Re: RE: large pl/sql table sucking up all memory on a server

2003-12-30 Thread ryan_oracle
i know about the limit clause. I just want to keep someone else from bringing down an instance. I think Ill get a taser and fry the next person who does it. :) From: zhu chao [EMAIL PROTECTED] Date: 2003/12/29 Mon PM 10:34:24 EST To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]

RE: is it possible to force different 'types' of index scans?

2003-12-30 Thread Jamadagni, Rajendra
put in a between clause in where clause on appropriate columns for a range scan. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have

RE: Should we stop analyzing?

2003-12-30 Thread Thater, William
Mogens Nørgaard scribbled on the wall in glitter crayon: I'd like to know what practical and philosofical ideas you guys have on this topic. i think a lot of this depends on the optimizer. i know the cost biased one has improved dramatically since it was introduced. and i thought that the

Re: Should we stop analyzing?

2003-12-30 Thread Tanel Poder
however Jonathan's point may well be the reason. This is an ever-growing database, frequent insert and updates, and sequences are used throughout. Analyze is estimate at least. Or update HIVAL and DISTCNT and ROWCNT statistics using dbms_stats regularly... Tanel. -- Please see the

Re: is it possible to force different 'types' of index scans?

2003-12-30 Thread Tanel Poder
You can have range scan with equality search (=) as well, if your index is non-unique and there is no unique constraint on column. Tanel. - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:24 PM put in a between clause

Re: Should we stop analyzing?

2003-12-30 Thread Rachel Carmichael
we are using dbms_stats, gather auto, for all indexed columns and estimate 15% Now if my other DBA would just show up for work, I can ask him about this. Sometimes being the early bird has disadvantages. I do know that when the analyze is not done, we have performance problems. Or at least the

Can't connect MTS from remote.

2003-12-30 Thread Wendry
Dear all, II have set up MTS on my environment (oracle 8.1.6.0.0), but I can’t connect through remote computers. The error is ora-12545 : target or host doesn't exists. My init.ora regarding to MTS goes like this. mts_dispatchers = (PROTOCOL=TCP)(dispatchers=10)(sessions=20) mts_max_dispatchers

RE: Should we stop analyzing?

2003-12-30 Thread Austin Hackett
I strongly suspect I'm missing something here, but I don't see a problem with gathering stale many times a day, every hour say. If your tables aren't subject to much DML activity then they won't be analysed anyway. On Tue, 2003-12-30 at 12:59, Rachel Carmichael wrote: I have you beat one

RE: IBM Workload Manager (WLM)

2003-12-30 Thread babette.turnerunderwood
We are using Oracle on OS/390 and WLM. If you are using AIX instead of MVS you will have a different flavour of WLM. Basically each of our databases on the mainframe runs within a service (think of services on Windows NT). Each service is associated with a WLM class. Originally, we capped each

Re: RE: large pl/sql table sucking up all memory on a server

2003-12-30 Thread Nuno Souto
That works. I prefer thumb presses, they worked for the Inquisition and they lasted 500 years... dr Cheers Nuno Souto [EMAIL PROTECTED] - Original Message - I think Ill get a taser and fry the next person who does it. :) -- Please see the official ORACLE-L FAQ: http://www.orafaq.net

Re: Should we stop analyzing?

2003-12-30 Thread Nuno Souto
Hehehe! You rat! :D Cheers Nuno Souto [EMAIL PROTECTED] - Original Message - Or update HIVAL and DISTCNT and ROWCNT statistics using dbms_stats regularly... -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Nuno Souto INET: [EMAIL PROTECTED] Fat

RE: Can't connect MTS from remote.

2003-12-30 Thread Karniotis, Stephen
Generally, 12545 means that something in the connection string for shared environments is missing, the listener.ora, tnsnames.ora and sqlnet.ora contain conflicting parameters, or the init.ora MTS parameters do not match the listener.ora. I would make sure that you can ping the server remotely

Re: Obtain SQL Statement from audit

2003-12-30 Thread Pete Finnigan
Hi Mauricio, You cannot get the SQL statement for a select statement from the normal audit trail. If you have 9i then you can use Fine Grained Audit (FGA) to do this. There are some papers on normal audit on my site and also some stuff on FGA if you are interested. See my site at

increase in amount of redo comparing oracle 7 and 9

2003-12-30 Thread Jeroen van Sluisdam
I have recently migrated our oracle 7.3.4 environment to oracle 9.2.0.4 I noticed some batches eating up all my archive space. I have a 5 Gb filesystem solely for archiving available where I used to have 4Gb available for oracle 7 which was quite enough for years. A small test:

RE: SQL CASE Statement

2003-12-30 Thread Poras, Henry R.
You forgot to squeeze the lemon juice on your monitor. Henry -Original Message- Jared Still Sent: Tuesday, December 30, 2003 1:35 AM To: Multiple recipients of list ORACLE-L Is is just me, or is the code missing? On Mon, 2003-12-29 at 16:24, Pillai, Rajesh wrote: Hi Jared, Here

RE: Should we stop analyzing?

2003-12-30 Thread Poras, Henry R.
Makes sense, BUT... If the data changes A LOT you should of course re-analyze. is assuming you know when that happens. You are assuming communication between users, developers, and DBAs. Communication is my New Year's Resolution. I would at least suggest exporting stats before changing them.

help with estimate row count from asktom

2003-12-30 Thread ryan_oracle
I have a very strict SLA and I posted a question on asktom about the best way to get the 'estimate' of rows and return it to the user. Im getting 'no data found'. anyone have ideas? Im on 9.2, tables are analyzed, and Im in a DBA account. my question is at the bottom.

Re: increase in amount of redo comparing oracle 7 and 9

2003-12-30 Thread Tanel Poder
No, you insert 1 rows to your table in 9i, but only 6319 in 7.3. Also, obj$ has probably more (filled)columns in 9i compared to 7.3. Redo structure has changed between these versions, undo most likely as well. There are several other issues which might affect redo size such is

RE: Should we stop analyzing?

2003-12-30 Thread Jamadagni, Rajendra
This is slightly OT ... Talking about exporting stats ... I do that and about 30 seconds ago finished writing a SQL that looks at a history of exported stats and displays a 7 day pattern of 1. rowcount changes 2. average row length change 3. allocated blocks changes basic treand analysis

Re: increase in amount of redo comparing oracle 7 and 9

2003-12-30 Thread Mike Spalinger
Jeroen, In your test, your obj$ table in 9i inserted 10,000 rows while your obj$ table in v7 only had 6319 rows. Test with another table or change your rownum filter. Mike Jeroen van Sluisdam wrote: I have recently migrated our oracle 7.3.4 environment to oracle 9.2.0.4 I noticed some

RE: Should we stop analyzing?

2003-12-30 Thread Whittle Jerome Contr NCI
Title: RE: Should we stop analyzing? I'll see your 'analyzed every 4 hours' and raise you one. We have some tables that are analyzed every time they are used! They are 'work' tables that are sometimes empty, very full, or somewhere in between. Running something when the statistics say the

RE: SQL CASE Statement

2003-12-30 Thread Whittle Jerome Contr NCI
Title: RE: SQL CASE Statement I prefer the milk and candle method but that only works with flat panel displays. ;-) Jerry Whittle ASIFICS DBA NCI Information Systems Inc. [EMAIL PROTECTED] 618-622-4145 -Original Message- From: Poras, Henry R. [SMTP:[EMAIL PROTECTED] You

Re: Should we stop analyzing?

2003-12-30 Thread Tanel Poder
Title: RE: Should we stop analyzing? In 9i you could use optimizer_dynamic_sampling for such "work" tables Tanel. - Original Message - From: Whittle Jerome Contr NCI To: Multiple recipients of list ORACLE-L Sent: Tuesday, December 30, 2003 6:09 PM Subject:

RE: Should we stop analyzing?

2003-12-30 Thread Rachel Carmichael
I fold :) --- Whittle Jerome Contr NCI [EMAIL PROTECTED] wrote: I'll see your 'analyzed every 4 hours' and raise you one. We have some tables that are analyzed every time they are used! They are 'work' tables that are sometimes empty, very full, or somewhere in between. Running something when

Re: Should we stop analyzing?

2003-12-30 Thread Jonathan Lewis
That's (partly) what the 9i dynamic sampling feature is for. And such tables are, of course, going to be GTTs. Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The educated person is not the person who can answer the questions, but the person who can question the answers -- T.

Deleting database

2003-12-30 Thread QuijadaReina, Julio C
Hi All, I have two databases of small size running on a Win2k Server. One is production and the second one test. I would like to delete the test database in an automated way (run a script say every weekend), then recreate it so that I have a fresh database to work with or to import prod data

Re: Should we stop analyzing?

2003-12-30 Thread Wolfgang Breitling
Now there's a thread from my heart. I have been saying and practicing (where I'm allowed to as a outside contractor) that for years. I am dead against regularly scheduled analyze jobs - it must be Sunday because the analyze is running - but it is sometimes hard to convince the resident DBAs of

Deleting database

2003-12-30 Thread QuijadaReina, Julio C
Sorry, I forgot to mention I am using Oracle 9.2.0.1.0 -Original Message- Sent: Tuesday, December 30, 2003 11:47 AM To: '[EMAIL PROTECTED]' Hi All, I have two databases of small size running on a Win2k Server. One is production and the second one test. I would like to delete the test

RE: Deleting database

2003-12-30 Thread Vaidya, ShreepadX M
Hi, One way would be 1) From your test database get a list of all datafiles,redologs,controlfile locations. 2) Spool and store it in a file. 3) Shutdown the database and listeners 4) Use the file to create a script to physically remove the database related files using OS commands. Hope this

Re: help with estimate row count from asktom

2003-12-30 Thread Wolfgang Breitling
v$sql_plan_statistics (and consequently v$sql_plan_statistics_all) only have data to show if statistics_level is set to ALL. You can set that at the session level. Has anyone done measurements on a busy system to evaluate what the impact is of setting that system-wide. The impression I have is

Re: Deleting database

2003-12-30 Thread Ron Rogers
Julio, If you need to keep the userid's and other environmentals, I would create a script that truncates the tables and then import the data to populate them with the new data. The export can be controlled with a par file and the import can be part of the truncate script. Ron [EMAIL PROTECTED]

Export Error

2003-12-30 Thread Hamid Alavi
Hi list, I am trying to export a database(8.1.5) on Win 2000 remotely, but the export terminated with the following errors, I was searching on google but didn't find any point. If any body have any idea I will be appreciated. Here is the error: ORA - 02248 ; invalid option for ALTER SESSION

RE: Should we stop analyzing?

2003-12-30 Thread Jamadagni, Rajendra
to get dynamic sampling one must specify that as a hint .. right? can cbo use dynamic sampling automatically on GTTs? (Hey, it's new year time and some wishful thinking is in order). Happy New Year. Raj

Resource consumer group 8.1.7.3.2

2003-12-30 Thread Vaidya, ShreepadX M
Hi, Any help on this would be appreciated. RDBMS Version: 8.1.7.3.2 Operating System and Version: Windows 2000 Cpu_wait_time shows 0 in v$rsrc_consumer_group We have implemented Oracle Resource manager in one database environment. The CPU resource allocation is done in 4 levels. SQL

RE: Should we stop analyzing?

2003-12-30 Thread John Kanagaraj
I am surprised no one raised the issue of invalidations in the shared pool caused by Stats gathering, and the parsing/reloading load that is caused _after_ the extra I/O and changed plans due to ANALYZEs I have this 250Gb Apps database that is analyzed once a month and we have not suffered

Re: Should we stop analyzing?

2003-12-30 Thread Tanel Poder
there's also an optimizer_dynamic_sampling init parameter (in addition to hint) Tanel. - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:14 PM to get dynamic sampling one must specify that as a hint .. right? can

Re: Should we stop analyzing?

2003-12-30 Thread Jonathan Lewis
There is a hint, and there is a parameter. optimizer_dynamic_sampling = 2 is probably a good way of making sure that all queries involving GTTs get a dynamic sample of 32 blocks on the GTT Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The educated person is not the person who

RE: Deleting database

2003-12-30 Thread QuijadaReina, Julio C
Vaidya, Wouldn't I have to worry about any registry info for the test instance after physically deleting the OS db files? Would I be able to create test using the same instance name? Julio Cesar Quijada-Reina Programmer Analyst Computer Services at Alfred State College -Original

RE: Deleting database

2003-12-30 Thread QuijadaReina, Julio C
Ron, I like this idea. Although, I am not really concerned about userid's or environmentals, truncating test tables and importing the new data in looks like it would be faster than deleting the entire test database and then recreating it. But how would I know what tables to truncate? Thanks

RE: Deleting database

2003-12-30 Thread Branimir Petrovic
Run oradim.exe from command line to see how to delete SID. Deleting Oracle service via oradim _will_ remove corresponding registry entries. But why bother removing database, wouldn't dropping schema owner with cascade option followed by full import do the trick? Branimir Wouldn't I have

RE: Should we stop analyzing?

2003-12-30 Thread Josh Collier
Is there an easy way to track the rate of change in a particular table? -Original Message- Sent: Tuesday, December 30, 2003 7:24 AM To: Multiple recipients of list ORACLE-L Makes sense, BUT... If the data changes A LOT you should of course re-analyze. is assuming you know when that

Re: pl/sql open cursor question

2003-12-30 Thread Jared . Still
There are times when running a test harness through a single pl/sql is going to give you a spurious result because of extra pinning (of data blocks and library cache material) may confuse the issue. That isn't a factor, as I never use the results from the first run for that very reason.

Re: Re: getting estimate of result set from v$sql_plan

2003-12-30 Thread Tanel Poder
I found an error from my yesterdays post: Basically, in 9i there are four ways of finding out how many rows will any query return: 1) select from the query and count 2) use v$sql_plan_statistics column output_rows for already executed queries output_rows shows cumulative outrows statistics

Re: Re: help with estimate row count from asktom

2003-12-30 Thread ryan_oracle
im concerned about hitting the v$views in production. we have 30,000 users. its either that or do counts. Its a requirement from the users. not sure what to do. doesnt tom kyte do this on asktom? From: Wolfgang Breitling [EMAIL PROTECTED] Date: 2003/12/30 Tue PM 12:09:33 EST To: Multiple

RE: Re: help with estimate row count from asktom

2003-12-30 Thread Jamadagni, Rajendra
Don't be afraid to access v$ views, just beware of the bug that throws a ora-600 when selecting 'filter_predicates' and 'access_predicates' under 9202. As a workaround, don't select those two columns. If I were you, I'd make sure that users are *very* clear that the number you are going to get

RE: Should we stop analyzing?

2003-12-30 Thread Ron Rogers
select count(*) on the PK each day and store the results for tracking. monitor the extent usage for the table. audit the table. [EMAIL PROTECTED] 12/30/2003 12:49:33 PM Is there an easy way to track the rate of change in a particular table? -Original Message- Sent: Tuesday, December

RE: Deleting database

2003-12-30 Thread QuijadaReina, Julio C
Branimir, Correct me if I am wrong, but if I used your approach of dropping schema owner then if I have 25 schemas on my test db, I would have to drop ALL of them? I would think that dropping ALL schemas would equal removing entire database. Julio Cesar Quijada-Reina Programmer Analyst Computer

RE: Deleting database

2003-12-30 Thread Ron Rogers
Julio, You can get a list if tables from the test database and compare it with a list of tables from the production database. Just select table_name from dba_tables where owner not = system or sys and that will give you all of the application tables in the database. Ron [EMAIL PROTECTED]

Oracle OID and Production Databases Sharing the same Oracle Home

2003-12-30 Thread Mercadante, Thomas F
All, We have a AIX 5.2 box serving a new 9.2 database. We also installed the OID software on this box. Oid requires it's own database. So we have two instances on this machine. We received notice from Oracle that a security patch (#62) was required. We were applying the patch and it failed

RE: Re: help with estimate row count from asktom

2003-12-30 Thread Bobak, Mark
Ryan, I asked Tom that very question a while ago, here: http://asktom.oracle.com/pls/ask/f?p=4950:8:8900576360328284797::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:3489618933902, The short answer is that he's using Intermedia for his searching, which has the 'ctx_query.count_hits' functionality.

Re: pl/sql open cursor question

2003-12-30 Thread Jonathan Lewis
I wasn't thinking of the boundary conditions, I was thinking of the totally different mechanisms that appear because you are running pl/sql rather than (say) a loop in Pro*C that sends a pure SQL statement 1,000 times to the database. Regards Jonathan Lewis http://www.jlcomp.demon.co.uk The

RE: Should we stop analyzing?

2003-12-30 Thread Jamadagni, Rajendra
Thanks Jonathan,Tanel Some more clarification ... is dynamic sampling automatically used or one must specify the hint? Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are

Re: Oracle OID and Production Databases Sharing the same Oracle Home

2003-12-30 Thread brian . mcgraw
I would opt to separate them. I ran into some problems with a Collaboration Suite install, where I wanted to use the OID database, to store my files data as well. It failed in a spectacular fashion. An Oracle support analyst said that was a bad idea. When I asked him if I could just

Re: Re: help with estimate row count from asktom

2003-12-30 Thread ryan_oracle
anyone have a better way to do this? im going to post what you said wolfgang on asktom and see what he has to say. From: Wolfgang Breitling [EMAIL PROTECTED] Date: 2003/12/30 Tue PM 12:09:33 EST To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Subject: Re: help with estimate row

RE: Re: help with estimate row count from asktom

2003-12-30 Thread ryan_oracle
i could have swarn i read in multiple places that in a high transaction system hitting v$views repeatedly kills performance? causes excessive latching? ill have to test it to see if this is better than a count. Gonna be ugly either way. From: Jamadagni, Rajendra [EMAIL PROTECTED] Date:

recreate constraints script - URGENT

2003-12-30 Thread system manager
Dear all, I have a script to generate constraints for a single table but I need a script to generate constraints for a schema owner . Can anyone send me a copy? Many thanks, _ Free email with personality! Over 200 domains!

RE: Should we stop analyzing?

2003-12-30 Thread Jesse, Rich
Interesting! Could this account for LOADS1 on pinned objects? Damn. Almost got thru the rest of the year without learning anything new. :) Rich Rich Jesse System/Database Administrator [EMAIL PROTECTED] Quad/Tech Inc, Sussex, WI USA -Original

RE: recreate constraints script - URGENT

2003-12-30 Thread Jamadagni, Rajendra
run the same script for every table for the schema owner and spool everything to the same file ... there you have it. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly

Re: Should we stop analyzing?

2003-12-30 Thread Tanel Poder
Go to tahiti.oracle.com and search for the optimizer_dynamic_sampling parameter, you'll see descriptions for it's different values there. Tanel. - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 8:59 PM Thanks

Re: Oracle OID and Production Databases Sharing the same

2003-12-30 Thread Ron Rogers
Tom, I see no problem that would prevent you from having multiple instances in the Oracle home. You would need multiple Oracle homes if you had different version of Oracle. With one Oracle home and multiple instances you have to be sure to include all instances in the shutdown and start up

Re: Oracle OID and Production Databases Sharing the same

2003-12-30 Thread Ron Rogers
Brian, From reading into your message I get the impression the you wanted to use the OID supplied database for your other database and support frowned upon it. Was there any problem with using the normal Oracle database for the OID database? Ron [EMAIL PROTECTED] 12/30/2003 1:59:26 PM I would

Re: Re: help with estimate row count from asktom

2003-12-30 Thread Tanel Poder
Hi! Statistics level ALL means TYPICAL + row source execution stats + timed_os_statistics. If you want to switch to ALL for performance reasons, you can switch only row source stats on with parameter setting _rowsource_execution_statistics to true (on session level). But I doubt it'll help in

Re: recreate constraints script - URGENT

2003-12-30 Thread Ron Rogers
dba_constraint will inform you of the tables that have constraints and what type of constraint they are. Further digging into the dba_ tables will provide the information you desire. Keep the scripts as part of the database documentation and update when needed. Third party software can provide

RE: Deleting database

2003-12-30 Thread Branimir Petrovic
That's right - you would have to drop all schema owners. In my opinion it is simpler and easier task to automate dropping of all owners followed by one full import compared to task of automating database deletions followed by database creations then doing full import in very last step. DOS

Re: pl/sql open cursor question

2003-12-30 Thread Carel-Jan Engel
At 09:49 30-12-03 -0800, you wrote: There are times when running a test harness through a single pl/sql is going to give you a spurious result because of extra pinning (of data blocks and library cache material) may confuse the issue. That isn't a factor, as I never use the results from

RE: Deleting database

2003-12-30 Thread Carel-Jan Engel
As far as I can understand your question you are copying your production environment to test. So, test should be a copy, and not an export/import logical represantation of prod. Otherwise your tables/indexes will be reorganized every time you create the new test database. This means

max 5% of pga_aggregate_target for a single serial session

2003-12-30 Thread Roger Xu
Hi, First of all, thank you to all answered my last question. Now I have another question related to my last one. In my system, pga_aggregate_target is set to 3GB and I think a session would have approximately 150MB work area before temp space is needed (5% of 3GB). But I did a test, it only used

Re:Re: recreate constraints script - URGENT

2003-12-30 Thread system manager
Thanks Ron, I got this recreate constraints script from our list but lost it.It was really good script and it can re-generate all the constraints under a schema owner. -- Original Message Date: Tue, 30 Dec 2003 12:14:26 -0800 dba_constraint will

Re:RE: recreate constraints script - URGENT

2003-12-30 Thread system manager
Thanks Rajendra, Good idea but I have 1200 tables :(I got a good script from our list long time ago but lost it.That script can capiture constraints for the schema owner. -- Original Message Date: Tue, 30 Dec 2003 11:39:26 -0800 run the

Re: Oracle OID and Production Databases Sharing the same

2003-12-30 Thread Ron Thomas
I'll agree that you can run multiple instance out of 1 oracle home, however, I've found it to be simpler to use a dedicated oracle home per instance. Disk space is cheap (relatively speeking). Ron Thomas Hypercom, Inc [EMAIL PROTECTED] Each new user of a new system uncovers a new class of

Re: max 5% of pga_aggregate_target for a single serial session

2003-12-30 Thread Jared . Still
90 Meg was all it needed? Roger Xu [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 12/30/2003 12:59 PM Please respond to ORACLE-L To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED] cc: Subject:max 5% of pga_aggregate_target for a single serial session

rman restore question

2003-12-30 Thread Joan Hsieh
Hi Listers, I have a question about rman restore. Right now, I configured RETENTION POLICY TO REDUNDANCY=1 and deleted the obsolete backupset on the disk after a new rman full backup is done. The old backupset will be backup-ed to tape by system group. In case of the newly backupset on disk is

Re: recreate constraints script - URGENT

2003-12-30 Thread Jared . Still
If you have one to generate the constraints for a table, just modify it slightly to include a whole schema. Just checked, I don't have such a beastie. Check orafaq.com, likely there is one there. Jared system manager [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 12/30/2003 11:24 AM

Re: Oracle OID and Production Databases Sharing the same Oracle Home

2003-12-30 Thread Ravi Kulkarni
Tom, We have a small separate box housing OID(9204), OEM,RMAN instances. Since we are using OID for service Naming, I understand Oracle has no licence fee since it is used for servicing other Oracle Databases across the enterprise. We also use OID replication(another node located at the DR site),

Re: recreate constraints script - URGENT

2003-12-30 Thread Charlie_Mengler
For 9i DBs, DBMS_METADATA will (re)create DDL for every (at least most) object in the DB. -- 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--

RE: max 5% of pga_aggregate_target for a single serial session

2003-12-30 Thread Roger Xu
no. it used 800 MB of tempspace in the end. (also see the tempsize column output from the query of the v$sql_workarea_active view) -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Tuesday, December 30, 2003 3:35 PMTo: Multiple recipients of list

RE: rman restore question

2003-12-30 Thread Roger Xu
I think you can do CONFIGURE CONTROLFILE AUTOBACKUP ON, which enables RMAN to automatically backup controlfile to a default location. Then you can restore the controlfile before you restore other database files. -Original Message- Sent: Tuesday, December 30, 2003 3:34 PM To: Multiple

RE: rman restore question

2003-12-30 Thread DENNIS WILLIAMS
Joan - Which Oracle version? Dennis Williams DBA Lifetouch, Inc. [EMAIL PROTECTED] -Original Message- Sent: Tuesday, December 30, 2003 3:34 PM To: Multiple recipients of list ORACLE-L Hi Listers, I have a question about rman restore. Right now, I configured RETENTION POLICY TO

RE: Should we stop analyzing?

2003-12-30 Thread Jamadagni, Rajendra
Tanel, I know the values, you are missing my question ... let me re-phrase it ... 1. To have CBO use dynamic sampling do you have to specify the hint? or 2. CBO will do that automatically? Just to let you know, Oracle 9ir2 docs main page is my home page on Mozilla firebird browser and Metalink

Re: Obtain SQL Statement from audit

2003-12-30 Thread Vélez
Hi The version is Oracle 8i, so is there a way to retrieve the sql statement? could the v$sql view or v$sqltext view be useful? regards Arup Nanda [EMAIL PROTECTED] wrote: You haven't specified the Oracle version. If it's 9i, you could use Fine Grained Auditing (FGA) to get the exact SQLs.

Re: Should we stop analyzing?

2003-12-30 Thread Jared . Still
Mogens, Quite a controversy you started here. As always. ;) I must admit this is the first time I've heard this come up. As Jonathan stated, it does seem somewhat like rebuilding indexes. But then again, if re-collecting statistics causes your database performance to suddenly become very

RE: Should we stop analyzing?

2003-12-30 Thread Mark Richard
I had a similar situation once working in a data warehouse environment. One example is a job that recreated a large dimension table each night: The dimension table was truncated and reconstructed in phases - this was by far the most efficient approach. It was necessary to analyze the table

Re: max 5% of pga_aggregate_target for a single serial session

2003-12-30 Thread Tanel Poder
Your global memory bound statistic from v$pgastat says that max work area size is 100M. Maybe this 5% rule doesn't apply with large pga_aggregate_targets. The documentation claims that this value can be adjusted during db workload, so you might want to try to run your operation several times in a

Re: Oracle OID and Production Databases Sharing the same

2003-12-30 Thread paul bennett
Hi Ron and Brian: Wehave been running the OID database in the same ORACLE_HOME as a production database since Nov 2002.I amrunning both 8.1.7 on AIX 4.33 and 9.2.0.4 on AIX 5.1.I feel using the same ORACLE_HOME or separate ORACLE_HOMES depends on how you plan to use OID. On the servers

RE: rman restore question

2003-12-30 Thread Joan Hsieh
Dennis, 9.2.0.4 Joan Quoting DENNIS WILLIAMS [EMAIL PROTECTED]: Joan - Which Oracle version? Dennis Williams DBA Lifetouch, Inc. [EMAIL PROTECTED] -Original Message- Sent: Tuesday, December 30, 2003 3:34 PM To: Multiple recipients of list ORACLE-L Hi Listers, I

RE: Should we stop analyzing?

2003-12-30 Thread Wolfgang Breitling
The CBO will do dynamic sampling automatically provided the conditions are met. The conditions that need to be met depend on the dynamic_sampling initialization parameter in effect for the session. The default is 1 which practically disables dynamic sampling. 0 will totally disable it but IMHO

  1   2   >