VB6 and Oracle
Hi all
i have this problem
i need to connect, using VB6 + ADO, to an Oracle DB without installing on my machine the entire client oracle.
is it possibile?
thanks!
If you're willing to purchase a third-party ODBC driver, there are some companies that make "wire protocol" drivers that can be used without an Oracle client. DataDirect is one such company.
Oracle 10g appears to have some sort of minimal client install, but I'm not sure whether that will help you. The Windows version of 10g isn't available yet, so I'm not sure what the caveats, limitations, etc. of this are. I have heard rumors thta it will be a while (a couple of months) before the Windows version of 10g is available.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
Help with VB6 and Oracle Spatial
Does anyone knows how to access to the Geoloc field of an oracle 8.16 table using VB6?
I need to read/write it but Ado doesn't like very much that dataType...
I'm triyng with ADO and oracle's oraOleDB, but i'll appreciate any other working solution.
Thank You.
Daniela.
nullWe have written a stored procedure(Procedure) in Oracle to update the data type fields that are unavailable in ADO calling the procedure using ADO from VB.
Dinghy, how much of a learning curve is it to go from ADO to OO4O (Oracle Object for OLE)?
Thanks,
Thomas L
null -
Hi,
we are running a query with a big dunamic select statement from VB code using ADO command object. When Execute method is called system hangs and control won't return back to the application. it seems to be that there is some type limitation on Query string length. Please tell us if there is any?
we are running Oracle 8.1.7 Server on Windows 200 Server and connecting from a W2K professional, ADO 2.6 and Oracle OLEDB 8.1.7.1 OLEDB Driver.
Sample code:
Dim rs As ADODB.Recordset
Dim cmd As ADODB.Command
Set cmd = New Command
With cmd
.CommandText = ' some text with more than 2500 characters
.CommandType = adCmdText
Set rs = .Execute
End With
when i debug using VB6 and when .Execute line is called system hangs or return a message method <<somemethod> of <<some class name>> failed error.
Any help is appreciated.
Thanks,
AnilA stored procedure would only slow you down here if it was poorly written. I suspect you want to use the translate function. I'm cutting & pasting examples from the documentation-- a search at tahiti.oracle.com will give you all the info you'll need.
Examples
The following statement translates a license number. All letters 'ABC...Z' are translated to 'X' and all digits '012 . . . 9' are translated to '9':
SELECT TRANSLATE('2KRW229',
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'9999999999XXXXXXXXXXXXXXXXXXXXXXXXXX') "License"
FROM DUAL;
License
9XXX999
The following statement returns a license number with the characters removed and the digits remaining:
SELECT TRANSLATE('2KRW229',
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '0123456789')
"Translate example"
FROM DUAL;
Translate example
2229
Also, LIKE '%<string>%' is going to be rather expensive simply because it has to compare the entire string and because it forces full table scans, rather than using indexes. You could speed this sort of query up by using interMedia Text (Oracle Text now in 9i). If you can eliminate one of the '%' options, you could also improve things.
My guess is that your stored procedure is inefficient and that's causing the problem-- 5k rows per table should be pretty trivial.
If you post your query over on the PL/SQL forum, there are better performance tuners than I that might have more hints for you. To get really good advice, though, you'lllikely have to get at least the execution plan for this statement and may need to do some profiling to identify the problem areas.
Justin -
Select query differences between oracle 9 and oracle 8.
Hi,
I have a problem using the select query between oracle 7 and oracle 9i I don't have the same result :
ex:
With oracle7
SQL> select 'champ1','champ2' from DUAL;
'CHAMP 'CHAMP
champ1 champ2
With Oracle 9
SQL> select 'champ1','champ2' from DUAL;
'CHAMP1' 'CHAMP2'
champ1 champ2
So Can someone tell me how to solve this problem ? Is there a parameter in oracle 9 to set?
Thanx.Whenever you are posting anything over internet forums like this - you should be very careful about not just posting the details which requires to solve the problem - also should be sensible about your question.
This is not at all desired when you are posting such question. It may be because - you may not well aware of the fact.
My suggestion is -> First Go through the basics Of SQL in general.
Then go for any specific product like Oracle/ SQL Server/ Sybase etc.
And, finally learn the advanced commands of that DB.
You asked it - may be you thought the difference in output in terms of lines. But, that is not your actual output. That is the graphical display part only.
Anyway,
You can get the quite familier output by first type the following command ->
set lin 310Regards.
Satyaki De. -
Oracle Single Sign on and Oracle Internet Directory
Hello Gurus,
What is the relationship between Oracle Single Sign on and Oracle Internet Directory.
To my understanding, OID is required to install SSO.
If OID already exist, can we just install SSO and go on integrating it to existing OID.
Great Thanks,
vimal jain.
[email protected]Hi Tim,
I've been working on this and could reproduce the issue with anonymous binds. A fix will be ready in 4.2.1.
So what I really need is the password used for login to pass to the is_member call.The P101_PASSWORD item does not save state. However, you can access the value during submit processing of the login page, for example in the post authentication function of your authentication scheme. People sometimes put code in there to query the user's groups (e.g. with apex_ldap.member_of2) and save them in an application. This item value can then be used in the authorization schemes.
Regards,
Christian -
Oracle Spatial and Oracle Forms
Hi,
Does anyone have experience with Oracle Spatial and Oracle Forms?
I have generated a form, which is based on a view. The view uses the mdsys.sdo_relate operator. Somehow I am unable to get the form to perform (to get one record it takes over 20 minutes). While useing sql-navigator to process the same statement it seems no problem. The query that also uses the view, is then processed in 10 seconds.
I also noticed that when text-functions like ' lower' of ' upper' are used to query the view, the query is processed within 15 seconds. If I don't use ' lower' or ' upper' it takes a long time (> 20 minutes) to process the query. Is it possible that this causes the bad performance of the form?
On metalink I have found that forms and spatial do not cooperate because of the pl/sql version that
forms6 uses. There is no solution presented, does anyone know of a work around?
My configuration is:
Oracle 8.1.7 on WIN2K @ PIII-800Mhz 256 Mb memory.
Formsbuilder 6
If requested I can post the queries that I have made.
With regards,
Gerjan Walrecht
[email protected]
nullHello Priya,
Look into the following.
1. Book - Pro Oracle Spatial for Oracle Database 11g by r. Kothuri, A. Godfrind, E. Beinat. This book provides a nice introduction on Oracle Spatial concepts and have examples.
2. Look at the Oracle Spatial & Graph User Guide
2. Book - Applying and Extending Oracle Spatial by S. Greener and S. Ravada. This book provides hands on information for advanced oracle spatial application developers. Practical guide on hands-on examples, Data models and develop cross-vendor database solutions.
3. This oracle spatial forum, once you understand these concepts.
In the future consider Certification on Oracle Spatial 11g Certified Implementation Specialist.
Best
Navaneet -
Oracle Streams b/w MS-Access 2007 and Oracle 10g.
Can we set up Oracle Streams between MS-Access 2007 and Oracle 10g? Ms-Access as source and Oracle 10g as destination database. If so, can any one please give me little heads up with supported doc's or any source of info.
Help Help....!!!
-
Just trying to clarify some issues as I try and learn about XML, and specifically how it integrates into the DB.
1 - Is there a way with Oracle tools for me to get an XSD of an existing 9i relational schema? We are not currently using the XML DB, but our middleware developers would like to have an up to date XSD to use for their internal mapping.
2 - Is there any way that I can keep that XSD up-to-date automatically, so I get a new one whenever the schema gets updated?
3 - If I wanted to investigate storing XML docs within the DB in native XML format, I need to have an XML DB, correct? Is this DB construct maintained seperatelly from my "normal" relational schema? or are they kept in sync by Oracle?
I know these may all be real basic questions, but as I said, I'm new to XML and Oracle. I am reading as much as I can, but there are a lot of docs out there.
Thanks,
MikeHi
1. On my opinion such a tool doesn't exists. Some parts can be implemented elsewhere, but not as described by you... e.g. with XSU if you specify the parameter "withschema" the XSD of the executed statement is generated. Another example is to use DBMS_METADATA to dump the data dictionary in XML (but not XSD, of course you could write your own XSLT to do this transformation...).
2. -
3. If you use XSD-based tables the XSD and the relational model are stored separately in the data dictionary. Therefore if you change the XSD you have to drop/create the XSD-based table... no schema evolution yet.
Chris -
SRM 4.0 Installation Master and Oracle Installation
Dear Members, I am trying to install SRM 4.0 in sandbox using the SRM 4.0 Installation Master DVD. The question I have is does this installation take care of Oracle Installation also or should I install Oracle 9.2 first and then use the SRM Installation Master DVD to install the SRM. I am using SRM on Linux and Oracle. Appreciate expert advice. Thanks in advance.
Best Regards
GabrielI installed ORACLE 9x (only software) on Linux and also installed SAP SRM 4.0
When I try to start the oracle db, i get the following error message..
Trying to start ORASR2 database ...
Thu Aug 9 21:08:39 UTC 2007
checking required environment variables
ORACLE_HOME is >/oracle/SR2/920_32<
ORACLE_SID is >ORASR2<
Thu Aug 9 21:08:39 UTC 2007
check initora
Thu Aug 9 21:08:39 UTC 2007
check initora
Thu Aug 9 21:08:39 UTC 2007
starting orasrv
/oracle/SR2/920_32/bin/orasrv missing or without set-user-ID bit. Terminating.
./startdb: Terminating with error code
can someone help identify what the problem could be -
Problem with Java 5 and Oracle 10g JDBC driver
Hi All,
Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
Thanks,sounds like a database problem...
Are you using a driver version that's supported for your database engine?
What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
So it's either your database, your driver, your network (dropping packets???), or your application.
The upgrade may just have exposed something that was already there. -
Problem with installing Oracle UI and Oracle SP (ouiosp220160.jar)
Hello,
I have downloaded the installation file for Oracle Universal Installer and Oracle Software Packager which is in the form of a jar file:
ouiosp220160.jar.
WhenI try to extract it, the JVM says that the jar file is a corrupt one.
So, I downloaded it again and still it is a corrupted one.
What to do now? Is it in the corrupt form on the site or I am missing something?
Any other mirror site?
Please help.
-SameerYes use a different ORACLE_HOME's for the Database,
The Application Server (Needs 2 Oracle Homes if you are installing it on one server) and the developer suite - I would expect to see this more on a client PC than a server but if you are trying everything out on say a windows box then that also needs its own HOME.
Have fun. -
Which LKM and IKM to use for Fast data loading b/w MSSQL 2005 and Oracle 11
Hi,
Can anybody help us to decide which LKMs and IKMs are best for data loading between MSSQL and Oracle.
Staging Area is Oracle. We have to load around 400Million rows from MSSQL to Oracle 11g.
Best regards,
MuhammadThanks Ayush,
You are right and it has dumped the file very quickly; but it is giving error on sqlldr call thorugh jython. I have reaised SR with oracle to look into it further.
thanks again and have a very nice time.
Regards,
Muhammad -
Reports Requirements using R12 and Oracle 10g Reports
Hi All,
Looking forward to some valuable inputs to propose a technical solution in R12 using 10g Reports Developer.
Requirements are :
1. Report output should be in Excel Format. ( Is this possible without XML Publisher using 10g Reports only )
2. Report Parameters to have multi selection criteria. ( Is this possible in 10g Reports and Oracle Apps, Report Manager responsibility ?)
Regards,
Anand>
1. Report output should be in Excel Format. ( Is this possible without XML Publisher using 10g Reports only )
>
Yes, Reports can create output in Excel - but XML Publisher offers better and easier options.
>
2. Report Parameters to have multi selection criteria. ...
>
Pl explain what you mean by multi selection criteria.
HTH
Srini -
Crystal Report and Oracle SDO_GEOMETRY
Hi,
<br />
<br />
I'm using Crystal Reports for Eclipse version 2.0.4.r825 with Eclipse 3.5 and Oracle 11g as database. I configured the database connection using ojdbc14.jar. Some of the tables i want to use in the report contains columns using the SDO_GEOMETRY data type and if i try to drag this table in the data tab of the report i get the following "Unexpected ValueType" error:
<br />
<br />
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not Add Object.
Unexpected ValueType: ValueType=[255]---- Error code:-2147215362 Error code name:unknownError
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:65)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.throwExecFailure(ReportCommand.java:253)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.internalDoCommand(ReportCommand.java:126)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(ReportCommand.java:237)
at com.businessobjects.crystalreports.designer.uibase.gef.commands.CoreCommand.execute(CoreCommand.java:70)
at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(DSEDropHandler.java:114)
at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected ValueType: ValueType=[255]---- Error code:-2147467259 Error code name:failed
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:741)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
<br />
<br />
I tried the same with the Crystal Reports 2008 trial version and i'm having the same problem.
<br />
<br />
I don't wanna use the geometry column in my report but because of this error i can't use the whole table. Is there a way to avoid this error and still use the other columns of the table. Or maybe there is another way to connect to an Oracle database which can handle this special data type.
<br />
<br />
Thanks in advance,
<br />
<br />
Jens KellerHi Jens,
Views would work also as you noted.
No, if DB manufacturers change/update their Servers/clients they need to follow ANSII 92 standards. If they don't return the correct data type then CR will not "hack" our drivers to fix their issues. We did that for years and was a code nightmare, when they got around to fixing the problem it broke CR again. We decided to follow the standards, it may be our issue sometimes but in this case unique data types typically are not supported by CR. If you want support and it's not a client issue then add your request to the Enhancement Request2 post.
So yes in your case it would make it easier but for others they'll be asking why CR doesn't show all fields. Same reason.... not a CR issue.
Thanks agian
Don -
VB6 and Excel loading then unloading immediately
First off I posted this here
http://social.msdn.microsoft.com/Forums/office/en-US/4c07879b-e033-4e8f-8266-95f9f606923a/vb6-and-excel-loading-then-unloading-immediately?forum=exceldev However I think this is the right forum for this.
We have an old VB6 application that uses data from and to Excel 97-2003 XLS and
Access MDB. This application is slated to be updated to VS2012 and VB.NET. In
the mean time I have a glitch that I cannot seem to find the issue. When we
load the VB6 app it opens Excel 2010 in the background for getting and setting
data. We are set to roll out Office 2010 on everyone’s system and I am still
unable to find why it works fine on two systems and not on others. With Office
2007 everything seems to work just fine.
What happens is when I look at the processes in Task Manager on my Windows 7
Enterprise edition with Office Professional Plus 2010 system while loading
the VB6 app I see?
EXCEL.EXE *32 | "My user name" | 00 CPU | 10,132k | Microsoft Excel
This is normal and stays in process the entire time I run it on my system. I also have
this working on another end users system. However the issue and the fix I used
on our two systems does not seem to work on other systems. I launch the VB6 app
and it comes up.
EXCEL.EXE *32 | "My user name" | 00 CPU | 10,132k | Microsoft Excel
This loads in the processes and then immediately unloads without any errors. Then when I
execute something that needs to use Excel I get.
Run-Time error ‘91’:
Object variable or With block variable not set.
This only happens if Excel unloads immediately otherwise the program works great. There
are no events in any of the event logs and our other IT guy said it is loading
and unloading normally with out crashing.
I have applied this to the systems http://support.microsoft.com/kb/926430/en-us . In
all of my searching this looked like the best answer. However only two systems
are working with Office Professional Plus 2010.
Here are the references and components.
References:
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
OLE Automation
Microsoft DAO 3.6 Object Library
Microsoft Excel 5.0 Object Library
Components:
Controls
Desaware Animated Button Control
Microsoft Common Dialog Control 6.0 (SP6)
Microsoft Data Bound Grid Control 5.0 (SP6)
Designers
Dat Environment
Data Report
DHTML Page
WebClass
Code:
Public xlApp As Excel.Application
Public WBSetup As Excel.Workbook
Public objWbCALC As Excel.Workbook
Public objShtLEVELS As Excel.Worksheet
Sub Main()
' There is more code here that is not specific to Excel issue
Set xlApp = Excel.Application
' Get the workbook.
Set objWbCALC = xlApp.Workbooks.Open("c:\temp\Calc.xls")
Set WBSetup = xlApp.Workbooks.Open("c:\temp\Setup.xls")
' Get worksheet
Set objShtLEVELS = objWbCALC.Worksheets("Levels")
' There is more code here that is not specific to Excel issue
End Sub
This is working on one system that had Office 2007 and was upgraded to Office 2010. Working on my system with Office 2010. The EXE file is ran from the server you can install it or add the OCX files to local system and register them with regsvr32. No
new components have been added or changed to the actual VB6 application. It seems to work on two systems and not on other systems.
However our test system have Office 2010 loaded on it and never had office 2007 on it. Maybe there is a residual left over file on it.
Any ideas?
www.ipdg3.comHello,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
I would like to know whether you can get the same issue when you create/load a Visual Basic application rather than VB6 in VS2012. If the issue only occurs when you load VB6 app, as Andrew said, there are other better forums for
VB6 app provided in this thread:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions?forum=vbgeneral
For example:
VB Forums
VB City
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Some problems with af:table (new rows with presetting and autosubmit)
Hi, I'm working with an af:table, but I'm having some troubles. Background: Jdev 11.1.1.5.0 Firefox 6.0.2 In the Bounded Task flow: ExecuteWithParams -> fragment < commit/rollback ExecuteWithParams: Set a bind variable with a value from bpm payload f
-
Making particular rows as non editable before displaying the TABLE
Hi everyone, I would like to know how to make a particular rows as non editable in UI element "TABLE" before it is displayed . The scenario is : On entering the Personnel number, I am getting family dependants in the table.
-
Document entry date = system date, confusion for mult country implementatio
Hi All, We are implementing in US and Malaysia. The server is located in Malaysia. The time difference between US and Malaysia is 16 hrs. Thus when US users enter documents and want to get the list of documents posted, the have to convert their time
-
Querying instances in 11g and filtering by process data object
Hi all, I have tried to query instance following this link: http://soadev.blogspot.com/2011/07/querying-oracle-bpm-process-instances.html. It works fine, but I need to filter the instances by a process data object with a String type. Is it possible t
-
i restored my ipod touch and lost my contacts how do i get them back