Home > Ask the Oracle Experts > Oracle Application Server Questions & Answers > How to solve ORA-04076 error?
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

How to solve ORA-04076 error?

John Garmany EXPERT RESPONSE FROM: John Garmany

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 04 January 2006
I am facing the ORA-04076 error. I googled the error but was unable to understand it. What exactly do I need to do to solve this? I am using Toad.

>
EXPERT RESPONSE
When dealing with triggers, there are pseudovariables called old and new used to reference the state of column data. On a before update, the old.xxxx value is the value of column xxxx before the update, while new.xxxx is the value that will be updated (similar to the after update value). One thing to remember is that on insert, there are no old values, and on delete there are no new values. If I have a before insert trigger and I want to update the create_date column to sysdate, I could try the code below:
if (old.create_date is null) then new.create_date := sysdate; end if;
This will fail because there are no old.xxxx values with an insert. I would need to test the new value.
if (new.create_date is null) then new.create_date := sysdate; end if;
This version will work. Hope this helps.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Oracle Application Server
Database objects becoming invalid
Receiving ORA-12541 error trying to connect through Forms/Reports
Problems connecting to database after installing Forms
Button trigger raising exception
Cause of access violation while connecting from Forms
Migrating a database to 10g and a new server
Best OS for installing database and application server on same server
Accessing an application through the Internet
Testing the accessibility of an application from outside U.A.E.
Accessing applications from the Internet

Oracle Application Server
Oracle to acquire application service management firm
Don't wait for clarity on Oracle's VM strategy, experts say
Oracle's 10 steps to get to Fusion rely on Oracle investments
Oracle Fusion Middleware: Top five headlines
Oracle-BEA deal gets the green light
Oracle adds Data Integration Suite to middleware family
Oracle-BEA deal means tough choices for middleware buyers
Oracle to buy BEA Systems
Oracle bids for BEA Systems
Oracle challenges IBM, Microsoft with application server platform
Oracle Application Server Research

Oracle error messages
ORA-12560 error with Oracle 10g Instant Client
Unable to view Oracle tables in NetBeans
IMP-00017 error message with Oracle import
Can't open database after failed backup export
Query on dblink returning ORA-12545 error
RMAN not working at command prompt
Unique constraint violations, "parent key not found" errors
Insufficient privileges error when creating stored procedure
IMP-00010 error with import from 10g to 9i
ORA-12801 error while loading seed data

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts