How to find recently created procedures in the current schema?

Hi all

in which oracle table I find recently created procedures with data timestemp as well?

Thank you.

Kind regards

Robert

Hi Robert,.

Watch dba_objects or all_/user_objects.

Something like that for the last day:

select *
  from dba_objects
 where LAST_DDL_TIME > sysdate -1
   and OBJECT_TYPE in ('PROCEDURE','PACKAGE','PACKAGE BODY','FUNCTION')
   and owner = '';

concerning

Kay

Tags: Database

Similar Questions

  • How to find a particular string in the entire schema?

    Hello world

    My version of DB is

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE 10.2.0.1.0 Production"
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    

    Suppose I have a so-called "EMAIL_ID" column in the employee table. The name of the employee is "abcd" and his email_id "[email protected]". ""

    The column name is changing "EMAIL_ID' to 'Email_Address' due to the bad standard naming convention.

    Now I only have a constant value that is " " [email protected] "... So is it possible if I write a query with this value and I'll have the list of

    tables and the exact column name where this mail_id exist?

    Kind regards

    BS2012.

    DECLARE
      ncount NUMBER;
      vwhere VARCHAR2(1000) := '';
      vselect VARCHAR2(1000) := ' select count(1) from ';
      vsearchstr VARCHAR2(1000) := '[email protected]';
    BEGIN
      FOR k IN (SELECT a.table_name
                      ,a.column_name
                  FROM user_tab_cols a
                 WHERE a.data_type LIKE '%VARCHAR%')
      LOOP
        vwhere := ' where ' || k.column_name || ' = :vsearchstr ';
        EXECUTE IMMEDIATE vselect || k.table_name || vwhere
          INTO ncount
          USING vsearchstr;
        IF (ncount > 0)
        THEN
          dbms_output.put_line(k.column_name || ' ' || k.table_name);
        END IF;
      END LOOP;
    END;
    
  • How to find these different namespaces in the schema?

    Hello

    I heard that this schema contains different namespaces. How to find these different namespaces in the schema?

    I checked with this, but it is throwing "table or view does not exist.

    Select the namespace of v$ librarycache.


    Thank you
    Praveen

    Are you referring to this? From the reference manual of the SQL language under the schema object names and qualifiers

    7. part of a namespace, no two objects can have the same name.
    The following schema objects share a namespace:
    Tables
    Display
    Sequences
    Private synonyms
    Autonomous procedures
    Autonomous stored functions
    Packages
    Materialized views
    User-defined types

    Each of the following schema objects has its own namespace:
    Index
    Constraints
    Clusters
    Database triggers
    Private database links
    Dimensions

    Because tables and views are in the same namespace, a table and a view in the same schema cannot have the same name. However, the tables and indexes are in different namespaces. Therefore, a table and an index in the same schema may have the same name.

    Each schema in the database has its own namespaces for objects that it contains. This means, for example, two tables in different schemas are in different namespaces and can have the same name.

    Each of the following schema objects also have its own namespace:
    User roles
    Public synonyms
    Links to public database
    Storage spaces
    Profiles of school boards
    The files (PFILEs) settings and server settings (SPFILEs) files

    Because objects in these namespaces do not appear in the drawings, these namespaces cover the entire base.

    That's why you can do:

    SQL> create table t (id number, descr varchar2(10));
    
    Table created.
    
    SQL> alter table t add constraint t check (mod(id,2) = 0);
    
    Table altered.
    
    SQL> create index t on t(id);
    
    Index created.
    
    SQL> create trigger t
      2  before update on t
      3  begin
      4     dbms_output.put_line('T Trigger');
      5  end;
      6  /
    
    Trigger created.
    

    but not:

    SQL> create view t as select * from t;
    create view t as select * from t
                *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    

    or

    SQL> create procedure t
      2  begin
      3     null;
      4  end;
      5  /
    create procedure t
    *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    

    John

  • Hello, my bare of tools a missing person is left and not of I don't know how to find I is still in the tool to crop my picture thanks.

    Hello, my bare of tools a missing person is left and not of I don't know how to find I is still in the tool to crop my image.

    Go to the window menu and choose Tools.

  • How to find inserted last record in the table.

    Version: Oracle 10g

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    As I got to know that the Rowid is not a result perfect result. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10g

    This is not a version. It's a product name. A version is 10.1.0.2 or 10.2.0.4, etc.

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    Not possible as your data model do not answer for him. As simple as that.

    If there is a need to determine an order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or several attributes are necessary to represent this information. Your data model in this case is therefore unable to meet your requirements.

    If the requirements are valid, set the data model. In other words - your question has nothing to do with Oracle and nothing to do with the other pseudo columns in Oracle, the rowscn or the rowid. It is a question of pure data modeling. Nothing more.

  • URG: How can I force APEX to use the specific schema: spaces of work APEX_040100 or entitled to another schema?

    Hi all

    Here's the scenario:

    1. My computer crashed. were to return to complete export (expdp 11.2.x to impdp 12 c). successfully done.
    2. Configured ADR blah blah... can access the admin of the apex.
    3. Problem is: administration interface does not SEE my workspaces apex Apex (only the workspace IN-HOUSE).
    4. After investigation it seems that APEX (after the upgrade) is somehow configured / run with: schema APEX_040200 and not

    APEX_040100 (as I have improved Apex in the old database versions).


    5. If I'm running the following:

    ALTER session set current_schema = APEX_040100;

    Select short_name, display_name

    of wwv_flow_companies

    where source_identifier is not null;


    I SEE all my beloved workspaces.

    6 my questions:

    a. How can I force APEX to use the specific schema: APEX_040100 instead of APEX_040200?

    b. or are there other alternatives to assign these workspaces in the current environment?


    Concerning

    Etay G

    Hello Brad,

    Thank you for your response. Appreciated.

    • Yet, as I had a little corrupted environment Apex after import (impdp), COMPREHENSIVE database this method of revocation (above) has failed several times to me.
    • Here's what I have (solves the problem):
    • Deleted APEX_040200 Apex 4.2 installation().
    • Text left in DB is the only APEX_040100
    • Then, the version 5.0.3 and it worked!

    More importantly, after the installation of APEX, all workspaces, users, etc. are automatically correctly resided in APEX.
    • I think that if you have only 1 version of apex corrupted in DB. It should work as well. Remove again, schema using the above script (check version) with caution (after backup, etc.).

    Kind regards

    Etay G

  • How to clear a single block of the current page in the OPS

    Hi all

    How to erase a single block of the current page in the OPS. I used the CLEAR key.


    Thank you

    Hello

    I found the solution I wrote it in the button DELETE. I wrote the remove with vo1.setMaxFetchSize method (1);

    and remove called AOS

    Thank you

  • How to convert sql server procedures in the format of oracle

    Hello

    I need help, I got some procedures that is written in the format MS Sql, I need to convert those to the format of the oracle, and I don't know how to do. Could someone help me?

    IN SQL server code format is:

    / * Object: StoredProcedure [dbo]. [sp_rpt_get_job_log_on_demand]    Script Date: 20/12/2013-09:07:26 * /.

    SET ANSI_NULLS

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE PROCEDURE [dbo]. [sp_rpt_get_job_log_on_demand]

    (

    @JOB_ID INT

    @REPORT_DATE AS DATETIME

    , @PERIOD VARCHAR (100)

    )

    AS

    BEGIN

    SET @REPORT_DATE = CONVERT (DATETIME, CONVERT (DATE, @REPORT_DATE))

    DECLARE @MONTH INT = (YEAR (@REPORT_DATE) * 100) + MONTH (@REPORT_DATE)

    , @TODAY = INT ((((@REPORT_DATE) YEAR * 100) + MONTH (@REPORT_DATE)) * 100) + DAY (@REPORT_DATE)

    @YEAR INT = YEAR (@REPORT_DATE)

    SELECT J.JOB_ID

    J.JOB_NAME

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE + '-' + F.FREQUENCY_SUBTYPE

    END AS FREQUENCY_TYPE

    L.TRANSACTION_DATE

    L.PROCESS_DATE

    START_TIME

    END_TIME

    DATEDIFF(MINUTE,START_TIME,END_TIME) AS TIME_TAKEN

    L.RECORD_COUNT

    ISNULL(L.EXECUTION_STATUS, 'NOT STARTED') AS EXECUTION_STATUS

    L.ERROR AS ERROR_DESC

    P.PRIORITY_NUMBER

    P.COLOR_CODE

    OF dbo.JOBS J AS

    INNER JOIN dbo. ACE OF FREQUENCY F

    ON J.FREQUENCY_ID = F.FREQUENCY_ID

    INNER JOIN dbo. JOB_PRIORITY AS P

    ON J.PRIORITY_ID = P.PRIORITY_ID

    LEFT JOIN dbo. TBK_POS_FACT_LOADING_SUMMARY ACE L

    ON J.JOB_ID = L.JOB_ID

    AND)

    (@PERIOD = 'TODAY' AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) = @REPORT_DATE) OR

    (@PERIOD = 'MONTHS' AND ((START_TIME) YEAR * 100) + MONTH (START_TIME) = @MONTH) OR

    (@PERIOD = 'YEAR' AND YEAR (START_TIME) = @YEAR)

    )

    AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) < = @REPORT_DATE

    WHERE F.FREQUENCY_TYPE <>'NONE'

    AND J.JOB_ID = @JOB_ID

    UNION ALL

    SELECT J.JOB_ID

    J.JOB_NAME

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE + '-' + F.FREQUENCY_SUBTYPE

    END AS FREQUENCY_TYPE

    L.TRANSACTION_DATE

    L.PROCESS_DATE

    START_TIME

    END_TIME

    DATEDIFF(MINUTE,START_TIME,END_TIME) AS TIME_TAKEN

    L.RECORD_COUNT

    L.EXECUTION_STATUS

    L.ERROR AS ERROR_DESC

    P.PRIORITY_NUMBER

    P.COLOR_CODE

    OF dbo.JOBS J AS

    INNER JOIN dbo. ACE OF FREQUENCY F

    ON J.FREQUENCY_ID = F.FREQUENCY_ID

    INNER JOIN dbo. JOB_PRIORITY AS P

    ON J.PRIORITY_ID = P.PRIORITY_ID

    INNER JOIN dbo. TBK_POS_FACT_LOADING_SUMMARY ACE L

    ON J.JOB_ID = L.JOB_ID

    WHERE F.FREQUENCY_TYPE = 'NONE '.

    AND)

    (@PERIOD = 'TODAY' AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) = @REPORT_DATE) OR

    (@PERIOD = 'MONTHS' AND ((START_TIME) YEAR * 100) + MONTH (START_TIME) = @MONTH) OR

    (@PERIOD = 'YEAR' AND YEAR (START_TIME) = @YEAR)

    )

    AND J.JOB_ID = @JOB_ID

    AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) < = @REPORT_DATE

    END

    GO

    I tried to convert it to a format of oracle... But I get the error message.

    --------------------------------------------------------------------------------------------------

    CREATE OR REPLACE PROCEDURE POS.sp_rpt_get_job_log_on_demand_V)

    JOB_ID NUMBER,

    DATE OF REPORT_DATE,

    PERIOD VARCHAR2 (100))

    AS

    BEGIN

    l_MONTH: = TO_CHAR (REPORT_DATE, "YYYYMM");

    TODAY: = TRUNC (REPORT_DATE);

    l_YEAR: = TO_CHAR (REPORT_DATE, 'YYYY');

    SELECT J.JOB_ID,

    J.JOB_NAME,

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE | '-' || F.FREQUENCY_SUBTYPE

    END

    AS FREQUENCY_TYPE.

    L.TRANSACTION_DATE,

    L.PROCESS_DATE,

    START_TIME,

    END_TIME,

    (END_TIME - START_TIME) AS TIME_TAKEN,

    L.RECORD_COUNT,

    NVL (L.EXECUTION_STATUS, "NOT STARTED") AS EXECUTION_STATUS,

    L.ERROR AS ERROR_DESC,

    P.PRIORITY_NUMBER,

    P.COLOR_CODE

    OF POS.JOBS J.

    POINT OF SALE. FREQUENCY F,

    POINT OF SALE. JOB_PRIORITY P,.

    POINT OF SALE. TBK_POS_FACT_LOADING_SUMMARY L

    WHERE J.FREQUENCY_ID = F.FREQUENCY_ID

    AND J.PRIORITY_ID = P.PRIORITY_ID

    AND J.JOB_ID = L.JOB_ID

    (PERIOD = 'TODAY'

    AND TO_CHAR (L.START_TIME, 'YYYYMMDD') =

    TO_CHAR (REPORT_DATE, 'YYYYMMDD'))

    OR (PERIOD = 'MONTHS' AND TO_CHAR (START_TIME, "YYYYMM") = MONTH)

    OR (PERIOD = 'YEAR' AND TO_CHAR (START_TIME, 'YYYY') = YEAR)

    AND F.FREQUENCY_TYPE <>'NONE'

    AND TRUNC (L.START_TIME) < = TRUNC (REPORT_DATE)

    AND JOB_ID = J.JOB_ID

    UNION ALL

    SELECT J.JOB_ID,

    J.JOB_NAME,

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE | '-' || F.FREQUENCY_SUBTYPE

    END

    AS FREQUENCY_TYPE.

    L.TRANSACTION_DATE,

    L.PROCESS_DATE,

    START_TIME,

    END_TIME,

    (END_TIME - START_TIME) AS TIME_TAKEN,

    L.RECORD_COUNT,

    L.EXECUTION_STATUS,

    L.ERROR AS ERROR_DESC,

    P.PRIORITY_NUMBER,

    P.COLOR_CODE

    OF POS.JOBS J.

    POINT OF SALE. FREQUENCY F,

    POINT OF SALE. JOB_PRIORITY P,.

    POINT OF SALE. TBK_POS_FACT_LOADING_SUMMARY L

    WHERE F.FREQUENCY_TYPE = 'NONE '.

    AND J.FREQUENCY_ID = F.FREQUENCY_ID

    AND J.PRIORITY_ID = P.PRIORITY_ID

    AND J.JOB_ID = L.JOB_ID

    (PERIOD = 'TODAY'

    AND TO_CHAR (L.START_TIME, 'YYYYMMDD') =

    TO_CHAR (REPORT_DATE, 'YYYYMMDD'))

    OR (PERIOD = 'MONTHS' AND TO_CHAR (START_TIME, "YYYYMM") = MONTH)

    OR (PERIOD = 'YEAR' AND TO_CHAR (START_TIME, 'YYYY') = YEAR)

    AND JOB_ID = J.JOB_ID

    AND TRUNC (L.START_TIME) < = TRUNC (REPORT_DATE)

    END;

    /

    POS PROCEDURAL errors. SP_RPT_GET_JOB_LOG_ON_DEMAND_V:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    4/28 PLS-00103: encountered the symbol "(" quand attend un de la) "

    Next:

    := . ), @ % of default characters

    The symbol ': = ' has been replaced by "("pour continuer.) "

    76/1 PLS-00103: encountered the symbol "END" when awaits an of the

    Next:

    . (* % & -+; / TA for rem rest mod < an exhibitor > (*))

    and or group having intersect less order start union where

    connect | multiset

    The symbol ';' was replaced by 'END' continue.

    Thank you and best regards,

    John of Vikash

    Keep in mind, DBMS_OUTPUT is reserved for debugging purposes. If you want the output to a front-end, you can use SYS_REFCURSOR as OUTPUT parameter and get the data of the SELECT query.

  • How to find and read files on the computer

    Lost important documents on the desktop.  They have also disappeared from my flash drive.

    How can I get in the files stored on my computer?   How to find important files, I lost?

    Windows Vista IE 8

    Hello

    Try to follow the steps in this link and check if it helps: recover lost or deleted files http://windows.microsoft.com/en-US/windows-vista/Recover-lost-or-deleted-files

  • How to find on-site quantity on the specified date

    I have this request to find available courses:

    [code]

    SELECT mp.organization_code org, msi. ATTRIBUTE13, msi. ATTRIBUTE7,

    SUM (NVL (mmt.transaction_quantity, 0)) onhand

    OF mtl_system_items_b msi.

    mtl_parameters mp,

    mtl_material_transactions mmt

    WHERE mp.organization_id = msi.organization_id

    AND mmt.organization_id (+) = msi.organization_id

    AND mmt.inventory_item_id (+) = msi.inventory_item_id

    and mmt.transaction_quantity <>0

    GROUP BY msi. ATTRIBUTE13, mp.organization_code, msi. ATTRIBUTE7

    [\code]

    If I add this line:

    [code]

    "AND mmt.transaction_date (+) < ' 01-sep-2015."

    [\code]

    will I have the date on the quantity available so far?

    because when I add it, it shows less value...

    ' 01-sep-2015' is not a string, a date, so you can reasonably make a comparison of the range (lower to higher etc.) against it.

    Try instead:

    AND mmt.transaction_date (+)<>

    If this gives you what you want, I don't know that you haven't posted your tables or data in the example, or shown what number you encounter, or the expected output you want.

    Read: Re: 2. How can I ask a question on the forums?

  • How to find my WEP key and the name of my network?

    I need to reset my wireless printer to scan.  It asks for my WEP key and I thought it was one that is not correct.  How to find the right WEP key and my correct network name? I have a laptop HP Pavilion dm4 with HP scanner/printe wireless

    You must log - on to your AP or wireless router and look for the 'Wireless' or similar tab for your WEP key and the network name (SSID). Or you may be able to locate the information by going to control Panel\All Control Panel Items\Network and Center sharing on your laptop.

    Frank

  • How to find if an invoice to the AP is approved automatically or manually?

    Hello

    I have a question about invoices in Payables.

    How know if an invoice is approved manually or automatically, is approved?

    Like, for example, a company, all less than $ 50 bills can be approved without the consent of the Manager. These invoices can be automatically approved. But all these bills over $ 50 must be approved by the Manager.

    Do we not have this kind of scenario? If so, how do we identify them in oracle tables. What table and column that specify this source.

    Thank you

    Hello

    You can find it by referring to the WFAPPROVAL_STATUS column in the AP_INVOICES_ALL table.

    If your workflow design is not not approve invoices less than $ 50,
    then the approval status of invoices less than $ 50 would be the value in WFAPPROVAL_STATUS as '' NOT NECESSARY ''.

    If your design workflow is to approve the Bills above $ 50
    then the approval status of the Bills above $ 50 would be the value in WFAPPROVAL_STATUS as 'WFAPPROVED '.

    Apart from the above, there are several other statuses available for invoice approval such as,.

    REQUIRED approval is required for a Bill, but no authorization is launched
    INSIDER = approval is required for a Bill, and approval is launched
    REJECTED = approval is required for a Bill, and the approver rejects the approval
    MANUAL APPROVED approval is required for a Bill, but with approval of Force the invoice has been approved

    Kind regards
    Ivruksha

  • How to find a list with all the shortcuts in EBS R12

    How everything,.
    Someone knows how to find all the shortcuts for R12 as CTRL + F11, F11, F4... etc?




    Thanks in advance,
    Bahchevanov.

    Someone knows how to find all the shortcuts for R12 as CTRL + F11, F11, F4... etc?

    You can search all of this (help > keyboard help).

    Thank you
    Hussein

  • How to find users and groups in the Sun box

    Please adivce how to find users and group in sunsolaris

    Thanks in advance

    We can get all the details of the Group of the file/etc/Group.

    Similarly the user details are in/etc/passwd.

  • How to find on what progams share the tuner tv on my computer

    I have a 600with touchsmart a tuner tv with windows xp.  How I found on which programs share my tv tuner?

    How can I connect my cable to the computer to watch cable.  I have an hp touchsmart 600 desktop computer with windows xp

Maybe you are looking for

  • Satellite M50: How change it to fix the external antenna for WLan card

    I want to change my M50, so I can join the onboard wireless card external antenna. Anyone know of any modding guides?

  • An attachment JPG is is divided into hundreds of emails

    A week ago I tried to send a file .avi by outlook express, but I was told that it is too big and that it break smaller parts. I followed the instructions, you have given but launched the break to the top of the file of more than 600Kb. It has not rea

  • Computer laptop Windows XP do not hibernate / hold

    Recently, I restored my computer to a previous checkpoint because he was very slow and I knew it was an easy way to solve the problem.  However, several problems have emerged from this system restore.  One, when my computer restarted, it went for the

  • Burn songs to disc as MP3

    I bought some songs from zune in mp3 format and transferred to the mp3 player. These songs can be burned on a disc? If so, what type of disc format / used? Thank you.

  • U2415 - two connections for Display Port

    This is my first contact with Dell support and the first time I use the interface of the RFP. My question will appear in some basic way a lot of people, but I'm confused by the fact that my new monitor is equipped with a cable, which I assume is the