Autconfig error : ORA-01400: cannot insert NULL into ("APPLSYS"."FND_NODES"."NODE_NAME")
Good day,
I am running EBS 11.5.10 with DB 10.2.0.4. I applied patch 7429271 following the steps in Doc Id. 233044.1.
After restarting the application, I got a "node id does not exist for the current application" when the forms started.
After purging fnd nodes (exec fnd_conc_clone.setup_clean) I ran autoconfig successfully on the dbtier but got the error below in the apps tier.
I also noticed that the contents of my dbc file has been erased and replaced with the template data (all values are default). I tried restoring it but it just got over written again with default data.
Hope my explanation was clear enough.
Any suggestions?
---error from adconfig.log-----------
Unique constraint error (00001) is OK if key already exists
java.sql.SQLException: ORA-01400: cannot insert NULL into ("APPLSYS"."FND_NODES"."NODE_NAME")
ORA-06512: at "APPS.FND_CONCURRENT", line 1504
ORA-06512: at "APPS.FND_APP_SERVER_PKG", line 163
ORA-06512: at line 1
- Database error modifying the server
Logs after autoconfig and services started - not connection attempted to the application yet.
-----access log--------
mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=XmlSvcsGrp&port=19000 HTTP/1.1" 200 15 0
mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=DiscoGroup&port=17000 HTTP/1.1" 200 15 0
mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=OACoreGroup&port=16000 HTTP/1.1" 200 15 0
----error log--------
[Fri Oct 25 13:28:59 2013] [notice] Oracle HTTP Server Powered by Apache/1.3.19 configured -- resuming normal operations
----error log_pls----
[Fri Oct 25 13:29:00 2013] [notice] Oracle HTTP Server Powered by Apache/1.3.19 configured -- resuming normal operations
Logs after a connection attempt to the application
-----access log-----
mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=XmlSvcsGrp&port=19000 HTTP/1.1" 200 15 0
mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=DiscoGroup&port=17000 HTTP/1.1" 200 15 0
mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=OACoreGroup&port=16000 HTTP/1.1" 200 15 0
192.168.50.80 - - [25/Oct/2013:13:34:32 -0500] "GET / HTTP/1.1" 200 2589 0
192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /apptitle.html HTTP/1.1" 200 1015 0
192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /applist.html HTTP/1.1" 200 1602 0
192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /appdet.html HTTP/1.1" 200 1009 0
192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /appsmed3.gif HTTP/1.1" 200 1981 0
192.168.50.80 - - [25/Oct/2013:13:34:36 -0500] "GET /aplogon.html HTTP/1.1" 200 1953 0
192.168.50.80 - - [25/Oct/2013:13:34:38 -0500] "GET /OA_HTML/US/ICXINDEX_PROD_mobay.htm HTTP/1.1" 200 417 0
192.168.50.80 - - [25/Oct/2013:13:34:38 -0500] "GET /OA_HTML/AppsLocalLogin.jsp HTTP/1.1" 200 411 0
**the error logs remain unchanged.
Regards,
Shridath.
Similar Messages
-
Impdp errors with ORA-01400: cannot insert NULL into
Hi Experts,
I have very intresting situation when I use impdp to import table back to DB.
Environment:
Database Server: 10.2.0.4 Enterprise
OS: RHEL 5.5 64-bit
We have a table and it's size is 350+ GB and so to reclaim space I want to perform expdp/impdp operation. When I following below steps:
1) expdp table
2) drop table
3) impdp full table
It works like a charm and I am able to reclaim 83% space and table size shows about 20GB.
But when I follow below method:
1) expdp table
2) truncate table (To save some time not to import indexes, stats, constraints , etc)
3) impdp table
I get following error:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_TABLE_01": sys/******** tables=<schema>.<table_name> directory=test_dir dumpfile=<table_name>_%u.dmp logfile=impdp_<table_name>.log parallel=16 CONTENT=DATA_ONLY
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
ORA-31693: Table data object "<schema"."table_name" failed to load/unload and is being skipped due to error:
ORA-01400: cannot insert NULL into ("schema"."table_name"."ID")
Job "SYS"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at 16:12:28
Please advise how to proceed further, it seems like I am hitting some sort of Bug but metalink does not show any.
Regards,
MS
Edited by: user10651321 on Nov 9, 2012 4:38 PMexpdp and impdp operations should not be executed as SYS - try SYSTEM account instead. See first Note section here - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_import.htm#sthref243
Pl post the complete expdp and impdp commands used, along with a description of the table for which you encounter this error.
HTH
Srini -
ORA-01400: cannot insert NULL into
hi to all
when i try to insert into a table i get an error message like
ORA-01400: cannot insert NULL into
but if i see in the session status i see that the value of the element that will be inserted on the column is not null
and i haven't make mistakes on my insert query so how can it be possible
can you help me pleaseWhat is the source used and the source type of your columns having trouble? Is it all not nullable columns on a table that are having problems? Are other columns inserting fine?
Can you post up on apex.oracle.com your app?
Do you want to send me your app and I can install it and look at the page in question? -
insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('','','',41)
java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."DESCRIPTION"."TYPE")
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)
at oracle.jdbc.driver.T4CStatement.execute_for_rows(T4CStatement.java:474)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1125)
at com.event.struts.InsertDetails.doPost(InsertDetails.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source
and i my
Action class is
public class InsertDetails extends HttpServlet{
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
Connection conn = null;
try{
List list = (List) req.getSession().getAttribute("listbean");
InputBean ib = (InputBean) list.get(0);
InputBean ib1 = (InputBean) list.get(1);
InputBean ib2 = (InputBean) list.get(2);
InputBean ib3 = (InputBean) list.get(3);
InputBean ib4 = (InputBean) list.get(4);
InputBean ib5 = (InputBean) list.get(5);
InputBean ib6 = (InputBean) list.get(6);
InputBean ib7 = (InputBean) list.get(7);
conn = ConnectionUtils.getConnection();
Statement stmt = conn.createStatement();
String sql1 = "select seq.nextval from DUAL";
ResultSet rs1 = stmt.executeQuery(sql1);
rs1.next();
int event_id = rs1.getInt(1);
//Advanced and general info
String sql2 = "insert into EVENT_INFO (EVENT_ID,EVENT_NAME,SHORT_NAME,EVENT_START_DATE,EVENT_END_DATE,EVENT_START_TIME,EVENT_END_TIME,event_LOCATION,ADDRESS1,ADDRESS2,CITY,STATE,ZIP_CODE,COUNTRY,event_COMMENT,EVENT_OVERVIEW,EXTRA1,EXTRA2,MEMBERSHIP_OPTION,EXTRA3,EXTRA4,EXTRA5,KID,TEEN,ADULT,SENIOR,SENILE,EVENT_TYPE1,EVENT_TYPE2,DETAILED_DESCRIPTION,IS_DETAILED_DESCRIPTION_HTML,ADDITIONAL_URL,BYPASS_INFORMATION_PAGE,CANCELLATION_POLICY,ADDTIONAL_INFO) values("+event_id+",'"+ib.getName()+"','"+ib.getShortname()+"','"+ib.getStartdate()+
"','"+ib.getEnddate()+"','"+ib.getStarttime()+"','"+ib.getEndtime()+"','"+ib.getLocation()+"','"+ib.getAddress1()+"','"+ib.getAddress2()+"','"+
ib.getCity()+"','"+ib.getState()+"','"+ib.getZip()+"','"+ib.getCountry()+"','"+ib.getComment()+"','"+ib.getTextarea()+"','"+ib.getExtra1()+"','"+
ib.getExtra2()+"','"+ib.getExtra3()+"','"+ib.getExtra4()+"','"+ib.getExtra5()+"','"+ib.getExtra6()+"','"+ib.getExtra7()+"','"+ib.getExtra8()+"','"+
ib.getExtra9()+"','"+ib.getExtra10()+"','"+ib.getExtra11()+"','"+ib.getExtra12()+"','"+ib.getExtra13()+"','"+ib1.getTextarea()+"','"+ib1.getExtra1()+"','"+
ib1.getName()+"','"+ib1.getExtra2()+"','"+ib2.getCancellation_policy()+"','"+ib2.getTextarea()+"')";
stmt.executeQuery(sql2);
//Description
List list1 = (List) ib2.getList();
DescriptionBean db = (DescriptionBean) list1.get(0);
DescriptionBean db1 = (DescriptionBean) list1.get(1);
DescriptionBean db2 = (DescriptionBean) list1.get(2);
DescriptionBean db3 = (DescriptionBean) list1.get(3);
DescriptionBean db4 = (DescriptionBean) list1.get(4);
DescriptionBean db5 = (DescriptionBean) list1.get(5);
DescriptionBean db6 = (DescriptionBean) list1.get(6);
if(db.getDescription()!=" "){
String s1 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db.getDescription()+"','"+db.getTextarea()+"','"+db.getHtmlbutton()+"',"+event_id+")";
stmt.executeQuery(s1);
if(db1.getDescription()!=" "){
String s2 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db1.getDescription()+"','"+db1.getTextarea()+"','"+db1.getHtmlbutton()+"',"+event_id+")";
stmt.executeQuery(s2);
if(db2.getDescription()!=" "){
String s3 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db2.getDescription()+"','"+db2.getTextarea()+"','"+db2.getHtmlbutton()+"',"+event_id+")";
System.out.println(s3);
stmt.executeQuery(s3);
if(db3.getDescription()!=" "){
String s4 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db3.getDescription()+"','"+db3.getTextarea()+"','"+db3.getHtmlbutton()+"',"+event_id+")";
stmt.executeQuery(s4);
if(db4.getDescription()!=" "){
String s5 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db4.getDescription()+"','"+db4.getTextarea()+"','"+db4.getHtmlbutton()+"',"+event_id+")";
stmt.executeQuery(s5);
if(db5.getDescription()!=" "){
String s6 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db5.getDescription()+"','"+db5.getTextarea()+"','"+db5.getHtmlbutton()+"',"+event_id+")";
stmt.executeQuery(s6);
if(db6.getDescription()!=" "){
String s7 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db6.getDescription()+"','"+db6.getTextarea()+"','"+db6.getHtmlbutton()+"',"+event_id+")";
stmt.executeQuery(s7);
//Activity
String sql3 = "insert into ACTIVITY (ACTIVITY_NAME,ACTIVITY_START_DATE,ACTIVITY_END_DATE,ACTIVITY_START_TIME,ACTIVITY_END_TIME,TYPE,CAPACITY,EVENT_ID) values('"+ib3.getName()+"','"+ib3.getStartdate()+"','"+
ib3.getEnddate()+"','"+ib3.getStarttime()+"','"+ib.getEndtime()+"','"+ib3.getExtra1()+"',"+event_id+")";
stmt.executeQuery(sql3);
i put condition for null .But if i dont fill the fields,even then the executeQuery is executing without checking the condition.
wht is the problem
what i want to change in my code.1. Use code tags when you post code.
2. Use prepared statements.
3. If you have a field that requires a non-null entry then you must provide a non-null value. And for Oracle that means non-empty as well. -
Error when cloning a AD connector (cannot insert NULL into ("OIMUSER"."OIU"
I am getting below error when trying to clone AD connector (new resource). I Imported/Exported AD resource Object, Process form and the dependent lookup tables.
I can see the new resource object, process definition, process forms and Recon rule, when i tried provision a the new resource i see this error in logs.
DEBUG,23 Dec 2010 02:34:45,788,[XELLERATE.DDM.IMPORT], Importing ProcessAdministrator(XMLCREATED)
DEBUG,23 Dec 2010 02:34:45,788,[XELLERATE.DDM.IMPORT], Object is being created
DEBUG,23 Dec 2010 02:34:45,788,[XELLERATE.DDM.IMPORT], Creating data object
DEBUG,23 Dec 2010 02:34:45,788,[XELLERATE.DDM.IMPORT],Creating data object with params: com.thortech.xl.dataobj.tcDataBase@14d388c,41,null,[B@9355bd
DEBUG,23 Dec 2010 02:34:45,803,[XELLERATE.DDM.IMPORT], Resolving dependency to {UserGroup=SYSTEM ADMINISTRATORS}
DEBUG,23 Dec 2010 02:34:45,803,[XELLERATE.DDM.IMPORT], Dependency resolved with key: 1
DEBUG,23 Dec 2010 02:34:45,803,[XELLERATE.DDM.IMPORT], Saving data object
INFO,23 Dec 2010 02:34:46,256,[XELLERATE.DDM.STATS],Purging 6 prepared statements
ERROR,23 Dec 2010 02:35:52,663,[XELLERATE.DATABASE],Class/Method: tcDataBase/writeStatement encounter some problems: ORA-01400: cannot insert NULL into ("OIMUSER"."OIU"."OST_KEY")
java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("OIMUSER"."OIU"."OST_KEY")
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:159)
at com.thortech.xl.dataaccess.tcDataBase.writePreparedStatement(Unknown Source)
at com.thortech.xl.dataobj.PreparedStatementUtil.executeUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.insertImplementation(Unknown Source)
Please let me know if you have any idea..
Thanks..
Edited by: IDMuser19 on Dec 29, 2010 2:21 PMAfter Setting Database to DEBUG mode i see below errors in the log
DEBUG,27 Dec 2010 16:26:44,850,[XELLERATE.DATABASE],select ost_launch_dependent, ost_key, ost_status from ost ost, obi obi where ost.obj_key=obi.obj_key and obi.obi_key=181
INFO,27 Dec 2010 16:26:44,865,[XELLERATE.DATABASE],DB read: select upp_deny_list from upp,usr where usr.usr_key=upp.usr_key and usr.usr_key=21
DEBUG,27 Dec 2010 16:26:44,865,[XELLERATE.DATABASE],select upp_deny_list from upp,usr where usr.usr_key=upp.usr_key and usr.usr_key=21
INFO,27 Dec 2010 16:26:44,865,[XELLERATE.DATABASE],DB read: select pol_key, obi.obj_key from rqo,obi where rqo.obi_key = obi.obi_key and obi.obi_key = 181
DEBUG,27 Dec 2010 16:26:44,865,[XELLERATE.DATABASE],select pol_key, obi.obj_key from rqo,obi where rqo.obi_key = obi.obi_key and obi.obi_key = 181
INFO,27 Dec 2010 16:26:44,881,[XELLERATE.DATABASE],DB read: select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcOIU' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_pre_insert_sequence>0 order by dvt.dvt_pre_insert_sequence
DEBUG,27 Dec 2010 16:26:44,881,[XELLERATE.DATABASE],select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcOIU' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_pre_insert_sequence>0 order by dvt.dvt_pre_insert_sequence
DEBUG,27 Dec 2010 16:26:44,881,[XELLERATE.DATABASE],insert into oiu (OIU_KEY, OBI_KEY, USR_KEY, OIU_SERVICEACCOUNT, OIU_CREATE, OIU_CREATEBY, OIU_UPDATE, OIU_UPDATEBY, oiu_rowver) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
DEBUG,27 Dec 2010 16:26:44,881,[XELLERATE.DATABASE],select OIU_seq.nextval from dual
ERROR,27 Dec 2010 16:26:44,928,[XELLERATE.DATABASE],Class/Method: tcDataBase/writeStatement encounter some problems: ORA-01400: cannot insert NULL into ("OIMUSER"."OIU"."OST_KEY")
java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("OIMUSER"."OIU"."OST_KEY")
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
INFO,27 Dec 2010 16:26:44,990,[XELLERATE.DATABASE],DB read: select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.INSERT_FAILED'
DEBUG,27 Dec 2010 16:26:44,990,[XELLERATE.DATABASE],select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.INSERT_FAILED'
ERROR,27 Dec 2010 16:26:45,006,[XELLERATE.SERVER],Class/Method: tcDataObj/save Error :Insertion of dataobject into database failed
INFO,27 Dec 2010 16:26:45,006,[XELLERATE.DATABASE],DB read: select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.INSERT_FAILED'
DEBUG,27 Dec 2010 16:26:45,006,[XELLERATE.DATABASE],select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.INSERT_FAILED'
ERROR,27 Dec 2010 16:26:45,006,[XELLERATE.DATABASE],Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
java.lang.Exception: Rollback Executed From
at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcUserProvisionObject.insertImplementation(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
Thanks .... Please reply if you have any idea.. -
Migration Error - Cannot Insert Null Into MD_PROJECTS.ID
Environment:
Oracle 11g (11.2.0.2)
SQL Server 2008 R2
SQL Developer 3.0.03 Build Main-03.97
Problem:
We are migrating a SQL Server DB to Oracle and will need to perform this repeated times using updated versions of the SQL Server DB. I successfully did this several days ago using OFFLINE mode using a DB received in late March. There are two schemas in the SQL Server DB (dbo and EXA) that need to get migrated. Within SQL Server I attached the DB and renamed it to PTS. I then went through the wizard and ended up with two schemas in Oracle (dbo_PTS and EXA_PTS). I am now trying to repeat the process with a DB I just received. Within SQL Server I attached the DB and renamed it to PTS_April. It also has the same two schemas (dbo and EXA).
My repository schema (MWREP) has the following permissions:
GRANT RESOURCE TO MWREP WITH ADMIN OPTION;
GRANT DBA TO MWREP;
GRANT CONNECT TO MWREP;
ALTER USER MWREP DEFAULT ROLE ALL;
-- 6 System Privileges for MWREP
GRANT UNLIMITED TABLESPACE TO MWREP WITH ADMIN OPTION;
GRANT CREATE SESSION TO MWREP;
GRANT CREATE ROLE TO MWREP WITH ADMIN OPTION;
GRANT ALTER ANY TRIGGER TO MWREP WITH ADMIN OPTION;
GRANT CREATE USER TO MWREP WITH ADMIN OPTION;
GRANT CREATE VIEW TO MWREP;
I step through the wizard with the following general parameters
1) MWREP connection as the repository - I have dropped and recreated the repository objects.
2) Offline Mode for the Source Database (I've successfully created the .ocp file)
3) PTS_April selected in the Capture page
4) Offline Mode for the Target Database
5) Offline Mode for the Move Data
6) Click Finish and it runs for about 30 seconds first saying Create Project and then saying Capture.
I then get the following error message:
Migration actions have failed. Check the migration report for details. : ORA-01400: cannot insert NULL into ("MWREP"."MD_PROJECTS"."ID")
Any assitance solving this problem are appreciated.Hi, I had exactly the same problem and I resolved it be dropping all objects associated with the migration, this involves packages, types, views etc. Once I had ensured that i had a blank canvas, i stated again and it worked succesfully, good luck, Matt
-
Cannot insert null into a Primary Key Column using Entity Framework
I have to insert data into UserPreferences Table which has a primary key. This I am doing with Oracle Entity Framework Provider.
It is unable to do it though i have set the StoreGeneratedPattern = "Identity". But while saving changes it is saying a null error is being inserted into the primary key.I exported the same package to BIDS and ran it but still unable to get the issue. It is running fine.
Also then same package is running fine in other environments.
Thanks
Thats strange
Are you pointing to same databases itself while executing from server?
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
ERROR OGG-01296,OCI Error ORA-01400
Discarded record from action ABEND on error 1400
OCI Error ORA-01400: cannot insert NULL into ("SICK"."SI _RECORD"."CARD_TYPE") (status = 1400), SQL <INSERT INTO "SICK"."SI_CARD_RECORD" ("ORG_ID","CARD_NO","MODIFY_TIME","MODIFY_OPERATOR","REMARK") VALUES (:a0,:a1,:a2,:a3,:a4)>
Aborting transaction on dirdat/EF beginning at seqno 0 rba 7539127
error at seqno 0 rba 7539127
Problem replicating SICK.SI_CARD_RECORD to SI.SICK_CARD_RECORD
Mapping problem with compressed key update record (target format)...
OS :WINDOWS2008 ORACLE:11.2.0 GOLDEN GATE :11.1.1.0The error is self explanatory. GG is trying to insert NULL into a column that doesn't accept NULLS.
Is the table definition same on source and the target side ? -
SRKIM: Synchronize Wf Local Tables Errors: Ora-01400
PURPOSE
Synchronize Wf Local Tables 수행 시 발생한 ora-01400 error 를 해결한다.
Problem Description
Synchronize Wf Local Tables 수행 시 아래와 같은 error 가 발생하였다.
ERROR
FNDWFLSC module: Synchronize WF LOCAL tables
Current system time is 31-AUG-2005 09:39:54
**Starts**31-AUG-2005 09:39:54
**Ends**31-AUG-2005 09:40:33
ORA-12801: error signaled in parallel query server P000
ORA-01400: cannot insert NULL into
("APPLSYS"."WF_LOCAL_ROLES_STAGE"."DISPLAY_NAME")
STEPS
The issue can be reproduced at will with the following steps:
Submit the concurrent program Synchronize WF LOCAL tables.
Log file shows error.
Workaround
N/A
Solution Description
해당 error 는 per_all_people_f table 의 global_name 이 null 이기 때문에 발생하는 error 로 가장 간단하게는 아래와 같이 처리 하면 된다.
update per_all_people_f
set global_name = full_name
where global_name is null;
commit;
위의 작업 후 다시 Synchronize WF LOCAL tables process 를 수행 한다.
해당 issue 에 대한 원인은 note. 397219.1 - Why Are There NULL Values For global_name In 를 참조 하도록 한다.
Reference Documents
Note 375508.1 - Synchronize Wf Local Tables Errors: Ora-01400: CannotHi Hussein,
Thanks for reply. Please find the below details.
RELEASE_NAME
12.1.3
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Linux **** 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Conc Req Log file
Application Object Library: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
FNDWFLSC module: Synchronize WF LOCAL tables
Current system time is 19-JUN-2012 05:49:20
**Starts**19-JUN-2012 05:49:20
**Ends**19-JUN-2012 05:49:20
ORA-14501: object is not partitioned
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Output file size:
0
Finished executing request completion options.
Concurrent request completed
Current system time is 19-JUN-2012 05:49:20
--------------------------------------------------------------------------- -
Cannot insert NULL in dimension_key
Hi,
I have created a dimension with a simple two-tier hierarchy. The upper Level shall be filled with a constant in the mapping as there is no real hierarchy in the source data yet. I use a surrogate key in the upper level dimension called ID. Implemetation is rolap.
In the mapping I use the dimension operator and fill the upper level with the constant and the lower level from the source data table.
Deployment is successfull, but when I start the mapping, I get ORA_1400 cannot insert NULL into ...dimension_key for every row.
The target afterwards contains of 1 record, where the lower level is completly NULL, the upper level is filled properly with the constant. The ID and the dimension_key have the same key inserted (e.g. -6).
From the Repository Browser trace, I can see that owb does not write anything to dimension_key and therefore the ora-1400 occurs for every row.
As I don't know what the intention and the supposed implementation of the dimension_key is, so I'm stuck here. How do I influence the cration of the dimension_key and are there any constraints in the setup of the dimension?
Thanks,
KnutRight, my target is a dimension operator and a sequence is deployed. OWB does take this sequence for the surrogate ID and the dimension_key on the top level hierarchy.
But for the lower level hierarchy it does NOT take the dimension_key into the update statement.
In debug mode I see that it queries the dimension key but does not put it into the Lookup cursor for the update.
I think there is a relation missing between the different hierarchy levels, but I don't know how to implement it. Any ideas or references to the docs?
Reards,
Knut -
Can not insert null into foreign key issue
Hi ,
I am having parent-child relationship table.
In the child table when I am adding a new record , data is getting inserted with foreign key.
After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
If i click on rollback button I am able to update that record properly.Hi ,
I am having parent-child relationship table.
In the child table when I am adding a new record , data is getting inserted with foreign key.
After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
If i click on rollback button I am able to update that record properly. -
Getting error SQL Error : ORA-14551: cannot perform a DML operation inside a query
Hi gurus ,
Your help is greatly appreciated ..
I am doing some changes in the fucntion for an existing package .Introducing the new below check , am updating one of the tables based on a if condition ..
IF numALLOWED_COUNT >= numLAST_COUNT_ADDED+1 THEN
blnGDS_Allowed :=True;
varSTMT := 'UPDATE PROD.TMS_PROCESS_COUNTER ';
varSTMT := varSTMT ||' SET last_count_added = last_count_added+1';
varSTMT := varSTMT ||' WHERE process_name = ''DAILY_GDS_COUNT''';
varSTMT := varSTMT ||' AND COUNTER_IND = ''750FD130''';
PROC_LOG('Update Tms_Process_counter varSTMT --' || varSTMT);
IF INSERT_BATCH(99,varSTMT) > 0 THEN
NULL;
END IF;
Function for insert_batch :
UNCTION INSERT_BATCH(numTABLE_ID IN NUMBER, varSQL_STATEMENT IN VARCHAR2) RETURN NUMBER IS
varINSERT_BATCH_STMT VARCHAR2(32767) := NULL;
varADD_REC_TYPE BATCH_TABLES.ADD_REC_TYPE%TYPE;
BEGIN
PROC_LOG( 'INSIDE INSERT_BATCH IRC : ' || varSQL_STATEMENT ); --IRC 9/20 UC
INSERT INTO BATCH_STATEMENT(QUEUE_ID,TABLE_ID,STATEMENT,QUEUE_SEQUENCE_ID)
VALUES (numQUEUE_ID,numTABLE_ID,varSQL_STATEMENT,1);
RETURN 1;
EXCEPTION WHEN OTHERS THEN
PROC_LOG('Failed in INSERT_BATCH');
PROC_LOG('SQL Error : ' || SUBSTR(SQLERRM,1,1000));
RETURN -1;
END INSERT_BATCH;
desc PROD.BATCH_STATEMENT
QUEUE_ID NUMBER(15) NOT NULL
TABLE_ID NUMBER(2) NOT NULL
STATEMENT VARCHAR2(4000 BYTE) NOT NULL
QUEUE_SEQUENCE_ID NUMBER(5) NOT NULL
Some how when its calling the insert_batch , its giving me the error in the logs as below:
04:01:41 - Update Tms_Process_counter varSTMT --UPDATE PROD.TMS_PROCESS_COUNTER SET last_count_added = last_count_added+1 WHERE process_name = 'DAILY_GDS_COUNT' AND COUNTER_IND = '750FD130'
04:01:41 - INSIDE INSERT_BATCH IRC : UPDATE PROD.TMS_PROCESS_COUNTER SET last_count_added = last_count_added+1 WHERE process_name = 'DAILY_GDS_COUNT' AND COUNTER_IND = '750FD130'
04:01:41 - Failed in INSERT_BATCH
04:01:41 - SQL Error : ORA-14551: cannot perform a DML operation inside a querySome how when its calling the insert_batch , its giving me the error in the logs as below:
04:01:41 - SQL Error : ORA-14551: cannot perform a DML operation inside a query
Yes - and the exception is telling you EXACTLY what the problem is. You have a query
IF INSERT_BATCH(99,varSTMT) > 0 THEN
And you are performing a DML operation inside that query:
INSERT INTO BATCH_STATEMENT(QUEUE_ID,TABLE_ID,STATEMENT,QUEUE_SEQUENCE_ID)
VALUES (numQUEUE_ID,numTABLE_ID,varSQL_STATEMENT,1);
Like the exception says: you can't do that.
You need to call the function using PL/SQL and capture the return value into a variable. Then test that variable:
myVar := INSERT_BATCH(99,varSTMT);
if myVar > 0 THEN -
SQL Error: ORA-04092: cannot COMMIT in a trigger
Trying to drop the table inside the trigger but i'm unable to do it.
SQL Error: ORA-04092: cannot COMMIT in a trigger
I need to drop the table based on the some condition say condition is the archive table with more than millions of records which is of no use so i plan to drop the table.
I will be inserting the the unwanted table to mytable ,mytable which is having the trigger will fire to drop the table.
I need this to be done on automatic basis so i have chosen trigger.
is there anyway of automatic other than trigger in this case.933663 wrote:
Trying to drop the table inside the trigger but i'm unable to do it.
SQL Error: ORA-04092: cannot COMMIT in a trigger
I need to drop the table based on the some condition say condition is the archive table with more than millions of records which is of no use so i plan to drop the table.
I will be inserting the the unwanted table to mytable ,mytable which is having the trigger will fire to drop the table.
I need this to be done on automatic basis so i have chosen trigger.
is there anyway of automatic other than trigger in this case.You can't COMMIT inside a trigger. Oracle issue an auto COMMIT before and after the execution of DDL. So you can't use DDL in trigger. You may get suggestion to use AUTONOMOUS_TRANSACTION to perform COMMIT within tirgger. But dont do that. Its wrong idea.
I will suggest you look back into your requirement and see what exactly you want. You could schedule a job that runs on a daily basis that will pick up the object details from your table and drop them accordingly. -
Error ORA-30041 cannot grant quota on tblspc - instal global_awm10g 10gR2
from global_readme
Will not allow me to set QUOTA UNLIMITED ON "GLOBAL"
I am connect as SYS as SYSDBA.
error ORA-30041 cannot grant quota on the tablespace
worked fine on 10gR1I had the same problem, and I wholeheartedly agree with the previous post. A script that worked in 10g Rel 1 should work in 10g Rel 2 without error. I agree with the author's suggestion as well - warn me that the quota on the temp tablespace will be ignored, because that feature is no longer supported. Fine, whatever. If I can't do it, then I can't do it, I'll live with it. But don't just blast me out into space because that particular clause is no longer valid. A clause that formerly had meaning, and now does not, should be ignored, not treated as grounds for termination of the command.
This isn't something trivial - we're talking about features being removed from the database, and thereby from SQL programming language. You don't simply remove functionality and allowable programming code. You especially don't do behind the scenes, and without publicizing the change in great big red letters, so that developers can search for occurrences of the desupported functionality in their code.
AND you make it easy to find the new, revised scripts.
Poorly executed, Oracle. -
Error ORA-20003: Cannot read file/... in Cash Management?
Dear All.
I am having this Error in the Cash Management Module on the bank statement load process
Error ORA-20003: Cannot read file /software/d01/oracle/interface/finance/inbound/email.9Nemail.13111507.3445704.cnv.
How do I resolve this error.
Thank you.Hi Lucy,
The error is probably due to one of the reasons:
1. There is no file in the location: /software/d01/oracle/interface/finance/inbound/email.9Nemail.13111507.3445704.cnv.
2. No permission on the file respective file.
Please get the assistance from the DBA to check on this.
Thanks &
Best Regards,
Maybe you are looking for
-
What is the cost and process for factory refurbish of a tx2-1375dx with a blown system board? How would one go about arranging for such service? Why is it impossible to contact a real human for support, either via online chat or phone?
-
Does anyone know how to retrieve information about a client's browser (i.e. what browser, what version, etc), possibly from the HTTP request or some other way, via JSP? Thanks. --Amanda
-
Keychain password reset problem
I have a powerbook g4 that I have forgotten the keychain password. I have started the system with the OS DVD and reset the passwords I could and can't find a way to reset the keychain password. Do I have to delete the keychains and start over if so,
-
Expression descriptors and plc acknolwedgments
I have two separate Lookout Direct questions here... The first is about the characters following expressions, such as the ":b" in V0002:b... I'd like to know what they are called and where I can find them in the Lookout Direct manuals! I spent about
-
Problems updating to ios 5 or later
I am trying to update my iphone 4 version 4.3.3. I have tried to follow the steps on here but i do not have the software update option on my phone. Not sure how else to update. Please help. Thank you.