Regarding object_id in Oracle

I have created a table TEMP_TAB and created 3 triggers on TEMP_TAB table.
Triggers names are trig1, trig2 and trig3.
Now when I query in dba_objects, I found below object_id for respective triggers.
trig1 object id is 374841
trig2 object id is 374857
trig3 object id is 374887
My question is how the object_id are assigned to a particular object in oracle?
Now I have dropped trig1 and recreated the same trigger, with same trigger name (trig1). I can see the object_id did not changed. Why? As we know object_id is primary key.
when I query in dba_objects, I found below object_id for respective triggers.
trig1 object id is 374841
trig2 object id is 374857
trig3 object id is 374887
I user oracle 11g Release 11.1.0.7.0.
Thanks

Something strange is definately on.
The OBJECT_ID for the table changes, but for the trigger it is reused.
BANNER                                                                          
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production    
PL/SQL Release 11.2.0.1.0 - Production                                          
CORE     11.2.0.1.0     Production                                                        
TNS for Solaris: Version 11.2.0.1.0 - Production                                
NLSRTL Version 11.2.0.1.0 - Production    
select object_id,object_name from user_objects where object_name  in ('T1','TRIG1'); 
OBJECT_ID              OBJECT_NAME                                                                                                                     
create table t1 (col1 number);
create trigger trig1
  before insert on t1
  for each row
  begin
   null;
  end;
table T1 created.
TRIGGER trig1 compiled
select object_id,object_name from user_objects where object_name  in ('T1','TRIG1'); 
OBJECT_ID              OBJECT_NAME                                                                                                                     
95352                  T1                                                                                                                              
95350                  TRIG1                                                                                                                           
drop trigger trig1 ;
drop table t1;
trigger TRIG1 dropped.
table T1 dropped.
select object_id,object_name from user_objects where object_name  in ('T1','TRIG1'); 
OBJECT_ID              OBJECT_NAME                                                                                                                     
create table t1 (col1 number);
create trigger trig1
  before insert on t1
  for each row
  begin
   null;
  end;
table T1 created.
TRIGGER trig1 compiled
select object_id,object_name from user_objects where object_name  in ('T1','TRIG1'); 
OBJECT_ID              OBJECT_NAME                                                                                                                     
95353                  T1                                                                                                                              
95350                  TRIG1                                                                                                                           
drop trigger trig1 ;
drop table t1;
trigger TRIG1 dropped.
table T1 dropped.
create table t1 (col1 number);
create trigger trig1
  before insert on t1
  for each row
  begin
   null;
  end;
table T1 created.
TRIGGER trig1 compiled
select object_id,object_name from user_objects where object_name  in ('T1','TRIG1'); 
OBJECT_ID              OBJECT_NAME                                                                                                                     
95354                  T1                                                                                                                              
95350                  TRIG1                                                                                                                           

Similar Messages

  • Regarding ASM in Oracle 11g

    Hi
    I would like to use ASM storage for my single instance oracle 11gR2 database. I am a little bit confused so that asking some question about Oracle 11g ASM.
    1. Does Grid Infrastructure mandatory for installation Oracle 11g  ASM instance?
    2. Without installation Grid Infrastructure can I full fill my requirements ?
    Regards
    Rabi

    "If you plan to use Oracle Restart or Oracle Automatic Storage Management (Oracle ASM), then you must install Oracle Grid Infrastructure before you install and create the database. " -- http://docs.oracle.com/cd/E11882_01/install.112/e47689/oraclerestart.htm#LADBI999

  • Regarding Triggers in Oracle Forms

    Hello Gurus,
    Please help me .I am very new to Oracle Apps .I got the requirement from my client. Iam a technical developer .Please see the below requirement.
    Order Management Super User >>
    Pricing >>Price Lists >>Price list Setup
    When an item is created in the Price List Form ie.(Reatil) and saved it .The same item should automatically appeared in COST and ZERO DOLLAR Forms . Except Price value.
    Iam planning to do triggers.Can any one help me to create triggers ..step by step procedure .or Please give me any suggestions to done this requirement.Please help me .
    Best Regards,
    Sandeep

    hello
    Change/ modify the properties of the check box item;
    for the check boxes :
    1. Make the data type of the check box as number;
    2. fill the functional a.)value when check = 1 b.) value when uncheck = 0;
    3. add new item to summarize the value of the checkbox;
    change properties of the new added item
    datatype number;
    calculation summary
    summary function :- sum
    summarize block :- your block
    summarize item :- your check box item.
    used :----> when checkbox change trigger
    if nvl(:item_summry,0 > 2 and //double entry of data then
    your code......
    .... message..
    raise..
    else
    your code.....
    end if;
    For Duplicate Item data entry :-
    see this for the duplicate entry for item :-
    duplicate records in  a multi record block
    modify my given code & modify the said link information to satisfied your requirement.
    charles

  • Regarding limits in oracle 8

    Hey guys, i need your experience here;)
    We use oracle 8, and today some customers reported that regarding a table (financial one... ouch) all the entries they did since the 23rd october dont appear, the lines are blank , but incremented
    is there a limit to the number of datas ? entries?
    should i do a purge of the tables ( it has never been done before.; and i took the job 3 weeks ago so i dont know all the history ;) )
    all the help you can provide will be real helpful guys
    in advance thx

    Limits? Entries? Purge?
    Don't do anything rash.
    If you don't know what you're doing or why you're doing it, action for the sake of action will probably just cause more issues.
    There's not enough information for anyone to diagnose the problem.
    Whilst an upgrade to a supported should be a priority target in the longer term, in the immediate term, why is it likely to solve the problem?
    You need to gather evidence, try to reproduce the problem and get to the root cause.
    If it was an Oracle bug then yes, you're going to wish you were on a supported version but it's more likely to be something else.
    Start with the evidence you've got.
    These "blank" rows in the database. How have you determined that they are blank?
    "blank but incremented" what does that mean?
    Edited by: DomBrooks on Nov 3, 2010 11:33 AM

  • Regarding grants in Oracle

    Hi everyone,
    Could anyone tell me whether JAVA grants are needed for JAVA services in Oracle and what are those grants ?
    Thanks !!!

    This forum is only for issues with the SQL Developer tool. Better post these questions under the dedicated Java forums.
    Regards,
    K.

  • Regarding Calculation in Oracle Incentive module of Oracle Application R12

    Hi,
    We are facing a problem during 'CALCULATION'in ORACLE INCENTIVE OCMPENTSATION MODULE version R12 (12.0.5) .
    It takes long time to execute in a system and also doesn't show the Status as 'COMPLETE' in case of complete.
    This issue occurs in perticular development instance and We have observed that the CALCULATION take place very short to complete the process in different dev instances.
    We do 'CALCULATION' through Responsibility : - Compensation Manager--> Calcualte compensation
    We need your valuble inputs and suggestions
    Thanks and Regards,
    Deepak

    Deepak,
    The issue depends on many factors. One volume u are testing between instances, the way the plan is set up. if the plan is not set up right way or you have huge volumes, you may see these kind of issue.
    You may want to analyze reuqirements and plan configuration. This may give somes ideas on how to fix this.
    Regards
    Srini

  • Regarding certification in oracle apps

    Hello,
    Please guide me the certification in oracle apps, which modules are available in oracle apps? and which previous certifications are required for oracle apps certi?
    Also tell me which apps modules are in demand ?
    Thanks in advance,
    Omkar

    In addition to the suggested 'View All Exams' page above, you can have a look at the View All Certifications page, to see what certifications are available. There are quite a few Apps certifications, as you'll see.
    Regards,
    Brandye Barrington
    Certification Forum Moderator

  • Regarding validation in oracle forms

    I have a requirement that in oracle forms i need to validate that i enter the data in one record and the same data in next record also with the checkbox checked for both rows . And when i enter the same data in next record i.e 3rd record it should not allow to checkbox for 3rd record.This should be the frond end validation in oracle forms .
    My requirment looks like this
    A B C --> columns in oracle forms
    1 ab ab --> checkbox checked
    1 ab ab --> checkbox checked
    1 ab ab ---> when i check the checkbox it should not allow as only any of the two rows only should be checked
    Please help me out?
    Regards
    Prasad

    hello
    Change/ modify the properties of the check box item;
    for the check boxes :
    1. Make the data type of the check box as number;
    2. fill the functional a.)value when check = 1 b.) value when uncheck = 0;
    3. add new item to summarize the value of the checkbox;
    change properties of the new added item
    datatype number;
    calculation summary
    summary function :- sum
    summarize block :- your block
    summarize item :- your check box item.
    used :----> when checkbox change trigger
    if nvl(:item_summry,0 > 2 and //double entry of data then
    your code......
    .... message..
    raise..
    else
    your code.....
    end if;
    For Duplicate Item data entry :-
    see this for the duplicate entry for item :-
    duplicate records in  a multi record block
    modify my given code & modify the said link information to satisfied your requirement.
    charles

  • Regarding Objects in Oracle

    Hai all,
    I want to know where could I get good material on using Objects in Oracle (in Forms) plus some good tutorial regarding the same.
    Thanx
    Vinayak

    it it necessary to use adadmin to compile these objects and whether to use this with Maintenance Mode.No it is not necessary to use adadmin but recommended and you do not need to enable maintenance mode before compiling invalids irrespective of using adadmin or utlrp or adcomps.pls
    I was previously using urlrp.sql/etc to recompile invalid objects with non-APPS environment, so what is the difference in these 2. here also you can use utlrp.sql but ideally we use utlrp.sql when no one is connected to system but adadmin can be used while users are in. Also through adadmin you can compile invalid of apps schema only and utlrp will compile all invalids in db.
    adadmin calls $AD_TOP/sql/adcompsc.sql for compiling invalids. You can read this sql to view its functioning.
    what could be the issues, if i run manual recompile on running APPS environment or by using Oracle EM to compile APPS/etc Scheama.You can do it manually, no issues.
    Thanks,
    JD

  • Query regarding perl in Oracle Home

    Hi All,
    One of my customers has asked the following question
    “There is Perl 5.6.1 present in OracleHome but I can't use it like Perl is meant to be, because there is no makemaker ... so I can't use modules provided by CPAN. I want to know if it is possible to use this Perl? What is the Oracle-Recommended-Way to use CPAN-Modules? That is I want to know how can I compile any perl module from CPAN with the perl present in Oracle Home”
    Thanks and Regards,
    Geeta

    Not sure exactly what you mean,
    in unix box,
    type
    which perlwill show you which perl program system will choose to run without absolute path
    of course if there's any perl under current path setting
    If you want to run perl version under ORACLE_HOME as default, put this line first in your path
    $ORACLE_HOME/Apache/perl/bin
    in C shell it's like this
    set path = ($ORACLE_HOME/bin /usr/sbin $path)

  • Regarding Idoc to Oracle Data base update

    HI Guys,
    is there any Idoc which i can update a oracle database useing JDBC adapter. Please can you send me blog is any one was created ealier i can use it for ref.
    Regd's
    Raj

    Hi Raj,
    you can update oracle DB with any IDOC
    as long as you map the IDOC
    to the structure that the jdbc adapter accepts
    here you can find the structure formats:
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    all you need is to map your idoc to one of the formats
    above and you can update the oracle db
    for sample jdbc weblogs
    check the documents section on my FAQ
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    Regards,
    michal

  • Queries regarding DB2 to Oracle migration

    Hi,
    I am new to working on Oracle Migration Workbench and DB2. We are evaluating Oracle Migration Workbench (OMWB )for migrating our client's database which is on DB2 Version 5 Release 2 to Oracle. Request clarifications on below listed questions:
    1/ Is OMWB capable of migrating database which is on DB2 Version 5 Release 2 to Oracle?
    2/ When I connected to the AS/400 system using Capture Wizard, the system just stays on the Source Database Window with the message "Capturing Source Database..." for an unusually long time. Is there anyway to figureout if the process is going on fine or if there is an issue?
    Thank you.
    Regards,
    Balu

    To answer you first question, we don't support that version. You will need to seek an alternative tool, like for example SQL Ways from Ispirer
    http://www.ispirer.com/products/
    Donal

  • Regarding Access with Oracle

    Hello everybody,
    how can i migrate the particular table from access to oracle?.I have to migrate particular tables only not a particular database.
    thanks in advance.
    Regards,
    P.Parthasarathi

    Hi,
    The best way for you to do this is to create a new blank Access database and import the tables you want to migrate into that database. Then use that new Access database for the migration.
    This will ensure the imported tables have no broken links, custom datatypes or formula that are checked during import and they are clean to be used by SQL Developer.
    This is also easier than trying to edit the generated XML file or deleting unwanted tables after a full migration.
    Regards,
    Mike Kirtley

  • Query regarding OTG for Oracle 10g

    Hi,
    We need the OTG patch name for Oracle 10.2.0.5 to connect to DB2 database urgently. Please help asap.
    Regards,
    Rajiv.

    Patches come from https://support.oracle.com

  • Clarification regarding understanding of ORACLE CONNECT BY PRIOR Clause

    Dear All,
    I am trying to understand ORACLE CONNECT BY CLAUSE and I wrote a query to verify my understanding.
    I wrote the below two queries.
    select level, lpad('*',2*(level -1),'*') ||ename t_ename, sys_connect_by_path(ename,'/') enames, empno, mgr from emp
    --where empno =empno
    start with empno=7654
    --start with mgr is null
    connect by prior empno = mgr;
    LEVEL T_ENAME ENAMES EMPNO MGR
    1 MARTIN /MARTIN 7654 7698
    Explanation: Here Start with EMPNO=7654 Means, the root node is 7654. Connect BY PRIOR EMPNO=MGR Means--> For the empno=7654 are there any persons under him. IE. Mgr with 7654.
    select level, lpad('*',2*(level -1),'*') ||ename t_ename, sys_connect_by_path(ename,'/') enames, empno, mgr from emp
    --where empno =empno
    start with empno=7698
    --start with mgr is null
    connect by prior empno = mgr
    LEVEL T_ENAME ENAMES EMPNO MGR
    1 BLAKE /BLAKE 7698 7839
    2 **ALLEN /BLAKE/ALLEN 7499 7698
    2 **WARD /BLAKE/WARD 7521 7698
    2 **MARTIN /BLAKE/MARTIN 7654 7698
    2 **TURNER /BLAKE/TURNER 7844 7698
    2 **JAMES /BLAKE/JAMES 7900 7698
    Explanation: Here Start with EMPNO=7698 Means, the root node is 7698. Connect BY PRIOR EMPNO=MGR Means--> For the empno=7698 are there any persons under him. IE. Mgr with 7698.
    IS MY UNDERSTANDING OF CONNECT BY PRIOR IS CORRECT?
    Please correct me if I am wrong.
    Thanks,
    MK.

    Yes, you're right
    Regards,
    Sayan M.

Maybe you are looking for

  • How to reverse landed cost on open A/P Invoice

    Dear Support Please be so kind to assist wiht the following issue: I need to reverse landed cost from a open A/R Invoice #  72223 Purchase Order #  125025 Goods Receipt # 16426 Landed Cost 15332 A/P 72223 If i select the A/P invoice and copy to A/P C

  • My iphone4 is not working after I tried to update it and it wont let me restore it?

    My husbands iphone 4 is refusing to restore or really do anything since he tried to update it to the new operating system. It just alternates between the apple sign, and the thinking circle.  I updated mine on the computer right before he tried so we

  • Can't connect new macbook to D-Link wireless network

    Just purchased a new aluminum 13" macbook last weekend. I have an existing D-Link DIR-655 wireless router with 2 Dell laptops, 2 iPhones, and 1 Sirius Stilleto connected with WAP Personal Security and MAC address filtering working just fine. I added

  • File will not open with Reader X

    I had been using Adobe Reader ver 5, but recently updated to ReaderX.  I have a valid .pdf file that when I click, it says I need to download Adobe Reader.  I can drag-and-drop file on the Reader X icon and the file is opened without error.  Suggerst

  • Am using hp deskjet 1050 series...am not able to print text in black ,why?

    hie....am using the hp deskjet 1050 printer and scanner ....ealier i was able to print all kind of text(black and color)....but now am unable to print text in black....why is it so?