I am using Visual Code to view all of the database objects in our Oracle database that I scripted to files. I installed the extension "Language PL/SQL" found here:
https://marketplace.visualstudio.com/items?itemName=xyz.plsql-language
On the extension download website page mentioned above, if you look at the animate GIF, it gives the impression that if you type "#" in the command palette that the extension should list all of the procedures in an Oracle package that I have open, but instead it gives me a message under the popup: "No Editor symbols."
Is it someone possible to either jump to a procedure within a package or better yet, see an outline of the package so, as I scroll through it, I can tell which procedure I am currently in?
I was using the Oracle function DBMS_METADATA.GET_DDL to get the DDL for a package. If you don't pass a version number into the function, the PACKAGES contain the word "CREATE OR REPLACE ** EDITIONABLE *** PACKAGE . The extension as choking on the word EDITIONABLE. So, I told the GET_DDL function to give me version 11.2 compatible DDL and the extension was worked
Related
I am going to use reusable mapping in odi 12c, but there is a problem. When ever I drag and drop a table into the environment, it gives me this error:
No object could be dropped on the diagram possibly because the chosen technologies in the "Create As" dialog were incorrect. Please, try again choosing a different technology.
I got confused and I do not know what is wrong because before that I was doing the same thing but suddenly this error pops out.
I was going to develop simple reusable mapping to save that for using in my other mapping.
I got the same error message. I couldn't drag and drop any of my tables - regardless of their source.
I did not find any solution except to delete my old mapping and create a new one.
Closing the ODI and launching again should help as a workaround for this error.
Use the command:
odi -clean -initialize
This will clear the cache and launch ODI and it should negate the error until next time.
After installing Oracle 12c database, Weblogic and forms.
I added button on blank form to show message or execute query.
In the runtime the when_button_pressed not work but if I press Ctrl+F11 it executes well.
Not that I move fmx file from Windows machine to Linux machine where weblogic and database are installed.
If you really named the trigger when_button_pressed, then this is the reason. Triggers - which are built-in into Forms - have a hyphen, not an underline, i.e. when-button-pressed is its correct name.
If this is not the case (but a matter of a typo), posting trigger code might help. What does it contain?
I need to update my SqlCE3.5 database to 4.0.
I get the following error message when I'm trying to access my 3.5 sdf/database using the new CE4.0 connection provide :-
System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlServerCe.SqlCeInvalidDatabaseFormatException: The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method.
Anyone know how I can do this? Obviously I need to do it programatcially but i'm not sure what I should do / what references I need to add, etc.
Cheers!
Call System.Data.SqlServerCe.SqlCeEngine.Upgrade. See MSDN, which contains sample code.
You needn't upgrade when you see this error:
The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method.
Simply:
Right-click your Project in Solution Explorer
Choose properties, go to References tab
You'll see a reference called: System. Data.SqlServerCe Type/net version/4.0 - delete this item (select item and then click remove in the bottom of this window).
Click on the "add..." button left of the "remove" button
In the .NET tab, find System.Data.SqlServerCe 3.5 and add this.
Compile your project!
I think this will work.
I wish to add a Type Spec to an Oracle Form. Unfortunately, this option is disabled in the "New Program Unit" dialog:
Does anyone know how to add a Type Spec to an Oracle Form?
Version of Oracle Forms Builder: Forms [32 Bit] Version 10.1.2.0.2 (Production)
I've never created one with forms but one way to enable the type spec option is: from the Object Navigator expand the database objects node. Then select PL/SQL Stored Program Units now click the create button (so it brings up the dialogue box shown in your screen shot)
However this time the type spec option will be enabled.
Hope this helps.
Below is some PL/SQL which is intended to create a very simple stored procedure in Oracle, based on code generated via SQL Developer IDE. I'm receiving the error when I run the command. On many tutorials online, the instructions for creating stored procedures didn't require a package (in the source code). When is a package required in Oracle? And how can I correct the code below to be as simple as possible?
Source Code:
CREATE OR REPLACE PROCEDURE PROCEDURE1
IS
BEGIN
DBMS_OUTPUT.PUT_LINE('Hello World!');
END;
Error:
Empty package PROCEDURE1 definition (no public members).
FYI:
Before running the code above, I was following these instructions to build a simple example of a stored procedure and connect via Enterprise Library. This code worked.
http://www.codeproject.com/Articles/19581/Microsoft-Enterprise-Library-Data-Access-Block-DAA
Workflow to Avoid the error:
When using SQL Developer IDE for Oracle, right click "{Database Name} > Procedures > New Procedure" in the object explorer, and click OK to that dialog after entering a stored procedure name, click the two gears (Compile) button.
Note
The Green Triangle button is used to run the compiled procedure, but it needs to be compiled before you can run it.
Workflow to reproduce the error:
When using SQL Developer IDE for Oracle, when right clicking "{Database Name} > Procedures > New Procedure" in the object explorer, and clicking OK to that dialog after entering a stored procedure name, and clicking the green triangle (execute) button, I get this error.
Solution:
I right clicked the {Database Name} and selected "Open SQL Worksheet" and then pasted the code generated from the workflow above. Then clicked the green triangle (execute) button.
What a piece of *HIT IDE!
"I SLIT A SHEET"
"A SHEET I SLIT"
"AND ON THAT SLITTED SHEET I SIT"