How to connect Oracle DB with phalcon 3.0 - oracle11g

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

Related

Upgrading from Azure Storage SDK v6.0.0.0 to v12.4.2 for .NET Framework

I have a service that is referring to Azure SDK 3.0 in turn using Microsoft.WindowsAzure.Storage.dll of version 6.0.0.0. The service is built on .NET Framework and now when I want to to upgrade the Azure Storage SDK(Blobs, Common and Queues) to version 12.4.2, the library is published in .NET Standard
Per my understanding, I can't refer a .NET Standard library in a .NET Framework Library. I searched all over the internet but I couldn't find any way other than migrating my whole service to .NET Core.NET Standard.
Is there any other way to upgrade the latest version of Azure Storage SDKs?
Is there any other way to upgrade the latest version of Azure Storage SDKs?
Direct upgrade from version 6 to 12 is not possible as SDK version 12 is actually quite different than older versions (9 or below).
Firstly, now the SDK is split in many SDKs and there are different SDKs for each service (Blobs, Files and Queues). Thus you would need to reference different Nuget packages in your source code.
Secondly, there have been many breaking changes in the SDKs thus simply referencing the Nuget packages for version 12 is just not sufficient. You will need to rewrite the code unfortunately.

Can I use Entity Framework 6 (not core) in .net core?

Entity Framework Core does not support spatial data, which I need to use in my app.
Can I use Entity Framework 6 in .net core? If so, how can I register DatabaseContext in Startup.cs?
Update
You can now use EF 6.3 with .NET Core 3.0:
https://devblogs.microsoft.com/dotnet/announcing-ef-core-3-0-and-ef-6-3-general-availability/#what-s-new-in-ef-6-3
Below is an excerpt. However, EF Core has come a long way these days and it's worth giving it another go before going back to something that's reaching end-of-life soon. Specifically for your issue, EF Core supports mapping to spatial data types using the NetTopologySuite spatial library since version 2.2.
What’s new in EF 6.3
Support for .NET Core 3.0
The EntityFramework package now targets .NET Standard 2.1 in addition to .NET Framework 4.x.
This means that EF 6.3 is cross-platform and supported on other operating systems besides Windows, like Linux and macOS.
The migrations commands have been rewritten to execute out of process and work with SDK-style projects.
Support for SQL Server HierarchyId.
Improved compatibility with Roslyn and NuGet PackageReference.
Added ef6.exe utility for enabling, adding, scripting, and applying migrations from assemblies. This replaces migrate.exe.
There are certain limitations when using EF 6.3 in .NET Core. For example:
Data providers need to be also ported to .NET Core. We only ported the SQL Server provider, which is included in the EF 6.3 package.
Spatial support won’t be enabled with SQL Server because the spatial types aren’t enabled to work with .NET Core.
Note that this limitation applies to EF 6.3 but not to EF Core 3.0. The latter continues to support spatial using the NetTopologySuite
library.
There’s currently no support for using the EF designer directly on .NET Core or .NET Standard projects.
Original Answer
It isn’t ready yet, but starting with .NET Core 3.0, you will be able to.
https://blogs.msdn.microsoft.com/dotnet/2018/05/07/net-core-3-and-support-for-windows-desktop-applications/
Similarly, EF6 will be updated to work on .NET Core 3.0, to provide a simple path forward for existing applications using EF6.
https://youtu.be/GN54OV5cCBM?t=1146
But there's also EF6, which we've already announced is going to be ported to work on .NET Core...
UPDATE: Yes, EF6 has been cross-platform since version 6.3. https://devblogs.microsoft.com/dotnet/announcing-ef-core-3-0-and-ef-6-3-general-availability/#what-s-new-in-ef-6-3
ORIGINAL ANSWER THAT IS NOW INVALID: No, you can not directly, because EF6 doesn't support .NET Core.
But, you can create another project, that compiles against full .NET framework and use it as a reference.
MS has actually made a decent tutorial for this:
https://learn.microsoft.com/en-us/aspnet/core/data/entity-framework-6#reference-full-framework-and-ef6-in-the-asp-net-core-project
UPDATE: Yes, EF6 has been cross-platform since version 6.3. https://devblogs.microsoft.com/dotnet/announcing-ef-core-3-0-and-ef-6-3-general-availability/#what-s-new-in-ef-6-3
ORIGINAL ANSWER THAT IS NOW INVALID: Like #Niko said, you cannot directly with EF6 but there is a fork that allows it.
Disclaimer: I'm the owner of the project Entity Framework Classic
Entity Framework Classic is an EF6 fork. It's everything you like about EF6, but with better performance, must-have features, .NET Core support, and more.
There is a FREE Community version that includes pretty much everything and an Enterprise version that include additional features.

Latest stable version of Oracle application express

We are planning to upgrade our oracle application express from 3.2 version. Could someone advice which is the latest stable version of apex (5.1 or 5.1.2)? Also please advice if any separate license is needed to install the latest versions?
From their website:
Oracle Application Express Release 5.1.2.00.09 was released on June
28, 2017. This is a cumulative patch set for Application Express 5.1.0
and Application Express 5.1.1.
You don't need a separate licence, since APEX is a no-cost feature of the Oracle database.
As for upgrading from 3.2 to 5.1 the Installation Guide:
If you have release 1.5.x, 1.6.x, 2.0.x, 2.2.x, 3.0.x, 3.1.x, 3.2.x,
4.0x, 4.1x ,4.2.x or 5.0x of Oracle Application Express, following any of the installation scenarios in this guide upgrades your Oracle
Application Express instance to release 5.1 and creates Oracle
Application Express 5.1 database objects in a new schema and migrates
the application metadata to the new release.

Oracle Provider VS 2012 RC

Database: Oracle 11g
VS 20120 Provider: ODAC 11.2 Release 4 and Oracle Developer Tools for Visual Studio (11.2.0.3.0)
i just updated to VS 2012 RC and I cant even connect to my database. I dont expect EF 5 or .NET 4.5 to work with this provider but I just want to be able to set my solution target for .Net 4 and still be able to connect to my database. When I use the server explorer I do not see the provider that I usually use and the only oracle provider that comes with VS supports up to 10g and is deprecated.
Can anyone help me with getting a provider for oracle 11g in VS 2012?
I was able to figure this one out although google searches are not clear about the possibility to of finding an oracle provider for use in VS 2012 RC, .NET 4.5, using EF 5. So I will save everyone who is trying to do the same some trouble!
Devart develops providers for the different databases. I had given up on finding one for .NET 4.5 and was only looking for alternatives to the providers that oracle released for support EF 4.2. I found that alternative at Devarts site and it is called dotConnect for Oracle.
http://www.devart.com/dotconnect/oracle/download.html
At the time of writing this they are on version 7. I found out that it supports VS 2012 RC and EF5 by looking at the release notes on the right hand side of the screen. It is not made apparent anywhere else from what I can tell. It does support connecting to an oracle 11G database using .NET 4.5 and EF 5 though. Works just as it should. It costs money but I feel it is well worth the price rather then waiting for Oracle who has made no comment or announcement about developing a provider for .NET 4.5 and who never succeeded to deliver on EF 4.3 regardless.
So save yourself some time and heartache and check out dotConnect for oracle.
This Ora.NET provider for Oracle 11g (supports .NET 4.5) is available:
64Bit
http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
32Bit
http://www.oracle.com/technetwork/database/windows/downloads/index-101290.html

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