Running existing queries in sql developer-new user

I am trying to execute some of my existing queries I created in TOAD but when I open my current existing files it does not give me the option to execute them. How can I get my existing files to execute so that I can get a data return?

See:
Re: Nice App

Similar Messages

  • Re: Probelems running queries in SQL Developer

    I used to be able to run queries in SQL developer without any problems but now I get the followin message whenever I try to run a query
    "Could not initialize class oracle.sql.CHAR"
    p.s. I also get this: "oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/i18n/text/converter/CharacterConverter;"
    Edited by: user564155 on Jul 26, 2010 1:49 PM

    Might be corrupt settings; backup/delete the SQL Developer/systemXXX directory in the hidden Application Data under your Windows profile to reset your installation to defaults.
    Else, if you run from \sqldeveloper\bin\sqldeveloper.exe, what output do you get in the opened console when starting up and querying? This could help diagnosing the problem.
    Hope that helps,
    K.

  • Problem accessing SQL Developer with user sys

    Hi Experts;
    I'm working with Oracle 10G, in Solaris 10, The DB apparently is working properly, but I can not access the DB thru SQL Developer. When I try to acccess with user sys, and I enter de password, in oracle role I select sysdba, when I choose connect I get this error message:
    ORA-01017: invalid username/password; logon denied
    However, I can connect with other user without any problem.
    I was connecting directly in the server, with sqlplus /as sysdba and I changed the password for user sys, but still the problem continues.
    What is wrong with this. I got the same problem if try to connect thru OEM.
    Thanks and regards
    Al
    Edited by: user12048358 on Jul 8, 2011 12:02 PM

    Hi Buntoro;
    Thank you for answer.
    First, I'm completely sure I'm using the correct password, to be sure I changed the password thru sqlplus.
    I'm using tns connection, btw, with the same connection, I can connect, but with other user.
    I was trying again, however, with the same results previous explained.
    But also I have the same problen when I tried to connect to OEM, and I was trying to stop the dbconsole, and found this:
    export ORACLE_SID=YAWIDBLAB
    emctl status dbconsole
    OC4J Configuration issue. /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole_yawi-db-lab01_YAWIBLAB not found.
    export ORACLE_SID=YAWIDBLA
    emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://yawi-db-lab01:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    Logs are generated in directory /opt/oracle/102/yawi-db-lab01_YAWIDBLA/sysman/log
    If I type export ORACLE_SID=YAWIDBLA and then sqlplus /nolog
    SQL> connect /as sysdba
    Connected to an idle instance.
    But, when I connect settiong the SID in this way:
    export ORACLE_SID=YAWIDBLAB
    sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Jul 9 23:03:15 2011
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    SQL> connect /as sysdba
    Connected.
    SQL>
    Apparently, there is problem with the tnsnames. When I see the tnsnames in SQL DEVELOPER I see this: YAWIDBLA
    So, here is the tnsname, in order you have a better idea, what I have.
    YAWIDBLA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yawi-db-lab01)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = YAWIDBLAB)
    Is the first time I see this kind of problem.
    Have an idea of what's happening;
    Best Regards;
    Al

  • SQL Developer New Connection

    Hello,
    I am a student, just downloaded SQL DEVELOPER.
    I need to know how to create a new connection. I followed the HELP button under connection and the following directions bellow:
    "To create a new database connection, right-click the Connections node and select New Database Connection. Use the dialog box to specify information about the connection (see Create/Edit/Select Database Connection). You can also create a new database connection by selecting an existing connection in that dialog box, changing the connection name, changing other connection attributes as needed, and clicking Save or Connect."
    I am getting an error that states the following:
    Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied
    I also added the system generating login SYSTEM but I could not figure out the password. I tried sys, system, admin.
    Any help it will be very much appretiated.

    Did you create the database, or did it already exist?
    The default system password is manager, but you are normally asked to specifiy a password when creating the database.
    If someone else created the database, you will have to ask them for the password.

  • SQL Developer// new install // SQL Worksheet will not open

    New install of SQL Developer 1.1.2.25 on WinXP. Oracle 9.2 database on same machine. Database connection to 10.2 database instance on other machine was successful. When I attempt to open SQL Worksheet on the client machine, I get the following errors:
    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:1104)
         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.net.URLFactory.newURL(URLFactory.java:136)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorNode.<init>(SqlEditorNode.java:65)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditor.openNewEditor(SqlEditor.java:1914)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditor.openNewEditor(SqlEditor.java:1973)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditor.openNewEditor(SqlEditor.java:1991)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorWizard.invoke(SqlEditorWizard.java:109)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:310)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorController.toolbarAction(SqlEditorController.java:1008)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorController.handleEvent(SqlEditorController.java:561)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
         at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    How do I fix this?
    Thanks!
    TL

    Solution: The Redneck Tuneup for Windows
    1) With the transmission in neutral, hold the gas pedal all the way down to the floor for 1 minute.
    2) Restart the computer.

  • Running in parameters in sql developer

    Every time I run a package body in SQL Developer. A screen shot pops with this information:
    DECLARE
    REPORT_TYPE VARCHAR2(200); --in parameter
    ORG_CONTRACT VARCHAR2(200); -- in parameter
    CUR_CONTRACT VARCHAR2(200); -- in parameter
    REPORT_BEG_D DATE; --in parameter
    REPORT_END_D DATE; --in parameter
    MY_FILE VARCHAR2(200); --out parameter
    BEGIN
    REPORT_TYPE := NULL;
    ORG_CONTRACT := NULL;
    CUR_CONTRACT := NULL;
    REPORT_BEG_D := NULL;
    REPORT_END_D := NULL;
    RUN_REPORTS.RUN_CLIENTLIST(
    REPORT_TYPE => REPORT_TYPE,
    ORG_CONTRACT => ORG_CONTRACT,
    CUR_CONTRACT => CUR_CONTRACT,
    REPORT_BEG_D => REPORT_BEG_D,
    REPORT_END_D => REPORT_END_D,
    MY_FILE => MY_FILE
    /* Legacy output:
    DBMS_OUTPUT.PUT_LINE('MY_FILE = ' || MY_FILE);
    :MY_FILE := MY_FILE;
    END;
    What lines should I use to place the IN parameters?

    APC wrote:
    As I understand it SQL Developer does not allow multiple session for the same connection. So all the open tabs for the same connection are in one session. So obviously this means taht we can only do one thing per connection, not per tab. Thus your second report won't run until the first report ends.
    If you want to do two things in parallel with the same user you will need to create a second connection - different connection name, same connection properties.
    This is a limitation of SQL Developer.
    Cheers, APCNot entirely true. You can open an "Unshared worksheet" which uses a separate instance of the connection. You can only have one object browser per connection though.

  • Run command line with SQL Developer

    Is is possible to run SQL Developer in command line mode?
    As SQL Developer is a unicode client to unicode database, it will be a good news for me. It is possible to run batch using SQL Developer to edit the database.

    Take the suggestions from SQL Developer from the command line , to which I can add you could use $SQL_PATH/login.sql or the same file located in your specified script dir, which will be called on making a connection.
    If you don't vote for the feature request at the SQL Developer exchange, don't be surprised no progress is being made...
    K.

  • 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

  • Save layout of queries in SQL Developer query builder?

    Sometimes queries are very complex and moving tables around in the graphical view is really helpfull to better understand them.
    Unfortunately this layout does not get saved with "save" (because this is a simple text file).
    Once upon there was a query builder (included with designer 2000 and later vom 1991 to 1998) that had a proprietary format (.brw) to just do that: Save a query including layout.
    Any chance to save the layout of SQL Developer query builder queries?

    I dont think there is any way to save the layout for the query, you can request an enhancement on the Exchange for this http://sqldeveloper.oracle.com/
    But if you only need to restore the query you are working with later, or move it to another workstation and continue editing using the query builder, you only need the SQL code generated; when you paste it in an opened worksheet (on the same database or even a clone with the same structure) the query builder is able to resume working just fine with default positioning for the table objects.
    If you hand edit the query and insert some SQL manually then the query builder may stop working for particularly complex statements, in this case it will warn you and disable itself.

  • SQL Developer Standard user and SID

    Good Morning!
    I installed the sql developer, but I don't know how connect, what the standard user and SID?
    Thanks
    Fernando

    The default user and SID are SYS and ORCL, but I doubt you have a database.
    http://www.thatjeffsmith.com/archive/2012/12/i-have-oracle-sql-developer-installed-now-what/

  • How to abort a running process in Oracle SQL Developer?

    Is there a keystroke combination I can use? Thanks!

    I had a problem earlier today when I was running some code with > 50,000 lines and it kept on bringing up the "Enter substitution variable" box, which would not allow me to click anything else and once I clicked cancel I didn't have enough time to get to the red x before the next box appeared. Although this happened a bunch of times eventually there was enough time for me to get to the red x and change the code, but that's why I was wondering if they was a keystroke combination.

  • Is is possible to run aggregate queries (cf SQL's "group by") on a CQ5 repository?

    I am trying to produce a report of how many images were added to our crx repository (under cq 5.3) in the last year, by the directory to which they were added.
    In SQL I'd do something like
       SELECT COUNT(*) FROM image WHERE image.date >= '2012-01-01' GROUP BY image.directory
    However, CQ5's query builder seems to only allow selection of result items, no aggregate information like counts / "group by" - or if it does support that, I can't find documentation on how to use it.
    Is this possible, and if so how? If not, is there another way of extracting this information? (I could write a script to submit a separate query for each directory and just return the number of results for each one, but that seems a bit laborious for what is a fairly straightforward requirement.) Apologies if I'm missing something obvious!
    Thanks,
    Nick

    There is no count(*) or group by selector in JCR SQL [1], XPath [2] or
    JCR-SQL2/AQM [3].

  • How can I run beginddl in PL/SQL Developer

    Here's my script:
    begin
    execute dbms_wm.beginddl('MyTable');
    ALTER TABLE MyTable ADD NewColumn1 VARCHAR2(200)
    execute dbms_wm.commitddl('MyTable');
    end;
    I got the following error:
    ORA-06550: line 2, column 11:
    PLS-00103: Encountered the symbol "DBMS_WM" when expecting one of the following:
    := . ( @ % ; immediate
    The symbol ":=" was substituted for "DBMS_WM" to continue.
    ORA-06550: line 3, column 3:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
    ( begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimi
    What should I do then?
    Thanks.

    in PL/SQL scripts you just omit the "execute". and for the SQL you need to put an execute before it.
    so your script would be:
    begin
      dbms_wm.beginddl('MyTable');
      execute immediate 'ALTER TABLE MyTable ADD NewColumn1 VARCHAR2(200)';
      dbms_wm.commitddl('MyTable');
    end;apart from that, you should be modifying MyTable_LTS in your DDL session.
    regards,
    Andreas

  • Calling from the application Slow vs. Running through SQL developer Fast

    Alright, we write many applications that make use of calling stored procedures in packages to return data. This is the only time i have ever encountered this issue and have not been able to pinpoint the cause.
    This application is very data-centric and is filled with calls to stored procedures and I would say about 80% run fine as in the time required to run is about the same as in SQL Developer maybe just a little slower due to the amount of data that may be returned to the application. The other 20% run horribly slow from the application and run lighting fast in SQL Developer and i cannot figure out why.
    I have traced the code right up to the .Fill on the Oracle.DataAccess.Client.OracleDataAdapter and that is where it just holds either for a long period of time or just forever, some of these i haved waited hours for and they have not finished running.
    For Example: I created a new page in the project and it makes a request through the use of ajax, when the request file is reached it performs two stored procedures from the same package (the only two procedures in the package). Both procedures take in three varchar2's and have an in out cursor, the cursor is returned into a datatable in the VB. The first query runs in a couple seconds returns the correct data etc. The second query, which takes .2 seconds on average to run from SQL Developer, just runs and runs and i have never actually even waited for it to finish because it takes so long. The specific example i am trying only returns 1 row with 7 columns, so there is not a large amount of data being passed back.
    I have seen this sort of thing happen on occasions, but everytime it was usually because the package was not compiled and was waiting on a view to finish before compilation and after killing the view it was fine. But this issue seems to happen randomnly with certain procedures and not others all in the same package.
    This issue happens on the same procedures everytime which would lead me to believe it is the procedure, but running them in SQL Developer shows me this is incorrect because they run exceptionally fast in some cases. I even went so far as to restart the entire database just in case there was some sort of lock causing this issue but this did not fix the issue.
    I have verified parameters, cursors, debugged the procedures, stepped every line of code, tried deleting and readding the oracle.dataAccess reference. I can't seem to figure this one out.
    It is causing alot of wasted time because i am forced to wait a horribly long time for these queries in order to test. If anyone has any clues, hints, or ideas as to what this could be please let me know! If the same issue exists when the application is moved into production it will be unnacceptable and the application utterly unusable.
    Thanks in Advance for any help!
    -Jarrod

    Hi,
    This is consistently reproducible with the problem procedure/operations? Total WAG here, but I've seen cases where having support for distributed transactions enabled causes the database to disable certain optimizations. Try setting Enlist=false in your connection string.
    Otherwise, I'd recommend enabling 10046 database trace and client side sqlnet trace to capture the problem behavior for further investigation. Oracle support can certainly give you a hand with that if needed.
    Hope it helps,
    Greg

  • Oracle SQL Developer Cannot Cancel Queries Properly

    This was a problem with version 2 and continues to be an issue with version 3. If I chose to cancel a query that is taking a long time to run it gives me the prompt and displays that the query was cancelled. However, the query is not actually cancelled and is still running in the background. The lock on the table still exists. How can I tell? Once a query is cancelled I attempt to exit the program and when I try to disconnect it says that the connection is busy. My only options are to try again or abort. First of all, these are terrible option names. How about changing these to try again or cancel, which is actually what abort does. Second, at this point there is no way to exit the application until the query completes in the background. I can kill the application through the Task Manager which in turn kills the query. This is a major problem and needs to be fixed before this application is useful.

    I also am having this same issue. I am running SQL Developer 2.1.1.64.45 (JDK 1.6.0_11), connecting to Oracle 9.2.0.4.0 via TNSNAMES.
    Seems to be similar to this thread: http://forums.oracle.com/forums/thread.jspa?messageID=9524997&#9524997
    In which it appears to be a genuine bug.. Since I develop large queries in SQL Developer before sending them through a SAS program via PROC SQL, I have no other way to test them. It is frustrating, when testing the large queries, to have to do CTRL-ALT-DEL to delete the SQL Developer task and therefore losing any other query tab changes I have made before running/canceling the task. Grrrr.. :)
    Thoughts? -Kristi

Maybe you are looking for

  • PL/SQL procedure "Not Defined"

    I have created a PL/SQL procedure, compiled it successfully, and am trying to call it from an "onmouseover=" construction in the Link Attributes for a report column. I have created an application process entry for this procedure in Shared Components/

  • Thumbnail view

    How do you edit the background in thumbnail view? I can only get thumbnail view to show up on the iPad, but not in iBA itself.

  • PLAYSTATION 3 Browser support

    My Playstation 3 Browser dos not show all streams in Flash Player.... Youtube...does but not others Why does nor ABODE support PS3 Browser for all streams???? :( Realy apreciated! thanks!

  • I Keep getting this error message after installing elements 7

    I Keep getting this error message,-Photoshop Elements Help could not be found. Please re-install Photoshop Elements to fix this problem.

  • Embed fonts on classic TextField doesn't work, even with TextFormat applied

    Hi. I created an Item that extends MovieClip and that has a TextField on it where it where it will display the item's name. I want to embed the font but I'm having trouble because the text won't display. I read the embedFonts description (http://help