Oracle alternative to jsfiddle - oracle

Is there a service for oracle like jsfiddle is for javascript?
I need to test an oracle function (not against a database) and do not have an installation of oracle available.
Other features of jsfiddle would be nice, but my primary concern is just to be able to run simple functions and receive output.

Oracle Apex gives you a demo/sandbox environment(featuring Oracle Apex & database) where you can test out whatever function that you want to test.
Plus you get to add collaborators so that works.

Try http://sqlfiddle.com/.
It is not a daemon of speed, but works quite nice.

Related

Oracle: how do I get a copy of the schema of the production DB onto a dev DB

My team does not have direct, command-line access to the oracle boxes but we have need to, from time to time, spin up dev instances of the DB.
We do not need the data, but we do need the layout. Are there any tools that would interrogate an oracle instance and build a new instance?
Take a look at this tool.
http://www.red-gate.com/products/oracle-development/schema-compare-for-oracle/
We use the version for Sql Server in my shop and are very happy with it.
(I'm not affiliated with Red Gate, just a satisfied customer)
There are lots of ways...
You can do a schema export in TOAD and most other decent tools or you can write something using data pump
http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
for starters

MS Access to Oracle database

I am developing an ASP.net application with Access database. I need to convert this Access database to Oracle. How can I do that?
I saw two options
Migrating the access database to Oracle through MIGRATION WIZARD in SQL developer
In Oracle, just creating a new connection with existing MS Access database and then converting to oracle.
Kindly let me know the best solution for this
thanks in advance,
Arjun
The two choices you proffer could be rewritten like this:
Use an automated tool written by experts
Do it the hard way and figure it out for myself
This is a personal, even philosophical, choice. Do you need to get the task done quickly? Or do you want to learn something along the way?
TRY IT and then tell us.
My experience integrating all things oracle with all things microsoft has always been complicated, and a lot of manual intervention was required.
It also depends on the complexity of your existing access database, if it's only one table, then you can grab that table sql, correct it for nvarchar -> varchar2 fields and datapump the data into oracle.
If Access has 1000+ tables I would suggest getting a professional to do it. Any reasonable dba should handle it no problem.
Please check the solution at Insert into from ms access to oracle db
You can customize the code based on your requirement. You can bundle the whole code into one class and prepare it as exe application.

What is the Reporting tool that I will use in APEX?

I'm going to develop a new system using Oracle APEX.
I used to use Oracle Reports Builder to develop reports in Oracle Forms.
What Reporting tool should I use in APEX?
I need something with Oracle Reports features such as Conditional Formatting, PL/SQL support, etc?
Thanks and Regrads
You can use Oracle Reports with Apex - see this rather old how-to doc. Essentially, if you have Reports set up to run via the web then you can run a report via a URL like this:
http://myserver:7777/reports/rwservlet?report=myreport.jsp&userid=myuser/mypassword#mydb&desformat=pdf&destype=cache&p_empno=1234
So it is then just a matter of constructing this URL in Apex and using it. You can avoid passing the password as a parameter by using single sign-on for Apex and Reports.
See Quick Start Guide to Oracle Reports Server 9.0.4 for further details.
The recommended approach I think is to use BI Publisher, but that is expensive to license. There may be cheaper third-party alternatives to BI Publisher that can be used, but I don't know them.
I think there are a number of people in the Apex community waiting for a nice solution to this requirement!
You have that in APEX forms with PL/SQL. But you have to be more specific or you can try in http://apex.oracle.com/i/index.html creating a workspace and see what can be done with APEX.

Saving a report to a file on a client PC?

I would be grateful for a quick sanity check!
When calling Oracle Reports 10g from Oracle Forms 10g, is it possible to run an Oracle Report and save it on the users PC to a specified directory? (I know that if an Oracle Report is run in such a format as PDF the user can save the report to x location). To call the Oracle report I am using the Oracle Forms built-in "Run_Report_Object".
I don't think it is (but would be happy to revise my opinion!) and to obtain such functionality I would have to implement something similar to what is discussed in this thread
I have amended my question to include the fact that I am using the Oracle Forms built-in "Run Report Object" to call Oracle Reports.
There is a Oracle Report parameter: DESTYPE which can accept a value called LOCALFILE which saves the output to the client machine using the file name specified by DESNAME, however as I'm using "Run_Report_Object" it is not possible to use the value LOCALFILE.
One solution is to follow the steps given here.
Sources: Oracle Reports 10g Help (look for DESTYPE),
OTN thread

Query/Where dialog in Oracle Forms 10g

In Oracle Forms 6i, you could enter query mode in your form, and type & or :A in a field, and when you executed the query, a Query/Where dialog box would open, allowing you to enter more complex query or sorting criteria than just entering data in the fields allows.
This doesn't seem to work in Forms 10g: I get a "FRM-40367: Invalid Criteria in field XX in example record" error.
Is there some way to do this in Oracle Forms 10g? We're running web-based, not client-server, if that matters.
I came across the answer after I posted this question here. In 10g forms, this functionality is disabled by default, but can be enabled by setting
FORMS_RESTRICT_ENTER_QUERY=FALSE
in the default.env file. We have now enabled this in our test environment, and it is working as expected.
This functionality used to be in Oracle eBusiness Suite, but possibly was removed I think due to SQL Injection vulnerabilities. Not sure if there is a way to switch it back on - worth a look on http://metalink.oracle.com.
Regards,
Gareth

Resources