SQL Developer BRIDGE command from command line on Windows environment

Is it possible to call SQL Developer BRIDGE command from command line on Windows environment?

Hi <please supply your name>,
SQL Developer Worksheet is not available from the command line.
The BRIDGE command is only supported in the Worksheet.
Its an interesting idea though. Are you trying to script data move from a non Oracle database to an Oracle database using the BRIDGE command?
The BRIDGE command was initially done to allow a simple data move from a non Oracle database to Oracle. We then build the "Copy to Oracle" feature out of it.
http://dermotoneill.blogspot.com/2010/11/cross-database-bridge-statement.html
http://dermotoneill.blogspot.com/2010/11/copy-to-oracle.html
Since the BRIDGE command references connection names, which have to be defined in UI of SQL Developer any solution to run this on the command line would have to work this out.
There are number of ways you can do this without using the BRIDGE command.
1) Perform a capture/convert of your non Oracle database and then generate the "offline" data move scripts.
Theses scripts use SQL*Loader and your non Oracle database tool (Ex: Sybase BCP).
These are run from the command line and can be modified ....
2) Use a database link from your Oracle database to your non Oracle database and reference /query the data that way.
I would interested to hear your thoughts.
Regards,
Dermot
SQL Developer Team.

Similar Messages

  • Dock commands from command line

    Hi,
    Can anyone tell me how to execute the commands on the dock from command line? Thanks.
    Kannan

    Sure. Which commands are you interested in?

  • Running command from command prompt

    hai all,
    iam using Javamail to send emails. for that iam using the command prompt.the code for executing the commands from the command prompt is as given below.
    public static String runCommand(String s)
    String result=new String();
         try
         //the command is executed and stored in 'p'
         Process p=Runtime.getRuntime().exe("cmd /c "+s);
         result=(loadStream(p.getInputStream()));
         if(p.waitFor()!=0)
         System.out.println("Exit Value = "+p.exitValue());
         System.out.println("Wait for = "+p.waitFor());
    System.out.println("Result is "+result);
         catch(IOException e)
    System.out.println("IO Exception");
         e.printStackTrace();
         catch(InterruptedException e)
    System.err.println("Interrupted waiting for process!");
         return result;
    the contents of the 'javamail' directory are
    activation.jar, mail.jar, Msgmultisendsample.java and Msgmultisendsample.class
    in the first call to this method i pass the string "set classpath=%classpath%;e:\javamail\mail.jar;e:\javamail\activation.jar;e:\javamail; " here i set the classpath since i will be executing the command from the command prompt.the command works fine and the exitValue() is 0.
    in the second call to this method i pass the string "java Msgmultisendsample [email protected] abc 123.456.789.012 true" for running the Msgmultisendsample.class file. but i get the exitValue() as 1 and the command is not getting executed. i dont know how handle this change in the exitValue().
    both the above commands works fine if i run directly from C:\ but not when called to this method.
    Please help me out people, i will be glad to receieve the replies as early as possible since i have to submit this tomorrow.
    Thanks in advance,
    Jayanth.

    well, the problem is not with the command line arguments. it doesnt matter if we get the input from the user through command prompt or GUI. The problem is only in the handling of the change in exitValue during running.

  • Trace commands from command prompt

    How can I run trace commands from the SQL prompt since I dont have OEM on linux.
    How can I perform other diagnostic commands on linux?

    minitraktor wrote:
    The problem is that it seems very inefficient to open a new command prompt for each command.Maybe so, but efficiency is rarely a reason to change correct code. The question you should be asking yourself is: is it efficient enough?
    Is it possible to execute all commands in the same command prompt?It rather depends on whether you need to get a result from each command. If so, I suspect not; if not, you might be able to combine several commands within the same invocation. I'm no expert on this stuff though, so there may be other options (a BAT file?).
    Winston
    BTW: You do know that your implementation is by no means assured of running the commands in sequence?

  • SQL Developer 1.5 - Unable to Dock Help Window

    I'm running SQL Developer 1.5 on Windows 2000. In the previous version of SQL Developer, I was able to dock the Help window. In the current version, this does not appear to work. Is anyone else having this issue? Any suggestions?

    Yes this is a known issue and a bug was already logged for this (6975741). The Help window is currently delinked from SQL Dev application which makes it undockable.
    - Rakesh

  • Run multiple SQL*Loader control files from command prompt

    I have written control files for 15 different tables with specific data files for each table. I have build the control files using toad for each one of them at once. Now I want to run the sql loader for all the tables one time. I know I cannot run multiple files from toad and not sure If I can run from the command prompt.
    Please let me know If I can.

    skvaish1 wrote:
    Hi,
    On unix you can create a script to runn all sqlldr at once like as followes.
    1. Create a script load_sqlldr.sh with following content.
    export ORACLE_SID=<YOUR DB_SID>
    export ORACLE_HOME=<Your Oracle Home>
    export PATH=$ORACLE_HOME/bin:$PATH
    sqlldr (Full command with parameter for 1st table) &
    sqlldr (Full command with parameter for 2nd table) &
    sqlldr (Full command with parameter for 3rd table) &
    sqlldr (Full command with parameter for 4th table) &
    sqlldr (Full command with parameter for 15th table) &
    2. Then execute the script.
    Regards1. Can I also write script load_sqlldr.sh with following content
    sqlldr user/psswd@db_name control=controlfile1.ctl
    sqlldr user/psswd@db_name control=controlfile2.ctl
    sqlldr user/psswd@db_name control=controlfile3.ctl
    sqlldr user/psswd@db_name control=controlfile15.ctl
    2. Then execute the script.

  • Read Command from Command Line

    Hi.
    I am starting my application using the following command at the command line: "java -jar convert.jar config.txt". Is there any way for me to read the "convert.jar" portion of the command.
    I am building a server side application that needs to restarted periodically. I get the invocation directory using System.getProperty("user.dir"). I need to know the name of the command so that I can execute something line
    "java -jar" + strCommand + System.getProperty("user.dir"), where strCommand is the command "convert.jar" or "/path/to/convert.jar"
    Thanks,
    Siddharth.

    am building a server side application that needs to restarted periodically.The OS has certainly a utility to periodically schedule an application (cron, at, scheduled tasks...)

  • Sql developer: import settings from prev version

    hiya!
    where are settings from previous version?
    went from sql dev 1.0.x to 1.1.x, and on first open of application was prompted, "would you like to import your settings from previous install?" i tried a couple, but couldn't quite get the right file.
    of course, its probably v easy...
    thanks in advance.
    be well,
    =todd

    SQL Developer forum is here - SQL Developer

  • Send direct print to printer from client, Reports 10G, Windows environment,

    We are using windows 2003 based server. Oracle Form and Report Services . Database 10g . Reports 10G.
    Trying to send direct print to printer from client side using Destination Parameter : Printer.
    I am getting output in pdf at client side. but direct print to printer is failed.

    Make sure that the client printer is also known on the application server, since that is where the print job is generated.

  • Spool command in SQL Developer 3.1

    Hi,
    I am using sqldeveloper-3.1.05.97 .
    There are few scripts that I need to run on a EBS sandbox to generate txt files for a analysis tool input .
    The script is meant to be run with SQL * Plus but I am getiing a TNS listener error due to which I want to use SQL Developer.
    The Spool command is able to create file in local directory but the oputput is not the query result but the query itself. Please help if anything is wrong in the syntax below:
    ALTER SESSION SET NLS_DATE_FORMAT = 'MM/DD/YYYY';
    SET NEWPAGE 0
    SET SPACE 0
    SET PAGESIZE 0
    SET ECHO OFF
    SET FEEDBACK OFF
    SET COLSEP |
    SET MARKUP HTML OFF
    SET LINESIZE 600
    SPOOL FND_USER.txt
    SELECT USER_ID, USER_NAME, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, START_DATE, END_DATE, DESCRIPTION, LAST_LOGON_DATE, PASSWORD_DATE, PASSWORD_ACCESSES_LEFT, PASSWORD_LIFESPAN_ACCESSES, PASSWORD_LIFESPAN_DAYS, EMPLOYEE_ID, CUSTOMER_ID, SUPPLIER_ID
    FROM APPS.FND_USER;
    SPOOL OFF

    Hi Partha,
    It seems the line "SET PAGESIZE 0" is suppressing all output in SQL Developer, and not just "all headings, page breaks, titles, the initial blank line, and other formatting information" as documented for SQL*Plus. Keep in mind that SQL Developer does not yet provide full support for all SQL*Plus formatting commands. For example, without SET PAGESIZE 0, the script output tab shows these messages:
    line 2: SQLPLUS Command Skipped: set NEWPAGE 0
    line 3: SQLPLUS Command Skipped: set SPACE 0
    line 8: SQLPLUS Command Skipped: set MARKUP HTML OFF
    I will log a bug for this.
    Regards,
    Gary
    SQL Developer Team

  • Oracle SQL Developer and Errors (Line Number Incorrect)

    First, I wanted to state that Oracle SQL Developer 2 is a standout job.
    I wanted to report, though, that when Oracle SQL Developer 2 can't compile a block of code or a simple SQL statement has invalid syntax, it does not have an option to accurately go to the line of code in question. GOING TO the erroneous line of code doesn't need to be a feature, but often times the line no. REPORTED by Oracle SQL Developer is incorrect by 50+ lines.
    Is this something I could fix on my end? I have five other developers griping about this.
    Thank you!

    I don't know if this is the situation you are talking about, but line numbers for errors in SQL in a SQL Worksheet are not line numbers within the statement but rather line numbers in the worksheet. For example, with the following SQL in the worksheet:
    select * from dual;
    select * from dual;
    select * from dual;
    select from dual;Running the "select from dual;" statement (as either statement based on cursor position, selected statement or as script), the error is reported on Line 4, Column 7. As I show line numbers (Tools | Preferences | Code Editor | Line Gutter | Show Line Numbers), this makes sense. Without line numbers showing or having the option to go to the error and with more realistic examples with SQL statements scrolling off the page, I can see that the line number in the errors wouldn't be helpful.
    I think -K- is talking about the PL/SQL code editors not reporting the correct line number based on the error line not counting the "create or replace" line at the start of a package (and more for triggers).
    theFurryOne

  • Incorporate shell commands from forms

    How to incorporate unix shell commands(eg. ls, cp) from forms9i?
    In Windows environment,it is possible by issuing
    host command(eg. HOST('DIR >k.lis') -- it moves the list of files from Oracle9i/forms90 path to a file k.lis).
    The same thing I have to do in a unix environment.

    I think you have the wrong forum. This forum has to do
    with the UIX technology inside of JDeveloper. Your
    question seems to have to do with UNIX or forms. I can't
    tell which.

  • How to know the ORACLE version from PL/SQL developer

    Guys,
    I wanted to know the version of ORACLE that i am using currently. How should i get it ? is there any functions available ?
    Note: I am using PL/SQL Developer tool.

    select * from v$version

  • Performance problem with slow VIEW from JDBC (fast from SQL Developer)

    Hi all,
    I'm experiencing following problem and would like to know if someone else also hit this one before and has a suggestion how to solve it:
    I have a pretty complicated SELECT statement that per definition returns only a few rows (~30). With no further optimization it takes ~20 seconds to return the full dataset in Oracle SQL Developer. If you add the */+ PUSH_PRED(name_of_some_inner_view) /* hint (hint is correct, stars got eaten by the OTN-forum syntax), the statement takes less than 0.5s to execute (still in SQL Developer). I saved the statement with the hint as VIEW. Selecting from the VIEW in SQL Developer is also fast.
    Now if I call the statement from JDBC (Tomcat webapp), I can see from the server console that the statement is 1:1 100% the same as the one I execute in SQL Developer. Nevertheless it takes about 20 seconds to complete.
    Here my details:
    SELECT banner FROM v$version;
    BANNER                                                                        
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production             
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production                         
    NLSRTL Version 11.2.0.2.0 - Production                                          
    JDBC Driver used: some old odbc14.jar as well as current odbc6.jar for 11.2.0.2.0 from http://www.oracle.com/technetwork/da...10-090769.html
    SQL Developer: current version 3.2.20.09From my reading this could go wrong:
    - JDBC doesn't know the VIEW's column data types and Oracle behaves mysterious because of this (=there must be more to the SELECT than just the string, some meta-information)
    - For some reason the hint inside the VIEW is not used (unlikely)
    I also tried a Table Function/Pipelined table and selected from it as a workaround, but the result is the same: Selecting from Function is fast from SQL Developer, but slow from JDBC. All other statements that come from JDBC are as fast as they should be. I really don't know what to think of this and where the error might be.
    Is there some setting that tells Oracle not to use hints when called from JDBC?
    Thank you & Best regards,
    Blama

    Hi Bawer,
    that's what I'm thinking. Unfortunately I can't post it, as it is library code (not my lib). But in the debug-output I can see the SQL-String sent to the DB (which does include the hint).
    But I find the 2nd option you mention more likely anyway: Even if I put the hint into a VIEW and select from the view, the time-difference is there (it's even there if I use Table Functions/Pipelined table and select from the function).
    So I'd think it is more likely that something else is happening (e.g. Oracle is configured in a way that it does not use hints when called from JDBC or similar. Or the library sets some session options in order to prevent the usage of hints). But I don't know if there is even the possibility of doing so.
    Does the Oracle JDBC driver have the option to set these options?
    Does the Oracle DB have the option to set sth. like "ALTER SESSION SET dontUseHints = 'Y';"

  • Migration from Access to Oracle through SQL developer

    Hi,
    I want to migrate an mdb file which contains a set of tables to oracle. During this process, i have created schema and all the tables in Oracle using DDL scripts. I would like to transfer only the data to Oracle from access through SQL developer. How can I do that?
    Regards,
    Meena

    Hi Meena,
    You mention that you have created the schema and tables in Oracle using DDL scripts. Did you use the Oracle SQL Developer Migration Workbench, creating a Migration Repository, to carry out this process? I see from your other postings that you are experiencing issues using the Exporter tool, which would lead me to believe that you haven't used the Migration Workbench to migrate your database. Obviously you will need to resolve your Exporter issues before you can proceed to the next phase of the migration process. I will aim to assist you with those issues on the seperate thread - ShowSplashScreen("_OracleSplashScreen",3) error The XML file generated by the Exporter tool forms the basis of your MS Access migration.
    In order to migrate your data from MS Access to Oracle using the Migrate Data option in Oracle SQL Developer, you will need to have access to the Migration Repository used for the migration of the MS Access database. The information contained in the Converted Model, in the Migration Repository, is used during the data migration process. The data migration requires the following connections:
    1. a source database connection i.e. a database connection to the MS Access MDB file
    2. a target database connection i.e. a database connection to the migration Oracle schema
    3. a Converted Model connection
    For further information on the creation of a Migration Repository, and the migration process, please refer to the accompanying documentation available via the online Help within Oracle SQL Developer, and also from OTN - http://download.oracle.com/docs/cd/E10405_01/doc/nav/portal_booklist.htm.
    I hope this helps.
    Regards,
    Hilary

Maybe you are looking for

  • How do I restore an Apple Mail account to a previous date?

    I have three accounts in Apple Mail: my Exchange server account, and two IMAP accounts. I need to restore ONLY the Exchange server mailbox to where it was on April 1st and can't do so the normal way of having the Exchange mail stores restored. Is the

  • Running reports in SCCM: ActiveX Script Error

    When I try to run some reports, I authenticate then it throws a Script Error.  Error:  ActiveX component can't create object:  'Microsoft.XMLDOM'. This only happens on some reports and it only happens remotely.  If I try to run the same reports on th

  • Error code 0xC004E003: windows 7 activation problems

    Windows 7 home prem Diagnostic Report (1.9.0027.0): Windows Validation Data--> Validation Code: 0 Cached Online Validation Code: N/A, hr = 0xc004f012 Windows Product Key: *****-*****-RGXP2-VGYK4-66TDW Windows Product Key Hash: bh6iDDdEfdnt11w7w9wJoZn

  • Virtual machine take too much time to start on vmware

    hi , i have install Windows 2003 enterprise  and SOLMAN on vmware with 3 gb of ram assign to the virtual machine . when i start the virtual machine it takes 15 to 20 min to start . can any one tell me the solution for this . thanks in advance.

  • T41 re-installed Windows XP, now can't connect to Internet

    I recently re-installed windows XP, but now I can not connect to the internet. I downloaded an Ethernet Intel Pro driver, however when following the steps to complete installation, I do not have any options under "Network Controllers" it says this dr