Oracle SQL Developer Meets SQL*Plus

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 34

  • @geezenslaw
    @geezenslaw 8 лет назад

    Howdy Jeff, informative and interesting video. Like many RDBMS videos connectivity is assumed. Most Java developers like myself are not Oracle DBAs and so debugging attempts to connect using something like sqlcl is a mystery. Case-in-point: you start off your video by starting sqlcl using your own script. It would be very beneficial to those of us the uninitiated what are the contents of your script discounting PWs. Apparently, sqlcl has a way of setting the TNS locations but no doco or examples of how to do this. Assuming your audience can connect is baffling to a very frustrated audience.

    • @JeffSmiththat
      @JeffSmiththat  8 лет назад

      you would connect just like you would connect using SQL*Plus or SQL Developer. We look for the TNS locations just like SQL*Plus does. You can use > SHOW TNS to see where we're looking and what entries we find and thus are avail for a connection. Since you're a java developer, you might be more comfortable connecting with an Oracle jdbc URL. I usually connect with direct connect syntax, ./sql hr/oracle@localhost:1521/orcl

  • @davidd2071
    @davidd2071 10 лет назад +2

    Holy hell, I did not not know about that /*csv*/ hint, I assume that's specific to SQL Developer? I hate how SQL*Plus always uses max column length by default and I have to format the column widths. Well this new formatting looks nice, just make the column header text black if it's gonna be on a white background. Some QoL changes for SQL*Plus have been long overdue, hello it's 2015, the command line can still be sexy :D
    Jeff, the one thing I would love for SQL Developer above all others is the ability to reconnect to an existing session if my SQL Developer/Java crashes. Say for example I started an update on 10mil rows, SQL Developer crashes midway for some reason, I could log back in using the same credentials, and a popup would say something like 'we found another existing session for that user, would you like to resume it?'

  • @JeffSmiththat
    @JeffSmiththat  10 лет назад +3

    To download SQLcl, go here
    www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-41ea-2372780.html
    For step by step install instructions, go here
    www.thatjeffsmith.com/archive/2014/12/sdsql-installing-and-connecting-with-our-new-command-line-interface-to-oracle-database/
    This is an early adopter release. If you have any questions or need help, please consult the OTN Community Space here
    community.oracle.com/community/database/developer-tools/sql_developer/

    • @barrymcgillin
      @barrymcgillin 10 лет назад +1

      Try downloading again. We just rev'd the tool.!

    • @ericjohnson1003
      @ericjohnson1003 8 лет назад +1

      Jeff Thanks the sql syntax should be as stated below:
      sql id/pw@hostname:1521/SID
      the step by step install was great! please update it to the new sql.exe
      IF only putty was this easy!

    • @JeffSmiththat
      @JeffSmiththat  8 лет назад

      Yeah I need to!!

    • @willcoleda
      @willcoleda 8 лет назад

      FYI, the download link is a 404 now.

    • @JeffSmiththat
      @JeffSmiththat  8 лет назад

      Sorry Will, you can go here
      www.oracle.com/technetwork/developer-tools/sqlcl/downloads/index.html

  • @JeffSmiththat
    @JeffSmiththat  10 лет назад

    I'm not able to reproduce your sql history recall issue +David D. Do you have this week's build? Please share your feedback to our SQL Developer OTN Community Forum.

  • @owenstc
    @owenstc 10 лет назад

    Doesn't seem to be much documentation from what I can see, although that's not surprising given how new it is. I'm getting java errors when attempting to launch the sql.exe from cmd on my win7-64 machine. Do you have any suggestions on how to set the sql.bat to include a proper java_home...or if that isn't the issue, what would you suggest?

    • @JeffSmiththat
      @JeffSmiththat  10 лет назад

      if you run
      java -version
      from a cmd window, what do you see?
      For now, all of the help is command related via the HELP command inside the application, the official docs are being worked on now.

  • @stalin200000
    @stalin200000 3 года назад

    may i run sql and export result to XLS? from command line? without mouse clicks?

    • @JeffSmiththat
      @JeffSmiththat  3 года назад

      Excel (XLSX) files, no. But CSV, which Excel can then easily open? Absolutely YES. And no mouse clicks required.

    • @stalin200000
      @stalin200000 3 года назад

      so the answer is NO. why they created this Bad Version of sqlplus ?

    • @JeffSmiththat
      @JeffSmiththat  3 года назад

      @@stalin200000 spooling a zipped/XML file - for what gain? CSV is just the beginning, we support json, inserts, xml, and more.

    • @stalin200000
      @stalin200000 3 года назад

      @@JeffSmiththat so.. "oracle sql developer" can create Excel with "mouse click-click-click", but not in "automated mode"? does it have "macro recorder"? you know computers are for "automation"..

    • @JeffSmiththat
      @JeffSmiththat  3 года назад

      @@stalin200000 consider your Enhancement Request filed, thanks for your input

  • @ahenlel300
    @ahenlel300 9 лет назад

    I am using Putty, why are my column headings not displaying. The records are all displaying, but the not the column headings.

    • @JeffSmiththat
      @JeffSmiththat  9 лет назад

      not sure, I don't use Putty. leave a note on the Community Forums and a dev can take a look at it

  • @99rautvishal
    @99rautvishal 8 лет назад

    Thanks a lot Jeff , wanted something like this really bad. But what I really wanted is just a bat file when clicked would spool a report in .csv file . I am using the below command in a bat file to connect but how do I spool and write it directly to a file ?? Any help would be greatly helpful.
    cd C:\Users\username\Desktop\sqlcl\sqlcl\bin
    sql username/pwd@//hostname:1521/service_name

    • @JeffSmiththat
      @JeffSmiththat  8 лет назад

      yeah you can do that, in your .bat file open sqlcl and pass it a script file that does what you want, it'll spool the the CSV

  • @lemueltaku6536
    @lemueltaku6536 9 лет назад

    hey my name is lemuel and unable to unzip a zipped folder to install software.please could any one help

  • @magma80
    @magma80 9 лет назад

    Jeff Smith
    Any plans to introduce a linux client ?

  • @stalin200000
    @stalin200000 3 года назад

    so this is just another bad version of sqlplus?

    • @JeffSmiththat
      @JeffSmiththat  3 года назад +1

      No, it's what sqlplus would be if it were built today.