Conversion of SQL worksheet.

Hello

If I sent someone a microsoft excel spreadsheet, the chances that you would be able to convert in SQL if I named a few tables and columns that were to be used are there?

Please let me know,

Thank you SM.

If your excel workbook is formatted so that you have a 'table' by the worksheet contained in it and the first row on the worksheet defines column names and the following lines are the data, then you can treat the workbook as an external database using the ODBC Excel driver.

Set up:

1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL. 

2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:

EXCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
)
(CONNECT_DATA =
(SID = EXCL)
)
(HS = OK)
)

Here SID is the name of data source that you have just created.

3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:

(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = )
(ORACLE_HOME = )
)

under SID_LIST_LISTENER like:

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\ORA9DB)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORA9DB)
(ORACLE_HOME = d:\ORA9DB)
(SID_NAME = ORA9DB)
)
(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = EXCL)
(ORACLE_HOME = D:\ora9db)
) ) 

Dont forget to reload the listener 

c:\> lsnrctl reload

4- In %ORACLE_HOME%\hs\admin create init.ora. For our sid EXCL we create file initexcl.ora.

In this file set following two parameters:

HS_FDS_CONNECT_INFO = excl
HS_FDS_TRACE_LEVEL = 0

5- Now connect to Oracle database and create database link with following command:

SQL> CREATE DATABASE LINK excl
2 USING 'excl'
3 /

Database link created.

Now you can perform query against this database like you would for any remote database.
SQL> SELECT table_name FROM all_tables@excl;

TABLE_NAME
------------------------------
DEPT
EMP

Or refer to this Article...
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:4406709207206

Tags: Database

Similar Questions

  • How to get line numbers to display on the SQL worksheet?

    Dear Forum,

    I learn the SQL Developer.  I use it in my work and school.  At school, when I enter a query in the SQL worksheet, line numbers show in a column to the left of the editing area.  In my work, no line number.  I'm working on a fairly long query at my work, and the line numbers would be useful.

    I looked at tools / preferences / settings for the Code Editor, but do not find a setting for line numbers.  I looked at the other tabs in preferences and found nothing that looked useful.

    I have looked at all of the choices on the display list, but can't find anything on line numbers.

    Am I missing something obvious?  Line numbers is also available?  If so, how?

    I looked at various hits "line number" in this forum, but I've not found anything exactly the point.

    Beverly

    PS Oracle 11g, SQL Developer 3.0.04, Linux x 86-64 (don't have version)

    Tools-> preferences /-> Code Editor-> line gutter

  • How to perform the procedure in the SQL worksheet?

    Hi, anyone knows, how I can execute procedure here?

    I try to EXEC sec_roles, EXEC security_admin.sec_roles, EXECUTE - there's a SQL statement error. When I use the CALL - there is no such procedure (I have execute privileges).

    Although in SQLPlus EXEC works, but there are problems with the standard SQL commands (each of them '2' returns any content is).

    Any ideas?

    Concerning
    Krzysztof

    EXEC procedure (parameters) is a plu sql (and some others) shortcut for

    BEGIN
       procedure(parameters);
    END;
    

    So try that and then pressing / on anything in the sql worksheet that makes a statement in execution.

    Note that if your procedure has defined parameters as OUT or IN OUT, you need to provide a variable to accept the returned values.

    John

  • Copy and paste formatted a text SQL worksheet

    Hello
    When I select SQL in a SQL worksheet and paste it into an e-mail, or whether, it loses its formatting - that is, its colors and fonts.
    Is it possible to copy the text in his State of fitness?
    Thank you!
    Paul

    There is an extension named ' Copy As HTML/RTF. The name is pretty self explanitory. I got it in the Update menu by including 3rd party plugins.

  • Formatting characters in the SQL worksheet in the version 2.1.1.64

    Hello

    Using the version 2.1.1.64

    When I type SQL in the SQL worksheet calculation is to show formatting characters - for example all the spaces display as a light gray and a newline character appears at the end of each line.

    Formatting characters displayed not initially when I started to use this version. I don't know how this setting is enabled, but there doesn't seem to be a preferences setting to turn it off. Any ideas?

    Tools-> preferences-> Code Editor-> display-> Show characters

    should take care of your problem.

  • 1Z0-146 and SQL worksheet

    I picked up a practical test of uCertify (the test of practice only legitimate 1z0-146 so far), and he has questions on the use of SQL worksheet.
    Must I dismiss these, since they appear nowhere on the requirements for the test (or maybe they fit under "Introduction to PL/SQL"? ""), or should I start using it because of the test?
    I never use sheet SQL calculation, but always on a SQL * the command-line with my files in a trainer Plus project.

    Dan T says:
    I picked up a practical test of uCertify (the test of practice only legitimate 1z0-146 so far), and he has questions on the use of SQL worksheet.
    Must I dismiss these, since they appear nowhere on the requirements for the test (or maybe they fit under "Introduction to PL/SQL"? ""), or should I start using it because of the test?
    I never use sheet SQL calculation, but always on a SQL * the command-line with my files in a trainer Plus project.

    I've glanced through the cover of uCertify page previously and noted some serious inaccuracies... in fact my current visit was to show a little less. These things could be in my imagination. For 1z0 - 047 they go on iSQLPLUS orders...

    I'm sure that 1z0-146 is PL/SQL tool independent, so these questions are probably not relevant.

    UCertify generally seem to be fast on the market, generally of lower quality and posibly coverage is not comprehensive but perhaps useful for a guarantee an a were in the areas, it is useful to go.

    It seems however allowed. (See http://www.certguard.com/).

    I think that if you get uCertify as an aid to cross check that you have not missed student/understand all areas, then it has some use, but be aware that they can have full coverage and they could cover some areas that you don't really need to cover. Little useful overall, but do not count too much on it.

    (I never bought uCertify tests myself).

    What I have said here are my personal opinions.

  • SQLdeveloper export to Excel - how to hide the SQL worksheet for data export

    Export to Excel - how to hide SQL worksheet for data export?

    Hello

    SQL Developer forum is here: SQL Developer

    Frank

  • How can I turn off automatic formatting while working in the SQL worksheet?

    Friends,

    Hope you can help with a quick question.

    Is it possible to stop the automatic formatting of SQL statements in the SQL worksheet?

    for example, when I type select * double it auto SELECT formats becomes * FROM DUAL when I press return.

    I use SQL Developer 2.1.1.64

    Thanks in advance

    Preferences - editor of Code - completion Insight - uncheck change case when typing

    Have fun
    K.

  • SQL worksheet tabs automatically gel in 2.1

    Hello:

    I just do a fresh install of Oracle SQL Developer version 2.1 (63,73). Operating system is Linux.

    I open a new sql worksheet and write two queries, say «select sysdate double», then on a second line 'sysdate + 1 double'.

    I select the first query and run with F9
    I select the second query and run with F9

    I re - select the first query and the sql worksheet automatically gets frozen. Each new run open a new tab of query result.

    It's very annoying.

    I checked in tools-> Preferences-> database-> spreadsheet and "Freeze automatically result tabs" is not checked.



    This behavior has not exposed in previous versions (EA1, ai2 and RC).

    Anyone with the same problem?
    What is a regression or a feature that I can disable?

    Thank you
    Andrea

    Published by: a.stropp on December 29, 2009 12:57

    I couldn't replicate the gel.
    But there is a bug here. Connected
    Bug 9247525 - otn: results of the worksheet tab is pinned for f9 selected SQL exec

    Solution: run sql without selection, but with just having the cursor in the sql

    -Rambeau

  • Impossible to delete characters on the SQL worksheet

    I am facing a noisy problem with SQL Developer (Versioning Support 1.5.5.59.69)...
    Whenever I open a SQL worksheet, I can insert characters but I can't remove them...

    What happened!

    Hello
    There is too much of a week, I had problem with strikes in the worksheets. For me has been useful tools-> preferences-> accelerators-> load Preset...
    This returned value hit in the normal state.
    Petr

  • Shortcut Ctrl-Qoute for Refacturing in the context of SQL-worksheet does not work

    Hello

    the shortcut ctrl-quote in the contextmenu for SQL-worksheet Refacturing does not work on my German keyboard. I am tired of all combinations... functionality works via the context menu, but it's too slow to call him 3 times to get the source code in lower case.

    ... Any help?

    Thanks, Jürgen

    Try redefining it in tools | Preferences | Accelarators.

  • SQL Dev 1.5.3: No "feedback" in the SQL worksheet? for example "1,000 rows deleted.

    In SQL Developer 1.5.3 seems no "feedback" in the SQL worksheet when you insert, update, and delete records. So I like the timer, it is more important for users to get comments for the UPDATE and DELETE statements; for example, it is essential to know if 0, 1 or 1,000 files have been updated by a particular SQL statement - also for DELETE queries (for example when users forget the WHERE clause, feedback is an important mechanism to realize the error).

    Is it possible to turn on your comments? ("set feedback we" seems not be honored). What is this fixed point 1.5.4? Should be presented as a feature request?

    Thank you.

    Dana

    Published by: Dana N on May 18, 2009 05:06

    Blame poor analytical skills or whatever, but they managed to have 2 reports areas separated from each other.
    You've found one of the toolbar in the spreadsheet with the timings of course, but there is also one in the status bar of heads...

    Have fun
    K.

  • TopLink grid 11g: conversion of SQL queries to the filters of consistency

    I would like to know how efficient the conversion of SQL queries for filters of coherence is wen search an object in the cache coherence. TopLink does something as instruction cache cache filters consistency as well? In this regard, you have number of performance?

    Thank you very much!

    Ming-Wen

    TopLink grid currently has a rudimentary filter cache that allows TopLink to only translate NamedQuery once. This allows TopLink grid to reuse the same filter on subsequent runs of this NamedQuery.
    -Gordon

  • SQL worksheet does not scroll properly

    I am running SQL Developer v.1.5.1 on a Thinkpad T60 with Windows XP SP2 and Sun Java 6 Update 7. My problem is that when I have a large script in the SQL worksheet and want to scroll upwards or downwards, it doesn't scroll. Only the top and bottom of lines on the screen changes. If you click anywhere in the worksheet code jumps and appears garbled. The only way to scroll without interference of the display is to click on the elevator.

    I tried to update my drivers and uninstalling and re - install the JAVA virtual machine and SQL Developer without result. The problem is consistent. Everyone knows this?

    It is rare to see this kind of problems with Java 6, and you have updated graphics driver you, so the only thin left is to add the following lines to \bin\sqldeveloper.conf

    AddVMOption - Dsun.java2d.ddoffscreen = false
    AddVMOption - Dsun.java2d.noddraw = true

    I think that the other makes the first redundant (IE if you use not directdraw, then it's okay if you do on or off the screen.

  • Preserve Bind values in the SQL worksheet

    Hello

    When you run the SQL statements with var/binding settings, SQLD can persist values entered the tool reboots?

    Is there a preference that controls this?

    Java (TM) Platform1.7.0_71
    Oracle IDE4.0.3.16.84
    Support for versioning4.0.3.16.84

    Thank you

    Manish

    Never mind. Found, he looked at me, but I was blind.

    Under the worksheet, check 'Save the Bind Variables on the disc to the output'.

Maybe you are looking for

  • Blue and dotted on Tecra series lines!

    I own a Toshiba Tecra laptop, and I recently got virus through music download.I was using my laptop this afternoon when it froze all of a sudden, in the image of the screen by turning slightly pink. I rebooted, but the Vista windows startup screen lo

  • Dv7 ENVY: ENVY dv7 will not start

    ENVY laptop computer dv7 will not start. It passes through the start-up phase, but when the office arrives, it shuts down and office back again, again, again, again, etc. never stops trying to load the desktop.

  • ISAPNP.sys is missing or damaged

    Tried to start my PC running Windows XP and got the following error message: "Windows has not start because the following file is missing or corrupt: Isapnp.sys" error message at startup Restarted from Windows XP CD, you press R to start the Recovery

  • Need to access the 'Documents and Settings' folder in Windows 7

    I am importing an ArcMAP GIS project to my new Windows 7 computer (the project was launched on Windows XP).  Because the files in this project were initially located in the subdirectories of the "Documents and Settings" folder, map search these files

  • Cannot recognize the SDHC 4 GB card

    My computer has Vista and it does not recognize a 4 GB SDHC card.  My old computer has Windows XP and I managed to find a solution so that it can read the card.  Does anyone has found a fix for Vista?