Organizing object in 10g

In Jdeveloper, there is "project" concept to group all related files relating to Order subsystem, for instance. So, is it a good best practice to create all required EO or VO under this Order subsystem project or we should create all EO/VO under Model and refering them with AppModule.
Can a project refer EO/VO created in different project. It seems that I cannot do that with New AppModule wizard.
Thanks.
Elton.

thanks for ur response
But I am trying to make use of some complicated reports already available in Reports 2.5 already developed in character mode. Converting into PDF requires redesigning the entire reports.
So is there any configuration / settings so that I can use the character mode reports directly and view the output on screen. ( Now I am doing round about way of saving as file and displaying the file back through internet explorer)
Thanks in advance

Similar Messages

  • OracleAS Java Object Cache 10g

    OracleAS Java Object Cache 10g Documentation link on the top right of the page is broken and leads to a 404 page not found.

    Hi,
    apologies for the delay responding.
    Can you please confirm if link is part of the OTN documentation pages at: http://otn.oracle.com/documentation/index.html
    Regards,
    Les

  • What is the alternate for OLE object in 10g

    Hi all
    I am migrating forms 6i to 10g...
    They are some ole objects in the forms.
    while migrating using form migration tool.... it is giving a message that OLE built in's are obsolete...
    What i need to do in 10g to replace OLE's functionality????
    Please help in this???
    Thanks

    Hello,
    <p>The Webutil library has a OLE2 client sode equivalent</p>
    Francois

  • How to find who has deleted the objects in 10g

    All,
    On 10th feb i have created a sequence (M_KEY_SEQ) as per my user request.
    But i could not find the sequence in the database now, Could any one please tell me
    how to find out ..who has dropped the sequence, (looks like some drop actions has been carried out from my user side, we suspect those drop jobs might dropped this sequence but we dont have correct information about who has dropped it..so we cant tell them that you have dropped).
    Any suggestions please...
    No auditing enabled in our database.

    If you dont mind ..could you please explain me how to use DBMS_LOGMINER to find out the deleted sequences

  • Moving / organizing objects in finder window

    Hey everyone -
    I'm having problems trying to organize my finder windows. I like to manually move around my files, folders, and applications, but when i drop them into their new location in the finder they overlap ontop of whatever is there instead of pushing it aside. Is there a way to insert it inbetween whatever is there instead of droping it ontop? its really annoying!
    thanks in advance

    Hello stilarose:
    If you have "lots" of things on the desktop, they will begin to drop on top of other icons. If this is not your case, then:
    You should be able to get the look you wish by clicking on "view" when you are in the finder and selecting your arrange option. If that gives you problems, trash the finder preference file (com.apple.finder.plist), restart, and try the view option again.
    Barry

  • Query  Regarding Updation/Migration of ODI 10g To ODI 11g.

    Hi All,
    Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
    We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
    1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.
    2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.
    3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?
    ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
    Thanks
    Edited by: neeraj_singh on May 15, 2013 9:58 PM

    neeraj_singh wrote:
    Hi All,
    Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
    We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
    1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.You can install ODI 11.1.1.5 but you have to upgrade your repositories using upgrade assistant
    refer http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/tasklist.htm#CIHGIDFG
    2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.No need to create new repositories. You just upgrade them. But you need to takecare of certain things as you are a 10g user. Refer below link for the prerequisite
    http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/prevusers.htm
    3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?Not clear about the question ?
    >
    ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
    Thanks
    Edited by: neeraj_singh on May 15, 2013 9:58 PM

  • Converting Forms 6i to 10g on Linux

    I hope this will help ...
    REQUIREMENTS ANALYSIS
    The Comet6i application is be migrated to 10g in two phases.
    •     Phase-I : Migrated from Comet6i Application to 10g on W2K Server.
    •     Phase-II : Made the Comet10g Application Linux Compatible.
    PHASE I
    In the Phase-I, the COMET6i application is migrated to 10g on Win2K Server. The following tasks are to be carried out during this phase.
    1.     Source Code Verification
    2.     Upgrading of Comet Application objects to 10g
    3.     Migration of 10g specific forms to be done individually
    4.     Check for the completeness of the process.
    Pre-requisites
    i.     Developer/200010g IDS is installed on all COMET Workstations.
    ii.     Change the Windows Registry value of TNS_Admin = M:\OraXP\NET80\admin
    Step 1: Source Code Verification
    Checked out the COMET6i version3.5 of the application source code from Harvest comet6i repository. Excluded any unnecessary files from the application. Created an excel/spreadsheet that contains all of the files sorted by category (forms, libraries, menus, graphics, utilities and reports).
    Step 2: Upgraded Application
    I.     Did the code changes in 6i forms
    1)     RUN_PRODUCT: Every occurrence of run_product in forms has been replaced with CALL_REPORT procedure which is in the attached Library Comfun.pll.
    2)     V$SESSION: Wherever there is a query for selecting OSUSER from V$session has been replaced with :GLOBAL.ntuser.
    3)     WIN_API: WIN_API.get_windows_username replaced with :GLOBAL.ntuser.
    II.     Upgraded the forms from 6i to 10g in batch mode.
    Upgrading of COMET Application is done in the following sequence:
    1)     Library files (.pll/plx): Opened each library file in iDS and compiled it. This created the 10g version of each library.
    2)     Form files (.fmb/.fmx): Started with form files that do not have references (List : MST021, MST027, DEFAULT, MODEL, MST046). Opened these forms individually in the iDS and generated it.
    3)     Migrated all the remaining forms to 10g in batch mode using Oracle utility frmcmp.exe .
    Step 4: Checked for the completeness.
    1)     UNIT TESTING: Unit testing was done after complete migration of the forms 6i to forms10g on Win2K Server and following problems were fixed.
    2)     CANVAS & FIELDS WIDTH: When we upgraded to 10g forms, some of the fields’ width was changed and canvases were overlapping to each other. This was due to non-existence of the parent property classes. We ensured that every master form is present in the directory before up gradation.
    3)     FILE NAME EXTENSION: We have renamed every form / report / icons / libraries to upper case and extension of the files in lower case for uniformity across modules. (eg: STK001.fmb, STK01.rdf, COMFUN.pll)
    PHASE II
    In the Phase-II, the COMET10g application is made Linux Compatible.
    Issues
    Following issues are identified for carrying out this task.
    1.     Case sensitivity of Linux
    2.     OS Related Function Calls and Built-Ins
    3.     Batch Commands
    4.     HOST Commands
    Solutions
    The possible solution to the above mentioned issues are:
    1.     Case Sensitivity : It is suggested that all forms, reports as well as libraries to use UPPER CASE to eliminate this issue. This will provide uniformity in coding.
    2.     OS Related Function Calls: OS routine calls such as WIN_API routines has to be changed to corresponding Linux function calls
    3.     Batch Commands : Batch commands used in the forms has to be changed to Linux shell scripts.
    4.     HOST Commands : These commands are to be changed to corresponding Linux commands.
    Steps
    1.     Generated XML for 10g forms in batch mode.
    1)     frmf2xml.bat: Using Oracle 10g utility frmf2xml.bat; all 10g forms were converted into XML format for editing purpose.
    2.     Utility developed to address the case-sensitivity issue of linux.
    1)     A basic utility is developed to change the following keywords in the XML file.
    2)     FORM Calling Routines : All the form-names were changed to upper-case in CALL_FORM, NEW_FORM & OPEN_FORM built-ins.
    3)     PROPERTY VALUES CHANGES: Values of LibraryLocation, ParentModule, ParentFileName, and IconFilename are changed to upper case to ensure compatibility with Linux OS.
    3.     Fixed the basic problems in the XML file itself using the utility.
    4.     Converted the XML back to fmb.
    1)     frmxml2f.bat: Oracle’s frmxml2f.bat utility is used to convert xml files back to FMB format. All master forms are done individually and rest all files in batch mode.
    5.     Generated the fmx on Linux in batch mode.
    1)     Created a directory structure in Linux for Comet Development.
    2)     WINSCP Utility: Copied all fmb files to Linux server using WINSCP utility.
    3)     frmcmp_batch.sh: Oracle’s frmcmp_batch.sh shell script used to compile all the fmb to generate fmx i.e. runtime in Linux environment.
    6.     Icon files are bundled to a jar file.
    1)     icons jar file: Icon files were bundled to a jar file with the support of DBA.
    2)     UI_ICON_Extension: Utility search to change the registry to show icons / bmp / gif files as icons
    7.     Copied the reports to Linux server.
    1)     rwconverter Utility: All COMET 6i reports are upgraded to 10g using Oracle utility rwconverter.exe in batch mode, and then copied to Linux Server using WINSCP facility.
    8.     Tested the application for functionality.
    1)     UNIT TESTING: Unit testing was done on each form for testing the functionality and data flow by COMET TEAM. The following points are to be taken care, before going to live:

    i think you better hire a professional consultant for this kind of help, seeing that the requirements are a bit complicated.

  • Migrating portal from 10g to 11g

    Hi,
    We are in the process of upgrading oracle mid tier from 10gAS to OFMW 11g and also migrating it from Solaris to Linux.
    With regard the portal migration from OAS 10g to OFMW 11g
    1) Is it possible to migrate portal objects from 10g (solaris) to a new install of OFMW portal 11g(linux) directly OR do we have to upgrade the existing OAS 10g to OFMW portal 11g (on Solaris) and then migrate the portal objects to OFMW Portal 11g (on Linux)
    I am new to portal migration. Any suggestions and additional details would be appreciated.
    Thanks
    RB

    Migration + upgrade in one shot is do-able, because upgrade will require a sequence of processes but they will be mostly based on repository upgrade, and hence will be transparent to the OS you are using.
    However, in practice, the standard rule-of-thumb is that you avoid dealing with multiple layers of complications in a single shot. That means, you break complications in such steps where you could recognize the sources of any later errors/problems you encounter.
    hope that helps!
    AMN

  • Oracle 10G Performance Tuning

    A colleague of mine supplied me with a tuning script to help in my performance analysis of a 10.2.0.1 Oracle database. The script is called:
    responsetimebreakdown.sql
    Apparently this was designed for 8i as it cannot find the sys.x_$ksles (session events) view or table in my Oracle 10.2.0.1 database. I receive:
    ORA-00942: table or view does not exist
    Any one know the equivalent of this object in 10G or has access to this script designed for use against a 10.2.0.1 Oracle database?
    Thanks.

    I don't know what your script does, but here's the table you're looking for. <br>
    SQL> select name from v$fixed_table where name like '%KSLES%';
    <br>
    <br>
    NAME<br>
    ------------------------------<br>
    X$KSLES<br><br>
    If you really want to tune, you should also try<br>
    SQL> @$ORACLE_HOME/rdbms/admin/awrrpt
    <br><br>
    Dave <br>
    Lehr.servehttp.com
    Message was edited by:
    DaveLehr

  • Migrating 6i forms / reports to 10g (Urgent)

    Hi,
    We have 6i versions of forms and reports running in a client/server environment, and are planning to upgrade them to 10g. I need to give an estimate to my manager on the effort involved in migrating the existing objects to 10g.
    To provide an estimate:
    1. Is installing Oracle Forms 10g (10.1.2) sufficient to convert and test my existing forms?
    2. Is installing Oracle Reports 10g (10.1.2) sufficient to convert and test my existing reports?
    Or, do I also need Oracle Application Server 10g installed to go with the above?
    My intention is to initially acquire the Forms/Reports 10g tools to see how much work is involved (without having Oracle AS in place). Is this possible?
    Any help is very much appreciated.
    Regards,
    Praveen

    hy,
    1. Is installing Oracle Forms 10g (10.1.2) sufficient to convert and test my existing forms?
    yes
    2. Is installing Oracle Reports 10g (10.1.2) sufficient to convert and test my existing reports?
    it's enough compiler on 10.1.2
    Or, do I also need Oracle Application Server 10g installed to go with the above?
    you don't need oas, or from oas 10, it's need only forms and report server,no infrastruc
    My intention is to initially acquire the Forms/Reports 10g tools to see how much work is involved (without having Oracle AS in place). Is this possible?
    yes,as above

  • Moved dehydration Store to Oracle 10g DB

    Hi... I'd like to make sure that this error in starting up the BPEL PM ( version 2.2 ) is OK after moving the dehydration store to an Oracle 10g database. I loaded the LoanFlow Demo and it seems to run fine.
    Thanks, Matt
    ###Details###
    ORABPEL Schema objects in 10g Database
    TABLE_NAME TABLE_TYPE
    ADMIN_LIST_CI VIEW
    ADMIN_LIST_CX VIEW
    ADMIN_LIST_WI VIEW
    AUDIT_DETAILS TABLE
    AUDIT_TRAIL TABLE
    CI_ID_RANGE TABLE
    CI_INDEXES TABLE
    CUBE_INSTANCE TABLE
    CUBE_SCOPE TABLE
    DBG_WI VIEW
    DLV_MESSAGE TABLE
    DLV_MESSAGE_BIN TABLE
    DLV_SUBSCRIPTION TABLE
    DOCUMENT TABLE
    DOMAIN TABLE
    INVOKE_MESSAGE TABLE
    INVOKE_MESSAGE_BIN TABLE
    LOAN_CUSTOMER TABLE
    NAMESPACE TABLE
    PROCESS_REVISION TABLE
    SCOPE_ACTIVATION TABLE
    SYNC_STORE TABLE
    SYNC_TRAIL TABLE
    TASK TABLE
    TX_INFERIOR TABLE
    TX_MESSAGE TABLE
    TX_SUPERIOR TABLE
    VERSION TABLE
    VERSION_SERVER TABLE
    WI_EXCEPTION TABLE
    WORK_ITEM TABLE
    WORK_LIST VIEW
    Database Connections after BPEL PM is started....
    USERNAME
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    ORABPEL
    20 rows selected.
    Portion of BPEL PM startup output....
    05/02/17 16:02:23 Building Application TagLibrary Persistent Cache for owf
    05/02/17 16:02:23 Done getting application current resources
    05/02/17 16:02:23 Done initializing cache
    05/02/17 16:02:23 Refreshing application cache - from existing cache ...
    05/02/17 16:02:24 Found 0 listeners
    05/02/17 16:02:24 java.sql.SQLException: ORA-00942: table or view does not exist
    05/02/17 16:02:24 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
    05/02/17 16:02:24 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
    05/02/17 16:02:24 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
    05/02/17 16:02:24 at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
    05/02/17 16:02:24 at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
    05/02/17 16:02:24 at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:661)
    05/02/17 16:02:24 at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:951)
    05/02/17 16:02:24 at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:693)
    05/02/17 16:02:24 at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1057)
    05/02/17 16:02:24 at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)
    05/02/17 16:02:24 at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2942)
    05/02/17 16:02:24 at oracle.tip.pc.services.owf.BridgeDBWrapper.getOWFProcesses(BridgeDBWrapper.java:159)
    05/02/17 16:02:24 at oracle.tip.pc.services.owf.callback.OWFMonitorServlet.init(OWFMonitorServlet.java:46)
    05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2141)
    05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4582)
    05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4676)
    05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:820)
    05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:542)
    05/02/17 16:02:24 at com.evermind.server.Application.getHttpApplication(Application.java:889)
    05/02/17 16:02:24 at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:690)
    05/02/17 16:02:24 at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:586)
    05/02/17 16:02:24 at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
    05/02/17 16:02:24 at com.evermind.server.http.HttpServer.setSites(HttpServer.java:261)
    05/02/17 16:02:24 at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:162)
    05/02/17 16:02:24 at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2385)
    05/02/17 16:02:24 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1542)
    05/02/17 16:02:24 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
    05/02/17 16:02:24 at java.lang.Thread.run(Thread.java:534)
    05/02/17 16:02:24 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
    initialized
    <ServerManager::loadProcesses> Loading processes for all domains
    <2005-02-17 16:02:25,512> <INFO> <default.collaxa.cube.engine> <CubeEngine::load
    AllProcesses>
    Loading processes for BPEL domain "default" ...
    ...

    Matt, it seems like you are running the JDev Based Beta with the new workflow extensions. You should get the Technotes from the person that you supplied you the beta version.
    Anyway, to install the additional tables, please run
    pcttask.sql, pcowf.sql, catpcreports.sql using sql*plus into the right schema. You will find these files in <home>\integration\bpm\runtime\admin\sql
    Sandor

  • Jdev aborts when removing attribute from entity object

    Hi,
    after synchronizing my data model with my database scheme, jdeveloper 10g gave me the correct message, that there had been 1 attribute left in an entity object, that does no longer exist in the database.
    When removing the attribute from the entity object, jdev 10g aborts (first click: nothing happens, second click: abort).
    regards
    Klaus

    Thanks for bug report. This bug has been logged (3151203) and has been fixed in more recent builds.
    Ray

  • Problem while Migrating user data from 10g to 11gR2

    Hi experts,
    I am trying to Migrate users data(including password and security questions) from 10g to 11gR2 what approach i have followed is..
    From 10g using API i retrieved users data including password and security questions and i stored all information into hashmap. This is one java program.
    And then i am trying to create that user in 11gR2 using API which i retrieved from 10g . From this 11g program i am creating object of 10g and i am using that hash map to retrieve user information.But i am not getting connection to 10g , it is throwing exception like unknown application server.Both sides i used API only as it is recommended to use API instead of JDBC connection.
    Help me in this regard ASAP and suggest if there is any other approach to Migrate users data.
    Thanks in Advance

    By using Trusted Recon, you won't be able to Fetch Password as it is.
    Since your goal is to fetch passwords too, please follow another approach.
    You won't be able to get connection to both 10g and 11g simultaneously in the same program.
    So, break this task in 2 phases. First connect with 10g, fetch user data in CSV format and then connect with 11G and read this CSV to create users.
    Once users are created properly, use APIs for creating challenge questions and answers.
    I think, you are getting exception like unknown application server because you are trying to connect to both 10g and 11g environments simultaneously.
    Follow the following steps:-
    (1) By using 10G APIsyou can't obtain password of user profile in decrypted form. So, Fetch password by using tcDataProvider. It will give you plain text password.
    (2) In a custom scheduler written in 10g, retrieve this data in CSV. After all you can't store this info in
    String query = "SELECT USR_LOGIN, USR_PASSWORD, USR_FIRST_NAME, USR_LAST_NAME FROM USR";//Add all fields which you want to retrieve from your 10G
    (3) Use this query, tcDataProvider, tcDataSet and Java I/O (or any other CSV Third Party tool like the ones obtained in csv.jar in XL_HOME/ext folder) fetch this info in a CSV.
    (4) Once CSV is generated, 10g machine is no more needed. Connect with 11g using 11g APIs. Write your custom 11G scheduler in order to read this CSV and use 11g APIs and create users for each record.
    (5) Once user records are created in 11g, the difficult part is done. Transfer the Security questions too by using this CSV technique.
    Please share results with us.

  • Need shell Script for Invalid object

    Hi All,
    Can anyone post me a script for checking the invalid objects in 10g/11g database.
    The should should check for invalid objects,recompile and sent the email .

    I could think fo something like below(And applicable to multiple SID's running on the server) and i tested it it works(bash shell script)
    Assumptions:
    You have environmental file to set ORACLE_HOME ORACLE_SID
    say in this example
    /oracle/env
    ls -ltr
    env_ORCL.sh
    env_TEST.sh
    env_HR.sh
    You also have uuencode rpm installed to use along with mailx command(or else get it installed not big deal). uuencode is required
    to send as mail attachment
    1)I have kept SID list in file (/oracle/INVALID directory for eg)
    cat SID.lst
    ORCL
    TEST
    HR
    If you have lot of SID's you can populate the file using ( ps -ef|grep -i pmon | grep -v grep | awk '{print$9}' | sed 's/ora_pmon_//g' > SID.lst)
    2) Here are the list of SQL's(/oracle/INVALID directory
    cat invalid_pre.sql (For listing invalid objects per instance)
    set echo off
    set heading off
    set time off
    set timing off
    spool invalid.log append
    break on instance_name
    select instance_name , a.*
    from (select owner,count(*) from dba_objects where status='INVALID' group by owner) a, v$instance;
    spool off
    exit;
    cat invalid_compile.sql--to recompile invalid objects
    set echo off
    set termout off
    set feedback off
    @?/rdbms/admin/utlrp.sql 4; (Note you change degree 4 or 8 accordingly)
    exit;
    cat invalid_post.sql--to list post recompilation
    set echo off
    set heading off
    set time off
    set timing off
    spool invalid_post.log append
    break on instance_name
    select instance_name , a.*
    from (select owner,count(*) from dba_objects where status='INVALID' group by owner) a, v$instance;
    spool off
    exit;
    3)here is the shell script
    cat invalid.sh
    for i in `cat SID11g.lst`
    do
    cd /oracle/env/
    source env_$i.sh
    cd /oracle/INVALID
    sqlplus "/as sysdba" @invalid_pre.sql
    sqlplus "/as sysdba" @invalid_compile.sql
    sqlplus "/as sysdba" @invalid_post.sql
    done
    uuencode invalid.log invalid.log | mailx -s "Invalid" <your mail id>
    uuencode invalid_post.log invalid_post.log | mailx -s "Invalid" <your mail id>
    4) Finally run the shell script, hopefully you should receive email :-)
    I have tested it on bash
    ./invalid.sh
    Once tested you can schedule it in cron
    Edited by: vreddy on Jul 19, 2012 9:57 AM

  • 11g and Exp - A bugging bug.

    Before export (exp) i used to to run this script to recompile all the user objects on 10g.
    create or replace
    PROCEDURE DBA_Recompile
         p_PInstance_ID               IN NUMBER --     DEFAULT NULL
    * Title:      Recompile all User_Objects
    * Description:
    *     * Recompile materialized views too
    AS
         --     Logistice
         v_Message                              VARCHAR2(2000) := ' ';
         v_Result                              NUMBER := 1;     --      0=failure
         v_Buffer                              VARCHAR2(2000);
         v_Line                              VARCHAR(100);
         v_PrintInfo                         CHAR(1) := 'N';     --     Diagnostic
         CURSOR     Cur_Invalids IS
              SELECT     object_id, object_name, object_type
              FROM     user_objects
              WHERE     status <> 'VALID'
                AND     object_type IN ('VIEW', 'PACKAGE', 'PACKAGE BODY', 'FUNCTION',
                                            'MATERIALIZED VIEW', -- arhipac: teo_sarca
                                            'PROCEDURE', 'TRIGGER', 'JAVA CLASS')
              ORDER BY object_type, object_name;
         CURSOR     Cur_Valids (p_id NUMBER) IS
              SELECT     'FOUND'
              FROM     user_objects
              WHERE     status = 'VALID'
                AND     object_id = p_id;
         --  failed compile
         TYPE invalid_tab IS TABLE OF Cur_Invalids%ROWTYPE INDEX BY BINARY_INTEGER;
         invalid_tab_rec invalid_tab;
         count_compiled     PLS_INTEGER;
         valid_text     VARCHAR2(5);
         exec_cursor     PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
         sql_statement     VARCHAR2(200);
         count_object     PLS_INTEGER := 0;
         v_err          BINARY_INTEGER;
    BEGIN
         LOOP
              count_compiled := 0;
              FOR ci IN Cur_Invalids LOOP
                   --  not unsuccessfuly compiled yet
                   IF NOT invalid_tab_rec.EXISTS(ci.object_id) THEN
                        IF (ci.object_type = 'JAVA CLASS') THEN
                             sql_statement := 'ALTER JAVA CLASS "' || ci.object_name || '" RESOLVE';
                        ELSIF (ci.object_type = 'PACKAGE BODY') THEN
                             sql_statement := 'ALTER PACKAGE ' || ci.object_name || ' COMPILE BODY';
                        ELSE
                             sql_statement := 'ALTER ' || ci.object_type || ' ' || ci.object_name || ' COMPILE';
                        END IF;
                        --  compile
                        BEGIN
                             count_object := count_object + 1;
                             DBMS_SQL.PARSE(exec_cursor, sql_statement, DBMS_SQL.NATIVE);
                        EXCEPTION
                             WHEN OTHERS THEN
                                  NULL;
                        END;
                        OPEN Cur_Valids (ci.object_ID);
                        FETCH Cur_Valids INTO valid_text;
                        IF Cur_Valids%ROWCOUNT > 0 THEN
                             IF (v_PrintInfo = 'Y') THEN
                                  DBMS_OUTPUT.PUT_LINE('OK: ' || ci.object_type || ' ' || ci.object_name);
                             END IF;
                             count_compiled := count_compiled + 1;
                             CLOSE Cur_Valids;
                             EXIT;
                        ELSE
                             IF (LENGTH(v_Message) < 1950) THEN
                                  v_Message := v_Message || ci.object_name || ' ';
                             END IF;
                             IF (v_PrintInfo = 'Y') THEN
                                  DBMS_OUTPUT.PUT_LINE('Error: ' || ci.object_type || ' ' || ci.object_name);
                             END IF;
                             invalid_tab_rec(ci.object_id).object_name := ci.object_name;
                             invalid_tab_rec(ci.object_id).object_type := ci.object_type;
                             CLOSE Cur_Valids;
                        END IF;
                   END IF; -- not unsuccessfuly compiled yet
              END LOOP;     -- Cur_Invalids
              --  any other to be compiled
              IF count_compiled = 0 THEN
                   EXIT;
              END IF;
         END LOOP;     -- outer loop
         DBMS_SQL.CLOSE_CURSOR(exec_cursor);
         --     Print Message
         IF (LENGTH(v_Message) = 1) THEN
              v_Message := 'All valid';
              DBMS_OUTPUT.PUT_LINE(v_Message);
         ELSIF (LENGTH(v_Message) > 80) THEN
              v_Buffer := v_Message;
              DBMS_OUTPUT.PUT_LINE('>');
              WHILE (LENGTH(v_Buffer) > 0) LOOP
                   v_Line := SUBSTR(v_Buffer, 1, 80);
                   DBMS_OUTPUT.PUT_LINE(v_Line);
                   v_Buffer := SUBSTR(v_Buffer, 81);
              END LOOP;
              DBMS_OUTPUT.PUT_LINE('<');
              v_Result := 0;
              DBMS_OUTPUT.PUT_LINE('ERROR');
         ELSE
              DBMS_OUTPUT.PUT_LINE('>' || v_Message || '<');
              v_Result := 0;
              DBMS_OUTPUT.PUT_LINE('ERROR');
         END IF;
    <<FINISH_PROCESS>>
         IF (p_PInstance_ID IS NOT NULL) THEN
              --  Update AD_PInstance
              UPDATE     AD_PInstance
              SET Updated = SysDate,
                   IsProcessing = 'N',
                   Result = v_Result,               -- 1=success
                   ErrorMsg = v_Message
              WHERE     AD_PInstance_ID=p_PInstance_ID;
         END IF;
         COMMIT;
         RETURN;
    EXCEPTION
         WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE(SQLERRM);
              IF DBMS_SQL.IS_OPEN(exec_cursor) THEN
                   DBMS_SQL.CLOSE_CURSOR(exec_cursor);
              END IF;
              IF Cur_Valids%ISOPEN THEN
                   CLOSE Cur_Valids;
              END IF;
    END DBA_Recompile;• Q1: On my 11gR2, after running this script, the database becomes unstable for backup. And i cannot take backup anymore using 'exp' command. following error occurs (last few lines).
    . exporting synonyms
    . exporting views
    EXP-00056: ORACLE error 1455 encountered
    ORA-01455: converting column overflows integer datatype
    EXP-00000: Export terminated unsuccessfully
    adding: ExpDat.dmp(in = 488030208) (out= 26855576)(deflated 94%)
    adding: ExpDat.log(in = 111665) (out= 6645)(deflated 94%)the message looks like some old days bug: EXP-00056: ORACLE error 1455 encountered
    • Q2: can i skip this script to run, before the backup using 'exp'
    w\

    Are you using the 10g client to perform the export with?
    If so, then this is a recognised bug:
    View the following metalink document for more info
    Exporting Schema In 11.2 Database With 10g Client Gives Ora-01455 [ID 1083330.1]

Maybe you are looking for