HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unix issue
Operating System - HP-UX
1832693
Members
3059
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 06:56 PM
02-28-2005 06:56 PM
Unix issue
Hi,
i have the following code wrapped in a file named "execute"
echo $1 starts at `date`
sqlplus -S << +
@/home/dmeload/bin/user_id
@$1 $2 $3 $4 $5
exit sql.sqlcode
+
ret=$?
echo $1 ends at `date`
return $ret
I used to run database scripts as follows
$execute insert.sql. Everything was working perfect. But now suddenly i'm getting
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-04092: cannot COMMIT in a trigger
ORA-06512: at line 59
It executes all statements and after the last statement its displaying this error and wud rollback all changes.
I executed insert.sql directly from sqlplus. It ran fine.
Whats wrong with above code ?
Please help. Attached the output file.
Thanks
JIL
i have the following code wrapped in a file named "execute"
echo $1 starts at `date`
sqlplus -S << +
@/home/dmeload/bin/user_id
@$1 $2 $3 $4 $5
exit sql.sqlcode
+
ret=$?
echo $1 ends at `date`
return $ret
I used to run database scripts as follows
$execute insert.sql. Everything was working perfect. But now suddenly i'm getting
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-04092: cannot COMMIT in a trigger
ORA-06512: at line 59
It executes all statements and after the last statement its displaying this error and wud rollback all changes.
I executed insert.sql directly from sqlplus. It ran fine.
Whats wrong with above code ?
Please help. Attached the output file.
Thanks
JIL
- Tags:
- SQL
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 07:05 PM
02-28-2005 07:05 PM
Re: Unix issue
hi,
ORA-04092: cannot COMMIT in a trigger
says it all, doesn't it?
You have a trigger with a commit statement in it. The trigger probably isn't fired for every row or you would have got the error sooner. Check your trigggers!
regards,
Thierry.
ORA-04092: cannot COMMIT in a trigger
says it all, doesn't it?
You have a trigger with a commit statement in it. The trigger probably isn't fired for every row or you would have got the error sooner. Check your trigggers!
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 07:38 PM
02-28-2005 07:38 PM
Re: Unix issue
Someone may have created a trigger on a table you use.
This script will give you triggers ordered by modification time (Last in result, last modified) :
select owner||'.'||object_name object,last_ddl_time
from dba_objects
where object_type='TRIGGER'
order by last_ddl_time
/
Regards,
Fred
This script will give you triggers ordered by modification time (Last in result, last modified) :
select owner||'.'||object_name object,last_ddl_time
from dba_objects
where object_type='TRIGGER'
order by last_ddl_time
/
Regards,
Fred
--
"Reality is just a point of view." (P. K. D.)
"Reality is just a point of view." (P. K. D.)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP