Oracle 11g needs group by - why?

Hi folks,
I thought migrating a 10.2 DB to 11g would face no problems, but on a 11g db the following code will produce a ora-00979 error ( which was functional under 10.2
  UPDATE OBJEKT o SET
       (  o.herstellungskosten
        , o.angemess_valutierungsstand
       ) =
       ( SELECT  c.o_herstellungskosten
                   ,  b.o_angemess_valutierung
         FROM  obj_gewerk_calc_vw b
                 , read_obj_herstkosten_all_vw c
         WHERE b.o_obj_id = o.obj_id
          AND  b.o_obj_id = c.o_obj_id (+)
       WHERE o.obj_id  BETWEEN obj_von AND obj_bis
       ;the inline-query ( the internally iterating, surrounding update statement gives all obj_ids into the select, therfore the where-clause is for testing modified from c.o_obj_id = o.obj_id to c.o_obj_id > 0, and for better explanation the obj_id is additionally selected ) as:
SELECT  b.o_obj_id
           , c.o_herstellungskosten
           , b.o_angemess_valutierung
FROM  obj_gewerk_calc_vw b
        , read_obj_herstkosten_all_vw c
WHERE c.o_obj_id > 0
   AND  b.o_obj_id = c.o_obj_id (+) the result is:
O_OBJ_ID, O_HERSTELLUNGSKOSTEN , O_ANGEMESS_VALUTIERUNG
1, -1561871,85 , 403600
201, -573162,43 , 811214,9
222, 0 , 1888680
242, -1583060,05 , 2759600
285, -10000 , 0
Environmental information:
Windows7 64bit Workstation, oracle 11g 64bit Enterprise server running on that WS, using Quest Toad for testing and debugging
since this update statement definitely works under 10g, I wonder if it is a bug under 11g.
Could anybody help ?
thanks in advance,
Wilko

True :-) I too have been a "victim".
It would help if unintentional duplicate posts were edited to change the topic to "Ignore - Unintentional duplicate post due to network/software glitch" (or words to that effect), provide a link to the active post being responded to, and mark the duplicate post as answered. Maybe it is just too much to ask ? ;-)
Srini

Similar Messages

  • Would like to write OCA exam for Oracle 11G, Need Help ?

    Hi Team,
    I would like to write OCA exam for Oracle 11g, I am a SQL/PLSQL developer and could you please guide me what are the exams needs to take.
    Please provide me links and materials inorder to know the exam details/model paper.
    Thanks in advance............
    Thanks
    Raghavendra Setty S
    [email address removed by moderator for security purposes]
    Edited by: Certification Forum Moderator on May 16, 2012 4:12 AM

    Hi Raghavendra, welcome to the forum!
    I suggest you remove you email from your post to avoid recieveing undesired emails.
    There are two OCA paths, OCA Developer or OCA DBA.
    For both paths you need to take one of the following SQL exams:
    1z0-007 Introduction to Oracle9i SQL (this is an outdated exam)
    or
    1z0-047 Oracle Database SQL Expert (more advanced exam recommended for developers/dbas with SQL experience)
    or
    1z0-051 Oracle Database 11g: SQL Fundamentals I (recommended for beginners or people with average experience in SQL)
    After passing one of these exams, if you want to take the OCA DBA path you need to do the:
    1z0-052 Administration I exam
    After passing one of the SQL exams, if you want to take the OCA Developer path you need one of the:
    1z0-147 Program with PL/SQL (outdated exam)
    or
    1z0-144 Oracle Database 11g: Program with PL/SQL (more actual exam, recommended)
    For information on specific exams:
    1z0-007: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_007
    1z0-047: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_047
    1z0-051: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_051
    1z0-052: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_052
    1z0-147: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=1001&lang=US&p_exam_id=1Z0_147
    1z0-144: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=1001&lang=US&p_exam_id=1Z0_144
    For information on the OCA Developer path:
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=458&get_params=p_track_id:PLSQL
    For information on the OCA DBA path:
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=458&get_params=p_track_id:Datab11g

  • Migrating from Red Brick database to Oracle 11g -Need help with the process

    Hi,
    I am on this new project were we are migrating from IBM Red Brick Data Warehouse to Oracle 11g. We have a very tight time line. I was hoping if any of you have done this migration before and are willing to share their experience. Any help would be greatly appreciated. I would like to get a brief idea about how to go about the process.
    Thanks in advance!

    Hello,
    that is a matter of supply and demand, and as the demand to migrate Red Brick to Oracle RDBMS is very low, Oracle never included Red Brick into the migration tools.
    If you search in the forums for Red Brick, you will not find much more than this one from the year 2006:
    Re: Migration from rebrick 6.0.3 to Oracle 9i
    Options:
    In general we have the following options:
    1. Oracle Migration Workbench
    2. SQL Developer Migration Workbench
    3. Generic Connectivity
    4. SQL*Loader
    Regarding your dedicated foreign database, option 1 and 2 fail as those tools
    do not work against Red Brick DB.
    Generic Connectivity would be an option if you have an ODBC driver to this database.
    In this dedicated case, you can then set up generic connectivity (= a database
    link to the foreign database using odbc).
    The Oracle database we support generic connectivity can reside on Windows,
    Solaris, HP-UX, AIX and Linux.
    If the Oracle database is on any other platform, you might migrate to a
    database on this platform, then export the migrated DB and then load it into
    the real target db.
    Generic Connectivity will allow you to perform a SQL*Plus copy of tables; this
    means you can create tables like they are defined in your source and transfer
    the data to the Oracle db; but no procedures, triggers or anything coded can be
    transferred.
    Last option (4) is that you generate "flat files". This means ASCII-SPOOL
    Files and then import them using SQL*Loader. As far as I know there is no
    existing SQL*Loader sample file for Red Brick databases exports and you need to
    write them on your own.
    I recommend to read also the following note in My Oracle Support:
    Note 233876.1: Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    Best regards
    Wolfgang

  • Why oracle 11g needs loopback adapter???

    Hi
    i have installed obi11g on my windows 32.
    initially i couldnt install as microsoft loopback adapter wasnt configured on my system...
    but after configuring loopback adapter on my system i am able to successfully installl.
    my question is that why oracle need microsoft loopback adapter,
    even though i hav manually assigned the ip address in the network configuration. tcp ip settings..
    plz help guys

    hi mahis,
    my question is that why oracle need microsoft loopback adapterIts a pre-requisite for OBIEE 11g to call the IP of the host file.It is defined that way,you can go through the documentation for it.
    mahis,please mark points to your previous threads and close it along with this.Follow rules http://forums.oracle.com/forums/ann.jspa?annID=939
    By,
    KK

  • Major bugs in oracle 11g 11.1.0.7??

    Hii All,
    We are planning to upgrade to 11g currently we are using
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
               Now we are planning to upgrade to version 11.1.0.7,but heard that it contains many bugs.And our DBA suggest us version 11.2.0.1.0 where all the bugs in the earlier release of 11g got fixed. Is it true?
    These links show that there are some bugs in 11.1.0.7
    http://nilesh-joshi.blogspot.com/2010/06/oracle-111070-bug.html
    http://mikerault.blogspot.com/2009/03/more-fun-with-oracle11g-11107.html
    1)Can any one brief the bugs in the version 11.1.0.7 ???
    2)Let me know whether are all those bugs got fixed in the version 11.2.0.1.0??
    Is this bug oracle 11g needs group by - why? fixed in 11gR2???
    Regards
    Raghu.

    Bottom line - you'll be lucky if you never run into a bug in any release.
    I'd always be hesitant to go with any x.1 release including 11.2.0.1.
    Bear in mind that you're probably not upgrading today but in a few months time.
    11.2.0.2 is available on Linux
    Use Metalink to identify any bugs in any specific feature or release you're interested.
    Doc Id 738538.1 - 11.1.0.7 Patch Set - Availability and Known Issues
    Doc Id - 880707.1 - 11.2.0.1 Base Release - Availability and Known Issues
    Doc ID 1179474.1 - Known issues specific to 11.2.0.2
    Doc ID 1178583.1 - Bugs fixed in the 11.2.0.2 Patch Set

  • Select first and last records in grouped results - Oracle 11g

    Say I have the following information in an Oracle 11g table:
    Qty
    Production order
    Date and time
    20
    00000000000000001
    12-JAN-14 00:02
    20
    00000000000000001
    12-JAN-14 00:05
    20
    00000000000000001
    12-JAN-14 00:07
    20
    00000000000000001
    13-JAN-14 00:09
    30
    00000000000000002
    12-JAN-14 00:11
    30
    00000000000000002
    12-JAN-14 00:15
    30
    00000000000000002
    12-JAN-14 00:20
    30
    00000000000000002
    14-JAN-14 00:29
    I would like to write a query that would return the following:
    Qty
    Production order
    First
    Last
    80
    00000000000000001
    12-JAN-14 00:02
    13-JAN-14 00:09
    120
    00000000000000002
    12-JAN-14 00:11
    14-JAN-14 00:29
    That is, the sum of the Qty column grouped by Production order, and the date/time of the first and last records for each Production order.
    I came up with a query that yielded this result:
    Qty
    Production order
    First
    Last
    80
    00000000000000001
    12-JAN-14 00:02
    14-JAN-14 00:29
    120
    00000000000000002
    12-JAN-14 00:02
    14-JAN-14 00:29
    Which means that the First and Last columns show the overall first and last date / time of the whole table. Please note that this is a dummy table. Sorry I am now allowed to write the actual query
    I came up with since work policies do not allow me to share it. Also, I tried with windowing functions such as rank()and row_number() but my user does not have enough privileges to do so.
    Any help or hints will be greatly appreciated.

    Due to the fact that Oracle does not record the rows in any particular order, it would be wrong that the "first date" would be the first row processed by the query.
    Therefore you would have to supply some other column if you do not want to consider the table as ordered by date.
    Also, any analytical functions will need you to supply the "order by" and if its the date, then just a simple query will do:
    SQL>WITH Tab1 (Qty, Production_Order, Pdate)
      2       AS (SELECT 20, '00000000000000001', TO_DATE ( '12-JAN-14 00:02', 'DD-MON-YY HH24:MI') FROM DUAL UNION ALL
      3           SELECT 20, '00000000000000001', TO_DATE ( '12-JAN-14 00:05', 'DD-MON-YY HH24:MI') FROM DUAL UNION ALL
      4           SELECT 20, '00000000000000001', TO_DATE ( '12-JAN-14 00:07', 'DD-MON-YY HH24:MI') FROM DUAL UNION ALL
      5           SELECT 20, '00000000000000001', TO_DATE ( '13-JAN-14 00:09', 'DD-MON-YY HH24:MI') FROM DUAL UNION ALL
      6           SELECT 30, '00000000000000002', TO_DATE ( '12-JAN-14 00:11', 'DD-MON-YY HH24:MI') FROM DUAL UNION ALL
      7           SELECT 30, '00000000000000002', TO_DATE ( '12-JAN-14 00:15', 'DD-MON-YY HH24:MI') FROM DUAL UNION ALL
      8           SELECT 30, '00000000000000002', TO_DATE ( '12-JAN-14 00:20', 'DD-MON-YY HH24:MI') FROM DUAL UNION ALL
      9           SELECT 30, '00000000000000002', TO_DATE ( '14-JAN-14 00:29', 'DD-MON-YY HH24:MI') FROM DUAL)
    10  SELECT   SUM ( Qty), Production_Order, MIN ( Pdate), MAX ( Pdate)
    11      FROM Tab1
    12  GROUP BY Production_Order
    13* ORDER BY Production_Order
    SQL> /
      SUM(QTY) PRODUCTION_ORDER     MIN(PDATE)                    MAX(PDATE)
            80 00000000000000001    12-Jan-2014 00:02:00          13-Jan-2014 00:09:00
           120 00000000000000002    12-Jan-2014 00:11:00          14-Jan-2014 00:29:00

  • New To Oracle.. Needs Help:: Conversion from SQL Server to Oracle 11g

    I am new to Oracle 11g and badly need the conversion of SQL Server Functions to Oracle.. Sample Pasted Code not working .. end with error.. pls help
    Create Table TempT (ID1 Varchar (10),
    ID2 Varchar (10)
    CREATE OR REPLACE PACKAGE GLOBALPKG
    AS
    TYPE RCT1 IS REF CURSOR;
    TRANCOUNT INTEGER := 0;
    IDENTITY INTEGER;
    END;
    CREATE OR REPLACE FUNCTION fTempT
    i IN VARCHAR2 DEFAULT NULL
    RETURN GLOBALPKG.RCT1
    IS
    REFCURSOR GLOBALPKG.RCT1;
    BEGIN
    OPEN REFCURSOR FOR
    SELECT TT.*
    FROM TempT TT
    WHERE (fTempT.i = ''
    OR TT.ID1 = fTempT.i)
    RETURN REFCURSOR;
    END;
    CREATE OR REPLACE FUNCTION fTempTF
    i IN VARCHAR2 DEFAULT NULL
    RETURN GLOBALPKG.RCT1
    IS
    REFCURSOR GLOBALPKG.RCT1;
    BEGIN
    OPEN REFCURSOR FOR
    SELECT *
    FROM TABLE(fTempT(i))
    RETURN REFCURSOR;
    END;
    LAST FUNCTION ENDs WITH ERROR
    Error(13,7): PL/SQL: ORA-22905: cannot access rows from a non-nested table item

    2. The major purpose is to get a simplest way to create a parameterized function who can return a table like output. 2nd function has no use instead i was testing the result of First Function like thisIf you just want to select from a select, you should use a view not a function.
    1. which program is more help ful for writing and executing queries bcoz after using Query Analyzer of Microsoft It seems difficult to work on SQL Developer.
    sqlplus? If you are having difficulty learning new tools because of an old one you used, probably best to forget the old one and concentrate on learning the new one because it will be different. This goes for the database itself also.
    2. Can DMLs be used within a Function.Yes, you just can't execute the function in another SQL statement if it modifies data and this is a good thing.
    3. Can temporary tables be used within a function.Unfortunately yes, but they shouldn't be unless you are in a slowest application competition.
    5. Each Function which is a Table Function must be accompanied with Type Definitions?? its a bit longer way of doing the things than SQL ServerThat is why it is better to use views instead, is there any reason you want a select that you can select from inside a function?
    SQL Server for last 9 years thats why i refer this toolThat is not in itself a problem, if you try and do what you did in SQLServer in Oracle, that will be a problem though.

  • Need to connect to Oracle 11g using PI 7.1 JDBC adapter

    Hi All,
    I am trying to configure a JDBC adapter to connect Oracle 11g. For this I need to know the driver,jar and connection URL details.
    Can anyone please provide the above information?
    Please correct me if my details are wrong :
    JDBC Driver : oracle.jdbc.driver.OracleDriver
    JAR : ojdbc5.jar
    URL : jdbc:oracle:thin:@localhost:1521:ora11i
    Regards,
    Prakash.

    Yes i knew how to deploy the jars using SDA.
    I will try to deploy the above jar (ojdbc5.jar ) and try to connect to Oracle 11g with URL & Driver classname.
    If I face any problem then i will get  back to you.

  • Need help regarding upgrading Oracle 10g Forms to Oracle 11g Fusion Middlew

    Hi All,
    I am trying to create a workshop on a VM for showing the migration / upgrading of Oracle Forms 10g to Oracle 11g FMW using the Upgrade Assistant tool available in <ORACLE_HOME>/bin/ua.bat.
    As per my understanding of pre-requisites:
    1)     I need to install Oracle SOA Suite 10g on my VM.
    2)     I also need to install Oracle SOA Suite 11g on my VM.
    3)     I need to install Oracle Forms/Reports Services 10g on my Oracle SOA Suite 10g installation.
    4)     I need to run Oracle Forms/reports installer on my Oracle SOA Suite 11g installation.
    5)     I need to run upgrade assistant tool on my VM to upgrade my form from source(Oracle SOA Suite 10g) to destination(Oracle SOA Suite 11g). Is it mandatory for this migration that I should have Oracle SOA Suite 10g and Oracle SOA Suite 11g on the same system ?
    Having all these software installed on one VM would be difficult. So just wanted to check can I avoid any software to install on VM ?
    If there is any alternative suggestion then please let me know.
    Regards,

    What do you want to do with the SOA-suite? At least for Froms10G is is not necessary.

  • Need help setting up DB Link from my Oracle 11g XE to SQL Server.

    Hi,
    I'm trying to create a DB Link from my Oracle 11g Express Edition in a Windows XP machine to an SQL Server. Here are the steps I've done so far.
    1. Created and setup an ODBC Connection for the SQL Server DB. Named it SQLSERVER. Windows Authenticated.
    2. Modified listener.ora. See below.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = SQLSERVER)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = hsodbc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)3. Modified tnsnames.ora. See below.
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    SQLSERVER =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT=1521))
        (CONNECT_DATA =
          (SID = SQLSERVER)
      (HS = OK)
    )4. Copied C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initdg4odbc.ora to C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initSQLSERVER.ora and modified it. See below.
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = SQLSERVER
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>5. Restarted listener.
    C:\>lsnrctl stop
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
    :51
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    The command completed successfully
    C:\>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
    :54
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    System parameter file is C:\oraclexe\app\oracle\product\11.2.0\server\network\ad
    min\listener.ora
    Log messages written to C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\list
    ener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date                18-SEP-2012 11:33:57
    Uptime                    0 days 0 hr. 0 min. 3 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\li
    stener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "SQLSERVER" has 1 instance(s).
      Instance "SQLSERVER", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully6. Created database link using the following command.
    create database link sqlserver using 'SQLSERVER';7. Test using
    select * from "dbo.mytable"@sqlserver;
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVER
    select * from dbo.mytable@sqlserver;
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVER
    select * from mytable@sqlserver;
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVERI followed the steps provided in this link but not sure where I went wrong. Can someone help me.
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Thanks,
    Allen

    Here's more information on the machines.
    Machine where the Oracle Database 11g Express Edition: IP Address is 10.162.128.67
    Machine where the SQL Server database: IP Address is 142.120.51.30.
    I've modified the tnsnames.ora to the following:
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 10.162.128.67)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    SQLSERVER =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 142.120.51.30)(PORT=1433))
        (CONNECT_DATA =
          (SID = SQLSERVER)
      (HS = OK)
    )But now I'm getting the following error:
    C:\>tnsping sqlserver
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2
    012 14:52:59
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 142.120.51.30)(PORT=1434))) (CONNECT_DATA = (SID = SQLSERVER)) (HS = OK)
    TNS-12541: TNS:no listener
    C:\>Regards,
    Allen

  • DO I NEED TO HAVE ORACLE 11G INSTALLED?

    Hi,
    I have never used Oracle before. I have a very basic doubt. I have a Peoplesoft Id and password. I wish to know if I need to have Oracle 11g installed on my laptop to be able to use Peoplesoft Code to create applications using an online database? Kindly let me know at the earliest and will be of great help.
    I greatly appreciate it.
    Thanks. :)

    You need to have app designer installed if you want to work with peopletools, which will allow you to connect 3-tier to running Oracle/Peoplesoft instance. If you want to connect 2-tier, then you'll need the 11g client installed.

  • Upgrade steps needed - Oracle 10g to Oracle 11g in RHEL 4

    Hello,
    Am in the process of upgrading oracle 10g with 10.1.4.3 IDM,10.1.0.5 DB and 10.1.4.2 portal version to Oracle 11g. Now I see that there are some compatibilities in the OS. I have RHEL 4 and when I check the compatibility guide I see that it is possible to install/upgrade the oracle to 11g. But am worried on the kernel and packages which is needed for Oracle 11g. If there is any step by step assistance on this please guide me. Also I have an another query can I upgrade the OS RHEL 4 to RHEL 5 and then Oracle 10g to Oracle 11g. Will I be seeing any issue after the OS upgrade with product upgrade. Kindly advise me.
    R/Ganesh

    This is all about libraries, some libraries between RHEL 4 and 5 had change and this may lead to malfunction of some products, cause they have been copiled using old libraries that doesn't exist now, even I think in the upgradres there are compatibility modes where let you keep old libraries, anyway seems a difficult thing to do. If you plan to move RHEL 4 to 5, I think this is your first step and then install again the Portal in the old version, and then make the upgrade, If you make this step by step, as firts install RHEL 5, install db, install portal, upgrade DB and finaly upgrade portal, would be easier. You may want to read the Master note for this upgrades in oracle Support 873751.1
    Greetings.

  • Does the JDBC driver need to changin when moving Oracle 9i to Oracle 11g??

    Hi All,
    I have two cases
    Case 1:
    Application is deployed on WebLogic 10 (JDK 5) and connects to Oracle 9i database using the thin driver. Now the database is now moving from ORacle 9i to Oracle 11g. I have the following question:
    1. Does the driver jar file and/or driver class need to be changed on the connection pool front?
    2. If yes then, do we need to change any of the jdbc coding to ensure compatibility?
    Case 2:
    Application is deployed on WebLogic 8.1 (JDK 1.4) and connects to Oracle 10g database using the thin driver. Now the database is now moving from ORacle 10g to Oracle 11g and application is moving to WebLogic 10. I have the following question:
    1. Does the driver jar file and/or driver class need to be changed on the connection pool front?
    2. If yes then, do we need to change any of the jdbc coding to ensure compatibility?
    Additioanlly, are there any other factors that I need to consider when upgrading these applications. Does any one have checklists?
    Any help will be really helpful.
    Thank you
    Nikhil

    nikhil.gonsalves wrote:
    Case 1:
    Application is deployed on WebLogic 10 (JDK 5) and connects to Oracle 9i database using the thin driver. Now the database is now moving from ORacle 9i to Oracle 11g. I have the following question:
    1. Does the driver jar file and/or driver class need to be changed on the connection pool front?Advised to do so (bugfixes, possible performance optimisations), not required unless you want to use functionality the 9i driver doesn't support.
    2. If yes then, do we need to change any of the jdbc coding to ensure compatibility?
    Not unless you want to use things not supported by the old driver.
    It is however a very good idea to at least update the name of the driver class, as the name used for the 9i driver has been deprecated (it's still allowed, but now leads to another method call which is a waste of CPU time).
    Case 2:
    Application is deployed on WebLogic 8.1 (JDK 1.4) and connects to Oracle 10g database using the thin driver. Now the database is now moving from ORacle 10g to Oracle 11g and application is moving to WebLogic 10. I have the following question:
    1. Does the driver jar file and/or driver class need to be changed on the connection pool front?See above.
    2. If yes then, do we need to change any of the jdbc coding to ensure compatibility?
    See above (except for the driver class name which you should have used the new name already had the application been written to make use of the new name which was introduced in 10g).
    Additioanlly, are there any other factors that I need to consider when upgrading these applications. Does any one have checklists?
    You should always do a full regression test of your entire platform when attempting a migration like this.
    Worst example of what can go wrong I ever encountered was an application where an upgrade of the database server it ran on led to a bugged batch job that for 5 years had (unnoticed to anyone) never completed because it always entered a timeout causing a rollback now suddenly no longer timing out and inserting 10k records of corrupt data every time it was run (where what it should insert were maybe a few dozen records of actual data at most).
    The database engine upgrade had not been announced to the dev team, the team responsible for it didn't do regression tests (as application testing is the responsibility of the dev team), the sys admins who should make full backups at upgrade moments (so we could roll back to the previous release if something went wrong) made no backup because it was no application upgrade, and now one of the core applications for several dozen offices was fundamentally broken.
    Technical lead for the application was literally on the other side of the world on a vacation, functional lead had left the company, the entire dev team consisted of me as a contractor brought in just 2 weeks prior and a new functional lead who'd arrived at about the same time, we were both still trying to get to know the system.
    Potential financial loss: millions a week if it wasn't fixed quick.
    That's the nightmare scenario from hell of course, where everything that could go wrong did go wrong all at the same time.

  • Need Best way to start learning Oracle 11g  DBA

    Hi.This is Tejaswi.
    I want to learn Oracle 11g DBA.I've downloaded all software's and Documentation for Orcl 11g R2. Now. i want to start Learning DBA. Can any one suggest me the best way to Start learning DBA?
    Please suggest me the good books For Oracle Architecture and SQL.......

    Hello Tejaswi,
    The advice you got about reading the Oracle Concepts and 2 Day DBA documentation is very good advice.
    I found that knowing some SQL*Plus and SQL Developer was also very helpful as, they both provide a way to interface with the database and try the things you read about. For SQL Plus, I used the book:
    Oracle SQL*Plus: The Definitive Guide, 2nd Edition
    By Jonathan Gennick
    Publisher : O'Reilly
    ISBN : 0-596-00746-9 I openly recommend it. It is easy to read, the book is very well thought out, it covers what you really need to know (and more too). The author explains the subjects very well. I would definitely learn some SQL Plus and SQL developer before getting into the 2 Day DBA document (make those 2 days about 7 days each if not more).
    To learn SQL, I "sort of" used (I say "sort of" because I only read some parts of it available online and at the local bookstore):
    Oracle SQL by Example
    By Alice Rischert
    Publisher: Prentice Hallit probably has more SQL than you'd need as a DBA but, it is an excellent book you may want to consider.
    If you are starting from scratch, as I did, you'll find that you need to learn multiple things at the same time. I believe SQL Plus is the best place to start, along with possibly the Concepts document. That will give you a base to build upon.
    HTH,
    John.

  • Does listener log file need to be purged in Oracle 11g DB

    We have the Oracle 11g database setup. I have a query as to if it is required to purge the listener log file in Oracle 11g database. I believe that the size of the listener log file is infinite and we need to manually purge the listener log file or is there an automatic log rotation of the listener log file?
    I hope my query is clear that if it is required to manually purge the listener log file or is there an automatic log rotation for this file.
    Please revert with the reply to my query.
    Regards

    972145 wrote:
    Thanks for your answer but does it mean that there is no automatic log rotation for the listener log file in Oracle 11g database?
    Regardshttp://uhesse.com/2011/06/01/adrci-a-survival-guide-for-the-dba/
    set the listener home inside adrci and do
    purge -age 2880 -type tracepurges all tracefiles older than 2 days I did not tried this but above link used same for alertlog trace file.

Maybe you are looking for