Editing views in Oracle SQL Developer

Hi All,
I have only just downloaded Oracle SQL Developer and have vreated a view. Now I want to be able to go back to that view and edit. When I right click on the view, it gives the option to edit but my scripts to edit isn't there, morre or less telling me to start all ove r again.
Can some one help on this or am I just to new to the program.
Many thanks
Cube60

Hi,
I don't seem to get waht you mean. When I right click on my view, then I choose edit, then on the first tab, Entire SQL query, mine comes up as blank.
When inserting new records on a table with its primary keys based on sequence numbers, it does not automatically pick the nextval in the sequencce.
For example, before downloading SQL Developer, I used to work in SQLplus and I have created records and have now moved them from that table to history table for records purpose. Lets say I have moved or deleted records with empid 8 -101 to a history table without a link between my source table and my destination table. The next record I should be allowed to enter in SQL Developer should be 102 and not empid 9 as it presently does.
SQL> select seq_empid.currval from dual;
CURRVAL
101
Any comments or way round this?
Thanks

Similar Messages

  • How to maintain Entries for VIEWS in ORacle Sql developer

    hi gurus,
    Could you please help in maintaining an entries for VIEW is Oracle SQL develope...I have created a VIEW by name SD_WH08....now i need to maintain some entries in this for my testing purpose...how do i do this?
    Your help is very much appreciated.
    Regards

    What do you mean by "maintaining an entries for VIEW" ?
    K.

  • How to view execution history for any date in oracle SQL developer tool ?

    hi, i want to view some executed queries(2 months before) in oracle SQL Developer. if i press F8 it shows execution history for only last 30 days. is there any option(query) or something to view execution history for specific date ? i want to see some queries, which is executed before 2 months in my oracle SQL developer tool. Pls help me out.

    sb92075 wrote:
    943838 wrote:
    hi, i want to view some executed queries(2 months before) in oracle SQL Developer. if i press F8 it shows execution history for only last 30 days. is there any option(query) or something to view execution history for specific date ? i want to see some queries, which is executed before 2 months in my oracle SQL developer tool. Pls help me out.it will never occurWhy not? Are you a member of the product team that develops SQL Developer?
    To the OP, there is a forum for SQL Developer
    SQL Developer
    And there's also a sticky on the forum for product enhancement requests
    "Feature Requests, Extensions and General Collateral "
    Cheers,

  • How to conect to the Oracle 10 g Exp Edition from Oracle SQL Developer Tool

    Hi all,
    i have installed Oracle 10 g Exp Edition in my stand alone system(no internet connected to the system).
    I want to connect through Oracle SQL Developer tool.
    Can any one please tell me the steps involved in "how to connect to the Oracle 10 g Exp Edition from Oracle SQL Developer Tool ".
    Thanks in Advance.

    Creating a Database Connection
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldev/r30/sqldev3.0_GS/sqldev3.0_GS.htm

  • Viewing table relations inside Oracle SQL Developer

    Hi,
    I'm a PL/SQL beginner and I need to control the table relations for an Oracle database. I'm using the Oracle SQL developer tool.
    Now, how can I see the table relation inside Oracle SQL developer tool?
    Thanks

    itshak wrote:
    When working with tables based on user defined types, the FK relations between the tables are not displayed at the data modeler (and also at the worksheet query builder)
    I don't think that applies here 1041141 mentioned he is a beginner and did not mention any usage of object types.
    If you want to report an issue or possible bug, then please open an extra thread for that. In such a case it helps tremendously if you provide a working test case as well.

  • How to see job section in "Oracle SQL Developer"

    Hi,
    I am using oracle SQL developer to connect to oracle instance unlike procedure,tables,views i am not able to see job section (we have can see in toad as job section) please help me to get locate the same.

    There's no support for jobs yet. Vote on the existing feature requests at the SQL Developer Exchange if you want to add weight for future implementation.
    If you have trouble handling them manually, you can always ask help on the SQL And PL/SQL forum...
    Thanks,
    K.
    Edited by: -K- on 20/05/2009 12:27:
    BTW, there are some job reports (Reports - All Reports - Data Dictionary Reports - Jobs), but those will list only DBMS_JOB stuff, not the DBMS_SCHEDULER ones.
    You can also create your own reports and/or User Defined Extensions to add a Jobs node inside the connection navigator, but that's for more advanced users...

  • BUG in Oracle SQL Developer 3.0.04 on the "generating DLL" with comments?

    I'm newbie on oracle, but I think that I found out a bug in Oracle SQL Developer version 3.0.04 on the "generating DLL" tool using "comments".
    I will describe the steps that I gave:
    I created a view, but after I test it I had to change my “where” condition, so I comment the old code and then I wrote the new “where” condition below. After I done that I tried to look at the sql code of my view using “generating DLL” tool, but oracle sql developer only shown me half of the code, a lot of code were missing. Then I began with some test trying to understand what happen and I notice that if I put an invalid sql code in my comment the generating DLL start working with no problems, for example(pseudo-code):
    (COMMENT WITH VALID SQL CODE the "Generating SQL" don't work:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where time_stamp = (select max(time_stamp) from .....)
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    Generating DLL returns this(when the error occurs):
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    (COMMENT WITH VALID SQL CODE the "Generating SQL" work with no problems:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    I believe that "Generating DLL" tool have some problem with the comments, I also used /*...*/ to comment but the problem is still active.
    I notice as well that if I started to add some more comments along the code, the conditions migth change, so I think the problem is related with "comments" code.
    Would you mind telling me if this is a real bug or if I'm doing anything wrong.
    Thank you in advance,
    Rodrigo Campos
    Edited by: 894886 on 3/Nov/2011 5:29

    Hi Rodrigo,
    Thank you for reporting this. The only bug I see currently logged on a comment affecting the generated View DDL involves ending the last line of the definition with a comment, which treats the ending semi-colon (even if on a different line) as part of the comment. That is actually related to a low-priority bug against an Oracle database API.
    Unfortunately, your pseudo-code is a bit complex. Trying a few quick, simpler tests against the standard HR schema did not reproduce the issue. I tried INNER JOIN, and nested SELECTs. It would help greatly if you could provide a test case compilable against one of the standard schema, like HR or SCOTT.
    Regards,
    Gary
    SQL Developer Team

  • Getting the schema using Oracle SQL Developer 1.5.1

    I need to generate a report in CSV/XLS format using Oracle SQL Developer 1.5.1 to get the schema details
    in the below format.
    Table Name: XXXXXXXXX
    Table Space Name: XXXXXXXXXXXXXXX
    Structure :
    Field Name Data Type Size
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Field level constraint:
    Xxxxxxxxxxxxxxxxxx
    Table Level Constraint:
    Xxxxxxxxxxxxxxxxxx
    Indexes:
    Index Name Column Name(s) Table space name
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Sequence Number:
    Xxxxxxxxxxxxxxxx
    Triggers:
    Xxxxxxxxxxxxxxxxxx
    I am using a query to do that, but I cannot run more than one queries in the Create Report Dialog.
    I went to the Menu->View->Reports. In that, I chose User Defined Reports, created a new folder called Schema Detail and in that a report named Schema Detail. I right click on that report, choose Edit option, Create Report Dialog opens.
    In the Create Report Dialog, I chose the option Script for Value of Style.
    In the SQL column I enter a query "select * from table_names". But, if I enter another query after that, it does not run and reports an error "SQL Error: ORA-00933: SQL command not properly ended
    00933. 00000 - SQL command not properly ended" Cause:    Action: "
    I end the first query with a semi colon, but it does not work.
    The queries run fine in a SQL Worksheet. There, I can terminate the first query with a semi colon and enter the second query. Then, I run both of them together so that result-set of second query appears after the second.
    Am I doing something wrong? Can someone please advise on how to get the information I need?
    Thanks a lot.

    You can do it in SQL Worksheet because you are running a script. You could run the script in SQL*Plus, and even start it from a bat/cmd file.
    Or if you want this as a User Defined Report, you might make it a PL/SQL style report. Here, all output is done through DBMS_OUTPUT.PUT or DBMS_OUTPUT.PUT_LINE. You can output HTML tags or plain text. I have an example in my paper for ODTUG Kaleidoscope 2009.

  • Run sp from Oracle SQL Developer

    Hi,
    Anbody can help me to find why I cant' see output after running my simple sp lke below. When I ran create View from sql it's fine, I see <Statetement Output> window displayed, and see new View.
    Not the case when I do sp, I can compile it and get "compiled" status on Messages pane, not sure is't compiled sucessfully or not. But then pressing RUN green arrow, or right click - RUN nothing happenes, no new view, no any output.
    I defenetely has all rights to run sp as per our admin.
    Tx
    Trent
    create or replace
    PROCEDURE usp4 AS
    BEGIN
    execute immediate '
    CREATE OR REPLACE FORCE VIEW "USERMO"."V2c"
    AS
    SELECT "TDATE","AMOUNT","ESS" FROM TT_REG;';

    Tx, sb92075
    I see that you running it all from command line, right ?
    It's still different on my SQL Developer session, I don't have anything on messages pane and again I don't see output i.e. View created.
    Can anybody share opinions how to run this sp from Oracle SQL Developer? I expect to see newly created V2c View in my object list upon execution.
    create or replace
    PROCEDURE usp4 AS
    BEGIN
    execute immediate '
    CREATE OR REPLACE FORCE VIEW "USERMO"."V2c"
    AS
    SELECT "TDATE","AMOUNT","ESS" FROM TT_REG;';
    T
    Edited by: trento on May 4, 2010 1:29 PM

  • Error after update Oracle SQL Developer Migration Tools

    Hi,
    I'm receiving a error after the update of Oracle SQL Developer (v.1.1.3.27.66) to work with mySQL migration tool.
    This error appear when it´s restarting:
    Exception Stack Trace:
    java.lang.IllegalAccessError: tried to access class oracle.ide.net.IdeURLStreamHandler from class oracle.ide.net.URLFileSystem$1
         at oracle.ide.net.URLFileSystem$1.createURLStreamHandler(URLFileSystem.java:87)
         at oracle.ide.boot.URLStreamHandlerFactoryQueue.createURLStreamHandler(URLStreamHandlerFactoryQueue.java:119)
         at java.net.URL.getURLStreamHandler(URL.java:1106)
         at java.net.URL.<init>(URL.java:393)
         at java.net.URL.<init>(URL.java:283)
         at oracle.ide.net.URLFactory.newURL(URLFactory.java:636)
         at oracle.ide.layout.URL2String.toURL(URL2String.java:104)
         at oracle.ideimpl.editor.EditorUtil.getURL(EditorUtil.java:150)
         at oracle.ideimpl.editor.EditorUtil.getNode(EditorUtil.java:122)
         at oracle.ideimpl.editor.EditorUtil.loadContext(EditorUtil.java:91)
         at oracle.ideimpl.editor.TabGroupState.loadStateInfo(TabGroupState.java:950)
         at oracle.ideimpl.editor.TabGroup.loadLayout(TabGroup.java:1751)
         at oracle.ideimpl.editor.TabGroupXMLLayoutPersistence.loadComponent(TabGroupXMLLayoutPersistence.java:31)
         at oracle.ideimpl.controls.dockLayout.DockLayoutInfoLeaf.loadLayout(DockLayoutInfoLeaf.java:123)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:631)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:628)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:614)
         at oracle.ideimpl.controls.dockLayout.DockLayout.loadLayout(DockLayout.java:302)
         at oracle.ideimpl.controls.dockLayout.DockLayoutPanel.loadLayout(DockLayoutPanel.java:128)
         at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:356)
         at oracle.ideimpl.editor.EditorManagerImpl.init(EditorManagerImpl.java:1879)
         at oracle.ide.layout.Layouts.activate(Layouts.java:784)
         at oracle.ide.layout.Layouts.activateLayout(Layouts.java:186)
         at oracle.ideimpl.MainWindowImpl$6.runImpl(MainWindowImpl.java:734)
         at oracle.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Anyone knows why that is happining?
    Thanks in advance,
    Felipe.
    Message was edited by:
    felipe.b

    Hello,
    I get the same error after updating through Help->Check for Updates. I am at version 1.1.2.25 and the update does not change the version number of Oracle SQL Developer (Help->About), it remains at 1.1.2.25 (although if I look in extensions tab, it says: oracle.sqldeveloper 1.1.3.27.66 Loaded, possible bug in displaying version number?). These are the updates applied:
    Upgraded Extensions
    Oracle Microsoft Access Browser version 1.1.3.27.66
    Oracle SQL Developer - Snippet version 10.1.3.27.66
    Oracle SQL Developer version 1.1.3.27.66
    Oracle SQL Developer - Reports version 10.1.3.27.66
    Oracle SQL Server Browser version 1.1.3.27.66
    Oracle MySQL Browser version 1.1.3.27.66
    Oracle SQL Developer - Worksheet version 10.1.3.27.66
    Oracle SQL Developer - Extras version 1.1.3.27.66
    Oracle SQL Developer - SearchBar version 10.1.3.27.66
    Oracle SQL Developer - Object Viewer version 10.1.3.27.66
    I ran the update several times and was able to reproduce the error under a specific condition. If I am connected to a database at the time of the update I get the error. If I am not conneceted at the time of the update I do not get the error.
    As stated, by Donal, sql developer seems to get over the problem after restarting itself twice.
    Mark

  • How could I unlock the account HR in Oracle SQL Developer?!

    Hi Everybody! I am new with using ORACLE SQL Developer! and I just wanted ask how could I solve this problem: "ORA-28000 The account is Locked!" Please anyone can help me?? As I know, When you just need to make a new connection, you have to type "hr" as your username, and password! I hove done that many times, but it didn't work :(( I have also installed Oracle XE g11 and it seems that there is no problem with it, BUT my problem with the first program "Oracle SQL Developer!" PLEASE anyone can reply???
    Edited by: 894546 on 02-Nov-2011 14:09

    Hi,
    Apparently you have both SQL Developer and Oracle 11g XE installed, but is not entirely clear if you know how to create a connection. If not, you should first read the SQL Developer tool's Help|Table of Contents|SQL Developer Concepts and Usage|Getting Started... help.
    Or use the Documentation tab at http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
    Anyway, since you installed 11g XE, you should remember the password you picked for the SYS user. Launch SQL Developer, create a connection for SYS (whose role must be set to SYSDBA) using host=localhost, port=1521, sid=xe (these are all defaults and I doubt you overrode any of them). Once that connection exists, just follow Timo's instructions from his initial post. Let me repeat them, hopefully without typos, and in a bit more detail:
    1) Open your SYS connection in the Connections view
    2) Expand it, scroll down to the Other Users node in the tree
    3) Right-click on the HR node, click on Edit User... from the context menu
    4) Uncheck the Account is Locked checkbox in the Create/Edit User dialog
    5) Click on the Apply button at the bottom of the dialog
    or
    1) Open your SYS connection in the Connections view
    2) From the Worksheet, execute ALTER USER HR ACCOUNT UNLOCK
    Now your HR connection should no longer display an account locked message when you try to open it.
    Have fun,
    Gary
    SQL Developer Team

  • Oracle SQL Developer  error - "The file-based source procedure Name is not present in the database."

    I recently started working on the Oracle SQL developer. I have 'select' privileges on the QA schema and when tried to execute proc in QA. It is giving the error as 'The file-based source <procedure Name>  is not present in the database.  Was it compiled?'
    instead 'you do not have sufficient privileges to execute this procedure'. Did research on internet but with no luck.What configuration changes needed to be done to make it work.Guide me.

    Sounds like you do not have the correct privileges.  What should have been granted to you by the QA user, or some other user with appropriate privileges, is...
    grant EXECUTE on "QA"."<PROCEDURE_OF_INTEREST>" to "<YOUR_USERID>" ;
    Note that a grant of execute on a procedure has nothing to do with grants of select on some or all of QA's tables and views.
    So, as Vadim suggests, from your connection node in SQL Developer's Connections view, if you expand the Other Users node, then expand QA and look in the Procedures node, do you see the procedure of interest?  If not, you cannot expect to be able to execute it from your userid's connection. And even if you do see it, you may have some other privilege that permits viewing but not executing, like...
    The role SELECT_CATALOG_ROLE
    The system privilege SELECT ANY DICTIONARY
    And even if you do not see it there, then having certain other privileges granted to you could permit executing it in general, like...
    The role EXECUTE_CATALOG_ROLE
    The system privilege EXECUTE ANY PROCEDURE
    Also, note that the 3.0 release is a bit dated nowadays. Upgrading to 4.0.3 production or even the 4.1 EA2 (early adopter) release will, in general, give you a better experience.
    Best wishes,
    Gary

  • How to create a counter using Oracle SQL Developer?

    Is there any way to create a counter using Oracle SQL Developer to create the below scenario. Meaning it will recorded down the name of user and ID and time and the date they login.
    Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
    Page Access statistics is recorded on an hourly basis. Users may select the statistics by
    yearly (statistics displayed by all months in the selected year)
    monthly (statistics displayed by all days in the selected month)
    daily (statistics displayed by all hours in the selected day)

    I'm giving here one basic post - hope this will solve your problem --
    SQL>
    SQL>
    SQL> create table audit_info
      2   (
      3     usr        varchar2(50),
      4     log_time   timestamp(6)
      5    );
    Table created.
    SQL>
    SQL>
    SQL>  create table err_log
      2     (
      3       log_cd      varchar2(20),
      4       log_desc    varchar2(500)
      5     );
    Table created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_err(errcd   in  varchar2,
      2                                        errnm   in  varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into err_log values(errcd,errnm);
      7      commit;
      8    end;
      9  /
    Procedure created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_aud(ud   in varchar2,
      2                                        unm  in varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into audit_info values(ud,unm);
      7      commit;
      8    exception
      9      when others then
    10        ins_err(sqlcode,sqlerrm);
    11    end;
    12  /
    Procedure created.
    SQL>
    SQL>
    SQL>
    SQL> create or replace trigger log_odsuser1
      2   after logon on odsuser1.schema
      3   begin
      4     ins_aud('ODSUSER1',sysdate);
      5   exception
      6     when others then
      7       ins_err(sqlcode,sqlerrm);
      8   end;
      9  /
    Trigger created.
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jun 12 12:21:09 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL>
    SQL>
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL> select * from audit_info;
    USR
    LOG_TIME
    ODSUSER1
    12-JUN-07 12.00.00.00000000 AMHope this will solve your purpose.
    Regards.
    Satyaki De.

  • How can I change the format of numbers in Oracle SQL Developer 1.0 ?

    The value 1.4345 from a table is represented in Oracle SQL Developer 1.0 like 1.5
    How can I change this to see all the digits ?
    Thanks

    Where did you see that, in the SQL Worksheet or viewing the data Connections ->.. tables ->.. tree?
    What datatype, precision and column name you have?
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • Oracle SQL Developer freezes and locks up computer randomly

    I attempted to find a solution to this before posting. I looked through the first 40 pages of this forum and on Google, through the Developer documentation, etc. with no luck.
    The problem: while using Oracle SQL Developer, the computer randomly freezes. Things work, but it hangs too often and for too long to use. This is random - it can happen every 10 seconds or every 2 minutes. The mouse will lock up, and the keyboard buffer will get all messed up. For instance, if it happens to freeze while I'm hitting "backspace", it will delete many lines of text (I've lost a bit of work because of this in the past). The freezing will last about 2 to 20 seconds, and the only way out of it is to ctrl+alt+delete and kill SQL Developer.
    If SQL Developer is running, and I'm in a different window - it will freeze the other windows as well. Again, it's impossible to use unfortunately. My coworker doesn't have the same problem, and he's connecting to the same database with the same version using Windows Vista. It must be something on this computer. I reformatted about 1 month ago, so it's a pretty fresh install and I haven't installed much of anything yet.
    I'm using Windows Vista Enterprise 32-bit w/SP1.
    This was occurring with older versions of SQL Developer (1.2). I'm using the newest install that included the Java JDK. I've completely removed Java, my Oracle installs, and a host of other attempts to fix this, and nothing changes. I've tried running the .exe in the bin directory as administrator as well.
    Currently using Oracle Developer 1.5.1.54.40.
    Any ideas?

    I tried dumping the contents, but the java dump wasn't showing anything at all, and it would never freeze while I had the console window in focus, so it wasn't very helpful unfortunately.
    I fixed this issue by uninstalling the Java runtime on this machine and installing the Java JDK 6 Update 7 from java.sun.com/javase/downloads . I then downloaded the SQL Developer 1.5.1 version without the Java runtime included, and pointed it to the Update 7 .exe file upon first load.
    I was using JDK 6 Update 6 previously, and it must have been behind the errors. Note that the Update 7 has to be downloaded from that website as it's a new version that hasn't been posted on the regular java.com site yet.
    Message was edited by:
    user645599

Maybe you are looking for