Oracle DTP plug-in running analyze when table is exploded in schema browser
When I click on the + next to a table name in this plug-in, this plug-in is submitting an analyze table {table_name} compute statistics;
I have verified this by monitoring the Oracle session I am connected to.
We CANNOT release this product to our developers, since simply opening up a table defintition to view it's columns indexes, etc. on a large table (and we have tables in the 100's of GB range) will hammer our databases, not to mention the fact that it may run for who knows how long.
For the life of me, I cannot imagine why it is doing this, especially since statistics are already available in the database.
Has anyone else experienced this behavior?
Thanks Robert,
Thanks for ur reply.
Yes this has been understood that this is due to the browser's pluginn shortage.
But ist is not specifing the specific plugin requred.
I tried the same with netscape .
It specifies to the '' application/x-java-applet;jpi-version=1.4.2_06 ''
Now tell me where to and how to get that plugin
Thanks..........
Similar Messages
-
Analyze all tables of one schema
hi,
the analyze table command is:
analyze table hr.employees compute statistics;
Now I want analyze all tables in the hr schema
how can I do it in a easy way,
thanks,
Zhiwei.the only way to disable monitoring (globally) is to set statistics_level=basic.Exactly.
SYS@db102 SQL> select table_name,monitoring from dba_tables
2 where table_name like 'TEST%';
TABLE_NAME MON
TEST_P YES
TEST_MV YES
TEST_F YES
TEST11 YES
TEST YES
TEST_TABLE YES
TEST_PART YES
TEST_LOB YES
TEST_EMP YES
TESTDECIMAL YES
TEST3 YES
TEST1_DL2 YES
TEST01 YES
13 rows selected.
SYS@db102 SQL> alter system set statistics_level=basic;
System altered.
SYS@db102 SQL> select table_name,monitoring from dba_tables
2 where table_name like 'TEST%';
TABLE_NAME MON
TEST_P NO
TEST_MV NO
TEST_F NO
TEST11 NO
TEST NO
TEST_TABLE NO
TEST_PART NO
TEST_LOB NO
TEST_EMP NO
TESTDECIMAL NO
TEST3 NO
TEST1_DL2 NO
TEST01 NO
13 rows selected.
SYS@db102 SQL> that's what I meant by "in 10g you have to do it explicitly". -
Sql slow afterweekly STATS-JOB,then run analyze table it is fast again
Oracle R11.2.0.2 :
I hade some slow sql / reports and found the effect,
that the sql is slow obvious after the weekend ,
when STATS - JOB BSLN_MAINTAIN_STATS_JOB and other Jobs were running weekly on SYS.
I did run dbms_stats.GATHER_TABLE_STATS on schema
it doesn't help.
But when
run ANALYZE TABLE afterwards on only one or two tables of the schema
the sql / reports performance is well and fast.
in the dba_tables I can see the last_analyze - date
and in GLOBAL_STATS = NO ( when Table runs with ANALYZE ),
GLOBAL_STATS = YES( when Table runs with STATS )
what does the ANALYZE TABLE command doing good and let my sql run well and fast,
while dbms_stats.GATHER_TABLE_STATS
seems not work well in this situation ?
regardsastramare wrote:
Oracle R11.2.0.2 :
I hade some slow sql / reports and found the effect,
that the sql is slow obvious after the weekend ,
when STATS - JOB BSLN_MAINTAIN_STATS_JOB and other Jobs were running weekly on SYS.
I did run dbms_stats.GATHER_TABLE_STATS on schema
it doesn't help.
What options do you use for the gather_stats command ?
Do you also have collected system stats?
But when
run ANALYZE TABLE afterwards on only one or two tables of the schema
the sql / reports performance is well and fast.Analyze table is deprecated, but still does its work for some part. It is not as complete as dbms_stats
>
in the dba_tables I can see the last_analyze - date
and in GLOBAL_STATS = NO ( when Table runs with ANALYZE ),
GLOBAL_STATS = YES( when Table runs with STATS )
It must have to do something with the way you use it..
HTH
FJFranken -
When tables should be analyzed
hi all,
i want to know on what basis or how a person woul be able to know when table should be analyzed..........
generally we have a tables that have been analyzed on 06/05/2008 15:50:15 query that i have used is
select OWNER,
TABLE_NAME,
to_char(LAST_ANALYZED,'MM/DD/YYYY HH24:MI:SS') last_analyzed
from dba_tab_columns
where OWNER ='name';burleson wrote:
Reanalyze ONLY when you want your SQL execution plans to change . . .
If you are satisfied with your plans, why change them?
Hi Don
Ummm, but if you don't update your statistics, your execution plans can change as well ...
It's incorrect to suggest that not changing statistics means your plans won't change. Two things of course continue to change even if you don't update the statistics, the data and the data being selected.
By following your advice, you might not have changed stats from 31 Dec 2005. Therefore Oracle thinks the max date value in your data is still 31 Dec 2005. But of course you now data as of say Jan 3 2009. When you query data of interest but the range of data you want is between say 1 Jan 2008 and 31 Dec 2008, how will the CBO determine the correct cardinality if it still thinks the max date is 31 Dec 2005 ?
Actual answer is version dependent but it will get the cardinality way wrong and likely generate a poor execution plan.
So perhaps your might want to update your statistics because you're satisfied with your plans and you don't won't them to change and suddenly go "wrong" by letting your statistics go stale.
Hope this helps.
Cheers
Richard Foote
http://richardfoote.wordpress.com/ -
If i have Time Machine backed up on an external hard drive, do i just plug the drive into another macbook pro and all my stuff is in the new computer? Also, does it matter if the new computer is running Lion when the backed up info came from Snow Leopard 10.6.8?
No and Yes
Don't use TM for this purpose, clone your drive to an external, plug the external into another MBP and reboot from it. Please note that booting a machine that came with Lion may not be possible from a drive with Snow Leopard. -
Oracle ODBC Driver adds bind variable when browsing whole table in Access
Hi, we are looking for some reasons why we may see this behavior in the Oracle ODBC driver (10gR2 and 11g) when using Microsoft Access (2003 or 2007)...
1) Link a table from the Oracle database.
2) Double-click the newly linked table to "browse" it.
Oracle sends the following statement to the server:
{color:#0000ff}select * from linked_table where primary_key = :b1{color}
It then proceeds to read the entire table.
If I tell Microsoft Access that there is no primary key, the query gets sent as:
{color:#0000ff}select * from linked_table{color}
And the query comes back as soon as the first 100 or so rows are fetched which is quite quickly.
ADDITIONAL NOTES:
1) If the table has a primary key or unique constraint, Microsoft Access automatically assigns that as the primary key.
2) We can stop the behavior in #1 if we wrap a view around it which prevents Access from discovering that information and then it prompts for a primary key definition.
3) If we use the Microsoft ODBC driver, the bind variable is not added no matter what the primary key defintiion is.
We're stumped and are looking for solutions and/or workarounds without having to wrap all of our tables in views to hide the fact that there is a primary key.
Thanks,
SteveThanks for the response, Greg.
The specific question I am seeking an answer for (sorry it was not clear on my first message) is this:
Why does the Oracle driver add the bind variable to the query only when the primary key is defined?
The Microsoft ODBC driver does not add the bind variable with or without a primary key defined.
You asked how I traced this statement and what I am doing is launching the query in Access and then using TOAD to view the V$SESSION and V$SQL_TEXT_WITH_NEWLINES views. All I do is change the driver. This is just for a simple browse table (double-click on the table) which should send
select * from table
However, whenever I use the Oracle ODBC driver (with a primary key defined) it sends
select * from table where primary_key = :1
If I remove the primary key on the table definition, the Oracle driver sends
select * from table
What is it about the primary key that could cause that behavior?
I don't think it is the MDAC/Jet level because this is the conversion to the native SQL statement not the Jet version. I know the Oracle driver has to do that part because you have those workaround options like don't add the RULE hint, etc. That's not part of the Jet engine.
Hope that helps. I'm just baffled over this one and wish I knew where to go next. -
EM 12.1.0.4 with Oracle Database Plug-in 12.1.0.7
Monitored database and listener: 10.2.0.4
Our EM12c monitors 12.1,11.2 and 10.2 databases and listeners. All monitored targets are up and running.
I updated Oracle Database Plug-in from 12.1.0.6 to 12.1.0.7 and now the only 10g listener that I have shows as down.
The listener on the server is up and running.
The monitoring configuration is right.
I removed this target and re-added it, but it came back as down.
It's a little disconcerting to have a listener show as down since it's a production box, but nothing I do corrects the problem.
Any insights or suggestions are appreciated.
SherrieHi Sherrie,
In most cases we have this issue due to monitoring configuration , I know you mentioned that you have checked on it but still I would recommend to just re-confirm on below steps
1. Go to
EM Console -> Targets -> Listener -> Listener Home page -> Target Setup -> Monitoring Configuration
2. Get the details
Listener Name
Listener.ora Directory
Machine Name
Oracle Home
TCP Port Numbe
3. Go to the server where this listener is running
Check to see if the listener is up
ps -ef | grep tns
4. Next run
$ORACLE_HOME/bin/lsnrctl status
From this outpuy verify details in (1)
Listener Name <======= Alias
Listener.ora Directory <=== Listener Parameter File ie the directory
Machine Name <======= HOST=
Oracle Home<========== This is where tnslsnr is started from
TCP Port Number <====== PORT=
5. Makes sure that all the details matches in (4) and (2)
If above is fine then I would recommend to go through the troubleshooting steps as per below doc , they are valid for listener status down too and should give a further insight on the root cause of the issue
Troubleshooting the 'Pending' status for a Listener Target in Enterprise Manager 12c Cloud Control (Doc ID 1546576.1)
Regards,
Rahul -
Hello, I have a problem, my macbook pro runs slowly when unplugged but if I plugged it, it runs perfectly.
The battery needs to be replaced, or there is some other hardware problem.
-
DTP Execution Time is different when run by PC & Manually
Dear Experts,
Could you please help me in finding the answers for the below questions.
1. Execution time for DTp is higher when ran manually and using process chain. What can be the possible reasons & whic one is correct?
2. Total Exceution time mentioned in the DTP details ta is less when added the total time for each data package. What are the reason for that difference. Which is correct?
Thanks & regards,
Ganesh ThotaHi,
1)Execution time depends on various factors like the number of processes running on the system on a particular time(Ucan check it in SM37)
in Process chain an instance of the particular process type is created( in your case process type is DTP even though we execute DTP in PC it originally executes the DTP in RSA1 .. i.e., an instance is created)
2)the thing is when u execute a DTP data is transferred in the form of Packages the mismatch in the execution type is because u might have added the timings of each data package
but when you check clearly : 2-3 data packages in DTP start at the same time so you should not add the time taken of each individual data package to get the total time of the DTP
Hope it answers you questions
Regards,
MADhu -
It's been a pain, but I basically revived a dead Pavilion TX2110us (replaced the motherboard, installed windows 7, recovered missing drivers, ect.) and it's been running great when powered by the battery. Big downside to that is the battery life isn't great. Typically about maybe 2 hours on battery saver settings. However when I have it plugged in to the power source, I'll get anywhere from 5 to 30 minutes before it just powers off on its own. I have tried to configure the power settings and it has seemed to help somewhat, but the problem for the most part still exists. Does anyone know how I can fix this permanently? I would really like to be able to get the maximum performance out of it while plugged in without the worry of everything powering down every so often.
HI Aframie,
Please provide your complete product number only. Instructions on finding your product number can be found here.
I also need the your operating system and whether it is 32 bit or 64 bit. Is this the factory installed operating system or have you upgraded your operating system?
Jaco
Errare humanum est. -
Should I use a network switch and plug my Yamaha A/V receiver and Yamaha DVD into it, then into the wireless router? Then the net into the routers net port???
HT4199 I have a Netgear R6300 wireless router and a Yamaha RX-3020 A/V receiver. An app is available to run on an Ipad. I have to reboot every morning to get it all working. Can I just plug cat6 between them, when I do nothing works, please help
-
My ipad stopped charging 2days ago, now the battery has completely run out. when ever i plug it to the mains using charger provided, it just shows the, 'red batteryand electricity sign' and goes off again. I have previously tried resting and still no change. Help please.
wait for the red battery to turn green... that will take 2 mins.
once battery shows green, wait for another 8 mins to hold charge
>after 10 mins of waiting turn on iPad... -
Hi,
This is regarding SQL tuning:
Oracle gathers statistics on the table when we analyze a table.
Actually what happens when we analyze a table internally?
Can some body please explain?
Thanks in advance.Because the cost-based approach relies on statistics, you should generate statistics for all tables and clusters and all indexes accessed by your SQL statements before using the cost-based approach. If the size and data distribution of the tables change frequently, then regenerate these statistics regularly to ensure the statistics accurately represent the data in the tables.For more information you can view the following link
http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96533/stats.htm#13547
Thanks -
Hi Guys .
Please how do you RUN analyze schema or database or table?
I have ran gather all schema statistics and now my told to run analyze schema by my boss .. How do you do this please?
Platform is 11.5.9
OS: solarais
Thanks in advanceLook at the SQL Area report for your database. If you see more than maybe 1 SYS query in the top ten, you need to gather stats for SYS as well (9i and above).
SQLAREAT.SQL - SQL Area, Plan and Statistics for Top DML (expensive SQL in terms of logical or physical reads)
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=238684.1
Collecting Statistics with Oracle Apps 11i
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=368252.1 -
Urgent :Analyze 14GB table
Experts,
I need to analyze a table which is 14GB and i have tried analyzeing it 3 times in sqlplus ,....but still wondering why its not analyzed.
Iam using the below query to analyze
EXECUTE SYS.DBMS_STATS.GATHER_TABLE_STATS (OwnName=>'SIEBEL',TabName=>'XXXXXX',Estimate_Percent=>10,Method_Opt=>'FOR ALL INDEXED COLUMNS SIZE AUTO ', DEGREE=>12, CASCADE=>TRUE, No_Invalidate=> FALSE);
Could anyone help me in
1)To check how much time it takes to analyse.
2)How to confirm if its really analyzed.
3)How to check if its analyzing.
4)Any way to run it back groundand it depends on how many dependent object because cascade => true.Only INDEXES. Not dependent objects.
cascade
Gather statistics on the indexes for this table. Index statistics gathering is not parallelized. Using this option is
equivalent to running the GATHER_INDEX_STATS Procedure on each of the table's indexes. Use the constant
DBMS_STATS.AUTO_CASCADE to have Oracle determine whether index statistics to be collected or not. This is the
default. The default value can be changed using theSET_PARAM Procedure.http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm#i1036461
Maybe you are looking for
-
IPhoto is not in app store under purchased
hello i had to reinstall lion and after that i went to instore iphoto from the app store. i went to purchased and i accidently hit the delete button instead of install. so i went back to reinstall iphoto but an message came up saying ive already ha
-
Port Number in HTTP Sender URL
Hello, I am trying for a HTTP -> SAP PI 7.11 -> File scenario and now want to develop the URL which will be used by the HTTP client. I have the format of the URL to be used I want to ask which is the port that should be used in the URL: http://<hostn
-
JavaScript (JS) To Maximize InDesign CS4 Application
I'm trying to write a JavaScript that will maximize the InDesign CS4 application window. I can control the document windows, but haven't found a way to control the application window. Any suggestions?
-
I went to my local Best Buy store on Sunday to get a new cellphone. I wanted the Razr Maxx and because I had checked online I knew it was out of stock, but I figured I could just order the phone and it would either ship or I could pick it up when it
-
Unable to renew developer license from vs2013
this is what i get whenever i tried to renew my license . though it was working before installing vs2013 update 4 . whats wrong? ive also reset all vs settings and uninstall and installed again but not working.:( can anyone there to help me. binodtam