How to compile all invalid objects in SQL Developer
Hi
I am used to PL\SQL Developer and currently I am testing SQL Developer (version 2.1). I have question where can I find in SQL Developer functionality (or how to invoke those functions) like:
1 ) To list all invalid objects and then compile them.
2) Invoke window similar to “Command window” in PL\Sql Developer
Thanks for help
Groxy
Could I please revive this and ask how do I use UTL_RECOMP?
Also, I could not find a description of the icons in SQL Developer. Some procedures are shown with a green plus sign (I am guessing here since I can't make out what it is) on them and the ones that I right-click and compile have this green go away. Can you explain?
Thanks a lot.
Similar Messages
-
To compile all invalid objects
how we can compile all invalid objects? is there any sample plsql code?
dbms_utility.compile_schema('shema_name');Please note that from Oracle 9i onwards this does not work. It compiles objects in alphabetical order rather than reverse dependency order, so you may end up with more objects uncompiled than you started with. This change occurred due to the introduction of Java (boo! hiss!) which allows circular dependencies.
Since then, the only safe way to compile objects is to use the %ORACLE_HOME%\rdbms\admin\utlirp.sql script (which requires sysdba access).
This has been packaged up in 10gR2 as UTL_RECOMP.
Thereby proving that searching is easy but finding the right answer is difficult.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/ -
How to recompile all invalid objects of APPS?
Dear all:
How to recompile all invalid objects of APPS? my environment is ORACLE 9.2.0.5 32bit.
Regards
Terryvarun4dba wrote:
hi Terry,
did you tried adadmin?
thanks.Do you mean:
Compile/Reload Database Objects
1. Compile APPS schema
2. Compile menu information
3. Recreate grants and synonyms for APPS schema
4. Compile flexfield data in AOL tables
5. Reload JAR files to database
6. Return to Main Menu -
How to Compile Sys invalid objects
Dear,
We have found one invalid object in our database which owner is SYS.
How i compile this objects it's OBJECT_TYPE is package_body.
Please suggest me if any..
Wting
Rajhello.
I run this script, but sys's objects again to be with erros:
OWNER OBJECT_NAME
SYS ALL_WORKSPACES
SYS DBA_OUTLINES
SYS DBA_OUTLINE_HINTS
SYS DBA_WORKSPACES
SYS DBA_WORKSPACE_SESSIONS
SYS KU$_OUTLINE_VIEW
SYS LOGOFF_PROC
SYS LT
SYS LTADM
SYS LTDDL
SYS LTDTRG
SYS LTPRIV
SYS LTRIC
SYS LTUTIL
SYS LT_CTX_PKG
SYS NO_VM_CREATE
SYS NO_VM_CREATE_PROC
SYS NO_VM_DROP
SYS NO_VM_DROP_PROC
SYS OUTLN_PKG
SYS OWM_DDL_PKG
SYS OWM_MIG_PKG
SYS OWM_REPUTIL
SYS SYS_LOGOFF
SYS UD_TRIGS
SYS USER_OUTLINES
SYS USER_OUTLINE_HINTS
SYS USER_WORKSPACES
SYS WM$WORKSPACE_SESSIONS_VIEW
SYS WM_DDL_UTIL
SYS WM_INSTALLATION
MDSYS ALL_GEOMETRY_COLUMNS
MDSYS ALL_SDO_GEOM_METADATA
MDSYS ALL_SDO_INDEX_INFO
MDSYS ALL_SDO_INDEX_METADATA
MDSYS ALL_SDO_LRS_METADATA
MDSYS ALL_SDO_MAPS
MDSYS ALL_SDO_STYLES
MDSYS ALL_SDO_THEMES
MDSYS DBA_GEOMETRY_COLUMNS
MDSYS DBA_SDO_GEOM_METADATA
MDSYS DBA_SDO_INDEX_INFO
MDSYS DBA_SDO_INDEX_METADATA
MDSYS DBA_SDO_LRS_METADATA
MDSYS DBA_SDO_MAPS
MDSYS DBA_SDO_STYLES
MDSYS DBA_SDO_THEMES
MDSYS GEODETIC_SRIDS
MDSYS MD2
MDSYS SDO_CATALOG
MDSYS SDO_GEOM_TRIG_DEL1
MDSYS SDO_GEOM_TRIG_INS1
MDSYS SDO_GEOM_TRIG_UPD1
MDSYS SDO_LRS_TRIG_DEL
MDSYS SDO_LRS_TRIG_INS
MDSYS SDO_LRS_TRIG_UPD
MDSYS SDO_META
MDSYS SDO_MIGRATE
MDSYS SDO_RELATEMASK_TABLE
MDSYS SDO_RELATE_MASK
MDSYS TRANSFORM_MAP
MDSYS USER_GEOMETRY_COLUMNS
MDSYS USER_SDO_GEOM_METADATA
MDSYS USER_SDO_INDEX_INFO
MDSYS USER_SDO_INDEX_METADATA
MDSYS USER_SDO_LRS_METADATA
MDSYS USER_SDO_MAPS
MDSYS USER_SDO_STYLES
MDSYS USER_SDO_THEMES
Can I help you? thanks.
Oracle9i Enterprise Edition Release 9.2.0.2.0 - Production -
How to get all tables in oracle sql developer with MS SQLServer
Hi All,
I am using microsoft SQL server 2000. For displaying the tables and other stuff i am using oracle SQL developer tool. The problem is when i connect to sql developer with oracle database i can see all the tables in that database. But when i connect to MS SQL server database it is not showing all the tables in that database. I don't know why?.
i tried doing the samething using another tool called Aqua Data Studio , there i can able to see all the tables in microsoft SQL server 2000.
do you have any knowledge regarding this, why i am not getting all the tables in oracle sql developer when i connect to microsoft SQL server 2000.Same issue here. Haven't found the answer yet..
-
Recompile all invalid objects in live database
Hi Expers,
Just need a clarification on recompiling all invalid objects in production database when the systems is busy.
i thought of recompile all the invalid objects using utlrp.sql script in my production database since some of few synonyms were invalid after application patch script been implemented last weekeend.
we have identifed the invalid objects now, i thought to run the utlrp.sql, what will be the consequences.
Regards,
SalaiHi Hemanth,
I'd reserve utlrp.sql for upgrades, downgrades and patchsets. I do agree 101% with above point, I a not denying on that.
If you really have a large number of invalid objects, you might choose to compile a few "selected" objects every hour instead of running a single-shot "compile all invalid objects". Rare but a possible requirement.I came across such requirement during early days of career during pushing product enhancement to production and we would have get to know the things and number of objects which would go invalid as we use to carry out testing on test databases.
I agree completely utlrp.sql is suggested and should opt for.
- Pavan Kumar N -
How to compile all objects.....in Oracle10g
Hi ,
The Oracle Doc about PL/SQL Packages and Types reffering to DBMS_UTILITY and the COMPILE_SCHEMA procedure....points out :
"Compiles all procedures, functions, packages, and triggers in the specified schema"
So how to compile views and possibly other db schema object types ......????
For example issuing the command :
select object_name from user_objects where status='INVALID';
we get all invalid objects, views , packages , e.t.c.
How to compile all types of objects ... except for EM10g env......
Many thanks....
SimYou may want to use Solomon Yakobson's utility available here:
http://apex.oracle.com/pls/otn/f?p=2853:5:4266218307366505 -
How to compile all package body using sqlplus ?
hi all,
How to compile all package body using sqlplus ?
Please help.
Amydbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
CURSOR to recompile all INVALID objects
Ok, I know I'm using the atler-compile pre-defined trigger here, and I'm cool with that.
I'm creating an anonymous block to recompile all INVALID objects. I've come up with a basic CURSOR to pull all INVALID objects into the cursor, and then using the alter_compile trigger to recomipile them.
However, I can't figure out how to call them all into the trigger...One of the inputs for the alter_compile trigger is the name of the object...hwo can I get around that?
DECLARE
CURSOR compile_cur
IS
SELECT object_name, status
FROM user_objects
WHERE status='INVALID';
BEGIN
FOR rec_cur IN compile_cur LOOP
DBMS_DDL.ALTER_COMPILE('PROCEDURE', 'SYSTEM','BB_JOBTEST');
END LOOP;
END;
/You can issue a single statement to compile all triggers, procedures, packages, functions in the schema.
SQL> EXEC DBMS_UTILITY.compile_schema(schema => 'Schema_Name');
This will compile all the objects regardless of it's current status.
Shailender Mehta -
Shell script to validate all invalid objects?
Hello DBA's.
New to DBA ing and so seek your help.. I am using oracle Oracle9i Release on a Solaris box.
I need a shell script that will check all invalid objects on a DB and would validate it by running utlrp.sql. I know i can do this manually but i am asked to automate the process..
Kindly suggest where i can find a shell script or share this script with me.. it would be much appreciated.
Regards!OK, this is possible, and here is one way entirely within SQL*Plus where it will try once more to recompile invalid objects, please note that this (top one) will work only on 11g or greater, and only getting around to testing this properly now:
#!/bin/ksh
. $HOME/.profile
export ORACLE_SID=<your_SID>
sqlplus '/ as sysdba' << EOF
set serveroutput on
set pagesize 1000
@${ORACLE_HOME}/rdbms/admin/utlrp.sql
begin
for cur in (select do.owner || '.' || do.object_name module, object_type from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5)
loop
begin
execute immediate 'alter ' || cur.object_type || ' ' || cur.module || ' compile';
exception when others then continue;
end;
end loop;
end;
spool <path_and_filename_of_your_Invalid_Objects_output_file>
select do.owner || '.' || do.object_name from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5;
spool off
quit
EOF
exit $?For < 11g:
#!/bin/ksh
. $HOME/.profile
export ORACLE_SID=<your_SID>
sqlplus '/ as sysdba' << EOF
set serveroutput on
set pagesize 0
set heading off
set termout off
set feedback off
@${ORACLE_HOME}/rdbms/admin/utlrp.sql
spool /tmp/recompile.sql
begin
for cur in (select do.owner || '.' || do.object_name module, object_type from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5)
loop
dbms_output.put_line( 'alter ' || cur.object_type || ' ' || cur.module || ' compile;');
end loop;
end;
spool off
@/tmp/recompile.sql
!rm /tmp/recompile.sql
set heading on
set termout on
set pagesize 1000
spool <path_and_filename_of_your_Invalid_Objects_output_file>
select do.owner || '.' || do.object_name from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5;
spool off
quit
EOF
exit $?Edited by: SeánMacGC on Apr 29, 2009 1:12 PM -
How to activate all inactive objects for current user
Hi
How to activate all inactive objects for current user ...
... I have found a (long winded) way to do this:
- Environment / Inactive Objects
- Add to Worklist
- Display Worklist
- Select All
- Activate
this will open a dialog titled "Inactive Objects for <username>"
which has the exact functionality I need ... but I can't figure out how to get to this dialog directly - without so many intermediate steps
the SAP docs repeatedly mention the ability to activate the inactive worklist - but do not mention how
does anybody know the TCode for this dialog?
thanks
ps does the term "mass activation" apply to importing change requests rather than development activation?
Edited by: FireBean500 on Jun 4, 2010 11:07 PMNo other way. But usually it's far more simple as all objects are already in our own worklist.
I wonder why your objects are not already in your worklist, as everytime you create or maintain an object, it is added to your worklist. -
How to compile all forms in a directoy at time?
Hi friends, thank for your replies for the previous questions.
Now
How to compile all form modules located in a directory
at a time? usually what I know is opening form one by one
and compile it. But I want to compile all forms and create
executable files at a time.
Is project Builder helpfule to achive this??
thanks
madhuYes, his file is useful -- it should run on Windows XP. You need to copy the above text into a file using a standard text editor, something like Notepad. To run it, you open a Cmd.exe DOS window on your pc, change directory (CD) to the folder where your forms are, and enter the command script file name.
Here are several more links to other topics in this forum asking how to do the same thing:
Re: How To Compile 370 forms ?
Re: Creating Oracle 10g Forms and Reports Builds -
How to print a something in oracle sql developer
Hello all
Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
thank u in advance.
best1003209 wrote:
Hello all
Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
thank u in advance.
bestDBMS_OUTPUT() -
hi
how to import *.dmp file Through Oracle SQL Developer (3.2.20.09) ?
how to do it ?
thanksYou do not.
.dmp files are created from our Export and Data Pump database utilities and are proprietary files. You use the corresponding Import (or Data Pump) utility to import the data. -
Same icons for objects in SQL Developer as Data Modeler
Hello,
would it be possible to display the same icons for objects in SQL Developer as Data Modeler?
For example:
- in SQLD a session temporary table has the icon of a table with an X symbol, in Data Modeler it is just a table icon.
- in SQLD a materialized view has the icon of a table with 2 arrows, in data Modeler it is just a table icon.
JoopHi Joop,
I think you will find that in Data Modeler's Physical Model tree the same icons are used for temporary Tables and Materialized Views as in SQL Developer.
David
Maybe you are looking for
-
Job in background is getting cancelled
Hi Abapers, I have created the program to display data. It works fine when I execute it from SE38. But when I execute the same program in background, It gets cancelled. Can any one give me the reason & what can we do for this? Thanks, Hemal Shah
-
A newbie problem - Why 'ORA-00942: table or view does not exist'
Hi, I am a newbie having a very basic problem. I have just created a table by reading in a CSV file. However when I try to SELECT from it, I get an error message saying :- ORA-00942: table or view does not exist How can this be when I can see the tab
-
Freight Carrier missing while creating sales order using BAPI
Hi All, I am using BAPI BAPI_SALESORDER_CREATEFROMDAT2 to create sales order. At header level, I am passing sold-to-party,ship-to-party and Freight Carrier fields as partners. When the sales order is created it is creating partners sold-to-party,ship
-
Fund Managment - Availability Control
Hi! all experts, I have come across the following Fund Management problem : If there is NO budget data for a commitment item in this financial year, Purchase Order can be saved against that commitment item even thou Fund Checking has turned on. There
-
I'm trying to visualize how Aperture interacts with other software, particularly Photoshop and Dreamweaver. Can I open an image that's been imported into an Aperture library in Photoshop and modify it? And if I use Aperture to organize images on a we