Migrating Oracle Forms Application to Oracle Apex - POC - oracle-apex

As part of a Proof of Concept we are looking to migrate a complex Oracle Forms 10g Application into Oracle Apex 5.1(or later versions.) The Oracle Forms applications interfaces many peripheral devices via calls using WEBUTIL_C_API built in.
Is there a similar equivalent built in function for Oracle Apex?
The WEBUTIL_C_API is used to call external C dll libraries.
This will be very helpful to use in Oracle APEX.
Also if there are any working examples of ORACLE APEX talking to peripheral devices like ECD Cash drawers, label printers, EFTPOS terminals etc.

I'm pretty sure you cannot run C code or library from APEX, though you can do it from Forms.
With APEX, you'll have to run your C code from the database using "external procedures" (check CREATE LIBRARY instruction).
You can then run the PL/SQL procedure that wraps the C code from APEX.

Related

How to use a code node to list all of the datasets in a .egp file using SAS EG?

I want to get a list all of the datasets to enter them into an array.
I could then feed each item in the array into a macro to prevent me from having to do a repetitive task.
I don't recall EG having that level of introspection available to submitted code. However, an add-in tool can be programmed (as a Windows .dll) and the add-in will be able to examine the client (EG), project and other meta information not available to code submitted by the client (i.e. your SAS code that will run either locally or remotely depending on server settings of the active profile)
A link to reference documentation (SAS.EG.ADDins) and other add-in material can be found at http://support.sas.com/documentation/onlinedoc/guide/release30/addins/
The SAS.EG.Addins help states
Services Supplied by the Host Application (to the Add-in)
The following interfaces
surface information and services that are supplied by the host
application (for example, SAS Enterprise Guide and the SAS Add-in for
Microsoft Office). These are the interfaces that are supported by all
host applications:
ISASTaskConsumer Provides information about what the application
supports and access to other supported interfaces. Also provides
access to options specific to the particular instance of the add-in.
ISASTaskData, ISASTaskDataAccessor, ISASTaskDataColumn Provides access
to data services.
These are the interfaces that might be supported by a given host
application. If your add-in code takes advantage of any of these
interfaces/services, you should include checks to ensure that an
interface is supported before you attempt to use it.
ISASTaskSubmit Allows your add-in to submit a SAS program for
processing while the user interact with your user interface.
ISASTaskUtilities Supplies utility methods for use by your add-in.

getting database connectivity in c++

How can I create a database using SQL in c++?
I tried going according to the steps I found on a website(which required all this to be on codeblocks) by downloading the SQLAPI++ library for c++.
Next it instructed to download oracle c++ call interface, which I downloaded but didn't understand, how to integrate the library with my Codeblocks project.
If you know any other method it would be much appreciated.
In general:
Standard c++ doesn't support SQL database/server connections out of the box. You need to have a 3rd party product to achieve this.
Many SQL standard compliant DB systems support C or C++ APIs you can use for that.
To name a few:
SQLite
PostgreSQL
MariaDB
MySQL
... a by no means complete list ...
Another alternative is to use a generic ODBC interface implementation, which might also support specific database servers, and SQL standard versions.
In particular:
Codeblocks is ypur IDE, it manages projects and their dependencies on libraries.
You seem to have a solution at hand, which uses the sqlapi++ framework library
You need to integrate the underlying SQL server system in turn of configuring that above mentioned API
You may need to link the native support for that specific SQL API of the server system
To do these steps mentioned above you'll need to install (maybe development versions) of the above mentioned APIs, SDKs, ... (whatever they'll call it) and integrate those with your IDE project (related Q&A link regarding this).

Is there any way to connect to oracle db using simple c++ not vc++ or proc

I am struggling to connect to oracle db using GNU C++.Is there any library which I have to install to connect to oracle db using simple c++ (oops).
Please provide me some sample code as well, this is new for me. Appreciate your help.
I asked a similar question before but forgot to mention that I am not using vc++ and proc.
You would need the oracle C++ libraries (OCCI) from oracle. You can find them here:
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Google "Oracle OCCI tutorial" and you should find pretty much everything you need.
Check out SOCI. It supports several database backends, including Oracle, MySQL, Postgre, ODBC, etc. Using this library would make it easier for you to migrate your application to a different DB, if necessary.
There's a code sample here. And several more peppered in the documentation.

Connecting to oracle database using C++, the basics

i have a question about the theory here, i'm just starting a project which is based on C++ applications integrating with oracle DB's, i've came to two choices, OCCI, and OCI
the OCCI is said to be aimed at C++ environment, but i was wondering, if it would be any good to use the OCI libraries from my C++ app since it is said to have better performance, or would i run into compatibility issues ?
thanks in advance :)
You can have a look at OTL it's a wrapper above the OCI or OCCI (not sure) will give some templates and samples to start with oracle connection in c++.
In my case, my company have about a thousand stores.
To connect Oracle / Oracle thru an MS C++ multi-thread service we perform the following tests on each thread:
Validate DNS (gethostbyname)
Try to open SCManager of the store (OpenSCManager)
Verify if Oracle Service exists on the store (OpenService)
Verify if Oracle Service is running (QueryServiceStatus)
After all, we try to connect (ado->Open)
This procedures minimize possible errors like 0xE06D7363 when connecting to a external server.

Connecting and Fetching a record form sequel server 2005

I have a windows application in visual C++. I am not using MFC, in this application I have connect to SQL server 2005 and fetch records form a database file. Can any one guide me how this can done. Thanks in advance.
I would say, you could use some wrapper framework around the odbc calls. Currently I was working on a project where SQL server communication was involved so I found this wrapper framework: TinyODBC which is a minimalistic ODBC wrapper library. It's pretty trivial how can one use it, but I have to admit I had to patch it for a little more functionality. But otherwise it is a useful choice of ODBC communication. Now, you can use the native SQL driver via ODBC. Since it's a minimal framework, if you go through the tutorial you'll be ready to create new application with it.
Now
The complete list of accessing methods is listed here. Most popular choices for C++ programmers are SQL Server Native Client and MDAC/Windows DAC, both support OLEDB and ODBC interfaces. A comparison of SQL Server Native Client and MDAC/WIndows DAC is here.
There are other wrappers built on top of OLEDB and ODBC such as ADO or TynyODBC, which can help you to write more readable code.