DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: UPDATE VERY SLOW!!!

  1. #1
    Join Date
    Feb 2001
    Posts
    286
    Hi!

    Working on Oracle v8i with OS as win2000.

    Query:

    Mu update is taking lot of time and the performance of the database is also slow and this happened just to-day.It was working fine before this:

    Query:

    UPDATE TABLE_NAME
    SET COLUMN_NAME = LTRIM(RTRIM(COLUMN_NAME))
    /

    Query hangs here for indefinite period.

    My INIT.ORA parameter file is as under:

    SQL> sho parameter

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    O7_DICTIONARY_ACCESSIBILITY boolean TRUE
    active_instance_count integer
    always_anti_join string NESTED_LOOPS
    always_semi_join string STANDARD
    aq_tm_processes integer 0
    audit_trail string NONE
    background_dump_dest string D:\Oracle\admin\PVPL\bdump
    backup_tape_io_slaves boolean FALSE
    bitmap_merge_area_size integer 1048576
    blank_trimming boolean FALSE
    buffer_pool_keep string

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    buffer_pool_recycle string
    commit_point_strength integer 1
    compatible string 8.1.0
    control_file_record_keep_time integer 7
    control_files string D:\Oracle\oradata\PVPL\control
    01.ctl, D:\Oracle\oradata\PVPL
    \control02.ctl, D:\Oracle\orad
    ata\PVPL\control03.ctl
    cpu_count integer 1
    create_bitmap_area_size integer 8388608
    cursor_sharing string EXACT

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    cursor_space_for_time boolean FALSE
    db_block_buffers integer 2443
    db_block_checking boolean FALSE
    db_block_checksum boolean FALSE
    db_block_lru_latches integer 1
    db_block_max_dirty_target integer 2443
    db_block_size integer 8192
    db_domain string
    db_file_direct_io_count integer 64
    db_file_multiblock_read_count integer 8
    db_file_name_convert string

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    db_files integer 1024
    db_name string PVPL
    db_writer_processes integer 1
    dblink_encrypt_login boolean FALSE
    dbwr_io_slaves integer 0
    disk_asynch_io boolean TRUE
    distributed_transactions integer 500
    dml_locks integer 600
    enqueue_resources integer 1644
    event string
    fast_start_io_target integer 2443

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    fast_start_parallel_rollback string LOW
    fixed_date string
    gc_defer_time integer 10
    gc_files_to_locks string
    gc_releasable_locks integer 0
    gc_rollback_locks string 0-128=32!8REACH
    global_names boolean FALSE
    hash_area_size integer 163840
    hash_join_enabled boolean TRUE
    hash_multiblock_io_count integer 0
    hi_shared_memory_address integer 0

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    hs_autoregister boolean TRUE
    ifile file
    instance_groups string
    instance_name string PVPL
    instance_number integer 0
    java_max_sessionspace_size integer 0
    java_pool_size string 20971520
    java_soft_sessionspace_limit integer 0
    job_queue_interval integer 10
    job_queue_processes integer 4
    large_pool_size string 25085760

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    license_max_sessions integer 0
    license_max_users integer 0
    license_sessions_warning integer 0
    lm_locks integer 12000
    lm_ress integer 6000
    local_listener string
    lock_name_space string
    lock_sga boolean FALSE
    log_archive_dest string
    log_archive_dest_1 string
    log_archive_dest_2 string

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    log_archive_dest_3 string
    log_archive_dest_4 string
    log_archive_dest_5 string
    log_archive_dest_state_1 string enable
    log_archive_dest_state_2 string enable
    log_archive_dest_state_3 string enable
    log_archive_dest_state_4 string enable
    log_archive_dest_state_5 string enable
    log_archive_duplex_dest string
    log_archive_format string ARC%S.%T
    log_archive_max_processes integer 1

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    log_archive_min_succeed_dest integer 1
    log_archive_start boolean FALSE
    log_archive_trace integer 0
    log_buffer integer 32768
    log_checkpoint_interval integer 10000
    log_checkpoint_timeout integer 1800
    log_checkpoints_to_alert boolean FALSE
    log_file_name_convert string
    max_commit_propagation_delay integer 700
    max_dump_file_size string 10240
    max_enabled_roles integer 30

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    max_rollback_segments integer 37
    mts_circuits integer 170
    mts_dispatchers string (PROTOCOL=TCP)(PRE=oracle.auro
    ra.server.SGiopServer)
    mts_listener_address string
    mts_max_dispatchers integer 5
    mts_max_servers integer 20
    mts_multiple_listeners boolean FALSE
    mts_servers integer 1
    mts_service string PVPL
    mts_sessions integer 165

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    nls_calendar string
    nls_comp string
    nls_currency string
    nls_date_format string
    nls_date_language string
    nls_dual_currency string
    nls_iso_currency string
    nls_language string AMERICAN
    nls_numeric_characters string
    nls_sort string
    nls_territory string AMERICA

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    nls_time_format string
    nls_time_tz_format string
    nls_timestamp_format string
    nls_timestamp_tz_format string
    object_cache_max_size_percent integer 10
    object_cache_optimal_size integer 102400
    open_cursors integer 200
    open_links integer 4
    open_links_per_instance integer 4
    optimizer_features_enable string 8.1.6
    optimizer_index_caching integer 0

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    optimizer_index_cost_adj integer 100
    optimizer_max_permutations integer 80000
    optimizer_mode string CHOOSE
    optimizer_percent_parallel integer 0
    oracle_trace_collection_name string
    oracle_trace_collection_path string %ORACLE_HOME%\OTRACE\ADMIN\CDF
    \
    oracle_trace_collection_size integer 5242880
    oracle_trace_enable boolean FALSE
    oracle_trace_facility_name string oracled
    oracle_trace_facility_path string %ORACLE_HOME%\OTRACE\ADMIN\FDF

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    \
    os_authent_prefix string
    os_roles boolean FALSE
    parallel_adaptive_multi_user boolean FALSE
    parallel_automatic_tuning boolean FALSE
    parallel_broadcast_enabled boolean FALSE
    parallel_execution_message_size integer 2148
    parallel_instance_group string
    parallel_max_servers integer 5
    parallel_min_percent integer 0
    parallel_min_servers integer 0

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    parallel_server boolean FALSE
    parallel_server_instances integer 1
    parallel_threads_per_cpu integer 2
    partition_view_enabled boolean FALSE
    plsql_v2_compatibility boolean FALSE
    pre_page_sga boolean FALSE
    processes integer 150
    query_rewrite_enabled boolean FALSE
    query_rewrite_integrity string enforced
    rdbms_server_dn string
    read_only_open_delayed boolean FALSE

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    recovery_parallelism integer 0
    remote_dependencies_mode string TIMESTAMP
    remote_login_passwordfile string EXCLUSIVE
    remote_os_authent boolean FALSE
    remote_os_roles boolean FALSE
    replication_dependency_tracking boolean TRUE
    resource_limit boolean FALSE
    resource_manager_plan string
    rollback_segments string
    row_locking string always
    serial_reuse string DISABLE

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    serializable boolean FALSE
    service_names string PVPL
    session_cached_cursors integer 0
    session_max_open_files integer 10
    sessions integer 170
    shared_memory_address integer 0
    shared_pool_reserved_size string 786432
    shared_pool_size string 15728640
    sort_area_retained_size integer 81920
    sort_area_size integer 81920
    sort_multiblock_read_count integer 2

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    sql92_security boolean FALSE
    sql_trace boolean FALSE
    sql_version string NATIVE
    standby_archive_dest string %ORACLE_HOME%\RDBMS
    star_transformation_enabled string FALSE
    tape_asynch_io boolean TRUE
    text_enable boolean FALSE
    thread integer 0
    timed_os_statistics integer 0
    timed_statistics boolean FALSE
    transaction_auditing boolean TRUE

    NAME TYPE VALUE
    ------------------------------------ ------- ------------------------------
    transactions integer 187
    transactions_per_rollback_segment integer 5
    use_indirect_data_buffers boolean FALSE
    user_dump_dest string D:\Oracle\admin\PVPL\udump
    utl_file_dir string

    So what and where should I be checking!

    Thanks & Regards,

    Amit.




    Oracle DBA (OCP) v8i,v9i

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Update hangs for indefinite period? Have you checked if some other session is holding locks on the table/rows you are updating?
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width