automatic compilation in 11g
Hi all I have a doubtSQL > select * from v version $;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
AMT for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
If I have a procedure a procedure b and a is dependent on the b proc but if procedure b is changed so A procedure become invalid
If yes why it is not in a State not valid
create or replace procedure B
as
no number;
begin
no := 10;
dbms_output.put_line('the procedure b and no is '||no);
end;
/
Procedure created.
create or replace procedure a
as
no number;
begin
no := 50;
dbms_output.put_line('the procedure a and no ' ||no );
b;
end;
now i am changing procedure b or recreating
SQL> create or replace procedure B
2 as
3 no number;
4 begin
5 no := 10;
6 dbms_output.put_line('the procedure b and no is '||no);
7 end;
8 /
Procedure created.
SQL> SELECT STATUS FROM USER_OBJECTS WHERE OBJECT_NAME = 'A';
STATUS
-------
VALID
because * 11 g * a [url http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17125/adfns_dependencies.htm#CHDJIIFC] this clever concept of "Fine grain Dependency Tracking.
Vivek L
Tags: Database
Similar Questions
-
How to automatically compile a procedure
Often our users of the application to call us because some web applications do not work for a stored procedure called by the application is uncopiled, as usually, some of our developers have modified a table without recompiles the stored procedure. Even if the best thing would be to remember self-supply of recopile the stored procedure whenever you change one of the objects of the stored procedure, is there someone advise me how could be possible to plan a sort of batch that is able to "trigger" when a stored procedure gets no compiled or al least that periodically checks to see if there is something uncopiled and can automatically recompile? How would you?
Thank you!
Published by: Mark1970 on November 25, 2010 0.26You have a lot of critics of the guys here... hope that those who are constructive to your developers.
To answer your question... There might be a shortcut or a small program that you can write to watch on your status as an object not valid. I think that guy DBA monitor this somehow.
I wrote a small program, some time to monitor the objects in the database to track the State of the database.
(1) write a piece of code to find invalid objects, something like that.
SELECT * FROM USER_OBJECTS WHERE TYPE_OBJET = 'PROCEDURE' AND STATUS = 'INVALID '.
(2) create a table like 'MONITOR_INVALID_PROC '.
(3) INSERT the result set of the SELECT query in the "MONITOR_INVALID_PROC" table
(4) you can have a mailing program simple to search this table frequently and mail it to you.
(5) have a JOB call this function/procedure every five minutes (to you).You must have one handy mailing program, other animals is possible fast enough.
An approach more big but it has worked and works for me. I have developed a huge alert with this as a base program, it works for me.
Published by: user3044242 on November 25, 2010 16:38
-
Hello
It is a new feature in 11g to tune automatically superior SQL and API - DBMS_SQLTUNE. SET_TUNING_TASK_PARAMETER to specify parameters for it.
I was wondering if there is a view/API where I can see what the current settings are defined (by default after an upgrade).
See you soon,.
KevinHi Kevin
The view dba_advisor_parameters should provide the information you are looking for a...
HTH
Chris AntogniniTroubleshooting Oracle, Apress 2008 performance
http://top.Antognini.ch -
2013 automatically compile in 64-bit exe?
I will soon put in place an exe from 2013 on a variable network shared server will be fed a PC lab. Before you start this way I want to be shure when I compile the vi (which will be on the server), it will be 64-bit. Having trouble finding the exact answer in the literature.
The 64-bit versions of labview require their own facility. I tried earlier to install a 64-bit version of LV and the only version I could find is LV 2014 64 bit. It was surprisingly difficult to find several 64-bit versions of LV on the site of NOR.
Must be somewhere, but I think.
EDIT: A word.
-
Hello
I use Eclipse 3.4 with BlackBerry JDE installed with 4.7 components.
I try to run a sample application and built / compile without error when I right click on the project and select "Build." However, when I right click on the project and select run as--> BlackBerry Simulator, a new error appears in the part of 'Problems' which prevents the application from running:
The path location type Resource Description
Error! : error: failed java compiler: javac - 1.3 source-target 1.3 - g - O-d C:\DOCUME~1\asleson\LOCALS~1\Temp\rapc_447d336b.dir - bootcla... phonegap line 0 BlackBerry Java problemIt's sort of strange compilation error and I don't know what to do. Is there a configuration of JDK Miss or something like that?
Thank you!!!
Try to clean the project before launching the Simulator (project-> Clean).
In a small note: when you select 'Build' Eclipse builds the project, but it is not compiled for BlackBerry. For the BlackBerry you... Heck, I don't remember. I've always used shortcuts. The abbreviation 'compile for BlackBerry' is ALT - B.
When you run the simulator it automatically compiles your project for BlackBerry.
-
Developer SQL not display warnings from the compiler
I just test the new compiler in 11g warning message related to the exception handler so that "others" when there is a subsequent increase or raise_application_error.
in SQL Plus, it works fine:
but Developer SQL, the output is:SQL> alter session set plsql_warnings='enable:all'; Session altered. SQL> SQL> create or replace function do_stuff 2 return number 3 as 4 v_return number; 5 begin 6 7 v_return := 3; 8 return v_return; 9 10 exception 11 when others then 12 return null; 13 end; 14 / SP2-0806: Function created with compilation warnings SQL> show errors; Errors for FUNCTION DO_STUFF: LINE/COL ERROR -------- ----------------------------------------------------------------- 1/1 PLW-05018: unit DO_STUFF omitted optional AUTHID clause; default value DEFINER used 11/6 PLW-06009: procedure "DO_STUFF" OTHERS handler does not end in RAISE or RAISE_APPLICATION_ERROR
Someone at - there experience this problem? is there a setting that makes Developer SQL behave differently?BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE 11.2.0.3.0 Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production session SET altered. FUNCTION do_stuff compiled No Errors.
There is a bug.
The solution is to make sure that the name of the object in CREATE or REPLACE is uppercase
So in your example make DO_STUFF
Run as a Script
Then check the compiler Log/Logging Panel, you will see your mistakes.
It has been marked to be fixed in our next release.
-
Hello
I'm looking at ADR, repository of automatic diagnosis in 11G.
1 the questions about this:
(1) are there practices to use this? For example the launch regularly ADR command to find the latest alerts / incidents and email them
(2) is it an option to oracle / license required to use this or can we use standard with EE.
Regards and thanks in advance for your expertise.
PeterPeter wrote:
HelloI'm looking at ADR, repository of automatic diagnosis in 11G.
1 the questions about this:
(1) are there practices to use this? For example the launch regularly ADR command to find the latest alerts / incidents and email them
It helps a lot to diagnose and keep all information of diagnosis on the common place IE DIAGNOSTIC_DEST.
Take a look at-> http://docs.oracle.com/cd/B28359_01/server.111/b28310/diag001.htm
And
http://gavinsoorma.com/2010/09/purging-trace-and-dump-files-with-11g-adrci/(2) is it an option to oracle / license required to use this or can we use standard with EE.
As much as I know there is no cost of licening to use this. Check link for the licenses below.
http://docs.Oracle.com/CD/B13789_01/license.101/b13552.PDF -
question about the stages of compilation post patch adadmin
From the readme file.
Apply this pack mini...
Oracle Financials Family Pack G contains a unified patch driver and can contain additional driver files
be applied with AutoPatch. Please apply the driver file on all nodes of the application-tier server.
u3653484.drv
You must perform these steps after execution of build using Administration AD (adadmin) driver:
1 generate files of messages. (* 1st choice 1.) Generate Applications files menu)?
2 compile applications or patterns.
-How to do this? y at - it an option only for applications or simply do all?
3 compile flexfield given in the tables of AOL.
(Please note that the Flexfields automatically compile data when using them for the first time, for the execution of this task is not necessary.)
4 compile the menu information.
I'm not 100% sure what options I am supposed to provide the 4 steps above. Looks like step 3 is optional based on another post.
If someone could just give me the right choice? It comes to 11.5.10.Hello
1 generate files of messages. (* 1st choice 1.) Generate Applications files menu)?
Of adadmin:
Generate Applications files menu
Generate files of messages2 compile applications or patterns.
-How to do this? y at - it an option only for applications or simply do all?Of adadmin:
Menu to compile/Reload Applications database entities
Compile the drawing APPSIt compiles all invalid objects, so there is no option to select the schema.
3 compile flexfield given in the tables of AOL.
(Please note that the Flexfields automatically compile data when using them for the first time, for the execution of this task is not necessary.)Of adadmin:
Menu to compile/Reload Applications database entities
Compile flexfields4 compile the menu information.
I'm not 100% sure what options I am supposed to provide the 4 steps above. Looks like step 3 is optional based on another post.
If someone could just give me the right choice? It comes to 11.5.10.Of adadmin:
Menu to compile/Reload Applications database entities
Compile the menu informationAll the foregoing is documented and explained properly to the "maintenance of Oracle Applications Documentation Set".
Maintain all Documentation Oracle Applications
http://download.Oracle.com/docs/CD/B25516_18/current/HTML/docset.htmlThank you
Hussein -
Question of fliexfield compilation R12
Salvation;
I have r12 (12.0.6) instance on aix, I took his clone and after fliexfields (DFF_KFF) process clone can be invalid? I know in r11 nothing opton to compile fliexfiled in adadmin utulity. How can I compiled r12 fliexfiled (FDF - KFF) which became damaged or invalid
Thank you very muchHello
Compiles flexfield data structures in the tables Oracle Application Object Library (DNF). Choose this task after you apply a hotfix that modifies the configuration of flexfields. Patches usually indicate when you need to perform this step.
Flexfields automatically compile data when using them for the first time, for the execution of this task is usually not necessary. However, flexfields compilation at a specific time can mitigate performance issues potential runtime. For example, you can choose to compile when using the system is known to be low, rather than automatically on first use.
Oracle Application Maintenance utilities
http://download.Oracle.com/docs/CD/B53825_03/current/Acrobat/121admu.PDFKind regards
Hussein -
question about .as files/programs
I hope that my question has not been asked already, but I think that he has a simple answer, I just need confirmation of the pros
Anyway, if I did a file or program in Flash, no flash builder, and it has the file extension ".de" that I would be able to open / export to flash builder and then debug him for the BB SDK and test subsequently on SIM(ie: like some people did on the AIRHelloWorld.as test app) BB?
Thanks in advance!
Lets say your file called called aaa.as. Create a Flex project in Flash Builder. On the last page of the wizard, replace the record suggested as "test.mxml" with the text "aaa.as". Click Finish.
When the project opens the sheet and drop your real aaa.as in the place of one in the Project Explorer (or whatever the file manager on your platform).
FB should automatically compile and produce an aaa.swf in the bin-debug folder. You will also need to modify the aaa - app.xml and create an icon for the appropriate application. After that, follow the instructions to get started on creating the debug launch for this project configuration.
-
is it possible restart auto multiple db Db in a single House
Hello
OS version: 11 GR 2
standard edition
I need until the database with my involvement, so I found db starting his allows only that once a position is real...
Makkina Srikanth says:
Hello
OS version: 11 GR 2
standard edition
I need until the database with my involvement, so I found db starting his allows only that once a position is real...
1. you need to share the environment if Windows or Linux?
2. have you read or browsed https://docs.oracle.com/cd/E11882_01/server.112/e25494/restart.htm#ADMIN12709
Database instance
Restart Oracle can accommodate multiple databases on a single host computer.
3. you must have grid infrastructure in place
4, you need efficient on the srvctl management policy which
5. IF you are looking for with grid infra - Autostart on reboot of the operating system can
/ etc/oratab - example
ORCL:/U01/app/Oracle/product/11.2.0/dbhome_1:Y (this column provides information)
DBSTART and dbshut provided by oracle, you can use
Note: you must connect the kernel startup scripts
Refer to: https://matthiashoys.wordpress.com/2012/04/20/automatically-start-oracle-11g-on-oracle-linux-6-2-after-server-reboot/ (demo)
You must check the below
Data management policy.
AUTOMATIC
(default): the database is automatically restored to its previous state (started or stopped) running when the database host computer is restarted.MANUAL
: The database is never automatically restarted when you restart the database host computer. AMANUAL
parameter does not prevent the Oracle Clusterware to monitoring of the database so that it is running and restarting if an error occurs.NORESTART
: From Oracle Database 11 g Release 2 (11.2.0.3), you can use theNORESTART
value. Similar to theMANUAL
setting, the database never automatically restarts after a restart of the database host computer. ANORESTART
definition, however, never restarts the database even if a failure occurs.
Note: do not confuse on instances, it would allow to manage with home alone.
-HTH
-Pavan Kumar N
-
Hi friends,
Could you help me understand this behavior in oracle.
SQL > create or replace package mypkg is
2 number of v_statevar: = 40;
3 procedure MyProc;
4 end mypkg;
5.
Package created.
SQL > create or replace package body is mypkg
2 procedure MyProc is
3 myval number;
4 start
5. Select x
6 in myval
7 of dependonme;
8
9 - myval: = myval * mypkg.v_statevar;
10 DBMS_OUTPUT. Put_line (' my result is: ' | myVal);
11 end;
12 end mypkg;
13.
Package body created.
SQL > select object_name, object_type, status from user_objects where object_name = 'MYPKG ';
OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ ------------------- -------
PACKAGE VALID MYPKG
VALID PACKAGE BODY MYPKG
SQL > set serveroutput on
SQL > exec mypkg.myproc;
My result is: 5
PL/SQL procedure successfully completed.
SQL > create or replace package mypkg is
2 number of v_statevar: = 150;
3 procedure MyProc;
4 end mypkg;
5.
Package created.
SQL > select object_name, object_type, status from user_objects where object_name = 'MYPKG ';
OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ ------------------- -------
PACKAGE VALID MYPKG
INVALID BODY PACKAGE MYPKG
SQL > set serveroutput on
SQL > exec mypkg.myproc;
My result is: 5
PL/SQL procedure successfully completed.
SQL > select object_name, object_type, status from user_objects where object_name = 'MYPKG ';
OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ ------------------- -------
PACKAGE VALID MYPKG
VALID PACKAGE BODY MYPKG
SQL >
How did change the value of the variable in the package specification makes the invalid package body.
How execution of the procedure of the package is once again the VALID State.
Kimmy says:
Hello carine,.
I'm just setting the variable in the notebook, that variable was not referred to the procedure in the package body, also I'm not change any signature/details of the procedure described in the package specification, then what do the package body are invalid.
There are two parts to this.
(a) by recompiling package specifications, you then automatically invalidates all objects in the database that dependent on it. In this case, the package body is dependent on, so get marked as invalid. When you try and run something in the package Oracle try to compile the package, if it succeeds, it will mark it as valid again (as in your case).
(b) the variables and declarations of a package (public and private) are what constitutes the 'State '. By calling the package, you instantiate a copy in memory to create this state of package for this instantiation of the entire session. By recompiling package specifications (it's not fair that you change the value of the variable, you recompile the spec), you can invalidate the State in memory and therefore potentially invalidate the package body. It depends on your version of the database. In 10g, by invalidating state you will get an exception "State package rejected" when you try to run the package after the change, and then it will automatically compile and validate the package, so that it eventually works ok. From 11 g, there is more fine grain dependencies on the State, so if the change you have made has no effect on what you run, it can validate and run without causing the exception 'package State scrapped ';. He would only do that if it's something that you used.
-
Issue of "deploy portal with ant.
Hello Experts!
I'm quite new to WebCenter, and I have a requirement to automate compiling and deploying tasks of my Portal Application (Application Framework). I read some docs and articles and this forum too. Can you tell me the difference between the following:
-deploy via ojdeploy
-wldeploy
-python (WLST) script?ojdeploy allows you to use the deployment targets defined in your project workspace JDeveloper. I found it easiest to wrap my code in a library of ADF JAR or EAR file.
wldeploy is a wrapper of Ant for the features provided by weblogic. Deployer i.e. deploy related functions.
WLST is a jython based on the utility that provides functions responsible for the deployment, as well as administrative functions. I prefer using wlst to my deployments. I usually invoke wlst via the "exec" task in ant.
-
I have Dreamweaver CC what I need to do something more to work with SCSS. Right now my var will not work.
$blue: #283b 78;
. Slider {}
background: $blue;
height: 300px;
min-width: 100%;
margin:-20px 0 0 0;
}
Update: the beta public version of Dreamweaver CC 2017 has now supported for both LESS and Sass. In addition to the support for files .scss, .sass and over-consumption, Dreamweaver CC 2017 automatically compiles the output files for you.
The beta version is available for everyone that you have a creative cloud subscription. The only requirement is that you must have an Adobe ID
-
Go_Item built in behavior
Hi all
In Forms 6i that I am trying to push the control in a particular item that is not in the Web and control passes to the other article available in the block sequence that is available in the sequence, but doesn't give / throw any error. But the same shape when compiled in 11g and run, it throws an error frm-40112
How to get rid of this error, I met a few threads with this FORMS_REJECT_GO_DISABLED_ITEM environment variable, but it did not, please discuss how to overcome this problem.
Thanks in advanceLooks like you got a call Go_Item which refers to an element is not enabled. Activation and deactivation of elements in your form programmatically?
Craig...
Maybe you are looking for
-
Only the C partition on the new Satellite C50-B-14Z
Hello I'm not an experienced user, but I'll do my best to explain the problem. I bought Toshiba Satellite C50-B-14Z with 8.1 installed Windows, and when starting the system, I noticed that there is only one partition of hard drive, the C partition. W
-
How to find the frequency bands of the TPL for Wavelet db04?
The President complied, I'm doing project on the simulation of the EEG signal, processing and analysis. I want to find the frequency of the signal band after having extracted the detail and the approximate coefficient. Here I used a Wavelet analysis
-
Het expensive, wpd beveiligde-opslagwachtwoord, foutmelding bij opstart
Microsoft, doing WPD beveiligde-opslagwachtwoord, geeft een melding puts opstarten.
-
Problem! Downloading the wrong version of customers
as the title says I have received emails from customers say they have just paid for one of my apps and downloaded but it does not work they do not find the theme, and when I go to check their bad review, he said: they have downloaded the version for
-
How to check a program if the device is currently locked?
How to check a program if the device is currently locked? Is there an API that can tell me who? I used DeviceInfo.isPasswordEnabled () but it doesn't seem to do the trick