Get the checksum of the database objects

Hi, is it possible to get the hash of the database objects (called features) using PL SQL?

Constraints I manually copy certain functions I write dev to UAT, but want to make sure to have all the objects schema are identical (have the same checksum).

See you soon.

With the help of Oracle XE 11 G on Linux.

You can use rawtohex (dbms_crypto.hash (dbms_metadata.get_ddl ('PACKAGE', , ), DBMS_CRYPTO.hash_md5)), for example:

select rawtohex(dbms_crypto.hash(dbms_metadata.get_ddl('PACKAGE', 'MY_PKG', 'MY_USER'), 2)) hashval
from dual;

Tags: Database

Similar Questions

  • How do I get the DB objects accessible by a Page APEX 5

    Hello

    Is it possible to know the DB objects like table, packaging used in a page. Example: A page can use the table for reports, package, functions for dynamic actions.

    I am able to find the APEX_APPLICATION_PAGE_PROC table, which gives information on the process on a particular page and also complete PLSQL used in the process. If you are looking for something similar but provides information for all dynamic actions, reports etc..

    Thank you

    Ankit

    User13090770-Oracle wrote:

    Please update your forum profile with a recognizable username instead of "User13090770": Video tutorial how to change username available

    Is it possible to know the DB objects like table, packaging used in a page. Example: A page can use the table for reports, package, functions for dynamic actions.

    I am able to find the APEX_APPLICATION_PAGE_PROC table, which gives information on the process on a particular page and also complete PLSQL used in the process. If you are looking for something similar but provides information for all dynamic actions, reports etc..

    Use the database object dependencies report, or that you found, create your own tool custom -based text searches in the views of the APEX.

  • How to get the remote object mode protect?

    Hi all

    I have a question for a remote object mode protect in drive x. need your help, thank you very much ~

    Background: I have a plugin running on drive x protect mode. Without a strong name, plug-in will load my DLL (manufactured by c#). Then, in this DLL, it will use

    _3rdProxy p (_3rdProxy) Activator.GetObject = (typeof (_3rdProxy), url); for a remote object of the 3rd application (made by c# also). Then I can make communication between my app plug-in and 3rd.

    But I got an error "Access denied", said. Anyone know how to get the remote object in this case? Thank you very much ~

    Since you have a reader integration key, you are advised to use our methods of support for the official Developer.

  • Get the last object below.

    I want to get the latest object(z-order) below a selected just as the 'last object below' photo menu under-> Select object.

    How can I go about it. The IZOrderSelectionSuite interface can be used to do this, if yes then how use since I have just the UIDRef of a framework.

    Jasmine

    Hi Jasmine,.

    You can use int32 zorder_index = iHierarchySpread-> GetChildIndex (iHierarchySpline) to get the index order of the spline

    and iHierarchySpread-> GetChildUID (zorder_index - 1) to get the spline immediately below, if I remember right. Otherwise, use + 1.

    Best,

    Peter

  • Get the database name

    Hello

    I use JDev 11.1.1.4.0.

    A requirement for me is to send the notification by e-mail to a group of users. While composing a message, precede the object with the name of the database. For example, if the message carries on a new employee is added, the topic should read as follows:

    "HR: new employee has been added.

    Is there a way to get the name of DB without running the SQL "SELECT ORA_DATABASE_NAME FROM DUAL"?
    If not, should I create a new VO just for that?

    Thank you

    Joonsup

    Hello

    you create a public method in the AM Impl class and expose it as a client method. Then use the code below

        public String getDatabaseInformation(){
    
            DBTransaction dbTransaction = (DBTransaction) this.getTransaction();
            PreparedStatement prepStatement = dbTransaction.createPreparedStatement("select * from dual", 0);
            try {
    
              String dbSchema = prepStatement.getConnection().getMetaData().getUserName();
              String connectURL = prepStatement.getConnection().getMetaData().getURL();
    
              //returns schema_name@host:port:sid
              return dbSchema + connectURL.substring(connectURL.indexOf("@")-1);
    
            } catch (SQLException e) {
                e.printStackTrace();
            }
          return null;
        }
    

    In this way information is accessible from the web client and the BC ADF model itself

    Frank

    Published by: Frank Nimphius on August 2, 2011 17:02

  • How to get the targeted object

    can you tell, how to get the object currently targeted in a class

    for example, if I use the labelfield that has his focus, how to get and make changes to the text of labelfield

    I hope that you can get that I tried 2 say

    Thank you

    Not in a class, screen...

    Features screen with a method called getFieldWithFocus...

    Check it out...

    See you soon...

  • How to get the line object table View

    Hello

    I use Jdev 11.1.1.7

    My requirement is, there are two ways I can get lines in my logic, you're based getFilteredRows (RowQualifier) and vo.executeQuery () - on a specific condition or I should consider first or later...

    getFilteredRows() returns the line [], I need to find a way to make [Row] of the View object properly after ececuteQuery() on the VO... When I use vo.getAllRowsInRange () which returns only a single line, but what iterate the VO even, I see that there is more than one line... How can he get all the range of the VO table?

    Thank you

    You can set the size of the field-1?

    ViewObjectImpl (Oracle ADF model and Business 10.1.2 API components reference)before calling getAllrowsinRange?

  • Need help getting the Where-Object filter in the right place

    Hello

    I'm trying to filter local data warehouses, but I do not get the expected results.

    Code:

    Get-Datastore. Select @{N = "MON"; E={$_. Name}},

    @{N = "Total virtual machines"; E={@($_ | Get - VM). County}} |

    Where-Object {$_Name-Notlike "Datastore1 *"}

    Thank you

    As a general rule, you want to first filter when it is possible for greater efficiency in the pipeline.  Which is no exception here:

    Try:

    Get-Datastore. Where-Object {$_Name-Notlike "Datastore1 *"} |

    Select @{N = "MON"; E={$_. Name}}, @{N = "Total virtual machines"; E={@($_ | Get - VM). County}}

  • How to determine the user who uses the database object

    Hello
    Currently, we are consolidating our databases. One of the steps is to understand that the user connects to the database at all. It's easy, we have implemented a logon trigger and save the information in a separate table.
    If a user with objects (tables, views, procedures) are - but that this user never connects to the database - which automatically means that these objects are not at all? Needless to say that's not true. But how do know us if a user has selected an object to this user?
    Our problem is that we have a lot of patterns in our database-, but the developers do not know if this schema is not used by an application or not (sad but true).
    To enable the audit would be a choice about whether or not an object is already used.
    Are there other possibilities?
    Any help would be appricated

    Rgds
    Jan

    VivaLaVida wrote:
    Hello
    Currently, we are consolidating our databases. One of the steps is to understand that the user connects to the database at all. It's easy, we have implemented a logon trigger and save the information in a separate table.

    It could be even easier by turning on auditing functionality.

    If a user with objects (tables, views, procedures) are - but that this user never connects to the database - which automatically means that these objects are not at all? Needless to say that's not true. But how do know us if a user has selected an object to this user?

    verification would be a good choice.

    Our problem is that we have a lot of patterns in our database-, but the developers do not know if this schema is not used by an application or not (sad but true).

    Don't know this that developer will be used/not used with the application.

    To enable the audit would be a choice about whether or not an object is already used.

    What is the problem in the audit?
    Even if the audit may have a footprint on the performance, which would be probably cheaper than any customized solution.

    Nicolas.

  • Get the invalid objects recompile errors

    HY @ all,

    at an Oracle 11 G R2 instance, 11.2.0.3.0, I'm trying to recompile invalid objects as explained here:

    [http://www.oracle-base.com/articles/misc/recompiling-invalid-schema-objects.php]

    I have a few invalic objects in "XDB" and "SYS" schema.

    When I try to correct with 'utlprp.sql' at level 1 I get this output:
    FAILED CHECK FOR PACKAGE BODY CTX_DOC
    Warning: XDB now invalid, invalid objects found:
    object_name                                 object_type
    -------------------------------------------------------
    DBMS_XMLDOM                                PACKAGE BODY
    DBMS_XMLPARSER                             PACKAGE BODY
    DBMS_XSLPROCESSOR                          PACKAGE BODY
    DBMS_XDBRESOURCE                           PACKAGE BODY
    DBMS_XDB                                   PACKAGE BODY
    DBMS_XDBUTIL_INT                           PACKAGE BODY
    DBMS_CSX_INT                               PACKAGE BODY
    DBMS_XMLSCHEMA                             PACKAGE BODY
    PATH_VIEW                                          VIEW
    XDB_PV_TRIG                                     TRIGGER
    XIMETADATA_PKG                             PACKAGE BODY
    DBMS_XDBT                                  PACKAGE BODY
    
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    and when I select the invalid objects with:
    SELECT owner, object_type, object_name, status
    FROM   dba_objects
    WHERE  status = 'INVALID'
    ORDER BY owner, object_type, object_name;
    The number of invalid objects is always the same that before running the script 'utlprp.sql '. I have tried manually by:
    ALTER PACKAGE my_package COMPILE;
    ALTER PACKAGE my_package COMPILE BODY;
    ALTER PROCEDURE my_procedure COMPILE;
    ALTER FUNCTION my_function COMPILE;
    ALTER TRIGGER my_trigger COMPILE;
    ALTER VIEW my_view COMPILE;
    or with:
    EXEC DBMS_DDL.alter_compile('PACKAGE', 'MY_SCHEMA', 'MY_PACKAGE');
    EXEC DBMS_DDL.alter_compile('PACKAGE BODY', 'MY_SCHEMA', 'MY_PACKAGE');
    EXEC DBMS_DDL.alter_compile('PROCEDURE', 'MY_SCHEMA', 'MY_PROCEDURE');
    EXEC DBMS_DDL.alter_compile('FUNCTION', 'MY_SCHEMA', 'MY_FUNCTION');
    EXEC DBMS_DDL.alter_compile('TRIGGER', 'MY_SCHEMA', 'MY_TRIGGER');
    but whenever Oracle print me, that objects has been recompiled with compile errors.

    Does anyone know, how I fix this?

    Thank you very much and best regards,
    David

    Select ComputerName, State of dba_registry;

    Check status of the XDB component, if its not VALID. Fix it.

    http://www.iselfschooling.com/Board/index.php?topic=810.0

  • How to convert ManagedObjectReference specified object type (for example, Indexderecherche) and how to get the HostSystem object?

    Hello

    I met two problems when you use the SDK for JAVA,: (, so I come back here for help.)

    1. I use the method getSearchIndex() to get the object of the ServiceContent Indexderecherche , 'Indexderecherche' of ServiceContent property is set as 'com.vmware.vim25.ManagedObjectReference' and 'ManagedObjectReference' is not a subclass named "Indexderecherche", so how do I convert it to class "Indexderecherche" but I can't use the methods defined in the class "Indexderecherche".

    2. I want to retrieve information about my server ESX, and "Guide to programming Web Services SDK vShpere" tells me to do this work by accessing data objects defined for the HostSystem. But I don't know how to get the object "HostSystem.

    Can someone help me? Thanks in advance.

    Its part java java-sdk sample.

    path:

    vijava\src\com\vmware\sample\vi

    classpath:

    com.vmware.sample.vi.ViDiscovery

  • Get the custom object Id 5 in URL

    Hello

    How can I get an Id value of 5 custom in a URL object?

    I get 5 name of the custom object using the % name CustomObject5%, but does not work with the % CustomObject5 Id %.

    My code is:

    & ServiceRequestEditForm.CustomObject5 name = % CustomObject5 name %.
    & ServiceRequestEditForm.CustomObject5 Id = % CustomObject5 Id %.

    Customize objects 1 and 2 works fine with:

    & ServiceRequestEditForm.Custom 1 = object name % 1 object name custom percent.
    & ServiceRequestEditForm.Custom object Id = 1% Custom object Id 1%.
    & ServiceRequestEditForm.Custom 2 = object name % name object custom 2%.
    & ServiceRequestEditForm.Custom object Id = 2% object Id custom 2%.

    Thank you.

    Published by: user13796387 on 03/15/2011 06:59

    Published by: user13796387 on 03/15/2011 07:38

    Published by: user13796387 on 03/15/2011 07:39

    Yes. Name, Id and Id integration external fields are available in the lay of the land. ID is not available.

    .

  • How to get the database name/IP address of the server forms10g database

    Hello world
    How can I get the name of the database instance and the IP address of the database server?

    I use GEC 10 g and the database server is Oracle 10 g.

    Dobbelaere

    How can I get the name of the database instance and the IP address of the database server?

    To use the IP UTL_INADDR

    For example name you can use sys_context ('userenv', 'instance_name')
    or
    SQL > select instance_name from v$ instance;

  • How to get the database create 9iR2 db statement?

    Friends,

    OS: RHEL 3
    DB: Oracle 9iR2

    under sql will be the creation of tablespace.
    select dbms_metadata.get_ddl('TABLESPACE','TEMP') from dual;
    like the above, I want to get the creation of database statement

    is it possible using dbms_metadata or any other means?

    Thank you

    There were a few scripts or references to scripts to generate create statements of database in the past.

    I thought that I had actually downloaded one, but I don't know what I did with it. I however did a quick search and found the following:

    Of comp.databases.oracle.server. The last entry for the thread refer to such a tool are available on the web pages of the author.

    http://groups.Google.com/group/comp.databases.Oracle.Server/browse_frm/thread/a1457c459be3479a/63bcc6008e8273b7?hl=en&lnk=St&q=#63bcc6008e8273b7

    You can use the Oracle DBCA utility for fine screens to create a database and output, then save the scripts. You can now take those scripts and change the and adding additional orders for your goal.

    HTH - Mark D Powell.

  • Unable to get the targeted object


    Try getLeafFieldWithFocus(), I always find it going past the Manager and gets the real field.

Maybe you are looking for