Problems when views containing subqueries and the parentheses of engineering reverse

I am running questions when using Data Modeler to reverse engineer Oracle views.  A problem occurs if the SQL view contains a subquery, one more question if the SQL view contains parentheses more than necessary.  Unwanted results include: views not valid, the main request being removed from view, leaving just the subquery, the schema name be stripped from the SQL and produces an error when testing the query and the view SQL completely deleted/ignored.

Thanks in advance for your suggestions.

Environment:

Version 4.0.2.840 SQL Developer Data Modeler, build 840

Running on Windows 7 Professional SP1

Oracle Database 11.2.0.4, running on Oracle Exadata

Steps to reproduce:

1. the installer for the test:

Create table 1A. for points of view

CREATE TABLE test

(col1 VARCHAR2 (10))

Col2 NUMBER

col3 DATE

);

1B. create a view with a subquery and parentheses "extra".

VIEW to CREATE or REPLACE test1a

AS

(SELECT * FROM biuser2.test WHERE the col3 =)

(SELECT MAX (test.col3) FROM biuser2.test

)

);

1 create a view with a subquery, without the parentheses 'extra '.

VIEW to CREATE or REPLACE test1b

AS

SELECT * FROM biuser2.test WHERE the col3 =

(SELECT MAX (test.col3) FROM biuser2.test

)

;

1. create a view by specifying different column names, followed by parentheses 'extra '.

VIEW to CREATE or REPLACE test2a (vcol31, vcol32, vcol33)

AS

(SELECT col1, col2, col3 FROM biuser2.test

);

1. create a view by specifying the names of different columns, without the parentheses 'extra '.

VIEW to CREATE or REPLACE test2b (vcol31, vcol32, vcol33)

AS

SELECT col1, col2, col3 FROM biuser2.test

;

2. run Data Modeler (stand alone, although the built-in SQL Data Modeler developer seems to work the same)

Import of data, including the test table and all dictionary the views of trial 4.

Any import, all 4 views have yellow triangle! icon indicating the points of view that must be analyzed, Parse old views of Style.

3. right click and select "Parse of old views of Style" for each of the 4 views.

Status of views are now:

TEST1A: red triangle! icon

TEST1B: disabled icon

TEST2A: still has the yellow triangle! icon

TEST2B: disabled icon

TEST1A 4A.

Right-click, selected Validate views has no effect.

Examine the properties TEST1A

Examine the query Query Builder

Warning window will appear: parse error: could not parse the SQL query. Invalid SELECT statement. Unexpected token ') "in line 2, pos 7

Click ok, the displayed query is:

SELECT MAX (test.col3) OF biuser2.test

)

)

Result of 'test the query.

SQL:

SELECT MAX (test.col3) OF biuser2.test

)

^

)

Error at line 2, column 6:

ORA-00933: SQL not correctly completed command.

TEST1B 4 b.

Examine the properties TEST1B

Examine the query Query Builder

displayed query is:

SELECT

TEST. COL1,

TEST. COL2,

TEST. COL3

Of

TEST

WHERE

TEST. COL3 =

(

SELECT

MAX (TEST.) COL3)

Of

TEST

)

Results of 'test the query:

SQL:

SELECT TEST. COL1,

TEST. COL2,

TEST. COL3

OF THE TEST

^

WHERE TEST. COL3 = (SELECT Max (TEST.) (COL3) TEST)

Error on line 4, column 5:

ORA-00942: table or view does not exist

Preferences for the Data Modeler: DDL: include the defined schema in DDL

Note that BIUSER2 schema name was stripped from the SQL

4 c. TEST2A

Examine the TEST2A properties

Look at the generator query of query

No SQL appears

Results of 'test the query:

Nothing, if you use "test application" of the display properties window.

Query executed successfully, so by clicking the green checkmark in the query designer window

4 d. TEST2B

Examine the properties TEST2B

Look at the generator query of query

displayed query is:

SELECT

TEST. COL1,

TEST. COL2,

TEST. COL3

Of

TEST

Results of 'test the query:

SQL:

SELECT TEST. COL1,

TEST. COL2,

TEST. COL3

OF THE TEST

^

Error on line 4, column 5:

ORA-00942: table or view does not exist

Hello

It seems that the problems with validate selected views and Parse old views of Style both TEST1A and TEST2A occur as a result of the view being defined with the SELECT initial placed in brackets.

I logged a bug about this.

Regarding the result of your Test request, you should be able to get this works using a connection that uses your username biuser2.

When the Test Query window, you must set the login field at the top of this window to your biuser2 connection.

In the case of TEST2A, it has "successfully" carried out an empty SQL string!

David

Tags: Database

Similar Questions

  • I have problems when I minimized windows and try to open a new window will open all minimized windows as well as the new window. He just changed when mozzilla updated. He has not done this before the update.

    I have problems when I minimized windows and try to open a new window will open all minimized windows as well as the new window. He just changed when mozzilla updated. He has not done this before the update. Before the update if I had minimized windows they would be reduced when I opened a new window. Need help please, I guess it's just a setting somewhere but I can not understand where is the parameter. Thank you jason

    http://about.ask.com/APN/toolbar/docs/default/FAQ/en/FF/index.html#Na4 is Ask FAQ on how to uninstall the toolbar.

  • I'm having a problem when I open My Documents, the window opens and looks great, I can go to any folder and open it and all is well again

    I'm having a problem when I open My Documents, the window opens and looks great, I can go to any folder and open it and everything is well again, however if I then opened my pictures, and then open a file... some files, less than a second after they are open [and the pictures show] will make the window My Documents to disappear also all the desktop icons disappear the computer will then will reset it self , add all the icons and waiting for me to do something.

    I have no idea where to start looking for this problem.
    I do not have a disk operating system is
    When I try to save an attachment, as in email, Explorer opens, I choose a location to save it, then immediately Expolrer closed! I can't save an attachment

    Hello Philipwk,

    Thank you for your message.  Please provide comments to a few questions so that we can better help you get your problem solved.
    1. are there recent changes made to your system, namely the hardware or the software?
    2 How long present this problem?
    Here are two methods to try, please try in order.  If a system restore fix the problem, do not perform step 2.
    Step 1:
    Run a system restore to before that was the problem.  Please click the link below to get instructions from system restore.
    Step 2:
    Create and test the new user profile.
    Click 'Start' > right click on 'My computer' > select 'manage '.
    Double-click 'Users and groups' > below, select "users".
    In the pane, right click on the space empty and select 'new user '.
    Enter the identification information you will retain and select OK
    Right-click the user account that you just created, and then select "Properties".
    Select the tab "member of" > click on "add".
    Type Administrators in the field and select "check name".
    Once administrators is added, click OK
    Disconnect and connect again your new account, opening pictures with your new trial account.  You can even browse your other photo folder by going to the following location:
    c:\Documents and Settings\ (user account) \My Documents\My images
    If it works, your profile has been altered somehow.  You can then start to copy your data from your old profile to it.
    Please let us know if it did or did not work for you.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • After purchasing the software to export PDF online when I try to perform a "file/save under ' when viewing a document on the web, it hangs to the top of the windows Explorer.  I get "file save as - does not.

    After purchasing the software to export PDF online when I try to perform a "file/save under ' when viewing a document on the web, it hangs to the top of the windows Explorer.  I get "file save as - does not.

    Hi douglash21414001,

    I think maybe it's a coincidence, that nothing is installed with ExportPDF, so nothing should have changed your web browser. That said, you can clear the cache of the browser and then re-open your browser. (What browser do you use?)

    You can also try to restart your computer, if the browser is restarted does not solve the problem. But still, I don't think that this problem is related to the ExportPDF.

    Please let us know how it goes.

    Best,

    Sara

  • Problems with sorting of columns and the number of lines in the report

    Hello

    I'm having a problem with sorting of columns and the number of lines displayed in a report.

    This report displays the data correct, but if I try to sort on a column when I click on the column heading in the report returns no line... I need to click on the "go" button to refresh the report (with the column sorted now) in to display the data.

    Similarly, I display only 15 lines per page. If I try to view the lines 16-30, 31-45, etc., that it returns no line until I click on the 'go' button to refresh again.

    Has anyone else had (and overcome) the same problem?

    Thank you

    Joseph

    Joseph,

    2 questions:

    1) are you using the elements referenced by the report page to filter etc.. ? If so, you're failing values of these when the loading of the page?
    (2) are you using PPR page through the results?

    If so, it could be a problem with the different types of session state, as Anton Nielsen blogged about here:
    http://c2anton.blogspot.com/2008/12/Oracle-Application-Express-Apex-three.html

    If so, you can use calculations or processes to set element values in session state persistent during page rendering, as Anton mentions. In this way, when you use PPR page values will be available in session state and your report should work fine.

    Anthony.

  • Windows media player error "Windows Media Player has encountered a problem when you try to read the file" after burning CDs.

    Original title: "missing songs" in my windows media player then burn them on several cd :((

    I burned songs to several cd using my Windows media player to make different Cd, but after I returned to my library all the songs that I burned to the CD have disappeared, they are there, but they won't play it is as if they have been deleted, a window appears saying that windows media player has encountered a problem when you try to play the file. I did not notice this until after Cd burning a few I can't do more because if I keep going I'm not going to have more songs in my library! I don't know what to do im going crazy, it took me a long time to get all of these songs and now he disappeared! I have Windows 7 Ultimate is the version 12.0.7601.17514 hope that helps

    Hello
     
     
    They were playing before you burn CDs?
     
     
    Method 1:
    Open the troubleshooting Windows Media Player settings Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Method 2:
    This problem may be due to database corruption. You can delete the Windows Media Player database and check if the problem persists.

    Steps to clear the database of windows media player:

    a. exit Windows Media Player.
    b. Click Start, run, type %LOCALAPPDATA%\Microsoft\Media Player and then click OK.
    c. Select all files in the folder and then click on Delete on the file menu.

    Note you don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. Click Start, click Run, type % LOCALAPPDATA%\Microsoft and then click OK.

    c. Select the Media Player folder, and then click on Delete on the file menu.

    d. restart Windows Media Player.

    Note Windows Media Player automatically rebuilds the database.

  • Start up problem when having multiple databases on the machine

    Start up problem when having multiple databases on the machine:

    I installed two databases.

    When I stop the database and try to start using

    Startup pfile ='... location... " ;

    I get ora-12514: TNS: listener is not currently know of service rquirest in connect descriptor

    When I try again after 3 seconds, I get a new error, ora-01041: internal error. Hostdef extension doesn't exist

    Stop and start gave no problems when I had a database. Why I get problems when I have two databases?

    I use: show the pfile parameter. SPFile; to make sure that I have the right parameter locations, the error should not be the location.

    I never installed two databases on a single machine, then perhaps that I make mistake of a first - timer.

    Anyone know how to get this working, i.e. start and stop DB without problems?

    The oracle 11 GR 2 on Windows 7 64 bit, everything works normally.

    Thank you
    Ayman

    Published by: aymanzone on June 15, 2011 09:27

    aymanzone wrote:
    My oracle_sid is set to the name of one of my databases

    echo % oracle_sid %

    shows me the name of my first database.

    Still does not.

    When I start the services of two databases by using Services, I can connect and run queries both the database.

    Published by: aymanzone on June 15, 2011 11:47

    First of all... the Oracle Service for the instance must be started for the DB that you try to connect or start.
    Next... from the command prompt:

    Set oracle_sid =

    sqlplus sys as sysdba

    Startup pfile = 'location of the pfile respective db.

    Now, if you want to start or connect to another DB, which is on the same server (again assuming that the Service is STARTED)...
    From the same command prompt or other session...

    Set oracle_sid =

    sqlplus sys as sysdba

    Startup pfile = 'location of the pfile respective db.

    Published by: Srikanth on June 16, 2011 12:27 AM

  • Presario cq61: I have athe same problem I'm presario cq61 and the error is 55067138lunch

    I have athe same problem I'm presario cq61 and the error is 55067138

    @hatchethouse

    Enter: 40945118

    Kind regards

    DP - K

  • All my .exe files have been removed. as well as system32\rundll32.exe... How can they be retrieved when no file opens and the system restore will not work.

    Original title:. Nothing works.

    All my .exe files have been removed. as well as system32\rundll32.exe... How can they be retrieved when no file opens and the system restore will not work. I can't install a fixit program or run anything at all.

    Safe mode?

    Looks like you have a virus/trojan/worm infection pretty good...

    Actually, even if you get executables run again - you can be (read as "will be") better off the coast of a new facility.  Wipe and install media with your product key and other serial numbers and installation for other products media you own and restore your last recognized reliable backup for your files.

  • Having a problem with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular.

    I recently tried to remove malware on my Vista based laptop Toshiba.


    I recently tried to remove malware on my Vista based laptop Toshiba. Malwarebytes helped, but I still have problems with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular. I tried to download from a copy of the USB stick to a clean computer, but he still refuses to load telling me to check my internet connection, which is fine for general use. Please help I get crazy and do not forget that I am a pure layman - thank you if you can help - Kidso

    I found that the best place to ask this type of question is here: -.

    http://forums.ComputerActive.co.UK/forumdisplay.php?f=20

    There are some very good people out there who helped me (successfully) on 2 occasions.

    Good luck.

    I'll be interested to know how you go.

  • When viewing photos freezes and goes back to the home screen.

    When viewing photos and videos on windows 8 it sometimes stops as your scroll and dates back to the home screen

    Hello

    Were there any changes (hardware or software) to the computer before the show?

    Perform the steps suggested by DRASTOKLOP from the link mentioned below if you have Kaspersky installed on the computer and see if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-pictures/Windows-8-photos-app-calendar-messaging-and/ef672ca8-8e92-418f-AA60-155bd94d0942?msgId=6f3aa7c2-FEFF-4FDD-a9b0-5d10ea4e604b

    Answer please if you have any questions.

  • A slight color and quality shift when viewing RAW files for the first time in the library Module.

    Hello

    I've been shooting RAW for awhile and have notice that after I import the images and then begin to view in the library Module, I see a light color and quarter of quality - almost looks like a shift in the balance of whites, but not quite.   I thought that maybe there was some preset automatic applied but I do not have all of the presets.

    I'm shooting with a Canon 1DX and 7 d.  I have not checked to see if I get this situation with the 7 d, but I know for sure that I understand with the 1DX.

    Today I have passed through a few images in Bridge and decided to open one in Camera RAW.   At that point I found out that the Style of the images of the camera settings are available, faithful, Standard, Portrait, etc..  I noticed that the images did not camera styles applied to them, but rather the Style Standard Adobe have. At this time there in RAW I chose one of the styles of the camera and the bingo that's the kind of change that I see when I first discover an image in the library of LR4.

    So I can say that the RAW images are becoming the Adobe Standard style applied in LR.   I don't know if it's a default behavior of if I did something to make.  I think also that maybe LR not necessarily applies Styles of the camera automatically even if the particular style has been in the camera - is perhaps not imported as part of the metadata during import and so the default Adobe Standard.

    I guess what I need to know a few things and I hope that someone can educate the beginner!

    1 should I expect LR4 to apply the Style in the game of the camera automatically or not at all?

    2. can I prevent LR to apply the Adobe Standard Style and apply no style?

    3. can I cause some LR apply the Style as set out in the camera for the particular image to be appied automatically when importing?

    Thanks for any guidenace you can offer.  Of course if you need further information or clarification please let me know.

    Scott

    This sounds like what you see, Scott? Why the color or tone of my image changes after import?

    http://forums.Adobe.com/thread/358016

  • Problem with DW CC 20141 and the BC add on

    Hi all

    I had this problem on my computers that I have Dreamweaver CC 20141 installed on both.

    I used the program for a while, but all of a sudden on open it I am unable to connect to Vancouver to download a new site and start working on it using Site/site management in the top menu.

    Instead I get redirected to a page to download the BC add on. When I connect to download it, I said I already have and not give me a link to download.

    Measures to address this are:

    1. conclusion of DW

    2. go to Creative Cloud (figure 8) and open it.

    3 make sure you sync files option is enabled

    4. download the Add on Manager.

    5. start add on Manager and make the round in circles for some time using add it manager to uninstall, and the Web page to download the app to BC to uninstall and reinstall the application.

    6. start and leave off DW while doing these steps (sorry, I couldn't work on a logical sequence of things to do in steps 5 and 6)

    7. Finally, DW CC 20141 will BC app and you will be able to connect to BC and download site you want to work on

    However once this is done, when I worked in CC DW the preview for the template I worked on had an error 404 for the model, so I couldn't split view in DW how looked at the page on the site.

    If I had to go back to Adobe Creative Cloud app and disable the synchronization of file to see how the page is in split view.

    I think that there is something wrong with DW CC 20141 and synchronization of files in the Adobe Creative Cloud application.

    Hello

    In case you still experience this issue, please try some suggestions mentioned here,

    Re: Business Catalyst Extension does not not since upgrade

  • 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.

  • View 4.5 and the smart card configuration

    Hi all

    I encountered a problem which I hope one of you can help me with.

    I install a new server connection view, v4.5 on Windows Server 2008 and everything works fine. I can browse to display administrator connect to a virtual computer by using view Client and also with a thin client. So all is well.

    The problem comes when I try to configure smart card authentication. I created a locked.properties like the documentation file, placed in the install_directory\VMware\VMware View\Server\sslgateway\conf\locked.properties has the status of docs, restart the service and now nothing. Cannot browse to the administrator of the display, unable to connect with View Client or thin client. I tried to start and stop ALL services on the machine vMware, restarted the machine and still nothing.

    I deleted the locked.properties file, rebooted the machine, nothing. If I uninstall and reinstall see connection to the server, everything is fine, but as soon as I add in locked.properties, all works again.

    The content of my locked.properties is:

    trustKeyfile = mystore.key

    trustStoretype = JKS

    useCertAuth = true

    The key file, mystore.key, was obtained using the keytool utility and copied in install_directory\VMware\VMware View\Server\sslgateway\conf, as the docs state.

    I'm just ideas on how to solve this problem.

    Sounds like something in your trust store causes a problem when you start the Secure Gateway service.

    When you started your broker with the locked.properties in place, the service "VMware View security component of gateway" stops shortly after startup? There may be an exception in the newspapers of debugging describing such a problem, near a line similar to:

    2010-12-01 14:38:03, INFO 199 generating managers trust for authentication of the client

Maybe you are looking for

  • 2000-2B19WM HP: 2000-2b19wm recovery disk

    Where can I find the disc of recovery for this laptop?

  • Power supply necessary for Satellite 110CT/810?

    Hello The Junk cupboard in past I came across my old Toshiba laptop on which I am now running Damn Small Linux. The main problem is that I don't remember if that model uses a power supply or if it plugs directly into power, being built in transformer

  • My printer hp deskjet 2500 series will not print PDF

    I just installed my printer yesterday and finally managed to print on my laptop with my ubs agreement. However, I tried to print a document to PDF file today and my printer does that emit a noise, then the print job disappears off my computer. I don'

  • HP Compaq Presario CQ58: password Requiment

    I forgot my admin password or password power and after entering the password 3 times it gives me the following sms "Sytem Diabled [76859868]" Please help

  • Installation of server Windows FAX - FAX to email

    Dear Sir. I would like to set up a Windows fax server, using that, I have to be able to send and receive faxes by email. I have more than 2000 users on my AD domain name and you want to enable this feature for all users that never has an e-mail accou