Problems with views based on a hierarchical query

Datamodeler 3.1.3.706 (SQL Dev 3.2.10.09):

When you create a view that uses a hierarchical query, the query designer encounter various difficulties:

When pasting in the SQL code, if the notice is registered without first clicking the schema update button, the object in the entity-relationship diagram view provides a faithful representation of the view without errors, but when the reopening of the view, the code is missing.

Simple example with the classic emp table:
SELECT level lev
      , emp.*
   FROM emp
  CONNECT BY prior empno = mgr
  START WITH mgr        IS NULL
If you press the schema update button to refresh the display. He mangles connect it by the clause and the view gets marked with a warning/error icon in the diagram of the relationships, but the now decomposed code remains available on reopening of the query designer.

Same code as above after having clicked on the button of update of schema:
 SELECT Level lev
, emp.*
   FROM emp
  CONNECT BY
Other issues are met if the query contains a column CONNECT_BY_ % nickname hierarchical:
SELECT level
      , emp.*
      , connect_by_root emp.ename root_ename
   FROM emp
  CONNECT BY prior empno = mgr
  START WITH mgr        IS NULL;
In this case, paste in the code and clicking Update schema button or the OK button translates into a "unexpected Token' error analysis.

These problems are encountered with the logic model and the relational.

Is this a known issue? I searched this forum but have not found any references to this.

Thank you

Sentinel

Hi, Sentinel,

I logged a bug for this.
You can try 3.3 DM treat it better first problem, analysis of connect_by_root operator will pass if you do not alias.

Philippe

Tags: Database

Similar Questions

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Problems with views. When no data I have to delete and recreate it

    Hi all.

    I have a problem with views. From time to time I can't see the data from the query, and I have to file the notice and then create it again, after that it works.

    Any idea?

    Best regards

    Hello.

    The benefits of joining is correct.

  • USB problems with view 5.3

    I have problems with view on an Atrust W100 5.3 zero client attempts to use a Magtek USB card.  When I plug the blow of the card into a USB port and the test with the notebook, the device works, but when I try to slip something in QuickBooks POS there are missing characters and the card is not recognized.  I contacted MagTek and they pointed me to a download that I can run and slow the flow of data entry, however when I try to run it it is unable to recognize any USB device.  Is there anything I can do to get this MagTek card reader to work with the view 5.3?

    Thank you

    Looks like you're not actually redirecting the USB device, and instead it is considered a local keyboard to the zero client, with the keystrokes that results from being sent all over the office. Teradici have a tech support article detailing how to make USB devices which, by default, are kept up the:

    https://TechSupport.Teradici.com/ICS/support/KBAnswer.asp?questionID=616

  • Find the name of the view based on a sql query

    Can anyone suggest me how to find the name of the view based on a sql query? When I try to the following select statement:
    select view_name from user_views where text like '%SELECT * from TABLE%';
    but I get this error:
    SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got LONG
    00932. 00000 -  "inconsistent datatypes: expected %s got %s"
    But as I notice that the TEXT column is really LONG to type... Are there any other table system that store information about the text using each view?

    See this example, using DBMS_METADATA. GET_DDL:

    Re: Search text in column

  • Problem with flash based Web pages and re - install windows

    Hello!
    I bought the Toshiba NB100 and use the netbook for a few weeks. At first, it worked all fine and exceeded my expectation.
    However, since one some time he experiences trouble with performance based on flash Web pages such as youtube and etc, which makes it not not possible to stream any video smoothly. Basically, it's a fast-paced photo slideshow :(
    The problem here is certainly not the performance mode, which is set at the maximum.
    I tried to get through this problem with re - install the operating system, which is windows XP, but after transfer of the content produced the DVD on a flash drive recovery, the system does not have a configuration menu. It gives me an error report instead.
    * I put the following qustions you: *.
    * 1. What can be the reason for slow running applications? *
    * 2. I'm doing something wrong when you reinstall windows? * Ts here a simple manual for the resettlement of the op?
    Comments, suggestions and advice will be much appreciated and I thank you in advance.

    So you have installed a generic version of Windows XP?

    You may have forgotten to install the drivers graphics and other critical drivers such as the Intel Chipset driver.

    You see problems in Device Manager?

  • Problems with view 4.5 and PCOIP screen resolution.

    I know this question has been asked before, but I have yet to find a solid solution. The last activity that I saw on this was in October 2010, so I thought I would like to start over rather than resurrecting an old thread. Please see below the description of the problem.

    We have a number of XP virtual machines configured in a dynamic pool for our users. The pool settings are configured to allow a maximum of 4 monitors, with a resolution 1920 x 1200 on each monitor max. Users report that when they log in and try to change the resolution, the settings tab in the display properties page disappeared.

    Thanks to this research, I stumbled upon VM KB article 1020809, updated less of a month earlier, indicating a fix for this problem (changing the registry NoDispSettingsPage value to 0). I did it on my main template, however, when users log in is set to 1 return.

    There was also a thread in this forum who suggested changing the option multi-screen in the settings of the Pool to 1, leaving vCenter update, then change it back and then by a stop and start on all machines. I tried as well, but it has not solved this problem.

    Finally, I tried to turn OFF the option to hide the Group Policy Settings Page, but the setting remains at 1. Can I change the resolution of the screen via a script (it does not persist by a closing/opening session, that is another matter), but can not get the settings tab appears.

    I saw there is a model adm for Vista or Windows 7, but I am not mistaken, is there anything more that can be done to XP? I can't understand why this keeps getting ready again to 1 and am hoping that my users will not at all be stuck with a resolution of 1920 x 1200. As a side note, if I change it programmatically, what (s) do I need capture to have persist through a logoff (we use a third-party management tool ProfileUnity call profile)?

    Any thoughts would be much appreciated.

    What is the native resolution of the screens in use? I found that view will automatically set resolution in accordance with the native resolution. At least that seems to be the case in my situation.

  • Problems with the primary key of the query string

    Moving from asp to php, to work with David Power's book: The Essential Guide to Dreamweaver CS4 with CSS, AJAX, and PHP.  Recycling of my brain, so starting from scratch in the learning process.

    Everything was going perfectly until I tried to add the primary key of a record in a query string.  I compared my code with the example code for the book, and everything matches.  When previewing the page in my browser and hover over the link which must pass the main code on the next page, the query string does not appear correctly.  It shows user_id = but no figure shows, as it is supposed to.  www.webpage.com/update_user.php?user_id=

    Here is my code: (Please note, <>have been removed, as I was unable to find a way view the code in the correct way here (copy/paste was doesn't work do not, nor insert syntax))

    ? PHP {?}

    ? PHP echo $row_listUser ['family_name'];? PHP echo $row_listUser ["FirstName"];?

    ? PHP echo $row_listUser ['username'];?       ? PHP echo $row_listUser ["admin_priv"];?

    a href = "update_user.php? user_id =? php echo $row_listUser ['user_id'];?" "Edit / has

    a href = "delete_user.php? user_id =? php echo $row_listUser ['user_id'];?" ' Delete / has

    ? PHP} while ($row_listUser = mysql_fetch_assoc ($listUser));?

    Any ideas that could help me understand why this part does not in particular would be greatly appreciated.  Writing to the database worked perfectly, I see that there are numbers in the database as user_id, and it is defined as my primary key in the configuration database.  Such a simple process that is causing me headaches!

    Thank you

    You have the code to request a copy in your folder:

    $query_listUser = 'SELECT user_id, username, first_name, family_name, admin_priv from users ORDER BY family_name ASC';

    $listUser = mysql_query ($query_listUser, $connSCFDIR) or die (mysql_error ());

    $row_listUser = mysql_fetch_assoc ($listUser);

    $totalRows_listUser = mysql_num_rows ($listUser);

    $query_listUser = 'SELECT username, first_name, family_name, admin_priv from users ORDER BY family_name ASC';

    $listUser = mysql_query ($query_listUser, $connSCFDIR) or die (mysql_error ());

    $row_listUser = mysql_fetch_assoc ($listUser);

    The $listUser table will contain the results of the second query, which does not include the field user_id. delete the redundant code.

  • Problems with View Composer / vCenter 4

    Hello

    I upgraded my server vCenter v4 yesterday (build 162856) and ran into problems of performance and pages of material due to a collision with the port 8443 - that was used by the View Composer.

    Then... I moved my View Composer 18443 port number, that makes all the cunning vcenter work, but now does not work my composer. I changed the port in the overview Manager it connects to and I can get as far as the button complete, when I create a new pool configured automatically. vCenter then creates the folder for him and he removes (or almost) immediately. View Manager then up a ' composer of internal error. Contact your system administrator.

    In the newspapers, a Java error is reported: ' problem setting HTTP connection:

    javax.net.ssl.SSLHandshakeException: remote host closed connection during

    handshake. "

    Any suggestions gratefully received! I'm guessing that something is always looking for an answer on port 8443, but I don't know what!

    See you soon,.

    Iain

    Probably during the 2nd half of ' 09...

  • Problem with 'View' of defaule settings.

    Running an older system, XP Pro with MS Office 2000 Small Business. In 'view', ' rearrange icons by > ', my flash drives boils down to "Auto arrange", instead of "Snap to grid", which is how I want the page layout. However, the storage hard disk a folder in "My Documents" do not go back. How to change this default setting on my flash drives? One is a 4 gb Lexar, one is a 2 GB generic. Only Word documents are on these files.

    Hello

    You can check the steps in the link below and check if that helps.

    How to modify your folder view settings or customize a folder

    http://support.Microsoft.com/kb/812003

  • I have problems with viewing and downloading videos

    Hi I'm trying to watch videos in youtube and windows media player, but I can't do it. I use Windows XP Professional when I start watching a video, it starts to download and then I get the circle to peas autour going around and around but it does not play when she plays it stops and how can I solve this problem?

    Thank you
    E-mail address is removed from the privacy *.

    Hi upthearts,

    One of the possible reasons could be the speed of the internet thanks to which time can take to the buffer. It has one or more of the following could cause this;

    ·         The Internet connection speed

    ·         Amount of RAM (Random Access Memory) used on the computer

    ·         Amount of memory available on the computer

    Method 1: You can pause the video and let the video buffer for a few minutes before selecting the 'Play' button again. Giving the download a few minutes to catch up while the video is paused can help solve the problem.

    When the bar of State indicates the video transfer or the download is complete, resume playback of the video using the controls.

    Method 2: You can also contact your ISP (Internet Service Provider) to check connection problems.

  • Problems with interest-based ads

    I use BT Yahoo mail and Firefox 9.0.1. BT Yahoo ads are totally inappropriate for me and are driving me crazy, but when I try to change them by using chioces reasoned Yahoo ad they say that my browser does not support the reasoned ad chioces. Is that what I can do, apart from changing Firefox or Yahoo?

    Why just block these ads?

    AdblockPlus

    https://addons.Mozilla.org/Firefox/1865/

    In addition, read this:

    http://adblockplus.org/en/Getting_started

  • the problem of reuse based on the functions

    I read the text in quotes as follows a book written by a Microsoft Developer. I googled and found a good number of citations of it, but did not find any explanation.

    ============
    With languages like C, the basic unit of re-use is the function. The problem with reuse based on a function, is that the function is coupled to the data, he manipulates. and if the data world, a change to a function in the context of re-use infringes another function used somewhere else.
    ============

    C using the libraries widely, which is to reuse based on functions. Kindly can anyone give me a scenario where this problem occurs?

    Java is usually based on objects for reuse, and I confess that my question is not a Java. But I think that would help to better understand the concept or the benefits of the Java language design. So, thank you for allowing me to ask this question here,

    Published by: 799160 on September 30, 2010 12:38

    Published by: 799160 on September 30, 2010 12:57

    That's what I came to read the quote you posted:

    I guess something like the following might happen:

    You (being a person in General) have received a class change. You examine the code for the first time, and it has a bunch of methods and variables of class in it. Some methods use class variables. How can you be sure that if you change the functionality for editing a class variable in one method will not affect the other methods when they are used? This problem can be solved by learning everything that is and how it interacts, the correct way to use it. But then again, if you don't think about it and to make changes... Oops!

    -----

    Maybe another abstract example would be wise:
    Imagine a calculator that could be used by 2 people at the same time? I bet it would come with a few funny answers :)

    -----

    I hope that I wrote a short example of this, he makes some sense:

    public class SuperBigProgram
    {
         private int globalVar;
    
         public static void main ( String[] args )
         {
              new SuperBigProgram();
         }
    
         public SuperBigProgram()
         {
              System.out.println("I'm a super big program.");
    
              globalVar = 0;
    
              //Let's pretend these series of events occur during the program:
    
              doItHighChanceActivity(); //1
              doItHighChanceActivity(); //2
              doItHighChanceActivity(); //3
    
              //Whoops super rare event occured!
              doesNotHappenALot();
    
              doItHighChanceActivity(); //4????    but is really 5.
         }
    
         /**
          * This happens A LOT!
          */
         private void doItHighChanceActivity ()
         {
              superUtilityMethod();
    
              System.out.println("globalVar: " + globalVar);
         }
    
         /**
          * This utility method does some awesome utility stuff for our Super Big Program.
          * This changes some global data.
          */
         private void superUtilityMethod()
         {
              globalVar++;
         }
    
         /**
          * This does not happen a lot, if at all.
          */
         private void doesNotHappenALot()
         {
              //Hey I don't happen a lot but I'm reusing this really cool utility method that contains global data...
              //Code reuse for the win!
              superUtilityMethod();
         }
    
    }
    

    Here is the result:

    I'm a great big program.
    globalVar: 1
    globalVar: 2
    globalVar: 3
    globalVar: 5

    Published by: kilosi on Sep 30, 2010 13:22

  • Need urgent help - what is the problem with my request?

    Hello

    I am trying to solve a problem with my request... and we tried a lot of things. When I open the report in Word and try to build my model, I can't insert fields from a particular query. He don't develop in the browser field as my other data sets and is not listed as an option in the table Wizard.

    There is something weird with the support of the subquery? I have encourted some problems with column aliases (for example, the query just doesn't if you create aliases), that's why I alias in the subquery.

    The query runs very well in SQL Developer.

    I would really appreciate help with what is a customer demand very urgent

    Thank you
    SELECT b.cb_no as "CB No",
           b.ir_no as "IR No",
           b.name as "Arrestee Name",
           b.fbi_descr as "Type",
           b.statute_descr as "Description",
           b.fbi_cd as "FBI Code",
           c.day as "Arrest Date"
      FROM building_fact a,
           (
             SELECT DISTINCT
                    t3.arrest_key as arrest_key,
                    t1.cb_no as cb_no,
                    t1.ir_no as ir_no,
                    t1.name as name,
                    t2.fbi_descr as fbi_descr,
                    t2.statute_descr as statute_descr,
                    t2.fbi_cd as fbi_cd
               FROM compstat_arrests_dim t1,
                    compstat_arrest_charges_dim t2,
                    compstat_arrests_fact t3
              WHERE t1.arrest_key = t3.arrest_key
                AND t2.arrest_charge_key = t3.pri_arrest_charge_key) b,
           compstat_date_dim_v c,
           building_dim d,
           building_incdnt_type_dim e
     WHERE a.building_key = d.building_key
       AND a.incident_key = b.arrest_key
       AND a.date_key = c.date_key
       AND a.incdnt_type_key = e.incdnt_type_key
       AND e.incdnt_type_descr = 'ARREST'
       AND d.address = :p_address
       AND c.day BETWEEN TO_DATE(:p_date_from,'MM/DD/YYYY') AND TO_DATE(:p_date_to,'MM/DD/YYYY')
     ORDER BY c.day DESC
    Published by: oroborus on January 19, 2010 16:26

    I think you have to wait until u get the data and then if not juice insert dummy data and carryon your developmet and say your ETL guy to clear all data and insert when loading

    ~ Srix

  • Problem with hierarchical query in function PL\SQL

    I have a simple table containing the ID of the parent

    -Create table

    create the table1 table:

    (

    ID NUMBER (12) not null,

    year number 4.

    month NUMBER (2),

    parent_id NUMBER (12)

    );

    -Create/recreate primary, unique and foreign key constraints

    change the table1 table:

    Add primary key constraint PK_TABLE1 (ID);

    change the table1 table:

    Add the foreign key constraint FK_TABLE1_PARENT (PARENT_ID)

    reference TABLE1 (ID);

    data:

    Insert into TABLE1 (id, year, month, parent_id)

    values (5, 2015, 12, 3);

    Insert into TABLE1 (id, year, month, parent_id)

    values (6 (2015), 12, 4);

    Insert into TABLE1 (id, year, month, parent_id)

    values (3 (2015), 11, 1);

    Insert into TABLE1 (id, year, month, parent_id)

    values (4 (2015), 11, 2);

    Insert into TABLE1 (id, year, month, parent_id)

    values (1, 2015, 10, null);

    Insert into TABLE1 (id, year, month, parent_id)

    values (2 (2015), 10, null);

    commit;

    and query

    with h as

    (select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t

    where t.year = 2015 and t.month = 12

    and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10

    connect by prior t.id = t.parent_id)

    Select * from:

    Join table1 t left t.id = h.parent_id;

    It works, but when I put this request in the procedure pl\sql

    create or replace procedure is get_report (p_cur_out on sys_refcursor)

    Start

    Open the p_cur_out for

    with h as

    (select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t

    where t.year = 2015 and t.month = 12

    and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10

    connect by prior t.id = t.parent_id)

    Select * from:

    Join table1 t left t.id = h.parent_id;             

    end get_report;

    /

    They do not compile. And in the fall, with the exception

    Errors of compilation for the PC of the PROCEDURE. GET_REPORT

    [Error: PL/SQL: ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], [], [], [], []]

    Online: 6

    Text: with h as

    Error: PL/SQL: statement ignored

    Online: 6

    Text: with h as

    My version of oracle

    1Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    2PL/SQL Release 11.2.0.3.0 - Production
    3CORE Production 11.2.0.3.0
    4AMT for Linux: Version 11.2.0.3.0 - Production
    5NLSRTL Version 11.2.0.3.0 - Production

    What is the problem with my request? Or database? How to solve this problem?

    If you have access to MOS, you can search the reason of it. If you are using left join syntax instead of joining ANSI, owner Oracle procedure compiles and returns the result.

Maybe you are looking for

  • Set up the 2nd screen using non-apple monitor

    iMac 21.5 "4K, 10.11.6 Add either a ViewSonic monitor #VA2055Sa, or #VX2253MH as 2nd screen. A monitor will be visible, but the resolution, which says VS. resolution goes up to 1920 x 1080, but don't not appear in the configuration menu. They have a

  • App installed fish cactus, can you connect is no longer at the admin page

    Hi all I'm having a problem where after I installed app Cactus of fish I can no longer connect to my admin page. Previously, go to myaddress:80 would bring me to the admin page. Now only myaddress:80 / admin leads me to the admin page and it crashes

  • System recovery fails on Satellite A30

    Im trying to restore my computer laptop gfriends form provided disks.I get about 5% and it omits much of the writing is going strong points that are below: Error number: (36000)Message: A general Exception occurredVersion: 7.00Command-line :-clone,mo

  • Creating custom shaped front panel

    I want to create a popup in personalized form (other than the rectangular shape). For this I created a green façade (0x00FF00) background color, placed the shape I want as a background image. Now the unnecessary part is in green. I then used a functi

  • zoom level on internet, programs, Wallpapers are stuck up

    A few weeks ago, the zoom level on my computer has changed at least 150%.  Desktop computer, all web pages, Word and even Adobe Photoshop are so large, a large part of the content of the page is off screen. I tried using Windows, but the answers are