Compile all invalid packages together + connect as sysdba only

Hi
I've installed a Ora 10.2, and imported a dump. This dump contained some users, a lot of tables and stored procs.
My first question: There is an imported user with I can connect as sysdba only. I can't connect as normal... it is problem because there is an application upper the db and I can't tell the applicataion that connect as sysdba. (it is only a sandbox for me...) What should I modify on this user to connect as normal user?
The second question: The schema (upper) contains lot of invalid packages. I have only the free Toad and I can't compile all of them only step by step... (I don't want do this step by step because there are about 300 packages...). How could I complile all of them e.g. from Sqlplus? Any other solution?
Thanks in advance!
Alex

ok, there is a user e.g. "xxxx"
I can connect with this user as sysdba only. "CONNECT xxxx/yyyy@db as sysdba". Without "as sysdba" I got "ORA-01017: invalid username/password; logon denied" So I can connect only as sysdba... but this is a simple user so I don't want to connect as sysdba...

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 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.

  • Command to compile all installed packages

    hi to all,
    exist a command to compile all packages are installed in your system ?
    thanks

    We know what you want. We also know that instead of searching for it, you want someone to give you "a tip".
    Well, I have a tip for you - don't do it. There is no appreciable benefit gained from recompiling all your packages, so save the time you would have spent on it for something more useful, and we'll leave it at that.
    Alternatively, if you really want to do it - SEARCH THE FORUM.
    Thread closed.

  • How to compile HTMLDB_SITE_ADMIN_PRIVS invalid package body?

    Hi,
    I am trying to grant HTMLDB Administrator privilege to assign the other Oracle default schemas to workspaces by executing the following procedure.
    SQL> EXEC HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA(p_schema => 'SYSTEM');
    However, the package body is corrupted. As the package body is wrapped, I cannot compile it manually.
    FLOWS_020000@PROD> ALTER PACKAGE HTMLDB_SITE_ADMIN_PRIVS COMPILE BODY;
    Warning: Package Body altered with compilation errors.
    FLOWS_020000@pPROD> SHOW ERRORS;
    Errors for PACKAGE BODY HTMLDB_SITE_ADMIN_PRIVS:
    LINE/COL ERROR
    0/0 PLS-00753: malformed or corrupted wrapped unit
    I'd greatly appreciate if you can provide any suggestion or advice for me to compile or reload this wrapped package body.
    Thanks,
    Deborah

    Hi,
    I am trying to grant HTMLDB Administrator privilege to assign the other Oracle default schemas to workspaces by executing the following procedure.
    SQL> EXEC HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA(p_schema => 'SYSTEM');
    However, the package body is corrupted. As the package body is wrapped, I cannot compile it manually.
    FLOWS_020000@PROD> ALTER PACKAGE HTMLDB_SITE_ADMIN_PRIVS COMPILE BODY;
    Warning: Package Body altered with compilation errors.
    FLOWS_020000@pPROD> SHOW ERRORS;
    Errors for PACKAGE BODY HTMLDB_SITE_ADMIN_PRIVS:
    LINE/COL ERROR
    0/0 PLS-00753: malformed or corrupted wrapped unit
    I'd greatly appreciate if you can provide any suggestion or advice for me to compile or reload this wrapped package body.
    Thanks,
    Deborah

  • Package owner - invalid packages

    Hello guys,
    I have this problem: I have two DB schemes A and B. I modified the code in both schemes. After compilation, many packages were invalidated. So I compiled all invalid packages, no compilation errors, everything ok.
    Now if I run this query in scheme A:
    SELECT *
    FROM ALL_OBJECTS
    WHERE OBJECT_TYPE IN ('PACKAGE', 'PACKAGE BODY')
    AND STATUS = 'INVALID';I get two records.
    The first one shows an invalid package where owner is scheme C - this is ok, because in scheme C is really such invalid package which has granted execute to scheme A.
    The second one shows an invalid package body, where owner is scheme A. But in scheme A, there is no such package. The "invalid" package is in fact in scheme B, it is in fact not invalid and it has no grants at all. So scheme A has no access to that package at all.
    Recompilation of this package in scheme B has no impact on the result. Why is the package marked as invalid and why is scheme A assigned as an owner???
    Now I run exactly same query in scheme B and get one record.
    One package is marked as invalid where owner is scheme B. However this package is in scheme A and scheme A is the owner of this package. Again the package is not invalid and recompilation of that package has no impact... In this case the package has granted execute to scheme B, so scheme B has the access to this package.
    Can anyone help me with this?
    Thanks, Dan

    I found the problem...
    After I did those changes to that packages, I first compiled the bodies to wrong schemes. So the bodies were created without specifications. I didn't see those packages because SQL Developer doesn't display them in such case...
    So I droped them now.

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_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

  • Package Manager to compile all packages as in Gentoo

    Hello,
    I love Arch and was looking to get my hands dirty, I there a way where I can compile all the packages that I install like in Gentoo rather than using only the pre-compiled i686 packages? I looked at ABS but was not sure how to keep track of the changes, I believe I simply cant do '-Syu' with ABS. I am just looking for something like Yaourt or Packer AUR helpers but for all the packages from core/extra/community.
    Thank You
    Gopi

    RichAustin wrote:I'm perhaps being a bit dumb here but why not just use Gentoo instead? I am actually quite serious here since I wouldn't have thought there was a major difference between the two except you compile everything in Gentoo. I can't really see why you would want to find a workaround to do what you can already do in Gentoo.
    I recently spent many days relearning the Gentoo way, did a stage3 Gentoo install alongside my Arch system, compiled a custom kernel from pf-sources, updated world, spent time reading the forum and web pages.  I won't try to replay "what I found wrong in Gentoo" except for the refrain "Gentoo is broken." That was my take. I found important things broken for long periods with no attention. People rude to each other.   I won't do that scene...
    Arch may have a smaller developer team but I've experienced a generally high level of cooperation and discipline here. I've seen complaints about the forum here being moderated -- to me that seems to work for our good.  Thanks to the moderators who keep this place civil and rational!
    There seems to be a good knowledge base here and the principle of always keeping up-to-date with the upstream releases forces the developers to constantly parse upstream information to roll a coherent stream of Arch packages. The knowledge here is as good as anywhere.  I just don't expect Arch Linux to be an integrated operating system, like Debian stable or Ubuntu.  In my experience it gets almost as much stability as Debian Testing by virtue of quickly taking in the upstream releases, which then fix the bugs that Arch never has to fix ourselves.  We trust upstream   I didn't see a clear policy in Gentoo -- some upstream releases are held back forever as Gentoo devs argue over it.
    I have found it possible to use Arch as the base for a customized, locally compiled system; it's possible to do that with abs/AUR and makepkg.  I've developed my own style.  In place of USE flags I use meld to carry forward my local changes from my local PKGBUILD to the newly released Arch PKGBUILD.  I don't modify many pkgbuilds and mostly just remember which ones I change, for example to exclude gconf from my system. (It's a KDE / Xmonad desktop with a lot of audio tools).
    I haven't found it possible or desirable to do bulk builds on Arch. I encounter quite a few pkgbuilds from abs that do not build straight away, sometimes because the package won't build against the library that is in abs at the same time, sometimes because patches are missing or checksums are incorrect:  it becomes clear that the released binary packages are not built from the daily abs update. That would be the job of a build server that takes in abs and spits out a complete set of binaries. That is the missing step that I do myself: take in abs and compile a (daily) coherent set of binaries from it (with local mods). It is not like Gentoo.  I don't think that the Arch team tries to guarantee that the their binaries can be re-built perfectly from abs, so if you try to use abs rather than pacman -S you need to understand that and accept the responsibility. It works well enough for me.

  • 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,
    Salai

    Hi 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 can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

  • 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:
    SvSig

    i 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.

  • How to compile all froms together

    hi,
    i am using oracle forms 9i & we r going to higher version 10g so we had to compile all my forms in higher version. so is it any way to compile them all together .
    Regards

    Hi
    i used this patch for this pupose before.
    1.Pls open a note pad and paste the following lines...
    ::compile_forms.bat
    cls
    Echo compiling Forms....
    for %%f IN (*.fmb) do frmcmp.exe userid=pro/123@Projects  module=%%f batch=yes
        module_type=form compile_all=yes window_state=minimize
    ECHO FINISHED COMPILING 2. change the user name , password and the database alias accordingly...
    3. Pls save the file with a name.bat then...
    4.put this file in the forms folder then...
    5.Double click on that batch it will compile all the forms in that folder consequently...
    Hope this helps...
    Regards,
    Abdetu...

  • Connecting as sysdba returns ORA-01017: invalid username/password

    SQL Developer on my Win7 x64 Enterprise machine with Oracle 11gR2 Express was working fine until I tried to install the ODAC connectors so I could use Oracle as a data source for C# and VB in Visual Studio 2010.
    The connection properties are:
    Connection name "/ as sysdba"
    Role "default"
    Connection Type "basic"
    OS Authentication checked
    Hostname "localhost"
    Port 1521
    SID "orcl"
    These are the same as when SQL Developer was working.
    If I try to log on to SQL*Plus at the user-name prompt with "/ as sysdba", I get "insufficient privileges".
    Where and what do I check to fix this?
    Thanks.

    >
    Where would I check for DOMAIN/USER entries?
    select username, authentication_type from dba_users;With the prefix, there should be a database user e.g. "OPS$MYDOM\MYUSER" with external identification.
    But with Connection type Basic, I assume you would not be able to connect anyway.
    Try type TNS to see if that works or changes anything. (That is, if corresponding db user exists for OS authentication.)
    Do you have a requirement to use OS authentication? Could you instead use a database user with a password, i.e. uncheck OS Authentication in SQL Developer?
    The connections in SQL Developer are the Auto-Generated Local Connections:
    / as sysdbaI've found a few quirks in SQL Developer 3.0.04 with the auto-generated connection named "/ as sysdba". But right now I don't see that its relevant to this case.
    Just create your own connection instead. If you need sysdba administrative connection, change Role in connection properties.
    >
    By the way, the password for SYSMAN will expire in 5 days. How do I update the password?You should separate questions in separate threads and related forums, but lookup the ALTER USER command in the SQL Reference book.
    Edited by: orafad on Dec 4, 2011 11:47 PM
    Edit:
    parenthesis about os auth part
    Edited by: orafad on Dec 6, 2011 1:29 AM

  • Package load Failed! Invalid package Title, manifest file cannot be found

    Greetings. I am new to UPK and am seeking guidance on an upgrade to 11.1.
    A little background on what we are trying to do:
    We have two machines:
    Windows 2003 machine in domain 'X' | UPK 11.0.0.1.
    Windows 2008 R2 virtual machine in domain 'Y' | UPK 11.0 on the new machine first, install the 11.0.0.1 patch, and then upgrade to 11.1.
    We are using the same database as the old machine. Developer Server is Standard Authentication, Knowledge Center is Windows authentication.
    ==========================================================================================
    So far we have installed 11.1 with the respective database upgrades, but are lost as to how to migrate the old Content Root data. We have copied all the content to the new Content Root, added it to IIS like the old machine, and verified that the UPK database Content Root path is correct and working.
    For the rest of the post, I am remoted into the server from my local workstation, and then using IE to access KCenter on the server's FQDN, not via localhost.
    Since I am green, so I presumed that I would need to import the titles under Manager in KCenter. I zipped each content folder individually (they are named "1", "9", etc), and then attempted to import each zip file.
    NOTE: At this stage sometimes we are prompted to authenticate again. When it does, sometimes the credentials that we know work, get rejected and we are prompted again. This will repeat until we get a 401 and we have to start over. We have verified that the Windows account currently in session with the site is valid and has administrator authority within KC.
    NOTE2: On the first few tries, .NET complained that maxRequestLength was not large enough. I had our servers team increase it on the actual server in order for us to proceed.
    Provided we don't have to authenticate again, or that it actually accepts our credentials, we get to the 30% mark and then receive the error: *"Package load Failed! Invalid package Title, manifest file cannot be found"*
    Does anyone have any wisdom for this process? The title importation section in the deployment manual is not helping, and the administrator from whom I am taking over this software has not had to deal with this before.
    Thank you,
    Ian
    Edited by: 986290 on Feb 5, 2013 10:21 AM

    Hi Marc, thanks for the post,
    I have gone through an extensive troubleshooting process with Oracle, including their development team, in order to fully complete our project setup. As a supplemental bit of information, we also were having connection errors when attempting to publish directly to the knowledge center.
    As far as the context of this post, here is the solution in brief:
    1) Verify that the package being imported was published from the same version of the Developer Client as the Knowledge Center installation's.
    2) Check for database consistency issues. In our case we were using a database that was built in another domain. After numerous attempts with Oracle support on the line to determine the inconsistency, it was decided to completely reinstall and build a new database from scratch in the new domain.
    3) Check application pool identities and access (while we had some inconsistencies here, correcting them did not change the behavior of the import/publish errors)
    In review, a lot of what we had setup was correct. Our primary point of failure, we feel, was using the old database. Technically this should not have been a problem, but Murphy likes to get his way sometimes.
    Cheers,
    Ian

  • 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....
    Sim

    You may want to use Solomon Yakobson's utility available here:
    http://apex.oracle.com/pls/otn/f?p=2853:5:4266218307366505

Maybe you are looking for

  • Is there some way to make the iPad Camera Connection Kit work on the iPod touch?

    I bought the Camera Connection Kit because a tech said it would work with my iPod Touch, but I get the message that the iPod does not support that connection. I would really like itt to work because I have used an older iPod to back up photos while o

  • Cannot create database in oracle 9i

    i want to create a database manually in oracle 9i.I have sysdba privileges but when i use create databse command ------>>>> CREATE DATABASE mynewdb USER SYS IDENTIFIED BY pz6r58 USER SYSTEM IDENTIFIED BY y1tz5p LOGFILE GROUP 1 ('c:/oracle/oradata/myn

  • Should I use "MANAGESECONDARYTRUNCATIONPOINT " option?

    Hi all, I have installed OGG (Oracle GoldenGate) on SQL Server 2008 R2 hosted on Windows 2008 R2. I found that log file grows quickly and cannot be released after transaction log backup. The spaces issues almost crash the database, I just execute the

  • Issue with IE images after FP Update

    Good afternoon and thanks for reading. I have a few machines (so far) which are having issues displaying some images through Internet Explorer following the FP update.  The images show up as a white box with a red "X". If the user account(s) have Adm

  • 1 Profit Center to Many Company Codes

    Hi, Currently we have 1 Company Code pointing to multiple Profit Centers. We are trying to re-organize the structure to have 1 Profit Center pointing to multiple company codes. Need input to analyze what areas or processes (standard) would be affecte