Autconfig error: ORA-01400: cannot insert NULL into ('APPLSYS". "" "" FND_NODES '. "" NODE_NAME')
Nice day
I'm under EBS 11.5.10 with DB 10.2.0.4. I applied patch 7429271 following the steps described in the Doc id 233044.1.
After restarting the application, I had one "node id does not exist for the current application" when forms started.
After serving nodes (exec fnd_conc_clone.setup_clean) DNF, I ran successfully on the dbtier autoconfig but got the error below in the layer of apps.
I also noticed that the content of my BCD file has been deleted and replaced by the model data (all values are by default). I tried to restore but it just had class written once again with default data.
Hope my explanation was clear enough.
Any suggestions?
-adconfig.log error-
Unique constraint error (00001) is OK if the key already exists
java.sql.SQLException: ORA-01400: cannot insert NULL into ('APPLSYS". "" "" FND_NODES '. "" NODE_NAME')
ORA-06512: at the 'APPS '. FND_CONCURRENT', line 1504
ORA-06512: at the 'APPS '. FND_APP_SERVER_PKG', line 163
ORA-06512: at line 1
-Database error change the server
You have the latest applied AutoConfig patch (Patch 9535311 - T2K AUTOCONFIG AND TEMPLATES CUMULATIVE HOTFIX U)? If this isn't the case, please apply the patch and then try.
Additionally, make sure that you have entered in the file/etc/hosts.
Thank you
Hussein
Tags: Oracle Applications
Similar Questions
-
Import error: ORA-01400: cannot insert NULL in
I'm performing a level schema import and I get this error. Half an hour, this error comes without any stop. could you please tell me how to ignore this error when executing import?
IMP-00019: rejected due to the ORACLE 1400 error line
IMP-00003: ORACLE error 1400
ORA-01400: cannot insert NULL into ("LWARE_ADMIN". "" "" SAMPLE_AUDIT_LOG '. "" COUNTER")
Db version is 10.2.0.4 and platform HP - UX B.11.31 U ia64
Thank you!Hello
Please read this article
ORA-1400 when you import the Export Dump written in Mode Direct Path [ID 826746.1]
Kind regards
Rakesh jayappa -
Hi Hsawwan,
When you try to save the header in the order form, you will see the following message in R12.
Note
--------------------------------------------------------------------------------
ORA-01400: cannot insert NULL in
("TO HAVE". "" "" OE_ORDER_HEADERS_ALL '. "" ORDER_NUMBER") in the package OE_Header_Util procedure Insert_Row
I followed the Doc-ID 1208783.1 and change the value of the profile Option, OM: Default sale Transaction Phase, NULL or "Fulfillment". and I srt a configuration document for sales orders sequence.
Please help me how to solve the problem.
Thank you
Concerning
GSMAre you connected to the correct responsibility?
Have you checked if this simultaneous program is added to the application group that is the responsibility?
Thank you
Hussein -
Hi all, it's weird, I just installed Application Express 4.2.4.00.08
I tried to paste a script in SQL Studio-> Scripts SQL Editor and it gives this error if I try to run the script.
I tried to save the script, and the result is displayed as none of the existing scripts.
I tried the same thing with an insert script, same results.
INSERT INTO OM_STATES (STATE_ABBR, STATE_NAME, batch) VALUES ("WV", "WestVirginia", 1);
Any ideas?
Searched the forum and Google came with 3 of the same, but the dates were 2006 and 2005
Thank you very much,
BillHi all
I uninstalled APEX using the apxremov.sql and reinstalled but it's always the same things.
The solution
apxremov. SQL
Cascade DROP USER EBS_APEX; (my diagram)
DROP cascade USE APEX_030200; (this client never had used before APEX so I removed it all)
DROP cascade USE APEX_040200;
DROP TABLESPACE APEX_TS INCLUDING CONTENT AND DATA FILES; (it's the table space that I used to install the APEX 4.2.4)
exec dbms_network_acl_admin.delete_privilege ('power_users.xml', 'FLOWS_030200', 'connect', TRUE); -remove all links to old users
exec dbms_network_acl_admin.delete_privilege ('power_users.xml', 'FLOWS_040200', 'connect', TRUE); - remove links to older users
Reinstall the APEX
-
ORA-01400: cannot insert NULL into...
Hello
I've created and activated an authentication scheme that is customized by using the function below.
FUNCTION authenticate (p_username IN VARCHAR2,
p_password IN VARCHAR2) RETURN BOOLEAN IS
v_activated TANK;
v_pass_hash VARCHAR2 (32);
v_db_pass_hash VARCHAR2 (32);
BEGIN
-check if there is a user
Password enabled, SELECT
IN v_activated, v_db_pass_hash
OF t7_users
WHERE username = p_username;
v_pass_hash: = md5hash (UPPER (p_username): p_password);
-check if the password matches
IF v_db_pass_hash! = v_pass_hash THEN
apex_util.set_session_state ('login_message', 'invalid password');
apex_util.set_authentication_result (4);
RETURN FALSE;
END IF;
-Check if the account is activated
IF v_activated = n THEN
apex_util.set_session_state ('login_message', 'your account has not been verified yet');
apex_util.set_authentication_result (2);
RETURN FALSE;
END IF;
-If no error has occurred so far, then authenticate
apex_util.set_authentication_result (0);
RETURN TRUE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
apex_util.set_session_state ('login_message', 'invalid username');
apex_util.set_authentication_result (1);
RETURN FALSE;
WHILE OTHERS THEN
apex_util.set_session_state ('login_message', ' unknown internal error, contact the administrator of the site "");
apex_util.set_authentication_result (7);
RETURN FALSE;
END to authenticate;
When I try to log in using a combination of user and password correct name, it works perfect. However if using invalid credentials my app guard throwing the error below
I have nothing special to the login form (#101), which was established jointly with the request. This is how it is configured
Process connection:
I use ApEX 4.0.2 with DB Oracle 11g XE.
This could be the cause? What Miss me? :/
Your help is very appreciated!
Hi Szabolcs Tenkei,
The reason behind this:
When I try to log in using a combination of user and password correct name, it works perfect. However if using invalid credentials my app guard throwing the error below
is:
There is no session state prior to logon. User authentication is made before the login and the authenticated user is assigned a Session ID by the procedure of wwv_flow_cust_auth_std.login on the login page and the logon process then takes the user authenticated with the session id valid for the home page of the application.
The problem here with your authentication function (code mentioned above) is the use of APEX_UTIL. Procedure SET_SESSION_STATE which only works with a session state is valid.
Please comment/delete the above procedure code and see if it works.
Admission to the status of different custom authentication, there are specific values mentioned in the blog/thread below:
I hope this helps!
Kind regards
Kiran
-
Hello
First I'll apologize I can't give too much information as my client is offline and remotely. The SQL I will discuss work on his test and my solution Oracle XE. But on live, we get the error shows:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-01400: cannot insert NULL into ("SYS". «SUMINLINE$ '.» ("' TEXT ').
I have never posted on this forum but I do not understand what makes the table SUMINLINE$ and it has relevance. Please also excuse if there is a better way to write the SQL code), in any case any guideance would be useful.
I thought it may be down to how I use rownum (he is a complete proposal) but he materializes in the previous view, I don't see how it could be)
In any case if someone is good enough to spend a little time there, watching the SQL below I would be eternally grateful.
-----------------------------------------------------
STEP 1: I have a materialized view of base:
(he uses the 'rownum' as primary key as a primary key is needed more late and from this point of view does not
a primary key, as it is a view complex)
-------------------------------------------------------
Bo_socrates.baseCSIIdentPerPerson CREATE MATERIALIZED VIEW
TABLESPACE bo_socrates
PCTUSED 0
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE)
1040K INITIALS
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
NOCACHE
NOLOGGING
NOPARALLEL
IMMEDIATE CONSTRUCTION
COMPLETE REFRESH
WITH THE PRIMARY KEY
AS
SELECT rownum iid,
csi.attendId,
csi.sceneId,
csi.caseId,
csi.identDate,
csi.identType,
csi.subIdenttype,
csi.suspectId,
CSI. Surname,
CSI. Data,
CSI. CRO,
CSI. ConfirmedIdent
OF bus_objects.v_factCSIIdentPerPerson csi
;
CREATE INDEX bo_socrates.ind_baseCSIIdentPerson_Id on bo_socrates.baseCSIIdentPerPerson (id)
TABLESPACE bo_socrates
STORAGE (INITIAL 64K MINEXTENTS 1 MAXEXTENTS UNLIMITED) NOLOGGING;
-----------------------------------------------------
STEP 2: This materialized view (my fact table) uses the previous view of the materilalized
as a point to calculate the date of fact. It is for example the background 'unit' people
but I also need to know what people came first, that people came first with blue hats, etc..
So I use one with instructions to discover these facts.
* PLEASE NOTE THAT IT IS THIS VIEW WHICH TRIGGERS THE ERROR WHEN THE SCRIPT IS RUN *.
If there is a simpler way to write so please let me know
This point of view basically uses the primary key (id) generated in the above view by using rownum
-------------------------------------------------------
Bo_socrates.factCSIIdent CREATE MATERIALIZED VIEW
TABLESPACE bo_socrates
PCTUSED 0
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE)
1040K INITIALS
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
NOCACHE
NOLOGGING
NOPARALLEL
IMMEDIATE CONSTRUCTION
COMPLETE REFRESH
WITH THE PRIMARY KEY
AS
With
firstAttend like)
Select Attendid, Min (IdentDate) Identdate,
Min (ID) Id,
Min (case when identtype = 0 Then ID else null end) IPF,
Dnaid, min (case when identtype = 1 Then ID else null end),
Fwid, min (case when identtype = 2 Then ID else null end),
Min (Case When Confirmedident = 1 then end Id or Null) Idconfirm,
Fpidconfirm, min (case when identtype = 0 and Confirmedident = 1 Then ID else null end),
Dnaidconfirm, min (case when identtype = 1 and Confirmedident = 1 Then ID else null end),
Min (case when identtype = 2 and confirmedident = 1 Then ID else null end) FwidConfirm
Of Bo_Socrates.Basecsiidentperperson
Attendid GROUP),
firstInd AS)
Select Attendid, SuspectId, Identdate, Min (Id) Id, Min (IdentDate),
Min (case when identtype = 0 Then ID else null end) IPF,
Dnaid, min (case when identtype = 1 Then ID else null end),
Fwid min (case when identtype = 2 Then ID else null end)
Of bo_socrates. BaseCSIIdentPerPerson
Attendid group, Suspectid)
Select csi.id,
csi.attendId,
csi.sceneId,
csi.caseId,
csi.identDate,
CSI.identtype,
csi.subIdenttype,
csi.suspectId,
CSI. Surname,
CSI. Data,
CSI. CRO,
Csi.Confirmedident,
Case when Ind.Id is Null then 0 otherwise 1 end Firstindident.
Case when Ind.Fpid is Null then 0 otherwise 1 end Firstindidentfp.
Case when Ind.DNAid is Null then 0 otherwise 1 end FirstindidentDNA.
Case when Ind.FWid is Null then 0 otherwise 1 end FirstIndIdentFW.
Case when Att.Id is Null then 0 otherwise 1 end Firstattident.
Case when Attfp.Fpid is Null then 0 otherwise 1 end Firstattidentfp.
Case when AttDNA.DNAid is Null then 0 otherwise 1 end FirstattidentDNA.
Case when Attfw.Fwid is Null then 0 otherwise 1 end Firstattidentfw.
Case when Att.IdConfirm is Null then 0 otherwise 1 end FirstattidentConfirm.
Case when Attfpc.Fpidconfirm is Null then 0 otherwise 1 end Firstattidentfpconfirm.
Case when AttDNAc.DNAidconfirm is Null then 0 otherwise 1 end FirstattidentDNAconfirm.
Cases where AttFWc.FWidconfirm is Null then 0 otherwise 1 end FirstattidentFWconfirm
Of Bo_Socrates.Basecsiidentperperson Csi
Left outer join Firstind Ind Csi.Id = Ind.Id
Left outer join Firstind Indfp Csi.Id = Indfp.Fpid
Left outer join Firstind Inddna Csi.Id = Inddna.Dnaid
Left outer join Firstind IndFW Csi.Id = IndFW.FWid
Left outer join Firstattend Att Csi.Id = Att.Id
Left outer join Firstattend Attfp Csi.Id = Attfp.Fpid
Left outer join Firstattend Attdna Csi.Id = Attdna.Dnaid
Left outer join Firstattend Attfw Csi.Id = Attfw.Fwid
Left outer join Firstattend Attfpc Csi.Id = AttFPc.Fpidconfirm
Left outer join Firstattend Attdnac Csi.Id = AttDNAc.DNAidconfirm
Left outer join Firstattend Attfwc Csi.Id = AttFWc.Fwidconfirm
;
CREATE INDEX bo_socrates.ind_factCSIIdent_Id on bo_socrates.factCSIIdent (attendId)
TABLESPACE bo_socrates
STORAGE (INITIAL 64K MINEXTENTS 1 MAXEXTENTS UNLIMITED) NOLOGGING;
CREATE INDEX bo_socrates.ind_factCSIIdent_date on bo_socrates.factCSIIdent (identDate)
TABLESPACE bo_socrates
STORAGE (INITIAL 64K MINEXTENTS 1 MAXEXTENTS UNLIMITED) NOLOGGING;
CREATE INDEX bo_socrates.ind_factCSISubIdent_type on bo_socrates.factCSIIdent (subidentType)
TABLESPACE bo_socrates
STORAGE (INITIAL 64K MINEXTENTS 1 MAXEXTENTS UNLIMITED) NOLOGGING;
COMMIT;Details of the message of pl of the OS and database versions. It is probably a bug - pl see these Docs MOS
Error ORA-01400 creating MView ANSI join [ID 1495499.1]
While Alter Materialized View compilation then error ORA-01400 product [1377447.1 ID]As the State of docs, a fix is available in the next version of Oracle (12g) - I'd say you open an SR with Support
HTH
Srini -
ORA-01400: cannot insert NULL in
Hi all
I got the following error when inserting values in the database can someone guide me please?
ORA-01400: cannot insert NULL in
create table sara1
(ID number primary key (10),)
Add varchar2 (10) not null,
Add2 varchar2 (10) not null;
Insert into sara1
(add, add2)
values ('USA', 'Angel');
ERROR on line 1:
ORA-01400: cannot insert NULL in
Sarah
Published by: SarahSarahSarah on August 27, 2009 13:56Is missing a value for the column ID of the insert statement. And a primary key cannot contain NULL values.
-Andy
Published by: a Tael on August 27, 2009 16:03
-
Kindly let me know if someone have a solution for this.
NEWSPAPERS are:
Debug sat May 16 12:29:59 IST 2015 1431759599345/atg/epub/DeploymentServer DistributedDeploymentAdapter:DAFDeploymentID: 300001 corresponds DeploymentID: 300001
Debug sat May 16 12:29:59 IST 2015 1431759599352/atg/epub/DeploymentServer DistributedDeploymentAdapter:ApplyCommittedSynchronization.afterCompletion
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production SQL statement failed: [++ SQLInsert ++]
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production INSERT INTO dps_seg_list (segment_list_id, display_name, description)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production VALUES(?,?,?)
Error Sat May 16 12:29:59 / atg/userprofiling/PersonalizationRepository_production IST 1431759599935 2015 - settings.
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production p [1] = {pd} CommerceReporting (java.lang.String)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production p [2] = {pd: displayName} trade reports (java.lang.String)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production p [3] = {pd: description} Segments of interest to trade reports. (java.lang.String)
Error Sat May 16 12:29:59 / atg/userprofiling/PersonalizationRepository_production IST 2015 [- SQLInsert-] 1431759599935
Error Sat May 16 12:29:59 java.sql.SQLIntegrityConstraintViolationException/atg/userprofiling/PersonalizationRepository_production IST 1431759599935 2015: ORA-01400: cannot insert NULL into ("PROD". "" "" DPS_SEG_LIST '. "" ASSET_VERSION')
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1044)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1329)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3594)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3675)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1354)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:174)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.adapter.gsa.Table.insert(Table.java:1410)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7314)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1054)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.deployment.repository.RepositoryWorkerThread.deployItem(RepositoryWorkerThread.java:1128)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:263)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production to atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
Error Sat May 16 12:29:59 IST 2015 1431759599935/atg/userprofiling/PersonalizationRepository_production
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager = case repositoryMarker:mark200015 element = CONTAINER: atg.deployment.DistributedDeploymentException; Source: Container: ATG.repository.RepositoryException; Source: Java.Sql.SQLIntegrityConstraintViolationException: ORA - 0
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:275)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
Sam May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager error message = failure of deployment time = Sat 16 May 12:30 IST 2015 atg.deployment.DeploymentFailure@2e11da44 CONTAINER: atg.deployment.DistributedDeploymentException; Source: Container: ATG.repository.RepositoryExcept
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:275)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
Error Sat 16 May 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager Caused by: CONTAINER: atg.repository.RepositoryException; Source: Java.Sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("PROD". "" "" DPS_SEG_LIST '. "" ASSET_VERSION')
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7393)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1054)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.repository.RepositoryWorkerThread.deployItem(RepositoryWorkerThread.java:1128)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:263)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
Error Sat 16 May 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager Caused by (#2):java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("PROD". "" "" DPS_SEG_LIST '. "" ASSET_VERSION')
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1044)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1329)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3594)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3675)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1354)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:174)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.adapter.gsa.Table.insert(Table.java:1410)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7314)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1054)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.repository.RepositoryWorkerThread.deployItem(RepositoryWorkerThread.java:1128)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:263)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
Error Sat May 16 12:30 IST 2015 1431759600031/atg/deployment/DeploymentManager
Error Sat May 16 12:30 IST 2015 1431759600145/atg/deployment/DeploymentManager an unexpected error has occurred. DeploymentWorkerThread ends prematurely. atg.deployment.DistributedDeploymentException: exceeded the number of allowed errors (0)
Error Sat May 16 12:30 IST 2015 1431759600145/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:680)
Error Sat May 16 12:30 IST 2015 1431759600145/atg/deployment/DeploymentManager to atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
Error Sat May 16 12:30 IST 2015 1431759600145/atg/deployment/DeploymentManager
debugging sat May 16 12:30 IST 2015 1431759600658/atg/epub/DeploymentServer DistributedDeploymentAdapter:DeploymentListener.deploymentFailed called for deployment with ID: 300001
SAT may 16 12:30 IST 2015 1431759600660/atg/epub/DeploymentServer debugging DistributedDeploymentAdapter:DAFDeploymentID: 300001 corresponds DeploymentID: 300001
Debug sat May 16 12:30 IST 2015 1431759600662/atg/epub/DeploymentServer DistributedDeploymentAdapter:DeploymentListener.deploymentFailed
SAT may 16 12:30 IST 2015 1431759600668/atg/epub/DeploymentServer DistributedDeploymentAdapter debug: found 1 failure messages
SAT may 16 12:30 IST 2015 1431759600684/atg/epub/DeploymentServer DistributedDeploymentAdapter debug: adding failure message failed to deploy with error severity
SAT may 16 12:30 IST 2015 1431759600691/atg/epub/DeploymentServer debugging DistributedDeploymentAdapter: deployment failed
Error Sat May 16 12:30 IST 2015 1431759600720 /atg/epub/DeploymentServer---atg.deployment.common.DeploymentException: '300001' target 'Production' deployment has encountered an error of level of deployment of system during data transfer.
Error Sat May 16 12:30 IST 2015 1431759600720/atg/epub/DeploymentServer to atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:333)
Error Sat May 16 12:30 IST 2015 1431759600720/atg/epub/DeploymentServer to atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1391)
Error Sat May 16 12:30 IST 2015 1431759600720/atg/epub/DeploymentServer to atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)
Error Sat May 16 12:30 IST 2015 1431759600720/atg/epub/DeploymentServer to atg.deployment.server.Deployment.run(Deployment.java:1960)
Error Sat May 16 12:30 IST 2015 1431759600720/atg/epub/DeploymentServer to java.lang.Thread.run(Thread.java:745)
Error Sat May 16 12:30 IST 2015 1431759600720/atg/epub/DeploymentServer
Info, Saturday, May 16, 12:30:50 IST 2015 1431759650742/atg/deployment/DeploymentManager purge data from deployment to deployment 300001
Info, Saturday, May 16, 12:33:39 IST 2015 1431759819267/atg/dynamo/servlet/adminpipeline/AuthenticationServlet HTML admin 0:0:0:0:0:0:0:1(/dyn/admin) authentication failure
Caution Saturday, May 16, 12:33:58 IST 2015 1431759838585/atg/dynamo/security/AdminUserAuthority attempt to connect to weblogic account does not exist
Info, Saturday, May 16, 12:34:01 IST 2015 1431759841600/atg/dynamo/servlet/adminpipeline/AuthenticationServlet HTML admin 0:0:0:0:0:0:0:1(/dyn/admin) authentication failure
Caution Saturday, May 16, 12:34:01 IST 2015 1431759841687/atg/dynamo/security/AdminUserAuthority attempt to connect to the admin with the incorrect password account
Info, Saturday, May 16, 12:34:04 IST 2015 1431759844689/atg/dynamo/servlet/adminpipeline/AuthenticationServlet HTML admin 0:0:0:0:0:0:0:1(/dyn/admin) authentication failure
Caution Saturday, May 16, 12:34:10 IST 2015 1431759850915/atg/dynamo/security/AdminUserAuthority attempt to connect to the admin with the incorrect password account
Info, Saturday, May 16, 12:34:13 IST 2015 1431759853916/atg/dynamo/servlet/adminpipeline/AuthenticationServlet HTML admin 0:0:0:0:0:0:0:1(/dyn/admin) authentication failure
Info, Saturday, May 16, 12:34:22 / atg/dynamo/servlet/adminpipeline/Authenticator IST 2015 1431759862089 allowing access for the Administrators group authenticator.
Info, Saturday, May 16, 12:34:22 IST 2015 1431759862157/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor index.jhtml to D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dasadmin_3__UTF_s8\_index.java treatment
Info, Saturday, May 16, 12:34:22 IST 2015 1431759862447/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dasadmin_3__UTF_s8\_index.java compilation
Info, Saturday, May 16, 12:34:24 IST 2015 1431759864951/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor /atg/dynamo/admin/en/index.jhtml to D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dasadmin_3__UTF_s8\_atg\_dynamo\_admin\_en\_index.java treatment
Info, Saturday, May 16, 12:34:25 IST 2015 1431759865146/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dasadmin_3__UTF_s8\_atg\_dynamo\_admin\_en\_index.java compilation
Info, Saturday, May 16, 12:34:26 IST 2015 1431759866023/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor /atg/userprofiling/admin/en/dps-home.jhtml to D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dpsadmin_3__UTF_s8\_atg\_userprofiling\_admin\_en\_dps_sh treatment
Info, Saturday, May 16, 12:34:26 / atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor IST 2015 1431759866049 D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dpsadmin_3__UTF_s8\_atg\_userprofiling\_admin\_en\_dps_shome.java compilation
Info, Saturday, May 16, 12:34:26 IST 2015 1431759866455/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor /atg/commerce/admin/en/dcs-home.jhtml to D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dcsadmin_3__UTF_s8\_atg\_commerce\_admin\_en\_dcs_shome.java treatment
Info, Saturday, May 16, 12:34:26 / atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor IST 2015 1431759866470 D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dcsadmin_3__UTF_s8\_atg\_commerce\_admin\_en\_dcs_shome.java compilation
Info, Saturday, May 16, 12:34:28 / atg/dynamo/security/ComponentSecurityDomain IST 2015 1431759868918 ComponentSecurityDomain registered with the registry of the/atg/registry/SecurityDomains
Info, Saturday, May 16, 12:34:44 IST 2015 1431759884078/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor /atg/dynamo/admin/en/cmpn-search.jhtml to D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dasadmin_3__UTF_s8\_atg\_dynamo\_admin\_en\_cmpn_ssearch.java treatment
Info, Saturday, May 16, 12:34:44 IST 2015 1431759884213/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor D:\Oracle\Middleware\Oracle_Home\user_projects\domains\Bcc\ATG-Data\pagebuild\_dasadmin_3__UTF_s8\_atg\_dynamo\_admin\_en\_cmpn_ssearch.java compilationHello
It seems that your production table contains the column asset_version.
Asset_version is just for database edition, to store versioned data.
Try to remove this column.
It will be useful.
Good bye.
-
error 01400 cannot insert null
Hello
I need to create a sequence of a work order import program, I created the sequence but I get the below error
kindly Guide/** code added for sequence*/ begin select to_char (sysdate , 'RRRR')||'-'||invoice_num_seq.nextval into V_seq_num from dual ; end; INSERT INTO WIP_DISCRETE_JOBS (ATTRIBUTE14 ) VALUES (V_seq_num ); this is the error when i run i am getting This request finished with an error and produced the following completion message: ORACLE error 1400 in FDPSTP Cause: FDPSTP failed due to ORA-01400: cannot insert NULL into ("WIP"."WIP_DISCRETE_JOBS"."WIP_ENTITY_ID") ORA-06512: at "APPS.NAPESCO_CREATE_JOB", line 257 ORA-06512: at line 1 . line 257 is the insert statement
Published by: makdutakdu on February 14, 2011 12:56
Published by: makdutakdu on February 14, 2011 12:57EBS post pl related questions in the forums of the EBS - http://forums.oracle.com/forums/category.jspa?categoryID=3
WIP_ENTITY_ID is a NOT NULL column - so you'll need to insert a value in this column - http://etrm.oracle.com/pls/etrm/etrm_pnav.show_object?c_name=WIP_DISCRETE_JOBS&c_owner=WIP&c_type=TABLE
HTH
Srini -
Error ORA-01400 creation policy in AV 12 c
Hello
I have configured the host, the agent, collectors everything is ok and works, but when I try to create a strategy of the VA gives me this error:
ORA-01400: cannot insert NULL into ('AVSYS". "" "" AUDIT_SETTING_ARCHIVE_MAP '. "" ARCHIVE_ID')
ANY IDEA? NO MATTER WHAT SETTING I NEED TO CHECK FIRST?
THNKS FOR MORE INFORMATION!
Hello.!!
thnks... !!
Yes, I opened a SR and the response was the question in the note, so then oracle created the note:
Creating a strategy for auditing in 12 c AVDVF fails with error ORA-01400 (Doc ID 1680878.1)
-
Implementation of Ldap errors - ORA-01400, ERR-10480
Scott,
I get this error when you try to implement Ldap in active directory.
I use apex 3.2.0.00.27 and oracle database 10g Enterprise Edition Release 10.2.0.3.0
ORA-01400: cannot insert NULL into ("APEX_030200". «WWV_FLOW_USER_ACCESS_LOG2$ '.» ("' SECURITY_GROUP_ID")
ERR-10480 error cannot perform the function of verification of the authentication credentials.
Ok
Request 103 101 home edition page create Session activity Debug Hide Edit links see change it links
Location: f? p = 103:101:189300501816980¬ification_msg =
Invalid%20Login%20Credentials/4AA19826E86C3D0EE59CA6ED37F419D4/
My plsql function tests fine in sql developer.
I have read all the threads that I can find and I'm still not able to solve the problem
Here's my function less sensitive data.
create or replace
FUNCTION ldap_auth (p_username in varchar2, p_password in varchar2) return a Boolean value
is
-Set Variables-
l_ldap_host VARCHAR2 (512): = 'server ';
l_ldap_port PLS_INTEGER: = 389;
l_ldap_user VARCHAR2 (512): = "Cn = test_system, or = test accounts, dc is corp, dc = test, dc = com';"
l_ldap_passwd VARCHAR2 (512): = "password";
l_ldap_base VARCHAR2 (256): = 'dc = corp, dc = test, dc = com';
l_filter VARCHAR2 (100): = 'cn =' | p_username;
l_session DBMS_LDAP. SESSION;
l_res DBMS_LDAP. MESSAGE;
l_msg DBMS_LDAP. MESSAGE;
instantaneous VARCHAR2 (1000);
l_retval PLS_INTEGER;
l_retval2 PLS_INTEGER;
l_retval3 PLS_INTEGER;
l_attr DBMS_LDAP.string_collection;
BEGIN
l_retval: = - 1;
DBMS_LDAP.use_exception: = true;
BEGIN
-Connect to session-
l_session: = DBMS_LDAP.init (l_ldap_host, l_ldap_port);
-DBMS_OUTPUT.put_line (RPAD ('l_filter', 25, ' ') |) ': ' || l_filter);
-DBMS_OUTPUT.put_line (RPAD ('ldap session', 25, ' ') |) ': '||
-SUBSTR (l_session, 1, 16). -(renvoyées_par_init) ');
-DBMS_OUTPUT.put_line (RPAD ('user', 25, ' ') |) ': ' || p_username);
-Simple bind with service account
l_retval2: = DBMS_LDAP.simple_bind_s (l_session, l_ldap_user, l_ldap_passwd);
-DBMS_OUTPUT.put_line (RPAD ("S Binnd Simple", 25, ' ') |) ': ' || l_retval2);
-Search
l_retval: =.
DBMS_LDAP.search_s (ld = > l_session,)
Base = > l_ldap_base,
SCOPE = > DBMS_LDAP.scope_subtree,
filter = > l_filter,
uploading = > l_attr,
attronly = > 0,
RES = > l_res
);
-DBMS_OUTPUT.put_line (RPAD ('return search_s', 25, ' ') |) ': '|| To_char (l_retval));
-The county entered
l_retval: = DBMS_LDAP.count_entries (l_session, l_res);
-DBMS_OUTPUT.put_line (RPAD ("number of entries", 25,"'") | ': ' |) l_retval);
-Made the first entry
l_msg: = DBMS_LDAP.first_entry (l_session, l_res);
-DBMS_OUTPUT.put_line (RPAD ('l_msg,' 25, ' ') |) ': ' || l_msg);
-DBMS_OUTPUT.put_line (RPAD ('user', 25, ' ') |) ': ' || p_username);
-Do Dn
instantaneous: = DBMS_LDAP.get_dn (l_session, l_msg);
-DBMS_OUTPUT.put_line (RPAD ('instantaneous', 25, ' ') |) ': ' || instantaneous);
-Fact - unbind
l_retval3: = DBMS_LDAP.unbind_s (l_session);
RETURNS true;
EXCEPTION
WHILE OTHERS
THEN
l_retval3: = DBMS_LDAP.unbind_s (l_session);
RETURNS false;
END;
EXCEPTION
WHILE OTHERS
THEN
RETURNS false;
END ldap_auth;
On the login processing screen I have following information
LDAP host: Server
LDAP port: 389
LDAP dn string: % LDAP_USER %
LDAP username change function: return ldap_auth;
I also try to use access control, which worked correctly with the authentication request.
Any help would be appreciated.It seems that your authentication below is the full agreement. Why not take the ldap information as it is and only have the function with the parameter authentication scheme:
Authentication:
return ldap_auth -
Error ORA-01400 in application
Hello:
I get the following error when I try to create a new customer.
ORA-01400: cannot insert null into ('client.id")
It comes to my table structure:
ID number not Null PK
ClientID varchar2
client_code varchar2
client_name varchar2
I created a report that displays all the customers table. I also have a button CREATE on the report so my users can create new customers. The branches of button CREATE to the next page which is a form.
I click on CREATE and the form appears. Screen displays all fields except id which is the primary key and the area of items in Page rendering, it will appear as hidden.
I try to add a customer, click on create and I get the above message.
I changed the element id of hidden in the text field and attempted to create a new one and this time it worked.
Also, the id field should be autoincremented which I'm unable to understand how to configure. I have a sequence is created, ID2_SEQ. NEXTVAL, which, once I do a real insert via SQL statement * most ID field increments of one.
When I created the report, I couldn't find a way to make reference to this sequence for the button. I think that may have something to do with the fact that I'm not my error message insert a value for the primary key. Yet, in the APEX, I read that the primary key is not supposed to be editable. Here, I'm totally confused.
Basically when the user clicks CREATE, I want the following INSERT statement to work:
INSERT INTO customer (id, clienid, client_code, client_name) VALUES (id2.seq.nextval,: P1_clientid,: P1_client_code,: P1_client_name);
The APEX documentation is not very clear on how to do it.
Can someoene help out me? This should not be complicated.
Thanks for all the help.Hello
I hope I'm reading your code correctly... I think that your trigger must be:
CREATE OR REPLACE TRIGGER ENCRYPT_PW_T1 BEFORE INSERT OR UPDATE ON ENCRYPT_PW FOR EACH ROW BEGIN IF :NEW.PW_ID IS NULL THEN SELECT PW_ID2_SEQ.NEXTVAL INTO :NEW.PW_ID FROM DUAL; END IF; IF INSERTING THEN :NEW.PASSWORD := ENC_CLIENT.ENC_PASSWORD(:NEW.PASSWORD, :NEW.CLIENTID, 'OpenSesame'); ELSE IF :NEW.PASSWORD <> :OLD.PASSWORD THEN :NEW.PASSWORD := ENC_CLIENT.ENC_PASSWORD(:NEW.PASSWORD, :NEW.CLIENTID, 'OpenSesame'); END IF; END IF; END;
It will handle inserts and updates. The code should first check if a new PK PW_ID is necessary and set if it is. Then, for insertions only, it will encrypt the entered password - I assume here that the password will be "plain text" and requires encryption. For updates only, check if the current password matches the old password (comparing a new version decrypted with decrypted version) - if it does not (that is to say, the password has been changed), then update the password with the new encrypted password value.
Unfortunately, the package of dbms_crypto doesn't seem to be available on my workspace OTN (don't know why), so I have not been able to test this.
Andy
-
Hi all
your help is greatly appreciated...
Calling B.fucntion inside an A.fonctions to insert data into a table.
Here when you call the B.fucntion to insert data in the table... receiver AM a mistakeOmitted in B - SQL Error: ORA-14551: cannot perform a DML operation inside a query...
Can someone please help me to clarify this...
The FUNCTION A(varUPD_TYPE IN VARCHAR2) RETURN VARCHAR2 IS
varRETURN_VALUE VARCHAR2 (25): = NULL;numALLOWED_COUNT PROD. PROCESS_COUNTER. TYPE % ALLOWED_COUNT;
numLAST_COUNT_ADDED PROD. PROCESS_COUNTER. TYPE % LAST_COUNT_ADDED;
dtCHANGE_DATE DATE: = NULL;
varSTMT VARCHAR2 (2000);
bln_Allowed BOOLEAN;
myVar VARCHAR2 (32767).
BEGINIF varUPD_TYPE = "A" THEN
BEGIN
SELECT CH_DATE, LAST_COUNT_ADDED, ALLOWED_COUNT
IN dtCH_DATE, numLAST_COUNT_ADDED, numALLOWED_COUNT
PROD. PROCESS_COUNTER
WHERE NOM_PROCESSUS = "DAILY".
AND COUNTER_IND = A 'IF dtCH_DATE < = trunc (sysdate) THEN
numLAST_COUNT_ADDED: = 0;
END IF;EXCEPTION
WHILE OTHERS THEN
numLAST_COUNT_ADDED: = 0;
numALLOWED_COUNT: = 1;
END;
IF numALLOWED_COUNT > = numLAST_COUNT_ADDED + 1 THEN
bln_Allowed: = True;
varSTMT: = "UPDATE PROD. TMS_PROCESS_COUNTER ';
varSTMT: = varSTMT | ' SET last_count_added = ' | (numLAST_COUNT_ADDED + 1);
varSTMT: = varSTMT | "WHERE nom_processus =" DAILY "';
varSTMT: = varSTMT | "AND COUNTER_IND ="D"';
IF varSTMT IS NOT NULL
THEN
MyVar: = B(96,varSTMT);
PROC_LOG (' CALL B ': myVar);
IF myvar > 0 THEN
NULL;
END IF;
END IF;
On the other
End if;END IF;
EXCEPTION WHEN OTHERS THEN
PROC_LOG ("A failed '");
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS A NULL VALUE.
PUT AN END TO;The FUNCTION B(numTABLE_ID IN NUMBER, varSQL_STATEMENT IN VARCHAR2) RETURNS NUMBER IS
varINSERT_BATCH_STMT VARCHAR2 (32767): = NULL;
varADD_REC_TYPE BATCH_TABLES. TYPE % ADD_REC_TYPE;BEGIN
INSERT INTO BATCH_STATEMENT (ID, TABLE_ID, STATEMENT, QUEUE_SEQUENCE_ID)
VALUES (Numidian, numTABLE_ID, varSQL_STATEMENT, 1);EXCEPTION WHEN OTHERS THEN
PROC_LOG ('B failed');
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END B;
Structure of the Batch_statement table:
ID Number (15) not null
number (2) not null table_id
Statement varchar2 (4000) not null
Queue_sequence_id number (5) not nullWhy do you do such coding mess full of bad practices.
Remove the exceptions WHEN OTHERS, you're a turing a mistake in this way, they are bugs and (never) use functions to perform DML.
Functions are not intended for DML. Period.
-
SQL error: ORA-01779: cannot modify a column that matches a key examine
Hi all
The requirement is that I have two tables s_party_d and S_CONTACT_d. the need to update the column name with FST_NAME | ',' | Last_name when column rowid in both tables are equal. I used the query previously below: -.
Update
(select
E1. Name,
e.FST_NAME,
Select
Of
s_party_d e1,
E S_CONTACT_d
where
E1. Game of ROW_ID = e.ROW_ID)
name = FST_NAME | ',' | LAST_NAME;
But I get the error message when executing the query
Error in the command line: 31 column: 3
Error report:
SQL error: ORA-01779: cannot modify a column that is mapped to a table not preserved key
01779 00000 - 'impossible to change a column that is mapped to a non-preserved table at key'
* Cause: An attempt was made to insert or update columns in a join finds out who
map to a table not kept the key.
* Action: Change the directly underlying base tables.
Can U please tell me why this error and how to solve?
Thank you
MathonMathon wrote:
So, I have to look into some other method... I can't achieve this using a single update statement...
Well, no matter what you do you need to decide what FST_NAME | ',' | Name to use. As I already pointed out for each line of the line of the s_party_d table there are several rows in table S_CONTACT_d. Again, you must yo decide what S_CONTACT_d table row you want to use. For example:
update s_party_d e1 set e1.name = ( select max(e.FST_NAME) ||', '|| max(e.LAST_NAME) from S_CONTACT_d e where e1.ROW_ID=e.ROW_ID ) where e1.ROW_ID in ( select e.ROW_ID from S_CONTACT_d e ) /
SY.
-
Why I don't have the error: ORA-14551: cannot perform a DML operation inside a query
Hello
create table table_1 (phone number)
create or replace function function_a return number is l_rv number; begin l_rv := dbms_random.value(); insert into table_1 values(l_rv); return l_rv; end;
Select double function_a
Now, I get the error:
ORA-14551: cannot perform a DML operation inside a query
ORA-06512: at "FUNCTION_A", line 6
create the table table_2 (phone number)
insert into table_2 select function_a from dual
Now, I make the same mistake. It is to insert records into table_2
Can someone please clarify this?
Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production
Post edited by: O - O added: (select double function_a)
O - O wrote:
To be called from instructions SQL, stored function must obey "purity" following rules, which are intended to control the side effects:
- rule1) When it is called from a
SELECT
statement or a parallelizedINSERT
,UPDATE
, orDELETE
statement, the function cannot change database tables. - rule2) When it is called from a
INSERT
,UPDATE
, orDELETE
statement, the function cannot query or modify database tables modified by that statement.
Can you please explain this? I think that these statements are contradicted with
insert into select double function_a table_2
Now, I make the same mistake. It is to insert records into table_2
When your function is called by a select statement, an error is triggered because of rule1).
When your function is called in an insert statement, no error is raised. The insert does not work in parallel (this is an insert row after all). So rule1) is also not infringed. The insert is on the table2, change table1. Because it does not modify the same table rule2) is not violated. So no reason to trigger an error.
- rule1) When it is called from a
Maybe you are looking for
-
I have iPhone and the password not been excepted in2 iclowd.i just changed the pasword today he little yet ist except her and when you enter it doest except that it can sumone me 2 except that it tanks very much in advance Sorry for my bat English
-
Repair permissions on a partitioned drive
I have my disk partitioned, a Lion and the other partition with El Capitan. If I want to run disk utility and repair permissions, do it separately on each of these partitions, or all at once on the disc? Also, is it OK to run utilities disk to do thi
-
Z230 monitor problems - 2nd LTS
Hello Z230 SFFworkstation, K600, i4770, 8 MB of ram, windows 7 I have two dell monitors, if I connect one via the DVI port, it works very well. I can't get the 2nd monitor to work via the display ports. By not working, the screen remains white, the p
-
My wife and I I have phones and an I Pad on his account. The I-cloud and I-tunes are his accounts and we both use the same for the sharing of photos and contacts. My phone thinks I'm him and when I get calls or texts of others she sees / get them.
-
[DV6875SE House] Problem with cover remove
Hi all. I want to apply a thermalpaste of money on my cpu in my Pavilion dv6875se. I opened the manual for my laptop - http://h10032.www1.hp.com/ctg/Manual/c01295877.pdf and I did everything that I wanted to remove a top coating. I removed all the sc