DATABASE HANGS WHEN COMPILING VIEWS, PROCEDURES, PACKAGES
My db hangs while recompiling views, packages and procedures and later returns these error message;
ORA-4021: timeout occurred while waiting to lock object
can anyone help out.
SELECT DECODE(request,0,'Holder: ','Waiter: ')||sid sess,
id1, id2, lmode, request, type
FROM V$LOCK
WHERE (id1, id2, type) IN
(SELECT id1, id2, type FROM V$LOCK WHERE request>0)
ORDER BY id1, request
SQL reports who & object_id involved
Similar Messages
-
Can i compile new procedures/packages on my snapshot standby?
Hi
can i compile new procedures/packages on my snapshot standby?
I need to test the new release of the application, which include some changes to current packages
thanksyes you can do it, just that it will be flashbed back to the restore point when it was standby first, do anything on it, but be aware that later you convert from snapshot standby to physical standby, more time it would take for redo to be applied and also it is mandatory to open the snapshot at least once in read-write mode before it can be converted into a physical standby database.
Regards
Karan -
Connection Reset when compiling PL/SQL Package
Recently a strange issue appeared on my office PC. When I try To compile a PL/SQL package on specific Oracle instance I get an error message:
Error: Io exception: Connection reset by peer: socket write error
And the connection is reset. I even cannot reconnect to database schema. To open connection again I have to restart SQL Developer. In spite of this issue I can execute SELECT queries in SQL worksheet and view data in tables. Error message appears only when compiling packages in any schema on database instance in our local network and only on my PC. Other office PCs works fine without any errors. I am able to compile packages on remote database from my PC.
Same error message shows up in different SQL Developer versions and also in JDeveloper. SQL Developer restart, Windows restart, database instance restart doesn't help.
Used software:
SQL Developer versions: 1.2.1 and 1.1
JDeveloper version: 10.1.3.2
Oracle Database on local network: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
Remote Oracle Database: Oracle Database 10g Release 10.2.0.3.0 - Production
OS: Windows XP Pro SP2
Thanks,
RaymondI am trying to convert the values in a selected
column into 1 and 0 so that I can display all 1s in
one column, all 0s in another. I am doing this in a
PL/SQL package. However ORACLE compiler does not
like the CASE construct.
Does anyone know how to group values in a column into
several new columns. If CASE WHEN construct is not
doable in PL/SQL, what alternatives are there?
Thanks.
CURSOR v_Cursor IS
SELECT A.D_CODE, A.M_CODE, TEST_START ,
, C.C_NAME,C.P_ID,
SUM(CASE WHEN MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 ANDB.B_CODE IN '11.1','222.2','272.4') THEN 1 ELSE 0
END) QUALIFIEDUse the Decode function. This has been around in oracle SQL for ages and works like a case construct.
You would do something like
select ...
sum( decode (MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 AND
B.B_CODE IN ('11.1','222.2','272.4') 1,0 ) -
10g form hangs when compiling! - please help!
Hi,
I'm having a problem compiling a couple of my forms. I'm using forms 10g and when I compile the form it hangs in a particular program unit. Actually, if I connect to my database first and then open the form in forms builder, it will hang. I have to connect after I load the form.
In the program unit that compiling is hanging on, we are selecting from a synonym which is a dblink to another database. The synonym is in a 9i database, the dblink is linking to a table in a 10g database. I can see the synonym and perform a select from it. However, it will not compile in the form.
Please help!
Thanks!Hi,
The same issue is faced by me when I was migrating my application from forms6i (oracle 8i) to forms 10g(oracle 10g).
Solution:
create a view based on the table on the other database (use db link)
now create a synonym using this view and make it public.
use this synonym in your form.
It looks like something weared but this worked !!
Try it !! -
[SOLVED] pacman hanged when install or remove packages
when I use pacman -S , it only shows "resolving dependencies...". If I use pacman -R , it hangs at "checking dependencies..."
I have tried to overwrit the programme with extracted the package manually, it didn't help me.How can I resolve the problem
Last edited by nyfair (2008-03-25 14:16:21)sudo pacman -S pacman --debug
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: new section 'testing'
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'testing'
debug: opening database 'testing'
debug: opening database from path '/var/lib/pacman/sync/testing/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server to database 'testing': protocol 'ftp', server 'mirror.pacific.net.au', path '/linux/archlinux/testing/os/x86_64'
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'core'
debug: registering sync database 'core'
debug: opening database 'core'
debug: opening database from path '/var/lib/pacman/sync/core/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server to database 'core': protocol 'ftp', server 'mirror.pacific.net.au', path '/linux/archlinux/core/os/x86_64'
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: opening database 'extra'
debug: opening database from path '/var/lib/pacman/sync/extra/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server to database 'extra': protocol 'ftp', server 'mirror.pacific.net.au', path '/linux/archlinux/extra/os/x86_64'
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: registering sync database 'community'
debug: opening database 'community'
debug: opening database from path '/var/lib/pacman/sync/community/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server to database 'community': protocol 'ftp', server 'mirror.pacific.net.au', path '/linux/archlinux/community/os/x86_64'
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: registering local database
debug: opening database 'local'
debug: opening database from path '/var/lib/pacman/local/'
debug: loading package cache for repository 'testing'
debug: loading package cache for repository 'core'
debug: loading package cache for repository 'local'
warning: pacman-3.1.3-1 is up to date -- reinstalling
debug: package 'pacman' not found in sync
debug: adding target 'pacman' to the transaction set
resolving dependencies...
debug: resolving target's dependencies
debug: started resolving dependencies
debug: checkdeps: package pacman-3.1.3-1
then the programme hanged
after I press ctrl+c, it shows
debug: returning error 29 from alpm_trans_interrupt : operation not compatible with the transaction type
debug: closing database 'local'
debug: unregistering database 'local'
debug: freeing package cache for repository 'local'
debug: closing database 'testing'
debug: unregistering database 'testing'
debug: freeing package cache for repository 'testing'
debug: closing database 'core'
debug: unregistering database 'core'
debug: freeing package cache for repository 'core'
debug: closing database 'extra'
debug: unregistering database 'extra'
debug: closing database 'community'
debug: unregistering database 'community' -
Code runs fine in debug mode but hangs when compiled in release mode
I am struggling with the following problem. I have code which runs fine when it is executed in debug mode. However, when I compile it in release mode and run the executable, the code freezes and does not work. The code acquires images from a Hamamatsu camera. In the debug mode I am able to continuously acquire images. However, in the release version, the code hangs after acquiring the first image.
I am using LabWindows/CVI version 7.
I would greatly appreciate if I can get any help/suggestions in resolving this problem?
Thanks!
Regards,
Sripad
Solved!
Go to Solution.Sripad:
If you search this forum for "debug release crash" or "release version crash" or similar phrases, you'll find that this is a pretty common question. Look through the other posts you find here to see if anything is applicable to you.
The debug version does some things like padding variables so you can sometimes overrun your declared variable space without overwriting the next variable. In the release, the variables are packed, so if you overrun one, you are overwriting another. Just one possible difference.
You can do some things in your release code to see where things get lost, like (temporarily using printf statements after multiple statements at the start and end of your loop to try to identify that failing line of code.
Look through other threads to find other ideas. -
Flash Builder Hangs when compiling to AIR App
I created a presentation in Catalyst with some embedded objects and some linked objects, then jumped it to Flash Builder to have my developer add in some scripts. We then tried to Export Release Build to create an AIR application. Problem is, it won't pull the linked assets. If I check the box to include the assets it hangs on the compilation. I can just keep clicking the "Finish" button and nothing happens. If I deselect the "Assets" I can click "Finish" it compiles the AIR application, but I'm left with a basically empty application. I don't understand what's happening. Any help please.
Thanks
JimWell Anirudh, it somewhat worked. I added the new source
folder just like you diagrammed and when I compiled the project to an AIR application the application file size jumped from 3mb to 500mb. So it obviously pulled the linked images. But when we installed the AIR application the images still weren't found. Any ideas?
Right now there are two items in the project that have Assets in the name. I don't think this is correct.
Here's a screen grab. -
Cannot find symbol error when compiling in different packages
Hey all,
I'm trying to divide my project into a sensible hierarchy. This is what I want:
MyProject
MyProject/src ................................. where all the source files are (no further directories)
MyProject/classes
MyProject/classes/Main.class
MyProject/classes/classes2 ................ sorry for not being creative XD
MyProject/classes/classes2/Age.classNow, Age uses Main, and this is where the trouble is. I'm using javac directly to compile Age, and this is how I'm doing it:
//from MyProject
javac -cp classes src/Age.javaAnd I get this error:
bla bla bla...cannot find symbol
symbol : variable Main
location: class classes2.Age
years = (byte)(Main.year - m.getYear());
^Main is already compiled and in place.
Also, this is how Age.java starts:
package classes2;
public class Age
{...etcI'm using JCreator as an IDE (and using it's own build function, the same error occurs, which is why I tried directly compiling the file).
Why can't javac find Main.class? I tried searching Google, but my particular problem didn't seem to crop up.
Hope I provided enough information, and ask if more is needed.
Many thanks :)If Main is not in a package (which it appears not to be), then it cannot be referenced by any class that is in a package. If Main is in a package, then you'll need to refer to it by it's fully-qualified name (or import it as such) if it's not in the same package as the class that's referring to it, and Main.class will have to be in a directory that corresponds to its package.
Also, though the compiler may not require it, your source code directory structure should match your package hierarchy. -
Ostringstream 10; hangs when compiled and build with -mt option.
I've written a very simple program to test the use of the stl class ostringstream. The program write an integer to the ostringstream object. In a multithreaded environment (compiled and build with the -mt option), that operation hangs and never returns, whilst it works fine if the program is compiled and build without the -mt option.
Here is the program :
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sstream>
int main() {
std::ostringstream buffer;
printf("before writing integer to ostringstream\n"); fflush(stdout);
buffer<< 10;
printf("after writing integer to ostringstream.\n"); fflush(stdout);
printf("exiting.\n"); fflush(stdout);
return 0;
Compilation and build :
CC -mt test.cpp -o test
Do you any idea why the program hangs at buffer << 10; in a multithreaded environment ?
(I have tried to write a string instead of a integer, then it works).
Thanks a lotHi, I've tried your code with Solaris 7 with Forte Developer 6.2, and it seems to work fine. I get the following output:
before writing integer to ostringstream
after writing integer to ostringstream.
exiting.
My compiler version is:
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-03 2001/10/19
-Moazam -
Huge bug - New database dropdown in object viewer window
It appears that when opening a package spec or body you now get a dropdown on the right to choose the connection, similar to the dropdown provided when using a worksheet, however it appears that the dropdown will remember the last database connection when opening the same package on two different connections. It may be easier to understand through these steps:
Assume two connections, dev and production which connect to two different databases that are identical in schemas and objects
1) Expand production tree on connections tab, choose schema, choose packages, and double click a package spec or body to open it.
2) The connection dropdown on the right shows production, which is correct
3) Without disconnecting from production, expand dev tree on connections tab, choose same schema, choose packages, double click the exact same package spec or body in the dev db as you did for production
4) The connection dropdown on the right shows production, which is definitely INCORRECT and extremely dangerous!!!
Please fix...I'll be reverting back to 2.1.1 now and expecting that 3.0 production version has it resolved.Bugged as in 30EA1- SQL Developer opening wrong package
I too reverted to 2.1.1. Even paying extra attention as to which connection is listed in the dropdown, I was still losing code.
Regards,
K. -
Error message when compiling invalid packages and procedures
Hi.
I have a routine for copying certain data from a production database to a test database. To do this I disable constraints and triggers, truncate tables, copy tables and enable triggers and constraints again.
Now several of my functions, procedures and packages are made invalid and marked with a red cross. In SQL Developer I can compile invalid functions, procedures and packages. When I compile functions it works fine, but when compiling procedures and packages I get the following error message:
An error was encountered performing the requested operation:
ORA-00904: "ATTRIBUTE": Invalid identifier
Vendor code 904
When I click OK on this message I get a confirmation saying:
Packages have been compiled with #0.CNT# errors.
I had this error in both the previous and the new version. Is this a bug or is there a way to come around it? When I copy and modify the SQL generated to perform this task and run it in SQL Plus it works fine.
I use Windows 2000 5.00.2195 Service Pack 4, SQL Developer version 1.2.1, Oracle 9.2.0.8.0 and Java version 1.5.0_11
Message was edited by:
SvSigi have now upgraded to Java 1.6 update 2. I still get basically the same error, but it is presented a little bit differently:
An error was encountered performing the requested operation:
ORA-00904: "ATTRIBUTE": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Vendor code 904
Are there other possible error causes than the operating system version and the database version?
We are going to install an Oracle 10 test database in a couple of weeks, so then I will find out whether the database version is the problem. -
Why am I getting an ORA-04052 error when I try to compile a Procedure?
Hi,
The following procedure I'm getting an ORA-04052 error when I try to compile the following procedure.
CREATE OR REPLACE PROCEDURE APPS.Find_String (
pin_referenced_name IN dba_dependencies.referenced_name%TYPE)
IS
cursor cur_get_dependancy
is
SELECT distinct owner, name, type
FROM [email protected] -- prod.world
WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
AND referenced_type <> 'SYNONYM'
AND owner <> 'SYS'
order by name;
v_owner varchar2(40);
v_name varchar2(50);
v_type varchar2(40);
BEGIN
dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
dbms_output.put_line(' ');
dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
FOR i IN cur_get_dependancy
LOOP
v_owner := RPAD(i.owner, 30, ' ');
v_name := RPAD(i.name, 45, ' ');
v_type := RPAD(i.type, 30, ' ');
dbms_output.put_line(v_owner ||v_name|| v_type);
END LOOP;
END find_string;I'm using the link [email protected]. The procedure compiles for other database links used in the cursor including the one commented to the right of the code 'prod.world'.
What's even stranger is that I took the SELECT statement
SELECT distinct owner, name, type
FROM [email protected] -- prod.world
WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
AND referenced_type <> 'SYNONYM'
AND owner <> 'SYS'
order by name;out of the procedure and ran it on the command line using the @pinp.world link, the SQL statement ran just fine. But when I tried to compile the above procedure with that exact same SQL statement with the exact same link I get the following string of errors.
ORA-04052: error occurred when looking up remote object [email protected]
ORA-00604: error occurred at recursive SQL level 1
ORA-02068: following severe error from PINP
ORA-03113: end-of-file on communication channelHow can the link work just fine in a regular SQL statement but then cause an error when its compiled in code that otherwise compile just fine when using any other link or even just a plain database. Does anyone have any suggestions?OK Justin,
Here's the query by itself run in another database using the @pinp.world link and querying the dba_dependencies table in the pinp.world database. As you can see the query using this link works just fine returning the requested rows. I can't figure out why the compiler is having an issue with essentially this same query when I try to compile it in a cursor in TOAD. Also this is the database (dev1.world) that I'm trying to compile this Procedure in.
By the way I'm in an Oracle 9.2.0.6 database and TOAD v9.2.
SQL> conn apps/apps1@dev1
Connected.
SQL> SELECT distinct owner, name, type
2 FROM [email protected]
3 WHERE lower(referenced_name) = lower('ALL_USERS')
4 AND referenced_type <> 'SYNONYM'
5 AND owner <> 'SYS'
6 order by name;
OWNER NAME TYPE
PUBLIC ALL_USERS SYNONYM
XDB DBMS_XDBUTIL_INT PACKAGE BODY
XDB DBMS_XDBZ0 PACKAGE BODY
SYSTEM MVIEW_EVALUATIONS VIEW
SYSTEM MVIEW_EXCEPTIONS VIEW
SYSTEM MVIEW_FILTER VIEW
SYSTEM MVIEW_LOG VIEW
SYSTEM MVIEW_RECOMMENDATIONS VIEW
SYSTEM MVIEW_WORKLOAD VIEW
ORASSO WWCTX_API PACKAGE BODY
PORTAL WWCTX_API PACKAGE BODY
ORASSO WWEXP_UTL PACKAGE BODY
PORTAL WWEXP_UTL PACKAGE BODY
PORTAL WWPOB_API_PAGE PACKAGE BODY
PORTAL WWPOF PACKAGE BODY
ORASSO WWPRO_PROVIDER_VALIDATION PACKAGE BODY
PORTAL WWPRO_PROVIDER_VALIDATION PACKAGE BODY
PORTAL WWSBR_EDIT_ATTRIBUTE PACKAGE BODY
PORTAL WWSBR_FOLDER_PORTLET PACKAGE BODY
PORTAL WWSBR_USER_PAGES_PORTLET PACKAGE BODY
ORASSO WWUTL_API_PARSE PACKAGE BODY
OWNER NAME TYPE
PORTAL WWUTL_API_PARSE PACKAGE BODY
PORTAL WWUTL_EXPORT_IMPORT_LOV PACKAGE BODY
ORASSO WWUTL_LOV PACKAGE BODY
PORTAL WWUTL_LOV PACKAGE BODY
PORTAL WWV_CONTEXT PACKAGE BODY
PORTAL WWV_CONTEXT_UTIL PACKAGE BODY
PORTAL WWV_DDL PACKAGE BODY
PORTAL WWV_GENERATE_UTL PACKAGE BODY
PORTAL WWV_GLOBAL PACKAGE
PORTAL WWV_MONITOR_DATABASE PACKAGE BODY
PORTAL WWV_PARSE_AS_SPECIFIC_USER PACKAGE BODY
PORTAL WWV_PARSE_AS_USER PACKAGE BODY
PORTAL WWV_SYS_DML PACKAGE BODY
PORTAL WWV_SYS_RENDER_HIERARCHY PACKAGE BODY
PORTAL WWV_THINGSAVE PACKAGE BODY
PORTAL WWV_UTIL PACKAGE BODY
PORTAL WWV_UTLVALID PACKAGE BODY
38 rows selected.
SQL>Let me know what you think.
Thanks again. -
Sql developer hangs when saving pl/sql external package or package body fil
When I open a package body file I can modify the contents of the file.
Compilation of the file works fine but when I want to close or save the file SQL developer hangs. I use version 1.2 (previous version did have the same problem.)
Somebody has an idee what I'am doing wrong?Are you using 1.2.1.32.13?
Sue -
Error report:No more data to read from socket when compile package
We are going to migrate db from oracle 10g to oracle 11g. But when compile a package which is fine on oracle 10g, an exception "Error report:No more data to read from socket" throws on sql developer and break the connection. We have researched the issue and found if modify some code on a cursor, the issue will not happen.
code:
PROCEDURE DELETE_MANU_INTERV_BORROWS(
p_borrow_id IN NUMBER,
p_asset_id IN NUMBER,
p_nsb_coll_type IN VARCHAR2,
p_nsb_coll_code IN VARCHAR2,
p_branch_code IN VARCHAR2,
p_settle_date IN NUMBER,
p_trans_type IN VARCHAR2,
p_status OUT VARCHAR2,
p_shorts_cursor OUT SYS_REFCURSOR
IS
var_end_settle_date GEC_IM_ORDER.SETTLE_DATE%type;
CURSOR exist_allocation IS
SELECT out_a.ALLOCATION_ID FROM
GEC_ALLOCATION out_a,
GEC_BORROW b,
GEC_IM_ORDER o,
GEC_TRADE_COUNTRY gc,
(SELECT f.FUND_CD, f.BRANCH_CD, tc.TRADE_COUNTRY_CD, NVL(gc.COLLATERAL_CURRENCY_CD, gbk.COLLATERAL_CURRENCY_CD) as COLLATERAL_CURRENCY_CD
FROM GEC_FUND f
LEFT JOIN GEC_G1_BOOKING gbk ON f.fund_cd = gbk.fund_cd AND gbk.TRANSACTION_CD = 'G1L' AND gbk.POS_TYPE = 'NSB'
LEFT JOIN GEC_G1_COLLATERAL gc ON gc.G1_BOOKING_ID = gbk.G1_BOOKING_ID
LEFT JOIN GEC_TRADE_COUNTRY tc ON gc.TRADE_COUNTRY_CD = tc.TRADE_COUNTRY_CD
) loan_info
WHERE b.BORROW_ID = out_a.BORROW_ID AND
out_a.IM_ORDER_ID = o.IM_ORDER_ID AND
o.FUND_CD = loan_info.FUND_CD AND
o.ASSET_ID = p_asset_id AND
gc.TRADE_COUNTRY_CD = o.TRADE_COUNTRY_CD AND
o.TRANSACTION_CD = p_trans_type AND
loan_info.COLLATERAL_CURRENCY_CD = p_nsb_coll_code AND
loan_info.BRANCH_CD = p_branch_code AND
o.SETTLE_DATE >= p_settle_date AND
o.SETTLE_DATE <= var_end_settle_date AND
b.STATUS = GEC_CONSTANTS_PKG.C_BORROW_MANUAL
ORDER BY out_a.ALLOCATION_ID ASC
FOR UPDATE OF out_a.ALLOCATION_ID;
If delete the "OF out_a.ALLOCATION_ID" of the for update clause of CURSOR exist_allocation, this prolbem will not happen, and the code is comple succesfully on sql developer for oracle 10g.
Does anybody have any idea? I've googled the similer problems but still can't find a clue. I'll appreciate any help.Welcome to the forum!
Please provide the 4 digit Oracle version (result of SELECT * FROM V$VERSION) for the source and target servers; 10g and 11g are not versions. You also mention sql developer so what is the exact version you are using?
>
If delete the "OF out_a.ALLOCATION_ID" of the for update clause of CURSOR exist_allocation, this prolbem will not happen, and the code is comple succesfully on sql developer for oracle 10g.
>
Please clarify what works and what doesn't work because your statements are both incorrect and misleading.
You can't delete the "OF out_a.ALLOCATION_ID" of the for update clause or you would get a syntax error by leaving FOR UPDATE OF with nothing specified after it.
Also you original statement said
>
But when compile a package which is fine on oracle 10g
>
But now you say that if you delete the "OF..." the problem doesn't happen and the code compiles on 10g.
Does the original code compile on 10g or not? Does it compile on 11g or not? After the original code is migrated to 11g does it compile? That is, the code is there can you manually compile it? -
Compiling Procedures/Packages/Functions
I'm fairly new to the arena of compiling Procedures/Packages/Funcitons but I was given the task of updating a development DB with a lot of newly created/updated Objects. I have created a shell script to go through all the new files and create or replace all the new objects in sqlplus. My question is how to compile all the newly created objects and their dependencies correctly? I have been using SQL Developer to verify that everything has compiled but I see that some are marked invalid which I assume is because a dependency was compiled after it. What would be my best way to making sure everything is valid? I hope this makes sense but any help would be appreciated.
You can use a script like this to build your own sql statement to compile the invalid objects. You can add your own statement for other object types at the end with a union, ie TYPE body.
You will probably need to run it repeated until all objects are VALID. You can put it in a PL/SQL block with a loop and execute immediate so reduce the manual work.
--PACKAGE
select 'alter package ' || object_name || ' compile;' from user_objects
WHERE Status = 'INVALID'
and object_type= 'PACKAGE'
union
-- PACKAGE BODY
select 'alter package ' || object_name || ' compile body;' from user_objects
WHERE Status = 'INVALID'
and object_type= 'PACKAGE BODY'
union
--PROCEDURE
select 'alter procedure ' || object_name || ' compile;' from user_objects
WHERE Status = 'INVALID'
and object_type= 'PROCEDURE'
union
--FUNCTION
select 'alter function ' || object_name || ' compile;' from user_objects
WHERE Status = 'INVALID'
and object_type= 'FUNCTION'
union
--TRIGGER
select 'alter trigger ' || object_name || ' compile;' from user_objects
WHERE Status = 'INVALID'
and object_type= 'TRIGGER'
union
--VIEW
select 'alter view ' || object_name || ' compile;' from user_objects
WHERE Status = 'INVALID'
and object_type= 'VIEW'
Maybe you are looking for
-
VBA Code error with Adobe Acrobat 10 Type Library
Hi, I have some code I created in Word VBA to combine several separate PDFs into a single PDF. The code works fine with the Adobe Acrobat 9.0 Type Library and Adobe Reader 9.0 installed. But, with the Adobe Acrobat 10 Type Library and Adobe Reader 1
-
Screen cracked, Need to turn phone off completely.
Off course, less than a week after my boyfriend gets this phone, he drops it and the screen cracked. We DO have insurance, but have to wait a week till payday for the deductible. Here is my problem. Screen is cracked, phone is still on. I need to tu
-
Share option for email does not work after Yosemite upgrade.
Hi, Does anybody know why the share option, "Share via email" does not work anymore after Yosemite upgrade? I love this feature. It's just quick and easy. Rod.
-
Finding the exact left edge of text
Hi. I am trying to get a rectangle to surround my SimpleText by making the rectangles height and width the same as the text height and width. It does a pretty good job if the first letter is "W" or a similar wide letter, but if the first letter is "h
-
The BIOS version for my T61 is 2.26. I want to know where I can change the ACPI settings in BIOS. I cannot find it under Power. Besides, does it support S1/POS option? Thanks in advance.