Invalid SQL command after upgrading to Oracle 9i

After upgrading to Oracle 9i, the SQL queries in some of our existing reports are no longer valid.  The Oracle error returned is "old style outer join () can not be used with ANSI joins". It appears that the SQL query generated by Crystal Reports is correct in that it uses "LEFT OUTER JOIN" instead of just naming the tables separated by a comma, but it also includes the "()" qualifer on the matching columns which is no longer allowed.  Is there any way to overcome this error short of rewriting the reports based on a command?

Hello,
A couple suggestions come to mind.
Business Objects tend to take problematic SQL generation very seriously at least on the SQL and Oracle platforms (due to their widespread use) and I would first grab the latest database/engine hotfixes to be certain it hasn't been tracked and corrected already. If you can clearly reproduce this issue (sounds like you can) then it should be easy to convince the support team at BOBJ to track the issue. However...
Since their hotfix release cycle is rather slow especially for items that have workarounds (even sometimes painful workarounds) you may want to consider using a Stored Procedure instead of a Command.
Commands have a notorious history of issues/limitations that tend to burn you later - especially when you have to update many reports. A stored procedure would likely render the + qualifier a moot point.
Cheers, Dylan
<p><strong>Dylan Lopez - </strong>604.628.4467 </p><p>Previously: Microsoft .NET Resource in Developer Support @ Business Objects</p><p>Currently: Principal @ Inno Software Inc / Independent Contractor Group</p>

Similar Messages

  • SQL slow after upgrading to Oracle Database 10g Enterprise Edition Release

    Hi all:
    We have recently upgraded our database from Oracle9i Enterprise Edition Release 9.2.0.6.0 to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    After that we found that our some sql getting very slow
    for example query with 9i showing result in 4 seconds while in 10g showing result in 28 seconds.
    Following is the execution plan of my query in Oracle9i
    Operation     Object     PARTITION_START     PARTITION_STOP     COST
    SELECT STATEMENT ()                    9458
    NESTED LOOPS ()                    9458
      SORT (UNIQUE)                    
       INDEX (RANGE SCAN)     BL_EQ_PK_N               2
      VIEW ()     CONTAINER_INFO               2
       UNION-ALL (PARTITION)                    
        TABLE ACCESS (BY INDEX ROW     SERVICE_EVENTS               1
         NESTED LOOPS ()                    11
          NESTED LOOPS ()                    10
           NESTED LOOPS (OUTER)                    9
            NESTED LOOPS ()                    8
             NESTED LOOPS ()                    7
              NESTED LOOPS ()                    6
               NESTED LOOPS ()                    5
                NESTED LOOPS ()                    4
                 NESTED LOOPS (OUT                    3
                  TABLE ACCESS (BY     EQUIPMENT_USES               2
                   INDEX (UNIQUE S     EQUSE_PK               1
                  TABLE ACCESS (BY     SHIPPING_LINES               1
                   INDEX (UNIQUE S     LINE_PK               
                 INDEX (UNIQUE SCA     EQHT_PK               
                TABLE ACCESS (BY I     EQUIPMENT_TYPES               1
                 INDEX (UNIQUE SCA     EQTP_PK               
               TABLE ACCESS (BY IN     EQUIPMENT_SIZES               1
                INDEX (UNIQUE SCAN     EQSZ_PK               
              TABLE ACCESS (BY IND     SHIP_VISITS               2
               INDEX (RANGE SCAN)     SVISIT_UK               1
             TABLE ACCESS (BY INDE     SHIPS               1
              INDEX (UNIQUE SCAN)     SHIP_PK               
            TABLE ACCESS (BY INDEX     CARE_VIR_MAP               1
             INDEX (UNIQUE SCAN)     VIR_VESVOY               
           TABLE ACCESS (BY INDEX      EQUIPMENT               1
            INDEX (RANGE SCAN)     EQ_EQUSE_FK               
          INDEX (RANGE SCAN)     SEVENTS_EQUSE_FK_N               
        NESTED LOOPS ()                    7
         NESTED LOOPS ()                    6
          NESTED LOOPS ()                    5
           NESTED LOOPS ()                    4
            NESTED LOOPS (OUTER)                    3
             TABLE ACCESS (BY INDE     EQUIPMENT_USES               2
              INDEX (UNIQUE SCAN)     EQUSE_PK               1
             TABLE ACCESS (BY INDE     SHIPPING_LINES               1
              INDEX (UNIQUE SCAN)     LINE_PK               
            INDEX (UNIQUE SCAN)     EQHT_PK               
           TABLE ACCESS (BY INDEX      EQUIPMENT_TYPES               1
            INDEX (UNIQUE SCAN)     EQTP_PK               
          TABLE ACCESS (BY INDEX R     EQUIPMENT_SIZES               1
           INDEX (UNIQUE SCAN)     EQSZ_PK               
         TABLE ACCESS (BY INDEX RO     EQUIPMENT               1
          INDEX (RANGE SCAN)     EQ_EQUSE_FK               and following is my query plan in Oracle 10g
    Operation     Object     PARTITION_START     PARTITION_STOP     COST
    SELECT STATEMENT ()                    2881202
    NESTED LOOPS ()                    2881202
      SORT (UNIQUE)                    2
       INDEX (RANGE SCAN)     BL_EQ_PK_N               2
      VIEW ()     CONTAINER_INFO               2881199
       UNION-ALL ()                    
        NESTED LOOPS (OUTER)                    2763680
         NESTED LOOPS ()                    2718271
          NESTED LOOPS ()                    2694552
           NESTED LOOPS ()                    2623398
            NESTED LOOPS (OUTER)                    2623380
             NESTED LOOPS ()                    2393965
              NESTED LOOPS ()                    2393949
               NESTED LOOPS ()                    2164536
                NESTED LOOPS ()                    1706647
                 NESTED LOOPS ()                    854120
                  TABLE ACCESS (FU     BL_EQUIPMENT               1515
                  TABLE ACCESS (BY     EQUIPMENT_USES               1
                   INDEX (UNIQUE S     EQUSE_PK               1
                 TABLE ACCESS (BY      EQUIPMENT               1
                  INDEX (RANGE SCA     EQ_EQUSE_FK               1
                TABLE ACCESS (BY I     EQUIPMENT_TYPES               1
                 INDEX (UNIQUE SCA     EQTP_PK               1
               TABLE ACCESS (BY IN     EQUIPMENT_SIZES               1
                INDEX (UNIQUE SCAN     EQSZ_PK               1
              INDEX (UNIQUE SCAN)     EQHT_PK               1
             TABLE ACCESS (BY INDE     SHIPPING_LINES               1
              INDEX (UNIQUE SCAN)     LINE_PK               1
            INDEX (RANGE SCAN)     SEVENTS_TSERV_FK_N               1
           TABLE ACCESS (BY INDEX      SHIP_VISITS               2
            INDEX (RANGE SCAN)     SVISIT_UK               2
          TABLE ACCESS (BY INDEX R     SHIPS               1
           INDEX (UNIQUE SCAN)     SHIP_PK               1
         TABLE ACCESS (BY INDEX RO     CARE_VIR_MAP               2
          INDEX (UNIQUE SCAN)     VIR_VESVOY               1
        NESTED LOOPS (OUTER)                    117519
         NESTED LOOPS ()                    98158
          NESTED LOOPS ()                    78798
           NESTED LOOPS ()                    78795
            NESTED LOOPS ()                    59432
             TABLE ACCESS (FULL)     EQUIPMENT_USES               20788
             TABLE ACCESS (BY INDE     EQUIPMENT_TYPES               1
              INDEX (UNIQUE SCAN)     EQTP_PK               1
            TABLE ACCESS (BY INDEX     EQUIPMENT               1
             INDEX (RANGE SCAN)     EQ_EQUSE_FK               1
           INDEX (UNIQUE SCAN)     EQHT_PK               1
          TABLE ACCESS (BY INDEX R     EQUIPMENT_SIZES               1
           INDEX (UNIQUE SCAN)     EQSZ_PK               1
         TABLE ACCESS (BY INDEX RO     SHIPPING_LINES               1
          INDEX (UNIQUE SCAN)     LINE_PK               1can somebody help me regarding this?
    Thanks
    Hassan

    I would say ..gather stats on 9i/10gfor the required table and indexes , then post the expalin plan.
    --Girish                                                                                                                                                                                                                               

  • Note 1054131 - Invalid DB objects after upgrade

    HI,
    We performed a migration from SAP 4.6C/Oracle9i.solaris to SAP 4.6C/Oracle10g/HPUX.
    Now we need to upgrade SAP4.6C/Oracle10g/HPUX to ECC6.0.
    As a prerequisite, I have checked the note
    Note 1054131 - Invalid DB objects after upgrade
    And I ran the script
    SQL> SELECT OWNER, OBJECT_NAME, OBJECT_TYPE FROM DBA_OBJECTS
      2  WHERE STATUS='INVALID'
      3  AND
      4  OWNER='SYS';
    OWNER
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    SYS
    DBMS_REPCAT_FLA
    PACKAGE BODY        INVALID
    SYS
    DBMS_REPCAT_MAS
    PACKAGE BODY        INVALID
    OWNER
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    SYS
    DBMS_REPCAT_UTL2
    PACKAGE BODY        INVALID
    SYS
    DBMS_REDEFINITION
    OWNER
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    PACKAGE BODY        INVALID
    All the invalid objects are package body, can anyone help me how to proceed with this, can I proceed my upgrade to ECC 6.0 or do I need to delete the package body.
    If I want to delete the package body,can you pl give me the commands and also post which whether I need to execute any steps
    Pl help
    Thanks
    Senthil

    Hi,
    I guess you are talking about the Oracle Upgrade and not ECC Upgrade, as following are the pre-requisites for an ECC upgrade.
    Making Database-Specific Preparations for Oracle
    1. Check the value of parameter shared_pool_size:
    4 Preparation
    Making Preparations at the Database Level
    Oracle 9.2: Check the value in file $ORACLE_HOME/dbs/init<SID>.ora.
    Oracle 10.1 and higher:
    select NAME, VALUE from v$parameter where name=’shared_pool_size’;
    select NAME, VALUE from v$parameter where name=’shared_pool_reserved_size’;
    If the value is lower than 150 MB, increase it to at least 150 MB (400 MB is better), and restart the
    database.
    2. Log on as user <sapsid>adm at the operating system level.
    3. Log on to the database as the Oracle user system with sqlplus
    4. Check the resource quotas of the database user SAPR3 or SAP<SAPSID>:
    Oracle error 1536 can occur during the upgrade if the resource quotas of database user SAPR3
    orSAP<SAPSID> are limited. Make sure that these quotas are unlimited. Check whether the table
    DBA_SYS_PRIVS contains one of the following entries:
    grantee=’SAPR3/SAP<SAPSID>’,privilege=’UNLIMITED TABLESPACE’,adm=’YES’
    grantee=’SAPR3/SAP<SAPSID>’,privilege=’UNLIMITED TABLESPACE’,adm=’NO’
    To do this, enter the following SQLPLUS statement:
    select * from dba_sys_privs where grantee = ’SAPR3/SAP<SAPSID>’;
    If this entry does not exist, enter the SQLPLUS statement:
    grant unlimited tablespace to sapr3/SAP<SAPSID>;
    5. Log off from the database with the command quit.
    6. Only if using the dictionary managed tablespaces function:
    Make sure that the storage parameters MAXEXTENTS and NEXT have the correct values for certain tables and indexes. Otherwise, they may overflow during the upgrade. The Oracle-specific upgrade SAP Note contains the tables and the required minimum values.You can display the current settings with BRSPACE. The index names are not constant. However, you can also determine these names with BRSPACE. SAP Note 11777 describes how to change the parameters NEXT and MAXEXTENTS.
    7. Only valid for: SAP R/3 3.1I
    Make sure that parameter OPTIMIZER_MODE is set to OPTIMIZER_MODE=RULE.
    For Oracle 9.2, check and, if necessary, edit the following Oracle profile:
    $ORACLE_HOME/dbs/init<SAPSID>.ora
    For Oracle 10.1. and higher, use the following statements:
    Sqlplus /nolog
    Connect /as sysdba
    Alter system set OPTIMIZER_MODE=’RULE’ scope=spfile;
    8. Only if you do not switch off archiving during the upgrade:
    If you want to leave brarchive running during the upgrade to avoid archiver stuck situations (brarchive -f ...), proceed as follows:
    a) Create a temporary copy of brarchive:
    4 Preparation
    4.23 Making Preparations at the SAP System Level
    cp /usr/sap/<SAPSID>/SYS/exe/run/brarchive /tmp
    b) Start brarchive as user ora<sapsid> from the temporary directory /tmp/brarchive -f ...
    c) After the upgrade, delete the copy of brarchive.
    This procedure avoids upgrade errors caused by the program files being overwritten during the upgrade.
    9. If your database version is already higher than the minimum version for the new release, we recommend that you exchange the DBA tools (such as BRSPACE) for the upgrade. The Database Software Oracle DVD for the database contains the up-to-date tools that you unpacked on the current kernel when you migrated the database. After you execute PREPARE, unpack this archive again into the exe subdirectory of the upgrade directory. This overwrites the DBA tools optimized for the minimum required database version with the tools best suited to your database version.
    And if you are talking about an Oracle Upgrade then you just need these to compare once you have upgraded to 10g.
    3.9 Checking for Invalid Database Objects
    This optional step lets you check if there are any invalid database objects before the database upgrade to Oracle database 10g starts. After the upgrade it helps you distinguish database objects that have become invalid due to the upgrade process from those that were already invalid to start with.
    Procedure
    1. Execute the following commands:
    SQL> spool invalid_objects
    SQL> select unique object_name, object_type, owner from dba_objects where status
    = 'INVALID';
    SQL> @?/rdbms/admin/utlrp.sql
    SQL> select unique object_name, object_type, owner from dba_objects where status
    = 'INVALID';
    SQL> spool off
    A list of invalid objects before the upgrade is now generated.
    2. Check the list of invalid objects after the upgrade.
    If any objects in the list from before the upgrade are also in the list of invalid objects after the upgrade, you can be sure that this is not due to the upgrade process.
    Regards,
    Suhas

  • Password problem in oracle 10g after upgrading from oracle 9i

    Hi to all,
    i'm migrating oracle 9i to oracle 10g. in oracle 9i username/password are same character(eg kareem/kareem)
    after upgrading to oracle 10g will it create any problem. Because in oracle 10g the condition is when creating user is username and password should not contain same character (kareem/kareem not allowed).
    Thanks in advance

    in oracle 10g document, they have mention below condition to create user. See the second condition.
    • Passwords must be between 4 and 30 characters long.
    • Passwords cannot be the same as the user name.
    • Passwords must be from the database character set and can include the underscore (_), dollar ($), and pound sign (#) characters.
    • Passwords cannot be Oracle reserved words.
    • Don't start the password with a numeral.
    • Don's use change_on_install or manager as passwords, since they are used by Oracle.
    As i'm going to upgrade oracle 9i to 10g. if it give problem because username and password are same then i have to request my development team to change the password in their application.Can you please verify and tell me.
    Edited by: user7071421 on Sep 25, 2008 4:33 AM

  • Any performance gains after upgrade to Oracle 10 ?

    Hello,
    we have been using EBS 11.5.9 (with Oracle 9). Does anybody see any improvements from performance point of view after upgrade to Oracle 10r2 (but without upgrade of EBS to R12) ?
    Regards

    Somethings have been faster for us and somethings have been slower. In general it seems the same or better. When we get a chance to look at the jobs that are performing poorly I'm sure we will be able to make them perform. Make sure you find and apply all of the performance patches for the modules you have implemented, we are missing one right now and it is hurting our Configurator developers instance. I have actually set the the optimizer_features_enable back to 9i. This is something I would not recommend doing in a production environment, and we are only doing it until we can get the patch that fixes the optimizer in 10g applied.
    One surprise for us was the increase in memory required, in our test and development instances we have found a 1GB SGA is as small as you can go with 10g and still have reasonable performance. We had a number of 9i ebus databases around 300-400MB SGA that performed just fine. This limited the number of environments we could squeeze on a single server (not really a bid deal if you only have a few dev, test and training environments).
    In our production environment in order to have the same size datacache more memory was consumed. Were we could get away with a shared pool of 4GB under 9i, it grows to over 6GB in 10g. Looks like more PGA is also being used. 10g along with RUP5 and upgrading the java from 1.3 to 1.5 has increased our memory consumption. We increased memory from 64GB to 96GB and we are using a large portion of the additional 32GB. We were right at the limit with 64GB in our 9i production instance but we had never experienced the paging that we did with 10g. Now at 96GB we nolonger see any paging.

  • Issues after Upgrade from Oracle 10.1.0.5 to 10.2.0.5 in Windows Server2003

    Good Morning Good People,
    I have run in to some issues after upgrading my 10.1.0.5 database to 10.2.0.5. Initially after the firtst upgrade from 10.1.0.5 to 10.2.0.0 one has to run Critical Patch set 4 to get to 10.2.0.5. Well after initial up grade everything worked fine. I could connect to the database from within the server as well as remotely through SQL*PLUS client. However, after completeing the patch I'm still able to connect to the database from within the server, but remotely i get the following error:
    ORA-12514 : TNS Listener does not currently know of service requested in connect descriptor.
    I also get Error ORA-12505: TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: (description=(address=(host=mcquery2)(protocol=tcp)(port=1521))(connect_data=(sid=mcquery)(server=dedicated)))
    I've tried serval different things to trouble shoot the issue but nothing seems to work.
    If anyone has run into s similar issue please help. This is ruining my weekend! LOL!
    Edited by: user10835577 on Aug 29, 2010 9:15 AM

    From the client or the server?
    SERVER:
    tnsnames.ora:
    MCQUERY=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=10.36.27.184)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVICE_NAME=MCQUERY)
    listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.36.27.184)(PORT = 1521))
    FROM REMOTE SQLPLUS Client:
    tnsnames.ora
    MCQUERY=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=10.36.27.184)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVICE_NAME=MCQUERY)
    listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Client_3)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cotsdot370.cotsdot.dom)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.36.27.184)(PORT = 1521))
    Thanks,
    Malcolm
    Edited by: user10835577 on Aug 29, 2010 12:01 PM

  • Issue  after upgrade from oracle 10.2.0.4 to 11g (11.1.0.6.0)

    hello
    After upgrade to 11g we have problem with dbms_workload_replay package it has error Error(1): PLS-00753: malformed or corrupted wrapped unit in body and can't be compiled . It is wrapped so we can't find error. We run utlrp.sql but no results.
    Any idea ??
    THX

    Then it looks similar to bug 6651232
    May I suggest you get in touch with Oracle support for this?

  • Error while executing SSIS Package after upgrading the Oracle Client

    Hello,
    I am running to the below error after we upgraded the Oracle client to 11g from 10g. The source of the Data is Oracle database . Looked online but each error is pointing towards different route, Confused here any help is very much appreciated. Have to say
    I am not a pro with SSIS.
    SSIS package "Bentek_ISO_Package (2).dtsx" starting.
    Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Warning: 0x80049304 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator,
    or on the system's console.
    Information: 0x40043006 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
    Information: 0x40043007 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
    Error: 0xC0202009 at Temp_tbl Injection Data Flow Task, OLE DB Source [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
    An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80040E14  Description: "ORA-12801: error signaled in parallel query server P183, instance *****:qrmgmt2 (2)
    ORA-01861: literal does not match format string".
    An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ORA-12801: error signaled in parallel query server P183, instance ****:qrmgmt2 (2)
    ORA-01861: literal does not match format string".
    Error: 0xC004701A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC0202009.
    Information: 0x4004300B at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: "component "OLE DB Destination" (52)" wrote 0 rows.
    Information: 0x40043009 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
    Task failed: Temp_tbl Injection Data Flow Task
    Warning: 0x80019002 at *******: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "****** (2).dtsx" finished: Failure.

    Do you have any Date conversion functions in your Oracle datetime fields? I did run into a similar issue when we upgraded the oracle client and the provider started to decipher the metadata of the date columns. The SSIS metadata conversion for the date
    columns yielded dates that were not valid. I had to update my queries to use the TO_CHAR conversion to bring it out as a string and then save it to the date field.
    TO_CHAR (DATE, 'MM/DD/YYYY HH24:MI:SS')
    Regards, Dinesh

  • After upgradation from Oracle 9i to Oracle 10g,one proc is throwing error

    recently upgraded from Oracle 9i to Oracle 10g. We have some Oracle procedures which are not working in Oracle 10g.
    A section of code from one of the procedures looks somewhat like the code below:
    Declare
    Cursor c_matched_records (…..) is
    Select a.field 1, b.field2
    From table1 a, table2 b
    Where a.field3=b.field1
    FOR UPDATE;
    BEGIN
    For records in c_matched_records
    LOOP
    -- Continue processing
    -- Update records
    COMMIT;
    END LOOP;
    END;This section of the code throws out the following error in Oracle 10g
    ORA-01002: fetch out of sequence during PUT outputFile file
    However this code was working fine in Oracle 9i.
    please help me with this?
    Thanks

    I believe you are lucky that the pl/sql is okay in Oracle 9i. How about remove the commit statement? Why do you need it in the loop. I look up metalink. You may refer to article ID 257914.1

  • Performance Problem After upgrade to oracle 10g

    Hi
    I have upgrade one of my datawarehouse database from oracle 9.2.0.8 to oracle 10.2.0.4 running on solaris 9
    After the upgrade jobs which were running in the database is taking hell lot of time.
    The jobs are accessing the views which is used to get the monthly report data from the database.
    what could be the solution and where to start from to get the RCA to resolve this performance issue
    Please let me know if you require any other information
    database is currently running in the automatic shared memory management mode ie SGA_MAX and SGA_TARGET parameters are defined for that

    There are a lot of differences between 10g and 9i in this regard, among these are:
    - There is a default job that gathers statistics every night which is not there in 9i. You might have totally different statistics as in 9i due to that job, depending on how and if at all you used to collect statistics in 9i
    - The 10g DBMS_STATS package collects histograms on some columns by default (parameter METHOD_OPT=>'FOR ALL COLUMNS SIZE AUTO' default in 10g whereas 'FOR ALL COLUMNS SIZE 1' in 9i) which can have a significant effect on the execution plans
    - The 10g optimizer has CPU costing enabled by default which can make significant changes to your execution plans due to different costing of table scans and order of predicate evaluation. In addition it uses NOWORKLOAD system statistics if system statistics have not been gathered explicitly
    - 10g checks the min and max values stored for columns in the data dictionary. If your predicates are way off compared to these values then 10g begins to adjust the calculated selectivity of the predicate which can again significantly affect your execution plans
    - 10g introduces the "Cost Based Query Transformation (CBQT)" feature which means that rather than applying heuristic transformation rules transformations are costed and potentially discarded whereas 9i applies transformations unconditionally whenever possible
    Check also the following note resp. white paper:
    http://optimizermagic.blogspot.com/2008/02/upgrading-from-oracle-database-9i-to.html
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • FORM NOT RESPONDING AFTER UPGRADING TO ORACLE 10GR2 DATABASE

    Hi All
    We are upgrading from Oracle 9i (single AIX Server) to Oracle 10gR2 on HACMP of 2 AIX 5.3 Server.
    Our application is in Forms 9.0.4 deployed into iAS 10.1.2.0.2.
    There is a custom Login Form that checks for UserID and Password and validate
    to Authentication Table.
    This form works fine in Oracle 9i but doesn't work in Oracle 10g (After
    Upgrading).
    On the Login Form, this happen :
    After user enter UserID the forms query the DB and display UserName succesfully,
    but after enter Password and press OK, it does not responding,
    takes forever to complete..
    Additional information :
    Before :          After :
    Oracle 9i          Oracle 10gR2
    SIngle AIX Server     Two AIX Server in HACMP
    Charset : AL16UTF16     WE8ISO....
    Given the information above, What could possibly cause this problem ?
    Thank you for your help,
    xtanto.

    xtanto,
    not sure what causes the problem, but my suggestion is to check the password query.
    To give you another hint: Your way of authenticating users is not hack safe. As you describe that providing a user ID will show the name first before I have to provide the password, it allows me to fish for valid user accounts. The recommended way of using login screens is to have the user enetring userid and password in teh same screen and use both information to authenticate the user in a single query.
    Frank

  • Data Protector backup integration fails after upgrade to Oracle 11.2.0.2

    After upgrading a system from Oracle 10.2.0.2 to 11.2.0.2, the Data Protector backup integration fails with error
    [Normal] From: BSM@<dp_cell_server>.<domain> "<sap_host>_<SID>_Online"  Time: 28.04.2011 09:10:21
         Backup session 2011/04/28-74 started.
    [Normal] From: BSM@<dp_cell_server>.<domain> "<sap_host>_<SID>_Online"  Time: 28.04.2011 09:10:21
         OB2BAR application on "<sap_host>.<domain>" successfully started.
    /usr/sap/<SID>/SYS/exe/run/brbackup: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
    [Major] From: OB2BAR_OMNISAP@pervs<SID>.<domain> "OMNISAP"  Time: 04/28/11 09:10:21
         BRBACKUP /usr/sap/<SID>/SYS/exe/run/brbackup -t online -d util_file_online -c -m all -u system/******** returned 127
    /usr/sap/<SID>/SYS/exe/run/brarchive: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
    [Major] From: OB2BAR_OMNISAP@pervs<SID>.<domain> "OMNISAP"  Time: 04/28/11 09:10:21
         BRARCHIVE /usr/sap/<SID>/SYS/exe/run/brarchive -d util_file -s -c -u system/******** returned 127
    [Normal] From: BSM@<dp_cell_server>.<domain> "<sap_host>_<SID>_Online"  Time: 28.04.2011 09:10:22
         OB2BAR application on "<sap_host>.<domain>" disconnected.
    [Critical] From: BSM@<dp_cell_server>.<domain> "<sap_host>_<SID>_Online"  Time: 28.04.2011 09:10:22
         None of the Disk Agents completed successfully.
         Session has failed.
    We checked the configuration, tried linking /oracle/client/11x_64 to 10x_64, removing the link and renewing the 10x_64 oracle client, but still Data Protector can't find the library libclntsh.so.10.1. A new system which was installed with Oracle 11.2.0.2 doesn't have any problems with online backups.
    Any help is appreciated!

    Hi,
    did you create the other link according to the upgrade guide (point 5.5) ?
    You need to create this link so that BR*Tools
    (which is linked to the Oracle 10.2 client)
    can use the newer Oracle 11.2 clients.
    After the software installation has finished,
    create a symbolic link in $ORACLE_HOME/lib as follows:
    cd $ORACLE_HOME/lib
    ln u2013s libnnz11.so libnnz10.so
    or (HP-UX)
    ln u2013s libnnz11.sl libnnz10.sl
    Volker
    Second part: For the DP job, there can be set different environment settings inside the DP job.
    Did you check if there are still relicts from the previous release ?
    You could integrate a small pre-exec script into the job and let it plot the output of
    id
    env
    set
    to a logfile, just to see which values the backup is using.
    Edited by: Volker Borowski on Apr 29, 2011 10:12 AM

  • Excessive Redo Generation After Upgrading on Oracle 10gR2

    We had our production database hosted on Oracle 9.2.0. Few months back we have migrated it to Oracle 10.2.0.4.0.
    After Migration I have noticed that redo generation has become very very high. In earlier case no. of log files generating in production hours were around 20 where as after migration it become around 200 files per day. I have run statspack report on this database. Statspack report is also saying that log file switch wait is become very high. Parameter timed_statistics has also been set to FALSE. Workload on the database is same before & after upgrade. Queries running in the sessions are also same before & after upgrade. All the parameters & memory structures are same after upgrade. Satatpack report is saying that db block change & disk write is become very high. I had used import export for upgrading the databases. Please provide a solution for this problem.
    Thanks In advance for all your favours....

    Hi;
    Please check below notes which could be helpful for your issue:
    Diagnosing excessive redo generation [ID 199298.1]
    Excessive Archives / Redo Logs Generation Troubleshooting [ID 832504.1]
    Troubleshooting High Redo Generation Issues [ID 782935.1]
    How to Disable (Temporary) Generation of Archive Redo Log Files [ID 177218.1]
    Regard
    Helios

  • Work process crash after upgrade to Oracle 11g

    Hi guys,
    I have recently upgraded my Oracle database to Oracle 11.2.0.2. My environment is SAP R/3 4.7 ext 2.00, AIX 5.3 TL 9.
    I also have upgrade my SAP kernel to 6.40_EX2 kernel (the lates one).
    I have tested some of advanced compression features including index compression and table compression. But couple times (when this system is idle), suddenly SAP work process is crashed without notice.
    Is there any experience about this ? Any suggestion would be appreciated.
    Thannk you

    Hi All,
    This is the log file for dev_w0
    ================
    M Sat Mar 26 00:36:16 2011
    M  in_ThErrHandle: 1
    M  ThIErrHandle: new stat of W0 is WP_SHUTDOWN   
    M  ThIErrHandle: I'm during shutdown
    M  PfStatDisconnect: disconnect statistics
    M  Entering ThSetStatError
    B  db_sqlbreak() = 1
    M  ThIErrHandle: don't try rollback again
    M  ThShutDownServer: shutdown server
    M  ThExecShutDown: perform exclusive shutdown actions
    M  ThCheckComOrRb (event=1, full_commit=1)
    M  ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT
    M  SosSearchAnchor: search anchor for 10
    M  SosSearchAnchor: invalid tid/mode T-1/M255
    M  ThCheckComOrRb (event=3, full_commit=1)
    M  ThCallHooks: call hook >ThVBICmRbHook< for event AFTER_COMMIT
    M  ThVBICmRbHook: called for commit
    M  ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT
    M  ThNoClearPrevErr: clear prev no err
    M  ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT
    M  SosSearchAnchor: search anchor for 10
    M  SosSearchAnchor: invalid tid/mode T-1/M255
    M  ThCallHooks: call hook >dyKeyTableRest< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT
    M  SosSearchAnchor: search anchor for 2
    M  SosSearchAnchor: invalid tid/mode T-1/M255
    M  ThUsrDelEntry (*, *, emaprd2_WPR_10      ) o.k.
    M  ThICommit3: full commit, set time, keep resources, redispatch
    M  ThICommit3: commit and keep resources
    M  ThCheckComOrRb (event=1, full_commit=0)
    M  ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT
    M  SosSearchAnchor: search anchor for 10
    M  SosSearchAnchor: invalid tid/mode T-1/M255
    M  ThCheckComOrRb (event=3, full_commit=0)
    M  ThCallHooks: call hook >ThVBICmRbHook< for event AFTER_COMMIT
    M  ThVBICmRbHook: called for commit
    M  ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT
    M  ThNoClearPrevErr: clear prev no err
    M  ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT
    M  SosSearchAnchor: search anchor for 10
    M  SosSearchAnchor: invalid tid/mode T-1/M255
    M  ThCallHooks: call hook >dyKeyTableRest< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT
    M  SosSearchAnchor: search anchor for 2
    M  SosSearchAnchor: invalid tid/mode T-1/M255
    M  ThAlarm: set alarm to 600 sec
    M  ThICommit3 o.k.
    M  ThExecShutDown: ThUsrDelEntry o.k.
    M  ThExecShutDown: called rsau_log_system_stop
    M  PfStatIndInit: Initializing Index-Record
    M  PfWriteIntoFile: copied shared buf (0 bytes) to local buf
    M  PfTimeFactor: new value: 25200
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    B  Disconnecting from ALL connections:
    B  Wp  Hdl ConName                        ConId     ConState     TX  HC  PRM RCT FRC TIM MAX OPT Date     Time   DBHost                       
    B  000 000 R/3                            000000000 INACTIVE     NO  NO  YES NO  NO  000 255 255 20110326 002910 emaprd2                      
    C  Disconnecting from connection 0 ...
    C  Close user session (con_hdl=0,svchp=113176338,usrhp=1131b6f80)
    C  Detaching from DB Server (con_hdl=0,svchp=113176338,srvhp=1131773e0)
    C  Now connection 0 is disconnected
    B  Disconnected from connection 0
    B  statistics db_con_commit (com_total=107, com_tx=58)
    B  statistics db_con_rollback (roll_total=1, roll_tx=0)
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 336276) [dpuxtool.c   318]
    ================
    Any suggestion ?
    ardhian
    http://sapbasis.wordpress.com
    http://ardhian.wordpress.com

  • Problem after upgradation from Oracle 8.1.7 to Oracle 9i

    Hello ,
    I currently installed Oracle 9i, and i m using Mapx 4.5,
    and in the executable I am adding serverlayer
    (a layer formed by querying the geoloc column from oracle
    table), which was working fine with Oracle 8.1.7, but after
    installation of Oracle 9i , i encounter the following error
    while adding a serverlayer
    ORA-13373 Element of type Extent is not supported for Geodetic
    data
    Cause: Element type extent for a polygon geometry is not
    supported for
    geodetic data.
    Action: Convert the extent type polygon to a regular 5 point
    polygon
    and set
    etype accordingly.
    ORA-06512 at string line string
    Cause: Backtrace message as the stack is unwound by unhandled
    exceptions.
    Action: Fix the problem causing the exception or write an
    exception
    handler
    for this condition. Or you may need to contact your application
    administrator or database administrator
    Can anybody tell me what's going wrong ?
    As I urgently got to fix it.
    Thanks in advance
    Binoy.

    Hi,
    Oracle9i has a geodetic data model. Your data has a geodetic
    srid, which means that the data will need to conform to the rules
    associated with geodetic data. These rules include:
    No optimized rectangles are supported (my guess is the app is
    using an optimized rectangle as a query window, but the data
    could be the issue also).
    No arcs or circle types are supported.
    A single line segment cannot be equal to or greater than 1/2 the
    great circle distance.
    A polygon cannot have an area equal to or greater than 1/2 the
    surface area of the earth.
    You should try to find what version of Mapx supports Oracle9i.
    Regards,
    dan

Maybe you are looking for

  • Reading Header data in a SOAP Envelope for SOAP Sender Adapter

    Hello All, Am using a SOAP sender adapter and want to use the data inside the SOAP Header for some routing purpose(extended receiver determination). Any SOAP message coming into XI will look something like below. But XI will pass the contents of <SOA

  • How do i get the fonts panel to stay there?

    hi all i like to have the fonts panel in Pages visable while working on a document as I change fonts regularly in some running documents but when i close pages and reopen it, the fonts panel doesn't stay there like the inspector does, so i have to re

  • Downloading files in ONE CLICK

    I was wondering if there is a way on my MBP to set it up so I can click on a file (picture, link, etc ) to download, and instead of having the "save image as" dialogue box pop up, (after hitting Control-Click) it just immediately downloads without ha

  • ITunes crash upon opening

    Started appearing several days when the program would freeze, not doing anything in it, and need to be reopened. 3 days ago it just stopped. Any attempt to open either manually or by logging in ipod touch (4gen) is now meet with windows alert "This p

  • Galaxy S3 VS Droid Razr HD (not Maxx)

    I'm sure there are several other posts about this, but sorry, I couldn't find them through search. I'm planning on getting a new phone tonight or tomorrow, but I am having an incredibly hard time deciding to go with the Razr HD or the Galaxy S3.  I'v