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?

Similar Messages

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

  • 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/

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

  • 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

  • Data Base is very slow

    Dear All,
    Certain query on my database is very slow .
    One of the query some times does not execute at all.this query involves a big table of about 5 million records.
    Some Facts About my Database.
    OS: SUN Solaris
    DataBase: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    RAM:32GB
    Dedicated oracle server
    Processors:16
    DB Block Size:2048
    Large pool:150994944
    log_buffer:10485760
    shared_pool_size:150994944
    There are in total 21 production Database running on the same BOX.
    Previously my buffer cache hit ratio was 27%.
    So I recommended an increase in DB_CACHE_SIZE from 101MB to 300MB
    and SGA_MAX_SIZE to 800MB from 600MB.
    As a result ,The buffer cache hit ratio increased to 75%.
    But still the queries run slow.
    I even tried with Partitioning the Big Table Didn't help.
    My question is ,is the system over loaded ?
    or increasing the db_cache_size will help ?
    Regards.

    By itself the buffer hit cache ratio is a meaningless statistic. It can in fact be a misleading indicator since it does not actually reflect application performance.
    Tune the query. Make sure it is running as well as it can.
    Then look at overall machine resources: average and peak cpu, memory, and IO loads.
    If spare resources exist then considering more resources to the more important databases on the system.
    Document any performance changes that occur after each change. It is possible for the database performance problem being latching, that is, shared pool access and you might need space in the shared pool more than the buffers. It depends on the application and user load.
    Why are you using a 2K database block size? I would think 4k or 8k would probably be better even for a true OLTP with almost all access by index.
    To get help on the query you will need to post it, the explain plan, and information on available indexes, table row counts, and perhaps column statistics for the indexed columns and filter conditions.
    HTH -- Mark D Powell --

  • Insert in oracle database issue (very urgent)

    Hello
    I am new to this forum and also new to oracle .... I am woking in a C# 3.5 desktop application
    I am Leasing data from socket (1 message per 10 millisecond) and save in queue<T> and then i have a background thread which dequeu the data and perform some calculation and create “insert sql query “ on run time NO STORE PROCEDURE just simple insert query
    For example
    insert into Product values(0,computer , 125.35);
    I pass that insert query to my datalayer which create oracle connection and insert in to a data base. see the code below
    using System.Data.OracleClient
    class db
    OracleConnection conns = null
    public static void conn(string dbalias, string userid, string password){
    try
    string connString = @"server =" + dbalias + ";uid =" + userid + ";password =" + password + ";";
    conns = new OracleConnection(connString);
    conns.Open();
    catch (OracleException e){
    Console.WriteLine("Error: " + e);}}
    public static void ExecuteCommand(string sqlquery)
    try
    OracleCommand cmd = new OracleCommand(sqlquery,conns);
    cmd.ExecuteNonQuery();
    NOW the problem is that inseration in oracle database is very slow please tell me how to solve this issue

    using System.Data.OracleClient ????
    This is the ODP.NET forum.
    using Oracle.DataAccess.Client;
    and reference something like: C:\Oracle\product\11.1.0\client_1\ODP.NET\bin\2.x\Oracle.DataAccess.dll
    Assuming your "insert thread" is simply waiting on the next queue entry, why don't you just turn pooling off, open the connection and keep that one connection open?
    I am fairly certain the speed issue has nothing to do w/the insert statement vs. stored procedure.
    r,
    dennis

Maybe you are looking for

  • Help needed in building a tree without duplicatin​g the nodes

    Iam trying to construct a tree, ID name as the parent node and channel name & channel values as its corresponding child nodes. I had constructed the tree, but the problem i have is with interfacing that with in my  main program. In the main program s

  • Itunes wont read music unless CD or ipod is connected

    I just switched my ipod library over from my mothers computer to my own PC and now itunes wont let me play my music unless the ipod is plugged it. It also wont play the cds i had on recovery disks unless the disk is in. I get a message that says... "

  • Firefox does not always remember custom history settings

    I use custom history settings. I uncheck Accept cookies from sites (and then use the Cookie Monster add-on to manage cookies). Occasionally I find that the preference has returned to Remember History. I can detect no pattern to when this happens. It

  • Logical backups of Intermedia data

    Hi, New Intermedia user looking for more information on backup and recovery issues with regard to Intermedia tables. I tried to do an export of some intermedia info and didn't seem to get the tables. Thanks.

  • Is there a command to know the current throughput fo an IPS

    Hi guys I need to get some information from my CISCO IPS. I need to get the current throughput from the IPS but I cannot find any command that could bring such information. If somebody know how to get this information it will be great. Regards!