Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6695101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:10:51+00:00 2026-05-26T06:10:51+00:00

I’m wondering if oci_connect() can cause a 1438 error, because i get this all

  • 0

I’m wondering if oci_connect() can cause a 1438 error, because i get this all the time:

Warning: oci_connect() [function.oci-connect]: ORA-00604: error
occurred at recursive SQL level 1 ORA-01438: value larger than
specified precision allowed for this column ORA-06512: at line 8 in
/xxxxxx/some.php on line 220

It’s not depending on which table is being queried. It seems like oci_connect() is inserting some trackingstaff in some sys table, or maybe a trigger is related with the logon. But i don’t have the permission to figure out this problem in sys.

Any Idea what could be the cause for this error?

Update

Does oracle do some logging somewhere automatically out of box without configured to specifically? Can i somehow let oracle or PHP show me which table or column is affected?

Update
I found out that, when i call the PHP Script in Bash directly, it does work fine. But a call from web will cause titled problem. Any Idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:10:52+00:00Added an answer on May 26, 2026 at 6:10 am

    The message error occurred at recursive SQL level 1 suggests to me that the error is arising within a trigger. My guess is that there is an AFTER LOGON ON SCHEMA or DATABASE trigger, and for some reason it causes an error when your web server process attempts to connect.

    Here’s an example of how to generate the error you’re getting. I have a table called TINY, with a single column that can only take values up to 99:

    SQL> desc tiny;
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     N                                                  NUMBER(2)
    

    Now let’s create a user account and verify that they can connect:

    SQL> create user fred identified by fred account unlock;
    
    User created.
    
    SQL> grant connect to fred;
    
    Grant succeeded.
    
    SQL> connect fred/fred
    Connected.
    

    Good – let’s log back in as me and create a trigger that will cause an error if FRED attempts to connect:

    SQL> connect luke/password
    Connected.
    SQL> create or replace trigger after_logon_error_if_fred
      2    after logon on database
      3  begin
      4    if user = 'FRED' then
      5      insert into tiny (n) values (100);
      6    end if;
      7  end;
      8  /
    
    Trigger created.
    

    Recall that our TINY table can only store values up to 99. So, what happens when FRED attempts to connect?

    SQL> connect fred/fred
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01438: value larger than specified precision allowed for this column
    ORA-06512: at line 3
    
    

    Other than the line number, and the bit PHP added, that’s exactly the message you got.

    If you want to see whether there are any AFTER LOGON triggers in your database, try running the query

    SELECT trigger_name, owner FROM all_triggers
     WHERE TRIM(triggering_event) = 'LOGON';
    

    On my database (Oracle 11g XE beta), I get the following output:

    TRIGGER_NAME                   OWNER
    ------------------------------ ------------------------------
    AFTER_LOGON_ERROR_IF_FRED      LUKE
    

    I don’t believe Oracle does any logging out-of-the-box, and I’d be surprised if PHP’s oci_connect does either.

    I can only speculate as to why the error arises only for your web server and not when you run PHP from a bash script. Perhaps the trigger is querying V$SESSION and trying to figure out what user account is trying to connect to the database?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.