Change in non based table record status does not propagate to block or form
Hi,
I have an non based table field (call it X) which mirrors an actual column in database. I found out that when I create a record in that block, X's record status will change to 'INSERT', but the block it resides in refuses to change its block_status to 'CHANGED'. In fact, get_block_property shows that the block_status is 'QUERY'.
This is causing a problem for me because I am relying on :system.form_status in my KEY_COMMIT trigger to find out if there is any changes.
Any hint/help/comment are greatly appreciated.
Thank you
Hi,
Here is my form:
KEY-COMMIT:
if :system.form_status = 'CHANGED' then
commit_form;
end if;
EMPLOYEE: (database table)
id (database field, invisible)
name (database field, invisible)
mirror_name (non database field, but mirroring name, visible)
salary (database field, invisible)
mirror_salary (non database field but mirroring salary, visible)
I would like to use the mirror fields to display information from employee.name and employee.salary on my form. Those mirror fields should capture insert, delete, update actions from user then pass them on to the actual database fields quietly in KEY-COMMIT trigger.
But the problem is when employee.mirror_name's status is INSERT, the block status remains as QUERY becuase employee.mirror_name is not a database field.
Thank you very much!
Similar Messages
-
BAPI_DOCUMENT_CHECKIN2-Status does not allow you to change certain data
Hi Gurus,
I am uploading the DIR attached files for the Documents in PLM. We have a custom program written to upload the attached files. When I tried to upload the file I am getting the BAPI Return error as "Status does not allow you to change certain data". The status of all the documents is "RL"
File format is
Doc type Document No Rev File Name
JPS 0021581PS, X, /in/PLM/JAPAN/Files/0021581PS.xls
Please help me I need to upload the data.
Thanks,
DeepthiCheck the status network for your doc type in config. You may find that the current status may not allow you to make changes. You may need to change the current status to another status before you can make the changes you would like.
The config settings will tell you the status you may set in order to make your changes, if they are allowed. -
Changed my Apple ID email, but ICloud does not recognize my new login, only my old one (which is now non-existent) and requires the password to do anything. Everytime I go onto the ICloud page it shows my old email and requires the password, but I can't exactly type in a password because that won't work. I can't find a way to change my email or delete ICloud.
If the old ID is an earlier version of your current ID, do the following:
Make sure you are signed into iMessage and FaceTime with your current ID. If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.) Now go to Settings>iCloud, turn off Find My iDevice and enter your current password when prompted (even though it prompts you for the password for your old ID). Then go to Settings>iCloud, tap Sign Out (or Delete Account if you are not running iOS 8) and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address back to the way it was. Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your device). -
Database startup showing ORA-00942: table or view does not exist in trace
Hi Friends,
SunOS 5.10 Generic_137112-06 i86pc i386 i86pc , 64 Bit
Oracle 10.2.0.1.0
While I am doing a startup, getting following error.
SQL> startup;
ORACLE instance started.
Total System Global Area 3221225472 bytes
Fixed Size 2122544 bytes
Variable Size 410819792 bytes
Database Buffers 2801795072 bytes
Redo Buffers 6488064 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forcedThe alert log shows the following
Errors in file /applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc:
ORA-00942: table or view does not exist
Error 942 happened during db open, shutting down database
USER: terminating instance due to error 942
Instance terminated by USER, pid = 11486
ORA-1092 signalled during: ALTER DATABASE OPEN...A look at the trace file shows this
/applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /applns/oracle
System name: SunOS
Node name: N890
Release: 5.10
Version: Generic_137112-06
Machine: i86pc
Instance name: CTSD1
Redo thread mounted by this instance: 1
Oracle process number: 23
Unix process pid: 11486, image: oracle@N890 (TNS V1-V3)
*** SERVICE NAME:() 2011-02-16 19:24:50.188
*** SESSION ID:(325.3) 2011-02-16 19:24:50.188
Successfully allocated 3 recovery slaves
Using 367 overflow buffers per recovery slave
Thread 1 checkpoint: logseq 45929, block 2, scn 310788795>cache-low rba: logseq 45929, block 3
>on-disk rba: logseq 45929, block 52, scn 310788832
>start recovery at logseq 45929, block 3, scn 0
----- Redo read statistics for thread 1 -----
Read rate (ASYNC): 24Kb in 0.31s => 0.08 Mb/sec
Total physical reads: 4096Kb
Longest record: 0Kb, moves: 0/61 (0%)
Longest LWN: 16Kb, moves: 0/3 (0%), moved: 0Mb
Last redo scn: 0x0000.128642df (310788831)
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
Longest hash chain = 1
Average hash chain = 4/4 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 117/121 = 1.0
*** 2011-02-16 19:24:50.515
KCRA: start recovery claims for 4 data blocks
*** 2011-02-16 19:24:50.515
KCRA: blocks processed = 4/4, claimed = 4, eliminated = 0
*** 2011-02-16 19:24:50.516
Recovery of Online Redo Log: Thread 1 Group 1 Seq 45929 Reading mem 0
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
Longest hash chain = 1
Average hash chain = 4/4 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 121/121 = 1.0
ORA-00942: table or view does not existI have searched MOS and Google, but didn;'t get any relevant results.
Also flushed my shared_pool as mentioned in (http://www.tanelpoder.com/files/oracle_rowcache.pdf) after mount and started , still no luck
Any help is appreciated
Thanks
SSNHi,
Thanks.
Tried log mining, but still couldn't find the culprit. I think now, I have to drop and create this db.Still wondering what might have happened.
select group#,status from v$log;
GROUP# STATUS
1 INACTIVE
3 INACTIVE
2 CURRENT
SQL> select group#,MEMBER from v$logfile where group#=2;
GROUP#
MEMBER
2
/applns/oracle/oradata/CTSD1/redo02.log
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo02.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.
SQL> select group#,MEMBER from v$logfile where group#=1;
GROUP#
MEMBER
1
/applns/oracle/oradata/CTSD1/redo01.log
1
/applns/oracle/oradata/CTSD1/redolog001.log
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo01.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redolog001.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.
SQL> select group#,MEMBER from v$logfile where group#=3
GROUP#
MEMBER
3
/applns/oracle/oradata/CTSD1/redo03.log
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo03.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.SSN -
ORA-00942: table or view does not exist show in defaultTrace. n .trc
When i checked my portal backend trace file today, i saw lots of below error trace:
#1.5 #0003BA78185F00400000004400001DE90004464D1AF14829#1203196885279#com.sap.sql.jdbc.direct.DirectPreparedStatement#sap.com/irj#com.sap.sql.jdbc.direct.DirectPreparedStatement#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#/System/Database/sql/jdbc/direct#Java#com.sap.sql_0003##SQL error occurred on connection epprd:EPP:SAPSR3DB: code=942, state="42000", message="ORA-00942: table or view does not exist
SQL statement is "INSERT INTO "SAPEPPDB"."NAV_HASHEDURLS" ("HASHEDVALUE","URL") VALUES (?,?)".
[EXCEPTION]
#6#942#42000#ORA-00942: table or view does not exist
#epprd:EPP:SAPSR3DB#INSERT INTO "SAPEPPDB"."NAV_HASHEDURLS" ("HASHEDVALUE","URL") VALUES (?,?)#java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3315)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3399)
at com.sap.sql.jdbc.basic.BasicPreparedStatement.executeUpdate(BasicPreparedStatement.java:103)
at com.sap.sql.jdbc.direct.DirectPreparedStatement.executeUpdate(DirectPreparedStatement.java:325)
at com.sap.sql.jdbc.common.CommonPreparedStatement.executeUpdate(CommonPreparedStatement.java:252)
at com.sapportals.portal.navigation.HashingServicesDBHandler.insertHashedValue(HashingServicesDBHandler.java:258)
at com.sapportals.portal.navigation.HashingServices._addHashedValueToDB(HashingServices.java:242)
at com.sapportals.portal.navigation.HashingServices.getHashedValue(HashingServices.java:77)
at com.sapportals.portal.navigation.NavigationService.getNavigationNodeHashedName(NavigationService.java:1814)
at com.sapportals.portal.navigation.NavigationNode.getHashedName(NavigationNode.java:347)
at com.sapportals.portal.navigation.DetailedNavigationTree.addNavigationNodeToTree(DetailedNavigationTree.java:926)
at com.sapportals.portal.navigation.DetailedNavigationTree.addNavigationNodesToTree(DetailedNavigationTree.java:909)
at com.sapportals.portal.navigation.DetailedNavigationTree.addNavNodeChildrenToTree(DetailedNavigationTree.java:863)
at com.sapportals.portal.navigation.DetailedNavigationTree.doOnNodeReady(DetailedNavigationTree.java:369)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:368)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:177)
at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:410)
at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:233)
at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:635)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:815)
at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:703)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:368)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
#1.5 #0003BA78185F00400000004500001DE90004464D1AF14ECE#1203196885290#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain###java.sql.SQLException: ORA-00942: table or view does not exist
#1.5 #0003BA78185F00400000004600001DE90004464D1AF15015#1203196885290#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)#
#1.5 #0003BA78185F00400000004700001DE90004464D1AF15123#1203196885291#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)#
#1.5 #0003BA78185F00400000004800001DE90004464D1AF15225#1203196885291#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)#
#1.5 #0003BA78185F00400000004900001DE90004464D1AF153BD#1203196885291#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)#
#1.5 #0003BA78185F00400000004A00001DE90004464D1AF154C8#1203196885292#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)#
#1.5 #0003BA78185F00400000004B00001DE90004464D1AF155D2#1203196885292#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)#
#1.5 #0003BA78185F00400000004C00001DE90004464D1AF156DC#1203196885292#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)#
#1.5 #0003BA78185F00400000004D00001DE90004464D1AF157E5#1203196885293#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3315)#
#1.5 #0003BA78185F00400000004E00001DE90004464D1AF1590A#1203196885293#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3399)#
#1.5 #0003BA78185F00400000004F00001DE90004464D1AF15A0F#1203196885293#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.sql.jdbc.basic.BasicPreparedStatement.executeUpdate(BasicPreparedStatement.java:103)#
#1.5 #0003BA78185F00400000005000001DE90004464D1AF15B33#1203196885293#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.sql.jdbc.direct.DirectPreparedStatement.executeUpdate(DirectPreparedStatement.java:325)#
#1.5 #0003BA78185F00400000005100001DE90004464D1AF15C3C#1203196885294#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.sql.jdbc.common.CommonPreparedStatement.executeUpdate(CommonPreparedStatement.java:252)#
#1.5 #0003BA78185F00400000005200001DE90004464D1AF15D46#1203196885294#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.HashingServicesDBHandler.insertHashedValue(HashingServicesDBHandler.java:258)#
#1.5 #0003BA78185F00400000005300001DE90004464D1AF15E4F#1203196885294#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.HashingServices._addHashedValueToDB(HashingServices.java:242)#
#1.5 #0003BA78185F00400000005400001DE90004464D1AF15F55#1203196885294#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.HashingServices.getHashedValue(HashingServices.java:77)#
#1.5 #0003BA78185F00400000005500001DE90004464D1AF1605C#1203196885295#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.NavigationService.getNavigationNodeHashedName(NavigationService.java:1814)#
#1.5 #0003BA78185F00400000005600001DE90004464D1AF16167#1203196885295#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.NavigationNode.getHashedName(NavigationNode.java:347)#
#1.5 #0003BA78185F00400000005700001DE90004464D1AF16275#1203196885295#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.DetailedNavigationTree.addNavigationNodeToTree(DetailedNavigationTree.java:926)#
#1.5 #0003BA78185F00400000005800001DE90004464D1AF16381#1203196885295#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.DetailedNavigationTree.addNavigationNodesToTree(DetailedNavigationTree.java:909)#
#1.5 #0003BA78185F00400000005900001DE90004464D1AF1648E#1203196885296#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.DetailedNavigationTree.addNavNodeChildrenToTree(DetailedNavigationTree.java:863)#
#1.5 #0003BA78185F00400000005A00001DE90004464D1AF16597#1203196885296#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.navigation.DetailedNavigationTree.doOnNodeReady(DetailedNavigationTree.java:369)#
#1.5 #0003BA78185F00400000005B00001DE90004464D1AF1669E#1203196885296#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)#
#1.5 #0003BA78185F00400000005C00001DE90004464D1AF167A7#1203196885297#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)#
#1.5 #0003BA78185F00400000005D00001DE90004464D1AF168AB#1203196885297#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:368)#
#1.5 #0003BA78185F00400000005E00001DE90004464D1AF169AF#1203196885297#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)#
#1.5 #0003BA78185F00400000005F00001DE90004464D1AF16AB3#1203196885297#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:177)#
#1.5 #0003BA78185F00400000006000001DE90004464D1AF16BB8#1203196885298#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:410)#
#1.5 #0003BA78185F00400000006100001DE90004464D1AF16CBB#1203196885298#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:233)#
#1.5 #0003BA78185F00400000006200001DE90004464D1AF16E30#1203196885298#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:635)#
#1.5 #0003BA78185F00400000006300001DE90004464D1AF16F39#1203196885298#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)#
#1.5 #0003BA78185F00400000006400001DE90004464D1AF17043#1203196885299#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:815)#
#1.5 #0003BA78185F00400000006500001DE90004464D1AF17148#1203196885299#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:703)#
#1.5 #0003BA78185F00400000006600001DE90004464D1AF1724F#1203196885299#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)#
#1.5 #0003BA78185F00400000006700001DE90004464D1AF173B2#1203196885300#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:368)#
#1.5 #0003BA78185F00400000006800001DE90004464D1AF1762B#1203196885300#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)#
#1.5 #0003BA78185F00400000006900001DE90004464D1AF17754#1203196885301#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)#
#1.5 #0003BA78185F00400000006A00001DE90004464D1AF17868#1203196885301#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)#
#1.5 #0003BA78185F00400000006B00001DE90004464D1AF17976#1203196885301#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)#
#1.5 #0003BA78185F00400000006C00001DE90004464D1AF17A78#1203196885301#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at java.security.AccessController.doPrivileged(Native Method)#
#1.5 #0003BA78185F00400000006D00001DE90004464D1AF17B7D#1203196885302#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)#
#1.5 #0003BA78185F00400000006E00001DE90004464D1AF17C81#1203196885302#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#
#1.5 #0003BA78185F00400000006F00001DE90004464D1AF17D85#1203196885302#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)#
#1.5 #0003BA78185F00400000007000001DE90004464D1AF17E8F#1203196885302#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#
#1.5 #0003BA78185F00400000007100001DE90004464D1AF17F92#1203196885303#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)#
#1.5 #0003BA78185F00400000007200001DE90004464D1AF1809A#1203196885303#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)#
#1.5 #0003BA78185F00400000007300001DE90004464D1AF181A4#1203196885303#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)#
#1.5 #0003BA78185F00400000007400001DE90004464D1AF182AD#1203196885303#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)#
#1.5 #0003BA78185F00400000007500001DE90004464D1AF183B3#1203196885304#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)#
#1.5 #0003BA78185F00400000007600001DE90004464D1AF184BB#1203196885304#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)#
#1.5 #0003BA78185F00400000007700001DE90004464D1AF185C1#1203196885304#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)#
#1.5 #0003BA78185F00400000007800001DE90004464D1AF186C6#1203196885305#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)#
#1.5 #0003BA78185F00400000007900001DE90004464D1AF187CE#1203196885305#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)#
#1.5 #0003BA78185F00400000007A00001DE90004464D1AF188DE#1203196885305#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)#
#1.5 #0003BA78185F00400000007B00001DE90004464D1AF18AAC#1203196885305#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)#
#1.5 #0003BA78185F00400000007C00001DE90004464D1AF18BB4#1203196885306#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at java.security.AccessController.doPrivileged(Native Method)#
#1.5 #0003BA78185F00400000007D00001DE90004464D1AF18CB7#1203196885306#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)#
#1.5 #0003BA78185F00400000007E00001DE90004464D1AF18DBB#1203196885306#System.err#sap.com/irj#System.err#PETER#42062##epprd_EPP_6267450#PETER#20a289a0dcd511dca39f0003ba78185f#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)#
It seems system try to insert record into table NAV_HASHEDURLS, this table belong to scheme SAPSR3DB, not SAPEPPDB, i don't know why this happens, any experts know how to change it and where it come from. I have another EP, don't have above error.
ThanksThis is a bug, see note Note 1140239 - Navigation short Urls aren't seen in short urls monitor
-
Scheduling error causing - ORA-00942: table or view does not exist
Hello
I have the following problem, I created an scenario that its supposed to run every 1 hour, it has an interface that moves an amount of records from one table to another (the amount of records is not fixed it changes). The problem arises when the amount of data to move is so big that the hour between executions is not enough and the scenario is still running when a second execution of the same scenario starts to run (as scheduled), so in the interface when the second process is trying to run the loading step it fails and I got the error ODI-1228 Caused By: java.sql.BatchUpdateException: ORA-00942: table or view does not exists. So the scenario fails and it logs this error. I think the error is due to the table in stage being locked by the first execution of the scenario.
I don't want to change the amount of time between executions because it is usually enough, I just want to avoid the execution of a scenario when there is another execution of the same scenario still running, is there any way to do this?.
Thanks
LJHello
Thanks for your answer, I already have the "Interval between repetitions" property set to 1 hour, but when one execution takes more than one hour the scheduler starts another and I have 2 processes accessing the same table and it is when I have a concurrence error on the staging table.
How can I ensure that I wont have two or more executions of the same scenario running at the same time?.
Thanks,
LJ -
I have a WebService which is invoked , the request is routed through the mideator to the DBAdapter .DBAdapter interacts with the database and replies the result.
I send in the CreditCardNumber in the request and recieve its Status (VALID,INVALID). i get this error every time . i have tried almost every thing to fix this . Please help me with same .
Below is the complete error stacktrace.
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . See root exception for the specific exception. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "942" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
Thanks in advanceCan you please check the following
a. check the JNDI Configuration. ( check for the value used for XADatasourceName )
b. check the Data source created for the User.
c. Incase you have updated the existing JNDI then you need to update the adapter with the New Deployment Plan.
Thanks,
Sunil Gopal -
My table of contents does not use the entry style I select for words in the paragraph that have character styles applied to them in the chapter, so some of the letters, specifically parameters, are showing up green, which is fine in the chapter but not in the TOC. I can manually fix this in the TOC by changing the character style to none after the toc has been generated, but I don't want to do this.
What application are you running? Please ask this in the forum of the product you're using.
-
How to handle ORA-00942: table or view does not exist
Hii All,
I'm trying to drop a table dynamically irrespective of its existence in a procedure. Its working fine when table exists but when table doesn't exist I'm facing following error
ORA-00942: table or view does not existI made use of pragma exception_init and modified my code as below
Create or replace Procedure sp_FSASA_FEEDUPLOAD_process
p_test_dir in varchar2,
p_feed_file_name in varchar2
is
l_exttable_str varchar2(32000) ;
l_log_file constant varchar2(200) := 'logfile_rgh.log';
l_table_doesnt_exist Exception;
pragma exception_init(l_table_doesnt_exist,-00492);
Begin
Begin
execute immediate 'drop table FSASA_FEEDUPLOAD_EXT purge' ;
Exception
when l_table_doesnt_exist then
null;
End;
l_exttable_str := 'Create table FSASA_FEEDUPLOAD_EXT ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' Category_No varchar2(1), ';
l_exttable_str := l_exttable_str||' Financial_Category varchar2(300), ';
l_exttable_str := l_exttable_str||' GFCID number, ';
l_exttable_str := l_exttable_str||' Balance number(34,14), ';
l_exttable_str := l_exttable_str||' Refernce_no varchar2(20), ';
l_exttable_str := l_exttable_str||' Account_no varchar2(20), ';
l_exttable_str := l_exttable_str||' ce_trans_id varchar2(20) ';
l_exttable_str := l_exttable_str||' ) ';
l_exttable_str := l_exttable_str||' Organization external ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' type oracle_loader ';
l_exttable_str := l_exttable_str||' default directory '||p_test_dir;
l_exttable_str := l_exttable_str||' Access parameters ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' records delimited by newline ';
l_exttable_str := l_exttable_str||'BADFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||'feed.bad '||q'[']' ;
l_exttable_str := l_exttable_str||'LOGFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||':feed.log '||q'[']' ;
l_exttable_str := l_exttable_str||q'[FIELDS TERMINATED BY X'09']';
l_exttable_str := l_exttable_str||' missing field values are null ';
l_exttable_str := l_exttable_str||')location('||q'[']'||p_feed_file_name||q'[']';
l_exttable_str := l_exttable_str||')' ;
l_exttable_str := l_exttable_str||' )Reject limit unlimited ';
dbg_print(l_log_file,'l_exttable_str : '||l_exttable_str);
execute immediate l_exttable_str;
End;But still I'm unable to get rid of it. Pls help me.
1)I need to drop it as I need to immediately create table with different file name and from different path.
2)The last thing I don't like to do is to check the table name in USER_OBJECTS and then drop.
3)Also suggest me whether creating an external table dynamically is correct approach or not.
4)Till now we were using utl_file for reading feed file but I'm much interested in using EXTERNAL TABLE concept.
5)As the filename and path gets changed I need to create my external table at runtime.
please suggest me whether I can alter my filename and path at runtimeYou will need to use WHEN OTHERS EXCEPTION handler which is not a good idea to do so if you dont handle the same approprialtly then the exception would go un-noticed:
SQL> ed
Wrote file afiedt.buf
1 begin
2 execute immediate 'drop table my_Test';
3 exception
4 when others then
5 dbms_output.put_line(SQLCODE||SQLERRM);
6* end;
SQL> /
-942ORA-00942: table or view does not exist
PL/SQL procedure successfully completed.
SQL> -
PL/SQL: ORA-00942: table or view does not exist
Hi
i have logged into my schema and trying to access the database "DAD" which has the table name "SCHOOL"
i wrote a function which should give me new_sno when i give it the old_sno
and i have this errors , pls help
CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
RETURN Number IS
NEW_SNO Number:=0;
BEGIN
SELECT new_sno AS NEW_SNO
FROM DAD.SCHOOL
WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
RETURN NEW_SNO;
END ORIG_SN;
Warning: Function created with compilation errors.
Errors for FUNCTION ORIG_SN:
LINE/COL ERROR
5/1 PL/SQL: SQL Statement ignored
6/15 PL/SQL: ORA-00942: table or view does not exist
Thanks in advance ..Try this,
CREATE VIEW SCHOOL_VIEW AS SELECT * FROM DAD.SCHOOL;and then change your function like
CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
RETURN Number IS
my_new_sno Number:=0;
BEGIN
SELECT new_sno INTO my_new_sno FROM SCHOOL_VIEW WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
RETURN my_new_sno;
END ORIG_SN;and see if it is getting created without any errors.
-Arun
Edited by: Arunkumar Ramamoorthy on Aug 15, 2009 1:56 AM -
Hi Geeks,
I have encountered an issue while starting up my database on 12c RAC.
Till mount it goes fine but when i attempt to open it throws me an error.
Total System Global Area 1.5400E+10 bytes
Fixed Size 4737560 bytes
Variable Size 2952791528 bytes
Database Buffers 1.2415E+10 bytes
Redo Buffers 26857472 bytes
Database mounted.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00942: table or view does not exist
Process ID: 11338068
Session ID: 1429 Serial number: 3
Here is the trace file output...
ORACLE_HOME = /oracle_home/app/orahome
System name: AIX
Node name: INS1
Release: 1
Version: 7
Machine: 00C8CCA74C00
Instance name: INST1
Redo thread mounted by this instance: 1
Oracle process number: 7
Unix process pid: 20381876, image: oracle@ins1 (TNS V1-V3)
*** 2014-11-27 22:49:20.892
*** SESSION ID:(197.5) 2014-11-27 22:49:20.892
*** CLIENT ID:() 2014-11-27 22:49:20.892
*** SERVICE NAME:() 2014-11-27 22:49:20.892
*** MODULE NAME:(sqlplus@ins1 (TNS V1-V3)) 2014-11-27 22:49:20.892
*** ACTION NAME:() 2014-11-27 22:49:20.892
2014-11-27 22:49:20.889716 : Start recovery for domain=0, valid=0, flags=0x4
*** 2014-11-27 22:49:24.580
Successfully allocated 32 recovery slaves
Using 3 overflow buffers per recovery slave
*** 2014-11-27 22:49:24.740
Thread 1 checkpoint: logseq 15, block 2, scn 3510749
cache-low rba: logseq 15, block 3
on-disk rba: logseq 15, block 72, scn 3510824
start recovery at logseq 15, block 3, scn 0
*** 2014-11-27 22:49:24.981
Started resilvering redo thread 1 seq 15 blocks 72-73
*** 2014-11-27 22:49:24.994
Completed resilvering redo thread 1 seq 15
*** 2014-11-27 22:49:24.994
Started writing zeroblks thread 1 seq 15 blocks 74-81
*** 2014-11-27 22:49:24.994
Completed writing zeroblks thread 1 seq 15
==== Redo read statistics for thread 1 ====
Total physical reads (from disk and memory): 4096Kb
-- Redo read_disk statistics --
Read rate (ASYNC): 35Kb in 0.25s => 0.14 Mb/sec
Longest record: 0Kb, moves: 0/104 (0%)
Longest LWN: 2Kb, moves: 0/33 (0%), moved: 0Mb
Last redo scn: 0x0000.0035922b (3510827)
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 151/176 = 0.9
*** 2014-11-27 22:49:25.007
KCRA: start recovery claims for 25 data blocks
*** 2014-11-27 22:49:25.039
KCRA: blocks processed = 25/25, claimed = 25, eliminated = 0
*** 2014-11-27 22:49:25.054
Recovery of Online Redo Log: Thread 1 Group 6 Seq 15 Reading mem 0
*** 2014-11-27 22:49:25.060
Completed redo application of 0.02MB
*** 2014-11-27 22:49:25.235
Completed recovery checkpoint
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 176/176 = 1.0
Recovery sets nab of thread 1 seq 15 to 74 with 8 zeroblks
*** 2014-11-27 22:49:26.000
2014-11-27 22:49:26.000433 : Validate domain 0
2014-11-27 22:49:26.001348 : Validated domain 0, flags = 0x0
*** 2014-11-27 22:49:28.315
Count of ofsmtab$: 0 entries
*** 2014-11-27 22:49:28.732
ORA-00942: table or view does not exist
ORA-00942: table or view does not exist
*** 2014-11-27 22:49:28.738
USER (ospid: 20381876): terminating the instance due to error 942In my case the issue has fixed by executing the following..
grant SELECT on SYS.USER$ to XDB;
grant SELECT on SYS.USER$ to CTXSYS;
grant SELECT on SYS.USER$ to DVSYS;
grant SELECT on SYS.USER$ to LBACSYS;
grant SELECT on SYS.USER$ to APEX_040200;
grant SELECT on SYS.USER$ to DV_SECANALYST;
Refer the above screen shot... -
Error in Upload file-table or view does not exist-wwv_flow_file_objects$
Hi,
i am trying to upload a file and then store the contents of the file into one of my tables in the schema.I wrote one package for uploading the file and then a process to insert each record in the uploaded file to the table in my schema.When i try compiling the package it gives an error.
PL/SQL: ORA-00942: table or view does not exist
The name of the table is wwv_flow_file_objects$
The package is as follows-
CREATE OR REPLACE PACKAGE BODY Text_File_Pkg AS
FUNCTION get_file_lines (
p_file_name IN VARCHAR2,
p_lines IN OUT line_tab_type,
p_rec_sep IN VARCHAR2 DEFAULT dos_new_line
) RETURN INTEGER
IS
v_binary_file BLOB;
v_text_file CLOB;
v_dest_offset INTEGER := 1;
v_src_offset INTEGER := 1;
v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
v_warning INTEGER;
v_rec_sep_len CONSTANT INTEGER := LENGTH(p_rec_sep);
v_start_pos INTEGER := 1;
v_end_pos INTEGER := 1;
v_line_num INTEGER := 1;
v_file_length INTEGER;
BEGIN
IF p_file_name IS NULL
THEN
RETURN 1;
END IF;
IF p_rec_sep IS NULL
THEN
RETURN 2;
END IF;
SELECT blob_content
INTO v_binary_file
FROM wwv_flow_file_objects$
WHERE NAME = p_file_name
AND (mime_type = 'text/plain' OR mime_type = 'application/octet-stream')
AND doc_size > 0;
DBMS_LOB.createtemporary(v_text_file, TRUE);
DBMS_LOB.converttoclob(v_text_file, v_binary_file,
DBMS_LOB.lobmaxsize, v_dest_offset,
v_src_offset, DBMS_LOB.default_csid,
v_lang_context, v_warning);
IF v_warning = DBMS_LOB.warn_inconvertible_char
THEN
-- Unable to convert file.
RETURN 3;
END IF;
v_file_length := DBMS_LOB.getlength(v_text_file);
LOOP
EXIT WHEN v_start_pos > v_file_length;
v_end_pos := DBMS_LOB.INSTR(v_text_file, p_rec_sep, v_start_pos);
IF v_end_pos = 0
THEN
v_end_pos := v_file_length + 1;
END IF;
IF (v_end_pos - v_start_pos) > 4000
THEN
-- Line exceeds 4000 characters.
RETURN 4;
END IF;
p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file, v_end_pos - v_start_pos, v_start_pos);
v_line_num := v_line_num + 1;
v_start_pos := v_end_pos + v_rec_sep_len;
END LOOP;
RETURN 0;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN 5;
END get_file_lines;
END Text_File_Pkg;
Any suggestions.
Many Thanks,
SanjaiHi,
i am trying to upload a file and then store the contents of the file into one of my tables in the schema.I wrote one package for uploading the file and then a process to insert each record in the uploaded file to the table in my schema.When i try compiling the package it gives an error.
PL/SQL: ORA-00942: table or view does not exist
The name of the table is wwv_flow_file_objects$
The package is as follows-
CREATE OR REPLACE PACKAGE BODY Text_File_Pkg AS
FUNCTION get_file_lines (
p_file_name IN VARCHAR2,
p_lines IN OUT line_tab_type,
p_rec_sep IN VARCHAR2 DEFAULT dos_new_line
) RETURN INTEGER
IS
v_binary_file BLOB;
v_text_file CLOB;
v_dest_offset INTEGER := 1;
v_src_offset INTEGER := 1;
v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
v_warning INTEGER;
v_rec_sep_len CONSTANT INTEGER := LENGTH(p_rec_sep);
v_start_pos INTEGER := 1;
v_end_pos INTEGER := 1;
v_line_num INTEGER := 1;
v_file_length INTEGER;
BEGIN
IF p_file_name IS NULL
THEN
RETURN 1;
END IF;
IF p_rec_sep IS NULL
THEN
RETURN 2;
END IF;
SELECT blob_content
INTO v_binary_file
FROM wwv_flow_file_objects$
WHERE NAME = p_file_name
AND (mime_type = 'text/plain' OR mime_type = 'application/octet-stream')
AND doc_size > 0;
DBMS_LOB.createtemporary(v_text_file, TRUE);
DBMS_LOB.converttoclob(v_text_file, v_binary_file,
DBMS_LOB.lobmaxsize, v_dest_offset,
v_src_offset, DBMS_LOB.default_csid,
v_lang_context, v_warning);
IF v_warning = DBMS_LOB.warn_inconvertible_char
THEN
-- Unable to convert file.
RETURN 3;
END IF;
v_file_length := DBMS_LOB.getlength(v_text_file);
LOOP
EXIT WHEN v_start_pos > v_file_length;
v_end_pos := DBMS_LOB.INSTR(v_text_file, p_rec_sep, v_start_pos);
IF v_end_pos = 0
THEN
v_end_pos := v_file_length + 1;
END IF;
IF (v_end_pos - v_start_pos) > 4000
THEN
-- Line exceeds 4000 characters.
RETURN 4;
END IF;
p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file, v_end_pos - v_start_pos, v_start_pos);
v_line_num := v_line_num + 1;
v_start_pos := v_end_pos + v_rec_sep_len;
END LOOP;
RETURN 0;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN 5;
END get_file_lines;
END Text_File_Pkg;
Any suggestions.
Many Thanks,
Sanjai -
Not able to create EM repository - ORA-00942: table or view does not exist
-bash-3.00$ emca -config dbcontrol db -repos recreate
STARTED EMCA at 2010-06-02 12:12:29
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: eric1
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
You have specified the following settings
Database ORACLE_HOME ................ /oracle/product/10.2.0/db_1
Database hostname ................ solx
Listener port number ................ 1521
Database SID ................ eric1
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
Do you wish to continue? [yes(Y)/no(N)]: Y
2010-06-02 12:12:52 oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log.
2010-06-02 12:13:02 oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_<date>.log for more details.
2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.
Could not complete the configuration. Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.So I looked into a log file: /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log
Here is an end of it ( I can paste all log file if necessary but it is very long):
CONFIG: Starting execution: /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 51
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Enter SYS user's password :
Enter repository user password :
Getting temporary tablespace from database...
prepare(SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE'): ORA-00942: table or view does not exist (DBD ERROR: error possibly near <*> indicator at char 28 in 'SELECT tablespace_name FROM <*>dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE'')
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: stty: : No such device or address
stty: : No such device or address
stty: : No such device or address
stty: : No such device or address
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_<date>.log for more details.
2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.
2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error dropping the repository
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:176)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:127)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)...and here I can easly see that error: ORA-00942: table or view does not exist.
But what does it mean to me ? I mean what should I ro to create/recreate missing table or view ?Hi, so here are my tries:
1. admin:
Below Dirs dont not exist:
<ORACLE_HOME>/<hostname_sid>
<ORACLE_HOME>/oc4j/j2ee/OC4J_DBConsole_<hostname>_<sid>
...also it was unable to drop user - does not exist
-bash-3.00$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 12:55:44 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.2.0 - Production
SQL> sqlplus "/as sysdba"
drop user sysman cascade;
drop role MGMT_USER;
drop user MGMT_VIEW cascade;
drop public synonym MGMT_TARGET_BLACKOUTS;
drop public synonym SETEMVIEWUSERCONTEXT;
SP2-0734: unknown command beginning "sqlplus "/..." - rest of line ignored.
SQL> drop user sysman cascade
ERROR at line 1:
ORA-01918: user 'SYSMAN' does not exist
SQL> drop role MGMT_USER
ERROR at line 1:
ORA-01919: role 'MGMT_USER' does not exist
SQL> drop user MGMT_VIEW cascade
ERROR at line 1:
ORA-01918: user 'MGMT_VIEW' does not exist
SQL> drop public synonym MGMT_TARGET_BLACKOUTS
ERROR at line 1:
ORA-01432: public synonym to be dropped does not exist
SQL> drop public synonym SETEMVIEWUSERCONTEXT
ERROR at line 1:
ORA-01432: public synonym to be dropped does not exist
{code}
I also tried this:
2. coskan
{code}
-bash-3.00$ sqlplus sys/qaz123@eric1 as sysdba
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 12:51:34 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.2.0 - Production
SQL> SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE';
SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE'
ERROR at line 1:
ORA-00942: table or view does not exist
{code} -
Header ID does not exist on this record or does not match ID
Hi ,
I'm trying to import the sales order using OE_ORDER_PUB.process_order() API. If all my orders has equal no. of lines, I can able to import all the orders at one stoke. But if each order has different no. of lines, I'm unable to import all the orders at single stoke. At first run, certain no. of records are getting processed and remaining records are ending up with error stating *'Header ID does not exist on this record or does not match ID specified on header record. You require a valid header ID if the operation is Create*'. If I re-execute the errored records, its getting processed successfully.
Please help me in getting it resolved.
Find below the procedure code which I'm using to import sales order.
CREATE OR REPLACE PROCEDURE XXRT_SALES_ORDER (ERRBUF VARCHAR2, RETCODE NUMBER)
AS
l_header_rec OE_ORDER_PUB.Header_Rec_Type;
l_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
l_line_adj_tbl OE_ORDER_PUB.Line_Adj_Tbl_Type;
l_return_status varchar2(200);
l_msg_count number;
l_msg_data varchar2(20000);
l_header_val_rec OE_ORDER_PUB.Header_Val_Rec_Type;
l_Header_Adj_tbl OE_ORDER_PUB.Header_Adj_Tbl_Type;
l_Header_Adj_val_tbl OE_ORDER_PUB.Header_Adj_Val_Tbl_Type;
l_Header_price_Att_tbl OE_ORDER_PUB.Header_Price_Att_Tbl_Type;
l_Header_Adj_Att_tbl OE_ORDER_PUB.Header_Adj_Att_Tbl_Type;
l_Header_Adj_Assoc_tbl OE_ORDER_PUB.Header_Adj_Assoc_Tbl_Type;
l_Header_Scredit_tbl OE_ORDER_PUB.Header_Scredit_Tbl_Type;
l_Header_Scredit_val_tbl OE_ORDER_PUB.Header_Scredit_Val_Tbl_Type;
l_line_val_tbl OE_ORDER_PUB.Line_Val_Tbl_Type;
l_Line_Adj_val_tbl OE_ORDER_PUB.Line_Adj_Val_Tbl_Type;
l_Line_price_Att_tbl OE_ORDER_PUB.Line_Price_Att_Tbl_Type;
l_Line_Adj_Att_tbl OE_ORDER_PUB.Line_Adj_Att_Tbl_Type;
l_Line_Adj_Assoc_tbl OE_ORDER_PUB.Line_Adj_Assoc_Tbl_Type;
l_Line_Scredit_tbl OE_ORDER_PUB.Line_Scredit_Tbl_Type;
l_Line_Scredit_val_tbl OE_ORDER_PUB.Line_Scredit_Val_Tbl_Type;
l_Lot_Serial_tbl OE_ORDER_PUB.Lot_Serial_Tbl_Type;
l_Lot_Serial_val_tbl OE_ORDER_PUB.Lot_Serial_Val_Tbl_Type;
l_action_request_tbl OE_ORDER_PUB.Request_Tbl_Type;
v_remarks varchar2(250);
v_count number;
v_transaction_type number;
v_cust_id number;
v_invoice_to number;
v_ship_to number;
v_itemid1 number;
v_itemid2 number;
v_itemid3 number;
v_itemid4 number;
v_itemid5 number;
v_item_type1 varchar2(15);
v_item_type2 varchar2(15);
v_item_type3 varchar2(15);
v_item_type4 varchar2(15);
v_item_type5 varchar2(15);
cursor c_data_val is select * from XXSC_SALES_ORDER_IMPORT
where process_flag='N';
cursor c_data is select * from XXSC_SALES_ORDER_IMPORT
where process_flag='N';
Begin
fnd_global.apps_initialize(1681,51411,660);
for c_data_val_rec in c_data_val
loop
v_remarks:=NULL;
select count(*) into v_count from apps.oe_order_headers_all
where cust_po_number=c_data_val_rec.iwb_no;
if v_count > 0 then
v_remarks:='Customer PO already used';
end if;
BEGIN
select transaction_type_id into v_transaction_type
from apps.OE_TRANSACTION_TYPES_tl
where name like c_data_val_rec.BILL_TO||'-DOMESTIC';
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_remarks:=v_remarks||'Invalid trans type';
END;
BEGIN
select cust_account_id into v_cust_id
from apps.hz_cust_accounts hca,
apps.hz_parties hp
where hca.party_id=hp.party_id
and hp.party_name=c_data_val_rec.CUSTOMER_NAME;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_remarks:=v_remarks||'Invalid Customer name';
END;
BEGIN
select SITE_USE_ID into v_invoice_to
from apps.hz_parties hp,
apps.hz_party_sites_v hps,
apps.hz_cust_acct_sites_all hcasa,
apps.hz_cust_site_uses_all hcsua
where
party_name=c_data_val_rec.CUSTOMER_NAME
and hp.party_id=hps.party_id
and hps.address1 like '%'||c_data_val_rec.BILL_TO||'%'
and hps.site_use_type='BILL_TO'
and hps.party_site_id=hcasa.party_site_id
and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
and SITE_USE_CODE='BILL_TO'
and hcsua.Status='A';
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid BILL_TO';
END;
BEGIN
select SITE_USE_ID into v_ship_to
from apps.hz_parties hp,
apps.hz_party_sites_v hps,
apps.hz_cust_acct_sites_all hcasa,
apps.hz_cust_site_uses_all hcsua
where
party_name=c_data_val_rec.CUSTOMER_NAME
and hp.party_id=hps.party_id
and hps.address1 like '%'||c_data_val_rec.SHIP_TO||'%'
and hps.site_use_type='SHIP_TO'
and hps.party_site_id=hcasa.party_site_id
and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
and SITE_USE_CODE='SHIP_TO'
and hcsua.Status='A';
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid SHIP_TO';
END;
IF c_data_val_rec.item1 is not null then
BEGIN
select distinct inventory_item_id into v_itemid1
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item1;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid ITEM1';
END;
BEGIN
select distinct Item_type into v_item_type1
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item1;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid Itemtype1';
END;
END IF;
IF c_data_val_rec.item2 is not null then
BEGIN
select distinct inventory_item_id into v_itemid2
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item2;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid ITEM2';
END;
BEGIN
select distinct Item_type into v_item_type2
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item2;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid Itemtype2';
END;
END IF;
IF c_data_val_rec.item3 is not null then
BEGIN
select distinct inventory_item_id into v_itemid3
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item3;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid ITEM3';
END;
BEGIN
select distinct Item_type into v_item_type3
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item3;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid Itemtype3';
END;
END IF;
IF c_data_val_rec.item4 is not null then
BEGIN
select distinct inventory_item_id into v_itemid4
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item4;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid ITEM4';
END;
BEGIN
select distinct inventory_item_id into v_item_type4
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item4;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid Itemtype4';
END;
END IF;
IF c_data_val_rec.item5 is not null then
BEGIN
select distinct inventory_item_id into v_itemid5
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item5;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid ITEM5';
END;
BEGIN
select distinct inventory_item_id into v_item_type5
from apps.mtl_system_items_b
where segment1=c_data_val_rec.item5;
EXCEPTION
WHEN OTHERS THEN
v_remarks:=v_remarks||'Invalid Itemtype5';
END;
END IF;
IF v_remarks is not null then
update XXSC_SALES_ORDER_IMPORT
set process_flag='E', remarks=v_remarks
where iwb_no=c_data_val_rec.iwb_no;
commit;
END IF;
end loop;
for c_data_rec in c_data
loop
select transaction_type_id into v_transaction_type
from OE_TRANSACTION_TYPES_tl
where name like c_data_rec.BILL_TO||'-DOMESTIC';
select cust_account_id into v_cust_id
from hz_cust_accounts hca,
hz_parties hp
where hca.party_id=hp.party_id
and hp.party_name=c_data_rec.CUSTOMER_NAME;
select SITE_USE_ID into v_invoice_to
from hz_parties hp,
hz_party_sites_v hps,
hz_cust_acct_sites_all hcasa,
hz_cust_site_uses_all hcsua
where
party_name=c_data_rec.CUSTOMER_NAME
and hp.party_id=hps.party_id
and hps.address1 like '%'||c_data_rec.BILL_TO||'%'
and hps.site_use_type='BILL_TO'
and hps.party_site_id=hcasa.party_site_id
and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
and SITE_USE_CODE='BILL_TO'
and hcsua.Status='A';
select SITE_USE_ID into v_ship_to
from hz_parties hp,
hz_party_sites_v hps,
hz_cust_acct_sites_all hcasa,
hz_cust_site_uses_all hcsua
where
party_name=c_data_rec.CUSTOMER_NAME
and hp.party_id=hps.party_id
and hps.address1 like '%'||c_data_rec.SHIP_TO||'%'
and hps.site_use_type='SHIP_TO'
and hps.party_site_id=hcasa.party_site_id
and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
and SITE_USE_CODE='SHIP_TO'
and hcsua.Status='A';
IF c_data_rec.item1 is not null then
select distinct inventory_item_id into v_itemid1
from apps.mtl_system_items_b
where segment1=c_data_rec.item1;
select distinct Item_type into v_item_type1
from apps.mtl_system_items_b
where segment1=c_data_rec.item1;
ELSE
v_itemid1:= null;
v_item_type1:= null;
END IF;
IF c_data_rec.item2 is not null then
select distinct inventory_item_id into v_itemid2
from apps.mtl_system_items_b
where segment1=c_data_rec.item2;
select distinct Item_type into v_item_type2
from apps.mtl_system_items_b
where segment1=c_data_rec.item2;
ELSE
v_itemid2:=null;
v_item_type2:= null;
END IF;
IF c_data_rec.item3 is not null then
select distinct inventory_item_id into v_itemid3
from apps.mtl_system_items_b
where segment1=c_data_rec.item3;
select distinct Item_type into v_item_type3
from apps.mtl_system_items_b
where segment1=c_data_rec.item3;
ELSE
v_itemid3:=null;
v_item_type3:=null;
END IF;
IF c_data_rec.item4 is not null then
select distinct inventory_item_id into v_itemid4
from apps.mtl_system_items_b
where segment1=c_data_rec.item4;
select distinct Item_type into v_item_type4
from apps.mtl_system_items_b
where segment1=c_data_rec.item4;
ELSE
v_itemid4:= null;
v_item_type4:= null;
END IF;
IF c_data_rec.item5 is not null then
select distinct inventory_item_id into v_itemid5
from apps.mtl_system_items_b
where segment1=c_data_rec.item5;
select distinct Item_type into v_item_type5
from apps.mtl_system_items_b
where segment1=c_data_rec.item5;
ELSE
v_itemid5:= null;
v_item_type5:= null;
END IF;
l_header_rec := OE_ORDER_PUB.G_MISS_HEADER_REC; -- Required attributes (e.g. Order Type and Customer)
l_header_rec.order_type_id := v_transaction_type;
l_header_rec.ordered_date := c_data_rec.iwb_date;
l_header_rec.sold_to_org_id := v_cust_id;
l_header_rec.price_list_id := 93174;
l_header_rec.cust_po_number := c_data_rec.iwb_no;
l_header_rec.ship_to_org_id := v_ship_to;
l_header_rec.invoice_to_org_id := v_invoice_to;
l_header_rec.CONTEXT:='566' ;
l_header_rec.ATTRIBUTE1:=c_data_rec.DELIVERY_TYPE;
-- l_header_rec.freight_term_code = NULL;
l_header_rec.operation := OE_GLOBALS.G_OPR_CREATE;
-- FIRST LINE RECORD. Initialize record to missing
if c_data_rec.item1 is not null and
c_data_rec.item2 is not null and
c_data_rec.item3 is not null and
c_data_rec.item4 is not null and
c_data_rec.item5 is not null then
l_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(1).inventory_item_id :=v_itemid1;
l_line_tbl(1).ordered_quantity := c_data_rec.quantity1;
l_line_tbl(1).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(1).UNIT_SELLING_PRICE := c_data_rec.price1;
l_line_tbl(1).UNIT_LIST_PRICE := c_data_rec.price1;
l_line_tbl(1).attribute13:= v_item_type1;
l_line_tbl(1).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- SECOND LINE RECORD
--elsif c_data_rec.item2 is not null then
l_line_tbl(2) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(2).inventory_item_id := v_itemid2;
l_line_tbl(2).ordered_quantity := c_data_rec.quantity2;
l_line_tbl(2).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(2).UNIT_SELLING_PRICE := c_data_rec.price2;
l_line_tbl(2).UNIT_LIST_PRICE := c_data_rec.price2;
l_line_tbl(2).attribute13:=v_item_type2;
l_line_tbl(2).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- THIRD LINE RECORD
--elsif c_data_rec.item3 is not null then
l_line_tbl(3) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(3).inventory_item_id := v_itemid3;
l_line_tbl(3).ordered_quantity := c_data_rec.quantity3;
l_line_tbl(3).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(3).UNIT_SELLING_PRICE := c_data_rec.price3;
l_line_tbl(3).UNIT_LIST_PRICE := c_data_rec.price3;
l_line_tbl(3).attribute13:=v_item_type3;
l_line_tbl(3).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- FOURTH LINE RECORD
--elsif c_data_rec.item4 is not null then
l_line_tbl(4) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(4).inventory_item_id := v_itemid4;
l_line_tbl(4).ordered_quantity := c_data_rec.quantity4;
l_line_tbl(4).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(4).UNIT_SELLING_PRICE := c_data_rec.price4;
l_line_tbl(4).UNIT_LIST_PRICE := c_data_rec.price4;
l_line_tbl(4).attribute13:=v_item_type4;
l_line_tbl(4).operation := OE_GLOBALS.G_OPR_CREATE;
--END IF;
-- FIFTH LINE RECORD
--elsif c_data_rec.item5 is not null then
l_line_tbl(5) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(5).inventory_item_id := v_itemid5;
l_line_tbl(5).ordered_quantity := c_data_rec.quantity5;
l_line_tbl(5).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(5).UNIT_SELLING_PRICE := c_data_rec.price5;
l_line_tbl(5).UNIT_LIST_PRICE := c_data_rec.price5;
l_line_tbl(5).attribute13:= v_item_type5;
l_line_tbl(5).operation := OE_GLOBALS.G_OPR_CREATE;
elsif c_data_rec.item1 is not null and
c_data_rec.item2 is not null and
c_data_rec.item3 is not null and
c_data_rec.item4 is not null then
l_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(1).inventory_item_id :=v_itemid1;
l_line_tbl(1).ordered_quantity := c_data_rec.quantity1;
l_line_tbl(1).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(1).UNIT_SELLING_PRICE := c_data_rec.price1;
l_line_tbl(1).UNIT_LIST_PRICE := c_data_rec.price1;
l_line_tbl(1).attribute13:= v_item_type1;
l_line_tbl(1).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- SECOND LINE RECORD
--elsif c_data_rec.item2 is not null then
l_line_tbl(2) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(2).inventory_item_id := v_itemid2;
l_line_tbl(2).ordered_quantity := c_data_rec.quantity2;
l_line_tbl(2).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(2).UNIT_SELLING_PRICE := c_data_rec.price2;
l_line_tbl(2).UNIT_LIST_PRICE := c_data_rec.price2;
l_line_tbl(2).attribute13:=v_item_type2;
l_line_tbl(2).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- THIRD LINE RECORD
--elsif c_data_rec.item3 is not null then
l_line_tbl(3) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(3).inventory_item_id := v_itemid3;
l_line_tbl(3).ordered_quantity := c_data_rec.quantity3;
l_line_tbl(3).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(3).UNIT_SELLING_PRICE := c_data_rec.price3;
l_line_tbl(3).UNIT_LIST_PRICE := c_data_rec.price3;
l_line_tbl(3).attribute13:=v_item_type3;
l_line_tbl(3).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- FOURTH LINE RECORD
--elsif c_data_rec.item4 is not null then
l_line_tbl(4) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(4).inventory_item_id := v_itemid4;
l_line_tbl(4).ordered_quantity := c_data_rec.quantity4;
l_line_tbl(4).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(4).UNIT_SELLING_PRICE := c_data_rec.price4;
l_line_tbl(4).UNIT_LIST_PRICE := c_data_rec.price4;
l_line_tbl(4).attribute13:=v_item_type4;
l_line_tbl(4).operation := OE_GLOBALS.G_OPR_CREATE;
elsif c_data_rec.item1 is not null and
c_data_rec.item2 is not null and
c_data_rec.item3 is not null then
l_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(1).inventory_item_id :=v_itemid1;
l_line_tbl(1).ordered_quantity := c_data_rec.quantity1;
l_line_tbl(1).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(1).UNIT_SELLING_PRICE := c_data_rec.price1;
l_line_tbl(1).UNIT_LIST_PRICE := c_data_rec.price1;
l_line_tbl(1).attribute13:= v_item_type1;
l_line_tbl(1).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- SECOND LINE RECORD
--elsif c_data_rec.item2 is not null then
l_line_tbl(2) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(2).inventory_item_id := v_itemid2;
l_line_tbl(2).ordered_quantity := c_data_rec.quantity2;
l_line_tbl(2).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(2).UNIT_SELLING_PRICE := c_data_rec.price2;
l_line_tbl(2).UNIT_LIST_PRICE := c_data_rec.price2;
l_line_tbl(2).attribute13:=v_item_type2;
l_line_tbl(2).operation := OE_GLOBALS.G_OPR_CREATE;
--end if;
-- THIRD LINE RECORD
--elsif c_data_rec.item3 is not null then
l_line_tbl(3) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(3).inventory_item_id := v_itemid3;
l_line_tbl(3).ordered_quantity := c_data_rec.quantity3;
l_line_tbl(3).CALCULATE_PRICE_FLAG :='N';
l_line_tbl(3).UNIT_SELLING_PRICE := c_data_rec.price3;
l_line_tbl(3).UNIT_LIST_PRICE := c_data_rec.price3;
l_line_tbl(3).attribute13:=v_item_type3;
l_line_tbl(3).operation := OE_GLOBALS.G_OPR_CREATE;
end if;
-- CALL TO PROCESS ORDER
OE_Order_PUB.Process_Order(
p_api_version_number=>1.0,
p_header_rec => l_header_rec,
p_line_tbl=> l_line_tbl,
p_line_adj_tbl=> l_line_adj_tbl,
-- OUT variables,
x_header_rec =>l_header_rec
, x_header_val_rec =>l_header_val_rec
, x_Header_Adj_tbl =>l_Header_Adj_tbl
, x_Header_Adj_val_tbl =>l_Header_Adj_val_tbl
, x_Header_price_Att_tbl =>l_Header_price_Att_tbl
, x_Header_Adj_Att_tbl =>l_Header_Adj_Att_tbl
, x_Header_Adj_Assoc_tbl =>l_Header_Adj_Assoc_tbl
, x_Header_Scredit_tbl =>l_Header_Scredit_tbl
, x_Header_Scredit_val_tbl=>l_Header_Scredit_val_tbl
, x_line_tbl =>l_line_tbl
, x_line_val_tbl =>l_line_val_tbl
, x_Line_Adj_tbl =>l_Line_Adj_tbl
, x_Line_Adj_val_tbl =>l_Line_Adj_val_tbl
, x_Line_price_Att_tbl =>l_Line_price_Att_tbl
, x_Line_Adj_Att_tbl =>l_Line_Adj_Att_tbl
, x_Line_Adj_Assoc_tbl =>l_Line_Adj_Assoc_tbl
, x_Line_Scredit_tbl =>l_Line_Scredit_tbl
, x_Line_Scredit_val_tbl =>l_Line_Scredit_val_tbl
, x_Lot_Serial_tbl =>l_Lot_Serial_tbl
, x_Lot_Serial_val_tbl =>l_Lot_Serial_val_tbl
, x_action_request_tbl =>l_action_request_tbl,
x_return_status=> l_return_status,
x_msg_count=> l_msg_count,
x_msg_data=> l_msg_data);
if l_msg_count > 0 then
for l_index in 1..l_msg_count loop
l_msg_data := oe_msg_pub.get(p_msg_index => l_index, p_encoded => 'F');
update XXSC_SALES_ORDER_IMPORT
set process_flag='E',remarks=l_msg_data
where iwb_no=c_data_rec.iwb_no;
commit;
dbms_output.put_line('Order Failed.'||l_msg_data);
end loop;
end if;
-- Check the return status
if l_return_status = FND_API.G_RET_STS_SUCCESS then
update XXSC_SALES_ORDER_IMPORT
set process_flag='Y',ORDER_NUMBER=l_header_rec.order_number,remarks='SUCCESS'
where iwb_no=c_data_rec.iwb_no;
commit;
fnd_file.put_line (fnd_file.output,'Order no:'||l_header_rec.order_number||' Created for the IWB no:'||c_data_rec.iwb_no);
dbms_output.put_line('Order..'||l_header_rec.order_number);
Else
dbms_output.put_line('Order Failed.');
end if;
commit;
END LOOP;
End;
/Your code always sends 4 line records with each header. Code is not checking if it belongs to same header or not. Please check your code.
-
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am getting currently getting an error when I try and insert into a table from a different schema from my Stored Procedure:
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am explicitly calling the table with the schema name infront i.e.
INSERT INTO SAPSR3.ZTREC_NAME_TYPE
MASTER_ID,
NAME_TYPE,
FAMILY_NAME,
FIRST_NAME,
MIDDLE_NAME,
TITLE
VALUES
In_MasterID,
In_NameType,
In_FamilyName,
In_FirstName,
In_MiddleName,
In_Title
I only get this error when I try and compile my stored procedure. If I try this insert not within a stored procedure (i.e. a blank script) it works perfectly.
Can anyone tell me what Im doing wrong?
Thanks.Hi,
It sounds like you (the procedure owner) have privileges on that table only through a role.
Roles don't count in stored procedures created with AUTHID OWNER (which is the default).
Either
(1) Have user SAPSR3 grant the necessary privileges directly to you (or to PUBLIC), or
(2) change the procedure so that it runs with the caller's privileges, by adding AUTHID CURRENT_USER after the argument list but before the keyword IS (os AS) like this:
CREATE OR REPLACE PROCEDURE foo
( x IN NUMBER
AUTHID CURRENT_USER
IS ...
Maybe you are looking for
-
App hits a point and stops downloading
Hi guys, Trying to download "NeverWinter Nights 2" through the App Store, once it hits the 43.88MBs of 4.33GBs it stops and doesn't download any more. Tried restarting the laptop, deleting the app, etc. and nothing seems to do the trick! Any suggesti
-
Why can I not create a PHP Form Variable binding in Dreamweaver CS6?
I'm using Dreamweaver CS6 on Windows 7. Currently, I'm following along with Lynda.com tutorial: Dreamweaver with PHP and MySQL: Ch. 6. Building Data Entry Forms | Handling form submissions with PHP I'm attempting to add a form variable binding to a
-
What printer server password do i need to set up wireless printing?
trying to set up wireless printing. asking for printer server password-- where can i find this?
-
whenever i open my laptop it comes with an option for login to to wifi network with no option of minimizing that window. i got irritated sometimes i dont want to use internet and want to watch movies. so how to get rid of this window.
-
When could iphone 5 launch in india ?
i need iphone5 when it launch in india