Any way to use Microsoft's DLLs to connect to Oracle Database?
I'm using an application originally targetted at SQL Server. The application allows both OLE DB and ODBC, and allows you to provide a query and a connection string. I'm wondering if it's possible to point the database client application, which knows NOTHING about Oracle, to communicate with an Oracle Database (perhaps by manipulating the Driver and/or Provider in the connection string). The application uses Microsoft's built-in OLE DB and ODBC classes found in System.Data.
Is there a way to get this to work, or will the application need to be recompiled to use ODP.NET data providers?
P.S. If so, and I do need to use the "Driver" connection string parameter, what is the name of the DLL used as the OLE DB driver? The ODAC package is described as containing "Oracle Provider for OLE DB 11.2.0.2.0". I don't see it.
Edited by: notfed on Dec 13, 2011 2:51 PM
And...the answer is yes.
Example connection string:
"Provider=OraOLEDB.Oracle;Data Source=DB11G;User Id=username;Password=password;"
Sample query:
"select * from mytable"
Similar Messages
-
I recently received a gift of a new ipad. Unfortunately I can't really switch from my Windows lap top until I figure out a way to use the ipad for my business emails which I use Outlook 2010 for. There are a singnificant amount of folders and history, with various attachments, that I have to have access to and I have been unable to find a way to move all of this over to the ipad. I use Yahoo mail for my primary mail server and can get the Yahoo mail on the ipad with no problem. But I do not have the full folder structure set up on Yahoo that I have on Outlook 2010 and to do so would be very time consuming...and I'm note even sure how I could move all the folders back to Yahoo and all the emails contained in them, many of which have been long deleted form Yahoo, back to Yahoo. Ideally I would just install Outlook 2010 on ipad and export all the files over. But there doesn't seem to be any Outlook 2010 program for ipad...if there is, please tell me about it. Otherwise, I need a relatively quick alternative that will not force me to recreate my entire Outlook 2010 folder structure and copy emails over folder by folder. If anyone has had the same issues, and was able to solve them, I would very much appreciate knowing how to do this. I like the ipad and want to use it for my main platform. Thanks
Welcome to the Apple Support Communities
Microsoft will launch Office for iOS next year, so you have to wait, Instead of Outlook, use Mail on the iPad -
Using jdk1.3.1 and connecting to oracle database
The following is my program of servlet connecting to database and viewing the data from table,
I am getting an error of SQLException caught which i wrote in my second catch block.I didn't understand what to do.Is that i have to download jdbc seperately with jdk1.3.1 or it is there in the kit.Please give me reply.I also created my dsn ,i have my odbc loaded in my pc.
Thanks
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class EmpServlet extends HttpServlet
public void init(ServletConfig sc) throws ServletException
super.init(sc);
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,
IOException
Connection con=null;
Statement st=null;
ResultSet rs=null;
res.setContentType("text/html");
PrintWriter out=res.getWriter();
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:plk","scott","tiger");
st=con.createStatement();
rs=st.executeQuery("select uname,upwd from userinfo");
out.println("<html><title>empservlet</title>");
out.println("<body>");
out.println("<ul>");
while(rs.next())
out.println("<Li>" rs.getString("uname") " " + rs.getString("upwd"));
out.println("</ul>");
out.println("</body></html>");
catch(ClassNotFoundException e)
out.println("could not load database driver");
catch(SQLException se)
out.println("sql exception caught");
finally
con.close();
}Instead of using the odbc driver to connect to the Oracle server, why don't you use the JDBC driver from Oracle?
By using the ODBC driver, you need to configure two things in addition to your Java program - ODBC setup (to setup the DSN) and also the SQLnet (to connect to the oracle server).
However, with the Oracle JDBC thin client, you just have to configure in your java program.
I hope this helps. -
Dear Support team,
There are any way to open Microsoft Excel - Office by using CSV format
best regardsFor the record, this is a user-to-user support forum. You aren't actually addressing Apple.
I'm not clear what you are trying to do, but Numbers will open a CVS file adn will export to CVS (as well as Page, Numbers, and PDF) using the document function (looks like a box with an arrow; upper left). If this isn't what you are looking for, perhaps you could provide a bit more detail. -
Any way to use cursor values inside other cursor by bulk collect?
hi,
Is there any way to use cursor get_tables value insdide loop get column if i am using bulk collect in both cursors?
I tried a lot but i am nt able to do it.kindly help...
create or replace procedure MULTIPLE_CURSORS_PROC is
v_owner varchar2(40);
v_table_name varchar2(40);
v_column_name varchar2(100);
cursor get_tables is
select distinct tbl.owner, tbl.table_name
from all_tables tbl
where tbl.owner = 'SYSTEM';
cursor get_columns is
select distinct col.column_name
from all_tab_columns col
where col.owner = v_owner
and col.table_name = v_table_name;
begin
open get_tables;
loop
fetch get_tables into v_owner, v_table_name;
open get_columns;
loop
fetch get_columns into v_column_name;
end loop;
close get_columns;
end loop;
close get_tables;
end ;hi there
Refer this
CREATE OR REPLACE PROCEDURE MULTIPLE_CURSORS_PROC
IS
TYPE scol IS VARRAY (10000) OF VARCHAR2 (32767);
v_table_name scol;
v_column_name scol;
TYPE curtyp IS REF CURSOR;
get_columns curtyp;
CURSOR get_tables
IS
SELECT DISTINCT tbl.table_name
FROM all_tables tbl
WHERE tbl.owner = 'SYSTEM';
BEGIN
OPEN get_tables;
LOOP
FETCH get_tables BULK COLLECT INTO v_table_name;
FOR indx IN v_table_name.FIRST .. v_table_name.LAST
LOOP
SELECT DISTINCT col.column_name
BULK COLLECT
INTO v_column_name
FROM all_tab_columns col
WHERE col.table_name = v_table_name (indx);
FOR ind IN v_column_name.FIRST .. v_column_name.LAST
LOOP
DBMS_OUTPUT.put_line (v_column_name (ind));
END LOOP;
END LOOP;
EXIT WHEN get_tables%NOTFOUND;
END LOOP;
CLOSE get_tables;
END MULTIPLE_CURSORS_PROC;regards
Hitesh -
Any way to use filter to exclude tables in navagation pane?
Is there any way to use filter to exclude a set of tables from the table list in the navagation pane? I have a number of tables (15+) starting with the same prefix eg. AB123 that I would like eliminate from the list. They sort right to the top and I always have to scroll down, and go through the show more dialog to see the entire list.
I am sure I'm missing something, but not sure what. Help Center has nothing to offer.
Thanks
GlennThis has been mentioned on the forum before - basically the need for more elaborate ways to filter (multiple conditions as well as 'not like'). It is on our list for future consideration, meaning post-production.
-- Sharon
Message was edited by:
sbkenned -
Is there any way to use -useLegacyAOT option in FlashBuilder 4.6?
I need to build my ipa with old version of Engine because i have some problems about loading images from outside. Since with Air 15 it is default engine, and i cannot quit Air 15 because of the iTunes specs. I cannot add -useLegacyAOT=yes to compiler options on Adobe Flash Builder 4.6 because it seems that it can be added at FB4.7.
So is there any way to add this options when i am using FB4.6
Thanks in advance.DeepakJ wrote:
Hi,
Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
Is there any way to modify the SQL query.
SQL
select dept, loc, count(*)
from dept
group by dept, locOutput-1
Dept Loc Count(*)
10 AA 1
10 BB 2
10 CC 2
20 AA 2
20 BB 2Output-2
Dept Loc Count(*)
10 AA 1
BB 2
CC 2
20 AA 2
BB 2
Yes, using the <tt>lag</tt> analytic function and specified ordering of the data:
select
nullif(d.deptno, lag(d.deptno) over (order by d.deptno, d.loc, e.mgr nulls first)) deptno
, nullif(d.loc, lag(d.loc) over (order by d.deptno, d.loc, e.mgr nulls first)) loc
, e.mgr
, count(*) n
from
dept d
join emp e
on d.deptno = e.deptno
group by
d.deptno
, d.loc
, e.mgr
order by
d.deptno
, d.loc
, e.mgr nulls first;
DEPTNO LOC MGR N
10 NEW YORK 1
7782 1
7839 1
20 DALLAS 7566 2
7788 1
7839 1
30 CHICAGO 7698 4
7839 1
40 BOSTON 7698 2
7902 1 -
my iphone has been lost in my house and i need to find a way to track it and its offline. it wont connect to the internet so there isnt a way to use find my iphone. i just want to play a sound on it. is there any way i can get a app that connects my ipod from a laptop or a different way to find it.
If your phone is offline, the ONLY way to find it is to look for it the old fashioned way. Your phone CANNOT be located electronically if it's offline.
-
I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.
Hi ART,
You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
There should be an example of this in the Resource Library | TestStand
Regards
Ray Farmer
Regards
Ray Farmer -
Is there any way to use Control Break in a SQL Query
Hi,
Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
Is there any way to modify the SQL query.
SQL
select dept, loc, count(*)
from dept
group by dept, locOutput-1
Dept Loc Count(*)
10 AA 1
10 BB 2
10 CC 2
20 AA 2
20 BB 2Output-2
Dept Loc Count(*)
10 AA 1
BB 2
CC 2
20 AA 2
BB 2Thanks,
DeepakDeepakJ wrote:
Hi,
Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
Is there any way to modify the SQL query.
SQL
select dept, loc, count(*)
from dept
group by dept, locOutput-1
Dept Loc Count(*)
10 AA 1
10 BB 2
10 CC 2
20 AA 2
20 BB 2Output-2
Dept Loc Count(*)
10 AA 1
BB 2
CC 2
20 AA 2
BB 2
Yes, using the <tt>lag</tt> analytic function and specified ordering of the data:
select
nullif(d.deptno, lag(d.deptno) over (order by d.deptno, d.loc, e.mgr nulls first)) deptno
, nullif(d.loc, lag(d.loc) over (order by d.deptno, d.loc, e.mgr nulls first)) loc
, e.mgr
, count(*) n
from
dept d
join emp e
on d.deptno = e.deptno
group by
d.deptno
, d.loc
, e.mgr
order by
d.deptno
, d.loc
, e.mgr nulls first;
DEPTNO LOC MGR N
10 NEW YORK 1
7782 1
7839 1
20 DALLAS 7566 2
7788 1
7839 1
30 CHICAGO 7698 4
7839 1
40 BOSTON 7698 2
7902 1 -
Time Machine Beautiful Background - any way to use it apart from TM
The picture of moving universe as the background of TM processes is beautiful. Is there any way to use it apart from TM (screen saver, desktop image) ?
Not easily. It's not a single display. The "moving parts" are separate.
The basic background is at:
/System/Library/PrivateFrameworks/Backup.framework/Versions/A/Resources/vortex.p ng
You could select and right-click it, and select it as your desktop picture, but it won't move.
Or display it with Preview, save it as a jpg, import it into iPhoto, make an album containing it, then select the album as your screen saver. -
Any way to use a quick and dirty icon like cLabel in the quick tools toolbar?
I am a javascript cut-and-paster with ability to cobble things together.
In previous versions of Acrobat, I had tools that were added to the toolbar using the technique shown in this script:
app.addToolButton({cName: "MyFlattenButton",
cLabel: "Flatten",
cEnable: "event.rc = (app.doc != null);",
cExec: "flattenPages();"
That would create a toolbar button with the "icon" that read "Flatten" which is all that I needed. I could click on it and it would flatten all pages in the document.
I used this to create several different tools, all with different names and cLabels.
This script still works in Acrobat XI (it adds the tool to the add-on tools list, and then I can add it from there to the quick tools toolbar). The cLabel names show up in the add-on tools list, but not in the quick tools toolbar. In the toolbar they all use the same generic icon (but they all work correctly).
From reading in this forum I see that there is a way to create a custom icon but it does not look easy. Is there any simple way to just have text appear as the icon as I used to do for earlier versions of Acrobat?
Thanks.One further question...
I found a code snippet somewhere online that attempted to deal with this issue. That led me to this (failed) solution:
this.importIcon("myIconFlat", "/D/J/CAD Standards/Stamps/Acrobat tools/flatten.jpg", 0);
var flatIcon = util.iconStreamFromIcon(this.getIcon("myIconFlat"));
app.addToolButton({cName: "MyFlattenButton",
cLabel: "Flatten",
oIcon: flatIcon,
cEnable: "event.rc = (app.doc != null);",
cExec: "flattenPages();"
The problem there is that importIcon is not allowed from a folder-level javascript, apparently. Would there be any way to use the importIcon part of this from the console and then cut and paste some output into the rest of the script? Just looking for a way to get the icon into my script. -
Is there any way to use a file transfer protocol to upload files to icloud?
Is there any way to use a file transfer protocol to upload files to icloud?
Unfortunately, no.
You will need a 3rd party web host to upload your websites to. Depending on the version of iWeb you are using you have a couple of publishing options:
iWeb ’09 (3.0.4) you can publish to an FTP Server or a local folder. ( With the built in FTP in iWeb you will end up with an address like “www.YourDomain.com/sitename/Home.html )
iWeb ’08 you can publish your website to a local folder
Basically all Web Hosting companies are iWeb-compatible.
If you’re looking for a good hosting I would recommend IX Web Hosting I have been using them to host my own websites for several years now and that their customer support is awesome too.
http://jeffnitschke.com/IXWebHosting.html
http://jeffnitschke.com/wordpress/2012/06/how-do-i-move-my-mobileme-site-ix-web- hosting-blog/
"I may receive some form of compensation from my recommendation or link." -
Is there any way to use a MacBook Pro as a router to set up a wireless connection for XBOX live.
Mac OS X 10.6 Help: Sharing your Internet connection
-
Is there any way to use a aunetreceive for a track within GarageBand?
Is there any way to use a aunetreceive for a track within GarageBand?
I have an application, Soundboard, which sends audio via the aunetsend plugin. I'd like to manage the output of this application within Garageband as a track. Is there any possible way to do this?
ThanksAlas, no, not in VBA.
Regards, Hans Vogelaar (http://www.eileenslounge.com)
Maybe you are looking for
-
My iPod is Stuck on the Reset Screen
It had been a while since I used my iPod Touch because I didn't have I lost the charger. I recently bought a new charger and once I plugged in the iPod, it started to charge normally. But the apple logo and the dead battery screen would go back and f
-
I have an iPhone 3G and I want to delete the photo library that I synced but I do NOT want to delete any music is there a way to delete it without deleting my music off my phone? I've tried to click and then delete them as if I took the pictures but
-
Help with gpg-agent, ssh, and pinentry-curses
I use gpg-agent to manage my ssh keys, and for a system that I regularly ssh into, I would like to use pinentry-curses instead of the default pinentry-gtk-2. However, this doesn't work. Specifically, I start gpg-agent using script from the arch wiki,
-
Snd_sb16 module loading problem
Every time I boot Arch, I have to manually load the snd_sb16 module. It works great while loaded with modprobe snd_sb16, but when rebooting, it won't load. I tried adding the module to /etc/modprobe.conf, but I get an error when rebooting. Perhaps th
-
What is REAL output power of sound cards like a AWE64, SoundBlaster. I heard about maximum 4W per channal. It is true? One of my sound card CrystalFusion is very quiet. In official specifications of products nowhere it is written.