Database is very slow due to materialized view

hi guys,
our database is having materialized view which is getting refreshed every hour makes DB very slow,moreover it is generating very huge quantity of archives in a single day.
is there any way to get rid off from this worse situation
pls help me out...

Hi,
I'm sure the below link will help you:
http://www.orafaq.com/node/1897
Best regards,
Rafi.
http://rafioracledba.blogspot.com/

Similar Messages

  • Database is very slow

    Hi Guys,
    I am geting trouble. My database is very slow. I couldn't log in when I launch enterprise manager. I use sqlplus to login on as sys, and it was ok, but it was very slow when I select from v$lock. It is fast when I select from v$session. How can I fix? How can know what database is doing? Thanks.

    It is been fixed by our consultant. The reason is memery shortage. The consultant company didn't tell us much more. Thank you guys. Now I checked my system, in v$session_wait view, there are 3 buffer busy waits events there, and in P2Text column, there is a value "Block#". I checked the view of V$waitstat, the result like
    data block 4234 1259059
    undo header 68169 6811160
    is there problem?
    in v$system_envents like
    EVENT TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED AVERAGE_WAIT TIME_WAITED_MICRO
    buffer busy waits 72994 72950 7953083 109 7,9531E+10
    when I select from v$lock, it took long time, finally I cancelled. I coun't use enterprise manager to expand instance tree to see the sessio, very slow and like hang. What's problem? How do I fix it?

  • When i start my hot backup my database getting very slow

    Hi,
    I am using following commands for enabling hot backup
    SQL>ALTER SYSTEM ARCHIVE LOG CURRENT;
    SQL>ARCHIVE LOG LIST;
    SQL >ALTER DABATBASE BEGIN BACKUP;
    Database altered.
    SQL>SELECT FILE#,STATUS FROM V$BACKUP;
    FILE# STATUS
    1 ACTIVE
    2 ACTIVE
    3 ACTIVE
    4 ACTIVE
    and using cp -rp command to copy the file (backup copying speed good) but database performance very slow
    How to improve performance ...
    Regards
    Vignesh C

    Uwe Hesse wrote:
    It is very likely that you experience slow performance with ALTER DATABASE BEGIN BACKUP , because until you do ALTER DATABASE END BACKUP , every modified block is additionally written into the online logfiles . Doesn't that happen only the first time the block is modified?
    >
    The command was introduced for split mirror backups, when this period is very short. Else ALTER TABLESPACE ... BEGIN/END BACKUP for every tablespace one at a time reduces the amount of additional redo during non-RMAN Hot Backup. There appear to be only 4 files. We don't know how big or sparse they are.
    >
    RMAN doesn't need that at all - much less redo - and also archive - generation then.
    Furthermore, you can use BACKUP AS COMPRESSED BACKUPSET DATABASE to decrease the size of the backup even more - if space is an issue.
    In short: Use RMAN :-)
    Agree with that! Unless the copy is actually going to an NFS mount or something, where I would be concerned whether it is the type of NFS that Oracle likes. I'd also advise a current patch set, as the OP didn't tell us the exact version, and I have this nagging unfocused memory of some compression problems of the "oh, I can't recover" variety.
    I'd like to see some evidence on I/O and cpu usage before giving advice. When I used to copy files like this, it would choke out everyone else. RMAN was a savior, but had to wait for local SAN upgrade.

  • Database performing Very slow  - Lots of wait events

    My database is on Oracle10g on Sun 5.10
    The users are complaining about database is very slow.
    I analyzed the indexes & later on rebuild them, hardly it has only 5% performance improvement.
    http://i812.photobucket.com/albums/zz43/sadeel00/untitled1.jpg
    http://i812.photobucket.com/albums/zz43/sadeel00/untitled2.jpg
    ADDM has no recommendations.

    Duplicate post - Database performing Very slow  - Lots of wait events
    Srini

  • A user connect to the database is very slow.

    Hi, all!
    I met a problem in the database. A user(schema) connect to the database is very slow. and the user query the data is slow too.

    And some errors in the listener.log :
    23-Aus -2012 06:03:54 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=ora36)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=24923)) * establish * ora36 * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    23-Aus -2012 06:03:54 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=ora36)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=23409)) * establish * ora36 * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    23-Aus -2012 06:03:55 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=ora36)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=9103)) * establish * ora36 * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    How can I resolve this, thanks!

  • Database is very slow in oracle 9i with Suse Linux

    Hello All,
    We are using Suse linux and installed Oracle 9i on it. Our ERP product is running on this database. It is very slow. But linux configuration seems Ok. Oracle's performance is very slow. But The same thing is working fast in oracle 8.1.6 and 8.1.7. Is there any special linux configuration parameters should we consider for this or we have to do something in init.ora file?. I added the size of the JAVA_POOL_SIZE, SHARED_POOL_SIZE and LARGE_POOL_SIZE to 300 MB each.
    Thanks in advance and expecting your reply.
    with regards,
    sivababu

    Which version of SuSE Linux would possibly help here. I'm using version 7.3 Pro and it is only 10 minutes slower than my installation on XP Pro (the script is 16 pages long and takes 8,000,000 records and converts them into 30,000 records of useful information-takes 20 minutes in XP, 30 minutes in SuSE 7.3 on a personal computer). I used the orarun9i script and followed the directions for re-compiling the genclntsh from the SuSE installations online.

  • Database Performance of the database is very slow

    Hi All,
    I have an issue with performance of the database.
    I noticed my database performance is very slow for the last 2 months. And recently i had made some changes in my database (like changing the NLS character set of my database) but prior to that itself i had an performance issue. But after the change i did recently still it got degraded.
    And now, i had no trace files getting generated for my database. And i had no statspack information. and my alert log file is not having much information regarding to this.
    Can anyone suggest how can i proceed further to look into the issue..?
    Thanks & Regards
    Vedavathi E

    user602126 wrote:
    Hi All,
    I have an issue with performance of the database.
    I noticed my database performance is very slow for the last 2 months. And recently i had made some changes in my database (like changing the NLS character set of my database) but prior to that itself i had an performance issue. But after the change i did recently still it got degraded.
    And now, i had no trace files getting generated for my database. And i had no statspack information. and my alert log file is not having much information regarding to this.
    Can anyone suggest how can i proceed further to look into the issue..?Vedvathi,
    Its kind of finding needle in a haystack with being blindfolded. You don't have any statspack report, that's not such big deal. You can always create one. What's the database version of yours? If you are on 10g, consider using AWR report than Statspack.
    You mentioned that you did a recent change, what is that change? Where did you do it and for what reason?
    Give us some more detail in the form of statspack/awr reports to help you further.
    HTH
    Aman....

  • Oracle database is very slow and hangs sometime

    I am using Oracle 11g on Red hat 5.2 . My RAM is of 6 GB and swap size is 12GB . When I checked the used RAM and Swap area by using $ free -m command it shows that enough free memory (almost 4990 GB and swap space (more than 10GB) is available to use. Then I checked an alert.log file as my database was hanged . It contains error like
    1. audit commit delay exceeded oracle
    2. unable to spawn jobq slave process oracle
    3. maximum number of sessions exceeded
    4. could not allocate new resource
    My init.ora contains following parameters.
    Processes =150
    Sessions= 248
    Transactions = 220
    memory_target = 2400m
    sga_max_size = 1500m
    sga_target = 0m
    So, what steps i should take to stop database hanging and how can i boost slow performance ? Is there any problem with my resource manager and if so then how can i correct it?
    Thanks
    Tushar Lapani

    Hi,
    Please check the query
    SELECT username,default_tablespace from dba_users;
    Ususally the default tablespace of the user should not be in SYSTEM tablespace. This might cause performance issue. Create a seperate tablespace and alter/assign this user. Also must move all the objects from SYSTEM tablespace to this new tablespace which you created.
    For complete details, you can refer the document http://docs.oracle.com/cd/B14117_01/server.101/b10752.pdf

  • First connection to the database is very slow.

    i am using oracle 10g and i have developed asp.net web application and i deployed it in 64-bit machine. when i tried to access my application url, first connection to database is taking about 30secs. but consecutive things after first connection is taking only 2 or 3 seconds.
    the query is well tuned and tested.Query is taking only 3 secs to get the results.
    But i dont know why it is taking 30secs for the first time to execute..
    Please help me to solve this issue. It will be helpful for me

    Thanks for your reply peter.
    I have tried , without connecting database, i just hardcoded data values then i tried to access my application at that time it was very fast.
    Then i came to conclusion that problem is in some where in data base connection. because my query is also fine tunes.

  • Oracle Database suddenly very slow!

    Hello,
    After running our Oracle 10g instance on Red Hat Enterprise for more than two years without an itch it suddenly became extremely slow. A simple query that would take a few seconds now takes an hour to complete! It is not the network since the same happens from a local console.
    I checked the log files on bdump and cdump but couldn't see anything wrong.
    Any assistance would be much appreciated!
    Thank you in advance.

    hi,
    do you perform the following
    execute dbms_stats.gather_system_stats ('Start');
    let the system do some typical work
    execute dbms_stats.gather_system_stats ('Stop');
    try running this and see what happens.
    could you also post back some
    vmstat 10 13
    under typical work load and also some
    sar figures
    rgds
    alan

  • Clicking on a database is very slow for some databases

    Hello,
    when I click on some databases in my Grid (especially 10.2.0.4 on AIX) I wait for a minute that the database home page being displayed.
    It is not the case on my other databases (especially 9.2.0.8 on Solaris).
    I have checked the sysman/log and found that the agent seems to pause for 20 secondes several times before the dataabse home page displays; I do not know if the agent does nothing (sleeping ?) or doing things that are not loggued on the file (or sending informations back to the OMS).
    Did somebody noticed the same behaviour ?
    and did more investigations ?
    (I did not found any bug related to this on Metalink and as I wait to apply the latest PSU over my system to create a SR if the trouble remains).
    Regards,
    Noel Talard

    When selecting a database from the Database Targets page, OEM needs to address you local database.
    When databases are spread over several servers and several OS platforms, response obviously can be different.
    Regards
    Rob
    http://oemgc.wordpress.com

  • Compile of forms on Oracle 11g database Rel1 very slow

    I think the following statement is causing the issue :
    SELECT COUNT (*)
    FROM ALL_OBJECTS
    WHERE ( OWNER = 'SYS' AND OBJECT_NAME = 'DBMS_JAVA' AND OBJECT_TYPE = 'PACKAGE' AND ALL_OBJECTS.STATUS = 'VALID' )
    OR ( OWNER = 'SYSTEM' AND OBJECT_NAME = 'ORA_DE_REFLECTION' AND OBJECT_TYPE = 'PACKAGE' AND ALL_OBJECTS.STATUS = 'VALID' )
    OR ( OWNER = 'SYSTEM' AND OBJECT_NAME = 'oracle/opb/Reflection' AND OBJECT_TYPE = 'JAVA CLASS' AND ALL_OBJECTS.STATUS = 'VALID' )
    OR ( OWNER = 'SYSTEM' AND OBJECT_NAME = 'oracle/opb/SchemaClassLoader' AND OBJECT_TYPE = 'JAVA CLASS' AND ALL_OBJECTS.STATUS = 'VALID' )
    i see the compiler submitting the above statement.
    With sqlplus this statement takes 7secs.
    anyone a clue?
    kr
    chris

    You didn't mention the Forms version, but likely you are experiencing a known issue. Details are discussed in MyOracleSupport Note 1099035.1 A patch is available and outlined in the note.

  • Refresh of materialized views slow

    Hi,
    This relates to a datawarehouse, used for a data migration (Oracle 11g).
    To refresh a set of materialized views I am using DBMS_MVIEW.REFRESH.
    However, it seems that refreshing the views is much slower( about 4 to 5 times slower) than dropping and re-creating them.
    Any thoughts on this?
    To speed up the refresh method, I truncate beforehand and this seems to help the peformance, but not by much.
    So, basically when I run:
    TRUNCATE TABLE MY_MVIEW;
    EXECUTE DBMS_MVIEW.REFRESH ('MY_MVIEW','C',PARALLELISM=>8,ATOMIC_REFRESH=>false);
    this is still about 3 times slower then;
    DROP MATERIALIZED VIEW MY_MVIEW;
    CREATE MATERIALIZED VIEW "MY_MVIEW"
    PARALLEL 8
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FORCE ON DEMAND
    ENABLE QUERY REWRITE
    AS SELECT * FROM MY_TAB;
    Cheers.

    843217 wrote:
    So, basically when I run:
    TRUNCATE TABLE MY_MVIEW;
    EXECUTE DBMS_MVIEW.REFRESH ('MY_MVIEW','C',PARALLELISM=>8,ATOMIC_REFRESH=>false);
    this is still about 3 times slower then;
    DROP MATERIALIZED VIEW MY_MVIEW;
    CREATE MATERIALIZED VIEW "MY_MVIEW"
    PARALLEL 8
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FORCE ON DEMAND
    ENABLE QUERY REWRITE
    AS SELECT * FROM MY_TAB;You use USING INDEX clause, that's why it is slower.
    But why don't use a fast refresh?
    your query quite simple and it allows to use fast refresh, not complete. Create MView log for MY_TAB and refresh only new/modified/deleted records.

  • Database very slow/hangs.

    Hello,
    My company server has a database of size 400GB. It has has been distributed on 2 HDD of 300GB each. Previously i had faced the problem of database performing very slow . That time the size of the database was much shorter & i just moved the REDOLOG FILE to other HDD using rename command. That worked & again the database was working great. But now the scenario is quite different than previous... as given below ...
    Tablespace Name - LHSERP
    No. Of. Datafiles in LHSERP Tablespace - 55  ( Which are distributed on 2 HDD )
    Hard Disk Drive (HDD) in server - 2
    Capacity of HDD - 300GB each.now both HDD has datafiles from LHSERP tablespace. I tried to move the redo log files to other HDD but no use. No improvement in the performance. Still the database is slow.
    One more thing i need to make a point of , when i see the task manager on the server it shows some RED and GREEN color graph of CPU usage. Does it mean anything serious ???? Even the whole OS works quite slow on the server. Right from opening MY COMPUTER , to loging into the user ....to fire the query in the user ...everything is very slow. Should i try to short out this problem in some different direction ???
    Can you suggest me what to do next ... to improve database performance. If you have anymore ideas please let me know.
    ORACLE DATABASE 10g
    Windows Server 2008 64-Bit
    Thanks in advance ....

    Hi,
    What is your AWR snapshot keep time? I normally set it to 30 days so that in case of some problem, i can compare my AWR with my history AWRs. Now, can you take out an AWR when your database was doing good and then the latest AWR and then compare it and see what is the difference? Is redo log generation has increased? What are the top 5 wait events in the good AWR report and now in current bad AWR report. What are the top SQLs (elapsed time, CPU time) in good and bad AWR. What were the top segments in bad and good AWRs.
    Doing this will give you insight of the problematic area.
    Can you check ADDM report, is oracle recommending you anything t o look into?
    what is the CPU usage. Even Oracle is the top consumer, can you check the CPU usage for past 24 hours, is it touching 100 %?
    You should have OEM configured with the database. Form OEM, can you check host hard disks performance and check the busy percentage of your hard disks for past one month and check if there was any increase in the hard disk busy rate.
    Doing all above will certainly help you identify the problematic area.
    Salman

  • UPdation is very slow

    Updation in a one table of our database is very slow. How i identify which thing is causing problem.
    Any idea ????
    Thanks

    The tkprof shows that the main problem is due to too much parsing and is two-fold:
    1) you are parsing every statement again and again. They are 1019 soft parses and 932 hard parses. By using bind variables you make sure you are not hard parsing every time, under normal circumstances. In your case however you have a second problem:
    2) the cursor gets invalidated almost half of the times, and a new hard parse had to take place 932 times.
    For the first problem you have to look at the application that is executing the SQL. The application is doing:
    parse
    bind
    execute
    close
    parse
    bind
    execute
    close
    instead of
    parse
    ->bind
    ->execute
    ->bind
    ->execute
    close.
    It may be because of dynamic SQL inside PL/SQL or maybe the parameter session_cached_cursors is set to 0? Or a java application that parses too much?
    The cause of the second problem is hard to tell. What are you doing that makes the cursors go invalid each time? There are numerous ways why this may happen. Maybe you are dynamically granting privileges on the fly? Or are you flushing the shared_pool? At least something non regular is happening here and you have to find out why.
    Note that another problem is the row by row processing, but that will be an issue once the bigger one has been solved
    Regards,
    Rob.

Maybe you are looking for

  • Which drives? Or have a look at the web site I'll get a repl drive

    I have returned a faulty Lacie 500 Gb Porsche design external drive (real crap) and can choose from products on this site: www.fast-tele.com I was thinking maybe: LACIE 1 TB / USB 2.0 / 7200 RPM / 32MB (301304EK)(http://www.fast-tele.com/PartDetail.a

  • How to restore a failed external hard drive from Time Machine?

    My external hard drive has failed. It will no longer spin up and therefore is unmountable. Thankfully I had added it to my OSX Time Machine backups. So, since disks are cheap, I can just go buy a new, probably larger external drive and restore, right

  • Windows 7 Laptop to external LCD monitor show low resolution

    Hello, I'm connecting my laptop to external LCD 1920*1080. When Extend the display, each screen works with its full resolution allowed (Laptop has lower than 1920*1080 and the LCD works with resolution of 1920*1080), but when duplicate the display, t

  • Java User-defined packages problem!

    Hi everyone, I am new to java programming.I am trying to do a small program to see how the user-defined pckages work.I wrote 2 small programs one is Balance.java and TestBalance.java. The code for Balance.java is as follows.. package MyPack; public c

  • Need to Create 2 Columns Data in CSS Without Table

    Here is what I am trying to do without using a table layout at all: STATE TOTAL AZ 1000 AL 2000 So can anyone point me to where I can learn this online or any good tutorials on CSS and tabular data, etc. I came up with a solution in CSS but the right