I'm a dotConnect/ASP.NET beginner with VS2008 (in past a ODAC user), and I see in a ASP.NET app (web sample) only OracleDataSource enabled in toolbox.
it's maybe a silly question, but why are all disabled ?
I bought 5.25.37 pro edition
Search found 77 matches
- Thu 30 Jul 2009 19:47
- Forum: dotConnect for Oracle
- Topic: only OracleDataSource enabled in toolbox
- Replies: 1
- Views: 1275
- Thu 30 Jul 2009 10:32
- Forum: dotConnect for Oracle
- Topic: Using DBMonitor with ASP.NET projects
- Replies: 6
- Views: 6286
Using DBMonitor with ASP.NET projects
I'm unable to use DBMonitor on 5.25.37
- First: I can't drag OracleMonitor to ASP site, why ?
- Second: I found this in your help
Please provide an example !
- First: I can't drag OracleMonitor to ASP site, why ?
- Second: I found this in your help
I find no userName attribute value, which I can change.To trace your ASP.NET applications you must perform some additional steps. As ASP.NET application by default is started under ASP.NET Windows account it can not share information that DBMonitor uses with the account where DBMonitor is running. Therefore you need to follow the next steps:
Start ASP.NET with the same Windows account where DBMonitor runs.
Open machine.config file from WindowsDir\Microsoft.NET\Framework\vX.X\config\machine.config.
Find tag.
Change userName attribute value to your Windows account name and password to your account password.
Setup ASP.NET service in order that it has access to current user Desktop services. To do it open Service Control Manager and find IIS Admin service. Open its properties dialog. Go to Log On tab and check 'Allow service to interact with desktop' checkbox.
Restart IIS.
Please provide an example !
- Fri 03 Apr 2009 08:08
- Forum: Oracle Data Access Components
- Topic: odac 6.8+delphi2009 params.asstring error!
- Replies: 2
- Views: 1949
- Fri 20 Mar 2009 17:05
- Forum: Oracle Data Access Components
- Topic: .AsString Delphi 2009 direct mode
- Replies: 4
- Views: 2455
.AsString Delphi 2009 direct mode
When I use a single select with a string param
works with OCI properly but in direct mode it doesn't find the record
I found in direct mode
helps, but I've thousands places in sourcecode to change, so it's no good workaround for me and I can't switch easy from 2007 to 2009
Is there a more elegant way, or do you solve this in next version, where I've not to change my sourcecode ?
Code: Select all
Query.sql.add('select * form tab where field = :field');
Query.parms[0].AsString := 'abc';
I found in direct mode
Code: Select all
Query.parms[0].AsAnsiString := 'abc';
Is there a more elegant way, or do you solve this in next version, where I've not to change my sourcecode ?
- Fri 06 Feb 2009 09:26
- Forum: Oracle Data Access Components
- Topic: SMMonitorEvent
- Replies: 0
- Views: 1336
SMMonitorEvent
during create of my inherited datamodule with a TOraSQLMonitor in base Datamodule I get following error
Error creating named event object: SMMonitorEvent [5]
do you have any hint for me to solve this ?
Error creating named event object: SMMonitorEvent [5]
do you have any hint for me to solve this ?
- Mon 01 Dec 2008 12:43
- Forum: Oracle Data Access Components
- Topic: Ordering ODAC
- Replies: 2
- Views: 1576
- Fri 28 Nov 2008 12:34
- Forum: Oracle Data Access Components
- Topic: Ordering ODAC
- Replies: 2
- Views: 1576
Ordering ODAC
After I recognized my download-version restriction to 6.5 I ordered (and payed) my annual ODAC license
I paid already on 20.11 - Refno: 240933035 ("... you will receive it in 48 hours") - nothing delivered !
mail to share-it on 25.11 - no response
mail do [email protected] on 26.11 - no response
now a Entry in user-forum (28.11)
What's wrong ? Please send it soon !
I paid already on 20.11 - Refno: 240933035 ("... you will receive it in 48 hours") - nothing delivered !
mail to share-it on 25.11 - no response
mail do [email protected] on 26.11 - no response
now a Entry in user-forum (28.11)
What's wrong ? Please send it soon !
- Wed 05 Nov 2008 13:26
- Forum: Oracle Data Access Components
- Topic: DBMonitor feature
- Replies: 4
- Views: 2094
- Fri 31 Oct 2008 11:00
- Forum: Oracle Data Access Components
- Topic: Starttransaction in 6.50
- Replies: 1
- Views: 1717
Starttransaction in 6.50
Since update from 6.25 to 6.50 I get on session.Starttransaction an error:
In 6.25 it works well.
Any hint for me or is it a bug ?
I see in DBMonitor no open transactionCan not perform operation on active transaction
In 6.25 it works well.
Any hint for me or is it a bug ?
- Wed 29 Oct 2008 10:53
- Forum: Oracle Data Access Components
- Topic: download ODAC 6.70 / License
- Replies: 3
- Views: 2063
- Wed 29 Oct 2008 10:32
- Forum: Oracle Data Access Components
- Topic: download ODAC 6.70 / License
- Replies: 3
- Views: 2063
download ODAC 6.70 / License
I'm a paying user of ODAC but in download site I get only version 6.50.0.39
not 6.70.
I need 6.70 urgent because of LOB in direct mode
not 6.70.
I need 6.70 urgent because of LOB in direct mode
- Tue 28 Oct 2008 12:26
- Forum: Oracle Data Access Components
- Topic: TOraScript with create JAVA in direct mode
- Replies: 2
- Views: 2533
Re: TOraScript with create JAVA in direct mode
Devart support,
please give me an answer/hint/solution, I've to rollout a new version of our project this week
thank you !
please give me an answer/hint/solution, I've to rollout a new version of our project this week
thank you !
- Mon 27 Oct 2008 10:06
- Forum: Oracle Data Access Components
- Topic: TOraScript with create JAVA in direct mode
- Replies: 2
- Views: 2533
TOraScript with create JAVA in direct mode
I use ODAC 6.70 and get an error during script.execute command
there is no difference between direct mode and client mode, both raise this error
how to solve it ?
this is the script:
because the TOraScript does not recognized my command as big script, it execute it line by line.....ORA-29536: badly formed source: Encountered "" at line 1, column 29.
Was expecting one of:
"." ...
";" ...
there is no difference between direct mode and client mode, both raise this error
how to solve it ?
this is the script:
Code: Select all
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "JavaZipCode" as import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import java.util.zip.ZipInputStream;
import java.util.Vector;
import java.io.OutputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.DriverManager;
import java.sql.ResultSet;
import oracle.jdbc.OracleDriver;
import oracle.jdbc.OracleResultSet;
import oracle.sql.BLOB;
import oracle.sql.STRUCT;
import oracle.sql.ARRAY;
import oracle.sql.ArrayDescriptor;
import oracle.sql.StructDescriptor;
public class zip {
static Connection con = null;
static BLOB zipLob = null;
static InputStream lobIs = null;
static ZipInputStream zipIs = null;
static ZipEntry zipFile = null;
static boolean bFileIsOpen = false;
static {
try {
con = DriverManager.getConnection("jdbc:default:connection");
} catch (Exception e) {
e.printStackTrace(System.out);
}
}
public static void open(BLOB inLob) throws Exception {
if (bFileIsOpen) {
close();
throw new Exception ("ZIP File already open - call close() first");
}
zipLob = inLob;
lobIs = inLob.getBinaryStream();
zipIs = new ZipInputStream(lobIs);
bFileIsOpen = true;
}
public static int getCurrentHandle() throws Exception {
return (bFileIsOpen?1:0);
}
public static int next() throws Exception {
zipFile = zipIs.getNextEntry();
return (zipFile == null?0:1);
}
private static String getFileName (String sEntryName) {
int iLastSlashPos = sEntryName.lastIndexOf("/");
if (iLastSlashPos != -1) {
return sEntryName.substring(iLastSlashPos + 1);
} else {
return sEntryName;
}
}
public static STRUCT getEntry() throws Exception {
if (!bFileIsOpen) {
throw new Exception ("ZIP File is not open - call open() first");
}
StructDescriptor sDescr =
StructDescriptor.createDescriptor("ZIP_ENTRY_T", con);
BLOB blobEntryContent =
BLOB.createTemporary(con, true, BLOB.DURATION_SESSION);
OutputStream lobOs = blobEntryContent.setBinaryStream(0L);
int iChunkSize = blobEntryContent.getChunkSize();
byte[] b = new byte[iChunkSize];
int iBytesRead = 0;
STRUCT oraZipEntry = null;
Object[] oZipEntry = null;
if (zipFile != null) {
oZipEntry = new Object[6];
oZipEntry[0] = zipFile.getName();
oZipEntry[1] = getFileName(zipFile.getName());
oZipEntry[2] = (zipFile.isDirectory()?"Y":"N");
oZipEntry[3] = new java.math.BigDecimal(zipFile.getSize());
oZipEntry[4] = new java.math.BigDecimal(zipFile.getCompressedSize());
while ( (iBytesRead = zipIs.read(b, 0, iChunkSize)) != -1) {
lobOs.write(b, 0, iBytesRead);
}
lobOs.flush();
lobOs.close();
oZipEntry[5] = blobEntryContent;
oraZipEntry = new STRUCT(sDescr, con, oZipEntry);
} else {
throw new Exception ("End of zip file reached");
}
return oraZipEntry;
}
public static void close() throws Exception{
lobIs.close();
zipIs.close();
lobIs = null;
zipIs = null;
bFileIsOpen = false;
}
public static ARRAY list (BLOB inLob) throws Exception {
InputStream lobIs = inLob.getBinaryStream();
ZipInputStream zipIs = new ZipInputStream(lobIs);
ZipEntry zipFile = null;
boolean bEndOfArchive = false;
ArrayDescriptor aDescr = ArrayDescriptor.createDescriptor("ZIP_ENTRY_CT", con);
StructDescriptor sDescr = StructDescriptor.createDescriptor("ZIP_ENTRY_T", con);
Object[] oZipEntry = new Object[6];
STRUCT oraZipEntry = null;
Vector vZipEntries = new Vector();
while (!bEndOfArchive) {
zipFile = zipIs.getNextEntry();
if (zipFile != null) {
oZipEntry[0] = zipFile.getName();
oZipEntry[1] = getFileName(zipFile.getName());
oZipEntry[2] = (zipFile.isDirectory()?"Y":"N");
oZipEntry[3] = new java.math.BigDecimal(zipFile.getSize());
oZipEntry[4] = new java.math.BigDecimal(zipFile.getCompressedSize());
oZipEntry[5] = null;
oraZipEntry = new STRUCT(sDescr, con, oZipEntry);
vZipEntries.add(oraZipEntry);
} else {
bEndOfArchive = true;
}
}
lobIs.close();
return new ARRAY(aDescr, con, vZipEntries.toArray());
}
public static BLOB zip(String query) throws Exception {
PreparedStatement pstmt = con.prepareStatement(query);
BLOB result = zip(pstmt.executeQuery());
pstmt.close();
return result;
}
public static BLOB zip(ResultSet rset) throws Exception {
BLOB zipLob = BLOB.createTemporary(con, true, BLOB.DURATION_SESSION);
OutputStream os = zipLob.setBinaryStream(1);
ZipOutputStream zos = new ZipOutputStream(os);
BLOB src = null;
String filename = null;
int chunksize = zipLob.getChunkSize();
while (rset.next()) {
filename = rset.getString( 1 );
src = ((OracleResultSet)rset).getBLOB( 2);
ZipEntry entry = new ZipEntry(filename);
if (src != null) {
entry.setSize(src.length());
} else {
entry.setSize(0);
}
zos.putNextEntry(entry);
if (src != null) {
long len = src.length();
long offset = 1;
byte[] buffer;
while (offset < len) {
buffer = src.getBytes(offset, chunksize);
if (buffer == null)
break;
zos.write(buffer, 0, buffer.length);
offset += buffer.length;
}
}
zos.closeEntry();
}
zos.close();
rset.close();
return zipLob;
}
}
/
- Wed 03 Sep 2008 08:49
- Forum: Oracle Data Access Components
- Topic: BLOB
- Replies: 13
- Views: 14085
- Tue 02 Sep 2008 10:13
- Forum: Oracle Data Access Components
- Topic: BLOB
- Replies: 13
- Views: 14085