Can I create a SQL Developer command script?

I have a frequently repeated process where I:
open SQL Developer (v3.2.2 because of 32-bit requirements),
connect to a previously-defined database connection,
connect to a previously-defined MS Access database connection,
select 3 tables in Access
use the context menu to Copy To Oracle
specify Append on conflict
and I'm done.
I would like to automate that process. Can it be done?
Thanks!

Sorry; I had read "don't see a 'copy to oracle' action" as a deprecation. I see now you meant that as "not [yet] in the command list." I was also reflecting on the migration tools for MS Access, which seemed to have both grown and shrunk in utility through versions 2, 3, and 4 (which we discussed earlier in another topic).
And, no, I do not object to bringing sqlplus features into the new product. What I found confusing was the deprecation of sqlplusw, to be replaced by a product that did not provide the same capabilities. But that's mainly a symptom of "everybody wants improvements without any changes." As long as you're making the improvements, keep up the good work!

Similar Messages

  • Can't print with SQL Developer 1.5

    I am using SQL Developer 1.5 with Windows XP box. When I try to print any script from SQL Worksheet, I got an "Error" dialog. Here is the details for the Error:
    java.awt.print.PrinterException: Printer is not accepting job.
         at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1230)
         at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1196)
         at oracle.dbtools.util.Utility.printText(Utility.java:50)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorMainPanel.printView(SqlEditorMainPanel.java:1550)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditor.printWorksheet(SqlEditor.java:1404)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorController.handleEvent(SqlEditorController.java:764)
         at oracle.ideimpl.controller.IdeActionHook$MetaClassController.handleEvent(IdeActionHook.java:407)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:524)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:855)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:496)
         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)
    I am able to print out the same file using other tool (notepad, SQL Navigator) to the same printer.
    Thanks!
    Kevin

    No problem, I was trying to get a profiling result from DBMS_PROFILER:
    SELECT u.runid,
    u.unit_number,
    u.unit_type,
    u.unit_owner,
    u.unit_name,
    d.line#,
    d.total_occur,
    d.total_time/1000000,
    d.min_time,
    d.max_time,
    d.total_time/(select sum(total_time) from plsql_profiler_data) as pct
    FROM plsql_profiler_units u
    JOIN plsql_profiler_data d ON u.runid = d.runid AND u.unit_number = d.unit_number
    WHERE u.runid = 96
    ORDER BY d.total_time desc
    Unfortunately, I can't post the programs and the structures, it's a proprietary information which I'm not at liberty to disclose.

  • Can I use Oracle SQL Developer to "Move" data?

    Hello,
    I'm new to Oracle and I'm trying to use Oracle SQL Developer to export data from one table (on server A) to another table (on sever B). I'm able to create a .ldr file but I don't know how to use the .ldr file in Oracle SQL Developer? I would appreciate any help you can provide.
    Thanks!

    Hi,
    The name of tables are different ?
    If I understood then try this below:
    e.g:
    C:\> exp user/password@connectionA file=maytable.dmp tables=SAFETYADMIN_TBL_0022_43
    C:\> imp user/password@connectionB file=mytable.dmp full=y
    After this import, then you can:
    [pre]
    C:\>sqlplus user/password@connectionB
    SQL> insert into SAFETYUSER_TBL_0022_44
         select * from SAFETYADMIN_TBL_0022_43;
    SQL> drop table SAFETYADMIN_TBL_0022_43;Feedback if this is not that you want.
    Cheers

  • How can I create an sql query updateable report

    Seems as though after upgrading our APEX version I no longer have the option to create an updateable report. Some of my old updateable reports seem to be working fine but some will not update after I click my submit button. AT first they just refreshed the page and ignored my changes to the data in the text field. After tinkering with the non working region, now I get a ORA-20001 current version of data in database has changed etc.
    HELP!

    Hi,
    OK - first, you can still create an Updatable Report. When you create a new report, select the Wizard Report option and follow the prompts. When the report has been created you can then switch it to be updatable. I don't know why it has been done this way, but that works.
    Second, on the reports that return that error, do you have any columns set a Standard Report Column? I have found that you need to include ALL columns in the data being submitted, even if that means you have to create a second instance of a column in your SQL statement and then make one of the columns Hidden. For example, if you created a Tabular Form using the wizard on the EMP table, you get EMPNO and EMPNO_DISPLAY, with EMPNO hidden. You would need to do the same for any column not being edited by the user. Something similar may also happen if you have made any of the INPUT items readonly or disabled as these are not submitted by the browser.
    Andy

  • Pldoc utility to document packages created in sql developer

    I am trying to find a quick way to produce documentation of packages developed in the sqldeveloper.
    PLDOC claims that we can produce documentation easily. but I find it quite cumbersome to use it. since it is free source, tech support is not available.
    I appreciate if any one can shed light on usage of pldoc

    I don't see how this is related to SQL Developer..
    Here is the forum for pldoc:
    http://sourceforge.net/forum/?group_id=38875
    Homepage for pldoc:
    http://pldoc.sourceforge.net/
    You may find help on the Oracle sql/plsql forum:
    PL/SQL

  • Can we create pl/sql code over database link?

    Hi All,
    We are using Oracle 9i database.
    I want to know if we can create or modify pl/sql code (procedue, package, etc) over the database link? That means - can we create a procedure in remote database using the db link?
    Thanks,
    Dnyanesh

    yes, I can connect to the remote database directly and create/modify the packages.
    But I want the users not to create them using the db link.
    Is there any way to create the pl/sql package over database link?
    Thanks,
    Dnyanesh

  • SQL Developer formatting script output

    Im new to sql developer. I have been unable to format the script output to decrease the width of the column below.
    All numeric columns seem to use 22 underscores. I would like to format this to make it more presentable to users.
    I have tried column, substr, and the various trims. While these work in native unix, they do not seem to work in
    SQL Developer. Up till now I have found SQL Developer to be a very usefull tool. I hope this is just a matter of me not
    having enough knowledge of the product and not a problem with it.
    Any and all assistance greatly appreciated.
    MACCNO
    3021202

    788184 wrote:
    What I need is to produce the following (column is numeric 5)
    HEAD1
    12345
    instead of what comes out currently
    HEAD1
    12345
    Yes, have checked preferences but could not see anything to change.
    Edited by: 788184 on 12/08/2010 19:55I think the problem is related to SQL*PLUS. SQL Developer tries to mimick SQL*PLUS whan you run something as a script. The mimicking s not perfect though.
    The size of this line depends on the typeof the database field. For numbers a larger line is taken. For varchar2 it depends from the size of the values or the header.
    If you are absolutly sure that data inside this column is always smaller, then you could try the following thing.
    select cast(HEAD1 as varchar2(5)) as HEAD1 from yourTableBe careful since this will do a number to string conversion. But since it seems to be for reporting purposes that should be ok.

  • Can I create 6i designer/developer tables on local 9i database

    I recently installed a new 6i developer on a P4 xp pro system. The 8i database wasn't installed, but a lot of 8i files were. When I tried the same install on my home Win2000 system a fully populated 8i database was installed.
    On the xp system I have a 9i personal Oracle database. Can I install the 6i designer/developer scripts on the 9i database or do I have to create an 8i database? Are there any pitfalls?
    I have recieved conflicting opinions on this. I am hoping someone can confirm this - one way or the other. If possible, could you refer me to a document on how to do this.
    Thanks
    Glenn

    Sorry, the documentation included with the developer software has dates of 2001. I just found the newer Nov 2003 docs on the web.

  • Can i create temp tables in command?

    I need to create 5 temp tables and then use in CR for display. can this be done in Command?

    p.s. if this is regarding the same report that you've been dealing with for a couple of weeks now, please let us know exactly how you want the data to come back:
    a)  do you want 5 rows of data from 5 queries each returning one value, or
    b) do you want 1 row of data from queries with 5 columns
    e.g.
    a)
    field1
    1.6
    2.1
    3.1
    1.8
    2.6
    or
    b)
    field1     field2     field3     field4     field5
    1.6          2.1      3.1          1.8     2.6
    the a) or b) choice will determine what methods you can use to retrieve the data.
    if you don't want either a) or b) please describe how you want the data returned.
    -jamie

  • Can't 'create account' for developer forums. (iOS)

    I have an iOS dev membership, and everything else is working. But I can't access the developer forums.
    I get stuck at the Create Account screen where I have to "Specify a Screen Name". I choose a screen name, press the Create Account button, a wait spinner appears and then nothing happens. No error message, and no access.
    Anyone else having problems accessing the developer forums?

    I had the same issue as ron lauge
    Ron Lugge wrote :
    in my case, it turned out the issue was having two AppleId's both pointing to the same email (one of them was an old work based id, one was my 'real' apple ID)-- somehow that gunked up my primary account.
    And to solve it, I went into my old account and tried to access the developer forums from there, then I had to click renew (tho I didnt actually renew) and then went back to my current account and it worked fine.

  • How can I create a snap to object script?

    Can anyone lend some advice or knowledge on this topic. I am wanting to in essence create a puzzle with pieces that when you drag the object you can only drop it back where you got it from or into the correct spot.
    Before I waste your time let me clarify a bit more. It isn't really a puzzle(I figured that would be the best way to visualize what I was explaining) Basically it is an object that when dragged to the right spot will (snap to) or drop into place. If it is dragged to the wrong spot then it will be forced back to where it was originally.
    Hope that wasn't too confusing lol

    use the _droptarget property of movieclips to determine if your dropped item is dropped on the correct spot or not.  assign the dropped movieclip's _x and _y properties based on this.

  • Can not create dynamic SQL

    DECLARE
    type seqarr is varray(10) of varchar2(50);
    seq seqarr;
    begin
    seq := seqarr('SEQ_A','SEQ_B','SEQ_C','SEQ_D');
    FOR i IN seq.FIRST .. seq.LAST
       loop
          execute immediate 'alter sequence'||seq(i)||'increment by 900000000';
          select seq(i).nextval from dual;
          execute immediate 'alter sequence'|| seq(i) ||'increment by 1 nocache';
       END LOOP;
    END;
    For the above code I am getting error for the 2nd statement inside loop.
    ORA-06550: line 11, column 14:
    PLS-00487: Invalid reference to variable 'VARCHAR2'
    ORA-06550: line 11, column 14:
    PL/SQL: ORA-22806: not an object or REF
    ORA-06550: line 11, column 7:
    PL/SQL: SQL Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:

    For creating sequence
    CREATE SEQUENCE SEQ_A
    START WITH 1000
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    CREATE SEQUENCE SEQ_B
    START WITH 1000
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    CREATE SEQUENCE SEQ_C
    START WITH 1000
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    CREATE SEQUENCE SEQ_D
    START WITH 1000
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    Now I want to increase the LAST_NUMBER of these sequences 
    e.g if current LAST_NUMBER= 1000 , I want to make it as 900001000 but increment_by will be 1.
    DECLARE
    type seqarr is varray(10) of varchar2(50);
    seq seqarr;
    begin
    seq := seqarr('SEQ_A','SEQ_B','SEQ_C','SEQ_D');
    for i in seq.first .. seq.last
       loop
          execute immediate 'alter sequence '||seq(i)||' increment by 900000000';
          execute immediate 'select ' || seq(i) || '.nextval from dual';
          execute immediate 'alter sequence '|| seq(i) ||' increment by 1 nocache';
       END LOOP;
    END;
    The above code is not working but if I execute the staments separately like
    alter sequence SEQ_A increment by 900000000;
    select SEQ_A.nextval from dual;
    alter sequence SEQ_A increment by 1 nocache;
    Then my job is done.
    INPUT
    INCREMENT_BY        LAST_NUMBER
    1                                  1000
    OUTPUT
    INCREMENT_BY        LAST_NUMBER
    1                                  900001000
    I am using Oracle 10.2.0 Express Edition.

  • SQL Developer user defined reports (appropriate utilization)

    I have used SQL developer on a limited basis but I have never created a user defined report. Can someone compare and contrast the
    types of user defined reports that can be created via SQL developer versus the types of user defined reports that can be created via
    a tool such as Crystal Reports or similar tool.

    Hi user7753875 -
    I agree with reidelme that it won't match the capabilities for fancy organisation/output of tools like Crystal Reports, but you can do interrelated parent/multiple child reports.
    Check out the Reports tab on the SQL Developer Exchange for some examples of what other users have done with this.
    Brian Jeffries
    SQL Developer Team
    Edited by: bjeffrie on Jun 3, 2011 5:01 PM
    Turns out no one has used that in a long time. You will have to do some interpretive cut/past from xml given by web site & report editor in SQL Developer. Here is the "Who" report (master+2 child reports) from the exchange in a format you can use the import function from "User Defined Reports" on.
    <?xml version="1.0" encoding="UTF-8" ?>
    <displays>
    <display id="57507b3a-0130-1000-8008-a9fec67b8254" type="" style="table" enable="true">
         <name><![CDATA[Who]]></name>
         <description><![CDATA[
    A Report to show active seesion and some details about there activities. Includes 2 Child-reports for Active SQL and PID for the process supporting the session.
    ]]></description>
         <tooltip><![CDATA[Who is logged in and what is he doing]]></tooltip>
         <drillclass><![CDATA[null]]></drillclass>
         <CustomValues>
         </CustomValues>
         <query>
              <sql><![CDATA[SELECT sid, serial#, username, status, server, machine, program FROM v$session order by sid]]></sql>
         </query>
         <display id="null" type="Child" style="Table" enable="true">
              <name><![CDATA[ActiveSQL]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
                   <TYPE>null</TYPE>
              </CustomValues>
              <query>
                   <sql><![CDATA[select c.spid b1, b.osuser c1, b.username c2, b.sid b2, b.serial# b3, a.sql_text,b.status,to_char(b.logon_time, 'DD-MON-YYYY HH24:MI:SS') from v$sqltext a, v$session b, v$process c where a.address = b.sql_address and b.paddr = c.addr and a.hash_value = b.sql_hash_value and b.sid = :SID order by c.spid,a.hash_value,a.piece]]></sql>
                   <binds>
                        <bind id="SID">
                             <prompt><![CDATA[SID]]></prompt>
                             <tooltip><![CDATA[SID]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
         <display id="null" type="Child" style="Table" enable="true">
              <name><![CDATA[Process]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
                   <TYPE>null</TYPE>
              </CustomValues>
              <query>
                   <sql><![CDATA[select p.spid,p.addr,s.sid,s.server,p.username,s.osuser,p.program,t.value/1024/1024 PGA_Mb from v$process p,v$session s,v$sesstat t where p.addr=s.paddr and s.sid=t.sid and s.sid = :SID and t.statistic#=20]]></sql>
                   <binds>
                        <bind id="SID">
                             <prompt><![CDATA[SID]]></prompt>
                             <tooltip><![CDATA[SID]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
    </display>
    </displays>
    Edited by: bjeffrie on Jun 3, 2011 5:01 PM

  • SQL Developer 3.0.04 generated scripts not compatible with Oracle 10g (XE)

    HI,
    I tried to do an export from one XE database (still 10g) to another XE database. (also 10g).
    I tried to do a database copy as well as a separate export and import (by loading the file and running as a script).
    Neither of them work without modifying the files as it seems that SQL Developer generates scripts that are only compatible with Oracle 11g.
    - Create table contains "segment creation automatic"
    - Storage clauses contain parts that are not compatible with 10g
    I ran through the wizard several times but neither can I find an option to choose for compatibility with earlier versions of Oracle.
    Checked the preferences screen as well.
    Is this a well hidden option or is it not possible to make this work for 10g.
    Extra : found workaround by removing the storage clause to the export. Is there another way that does not force me to remove the storage clause?
    Edited by: kcaluwae on 24-jun-2011 6:03

    I'm sure this is far from the supported way to fix this but, seeing that it's apparently an issue with the classpath or something in it, I hacked <sqldeveloper_install>\sqldeveloper\bin\sqldeveloper.bat and added [ORACLE_HOME]\jdbc\lib\ojdbc6.jar to the classpath. At least that gets me started with 3.0 and lets me create TNS connections.
    I'd really appreciate a better solution, if any of you kind folks knows of something.
    Thanks,
    Kelly

  • Can we use SQL developer tool to READ/WRITE BerkeleyDB by any means

    We use Berkeley Db as a persistent database, which holds data less frequently changed data. Can is it possible to use SQL Developer tool or any other front end tool that can connect and communicate to Berkeley db file for INSERT, UPDATE, DELETE records.

    I assume you're referring to Berkeley DB SQL (BDB SQL API).
    SQL Developer is not certified to work with BDB SQL; see the SQL Developer Certifications page.
    Something similar was asked some time ago, about connecting JDeveloper to BDB SQL; see this Re: How connect Oracle JDeveloper 11g to Berkeley DB 11g. The SQL tools in JDeveloper and SQL Developer are similar and built on the same components, so my answer there can be extended to SQL Developer as well. While you can probably have SQL Developer properly connect to a BDB SQL database, I am afraid you won't be able to do more than just viewing the data; likely any attempt to generate DDL or DML statements, export data, or run DML statements against the database will fail.
    If you migrated to BDB SQL from SQLite and were using a front-end tool for SQLite, it should be possible to use that with BDB SQL as well.
    Regards,
    Andrei

Maybe you are looking for

  • Cannot Connect to SQL 2000

    I recently reinstalled SQL Server and now I am unable to create the DSN through CF Admin. The name of the SQL instance was changed during the reinstall. I have attempted to use the new name in CFAdmin but get the following error: "java.sql.SQLExcepti

  • Am I the only one with these various problems...??

    Hi all, I start my first post and introduction ever on this forum with a imposing problem with Aperture 3.03 I just did the upgrade to Aperture 3 & 3.03. Coming off Aperture 2, I was able to rotate, crop and do all the things I wanted by just placing

  • Cannot remove awful album

    Hi, I have one time bought an album for someone else. And so the album was on my Itunes library. Bus since I don't particulary like the album myself I have tried to delete it from my iTunes Library. But it keeps coming back, also on my Iphone. I hate

  • Referencing Report Fields from other regions

    It is possible to reference the value in a report column in another part of the page? I have a report region returning a single row of data, and I'd like to use the value in one of these columns to set an item in another region. Is there any way to r

  • When I load Businesscatalyst scrolling and other Wigdet not work.

    Hi there, Musette-themes I downloaded from the themes, businesscatalyst to nothing works except bridges when I install. I've updated the assets but scrolling features, widgets do not work. Now everyone mentioned on the site to try and present a runni