Oracle 11G - Update is very slow on View

I have big trouble with some Update query on Oracle 11G.
I have a set of tables (5) of identical structures and a view that consists in an UNION ALL of the 5 tables.
None of this table contains more than 20 000 rows.
Let's call the view V_INTE_NE. Each of the basic table has a PRIMARY KEY defined on 3 NUMBERS(10,0) -> INTE_REF / NE_REF / INSTANCE.
Now, I get 6 rows in another table and I want to update my view from the data of this small table (let's call it SMALL). This table has the 3 columns INTE_REF / NE_REF / INSTANCE.
When I try to join the two tables :
SELECT * FROM T_INTE_NE T2
WHERE EXISTS ( SELECT 1 FROM SMALL T1 WHERE T2.INTE_REF = T1.INTEREF AND T2.NE_REF = T1.NEREF AND T2.INTE_INST = T1.INSTANCE )
I get the 6 lines in 0.037 seconds
When I try to update the view (I have an INSTEAD OF trigger that does nothing (just return for testing even without modifying anything), I execute the following query :
UPDATE T_INTE_NE T2
SET INTE_STATE = -11 WHERE
EXISTS ( SELECT 1 FROM SMALL T1 WHERE T2.INTE_REF = T1.INTEREF AND T2.NE_REF = T1.NEREF AND T2.INTE_INST = T1.INSTANCE )
The 6 rows are updated (at least TRIGGER is called) in 20 seconds.
However, in the execution plan, I can't see where Oracle takes time to achieve the query :
Plan hash value: 907176690
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | UPDATE STATEMENT | | 6 | 36870 | 153 (1)| 00:00:02 |
| 1 | UPDATE | T_INTE_NE | | | | |
|* 2 | HASH JOIN RIGHT SEMI | | 6 | 36870 | 153 (1)| 00:00:02 |
| 3 | TABLE ACCESS FULL | SMALL | 6 | 234 | 9 (0)| 00:00:01 |
| 4 | VIEW | T_INTE_NE | 6 | 36636 | 143 (0)| 00:00:02 |
| 5 | VIEW | X_V_T_INTE_NE | 6 | 18636 | 143 (0)| 00:00:02 |
| 6 | UNION-ALL | | | | | |
| 7 | TABLE ACCESS FULL| SECNODE1_T_INTE_NE | 1 | 3106 | 60 (0)| 00:00:01 |
| 8 | TABLE ACCESS FULL| SECNODE2_T_INTE_NE | 1 | 3106 | 60 (0)| 00:00:01 |
| 9 | TABLE ACCESS FULL| SECNODE3_T_INTE_NE | 1 | 3106 | 2 (0)| 00:00:01 |
| 10 | TABLE ACCESS FULL| SECNODE4_T_INTE_NE | 1 | 3106 | 2 (0)| 00:00:01 |
| 11 | TABLE ACCESS FULL| SECNODE5_T_INTE_NE | 1 | 3106 | 2 (0)| 00:00:01 |
| 12 | TABLE ACCESS FULL| SYS_T_INTE_NE | 1 | 3106 | 17 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("T2"."INTE_REF"="T1"."INTEREF" AND "T2"."NE_REF"="T1"."NEREF" AND
"T2"."INTE_INST"="T1"."INSTANCE")
Note
- dynamic sampling used for this statement (level=2)
Statistics
3 user calls
0 physical read total bytes
0 physical write total bytes
0 spare statistic 3
0 commit cleanout failures: cannot pin
0 TBS Extension: bytes extended
0 total number of times SMON posted
0 SMON posted for undo segment recovery
0 SMON posted for dropping temp segment
0 segment prealloc tasks
What could explain the difference ?
I get exactly the same execution plan (when autotrace is ON).
Furthermore, if I try to do the same update on each of the basic tables, I get the rows updated instantaneously.
Is there any reason for avoiding this kind of query ?
Any help would be greatly appreciated :-)
Regards,
Patrick

Sorry for this, I lost myself in conjonctures and I didn't think I would have to explain the whole case.
So, I wrote a small piece of PL/SQL that reproduces the same issue.
It seems that my issue is not due to the UPDATE but to the use of the IN predicate.
As you can see at the end of the script, I try to join the 2 tables using different technics.
The first query is very fast, the second is very slow.
I need the second one if I want to do any update.
DROP TABLE Part1;
DROP TABLE Part2;
DROP TABLE Part3;
DROP TABLE Part4;
CREATE TABLE Part1 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 1 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part1 PRIMARY KEY( Key1, Key2, Key3 ) );
CREATE TABLE Part2 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 2 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part2 PRIMARY KEY( Key1, Key2, Key3 ) );
CREATE TABLE Part3 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 3 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part3 PRIMARY KEY( Key1, Key2, Key3 ) );
CREATE TABLE Part4 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 4 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part4 PRIMARY KEY( Key1, Key2, Key3 ) );
CREATE OR REPLACE FUNCTION Decrypt
x_in IN VARCHAR2
) RETURN VARCHAR2
AS
x_out VARCHAR2(2000);
BEGIN
SELECT REVERSE( x_in ) INTO x_out FROM DUAL;
RETURN ( x_out );
END;
CREATE OR REPLACE VIEW AllParts AS
SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part1
UNION ALL
SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part2
UNION ALL
SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part3
UNION ALL
SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part4;
DROP TABLE Small;
CREATE TABLE Small ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), Data1 VARCHAR2(1000) );
BEGIN
DECLARE
n_Key NUMBER(10, 0 ) := 0;
BEGIN
WHILE ( n_Key < 50000 )
LOOP
INSERT INTO Part1( Key1, Key2, Key3 )
VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
INSERT INTO Part2( Key1, Key2, Key3 )
VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
INSERT INTO Part3( Key1, Key2, Key3 )
VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
INSERT INTO Part4( Key1, Key2, Key3 )
VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
n_Key := n_Key + 1;
END LOOP;
INSERT INTO Small( Key1, Key2, Key3, Data1 ) VALUES ( 1000, 100, 10, 'Test 1000' );
INSERT INTO Small( Key1, Key2, Key3, Data1 ) VALUES ( 3000, 300, 30, 'Test 3000' );
INSERT INTO Small( Key1, Key2, Key3, Data1 ) VALUES ( 5000, 500, 50, 'Test 5000' );
COMMIT;
END;
END;
SELECT T2.*
FROM Small T1, AllParts T2
WHERE T2.Key1 = T1.Key1 AND T2.Key2 = T1.Key2 AND T2.Key3 = T1.Key3;
SELECT T1.*
FROM AllParts T1
WHERE ( T1.Key1, T1.Key2, T1.Key3 ) IN ( SELECT T2.Key1, T2.Key2, T2.Key3 FROM Small T2 );

Similar Messages

  • Oracle-11g connection is very slow

    Hi Team,
    Installed oracle11g with database yesterday. but the connection to database using tnsnames is very slow even from host server, where as sys / as sysdba is normal in hostserver.
    And checked other databases(10g) connections in the same host server, normal. Here with I spooled alert log file and parameter list. pls do the needful help.
    Aler log file from shut down to startup.
    Sat Aug 06 11:28:54 2011
    Shutting down instance (immediate)
    Stopping background process SMCO
    Shutting down instance: further logons disabled
    Sat Aug 06 11:28:55 2011
    Stopping background process CJQ0
    Stopping background process QMNC
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 10
    ALTER DATABASE CLOSE NORMAL
    Sat Aug 06 11:28:58 2011
    SMON: disabling tx recovery
    SMON: disabling cache recovery
    Sat Aug 06 11:28:58 2011
    Shutting down archive processes
    Archiving is disabled
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    ARC1: Archival stopped
    ARC0: Archival stopped
    ARC3: Archival stopped
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    ARC2: Archival stopped
    Thread 1 closed at log sequence 9
    Successful close of redo thread 1
    Completed: ALTER DATABASE CLOSE NORMAL
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Sat Aug 06 11:29:01 2011
    Stopping background process VKTM:
    Sat Aug 06 11:29:05 2011
    Instance shutdown complete
    Sat Aug 06 11:32:12 2011
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =118
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production.
    Using parameter settings in client-side pfile /oracle/ora11g/apps/dbs/initrakshak.ora on machine abml01
    System parameters with non-default values:
    processes                = 700
    sga_max_size             = 30G
    sga_target               = 30G
    control_files            = "/barch10g_db/ora11g/rakshak_control/rkdatabase/control1/rakshak_control01.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_redo/rkdatabase/control2/rakshak_control02.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/control3/rakshak_control03.ctl"
    db_block_size            = 16384
    compatible               = "11.2.0"
    log_archive_dest         = "/barch10g_db/ora11g/rakshak_archive/rkdatabase/rakshak"
    db_recovery_file_dest    = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/flash_recovery_area"
    db_recovery_file_dest_size= 2G
    undo_management          = "AUTO"
    undo_tablespace          = "UNDOTBS1"
    sec_case_sensitive_logon = FALSE
    remote_login_passwordfile= "EXCLUSIVE"
    utl_file_dir             = "/barch10g_db/ora11g/ldoutput/"
    plsql_code_type          = "native"
    job_queue_processes      = 100
    cursor_sharing           = "FORCE"
    audit_file_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/adump"
    audit_trail              = "DB"
    db_name                  = "rakshak"
    open_cursors             = 700
    diagnostic_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/"
    Sat Aug 06 11:32:33 2011
    PMON started with pid=2, OS id=9463
    Sat Aug 06 11:32:34 2011
    VKTM started with pid=3, OS id=9465 at elevated priority
    VKTM running at (10)millisec precision with DBRM quantum (100)ms
    Sat Aug 06 11:32:34 2011
    GEN0 started with pid=4, OS id=9469
    Sat Aug 06 11:32:34 2011
    DIAG started with pid=5, OS id=9471
    Sat Aug 06 11:32:34 2011
    DBRM started with pid=6, OS id=9473
    Sat Aug 06 11:32:34 2011
    PSP0 started with pid=7, OS id=9475
    Sat Aug 06 11:32:34 2011
    DIA0 started with pid=8, OS id=9477
    Sat Aug 06 11:32:34 2011
    MMAN started with pid=9, OS id=9479
    Sat Aug 06 11:32:34 2011
    DBW0 started with pid=10, OS id=9481
    Sat Aug 06 11:32:34 2011
    DBW1 started with pid=11, OS id=9483
    Sat Aug 06 11:32:34 2011
    DBW2 started with pid=12, OS id=9485
    Sat Aug 06 11:32:34 2011
    LGWR started with pid=13, OS id=9487
    Sat Aug 06 11:32:34 2011
    CKPT started with pid=14, OS id=9489
    Sat Aug 06 11:32:34 2011
    SMON started with pid=15, OS id=9491
    Sat Aug 06 11:32:34 2011
    RECO started with pid=16, OS id=9493
    Sat Aug 06 11:32:34 2011
    MMON started with pid=17, OS id=9495
    Sat Aug 06 11:32:34 2011
    MMNL started with pid=18, OS id=9497
    Sat Aug 06 11:32:34 2011
    ORACLE_BASE not set in environment. It is recommended
    that ORACLE_BASE be set in the environment
    Sat Aug 06 11:34:34 2011
    Shutting down instance (immediate)
    Shutting down instance: further logons disabled
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 1
    ALTER DATABASE CLOSE NORMAL
    ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Sat Aug 06 11:34:37 2011
    Stopping background process VKTM:
    Sat Aug 06 11:34:40 2011
    Instance shutdown complete
    Sat Aug 06 11:35:55 2011
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =118
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production.
    Using parameter settings in client-side pfile /oracle/ora11g/apps/dbs/initrakshak.ora on machine abml01
    System parameters with non-default values:
    processes                = 700
    sga_max_size             = 30G
    sga_target               = 30G
    control_files            = "/barch10g_db/ora11g/rakshak_control/rkdatabase/control1/rakshak_control01.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_redo/rkdatabase/control2/rakshak_control02.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/control3/rakshak_control03.ctl"
    db_block_size            = 16384
    compatible               = "11.2.0"
    log_archive_dest         = "/barch10g_db/ora11g/rakshak_archive/rkdatabase/rakshak"
    db_recovery_file_dest    = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/flash_recovery_area"
    db_recovery_file_dest_size= 2G
    undo_management          = "AUTO"
    undo_tablespace          = "UNDOTBS1"
    sec_case_sensitive_logon = FALSE
    remote_login_passwordfile= "EXCLUSIVE"
    utl_file_dir             = "/barch10g_db/ora11g/ldoutput/"
    plsql_code_type          = "native"
    job_queue_processes      = 100
    cursor_sharing           = "FORCE"
    audit_file_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/adump"
    audit_trail              = "DB"
    db_name                  = "rakshak"
    open_cursors             = 700
    diagnostic_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/"
    Sat Aug 06 11:36:16 2011
    PMON started with pid=2, OS id=9648
    Sat Aug 06 11:36:16 2011
    VKTM started with pid=3, OS id=9657 at elevated priority
    VKTM running at (10)millisec precision with DBRM quantum (100)ms
    Sat Aug 06 11:36:16 2011
    GEN0 started with pid=4, OS id=9669
    Sat Aug 06 11:36:16 2011
    DIAG started with pid=5, OS id=9678
    Sat Aug 06 11:36:16 2011
    DBRM started with pid=6, OS id=9686
    Sat Aug 06 11:36:16 2011
    PSP0 started with pid=7, OS id=9697
    Sat Aug 06 11:36:16 2011
    DIA0 started with pid=8, OS id=9704
    Sat Aug 06 11:36:16 2011
    MMAN started with pid=9, OS id=9711
    Sat Aug 06 11:36:16 2011
    DBW0 started with pid=10, OS id=9713
    Sat Aug 06 11:36:16 2011
    DBW1 started with pid=11, OS id=9715
    Sat Aug 06 11:36:16 2011
    DBW2 started with pid=12, OS id=9717
    Sat Aug 06 11:36:16 2011
    LGWR started with pid=13, OS id=9719
    Sat Aug 06 11:36:16 2011
    CKPT started with pid=14, OS id=9721
    Sat Aug 06 11:36:16 2011
    SMON started with pid=15, OS id=9723
    Sat Aug 06 11:36:16 2011
    RECO started with pid=16, OS id=9725
    Sat Aug 06 11:36:16 2011
    MMON started with pid=17, OS id=9727
    Sat Aug 06 11:36:16 2011
    MMNL started with pid=18, OS id=9729
    Sat Aug 06 11:36:16 2011
    ORACLE_BASE from environment = /oracle/ora11g/home
    Sat Aug 06 11:36:40 2011
    alter database mount
    Sat Aug 06 11:36:44 2011
    Successful mount of redo thread 1, with mount id 3292194824
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: alter database mount
    Sat Aug 06 11:36:54 2011
    alter database open
    LGWR: STARTING ARCH PROCESSES
    Sat Aug 06 11:36:54 2011
    ARC0 started with pid=20, OS id=9743
    Sat Aug 06 11:36:55 2011
    ARC0: Archival started
    LGWR: STARTING ARCH PROCESSES COMPLETE
    ARC0: STARTING ARCH PROCESSES
    Sat Aug 06 11:36:55 2011
    ARC1 started with pid=21, OS id=9745
    Sat Aug 06 11:36:55 2011
    ARC2 started with pid=22, OS id=9747
    Sat Aug 06 11:36:55 2011
    ARC3 started with pid=23, OS id=9749
    ARC1: Archival started
    ARC2: Archival started
    ARC2: Becoming the 'no FAL' ARCH
    ARC2: Becoming the 'no SRL' ARCH
    ARC1: Becoming the heartbeat ARCH
    Thread 1 opened at log sequence 9
    Current log# 3 seq# 9 mem# 0: /barch10g_db/ora11g/rakshak_idx1/rkdatabase/redo3/rakshak_redolog3a.log
    Current log# 3 seq# 9 mem# 1: /barch10g_db/ora11g/rakshak_idx1/rkdatabase/redo3/rakshak_redolog3b.log
    Successful open of redo thread 1
    Sat Aug 06 11:36:55 2011
    SMON: enabling cache recovery
    Successfully onlined Undo Tablespace 2.
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    SMON: enabling tx recovery
    Database Characterset is WE8ISO8859P1
    No Resource Manager plan active
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Sat Aug 06 11:36:55 2011
    QMNC started with pid=25, OS id=9753
    Completed: alter database open
    Sat Aug 06 11:36:56 2011
    db_recovery_file_dest_size of 2048 MB is 0.99% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    ARC3: Archival started
    ARC0: STARTING ARCH PROCESSES COMPLETE
    Sat Aug 06 11:36:58 2011
    Starting background process CJQ0
    Sat Aug 06 11:36:58 2011
    CJQ0 started with pid=24, OS id=9768
    Setting Resource Manager plan SCHEDULER[0x2FF9]:DEFAULT_MAINTENANCE_PLAN via scheduler window
    Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter
    Sat Aug 06 11:37:01 2011
    Starting background process VKRM
    Sat Aug 06 11:37:01 2011
    VKRM started with pid=26, OS id=9770
    Sat Aug 06 11:41:55 2011
    Starting background process SMCO
    Sat Aug 06 11:41:55 2011
    SMCO started with pid=29, OS id=9920
    parameter list
    db_name='rakshak'
    +#memory_target=30G+
    processes = 700
    audit_file_dest='/barch10g_db/ora11g/rakshak_idx1/rkdatabase/adump'
    audit_trail ='db'
    db_block_size=16384
    db_recovery_file_dest='/barch10g_db/ora11g/rakshak_idx1/rkdatabase/flash_recovery_area'
    db_recovery_file_dest_size=2G
    diagnostic_dest='/barch10g_db/ora11g/rakshak_idx1/rkdatabase/'
    +#dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'+
    open_cursors=700
    job_queue_processes=100
    remote_login_passwordfile='EXCLUSIVE'
    undo_management='AUTO'
    undo_tablespace='UNDOTBS1'
    +# You may want to ensure that control files are created on separate physical+
    +# devices+
    control_files = '/barch10g_db/ora11g/rakshak_control/rkdatabase/control1/rakshak_control01.ctl','/barch10g_db/ora11g/rakshak_redo/rkdatabase/control2/rakshak_control02.ctl','/barch10g_db/ora11g/rakshak_idx1/rkdatabase/control3/rakshak_control03.ctl'
    compatible ='11.2.0'
    SGA_MAX_SIZE=30G
    SGA_TARGET=30G
    Utl_file_dir='/barch10g_db/ora11g/ldoutput/'
    sec_case_sensitive_logon=FALSE
    plsql_code_type=native
    cursor_sharing='FORCE'
    log_archive_dest='/barch10g_db/ora11g/rakshak_archive/rkdatabase/rakshak'
    If any information is needed, pls let me know.
    thanks in advance
    Regards
    Phani Kumar

    Phani  wrote:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.247.27)(PORT=1522)))Why use port 1522?
    It is always a good idea to use the standard ports for a network application. There is no logic in obfuscating ports for security purposes. It also makes network management and dealing with quality of service issues for example, much more complex if you do not stick to the registered application ports.
    Also note that if you provide a dotted IP address, only that address will be used for binding the tcp port as a listening end point. This means no connections will be accepted on localhost and other IP addresses of that server. Make sure that this is what is technically required.
    ifconfig
    bond6     Link encap:Ethernet  HWaddr 00:26:55:D3:02:B6
    Why are you using bonding? How many bonded interfaces are there and now many physical NICs? Bond6 alludes that it is the 7th bonded interface - and at 2 NICs per bonded interface it implies that your server has 14 physical Ethernet interfaces. Which I doubt is true.
    RX packets:1309675596 errors:5 dropped:0 overruns:0 frame:3Not good to see any errors. What does ethtool stats show? Also check that the physical interfaces are enabled for full duplex. Some Cisco switches do not negotiate it properly and the NIC could be running half duplex.
    Also - using bonding... does not seem right. The 1st and default bonded interface should be +/dev/bond0+ - and not bond6.
    Check the server's network configuration (the +ifcfg-*+ files in +/etc/sysconfig/networking-scripts+ directory). Suggest that you get a network engineer (or the like) to assist with reviewing the network setup of that server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

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

  • My iPod touch is downloading and updating apps very slow more than an hour.

    My iPod touch 4th gen 32gb verson 4.3.1 is downloading and updating apps very slow more than an hour. I just got it a day ago and I backed up all my apps music and pictures and videos from iTunes. Few months ago I had an iPod touch but I lost it and it was working fine. Luckily before I lost it i backed up everything to iTunes so now everything that was in my old iPod is now in my new iPod. Anyways, When I first bought it I straight away backed up everything and saw that i had many updates on my apps. I started updating it all at once but even the first one was not loading at all and mty ipod was hanging many times during the updates so i cancelled all the updates. i even tried it on my computer and it was taking forever but my laptop does updating and downloading apps slower than my ipod so that doesnt matter. Even when I download an app on my iPod now its take more that an hour. So i was wondering, is my iPod slow cause I backed up too many things when i just got it . I have about 120 apps 150 plus photos and 70 videos and I backed it up all in one night on the day i got my ipod. So now I'm restoring my iPod and updating it to IOS 5 and see what happens. Hopefully it will be faster then but I still need to know what is main problem of m iPod hanging and slow updating/downloading. Need a reply ASAP. Thanks

    Still you can switch it off while syncing.
    You can also do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears)

  • Newest security update is very slow to install

    Newest security software update is very slow to install  for MacBook Pro

    No man wait for it to complete....sometimes due to some reason it may take time if u shutdown in between download process then it is fine u can download again but if u shut down in betw the installing process then u may loose ur data and crash the system....better wait
    do reply cheers TGT

  • Update Process Very Slow in Oracle 8 which update bulk data

    Dear all
    i am just updating data through SQLsub-query,but i want to get to column from sub-query and need to update my source table, but there is problem is that through sub-query just return a single column while updating,but i don't wan't to re-type another query for another column due to performance issue.
    Also the other issued related performance is very slow,how should i fast update in bulk.
    Please suggest,
    Thanks

    Actually i am update time roster table with machine date, first i get from file & insert into Machine_table & then
    i make joing query & then update roster table which is like below.
    in roster table data consist 1 to last day of month of every employee.
    update roster a
    set (a.timein,a.timeout) = (select timein,timeout from machine_table mch
    where a.roster_date = mch.roster_date and a.person_id = mch.person_id);
    this query is updating around 7750 & it takes to much time.
    please help urgent thanks.

  • Oracle interview questions;; query very slow

    Hai
    Most of time in interview they ask..
    WHAT IS THE STEPS U DO WHEN UR QUERY IS RUNNNING VERY SLOW..?
    i used to say
    1) first i will check for whether table is properly indexed or not
    2) next properly normalized or not
    interviewers are not fully satisfied with these answers..
    So kindly tell me more suggestion
    S

    Also when checking the execution plan, get the actual plan using DBMS_XPLAN.DISPLAY_CURSOR, rather than the predicted one (EXPLAIN PLAN FOR). If you use a configurable IDE such as SQL Developer of PL/SQL Developer it is worth taking the time to set this up in the session browser so that you can easily capture it while it's running. You might also look at the estimated vs actual cardinalities. While you're at it you could check v$session_longops, v$session_wait and (if you have the Diagnostic and Tuning packs licenced) v$active_session_history and the various dba_hist% views.
    You might try the SQL Tuning Advisor (DBMS_SQLTUNE) which generates profiles for SQL statements (requires ADVISOR system privilege to run a tuning task, and CREATE ANY SQL PROFILE to apply a profile).
    In 11g look at SQL Monitor.
    Tracing is all very well if you can get access to the tracefile in a reasonable timeframe, though in many sites (including my current one) it's just too much trouble unless you're a DBA.
    Edited by: William Robertson on Apr 18, 2011 11:40 PM
    Sorry Rob, should probably have replied to oraclehema rather than you.

  • After 10.5.2 update, computer very slow

    Downloaded/installed update without incident. Microsoft Office programs are now very slow to open and very slow to perform certain tasks, like trashing an email. Emptying trash in the Finder sometimes works/sometimes doesn't. When it doesn't, I get a dialog box saying "You can't open Trash because Trash is being emptyed" or words to that effect. Force quitting hung aps usually does not work. It is sometimes possible to shut down or restart using the commands in the Apple menu but I've had to just power cycle the computer twice today when the commands didn't work. I tried verifying permissions but even that seemed to hang. Verifying the disk worked and it says the disk is ok. Any ideas on how to solve this? It almost feels like I've run out of memory but Activity Monitor says otherwise. Stumped.

    I had some of the exact same issues. After I installed the 10.5.2 update and noticed these issues, I ran Software Update again and found a "Leopard Graphics Update 1.0".
    http://www.apple.com/support/downloads/leopardgraphicsupdate10.html
    Once I installed this graphics update, my computer was back to normal.

  • Oracle HTTP JSP gets very slow on 9i

    PLateform : Windows 2000
    I have changed from Oracle 8i to Oracle 9i. Than I
    installed Oracle Chartbuilder from
    http://otn.oracle.com/software/tech/java/servlets/htdocs/utilsoft.htm
    On the 9i Apache this application runs very very slow
    It looks a little bit like he is compiling the jsp
    every time it is called.
    Does anybody know whats wrong or where I have to configure something ???
    Peter S.

    1. Are the database parameters the same on each of the systems (ie. LARGE_POOL_SIZE)? You may want to check on any potential bottlenecks during the restore by looking in V$BACKUP_SYNC_IO and V$BACKUP_ASYNC_IO.
    2. You can limit the amount of datafiles included in a backup set by setting the MAXSETSIZE parameter. Be careful not to set this value too low. If a datafile is bigger than MAXSETSIZE, then the backup will fail.

  • Oracle table insertion is very slow - Very Imp

    I have a oracle 9i db installed on Windows 2000 Adv. Server. Server is single processor ,2GB RAM.
    and I have a table is have one long raw field & 4 other fields. It contails 10k records. and table is indexed.
    I have an application is VB using ADOs I connected to Oracle db. I am saving binary file to long raw field. For me retreival is very fast and when i am inserting the record it is very slow. It is taking 4min for one record.
    Please help me to solve this issue

    Is it possible for your capture the execution plan, as well as session wait events?
    If you have buffer busy waits, and not using ASSM (Automatic Segemtn Storage Management), playing with free list also helps.
    Jaffar

  • 11g response is very slow

    Hi
    We have Oracle RAC 11g2 in windows 2008R2 in two nodes and application 6i an 10g
    We use DNS and Scan name resolve to three IP address
    for the 10g the operation is acceptable but for 6i is very very slow
    any idea!

    srsatya wrote:
    What is the SGA of the DB, I had the same problem, when increased the SGA it was fine. In our case we upgraded DB from 10.2.0.5 to 11gr2, it need min 3gb SGA to quicker response.And why did a larger SGA seemingly resolved your problem? Any ideas?
    Do you know that a larger SGA (and thus larger Shared Pool) can actually worsen performance when the system deals with non-bind SQL parsing? Instead of increasing the db buffer cache and increasing potential logical I/O and providing associated performance gains?
    Dealing with performance is more than pushing buttons and turning knobs until it is "better"... and then blindly suggested that as a solution for all performance problems.
    How about reading Oracle® Database Performance Tuning Guide? And pay special attention to +1.1.2.3 The Symptoms and the Problems+:
    >
    A common pitfall in performance tuning is to mistake the symptoms of a problem for the actual problem itself. It is important to recognize that many performance statistics indicate the symptoms, and that identifying the symptom is not sufficient data to implement a remedy

  • Wsus 6.3 - Server 2012 R2 - Update downloads very slow - no proxy is use

    I have WSUS 6.3.9600.16384 installed on Server 2012 R2 and downloads are very slow, < 500 Kbps.
    A proxy server is not in use and updates are downloading, but very slowly.
    Plenty of BW available, consistent 60 Mbps internet download speed test results.
    Current download setting is set to "on approval".
    Has anyone had a similar problem and hopefully found a solution?

    Am 03.04.2015 schrieb Joel-L:
    Download operation is successful so I do not believe there is a problem with HTTP 1.1. range requests through my firewall.  I would have tried KB anyway but none of the "*SQL.EXE" programs are on my 2012 R2 system so I was unable to try it.
    Resolution 1 i wrote.
    http://support.microsoft.com/en-us/kb/922330 You can install a SQL Server Management Studio, connect to your WID and can run this Query:
    UPDATE [SUSDB].[dbo].[tbConfigurationC] SET BitsDownloadPriorityForeground=1
    Servus
    Winfried
    Gruppenrichtlinien
    HowTos zum WSUS Package Publisher
    WSUS Package Publisher
    HowTos zum Local Update Publisher
    NNTP-Bridge für MS-Foren

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

  • Update Query very slow

    Hi All
    I have three setups on which i have to run same query which is mentioned below. The execution plan on all three setups is same for the mentioned query. Still in one of the setup the query is taking almost 8 Hrs to complete. while in rest 2 setups it takes 2 Hrs to complete. The Ram Available for the setup is Same(16 GB). I tried to increase yhe SGA size but not got the expected results. i do not have DBA support for the same. I have also analysed and changed the parameter Index_OPtimizer_cost and made sure vthat this parameter is same for all three setups.
    The main problem is i can not modify the query as it is been generated during on the processes. But as mentioned earlier the query generated on all three setup is same. I also changed log_buffer_size. The query is :
    UPDATE /*+ BYPASS_UJVC */ ( SELECT Main Table_name.n_exp_covered_amt_irb AS T0 , CASE WHEN COND0 = 0 THEN BP0 ELSE BP1 END AS T1 FROM Global temp table , Main Table Name WHERE Main Table Name.n_gaap_skey=Gloabl Temp table.n_gaap_skey AND Main Table Name.n_run_skey=Gloabl Temp table.n_run_skey AND Main Table Name.n_acct_skey=Gloabl Temp table.n_acct_skey AND Main Table Name.fic_mis_date=Gloabl Temp table.fic_mis_date) SET T0 = T1
    Indexes are same on the All three setups also one index is present for the column name mentioned in the where clause of the query.
    The oracle version used is 10.0.1.0 in first setup in second setup i am using 10.0.2.0 and in third setup it's 10.0.4.0. The query is taking time where 10.0.2.0 version is installed.
    When i have looked in to the session while the query e=was executing SORT OUTPUT was taking most of the time.
    Thanks in Advance. It's very critical for me to get it resolved.Any suggestions are extremely welcome.

    Hi,
    please check the indexes on the colums of table where sort is happening. if indexes are not there then create it or rebuilt it. also the sql tuning advisor
    recommendation in dbconsole.
    thanks

  • After OS X update loading very slow.

         Hello , i'm new here - my first problems with my mb(late 2009 edition).
    my first problem - after i reinstalled my snow leopard(2 days ago) it was fast (15 -20 seconds to load it up ). after i updated via ( Software Update 10.6.7) it takes ages to load.  usualy almost 2 mins or so... atm no additional apps are instaled just starcraft2 and pixelmator.
    my second problem - after i load it up starcraft2. it's working normaly in the main menu and b.net game lobby. Problems apear only when actual game starts. first 1 - 3 mins is ok after that , persistent freezout's. freezout for a ~0,5 second and it repeats after 1 or 2 seconds again for 0,5 sec freeze. and it usualy can be for entire game. visual and sound settings are all low. this problem occured only after i reinstalled os.
    What actions i did take ? Run disk utilities thats all, dont know what to do more ,
    btw my Safe mode just wont start up tried to to press Shift after starting sound , tried (option , cmd , p , r) wait for 3 sounds(didn't work) and then shift combination didn't work either.
    Btw sorry for my bad english isn't my native language .

    I have noticed something similar on my Win7x64 system, but am not able to reliably reproduce it. It seems, for me at least, to be a combination of +Clarity and Lens Profile Correction which will always trigger an observable screen redraw when moving from segment to segment in 1:1 view mode. The variable is the delay.....most often it's a fleeting effect, but occasionally there's a more obvious delay in redrawing the image display. I suspect the more obvious delay is, in addition to the +Clarity and Lens Correction, some internal resource utilisation over a longer Lightroom session....certainly every time I've encountered it a Lightroom restart has cleared it up.
    Don't know it that helps, or gives you any pointers to reducing the impact. Because of another "issue" with Lens Corrections (when it's applied, Spot Removal work gets slower), I tend to apply it last of all when editing pictures....so that also helps avoid this 1:1 screen redraw problem.

Maybe you are looking for

  • Install JDK 1.5.0.08 on SUSE 10.1

    HELP! I ran the installer in bash and it said it completed successfully; however, when I type: java -version I still get the following: java version "1.4.2" gij (GNU libgcj) version 4.1.0 (SUSE Linux) Copyright (C) 2006 Free Software Foundation, Inc.

  • Deleted order reappeared

    Hi,          We have a background job with program delete_pp_order, that deleted a PPDS output firmed planned order and sends the deletion to R/3. I can see the planned order and qty. in the spool of the job. Now when I looked at the product view,it

  • What are the 3 openings for on the upper front of the phone

    I have been on the phone for over an hour trying to find out what the upper opening on the front of the iPhone 4s is. Please help.

  • IOS 5 overwriting original photo when saving edits

    I've recently upgraded to an iPhone 4S running iOS 5 and I think I've found a bug in the Photos app. When a photo is edited and saved in the Photos app, the original photo is overwritten. I've seen this behavior on three AT&T iPhones (a 4S and two 4s

  • Unable to install maverick update

    HI, I am using a 13" macbook pro 2.3 Ghz intel core i5 which is about 3 yrs old and am currently using 10.9.3. Today it said that maverick software updates are available for my machine but when i try to install, I get a message which reads "Can't loa