SDO_BUFFER does not work in Oracle XE - oracle-xe

I'm working with
Oracle Database 11g Enterprise Edition 11.2.0.3.0 64bit Production ("EE") and
Oracle Database 11g Express Edition 11.2.0.2.0 64bit Production ("XE").
The following query
select
sdo_geom.sdo_buffer(
mdsys.sdo_geometry(2002,NULL,NULL,
mdsys.sdo_elem_info_array(1,2,1),
mdsys.sdo_ordinate_array(10,10,15,15)
),
10, 0.0005
)
from dual;
does work in EE, but not in XE. EE correctly returns:
MDSYS.SDO_GEOMETRY(2003,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1005,4,1,2,1,3,2,2,7,2,1,9,2,2),MDSYS.SDO_ORDINATE_ARRAY(17.0710678118655,2.92893218813453,22.0710678118655,7.92893218813453,22.0710678118655,22.0710678118655,7.92893218813453,22.0710678118655,2.92893218813453,17.0710678118655,2.92893218813452,2.92893218813453,17.0710678118655,2.92893218813453))
XE, however, returns just the unmodified geometry:
MDSYS.SDO_GEOMETRY(2002,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(10,10,15,15))
According to Oracle Locator Documentation, Table B-1, the SDO_GEOM.SDO_BUFFER function is also part of Oracle Locator and XE. What could be the reason for the different behaviour?

Related

Problem with a Delphi dbxpress application after upgrading Windows Server 2008 to Windows server 2012

I want to upgrade a Windows server 2008 to windows Server 2012, and, if possible, 2016 and 2019.
This server runs a Delphi XE2 Interbase XE3 dbexpress application.
After upgrading the server to windows server 2012, compilation of the app is OK, but it breaks during connection to the Database:
DBX error: Driver could not be properly initialized
Client library May be missing, of the wrong version,
May be missing from the driver or the system path
How to fix that ? Update the driver (dbxint.dll ?) ? upgrade to Delphi 10 ?
Thanks
I copied a newer version (12.0.354) of gds32.dll into windows32\system32 and it WORKS now !!! I get this version from a Delphi 10 installation.

RAISERROR doesn't return correct error message using DB Express on Windows 10

I am running my application which is developed in Delphi 10.1 berlin Update 2 on windows 10 and it is accessing the Database through network (I am using SQL Server 2016 and it is installed on different machine), when stored procedure raises error using
`raiseerror(msg,16,1)`
application gets following message:
`SQL State: 42000, SQL Error Code: 50000`
but the message doesn't contain error string. If I run same query on SQL Management Studio, I get below error.
SQL State: 42000, SQL Error Code: 50000
MSG
I tried to run the same on windows 7 and windows Server 2012 R2 with same configuration, this time it give desired error message containing error string.
I am using dbexpress for handling queries in the application. (NOTE If I replace the implementation from dbexpress to BDE it is working fine in windows 10).
I tried to copy following .dll files of dbexpress and also dbxdrivers.ini file at the location where .exe is present
Borland.Data.DBXMSSQLDriver.dll
dbxadapter.dll
dbxasa.dll
dbxase.dll
dbxdb2.dll
dbxfb.dll
dbxinf.dll
dbxint.dll
dbxmss.dll
dbxmss9.dll
dbxmys.dll
dbxora.dll
Midas.dll
This looks like machine specific issue. Machines having windows 10 but don't have Delphi 10.1 berlin Update 2 installed, we are using these machines as Client machine where we install the application.
Also we observed these issues on application developed using Delphi XE2. So it doesn't seems to be Delphi Issue.
NOTE: Windows 10 client machines having Delphi and SQL server installed, this issue doesn't occur even with dbExpress.
Can someone please help me with this situation? Do I need copy any specify assembly files along with the package?

DBX Error in Delphi Berlin 64bit compiler: Driver could not be properly initialized. When connecting to a Oracle 12c DB Server

I got the stopper error below in my apps. I used Delphi Berlin 64bit compiler. And also used the dbxora.dll as dbxpress driver default from embarcadero. Connected to Oracle 12c DB server using TSQLConnection component.
DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, of the wrong version, or the driver may be missing from the system path.
How can I fix this?
A DB Express driver is not always sufficient on it's own to connect to some data sources. For certain data sources (most of them in fact) you also require the client drivers for that data source, usually provided by the database vendor themselves.
Oracle is one of these.
As well as the DB Express driver you also need to install the Oracle Client software provided by Oracle. You also need to ensure that you install the correct version.
i.e. in your case since you indicate you are building a 64-bit application then you will need the 64-bit Oracle client.
If you (or your intended users) already have the 32-bit Oracle client installed then you might consider building your application as a 32-bit application instead, unless you absolutely need 64-bit capabilities.

stand-alone NT service using RAD studio2010 / Oracle

Is it possible to deploy a stand-alone dbexpress NT service using RAD Studio 2010 with Oracle as the database?
DBExpress uses external drivers for its database access. You would have to deploy the Oracle DBX driver with your service. You cannot compile it directly into the service executable (unless you place it in the executable's resources and then extract it at runtime before using DBX).

Is it possible to install MOSS 2007 32 bit with SQL Server 2008 64bit as database server

I have a Windows Server 2003 32 bit installed with MOSS 2007 32 bit.
Our database guys have recently bought SQL database Server 2008 64 bit.
I am wondering if it is possible to use new SQL 2008 64 bit machines as database for content of MOSS 2007 32bit.
I appreciate your answer.
Thanks
AK
Yes, Office SharePoint Server 2007 supports SQL Server 2008 x64. However, you must install Windows SharePoint Services 3.0 SP1 or later and Office SharePoint Server 2007 SP1 or later in order to use SQL Server 2008. Office SharePoint Server 2007 also supports SQL Server 2008 R2. Ensure that you have installed Office SharePoint Server 2007 with Service Pack 2 (SP2) or later.
Also, mixing of 32-bit front-ends and 64-bit database servers is supported, but Microsoft doesn't reccomends this scenario because of the perfomance issues with the front-end servers.
I'm using 32-bit front-ends with 2008 x64 machines joined to failover cluster and have no problems.

Resources