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.

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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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 );

  • Forms 6i is not connecting with Oracle 11g database?

    Forms 6i is not connecting with Oracle 11g database?
    How to resolve this issue?

    Hi,
    Once you installed the Forms and Reports, you need to configure the paramters like tnsnames.ora in you path.
    There will be one folder in the Installation path of Forms and Reports search for tnsnames.ora file..and you need to Updated the file as per the which ORACLE Server you are connecting and then try.. it..
    Default path for forms will be "ORACLE_HOME/net80/admin".. search for tnsnames.ora and modify it..
    - Pavan Kumar N

  • Displaying Chinese Character in Oracle Form 6i using Oracle 11g Database

    Hi,
    Please, can anyone send me the solution for displaying the Chinese characters in Oracle Form 6i using Oracle 11g database and also
    the configuration that has to be implemented.Its urgent.
    Thank You,
    Sridhar.T

    displaying the Chinese characters in Oracle Form 6i using Oracle 11g database I'm afraid you might have problems... see Implementing Chinese language in Oracle 11g

  • Oracle Tuxedo 8.1 With Oracle 11g Database

    Hi,
    I have an old application that must be compiled with oracle 8.1 and Oracle9i Database.
    We are migrating to Oracle 11g Database, and now we have some inssues to compile with Oracle 11g Database. For example some Libraries that the Tuxedo XA Resource Manager needs from the Oracle Database, that just u can found on older versions like Oracle9i (kpudfo.o file).
    what can be the solution for that problem?
    An Oracle 11g database config or a Tuxedo config ?

    Hi,
    When you say "Tuxedo XA Resource Manager" I'm not sure what you are referring to. Do you mean the Tuxedo transaction management servers (TMS) servers that are built with the buildtms command? If so, if there are linking errors, it has to do with either your library paths or the RM definition for Oracle Database in the $TUXDIR/udataobj/RM file. Tuxedo itself only uses the XA switch from the resource manager such as Oracle database. Now the resource manager may require a bunch of libraries, which is why I suggested you check your library path. If the above doesn't help, can you post the error you are getting and what is generating/creating the error?
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Which latest web logic server compatible with oracle 11g database

    which latest web logic server compatible with oracle 11g database >is weblogic server 12c is compatible with oracle 11gR2

    current environment= forms and reports 10g and database 10gR2,os windows 32-bit.
    wants to implement and configure as below:
    server1: web-logic server 12c with forms and reports upgrade from 10g to 11g where os 64-bit windows.
    server2: upgrade and migrate  from 10gR2 11gR2 from windows xp to windows 2008-R2.
    how to achieve this.what step should perform first.

  • Oracle 10g developer suite and oracle 11g database.

    Hi all,
    I have installed oracle 11g database and oracle developer suite 10g on Vista . I want to connect 11g database using oracle forms builder data block wizard to create forms. I'm new to oracle forms . I was just following some tutorial instructions and try to achieve it, but unable to connect 11g database. Can anyone help me out.
    I dont even know whether this is the right area to post this query as i cant find any developer tool installation guide questions.
    Thanks,
    Kalyan
    Edited by: user10676396 on May 6, 2009 7:37 PM
    Edited by: user10676396 on May 6, 2009 7:43 PM

    Hello Kalyan,
    A couple questions:
    1. Once you installed the 11G database, you did start the database services, yes?
    2. Do you have a properly configured TNSNAMES.ORA file that points to your database?
    3. You created a database that you are using and can access the database via SQLPlus?
    Don.

  • Oracle 11G database and Application Server installed on same server

    What are the pros and cons installing Oracle 11G database and Oracle Application Server (Forms and Reports) on the same server?
    Thank you in advance, Sonya

    Some may want their data in a separate network zone for security reasons.
    It also depends if it is the same people that do maintenance on db and appserver.
    It is lower cost with one server, and only 1 Os to set up.

  • What should i do with an Oracle 11g Database, MySQL database and a dump file.

    I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
    My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
    So the quest is converting Oracle Database to MySQL database.
    Of course i cant try to convert it in the main Database, so i create one Oracle 11g Database on my LocalHost, and it already actived in " Localhost:1158 " etc.
    I have another Sever test that already set up MySQL database, and a dump file from the system.
    So I want to ask these 2 questions :
    1. How to create an new Oracle Database from that dump file ?
    2. Is it alright if i use tool to convert Oracle Database into MySql, or i should do it manually ?
    Thanks alot.

    I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
    My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
    So the quest is converting Oracle Database to MySQL database.
    I predict that converting to MySQL will cost your company more as it expands. As you expand managing contention becomes more important - Oracle does this for you. I do not think MySQL does, so you'll have to write more code to deal with this, costing the company money. A big part of making application scalable and reliable is to use stored procedures, how good are MySQL's compared to PL/SQL's. What other features are there that MySQL has that will benefit your company that Oracle doesn't. What do you need to think about as your company expands that need to be taken care of in the database. I would have thought a migration from MySQL to Oracle would be more common to deal with expansion.
    As you know "NOTHING" you need to think about what each database can give you for the next 10 years to cope with you businesses potential requirements, and extimate how much it will cost to implement these requirements, then make the decision

  • What are the privileges required for explain plan in Oracle 11g database

    I am facing the problem in doing a explain plan for a view in Oracle 11g database. When I select from the view like this:
    select * from zonewisearpu
    It does a select on the view but when I give explain plan like
    explain plan for
    select * from zonewisearpu
    I get the error like insufficient privileges.
    Please let me know if things are getting missed out as I guess system level privileges are required to execute this.
    I hope, my question is clear.
    It’s a humble request to revert urgently if possible as I need to complete a task and do not know the way out.
    Regards

    975148 wrote:
    Thanks for your reply. I have found out that an explain plan is possible on the user's own objects and is not possible on the granted objects from a different schema. For eg, if I do a explain plan on a view querying on tables from a different view, it would not allow the explain plan to proceed. This could mean that explain plan needs different privileges than just a select.
    Requesting for a revert to this.
    Here is a simple test case that I have perfomed
    SQL> create user test1 identified by test1;
    User created.
    SQL> create user test2 identified by test1;
    User created.
    SQL> grant connect, resource to test1,test2;
    Grant succeeded.
    SQL> create table test1.tab1 as select * from v$session;
    Table created.
    SQL> connect test2/test1
    Conencted.
    SQL> show user
    USER is "TEST2"
    SQL>
    SQL> explain plan for
      2  select sid,serial#,status,username from test1.tab1 where username<> '';
    Explained.
    SQL>
    So, as can be seen I am able to do a explain plan from user test2 for tables belong to user test1.
    As far as privileges are concerned, following is the list
    SQL> select * from dba_role_privs where grantee in ('TEST1','TEST2') order by 1;
    GRANTEE                        GRANTED_ROLE                   ADM DEF
    TEST1                          CONNECT                        NO  YES
    TEST1                          RESOURCE                       NO  YES
    TEST2                          CONNECT                        NO  YES
    TEST2                          RESOURCE                       NO  YES
    SQL>
    SQL> select grantee,owner,table_name,privilege from dba_tab_privs where grantee in ('TEST1','TEST2') order by 1;
    GRANTEE    OWNER      TABLE_NAME           PRIVILEGE
    TEST2      TEST1      TAB1                 SELECT
    SQL>
    SQL>  select * from dba_sys_privs where grantee in ('TEST1','TEST2') order by 1;
    GRANTEE    PRIVILEGE                      ADM
    TEST1      UNLIMITED TABLESPACE           NO
    TEST2      UNLIMITED TABLESPACE           NO
    SQL>

  • How to monitor oracle 11g database sessions on Windows 2008 server?

    Hi Experts
    How to monitor the Oracle 11g database sessions on Windows 2008 server (other than SQL Developer tool), which procedure or query is taking more time with Java application.

    Recently i found this tool- myorasql on the net to monitor the performence of database, easy to setup and check the performence.  i never tested it but seems impresive.  It is free and i think it would be use ful to you.
    http://myorasql.com/
    You can also use Quest - Toad or sqlplus if you are very good at sql commands and all dictionary tables or OEM/EM grid if it is configured .

  • Oracle 11g Database Configuration Assistant Hangs At 45% During 1st Install

    Platform: Windows Vista 64 Bit Version
    Downloaded: Oracle 11g Database 64 Bit
    Service Pack 1
    Greetings to all my Oracle Seniors. I have been attempting in vain to install the Oracle 11g database software package fully. I was able to complete the initial installation and made it to the second recommended action which was the Database Configuration Assistant operation. After 3 attempts, the progress bar stalled at 45%. I tried to look at the log file cfgtoologs (cloneDBCreation, and CloneRmanRestore), but it said that I didn't have permission. My pre-check cleared OK on everything. So, please direct me as to how to correct this issue.
    Thanks
    Preston
    System Integrator

    Well, that is not much of an option right now. I discovered that I have to reinstall the XP Pro OS after attempting the 11g installation 4 times and the install always stalled at 69% during the initial installation. I did have Windows Service Pack 3 installed on the system. I down graded and added 1 G of additional memory and checked the pre-check with no problem. But, the install continued to stall at 69%. So, and, yet, here we are.
    Now in regards to the metalink notes, I am new to the forum, so I don't know my way around quite yet. Isn't the metalink the paid suppport option? If so, I don't have that access.

  • Difference btween oracle 10G database & oracle 11G database

    Hi
    i have a web application have 10G database engine, now i will upload it on a host server witch supports oracle 11G database.
    can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.
    what can i do?
    please suggest me
    thank you

    Hi,
    Difference btween oracle 10G database & oracle 11G database Here is a complete list:
    http://www.dba-oracle.com/oracle11g/oracle_11g_new_features.htm
    can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.Yes. Oracle supports backward compatibility . . .
    You mght not, however do it the other way . . .
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/t_oracle_tuning_book.htm
    "Time flies like an arrow; Fruit flies like a banana".

  • I am trying to connect oracle develper suit form with oracle 10g database

    i am trying to connect oracle develper suit form with oracle 10g database
    but when i pass username and password
    this message apperars
    ORA-12560:TNS:protocol adapter error
    every time even i try to connect Report or Designer each time same problem
    making no connection .
    can any body help can help me to reslove this prblem
    Arshad khan

    Duplicate thread:
    Re: connection problem

Maybe you are looking for