Funny bug in SQLDev 2.1EA - tables with same name...

Hi,
i opened two session in SQLDev 2.1EA, on two distinct instances.
These sessions are open against the same user and i am clicking on a table with the same name.
This happens only when the "pin" icon is not set.
Apparently SQLDev doesn't not distinguish between the two connections when it comes to display the object attributes like columns, data, indexes and so on.
So, practically, if i click on object 1 (instance 1), click on data tab, then i click on object 1 (instance 2), i still see the data for instance 1, no matter if i ask to refresh.
This doesn't happen if i open each object in a separate tab.
This happens on SQLDev on Mac OS X.
Flavio
http://oraclequirks.blogspot.com

Sorry to drop in, but I suppose many have this setup: the same users/connections on both development and production databases.
However I'm not able to reproduce now on my 10g DBs, I did see the same problem a couple of versions ago (when I was on 9i), but AFAIK that got fixed. Maybe regression anyway?
Regards,
K.

Similar Messages

  • Concatenate tables with same name from different servers - CR2013

    Hello,
    I need some help.  I need data from 2 tables with the same name on different SQL servers thru an ODBC connection. When I try to get the data by adding both to my datasource I get data from one or the other.  I have considered creating a view, but not sure how to handle this.  Thanks.

    Hi,
    Linked Servers are pretty simple and straightforward, just do a search for the procedure.
    I do have an additional comment, though.  Depending on what tables you're gathering, I've found noticeable differences in performance when I use a connector to a DB on Server Instance "A" linked to "B" versus Server Instance B linked to A.  I haven't determined the circumstances affecting one over the other.
    If I'm not happy with speed using a connector A, I try switching to B.  I like to use as much SQL code as possible, but you can't get around the connector still being a factor.
    Matt

  • Bug: showing data in tables with same name, 2 different databases

    Hi,
    two connections, to databases "a" & "b". Both logged into the same schema, "s".
    If you select table "t" in db "a" and then select the same table in db "b", the tab is not refreshed - you have to either select a different object first, or explicitly hit refresh.
    regards,
    William

    I can reproduce this consistently on 9.2.0.1.
    You need to have connections to the same schema in two different databases and the schemas must have the same table.
    1 Open connection in schema 1
    2 Select the table in the Tables node
    3 Select the Data tab
    4 Open connection to schema 2
    5 Select the table in the Tables node (without going to any other tabs or objects)
    What should happen is the details of the second table should occupy the main display tab and the data tab should be refreshed to show the data of the new table.
    What actually happens is the main display tab apparently switches to the table in the new connection as shown by the tooltip (table@connection_name), but the data in the data tab stays the same. Refresh doesn't seem to work, only switching to a different object and back again.
    The columns tab does seem to refresh properly.

  • EA1 - bug: worksheet not updated when switching between tables of same name

    Consider this scenario: two schemas, A, B. Each schema has a table X.
    Look at A.X data by selecting A/Tables/X in the connection list and clicking the Data tab.
    Now immediately look at B.X data by selecing B/Tables/X in the connection list.
    Bug: the worksheet viewer does not switch to B.X, but still shows A.X.
    Workaround: Click to another table before going from A.X to B.X.

    I had the same issue (bug: showing data in tables with same name, 2 different databases but I can't reproduce either...
    K.

  • It is possible to have two tables of same name in Oracle !

    Oracle Version:10gR2
    In MS-Access 2007, I had to use the 'Export' feature by which i copy a table (and its data) to an Oracle Schema via ODBC connection. Later i realised that , when copying tables with a mix of lower and upper case names , the table does not get copied(exported).But MS-Access will give you the message that Table got successfully exported.
    MS-Access messes around with Oracle Data Dictionary.
    When you issue
    SQL>select * from tab;
    TNAME                          TABTYPE  CLUSTERID
    AMStates                       TABLE
    Version                        TABLEYou'll see the table names . But when you try to DESCRIBE or SELECT this table, you'll get
    SQL>desc Version
    ERROR:
    ORA-04043: object Version does not existYou can even create another table with same name in this schema
    SQL>create table VERSION (X NUMBER);
    Table created.Why is this happening and how can i drop these "non-existent" objects?

    sometimes when you use third party clients (ODBC particularly) to create tables, you have to double-quote them to access them. tables names are case sensitive in this case. it is the same situation as if you want to use special caracters.
    so, you have to issue select * from "Version" .
    you can also have the same problem with the connection string.

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • SQL 2008 how to compare & identify data among 2 tables with same structure ?

    Hello is there a TSQL way of comparing row by row for example comparing DateTimeStamp field in 2 separate tables with same structure in identifying if it's data was changed (If Table1.DateField > Table2.DateField THEN UPDATE it's entire row to match it's
    corresponding Table1 row.) ?
    Probably thinking would need a cursor to loop through or are there other better ways via TSQL ?
    Thanks in advance.

    Hi,
    I am assuming you have a PRIMARY KEY field or a UNIQUE field in both tables, which you should!
    You can do this using "UPDATE with INNER JOIN". (SQL Server – Update Table with INNER JOIN)
    Working example:
    USE [TestDatabase]
    GO
    /* Create Temp Tables */
    CREATE TABLE [dbo].[Table1]
    [ID] INT
    ,[Name] VARCHAR(10)
    ,[ModifyDate] DATETIME
    CREATE TABLE [dbo].[Table2]
    [ID] INT
    ,[Name] VARCHAR(10)
    ,[ModifyDate] DATETIME
    GO
    INSERT INTO [dbo].[Table1] ([ID], [Name], [ModifyDate]) VALUES (1, 'Vishal', GETDATE())
    INSERT INTO [dbo].[Table2] ([ID], [Name], [ModifyDate]) VALUES (1, 'Gajjar', GETDATE() + 1)
    GO
    SELECT [ID], [Name], [ModifyDate] FROM [dbo].[Table1]
    SELECT [ID], [Name], [ModifyDate] FROM [dbo].[Table2]
    GO
    UPDATE T1
    SET T1.[Name] = T2.[Name]
    FROM [dbo].[Table1] T1
    INNER JOIN [dbo].[Table2] T2 ON T1.[ID] = T2.[ID] /* Join on Key field */
    WHERE T2.[ModifyDate] > T1.[ModifyDate] /* Update criteria */
    GO
    /* CleanUp - Drop Tables
    DROP TABLE [dbo].[Table1], [dbo].[Table2]
    This Updates Table1 with latest values from Table2, You need to change the UPDATE statement for your scenario.
    - Vishal
    SqlAndMe.com

  • Get the Common from Two Internal Tables with same structure

    Hi ,
    I need to get the Common data from Two Internal Tables with same structure with using the looping method.
    For e.g.
    I have two internal table say ITAB1 and ITAB2.
    ITAB1 has values A,B,C,D,E,F
    ITAB2 has values A,H,B,Y,O
    Output at runtime should be : A,B

    Hi mohit,
    1. If u want to compare all fields,
       for matching purpose,
       then we can do like this.
    2.
    report abc.
    data : a like t001 occurs 0 with header line.
    data : b like t001 occurs 0 with header line.
    loop at a.
      LOOP AT B.
        IF A = B.
          WRITE :/ 'SAME'.
        ENDIF.
      endloop.
    ENDLOOP.
    regards,
    amit m.

  • 2 tables with same primary key

    Hi,
    2 tables with same primary key is possible,but when is wise to go for such ?
    is that a bad desisn ?
    eg:
    Personal_details_employee
    Official_details_employee
    these 2 tables have same Primary key emp_id.
    plz. reply me at [email protected] also
    thanx
    vikram

    hi Vikram,
    In this case u can have then in one table itself and why do want to have two tables.
    - Suresh.A

  • BUG:  With same name jpg and RAW in same folder

    OK, we have established that you can't import same filenames RAW/jpg into the same folder, but you can drag them in later. This is useful for stacking.
    Bugs that occur when jpg and RAW with same name together in same folder. (have not tested for psd, tif etc.
    1. If you rename the jpg, the RAW also gets renamed
    2. You cannot move the jpg properly within the folder in grid mode.
    Most of my landscape shots need to go to photoshop. I developed a nice workflow which integrates PS quite well with LR...see post here:
    http://www.adobeforums.com/cgi-bin/webx/.3bc34679/5
    I created the workflow so that I could retain same name RAW/jpg stacks in the same folder. I have altered the workflow slightly so the jpg gets autorenamed with filename_# ... see the link above.
    Kev

    It's the same design issue Kevin. Sidecar files get renamed automatically and these are treated as sidecars.

  • Migrating from Sql Server tables with column name starting with integer

    hi,
    i'm trying to migrate a database from sqlserver but there are a lot of tables with column names starting with integer ex: *8420_SubsStatusPolicy*
    i want to make an offline migration so when i create the scripts these column are created with the same name.
    can we create rules, so when a column like this is going to be migrated, to append a character in front of it?
    when i use Copy to Oracle option it renames it by default to A8420_SubsStatusPolicy
    Edited by: user8999602 on Apr 20, 2012 1:05 PM

    Hi,
    Oracle doesn't allow object names to start with an integer. I'll check to see what happens during a migration about changing names as I haven't come across this before.
    Regards,
    Mike

  • How to import a table with renamed name

    If I want to import a table from a DMP on UNIX towards my user where I already have a new version but I don't want to drop this new version 'cause I have only to move some records from one to the other, is there an import option for importing the table with another name? I mean I want to import on the same user, where there already exists the table MYTABLE, an old version of MYTABLE by impoting it with the new name MYTABLE_OLD, so afterwards I can update MYTABLE with some of old records of its old versione MYTABLE_OLD. Is it possible?

    You cannot directly do this.
    You can import the Table into a different schema and then rename the table.
    export and import back into the required schema.
    Import DataPump: How to Import Table Data into a Table that has Different Name ? [ID 342314.1]
    Regards
    Rajesh

  • Two soa domain with same name "TestSOADomain" sharing same SOA schema ?

    I tried creating two soa domain with same name "TestSOADomain" (different path) sharing same SOA schema .However one domain came UP to Running mode and other domain going to AdminMode and "soa-infra" application of that domain is not active.
    I do want to understand can this be possible with SOA ,ie. two soa domain sharing same SOA schema ?
    If possible what are all the problems might come
    1. While executing soa composites with asyncronous behaviour ?
    2. How the polling services will work ?
    3. will the XREF_DATA table ROW_NUMBER column inserted uniquely while inserting data from two different domain into same SOA schema ?
    4. Other issues ?
    Thanks

    Each domain is expected to refer to its own unique database schema. Same SOA schema should not be shared by multiple SOA clusters/domains. It is technically possible though, I suppose, and still can run fine any one SOA environment at any given time with the other SOA environments/domains (sharing the same SOA schema) shutdown. It is not the general/recommended practice to share SOA schema across domains and there could be potential implications and unexpected behavior, particularly when the SOA environments pointing to the same schema are all running at a time.

  • How to create device IDs with same name

    i am using SE 3310 and its creating different device ids for each node sharing it . since I will be building a RAC enviornment I need these IDs/name to be same .
    for example  on one node the lun id is /dev/rdsk/c3t0d0s6  but the same lun id on node 2 is /dev/rdsk/c2t0d0s6.
    In past with an old storage array I fixed this issue by creating links  in /dev/rdsk for  c3t0d0s6 --->  c2t0d0s6.
    my question is : is there a way in SE3310 that device ids get created with same name or do i still have to rely on creating these soft links ?
    thanks
    Note: since i need the answer to this quickly i will wait a while and then post this question in other forums and i will update the question here with the answer .

    This could be a Solaris (I presumed) O.S. question rather than SE3310 or storage question.  
    The logical device (/dev/[r]dsk/*) is the work of the O.S. when it first configures the device,  in this case the LUN from your SE3310.   I can go in depth on how the cX number happens (due to device probe order, driver differences, history of device discovery due to need of persistent device naming, etc...) but ... it's a really long story and is really quite irrelevant and most people should not be interested...
    If you have COMPLETELY identical servers, i.e. identical hardware down to specific HBA in specific slot are the same,   and if you make sure that luns are presented to all servers exactly the same way, same order, and any changes are seen by all servers in the same sequence,  in theory,  all /dev/rdsk/* devices will be consistent across servers.
    But that's still rather irrelevant.    Application that is designed to work in a redundant environment should not be dependent on logical devices like /dev/rdsk being the same.
    So ... in effect this is also not a question for the Solaris forum,  but rather a question for those familiar with RAC,  how to configure such that device access is done "safely" through actually identifying the lun rather than assuming /dev/rdsk are consistent.

Maybe you are looking for

  • Kodo 3.0.0 Released

    Hello All, SolarMetric is happy to announce the general availability of Kodo JDO 3.0.0. The latest version of Kodo JDO is the most powerful ever. Full release notes can be found at http://docs.solarmetric.com/relnotes.html. A list of the major change

  • Distinct on Select Clause

    Hi I have problem with Distinct clause in Physical SQL getting generated. It has distinct by defaul. I searched through this blog and found in BMM-->Content Tab and "Select Disctinct" is not check for any of my tables used in Report/Query. Still it f

  • Can holdability of a cursor be changed?

    Hi, Once you have opened a cursor with desired holdability, is it possible to change it later using jdbc? thanks, Mamta

  • Back UP messages on 2600 Classic

    Hello With PC Suite 7.0.9.0 and a Nokia Classic 2600, I can not restore my message The Back-up message always says that there is a problem back-uping Messages However it tell the correct amount of message and I can see them in the .nbu file

  • Timestamp Error when calling Encrypt and Signed Web Service

    Hello, I maked one Web Service in the Oracle Service Bus 10gR3 that supports Encryption and Sign, basically inserting (manually) this on WSDL Contract: This two namespaces: xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity