MySQL/MariaDB C++ connector API documentation - mariadb

I've just installed MariaDB's C++ connector, and run up their test program, which works fine. However, after a lot of searching on both the MariaDB and MySQL websites, I've found zero documentation on the API itself - PreparedStatement, getString, setString, and so on.
Should I instead assume that (a) the C++ API is identical to Oracle's Java API, and (b) my code will run with both MySQL and MariaDB? The JDBC 4.3 docs are at Oracle here. MySQL claims 4.0 compatibility, but MariaDB just says 'Implements JDBC API'.

Related

Using Oracle 19C driver to 11G database

Is there any harm or issue using the Oracle 19C JDBC [ojdbc8-19.3.0.0.jar] drivers to work with 11G database? We are in mid of migration but due to internal complex mechanism there will be case during which this scenario can happen in the Prod environment.
Check out JDBC FAQ. Latest JDBC drivers are backward compatible but, if the support period ends then, we cannot guarantee support for the older versions.
You can check out the Lifetime Support Policy for Oracle Database. The Oracle Database 11.2.0.4 extended support ended on Dec 2020.
You can take a look at oracle doc for more info:
https://docs.oracle.com/en/database/oracle/oracle-database/19/jjdbc/JDBC-getting-started.html#GUID-926E5324-D89A-4A00-B1AE-975C1089F0EA
I think it can work but not sure how compatible it is. Also depend on your java version. if u want to integration between java version 8+ and Oracle database version 11G.
In the best, it should be ojdbc6.jar with JDK 6, JDK 7, JDK 8 or ojdbc5.jar with JDK 5 for 11G database.

How to connect Oracle DB with phalcon 3.0

I have a project with Phalcon 2.0 and Oracle 11g database and running successfully. I tried to upgrade to Phalcon 3.0 but it is not working.
As of Phalcon version 3.0 Oracle support has been dropped from the project. Quoting from the 3.0 Blog announcement:
Dropped support of Oracle #12008, #12009 Support of Oracle has been
dropped from the Phalcon Core for the following reasons:
The lack of Oracle maintainer
The lack of relevant experience among the Phalcon Core Team
Weak support or interest from the community
Incomplete implementation that creates only the illusion of support
for Oracle
Some issues hampering for the support of PHP 7 in Phalcon
Oracle components will be ported to the Phalcon Incubator. If the
adapter receives support and enhancements from the community, we will
consider making it part of the core again.
More info and patch notes in the blog: https://blog.phalconphp.com/
I think they already dropped support with OracleDB in 3.0.x, check it here https://blog.phalconphp.com/post/phalcon-3-0-0-released

Install Oracle Database Extensions for .NET into VS2013

How to install Oracle Database Extensions for .NET into VS2013.
32-bit Oracle Data Access Components (ODAC)
with Oracle Developer Tools for Visual Studio
Everytime I run this installer, it is always exclude Oracle Database Extensions for .NET. There is a reminder of for upgrade only in the description of the package installer.
Oracle Database Extensions for .NET 4 12.1.0.1.0 -- for upgrade only
Oracle Database Extensions for .NET 2.0 12.1.0.1.0 -- for upgrade only
So where should I get the installer for Oracle Database Extensions? Currently I using VS2013 Professional and Oracle database server 11g 64 bits.
I need that because of Developing and Deploying a .NET Stored Procedure using Oracle Deployment Wizard.
Developing and Deploying a .NET Stored Procedure
Inside this website, you can see the tutorial for VS2010 version.
Additional: I have to use Oracle 12c client 32bits because of VS2013 and Entity Framework.
Additional: I have ttied 64 bits, but my VS2013 still doesn't have Deploy option
Well, this is guesswork:
Try installing Oracle 10g ODAC and Oracle Developer Tools for Visual Studio .NET (very bottom of the downloads page) first, and then install the latest for upgrade only distribution.
Okay, here's an excerpt from Oracle Database Extensions for .NET:
This product is included with the Oracle Database on Windows installation. Further upgrades are installed as part of the Oracle Database Access Components (ODAC) releases, however Oracle Database Extensions for .NET must first be installed and configured before it can be upgraded.
Also, I found Oracle® Database Extensions for .NET Developer's Guide 12c Release 1 (12.1) for Microsoft Windows. In it's Installation and Configuration > Installation section:
Before the first use of Oracle Database Extensions for .NET, do the following:
Install Oracle Database 12c and either allow the installer to create the database for you, or install the database software only and use Database Configuration Assistant to create a database afterwards.
After installation and database creation, execute the following to enable Oracle Database Extensions for .NET.
chopt enable ode_net
Execute the following to create the Oracle Database Extensions for .NET windows service.
oraclrctl -new
Bottom line: You have to install Oracle Database 12c to enjoy Oracle Database Extensions for .NET. It is meant to be a service running along with the database server, not in the client.

Which Oracle drivers do I need for ASP.NET 4.5?

I am trying to install the correct Oracle drivers on my development machine. I'm creating an ASP.NET web site and every time I run I get an error saying that says "The provider is not compatible with the version of Oracle client". I have tried both 32-bit and 64-bit Oracle drivers but have still had no luck. Can someone lead me to a link for the drivers I need based on my specs?
I'm using Windows 8 64-bit. The database is Oracle 11.2.0.2.0 - 64 bit.
The ODAC112021Xcopy_x64.zip might give you the dll's and client you'll need. Take a look at this previous answer for more detail about deployment of the application.

Downgrading from Alfresco Enterprise to Alfresco Community

We’re thinking about downgrading our Alfresco Enterprise 3.4.1 to Alfresco Community.
I’m used to Alfresco Enterprise, but I have no experience with Community version.
We’re using EMC, Alfresco Explorer and our own development based on Web Services API and Foundation API.
I’m worried about database migration. Could I simply configure Alfresco Community 3.4.e to use our Oracle Database for Alfresco Enterprise 3.4.1? Is the schema compatible for both Community and Enterprise distributions? Which version of Alfresco Community should I use? 3.4.e? What is the downgrade path between distributions? Is there any kind of correspondence between versions of both distributions?
Any downgrade experience, guide or any related information will be welcomed.
The Alfresco Community Edition is open source, and works with a fully open source stack. Your DB options are PostGreSQL (recommended) or MySQL.
Alfresco Enterprise supports the open source databases that Community supports, PostGreSQL and MySQL, as well as a few proprietary databases too. You can look at the Database Configuration page for more information. Support for Oracle databases is only available in Enterprise.
If you want to keep paying Oracle all that money for your database licenses, then you'll need to continue to pay a tiny fraction of that cost to Alfresco for an Enterprise License. Community, being open source, only supports a fully open source stack, so you can't use Community with your uber expensive proprietary database!
If you were using an open source database like PostGreSQL or MySQL, then you might be able to do the switch as part of an upgrade. Enterprise Service Packs (eg 3.4.1) are normally newer than the equivalent community release from that series (Community gets the bug fixes on Head). Moving from a 3.4.x enterprise service pack back to a 3.4 community wouldn't be recommended, but moving from 3.4.x enterprise to a 4.x community might work. However, that's not a tested migration path, so you could well be on your own... Alfresco QA tests community -> newer community, enterprise -> newer enterprise, and community upgrading to enterprise, which are the supported paths.
This question is similar with this one about difference between Community and Enterprise version
You can not use Oracle database for Community version. It is only available for Enterprise.
There is not downgrade path for any Alfresco versions. If you are using Enterprise 3.4.2 try to use the same Community version.
I searched the web for possibilities of a downgrade from enterprise to community version, too. What I found is the answer "You may be able to downgrade, however that is never supported or tested."
When downgrading, you have to keep in mind that the community version X usually has more functionalities than the enterprise version with the same version number.
So, downgrading is experimental. I have already seen log files where the downgrade failed.
Maybe it is an option for you to export all content and import this ACP file on the new system with the community version?
Please read your contract carefully. Support and Licensing might not be the same thing in your case. If you don't want to pay anymore to Alfresco, you might be entitled to keep using your current enterprise version, but you would not longer have support. Before considering downgrading, check your contract. If in the future you want to get support and upgrade again, it might just be easier to do it with your current Alfresco Enterprise version.
But, as I said, it depends on your agreement with Alfresco.
Migration of the Alfresco repo database is no fun at all. There is no official way switching databases and in 3.x version you may have serialized objects which could be stored by hibernate db specific. This changed a little when Alfresco removed most of hibernate dependencies after 3.4. It may be an option to migrate to 4.0 EE first, migrate the db to postgres (which is closer to oracle than mysql) and finally upgrade to Alfresco Community 4.2.f (latest version with Web Services API). This may be a lot of work (even in your code) but should work.
Here in Germany it is legaly problematic to limit software usage in time if you sell a support subscription (at least for the old contracts you may have) so customers here can request support for a time unlimited EE license key before canceling the subscription contract. I recommend you go this way and update your old 3.4 to the latest 3.4.x or 4.x enterprise version available and stay on Oracle db if you don't care these costs. This step should be done anyway ;-)
I have done it before in order to create a development environment in my local machine,
First, you cannot use Oracle database so you have to use postgresql (recommended) or MySql, exporting and importing the database is not recommended, so you have to create the repository hierarchy and fix the rules, etc., then copy all custom jars (jobs, actions, workflows...) and library from the lib folder to the new one,
If you are using an external application based on alfresco uuids, make sure you updated the uuids after creating the repositories and rules

Resources