Id2entry messages into slapd error log
hi,
working with iPlanet Directory Server 4.13 and 4.16, the server often hangs and displays numerous "id2entry error 1" messages into the slapd's error log.
I must restart the server to make the server work again.
I believe it's a database corruption problem. After exporting/importing the database, the server gets better for a while, but after one or 2 weeks, the problem comes again.
Any id about a patch correcting this problem ?
thank,s.
private static T3ServicesDef getT3Services(String wlUrl)
throws javax.naming.NamingException
T3ServicesDef t3s;
Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, wlUrl);
env.put(Context.INITIAL_CONTEXT_FACTORY,
weblogic.jndi.WLInitialContextFactory.class.getName());
Context ctx = new InitialContext(env);
t3s = (T3ServicesDef) ctx.lookup("weblogic.common.T3Services");
ctx.close();
return(t3s);
T3ServicesDef t3s = getT3Services("t3://localhost:7001");
LogServicesDef logService = t3Service.log( );
logService.info(String s);
logService.warning(String s);
logService.error(String s);
// refer to weblogic/examples/time/ServerTimer.java
On Fri, 04 Aug 2000 23:50:43 +0800, Warren Li <[email protected]>
wrote:
>Hi
>
>I wish to write messages into to the weblogic.log file whenever an
>application error is detected.
>
>Can anyone show me a simple example
>
>Thanks in advance
>
>
>Warren
Best Regards
Li Zhongling (Alex)
Carpe Diem, Seize the Day ...
Similar Messages
-
How to add the error message into Delivery Error Log (VL10A,VL10X)
Hi,
I have a to add my custom message into Delivery creation error log (VBFS, VBSS)
This message should be shown in the Collective process log (VL10X, VL10A).
Please give me the soln to solve this problem.
I have searched in SDN, i didnt get the proper solution
Thanks
ShankarHI,
Make use of the BADi "LE_SHP_DELIVERY_PROC"
Use the method DELIVERY_FINAL_CHECK.
Pass the error messages in table CT_FINCHDEL.
Regards,
Ankur Parab -
Info messages away from error log
Hi,
I'm using iws6.0sp6 and don't know how to get rid of info lines in the error log. They are not interresting.
Can this be done??
I haven't found a way to do this.
I would only like to get warning and critical messages in the error log.
[19/Dec/2003:12:20:13] info (20299): Internal Info: loading servlet /yrityksille
/j_luottolista.jsp
[19/Dec/2003:12:20:13] info (20299): /yrityksille/j_luottolista.jsp: initWeb Server 6.0 does not support this type of log configuration. Werb Server 6.1 does, however.
-
I am suddenly not getting email on my MacBook Pro, but am receiving e-mail on my iPhone. I'm getting message "Warning Recent errors logged" It repeatedly states "The Header From: address <postoffice> is not authorised - please go to control add PHP" But I only have 1 email address. I'm afraid to add anything on since I don't even know what this other e-mail address is. What should I do? And would this definitely be the cause of my not receiving e-mail?
I pressed check again and here is what appeared:
CONNECTED Apr 04 19:03:02.511 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
CONNECTED Apr 04 19:03:02.513 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:587 -- socket:0x1164f4730 -- thread:0x114a5a030
CONNECTED Apr 04 19:03:02.526 [kCFStreamSocketSecurityLevelNone] -- host:smtp.elikann.com -- port:2525 -- socket:0x11444a6a0 -- thread:0x11827f160
READ Apr 04 19:03:02.556 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
+OK <[email protected]>
READ Apr 04 19:03:02.563 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:587 -- socket:0x1164f4730 -- thread:0x114a5a030
220 mail.hostingplatform.com ESMTP
WROTE Apr 04 19:03:02.566 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
CAPA
CONNECTED Apr 04 19:03:02.568 [kCFStreamSocketSecurityLevelNone] -- host:mail.authsmtp.com -- port:2525 -- socket:0x11824ca00 -- thread:0x1176c1ab0
READ Apr 04 19:03:02.572 [kCFStreamSocketSecurityLevelNone] -- host:smtp.elikann.com -- port:2525 -- socket:0x11444a6a0 -- thread:0x11827f160
220 mail.hostingplatform.com ESMTP
WROTE Apr 04 19:03:02.585 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:587 -- socket:0x1164f4730 -- thread:0x114a5a030
EHLO 192.168.1.4
WROTE Apr 04 19:03:02.592 [kCFStreamSocketSecurityLevelNone] -- host:smtp.elikann.com -- port:2525 -- socket:0x11444a6a0 -- thread:0x11827f160
EHLO 192.168.1.4
READ Apr 04 19:03:02.610 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
-ERR authorization first
WROTE Apr 04 19:03:02.628 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
USER [email protected]
READ Apr 04 19:03:02.630 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:587 -- socket:0x1164f4730 -- thread:0x114a5a030
250-mail.hostingplatform.com
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE 65000000
250 AUTH LOGIN PLAIN CRAM-MD5
READ Apr 04 19:03:02.639 [kCFStreamSocketSecurityLevelNone] -- host:smtp.elikann.com -- port:2525 -- socket:0x11444a6a0 -- thread:0x11827f160
250-mail.hostingplatform.com
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE 65000000
250 AUTH LOGIN PLAIN CRAM-MD5
WROTE Apr 04 19:03:02.648 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:587 -- socket:0x1164f4730 -- thread:0x114a5a030
AUTH PLAIN (*** 44 bytes hidden ***)
WROTE Apr 04 19:03:02.667 [kCFStreamSocketSecurityLevelNone] -- host:smtp.elikann.com -- port:2525 -- socket:0x11444a6a0 -- thread:0x11827f160
AUTH PLAIN
READ Apr 04 19:03:02.670 [kCFStreamSocketSecurityLevelNone] -- host:mail.authsmtp.com -- port:2525 -- socket:0x11824ca00 -- thread:0x1176c1ab0
220 mail.authsmtp.com ESMTP Sendmail 8.14.2/8.14.2/; Fri, 5 Apr 2013 00:03:02 +0100 (BST)
READ Apr 04 19:03:02.671 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
+OK
WROTE Apr 04 19:03:02.691 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
PASS ************
WROTE Apr 04 19:03:02.698 [kCFStreamSocketSecurityLevelNone] -- host:mail.authsmtp.com -- port:2525 -- socket:0x11824ca00 -- thread:0x1176c1ab0
EHLO 192.168.1.4
READ Apr 04 19:03:02.704 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:587 -- socket:0x1164f4730 -- thread:0x114a5a030
235 ok, go ahead (#2.0.0)
READ Apr 04 19:03:02.712 [kCFStreamSocketSecurityLevelNone] -- host:smtp.elikann.com -- port:2525 -- socket:0x11444a6a0 -- thread:0x11827f160
334
WROTE Apr 04 19:03:02.734 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:587 -- socket:0x1164f4730 -- thread:0x114a5a030
QUIT
WROTE Apr 04 19:03:02.756 [kCFStreamSocketSecurityLevelNone] -- host:smtp.elikann.com -- port:2525 -- socket:0x11444a6a0 -- thread:0x11827f160
QUIT
READ Apr 04 19:03:02.759 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
+OK
WROTE Apr 04 19:03:02.776 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
QUIT
READ Apr 04 19:03:02.799 [kCFStreamSocketSecurityLevelNone] -- host:mail.authsmtp.com -- port:2525 -- socket:0x11824ca00 -- thread:0x1176c1ab0
250-mail.authsmtp.com Hello pool-72-93-40-57.bstnma.east.verizon.net [72.93.40.57], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 52428800
250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
250-STARTTLS
250 HELP
WROTE Apr 04 19:03:02.808 [kCFStreamSocketSecurityLevelNone] -- host:mail.authsmtp.com -- port:2525 -- socket:0x11824ca00 -- thread:0x1176c1ab0
AUTH PLAIN ********************
READ Apr 04 19:03:02.822 [kCFStreamSocketSecurityLevelNone] -- host:mail.elikann.com -- port:110 -- socket:0x118296830 -- thread:0x10121d6c0
+OK
READ Apr 04 19:03:02.907 [kCFStreamSocketSecurityLevelNone] -- host:mail.authsmtp.com -- port:2525 -- socket:0x11824ca00 -- thread:0x1176c1ab0
235 2.0.0 OK Authenticated
WROTE Apr 04 19:03:02.917 [kCFStreamSocketSecurityLevelNone] -- host:mail.authsmtp.com -- port:2525 -- socket:0x11824ca00 -- thread:0x1176c1ab0
QUIT -
Hide message 'N messages. Goto error log?'
Hi,
Example:
I use ICCMP_BP_SEARCH for search partners (accounts).
I enter wrong data to search.
Message show: '2 messages. Goto error log?'
This message is reduce performance agents, when it's work with Web UI.
This message is appears at another component/operation too.
How I can hide (deactivate / not show) this pop-up message?
Denis.Hi Denis,
You can enhance the search method. Put a break point at cl_bsp_wd_message_service=>get_instance or cl_bsp_wd_message_service=>ADD_MESSAGE and you will see where the message is set .
Best Regards,
Caíque Escaler -
I got following erro message in Apache error log file
Why mod_plsql is not started while trying to use Oracle Apex
I got connection error as below into modplsql log file
<106296140 ms>[ReqStartTime: 11/Sep/2007:14:48:50]
<106296140 ms>Request ID ReqID:5160_1189536530
<106296140 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=https)(PORT=//escis-000567.eschq.esc.state.)))(CONNECT_DATA=(SID=80)))"
<106296140 ms>ORA-12545 LogOn ORA-12545: Connect failed because target host or object does not exist
<106296140 ms>Stale Connection due to Oracle error 12545
<106296140 ms>Logoff: Closing connection due to stale connection
<106296140 ms>[ReqEndtime: 11/Sep/2007:14:48:50]
<106296140 ms>[ReqExecTime: 0 ms]
I got following from Oracle Apache error log file
[Tue Sep 11 15:31:46 2007] [notice] FastCGI: process manager initialized
[Tue Sep 11 15:32:03 2007] [error] [client 10.18.144.215] [ecid: 1189539123:10.18.144.215:2612:1148:1,0] mod_plsql: DAD '/pls/apex' is disabled because of misconfiguration. Please refer to the log entries during server startup up for more information.
[Tue Sep 11 15:32:15 2007] [error] [client 10.18.144.215] [ecid: 1189539135:10.18.144.215:2612:2232:1,0] mod_plsql: DAD '/pls/apex' is disabled because of misconfiguration. Please refer to the log entries during server startup up for more information.
[Tue Sep 11 15:32:21 2007] [error] [client 10.18.144.215] [ecid: 1189539141:10.18.144.215:2612:4896:1,0] File does not exist: c:/gridhomes/http/apache/apache/htdocs/apex
[Tue Sep 11 15:32:29 2007] [error] [client 10.18.144.215] [ecid: 1189539149:10.18.144.215:2612:4896:2,0] mod_plsql: DAD '/pls/apex' is disabled because of misconfiguration. Please refer to the log entries during server startup up for more information.
What could be problem
also in first error log I found
Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=https)(PORT=//escis-000567.eschq.esc.state.)))(CONNECT_DATA=(SID=80)))"
why it picks up https as HOST name. I think that's problem. How to resolve it ?
Thanks
~KeyurPlease post the details of the application release, database version and OS.
I am getting several of these messages in the Apache error logfile.
File does not exist: $JAVA_TOP (this is actually my physical patch for $JAVA_TOP)Is this the complete error message?
Is it normal to see this messages or some configuration is wrong?If your application is functioning properly with no issues, then you can ignore those errors.
Thanks,
Hussein -
Sender mail adapter : no messages and no error log
Hello,
I have configured a sender mail adapter to read mails from the inbox. I have used IMAP protocol. URL is specified as imap://EMHBSEXM01/Inbox. User name and password is also specified properly. I have kept poll interval to 1 minute. Messages in the inbox are in unread status. But the mail is not getting processed. I do not see anything after 1 minute. I tried using generate fetch report flag. But even then it does not create any message in SXMB_MONI. I checked runtime workbench for Mail adapter but I do not see any message for the same. Is there something that I am missing?
Thanks,
DevHi All,
I chekced your responses and tried accordingly. Our basis team has given me new link now and the error message has changed. I am getting following error message.
exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Command received in Invalid state.
Does anyone have any idea what this error is?
Thanks in advance,
Devendra -
File does not exist: /java/classes message in Apache error log file
I am getting several of these messages in the Apache error logfile.
File does not exist: $JAVA_TOP (this is actually my physical patch for $JAVA_TOP)
Is it normal to see this messages or some configuration is wrong?
thanks,
AzodpePlease post the details of the application release, database version and OS.
I am getting several of these messages in the Apache error logfile.
File does not exist: $JAVA_TOP (this is actually my physical patch for $JAVA_TOP)Is this the complete error message?
Is it normal to see this messages or some configuration is wrong?If your application is functioning properly with no issues, then you can ignore those errors.
Thanks,
Hussein -
I/O Frozen message in the Error logs
I see very often this message, do I need to take care any precautions, is it going to effect in long run?
I/O is frozen on database master. No user action is required. However, if I/O is not resumed promptly, you could cancel the backup.Hi,
You probably also have something like "I/O was resumed on database master. No user action is required". right?
I am guessing that you have some type of VSS/Snapshot at the same time. There are 2 step while the VSS process that need to frozen the IO, which might result with this error (first step might take till 60 seconds and second till 10 seconds).
You can check the presentation slide 14 the step on that marked in red (7, and 8).
* You might reduce the time if you stop some VSS writers that you do not need.
- Are you using the machine for services other than the SQL Server? If so, then you probably have several VSS writers and that might slowdown these steps.
- How do you backup your databases, is there any backup based on VSS (like VDI backups)?
- are you using snapshot, in any other way?
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
Flash 4.6 Spurting Out Error Log Messages
My Flash Builder 4.6 is spurting out Eclipse and other messages into its error log. Is this "normal" (I mean are other people experiencing it)?
In my previous post, I mentioned another mysterious problem. I'm wondering if it's connected.
I originally had Flash Builder 4,6 already installed via CS6 before installing Extebsion Builder 2.1, Should I have uninstalled Flash Bulder 4.6 and let Extension Builder install it?
I'd be happy to learn from others' experiences.
mlavieA total uninstall/re-install of FB 4.6 and EB 2.1 solved it.
It is much more important to us that you responde to my previous post about .ZXPs not being produced by the export wizard.
TIA,
mlavie -
BULK INSERT into View w/ Instead Of Trigger - DML ERROR LOGGING Issue
Oracle 10.2.0.4
I cannot figure out why I cannot get bulk insert errors to aggregate and allow the insert to continue when bulk inserting into a view with an Instead of Trigger. Whether I use LOG ERRORS clause or I use SQL%BULK_EXCEPTIONS, the insert works until it hits the first exception and then exits.
Here's what I'm doing:
1. I'm bulk inserting into a view with an Instead of Trigger on it that performs the actual updating on the underlying table. This table is a child table with a foreign key constraint to a reference table containing the primary key. In the Instead of Trigger, it attempts to insert a record into the child table and I get the following exception: +5:37:55 ORA-02291: integrity constraint (FK_TEST_TABLE) violated - parent key not found+, which is expected, but the error should be logged in the table and the rest of the inserts should complete. Instead the bulk insert exits.
2. If I change this to bulk insert into the underlying table directly, it works, all errors get put into the error logging table and the insert completes all non-exception records.
Here's the "test" procedure I created to test my scenario:
View: V_TEST_TABLE
Underlying Table: TEST_TABLE
PROCEDURE BulkTest
IS
TYPE remDataType IS TABLE of v_TEST_TABLE%ROWTYPE INDEX BY BINARY_INTEGER;
varRemData remDataType;
begin
select /*+ DRIVING_SITE(r)*/ *
BULK COLLECT INTO varRemData
from TEST_TABLE@REMOTE_LINK
where effectiveday < to_date('06/16/2012 04','mm/dd/yyyy hh24')
and terminationday > to_date('06/14/2012 04','mm/dd/yyyy hh24');
BEGIN
FORALL idx IN varRemData.FIRST .. varRemData.LAST
INSERT INTO v_TEST_TABLE VALUES varRemData(idx) LOG ERRORS INTO dbcompare.ERR$_TEST_TABLE ('INSERT') REJECT LIMIT UNLIMITED;
EXCEPTION WHEN others THEN
DBMS_OUTPUT.put_line('ErrorCode: '||SQLCODE);
END;
COMMIT;
end;
I've reviewed Oracle's documentation on both DML logging tools and neither has any restrictions (at least that I can see) that would prevent this from working correctly.
Any help would be appreciated....
Thanks,
SteveThanks, obviously this is my first post, I'm desperate to figure out why this won't work....
This code I sent is only a test proc to try and troubleshoot the issue, the others with the debug statement is only to capture the insert failing and not aggregating the errors, that won't be in the real proc.....
Thanks,
Steve -
New error messages related to OHW - filling up error logs.
We've recently received a new delivery of help files (new helpset), but there have also been many other changes to our base software system in the interim. This makes it hard to nail down the culprit.
That said, we are now seeing two messages in the error log any time we access help. I'm wondering if anyone else has seen these, and have suggestions as to the root cause. They are as follows:
...<OHWLoggerUtils> <errorFoundLinkToInvalidTopicID> invalid topic id link: STADG reported from http://127.0.0.1:7101/sta-help/faces/helppages/config.OHW+Servlet+1/locale.en/
<OHWLoggerUtils> <errorFoundLinkToInvalidTopicID> invalid topic id link: STAIN reported from http://127.0.0.1:7101/sta-help/faces/helppages/config.OHW+Servlet+1/locale.en/
<OHWLoggerUtils> <errorFoundLinkToInvalidTopicID> invalid topic id link: STAAG reported from http://127.0.0.1:7101/sta-help/faces/helppages/config.OHW+Servlet+1/locale.en/
<DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
<DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS....
We are seeing many of these messages in a row, but they are all like the two types you see above.
Just for completeness, there is one other error message filling our log which we also have not been able to resolve. This one has been around for a while longer:
<OHWFilter> <doFilter> Resource URLs should not contain "helppages.resource"; they should go through the servlet path "/ohr".
<OHWFilter> <doFilter> Resource URLs should not contain "helppages.resource"; they should go through the servlet path "/ohr".
... <more of the same>
Any help or pointers would be appreciated. We are using JDev 11.1.2.3.0, and OHW 5.0
Mitch
< name, title, organization, telephone information deleted by moderator -- you need to post this to MOSC and not this public forum >Hey, tried uploading my first DPS app since August 28 and got rejected. I edited my folio and re- created the app, did the hole process again and today I uploaded the new app thru App loader. Everything was ok, but as soon as I clicked the review app in itunes connect, and the status changed to: "Waiting for review" Got an itunes Email saying this: ..."REDUNDANT BINARY UPLOAD - there already exists a binary upload with build version '32.0.0.8.99116' for train '1.0.7'... Once these issues have been corrected, you can then redeliver the corrected binary."...
I am completely lost, I don't know how to solve this issue, don't know what steps to follow and im in desperate need of help. The app is a magazine and they've been waiting its launch since September 1st.
The hole precess relies on me and I ran out of options... Can someone Help me? -
Error messages from Error Log using using CJ40 transcation
Hi All,
when i was doing call transcation for CJ40 transcation. on the screen while check syntactical error check there were some errors below.
Total plan value less than cumulative plan value
- l2: 2,900.00 < 8,900.00 (AUD)
- l3: 2,900.00 < 8,900.00 (AUD)
The Call transaction on CJ40 results in a generic error message in the error table.
Errors found --> Access the error log
Need a way to retrieve the error message from the Error Log,
Thanks,
Nelson KarunakarHi Nelson Karunakar,
When we are loading cost plan for particular project which contains multiple WBS elements,
First we need to enter the cost plant for LEVEL 1 WBS element ( which is nothing but same name as parent project) and save then only we can enter the cost plant for remaining WBS elements for that particulr Parent project.
If you load the cost plan for LEVEL 1 WBS Elemts first and save it an then enter the values for remaining WBS elements you never get that error message again.
Thanks,
Sriram. -
Guys, I keep getting this message in the errors log:
[28/Apr/2011:10:44:14 -0400] - INFORMATION - conn=-1 op=-1 msgId=-1 - csngen_adjust_time: remote offset now 65174 sec
The offset keeps increasing with no correlation to the time when it happens, as in:
[28/Apr/2011:01:43:35 -0400] - INFORMATION - conn=-1 op=-1 msgId=-1 - csngen_adjust_time: remote offset now 63339 sec
[28/Apr/2011:03:13:42 -0400] - INFORMATION - conn=-1 op=-1 msgId=-1 - csngen_adjust_time: remote offset now 63645 sec
almost two hours passed, but only 300 seconds offset. Oracle support blamed it on NTP issues (this is a two-master configuration). There is a difference in the time (it really fluctuates), it is now 3 seconds behind on one of the masters. They say that if the offset grows it might brake replication. Replication seems to be working okay!
Does anybody know what generates this message, and if have to really worry about it or not? It is INFORMATION after all, but I have never seen it before.
Dual Master DSEE 7.0 64bit - RedHat linux 5.x 64 bit.
Thanks!
Enrique.Hi,
please believe what Oracle Support is telling you... replication protocol is based on the assumption that the time difference between the replicas doesn't change continuously, otherwise the mechanism to generate unique change sequence numbers (CSNs) could be broken and the replication protocol get locked.
If the time of your servers keeps being shifted onward, they could survive even with some notification message like the ones you're seeing, but problems may arise if the time of the server is 'shifted' back.
HTH,
marco -
Error logging using DBMS_ERRLOG package
Hi All,
We have following tables, which are growing day-by-day and giving performance problems.
There are total 25 tables (1 parent and 24 child tables, with different structures).
Here i gave some Samples, NOT actual table structures.
Actually we don't require all the data for our regular activities.
So we thought of moving part of the data into Other (Archive) tables, on daily basis.
Using SOME criteria, we are finding eligible records to be moved into Archive tables.
All child records follows the Parent.
Original Tables
==================
create table customer (c_id number(5), c_name varchar2(10),c_address varchar2(10));
create table orders (o_id number(5),c_id number(5),o_info clob);
create table personal_info (p_id number(5),c_id number(5), age number(3), e_mail varchar2(25), zip_code varchar2(10)):
Archive Tables
==============
create table customer_arch (c_id number(5), c_name varchar2(10),c_address varchar2(10));
create table orders_arch (o_id number(5),c_id number(5),o_info varchar2(100));
create table personal_info_arch (p_id number(5),c_id number(5), age number(3), e_mail varchar2(25), zip_code varchar2(10)):
Temp table
==========
create table C_temp (rnum number(5), ids number(5));
Sample Code
============
PROCEDURE payment_arch
IS
l_range_records NUMBER (4) := 2000;
l_total_count NUMBER(10) := 0;
l_prev_count NUMBER(10) := 0;
l_next_count NUMBER(10) := 0;
BEGIN
--Finding eligible records to be moved into Archive tables.
INSERT INTO C_TEMP
SELECT ROWNUM,c_id FROM customer;
SELECT NVL(MAX(ID),0) INTO l_total_count FROM OPP_PAYMENT_ID_TEMP;
IF l_total_count > 0 -- Start Count check
THEN
LOOP -- Insert Single payments
IF ((l_total_count - l_prev_count) >= l_next_count )
THEN
l_next_count := l_prev_count + l_range_records;
ELSE
l_next_count := l_total_count;
END IF;
l_prev_count := l_prev_count ;
INSERT INTO customer_ARCH
SELECT * FROM customer a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
INSERT INTO orders_ARCH
SELECT * FROM orders a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
INSERT INTO personal_info_ARCH
SELECT * FROM personal_info a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
-- Delete Archived Single Payments
DELETE customer a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE ID BETWEEN l_prev_count AND l_next_count);
COMMIT;
IF l_next_count = l_total_count
THEN
EXIT;
else
l_prev_count := l_next_count;
END IF;
END LOOP; -- Insert Single payments
END IF; -- End Count check
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
WHEN OTHERS
THEN
RAISE_APPLICATION_ERROR('-20002','payment_arch: ' || SQLCODE ||': ' || SQLERRM);
END Payment_Arch;
In production, we may require to archive 25000 Parent records and 25000*4*3 child records per day.
Now the problem is:
By any chance, if record fails, We want to know the Exact record ,just "c_id" for the particular table
where the error raised and Error message.
We thought of using DBMS_ERRLOG package, but we CAN NOT log errors of Different tables into SINGLE error log table.
In the above case It require 3 Different tables and it logs all columns from the original table.
It's a un-necessary burden on the database.
We would be very glad, if anyone can help us with some good thought.
Thanks in advance.
srinivasduplicate post
Insufficient privilege error when executing DBMS_ERRLOG through PLSQL
Maybe you are looking for
-
Top N query giving error for oracle 8.0.6
Dear All, We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATC
-
So today I update my iTunes on the laptop to iTunes 11. But, now all of my music is GONE. It's still saved in the laptop but now I have no idea how to import it all? Plus, all of my old music that I had previously deleted, reappeared.. So I deleted a
-
Billing document blocked for forwarding to FI
hi experts, Billing documents are blocked for forwarding to fi, eny one can advise on how to relese this thanks in advance Regards Sreenath
-
Why doesn't the text boxes in Pages for iPad show the arrows to link the Boxes together?
Hi. I am using Pages, which I love, on my iPad. As a perfectionist, I would like all my textboxes to be linked so that if I move one I can move them all. Any suggestions? When I tap on the boxes I don't have the arrows appear like you would on a Mac
-
Size restrictions ( dimensions)
I need to create an IBook Author ebook, I need a few questions answered before I dive in here. First is I see you can adjust the height of the template but can you adjust the width? If not I assume the width is set for the landscape view in IPad? Thi