PL/SQL compile options
Is there any way to give the PL/SQL compile options while compiling from SQL*PLUS like we give in Pro*c Compilers using EXEC ORACLE OPTIONS (name=value);
Thanks
Richard,
I tried the following simple PL/SQL
created the package
CREATE OR REPLACE PACKAGE partest AS -- package spec
PROCEDURE insert_dummy_details(num INTEGER);
END partest;
Created the body
CREATE OR REPLACE PACKAGE BODY partest AS -- package body
PROCEDURE insert_dummy_details(num INTEGER) IS
BEGIN
INSERT INTO pardummy values(num);
END insert_dummy_details;
END partest;
created pardummy table
compiled & executed it
count in v$open_cursor increased by 1.
Also, i executed the query which you mentioned.
It showed the corresponding insertion sql text with the status CURBOUND
Does it mean that a cursor is open in session which can be counted against open_cursor for that insert statement.
Partha
Similar Messages
-
TS1468 Where is the compilation option in version 11?
I have a single album what was split into 5 sections because of variations on artist name. Past support articles suggested using the Compilation option when selecting the multiple split portions. Where is that option in version 11 of iTunes? I do no see this feature.
Compilation can be found in the Get Info dialog. Generally all you need to do to link things is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
tt2 -
Want to use presentation date variable in Advance SQL filter option
Hi,
I want to use presentation date variable in Advance SQL filter option.....I am getting the below error.
SQL in Advance SQL filter ----
"Fact Status Details"."Load Date" =
(select min(Cast("D Time"."Business Date" as char))-1
from "D Time" where "D Time"."Operational Month Sk" =
(select "D Time"."Operational Month Sk" from "D Time" where date '@{Date1}'=cast("D Time"."Business Date" As char)))
Error ---
Error getting drill information: SELECT "Fact Status Details"."Load Date" saw_0 FROM "Pre RFAI Sales" WHERE "Fact Status Details"."Load Date" = (select min(Cast("D Time"."Business Date" as char))-1 from "D Time" where "D Time"."Operational Month Sk" = (select "D Time"."Operational Month Sk" from "D Time" where date '@{Date1}'=cast("D Time"."Business Date" As char)))
Error Details
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
SQL Issued: {call NQSGetLevelDrillability('SELECT "Fact Status Details"."Load Date" saw_0 FROM "Pre RFAI Sales" WHERE "Fact Status Details"."Load Date" = (select min(Cast("D Time"."Business Date" as char))-1 from "D Time" where "D Time"."Operational Month Sk" = (select "D Time"."Operational Month Sk" from "D Time" where date ''@{Date1}''=cast("D Time"."Business Date" As char)))')}
Load Date format ---YYYYMMDD
Please advise...i need to fix this issue urgently.Thanks for your reply.
Could you please help me with the correct code...i tried to correct it....
"Fact Status Details"."Load Date" =
(select Cast(min("D Time"."Business Date" )-1 as char)
from "D Time" where "D Time"."Operational Month Sk" =
(select "D Time"."Operational Month Sk" from "D Time" where Date'@{Date1}'=cast("D Time"."Business Date" As char)))
Please let me know if i am wrong..this code is also not working. -
Missing message file for PL/SQL compile time warnings
I want to use PL/SQL compile time warnings but I don't have the message file on my system (or it is not installed correctly). This results in output like this:
3/5 PLW-05005: Message 5005 not found; No message file for
product=plsql, facility=PLW
Where can I get this message file and what do I have to do to install it?
Thank you.
Alex.hi Will
Maybe this is a beter forum for your question:
"JDeveloper and OC4J 11g Technology Preview"
JDeveloper and OC4J 11g Technology Preview
success
Jan Vervecken -
Passing extra compiler options to flexunit ANT task?
Hi,
Is there a way to send any extra compiler options to the <flexunit> ANT task?
I'm using conditional compilation and compilation (mxmlc) is failing from the <flexunit> task:
"Error: Access of undefined property DEBUG.
CONFIG::DEBUG {"
I tried sneaking "-define+=CONFIG::DEBUG,false" in with one of the other compiler options you can set on the <flexunit> task, but that just doesn't work or results in a validation error like this:
"One of the directories specified as a 'testSource' element does not exist."
Let me know if this is possible at all.
Thanks,
WijnandHi Brian,
legrosb wrote:
@Wijnand - Sorry for the belated response.
Not late at all! I think a response within a day on a forum is quite fast!
legrosb wrote:
I thought I had captured this on the wiki, but it looks like I haven't, so thank you for the heads up.
I'll also update the wiki @ http://docs.flexunit.org/index.php?title=Ant_Task to be more detailed regarding compilation so other don't have to dig.
Did you just do an update on that Wiki page or did I completely miss the part that explained the <flexunit> parameters?
legrosb wrote:
In 4.2, which is super pre-alpha right now, I've added support to accept a series of flex-config.xml files provided by the user. Not sure if conditional compilation can be tackled with a custom flex-config.xml file, but if so then that'd be the feature that may help you.
Yes, being able to add (+=) a custom config file will solve this problem for me. You can define properties and values like this:
<flex-config>
<compiler>
<define>
<name>CONFIG::DEBUG</name>
<value>false</value>
</define>
</compiler>
<flex-config>
So in your AS code you can use:
CONFIG::DEBUG {
// Do something that only should be done in debug mode.
I have another question, I ran into this one during testing my SWF with flexunit.
unittest.xml:82: java.util.concurrent.ExecutionException: command [<testcase classname='com.tuenti.video.unittest.testcase.player::MockPlayerCase' name='loadPlayer' time='0.000' status='success'/>] not understood
I had a look at the FlexUnitSocketThread.parseInboundMessages method that throws this error and it looks like that your defined END_OF_SUCCESS doesn't entirely match what the SWF is spitting out. They are of by 1 space: END_OF_SUCCESS is defined as: "status=\"success\" />", whereas my SWF spits out the following: "status='success'/>" (single quotes and no space before the closing of the tag).
It looks like I'm not the only one with the ExecutionException as it is reported on StackOverflow as well: http://stackoverflow.com/questions/3953677/flexunittasks-error-of-command-not-understood
Cheers,
Wijnand -
How to specify java compiler options in JDeveloper ?
I am using JDeveloper 10.1.2. I downloaded and installed JDK 5.0.
In my "Project Properties"->"Libraries" I created a new "JDK 5.0" J2SE Version and pointed to the new JDK5.0 execuitable. So far so good.
Now I need to compile all my source code with -source=1.4 option. How do I specify java compiler option "-source=1.4" in JDeveloper ?
Thanks
SachinEven before compilig I am not sure that by just going to "Project Properties"->Libraries and creating a new J2SE, I now have the new compiler working with JDEveloper. How do I test this ?
-
Flex 4 lacks the default-background-color compiler option?
Hello,
started converting my Flex 3 applications to Flex 4 and noticed that Flex 4 lacks the default-background-color compiler option.
Flex 3 has it: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
Flex 4 doesn't: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
This raises a question: how am I supposed to keep my background from flashing from grey to white when the RIA is loaded? Is it possible to use preloader with background set to whatever color I like to see? Any easier solutions?
Best regards,
JukkaThis works for me:
@namespace mx "library://ns.adobe.com/flex/mx";
mx|Application{
background-color:#ffffff;
Of course if you have changed the Application element to spark equivalent, you have to change the namespace.
Regards,
Jukka -
Compile option is missing in the Packaging wizard
I need to compile my local app jsp files but the problem is i could not able to find the compile option in the Packaging wizard. Can anyone advice how to compile ? The compile option is missing in the packing wizard. I was using it before without any issues but recently i upgraded my machine and need to compile once again.
I am using oracle 10g lite and my machine is 64 bit.Ubuntu 11.xx displays window menus in the control bar at the top of the screen with the switch to the Unity window manager.
* http://en.wikipedia.org/wiki/Ubuntu_Unity
Click on Bookmarks/Show All Bookmarks then move your mouse to the left upper corner toward Firefox Web Browser.
You'll get pop up menu (Organize, Views and Import and Backup).
*[[/questions/822193]] -
Apex PL/SQL: Compilation unit analysis terminated
HI,
Does any one help me on this.
while i compile my function, it compiles successfully. but show errors showing
menuid in 'TY_MENUIDS'; -- this line shows the error
PLS-00201: identifier 'TY_MENUIDS' must be declared
'TY_MENUIDS' is TYPE which has created inside the same schema
line 0 position 0 PL/SQL: Compilation unit analysis terminated
Thanks
Logaa
Edited by: Logaa on Aug 11, 2009 11:39 PMHi Gussay,
Thanks for your reply.
i have created type of object.
CREATE OR REPLACE TYPE "TY_NSN_MENUITEMS" AS OBJECT(id NUMBER, menuid VARCHAR2(100))
then i have create a type of TY_NSN_MENUITEMS
CREATE OR REPLACE TYPE "TY_NSN_MENUIDS" AS VARRAY(500) OF TY_NSN_MENUITEMS
then i have refered this TY_NSN_MENUIDS inside my function . in declaration part it shows me the error.
The function which i have created inside my APEX->OBJECTBROWSER->SCHEMA-> MYFUNCTION
thanks
Logaa
Edited by: Logaa on Aug 12, 2009 10:49 PM -
Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service -- Error 1335
Hello,
I am getting an error while using windows update or manually downloading and running
SQLServer2012-KB2793634-x64.exe
Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service -- Error 1335. The cabinet file 'Redist.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from installation media,
or a problem with this package.
What can be done?
Thanks
ByeHello,
I am getting an error while using windows update or manually downloading and runningT
SQLServer2012-KB2793634-x64.exe
Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service -- Error 1335. The cabinet file 'Redist.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from installation media,
or a problem with this package.
What can be done?
Thanks
Bye
This KB article was issued as fix for known Issue as per below link.
http://support.microsoft.com/kb/2793634
Now I assume you are getting this error because downloaded file seems corrupt to me.Can you download again and copy it to local disk and start running from there.
http://www.microsoft.com/en-in/download/details.aspx?id=36215
Also make sure your installer is not corrupt.If you find it corrupt please download it from below link and install after that run the setup again
http://support.microsoft.com/kb/942288
Hope this helps
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Hi -
Does anyone have native PL/SQL compilation working correctly on their Linux server?
It is reasonably easy to deduce suitable values for the init.ora parameters "plsql_...." .
I suspect the problem is with the make file: spnc_makefile.mk .
The supplied make file:
$ORACLE_HOME/plsql/spnc_makefile.mk
does not work, throwing an internal error:
PLS-00801: internal error [79704]
I have read the article on OTN concerning upgrading the entire database to native PL/SQL. It is very helpful, but unfortunately does not solve the problem.
Can anyone help? Thanks.
Bryan GenetHi
try
--RN 24.3.2003, PL/SQL mit native execution
-- Example in PL/SQL Users Guide and Reference, Kap. 12, Tuning PL/SQL
-- SuSE 8.0, oracle 9.2.0.1 using spfile
-- ORACLE_HOME /oracle/ORA92
alter system set plsql_native_library_dir='/opt/oracle/native_lib';
-- here you'll find the shared librarys
alter system set plsql_native_make_utility='gmake';
-- a normal make/gmake will work?
alter system set plsql_native_make_file_name='/oracle/ORA92/plsql/spnc_makefile.mk';
alter session set plsql_compiler_flags='NATIVE';
set serveroutput on;
set timing on
create or replace procedure with_native
as
erg number;
begin
for i in 1..1000000 loop
erg := mod(i,4711);
end loop;
dbms_output.put_line(to_char(erg));
end;
show errors
execute with_mitnative
prompt "NATIVE"
alter session set plsql_compiler_flags='INTERPRETED';
create or replace procedure without_native
as
erg number;
begin
for i in 1..1000000 loop
erg := mod(i,4711);
end loop;
dbms_output.put_line(to_char(erg));
end;
-- show errors
execute witout_native
prompt "INTERPRETED"
regards
Roman -
Updated "Selecting the Best Compiler Options" now available
The technical article "Selecting the Best Compiler Options" by Darryl Gove has been updated for Sun Studio 12 Update 1 and is now available at:
http://developers.sun.com/sunstudio/documentation/techart/compiler_flags/
Here's the abstract:
+This article suggests how to get the best performance from an
UltraSPARC or x86/EMT64 (x64) processor running on the latest Solaris
platforms by compiling with the best set of compiler options and the
latest compilers. These are suggestions of things you should try, but
before you release the final version of your program, you should
understand exactly what you have asked the compiler to do.+Ok sorry I've taken so long to respond. The reply button wouldn't pop up for me to reply!
There was never a dialog box asking for me to select the program from installed programs when I open the pdf from outlook express. But when I opened a pdf from my desktop it asked that question and I had it "always use this program to open this type of file." So I assumed that it was would work when opening from outlook express. But it doesn't.
I've tried unclicking the protected mode button under the preferences general section. And finally I'm not sure how to post screenshots of the attachment thumbnail and dialog. I'm looking all over my keyboard for a button to push I don't have a clue as to what to do! I do have a print Scr button but when I click on it nothing happens. I've tried holding down the shift key and the button and the alt key and print scr button but nothing happens.
Could it be that somehow it's not recognizing ARCO.EXCH.DOCUMENT as that's what it thinks the type of document is?
I've already created an association for pdf files and it'll open them on my desktop, just not in outlook express. -
JDev 9.0.3 - problem with compiler options to copy resource file types
Hello,
Following a quite strange scenario, I found something bizarre related to the project compile options in 9.0.3 production (I assume the same problem was present way before...)
Let me first present the facts:
Assume I have in my project one file named noext (with no extension!) and another one file.verylongext. I know it's not best practice, but let's say they are third party files and I would prefer not to touch them.
I am able to add them to the project sources, in the specified packages, then I update the Project Settings/Compiler/Resource File Types to Copy to Output Directory.
But, when I compile, I realize that not all my files were copied to classes/. In fact, if I specify ...;noext;file.verylongext, I get only noext copied, while if I specify ...;file.verylongext;noext, I only get file.verylongext.
I also tried to use only .verylongext, but the result was exactly the same...
Of course I can copy the files manually, outside JDev, but this is not best practice neither... :)
As long as JDev 9.0.3 seems to provide support for filtering the files that will be added to a project (see thread Re: update column for details), I don't really see the purpose of filtering again the files that will be transferred to classes/ (apart from the little bug).
I think it would be far more useful to have the reverse filter, i.e. "Resource File Types not to Copy to Output Directory". JDev team, would it be possible to have this in 9.0.4?
Thanks,
Adrian>I tried to reproduce the problem and couldn't.
Nevermind, I will be back on this when I'll have a simple example.
>One question, is noext and file.verylongext part of your project?
Well, you know, since I said I have them in my project, it means that I added them there and I checked that they really were added. No offense...
>One more question, did you enable Scan Source Path to ... in the input paths panel of the pproject properties?
No, I did not enable this option, since I see all my files in the project and the only source path is project's src.
But my real point is related to the enhancement request I made. Given the circumstances,
could you provide the reverse filter, i.e. "Resource File Types not to Copy to Output Directory", in a future version, maybe 9.0.4?
Thanks,
Adrian -
Image format compilation options
The Pixel Bender spec (included with the toolkit) states:
"Depending on compilation options, pixel channels may
actually be 8-bit integers, 16-bit integers, or 32-bit
floating-point values."
However, I couldn't find any discussion on how to set such
compilation options. Is this currently possible? I'm interested in
creating a 32-bit floating point output image.Hi Joe,
That bit of the spec. is misleading and should be changed in
the next version. Assuming you're writing a Pixel Bender kernel for
Flash your image data will always be 32 bit floating point. -
Could anyone explain the difference between these two javac compile options:
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
Say, I want to make sure my bytecode runs on Java 2 version 1.4 or above, which option should I choose?Could anyone explain the difference between these two
javac compile options:
-source <release> Provide source compatibility with specified releaseTurns on specific compiler cabilities.
-target <release> Generate class files for specific VM versionGenerates class files that are compatible with specific versions (the class file
format has changed somewhat with versions.)
>
Say, I want to make sure my bytecode runs on Java 2
version 1.4 or above, which option should I choose?Well unless you are using 1.5 then you do not use either of the above options.
Maybe you are looking for
-
Issue in Running a Profile In IDQ for Relational Database
Hi , I have created a profile with flat file in analyst tool and It worked fine. But when I am creating a profile in developer client it is not working with both relational and flat files. I think i am missing some point there and I am new to IDQ Pl
-
Open in new tab option missing
i'm not entirely sure what caused this change, and i can still access new tabs with the cmd- and cmd-shift- clicks, but for some reason the option for "open link in new tab" no longer appears when i "right click". i can't think of any major changes i
-
Hi, I would like to ask somebody for a small help. I just bought Apple audio cable and try to connect my iPod classic or iPad 2 to the more types of TVs but always only voice was working. I could not see anything just listen. Can somebody give me an
-
IPhoto 6: can't find drives
I'm using iPhoto 6.0.6 on my Macbook Pro with 10.4.11. I have a few files that are on separate hard drives. The problem is that if I don't have those drives hooked up, iPhoto can't find the files, and it hangs the whole program. I do see a dialog box
-
I have downloaded mavericks 10.9 from apple internet recovery online server and now my system preference is locked and asking for administrator name to unlock . please advise urgent help required