<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeff Smith 🥃 ☜ on Medium]]></title>
        <description><![CDATA[Stories by Jeff Smith 🥃 ☜ on Medium]]></description>
        <link>https://medium.com/@thatjeffsmith?source=rss-54e19c68a597------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*t41LPWDh2nfDK3nA.jpg</url>
            <title>Stories by Jeff Smith 🥃 ☜ on Medium</title>
            <link>https://medium.com/@thatjeffsmith?source=rss-54e19c68a597------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 00:09:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thatjeffsmith/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[If you’re not wondering how AI can solve your data problems, you’re doing it wrong.]]></title>
            <link>https://medium.com/@thatjeffsmith/getting-started-with-oracle-databases-mcp-server-with-cursor-7cd1302f2ff7?source=rss-54e19c68a597------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cd1302f2ff7</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Jeff Smith  ☜]]></dc:creator>
            <pubDate>Tue, 12 Aug 2025 19:32:09 GMT</pubDate>
            <atom:updated>2025-08-12T20:04:02.375Z</atom:updated>
            <content:encoded><![CDATA[<p>MCP Servers are all the rage, and for good reason. They allow a Language Learning Model via an Agent to interact with things. Like…your email. So imagine using ChatGPT to search and summarize your email, or even directly compose and send your 2 week notice.</p><p>Now, imagine all the things you’re using your databases for, and all the data that’s being kept in there. Juicy, amazing data — only limited by your imagination, SQL skills, Bi Publisher reports, and caring enough to learn your data model.</p><p>Those problems can be greatly diminished by getting help from AI. And now that’s relatively easy with our MCP Server.</p><p>Yes, Oracle Database has an MCP Server (<a href="https://blogs.oracle.com/database/post/introducing-mcp-server-for-oracle-database">official announcement</a>.)</p><p>What is MCP? If you need to catch-up, <a href="https://www.anthropic.com/news/model-context-protocol">Anthropic’s Hello World</a> is a good place to start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kyOq1CZNNpr8a9JpKE9DYw.png" /><figcaption>MCP Servers allow agents to interact with … things, things like an Oracle Database</figcaption></figure><p>Yes, it allows you to use your agents and LLMs to interact with your database, including:</p><ul><li>list available database connections</li><li>connect to a database using one of those connections</li><li>run query or queries on that database</li><li>run SQLcl commands</li><li>disconnect or close any open connections</li></ul><h3>Requirements</h3><p>Do you have an Oracle Database to work with? We officially support versions 19c, 21c, and 23ai.</p><p>Do you have an account you can use to connect to your database?</p><p>Do you have our MCP Server configured and available for your Agent?</p><p>That’s it!</p><h3>Install and Configuration</h3><p>Assumption #1: you already have an Oracle Database. Don’t? <a href="https://www.thatjeffsmith.com/archive/2021/02/im-a-student-studying-oracle-and-i-need-a-database-help/">We make it easy to get going!</a></p><p>Assumption #2: you know how to connect to said database, that is you have your credentials and server information required.</p><h4>Installing SQLcl</h4><p>Our MCP Server is implemented with an existing Oracle Database interface, our modern CLI, also known as <a href="https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/">Oracle SQLcl</a>. The ‘cl’ stands for, ‘command-line.’</p><p>If you’re on a Mac, you can simply use our cask and get going with:</p><blockquote>brew install sqlcl</blockquote><p>Otherwise, it’s a simple archive you can <a href="https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip">download</a> and extract on your machine. Your only runtime requirement is Java 17, or even better, Java 21.</p><p>Once you unzip the archive, open a terminal, and cd to the ‘bin’ folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*5Qqx-9r2JxMg0Tx_NhInyQ.png" /><figcaption>./sql /nolog</figcaption></figure><p>This will get you to a SQL prompt, and you are all ready to connect and start doing things like, running SQL queries.</p><h4>Creating our connection</h4><p>Now I can do something like this -</p><p><em>conn -save demo -savepwd hr/oracle@localhost:1521/freepdb1</em></p><p>This tells the program to connect to our freepdb1 database, using the HR user, and to save the connection as ‘demo,’ and to also save the password.</p><p>I can now connect to that database anytime I want now, by simply referring to it by name, ‘demo.’</p><p>Trivia: SQLcl shares it’s connection store with our SQL Developer Extension for VS Code! So if you use either interface, you will see the same connection lists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRbFQjNPmuXYqdnKdkU8EQ.png" /></figure><p>Ok, we’re done with SQLcl, now it’s time to setup your Agent to register our new MCP Server.</p><h3>Configuring Cursor</h3><p>Cursor is a popular alternative to VS Code. I don’t play favorites, and if you want proof, here’s <a href="https://www.thatjeffsmith.com/archive/2025/07/getting-started-with-our-mcp-server-for-oracle-database/">a tutorial showing this same process for VS Code and Copilot</a>.</p><p>In cursor, we need to open the application settings. Look for ‘Tools &amp; Integrations.’</p><p>You should see a control to add your first MCP Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXaU0viY9LUjwchj1F1SgA.png" /></figure><p>Once you click the + button, you’ll see a file has been opened. We’re going to edit the JSON document to include the information for SQLcl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7AWFJtExEhdcsh_x2XW3A.png" /></figure><p>Things of note:</p><ul><li>be sure the name of the object is all lowercase, MCP gets finicky otherwise</li><li>the command is the full path to where you extracted SQLcl, and includes the command to start it up</li><li>the arg, is a simple <em>-mcp</em>, which tells SQLcl to run in MCP Server mode</li></ul><p>Once you save/close the file, you should now see this in Cursor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*kL7vhzHUXLEW-15QCBQlgg.png" /><figcaption>Green means, ‘good!’</figcaption></figure><p>If you mouse over one of the tools listed, you can see how we are instructing Agents on what is available for them to take advantage of.</p><p>What the Agent sees when it asks for Tools from our MCP Server, and what they do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6ZGrzapqeOxgp0dMWMJcw.png" /><figcaption>Think of this as a prompt of sorts. Or a resource for the ‘run-sql’ tool.</figcaption></figure><h3>Let’s do some work!</h3><p>I have downloaded my Spotify streaming activity, and have uploaded that to my Oracle Database. I’m betting that one of these new-fangled LLMs can help me gain some insights on my data, and help me improve my table definitions.</p><p>Starting a new agentic chat, or task. Note, I am NOT in ‘ask’ mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GRJ9NjP38k72F0rRM4ojcA.png" /></figure><p>I’ve asked it to connect to my ‘demo database,’ and the Agent immediately figures out it probably needs to work with this new MCP Server and it’s ‘list-connections’ tool.</p><p>It asks for permission, I need to hit ‘Run tool,’ to allow it to continue.</p><p>Beware Agents/Clients that just auto-run! I’m currently struggling to figure out how to configure Windsurf to do this :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWvyvDemzWU0sMhFpJhxAw.png" /></figure><p>It got back a list of connections, found one that was close or an exact match to ‘demo,’ and is now asking to use the connect tool to connect to said database.</p><p>Note that there is no USERNAME or PASSWORD included in the tool request. Our MCP Server (SQLcl) securely stores these, and the Agent and its LLMs will NEVER see those.</p><h4>ALWAYS READ THE SQL</h4><p>The LLMs are curious creatures. You want to make sure they are on the right track. Sometimes they will veer off. It’s OK that you correct them, and guide them. Vibe coding is OK, but keeping your hand on the wheel will yield <strong><em>much</em></strong> better outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUxt02g6KmOu2ZmFkVhv2A.png" /><figcaption>It wanted to figure out the USERNAME and its default tablespace, so I REJECTED the request.</figcaption></figure><p>After a stern reminder, it’s back on track.</p><p><em>you don’t need to know my username or the default tablespace, just find my spotify table and figure out how it’s structured and what it’s data looks like</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ThyrSejxPvwk29TtnFeLA.png" /></figure><p>It’s going to find a couple of tables, and here’s where some of the interactiveness of the agent starts to shine through.</p><p>The Agent takes the response from our MCP Server, and feeds it to the LLM, and the LLM is able to discern what the right table is. It can ‘reason’ that the $ERR$ table is probably for logging errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*NMA33WEw6Y4vjSXvLSD35A.png" /><figcaption>It helps to have GOOD table names, <a href="https://www.thatjeffsmith.com/archive/2025/07/using-claude-to-fix-my-table-comments-via-our-mcp-server/">but that’s not a showstopper!</a></figcaption></figure><h4>What the LLM can do with the data it gets from our database</h4><p>After only running 3 queries, it has this summary for me:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iYWeDbY6UDYuaFvQCYrNcw.png" /><figcaption>Ok, so the Spotify personal data dump only includes your last year’s worth of activity. Meh.</figcaption></figure><h3>Let’s try something, harder.</h3><p>Awesome! Let’s create a new Oracle VIRTUAL column called ‘PLAYING_TIME,’ using a function to derive the hours, minutes, and seconds spent listening to each song. The derived column will be of type INTERVAL, and it’s ok to round up to the nearest second.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rp9gAEHalZV_czw0kWlZxA.png" /></figure><p>I mean, it looks OK, and not shown off-screen, is the math to round the seconds by doing a div by 1000.</p><p>The nice thing about most agents is that they LIKE to check their work. It’s not enough for it to just see the ‘happy’ response. It wants to dig deeper.</p><p>Without further prompting by me, it asks to run another SQL statement to see if it’s on the right path.</p><p>Once it’s done with it’s checks, it presents a nice Summary, ‘showing its work.’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWRCAjJVUPO7yyK6KfsiEg.png" /></figure><p>To make sure it’s not hallucinating, I can go examine the table directly, using our SQL Developer Extension for VS Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nb2OUpPexFepBVx24ltA_g.png" /></figure><p>So yes, I can use the Agent to not only query my data, but UPDATE my database objects.</p><h3>Let’s talk about security</h3><p>Use a database user with the appropriate level of privileges for both running commands and queries in your database, and can also only see the data that is required to accomplish the given tasks.</p><p>Don’t ever blindly ‘trust’ the agent, always confirm that the Tool requests have appropriate payloads. That is, is the SQL or DDL they are wanting to run, appropriate based on your task/prompt?</p><h3>Tidying up</h3><p>It would be nice to clean things up a bit. Let’s start with my table and add some comments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*STWXAw-3EpY8UbW9gfS5fQ.png" /></figure><p>And let’s check it’s work -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SKCfVn6LuHywRWE2OA1sxg.png" /></figure><p>That checks out.</p><p>One more thing, we probably want some indexes.</p><p><em>One last thing. I like to query my data by the name of the bands. Can you suggest an index, and show the before and after cost or response time for looking up my streaming history listening to Metallica as an example?</em></p><p>Here’s what it did.</p><ul><li>got the execution plan for running the query now</li><li>created the index</li><li>got the new execution plan</li><li>compared the results</li></ul><p>And it’s findings, note I’m copying/pasting directly from Cursor here:</p><p>Perfect! Here’s the performance analysis for the index on ARTISTNAME:</p><h3>Index Recommendation</h3><p>Index Created: IDX_SPOTIFY_ARTISTNAME on spotify_streaming(artistname)</p><h3>Performance Comparison: Before vs After Index</h3><h3>BEFORE Index (Full Table Scan)</h3><ul><li>Operation: TABLE ACCESS FULL</li><li>Cost: 14 (8% CPU)</li><li>Time: 00:00:01</li><li>Method: Scans entire table (5,471 rows) to find Metallica tracks</li></ul><h3>AFTER Index (Index Range Scan)</h3><ul><li>Operation: INDEX RANGE SCAN + TABLE ACCESS BY INDEX ROWID BATCHED</li><li>Cost: 6 (17% CPU)</li><li>Time: 00:00:01</li><li>Method: Uses index to quickly locate Metallica tracks, then fetches only those rows</li></ul><h3>Performance Improvement</h3><ul><li>Cost Reduction: 57% improvement (from 14 to 6)</li><li>Efficiency: Instead of scanning all 5,471 rows, Oracle now directly accesses only the 117 Metallica tracks</li><li>Scalability: As your dataset grows, the performance benefit will become even more significant</li></ul><h3>Your Metallica Listening Data</h3><p>The query returned 117 Metallica tracks from your listening history, spanning from August 2024 to June 2025. You’ve been listening to a great mix of their catalog including:</p><ul><li>Classic albums: Master of Puppets, Ride the Lightning, …And Justice for All</li><li>Recent releases: 72 Seasons tracks</li><li>Various remastered versions</li></ul><h3>Additional Benefits</h3><p>This index will also improve performance for:</p><ul><li>Queries filtering by other artists</li><li>LIKE searches on artist names</li><li>IN clauses with multiple artists</li><li>Any query that filters or sorts by ARTISTNAME</li></ul><p>The index is now in place and will automatically be used by Oracle’s query optimizer whenever you query by artist name!</p><h3>Show me your work</h3><p>Can I really trust all of this?</p><p>You can see all of the work done on your behalf, by checking the MCP log table(DBTOOLS$MCP_LOG) in your connection’s schema.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*znDylacjmztTYKgKDhwA_w.png" /></figure><p>So, everything I demonstrated via Cursor’s Agent interface, was accomplished over 23 of our MCP Server tool invocations, 1 connect and 22 run-sql’s.</p><h3>Summary and takeaways</h3><p>Your Agents can now interact with your Oracle Database, directly.</p><p>The SQLcl MCP Server feature is free, and easy to install. It’s existing, trusted technology from the database team here at Oracle.</p><p>Don’t trust the LLMs, keep an eye on them, review their requests before allowing them to continue. ‘Vibe,’ unattended coding is NOT recommended.</p><p>Use standard database best practices on security (D<a href="https://docs.oracle.com/en/database/oracle/sql-developer-command-line/25.2/sqcug/using-oracle-sqlcl-mcp-server.html">ocs</a>.)</p><p>LLMs are great at answering questions, generating code, and know how to get around an Oracle Database. They can be extremely helpful for many sorts of tasks (troubleshooting, tuning, explaining code, fixing your data model, etc.) Not all LLMs are equal, you will want to experiment to see what’s ‘best’ for different types of tasks.</p><p>And FINALLY, Oracle will be releasing new MCP Server Tools on a monthly basis. This means more direct interactions with the database, vs generating SQL and executing it. That provides a more deterministic experience, and fewer requests/tokens. Stay tuned for updates!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cd1302f2ff7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Be Nice..when Showing Code in a Demo or Presentation]]></title>
            <link>https://medium.com/oracledevs/be-nice-when-showing-code-in-a-demo-or-presenation-b6d1c26ab026?source=rss-54e19c68a597------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6d1c26ab026</guid>
            <category><![CDATA[presentations]]></category>
            <category><![CDATA[demo]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Jeff Smith  ☜]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 17:15:36 GMT</pubDate>
            <atom:updated>2018-03-11T14:36:17.933Z</atom:updated>
            <content:encoded><![CDATA[<p>As a child of the 80’s I live my life by movie quotes. One of those comes from Roadhouse.</p><p><a href="http://www.imdb.com/title/tt0098206/quotes">I want you to be nice until it’s time to not be nice.</a></p><p>It hurts me to say it, but many of you are NOT being nice. But you are SO close to getting there.</p><p>As someone who does a LOT of show and tell around our development tools, I spend many minutes of each day demonstrating features that involve SQL and PL/SQL — both in graphical user and command line interfaces.</p><p>There are many tips and tricks I have for making this as enjoyable as possible for the user, but there are two that apply equally to both environments:</p><p>#1 Increase Your Font Size</p><p>Not everyone is sitting in the ‘front row.’ And not everyone is a retired pilot with 20/20 or even better vision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgoDPGnYxZzcEB9yLfgUGQ.png" /><figcaption>This is really easy — just increase the Font Size.</figcaption></figure><p>Does it mean you might have to re-think how your code will show on the screen when it comes to line wrapping or the size of your windows? Yes. But if you’re there to deliver a message or help someone — help them.</p><p>If they can clearly see what you’re showing, then they can more easily follow along with your train of thought, and they’re going to come away with your message intact.</p><p>Go as high as you can. I’m at 36 in Windows CMD, and in my GUI, I’m currently at 22.</p><p>#2. Use Screen Magnifiers, Liberally.</p><p>Do your slide, or your demo in real time as you normally would. Pause a half-second, and then rewind to the beginning of your action-shot. Zoom. Show how you started the process, EXACTLY where you clicked, or repeat exactly the keyboard sequence you used. FOLKS ARE GOING TO BE ASKING, how/where did he do that?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j03n6HsXtwAfXJbrSvq32A.png" /><figcaption>The ZoomIt utility on Windows even allows you to draw on the screen for extra emphasis after you have zoomed in.</figcaption></figure><p>Let them jot this down.</p><p>Then do the thing, and zoom in again on the results.</p><p>If you anticipate your audience’s needs and questions ahead of time, you’re that much closer to winning them over.</p><p>Don’t lose them because they can’t make out what you’re doing on the screen.</p><h3>Controversial Statement: Consider if Black Text on a White Screen Really Works</h3><p>I am going to say, ‘no, no it doesn’t.’ This is a subjective statement. But I’ve seen enough presentations where folks go code samples and screenshots that look like they came straight out of Notepad or vi, without any consideration to how it will appear.</p><p>If your code is an essay, then pay attention to the aesthetics. Don’t lose the technical argument because someone is distracted by the fit and finish of your product.</p><p>Maybe you hate how I show code above, but darker images on slides with predominately white backgrounds and themes seem to work better…for me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d1c26ab026" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/be-nice-when-showing-code-in-a-demo-or-presenation-b6d1c26ab026">Be Nice..when Showing Code in a Demo or Presentation</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Installed Oracle SQL Developer, Now What?]]></title>
            <link>https://medium.com/oracledevs/i-installed-oracle-sql-developer-now-what-71230b9c9303?source=rss-54e19c68a597------2</link>
            <guid isPermaLink="false">https://medium.com/p/71230b9c9303</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Jeff Smith  ☜]]></dc:creator>
            <pubDate>Tue, 04 Dec 2012 00:00:00 GMT</pubDate>
            <atom:updated>2017-11-22T07:10:23.817Z</atom:updated>
            <content:encoded><![CDATA[<p>You did it! You landed the big interview<em>*</em>. Tomorrow is the big day. There’s just one problem: they expect you to know what a database looks like, and how to write SQL.</p><p>No worries, you tell yourself, I’ll just go download that Oracle thing and have a go at it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*LpXerKQ_iujcrp5hlI4CDQ.png" /><figcaption>Ok, point-click, go sounds good, let’s go get that thing.</figcaption></figure><p><a href="https://www.oracle.com/sqldeveloper">Oracle SQL Developer</a> is the GUI, and you’ve downloaded and got it up and running in five minutes. Awesome. Let’s do this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VouPTCDcmX_tKrHmW1ezTg.png" /><figcaption>Crap. Userame? Password?? Hostname??? What the what?</figcaption></figure><p>You’re being asked for a few things that you don’t know. And to be honest, you don’t even know what you don’t know.</p><p>SQL Developer is a desktop application. It serves as a client for working with an Oracle database.</p><p>But, it’s NOT a database, nor does it come with one.</p><p>And you’re going to need a database.</p><p>So, you <em>could </em>go make yourself a database.</p><h4>But (a really BIG but)</h4><p>Starting out day 1 of your Oracle journey by installing the Oracle Database software and creating a database is going to be a tough ask for most people. And let’s remember, you have that interview TOMORROW, so let’s not spend the next 4 hours going through that process.</p><p>Let’s get to the goods, NOW.</p><h4>I’m not MOST people, I’m fairly decent at this IT stuff.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*cPEupICOzPECHvTAC8fFvQ.jpeg" /><figcaption>UNIX, Linux, OS X, whatever.</figcaption></figure><p>Comfortable with Docker as well? Yes? Excellent. Go <a href="http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html">download Oracle XE</a> for Linux. It’s free! Then get this <a href="https://github.com/oracle/docker-images/blob/master/OracleDatabase/dockerfiles/11.2.0.2/Dockerfile.xe">container</a>.</p><p>Once you have the container up and running, you can connect to the database inside of it from SQL Developer. And the connection properties in SQL Developer default to you having XE running on your machine: the servername is localhost and the database name is ‘xe.’</p><p>If you’re NOT a Linux/Docker aficionado, you can also download the Windows version. There’s a GUI installer. It won’t take you very long to get it up and running.</p><p>But then you’re going to have a database to maintain on your machine, and a a BUNCH of software to install.</p><p>Probably overkill for what you need.</p><h3>Easy++ — Just download &amp; use our VirtualBox appliance.</h3><p>We built a virtual machine, completely free to use for learning Oracle, that you can simply:</p><ul><li>download</li><li>import</li><li>run</li></ul><p>You need to <a href="https://www.virtualbox.org/wiki/Downloads">download and install VirtualBox</a>, also free.</p><p><a href="http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html">Download the appliance</a> (fancy way of saying image).</p><p>The image includes:</p><ul><li>12cR2 Enterprise Edition copy of Oracle Database (with sample data!)</li><li>SQL Developer installed and ready to connect</li><li>Some browser based labs you can step through to learn Oracle</li><li>Oracle Application Express, in case you want to build a web application</li></ul><h4>Import the Appliance</h4><p>After you’ve installed VirtualBox, run it.</p><p>After you’ve downloaded the appliance from Oracle, use the ‘Import’ option in VirtualBox and point to that file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vaNUCIIbyQlFIZ8-2qI4jA.png" /><figcaption>It’s that REALLY big file you just downloaded.</figcaption></figure><p>This will bring up another dialog with some switches and settings you can change. Just click OK.</p><p>It will take a few minutes to put the files down. When it’s done, you can safely delete the .ova file you downloaded.</p><p>You should see your image in the VirtualBox app, select it, and hit the ‘Start’ button on the toolbar.</p><p>You’re cooking with gas when you see this on your desktop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TLF4HsBiIKQq4HvHB_6-bw.png" /><figcaption>YOU ARE SO CLOSE NOW.</figcaption></figure><p>You CAN run SQL Developer inside the image, but don’t. Save the image resources for the database and linux OS. You can easily run SQL Developer on your host desktop and connect to the database inside the image.</p><h4>Now We’re Ready to Connect!</h4><p>Let’s create a connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*kIVPhZW1f-uMqwjkqXHn3A.png" /><figcaption>Pay attention to this part.</figcaption></figure><pre><strong>Connection Name:</strong> anything you want<br><strong>Username:</strong> we’re going to use ‘HR’<br><strong>Password:</strong> ‘oracle’ — yes, it’s case sensitive<br><strong>Hostname:</strong> localhost<br><strong>Port:</strong> 1521<br><strong>Service name:</strong> orcl</pre><p>The VirtualBox appliance has a port forward setup. It allows you to ‘talk’ to port 1521 on your machine, and it’s setup to send that traffic to port 1521 on the Linux image. That’s why we can use ‘localhost’ for the server, instead of having to worry about what the IP address or network name for the image is.</p><p>Fill out the boxes, and hit ‘connect.’</p><blockquote>The default passwords on this image are all ‘oracle’ — so you can connect as SYS, HR, or whatever — just use ‘oracle’ as the password. The Linux passwords are all ‘oracle’ too, so you can login as ‘root’ or as ‘oracle’ in the Linux desktop.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HAIJUEYBp-dhE8rpbuq1xw.png" /><figcaption>You can type SQL in the Worksheet, or you can ‘draw’ queries in the Query Builder.</figcaption></figure><p>You’re in! Now you can start trying to learn and use the database without reading the docs. That’s how we all do things right? We unwrap the package, install the batteries, and turn it on. It’s only after we get stuck on our third or 10th try do we resort to reading the instructions.</p><p>When you’re ready to read those instructions, go back to the Linux desktop in your VirtualBox appliance.</p><p>Find the big red ‘start here’ button. It’s actually a button. Double-click it. Or right-click, ‘Open.’ That will launch our free tutorials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfMFW9kXeKxOwNc1lMwhhA.png" /><figcaption>I recommend you start with ‘SQL Developer.’</figcaption></figure><p>These are step-by-step instructions complete with screenshots so it’s easy for you to follow along.</p><h4>Good luck on that interview tomorrow!</h4><p>After you nail the interview and get the job, your journey will continue. We have lots of resources for you. I’m on <a href="https://twitter.com/thatjeffsmith">Twitter</a> and have a <a href="https://www.thatjeffsmith.com/">blog</a> where I talk about SQL Developer…a LOT.</p><p>If you prefer moving pictures, we also have a <a href="https://www.youtube.com/watch?v=EguMf4HbPU8&amp;list=PL_qNe_aTKkIUUzDEJ7KuvyldBuynyoDb2">YouTube playlist</a> that you can peruse at your leisure.</p><ul><li><em>Maybe it’s not an interview. Maybe it’s that database class you signed up for, and you waited until the last moment to start your homework.</em></li></ul><p><em>A version of this story originally published at </em><a href="https://www.thatjeffsmith.com/archive/2012/12/i-have-oracle-sql-developer-installed-now-what/"><em>thatjeffsmith.com</em></a><em> on Dec 4, 2012.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71230b9c9303" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/i-installed-oracle-sql-developer-now-what-71230b9c9303">I Installed Oracle SQL Developer, Now What?</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>