Embarrassing ESSCMD question (re: error logs)
Hi all you kind folks,This is one that is probably incredibly obvious, but I just can't find the answer. I use various ESSCMD scripts to load oodles of data into Essbase cubes. The data files are very large. My scripts are set up basically like this (simplified):OUTPUT 1 "dataload.log";IMPORT 3 "datafile1" 4 "Y" 3 "loadrules.rul" "N" "dataload.log";IMPORT 3 "datafile2" 4 "Y" 3 "loadrules.rul" "N" "dataload.log";...and so on. The problem is that after each data file loads to the cube, the error messages in 'dataload.log' are overwritten by the next data file's errors.When the script is finished, only the errors for the last data file are in theerror log. I need to be able to capture all the errors, for all the data files.My question: is there an Essbase setting somewhere that would let mespecify that the errors for successive data file loads be appended to theerror log, instead of overwriting it each time? Or do I just have to send theerrors for each individual data file to a separate log file? Thanks very much! gregp.s. I jacked up the DATAERRORLIMIT setting to 100 million, thinking thatthis was the problem - no luck.
I think you made a confusion between the general log of your script (OUTPUT...) and the error log of each loading (for each loading line).As the error log is erased each time, I am affraid that you should mention a different error file for each loading.At the end, if you want, you can concatenate these files.Hope this helps.Denis ZubaTHESYS [email protected]://www.Thesys-Solutions.comT?l.: +41 21 653 56 12Mobile: +41 79 688 80 12
Similar Messages
-
Question on Time Machine error log
I have a program (Time Machine Error Log) that keeps track of the message log entries that occurr after you do a Time Machine backup.
I am getting two messages each time Time Machine completes a backup.
Here are the two message from the last log:
Jan 13 17:39:29 xxxxxx-iMac.local com.apple.backupd[36854]: Error: Error Domain=NSOSStatusErrorDomain Code=-36 "The operation couldn’t be completed. (OSStatus error -36.)" (ioErr: I/O error (bummers)) deleting backup: /Volumes/Time Machine Backups/Back
Last Successful Backup Message:
Jan 13 17:39:37 xxxxxx-iMac.local com.apple.backupd[36854]: Backup completed successfully.
How can there be an error reported stating "deleting backup", then a message stating "Backup completed successfully"?
If I didn't check the log, I wouldn't know that there was a problem, because the Time Machine preferences pane tells me the last backup time, and the next backup time, indicating all went well.
I just need some verification that my backups are completing successfully.
Thank
LenThere is a lot of rubbish messages that TM produces.. if the final message is that all is good, then I would say all is good.. it is pretty quick to decide when something isn't good.
But I would say.. there is only one way to know a backup is good. Restore it.
You don't need to test restore over current drive.. plug in an external drive and restore.
You can do a verify.. hold the option key whilst clicking the TM icon in the top menu area.. and the option verify will appear.. click that. It really doesn't test more than files are readable though, AFAIK.
Do a disk image occasionally.. Disk Utility can create an image.. but superduper even free download version can do a full disk image. Makes me feel safer knowing that I have a backup TM doesn't actually have anything to do with. -
Oracle errors in Weblogic Error logs appear in non english
We have a problem with weblogic error logging. Specifically, in a managed server's log file, Oracle errors such as ORA-XXXX show in Greek, not English. We are assuming
that this is because the timezone is Europe/Athens. However, the weblogic application server runs with user.language=en, user.country=US. What's more, there are 4 application servers and 2 of them have this problem. The oracle database is accessed via weblogic datasources.
Oracle database server Setup: Oracle Server 11gR2 running on Oracle Linux 64 bit, timezone set to Europe/Athens
Weblogic Server: Weblogic 10.3.5 running on Oracle Linux 64 bit, timezone set to Europe/Athens
The managed server, according to jrockit, the jvm runs with the following language related system properties:
user.language=en, user.country=US, user.timezone=Europe/Athens
The question is: How do we tell oracle / weblogic to log english text for the ORA errors?
Thanks,
ChrisI digged in the weblogic installation directory and it seems like the domain configuration wizard messed up the jdbc configs for the data sources.
The config xml files for the data sources in the /domain root/config/jdbc directory had oracle driver but the test query was for pointbase. I double checked from the database.xml file in the init-info directory and corrected the entry in the datasource config xmls and voila!.. the errors were gone.
I am not sure if this was the right approach and whether i have solved the issue or simply patched it.. so I am keeping the question open. If any one has any inputs I will be grateful.
If the mods/admins feel that the thread should be marked as solved I will surely do so.
Thanks. -
A question about error with jasperserver for pdf and Apex
I have created a pdf report on jasperserver and I can call it from apex via a url and it displays fine. The url is this format {http://server:port/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/Apex/deptemp&output=pdf&deptNo=#DEPTNO#&j_username=un&j_password=pw}
However, I am trying to follow a stored procedure executed from Apex so it would not expose the username/pwd in the url like above.
If I am reading the apache error log correctly it is erroring in this piece of the code below where it executes {Dbms_Lob.writeAppend}
loop
begin
-- read the next chunk of binary data
Utl_Http.read_raw(vResponse, vData);
-- append it to our blob for the pdf file
Dbms_Lob.writeAppend
( lob_loc => vBlobRef
, amount => Utl_Raw.length(vData)
, buffer => vData
exception when utl_http.end_of_body then
exit; -- exit loop
end;
end loop;
Utl_Http.end_response(vResponse);}
The error log says this; HTTP-500 ORA-14453: attempt to use a LOB of a temporary table, whose data has alreadybeen purged\n
What is this error telling me and how can I correct it?
The stored procedure I am following is below but replaced the vReportURL with my url like above that works.
Thank you,
Mark
{CREATE OR REPLACE procedure runJasperReport(i_deptno in varchar2)
is
vReportURL varchar2(255);
vBlobRef blob;
vRequest Utl_Http.req;
vResponse Utl_Http.resp;
vData raw(32767);
begin
-- build URL to call the report
vReportURL := 'http://host:port/jasperserver/flow.html?_flowId=viewReportFlow'||
'&reportUnit=/reports/Apex/deptemp'||
'&output=pdf'||
'&j_username=un&j_password=pw'||
'&deptNo='||i_deptno;
-- get the blob reference
insert into demo_pdf (pdf_report)
values( empty_blob() )
returning pdf_report into vBlobRef;
-- Get the pdf file from JasperServer by simulating a report call from the browser
vRequest := Utl_Http.begin_request(vReportUrl);
Utl_Http.set_header(vRequest, 'User-Agent', 'Mozilla/4.0');
vResponse := Utl_Http.get_response(vRequest);
loop
begin
-- read the next chunk of binary data
Utl_Http.read_raw(vResponse, vData);
-- append it to our blob for the pdf file
Dbms_Lob.writeAppend
( lob_loc => vBlobRef
, amount => Utl_Raw.length(vData)
, buffer => vData
exception when utl_http.end_of_body then
exit; -- exit loop
end;
end loop;
Utl_Http.end_response(vResponse);
owa_util.mime_header('application/pdf',false);
htp.p('Content-length: ' || dbms_lob.getlength(vBlobRef));
owa_util.http_header_close;
wpg_docload.download_file(vBlobRef);
end runJasperReport;
/}I am new to working with working with jasperserver to apex interfacing, and also using utl_http with binary data.
But I guess typing my question down helped me figure out a way to make it work for me.
I combined info from http://www.oracle-base.com/articles/misc/RetrievingHTMLandBinariesIntoTablesOverHTTP.php
and from http://sqlcur.blogspot.com/2009_02_01_archive.html
to come up with this procedure.
{create or replace PROCEDURE download_file (p_url IN VARCHAR2) AS
l_http_request UTL_HTTP.req;
l_http_response UTL_HTTP.resp;
l_blob BLOB;
l_raw RAW(32767);
BEGIN
-- Initialize the BLOB.
DBMS_LOB.createtemporary(l_blob, FALSE);
-- Make a HTTP request, like a browser had called it, and get the response
l_http_request := UTL_HTTP.begin_request(p_url);
Utl_Http.set_header(l_http_request, 'User-Agent', 'Mozilla/4.0');
l_http_response := UTL_HTTP.get_response(l_http_request);
-- Copy the response into the BLOB.
BEGIN
LOOP
UTL_HTTP.read_raw(l_http_response, l_raw, 32767);
DBMS_LOB.writeappend (l_blob, UTL_RAW.length(l_raw), l_raw);
END LOOP;
EXCEPTION
WHEN UTL_HTTP.end_of_body THEN
UTL_HTTP.end_response(l_http_response);
END;
-- make it display in apex
owa_util.mime_header('application/pdf',false);
htp.p('Content-length: ' || dbms_lob.getlength(l_blob));
owa_util.http_header_close;
wpg_docload.download_file(l_blob);
-- Release the resources associated with the temporary LOB.
DBMS_LOB.freetemporary(l_blob);
EXCEPTION
WHEN OTHERS THEN
UTL_HTTP.end_response(l_http_response);
DBMS_LOB.freetemporary(l_blob);
RAISE;
END download_file; }
Don;t know what I did wrong, but I could not create an 'on-demand' process to call my procedure. I did not understand what it means when it says 'To create an on-demand page process, at least one application level process must be created with the type 'ON-DEMAND'.
so I had to use a blank page with a call to my procedure in the onload - before header process and that seems to work ok.
Thank you,
Mark -
How to write error log while creating invoice and avoid implicite commit
Hi,
I've have written code in exit RV60AFZZ in which I check for some possible errors while invoicing via VF01/VF04. If conditions are met then we create error message and display it to the user. As result we had a lot of missing SD invoices in FI when we did batch/mass invoicing. I've opened OSS note and SAP support team wrote that using statement MESSAGE is forbidden in UE. It can lead to implicite commits.
Do you have some example how to write error log for invoincing in VF01/VF04 transactions?
Thanks@ sri nath. Please read post before answering. I wouldn't be posting trivial questions. As I wrote before it doesn't work. Also SAP support would not answer to the question in my OSS.
In VOFM, SAP is using routine VBFS_HINZUFUEGEN_ALLG to write to error log.
Mine is something like this in ue:
PERFORM ZVBFS_HINZUFUEGEN_ALLG
USING VBAP-VBELN VBAP-POSNR 'ZSD' 'E '600'
SPACE SPACE SPACE SPACE.
(we have custom message class)
As result XVBFS and VBSK are filled with error, but posting is also done. Error log is filled but invoice is created and posted in FI.
That is not OK.
thanks -
error logging problem:
I would like to implement an error logger that will do the following tasks when a error/exception arrises:
- surpress the DacfErrorPopupLogger
- alert the user that an error has occured with a simplified popup (create a global listener then use the ErrorAttributes to create the text of the popup)
- log the error in a file with a timestamp and all error information
- later if the above works....i would like to add the error attributes (time stamp, error type) to a oracle object/ Jdev domain.
Questions:
What is the best technique to use....errorManager, error logger ...?? combination
How do i use the error manager to register listners for the errors?.
In the following code i am not sure how to access the ErrorsAttributes[] array that is returned by loggerReader.getErrors();
Any general tips places to find sample code on errorManager or associated interfaces, will be appreciated
I used the OutPutStreamLogger to write error information to a FileOutputStream then a loggerReader to get the error attributes from the file. The reason i went in this direction is because i found some smple code on the outputStream logger.
package DACVideo;
import oracle.dacf.util.errorloggers.*;
import oracle.dacf.util.errormanager.*;
import oracle.dacf.util.errorloggers.InputStreamLoggerReader.ErrorAttributes;
import java.io.*;
* A Class class.
* <P>
* @author Adam Maddox
public class ErrorLogger extends Object {
static OutputStreamLogger logger = null;
static InputStreamLoggerReader loggerReader = null;
public ErrorLogger() {
System.out.println("==============ErrorLogger Created==============");
//remove default error logger (popup logger)
ErrorManager.removeErrorLogger(ErrorManager.findLoggerByName(DacfErrorPopupLogger.NAME));
try
logger = new OutputStreamLogger(new FileOutputStream("out.dat"));
loggerReader = new InputStreamLoggerReader(new FileInputStream("out.dat"));
catch(java.io.IOException e)
System.err.println("Error!");
try
ErrorManager.addErrorLogger(logger);
catch(NameAlreadyRegisteredException e)
System.err.println("A Logger with this name is already registered.");
private void closeErrorLog()
//close the OutputStream, to force flushing
logger.closeOutputStream();
ErrorManager.removeErrorLogger(logger);
public static void showErrorLog()
ErrorAttributes[] errorArray = loggerReader.getErrors(); <<<<CANNOT GET ERROR ATTRIBUTES ??
nullJDev could you help??
-
Dml error logging - are exceptions redundant?
Hi there
Heard alot about dml error logging and looks good in practice.
In a data warehouse environment and wish to make use of this in a pl/sql procedure - I'm thinking is the only exception I would neeed know something like
when others
then
insert into error_table values(sqlcodes,sqlerrm);commit;
raise;
Another question as purely a background routine with no user interaction do we really need the raise - I know many posts talk about having ir or raise_application_error to alert user something went wrong but in purely batch procedures is this really necessary?
Also what is the error_stack exactly and how can you query it?
Any advice/thoughts?
Many Thanksother question as purely a background routine with no
user interaction do we really need the raise - I know
many posts talk about having ir or
raise_application_error to alert user something went
wrong but in purely batch procedures is this really
necessary?RAISE:
there a discussion going on this issue:
WHAT is the purpose of RAISE in an EXCEPTION clause ?
RAISE_APPLICATION_ERROR
this will report an error and will break out. Usually used to report errors while debugging.
Regards -
DML ERROR LOGGING - how to log 1 constraint violation on record
Hi there
We are using DML error logging to log records which violate constraints into an error table.
The problem is when a record violates > 1 constraint it logs the record but details only 1 constraint violation - is there a way to get it to record all constraint violations on an individual record.
Many ThanksIn the Netherlands several years ago a framework called CDM RuleFrame was introduced that did just this. Their main thought was that it is desirable to collect all error messages from one transaction and display them all at the end of the transaction.
[url http://www.dulcian.com/papers/ODTUG/2001/BR%20Symposium%202001/Boyd_BR.htm]Here is an article that explains the concept.
In short: it involves coding every single business rule as a database trigger using transaction management of CDM RuleFrame.
I would not recommend it however, because I think [url http://rwijk.blogspot.com/2007/09/database-triggers-are-evil.html]database triggers are evil. However, it may appeal to first time users of an application.
Hope this helps.
Regards,
Rob.
Message was edited by:
Rob van Wijk
But if cannot be "turned on" by some switch: you have to design your system this way. So the short answer to your question is: no, it is not possible. -
I would like to hear how people have implemented various error
logging approaches in Forte applications.
Forte produces log files automatically for service partitions in
$FORTE_ROOT/log and pops up dialog boxes with uncaught exceptions
for client partitions.
Some of the current problems with the existing Forte error logging
include the famously painfull task of determining which log file
in the $FORTE_ROOT/log pertains to your partition and how to
correctly log client errors.
We have taken the approach of opening our own error file for each
Forte project containing a start class method. All exceptions are
then caught and written to the application error file. This takes
the guess work out of finding the correct error file but raises
some interesting design questions:
1) Should service objects maintain their own error files or should
all problems just be handled as exceptions to be logged by the
calling method. ( In some cases the calling method may not care
that a service object is having a problem. In this case the service
object may try an alternative approach. If the request is finally
filled an error with the service object's functioning has occurred
but not with the calling method's functionality ).
2) Should all error messages be handled by a central message
logger operating as a service object. In this case if various clients
are running on different platforms all error message from an
application are centralized. This saves the effort of checking error
files for the same application on multiple platforms. It also means
that a separate error file does not need to be created for each
client that is instantiated. The message logger service in this
case could be accessed by reference among several applications.
Paul Buchkowski
Merrill Lynch Canada
[email protected]Never mind...my password to access file server contained a character that was not acceptable. Once changed, access restored.
-
Error logging facility and approach
What kind of facilities does Java provide for error logging? I like to be able to globally turn logging on and off, and the logging output can be directly to either the console or log file.
What are some of the general logging approaches java programmers take?Adding to my question:
Some application provide crash reporting capabilities.
How do I do that in Java, and where can I read more
about this subject? Should logging generally be
turned off in production system for to improve
performance?If it is turned on in the same way that it is turned on when it is delivered to QA. -
How to change the loglevel of error log in DS
Hi,
I have a simple question regarding setting the log level of Sun directory server.
I have created following ldif file to change the log level to 256 while the default was 0:
dn: cn=config
changetype: modify
replace: nsslapd-errorlog-level
nsslapd-errorlog-level: 256
I have successfuly modified the Sun DS to have this value anyhow I don't see any changes in error log
dn: cn=config
modifytimestamp: 20080411152713Z
and the error log: (gmt+2)
[11/Apr/2008:17:22:20 +0200] - WARNING<20805> - Backend Database - conn=5890237 op=204 msgId=205 - search is not indexed
[11/Apr/2008:17:24:48 +0200] - WARNING<20805> - Backend Database - conn=5890237 op=208 msgId=209 - search is not indexed
[11/Apr/2008:17:27:17 +0200] - WARNING<20805> - Backend Database - conn=5890237 op=212 msgId=213 - search is not indexed
[11/Apr/2008:17:29:46 +0200] - WARNING<20805> - Backend Database - conn=5890237 op=216 msgId=217 - search is not indexed
[11/Apr/2008:17:32:14 +0200] - WARNING<20805> - Backend Database - conn=5890237 op=220 msgId=221 - search is not indexed
[11/Apr/2008:17:34:42 +0200] - WARNING<20805> - Backend Database - conn=5890237 op=224 msgId=225 - search is not indexed
[11/Apr/2008:17:37:11 +0200] - WARNING<20805> - Backend Database - conn=5890237 op=228 msgId=229 - search is not indexed
So obviously no change, is there a need of DS restart to have changes in place ?
Thanks,
Jorge Sancheznsslapd-errorlog-level has been deprecated in DS 5.2.
It will work, but you should use nsslapd-infolog-area and nsslapd-infolog-level in future.
Also, note that 256 is a value that will not lead to extra logging.
The additional logging levels for 5.2 are detailed here:
http://docs.sun.com/source/816-6699-10/confattr.html#15873
Cheers,
Deeran -
Hi Guys,
I have a script to import a number of dimensions, this was previously done with an Esscmd script but is now in a MAXL script. Is it possible to write to an error log for each dimensionn I dont seem to be able to get the syntax correct;
import database Appname.DBname dimensions
connect as 'user' identified by 'password' using server rules_file 'Products' preserve all data on error append to '\\\server\\share\Products.err',
connect as 'user' identified by 'password' using server rules_file 'Customer' preserve all data on error append to '\\\server\\share\product.err',
and so on, this will error at the first comma at the end of line 3, if I replace the comma with semi colon the first statement is executed ok but not the second.
All help appreciated
EdWhat happened is that you used the error file after each transaction, you should add the error file after your last transaction or build. Or if you want to have separate error files you have to have separate statements for each dimension build that starts with 'importdatabase Appname.DBname dimensions'.
here's a sample of a single statement:
import database sample.basic dimensions
from server text data_file 'genref' using server rules_file 'genref' suppress verification,
from server text data_file 'level' using server rules_file 'level' suppress verification,
from server text data_file 'time' using server rules_file 'time'
preserve input data on error append to 'C:\Hyperion\EAS\eas\client\dataload.err'; -
Hi,
I am a portal programmer beginner and i am triying to develop a portal component that retrieve information from sap r/3.
I get the next message when i use the iview:
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
com/sap/portal/services/api/connectorgateway/IConnectorGatewayService.
Exception id: 04:05_05/07/06_0005_8919850
See the details for the exception ID in the log file
My question is: where are located the log files in order to obtain more information about the error?
Best Regards
João FernandesHI,
you can see the error log from portal by browsing to
System Administration -> support -> portal runtime -> log viewer
copy paste the exception id against appropriate date and time in defaultTrace.x.trc and click search. you will get the details of log.
or
You can find the detailed error log in this path
D(installed drive):\usr\sap\J2E\JC00\j2ee\cluster\server0\log
arrange the log files according to date check in the latest log file for your portal logon id to find your error. -
I'm pretty new to Web Dynpro and have a few questions regarding the location of the different error log.
1. Sometimes the web dynpro IDE prompt up saying "please check the error logs for details". Where is the error log located?
2. After i deployed and run the Web Dynpro application, there is a "Red Exclaimation" picture and the bottom of the web page. Where to find this error log?
3. Where is the error log for run time error, eg, NULL POINTER exception etc ?
Any help would be much appreciated. Thanks.Hi julius,
1) Go to windows->preferences->workbench->workspace->current workspace. Open directory, go to ".metadata" folder and check ".log" file
2) 3) In my case it is C:\usr\sap\J2E\JC02\j2ee\cluster\server0\log\defaultTrace.trc (J2E - SID, JC02 - 2nd instance)
Best regards, Maksim Rashchynski. -
Tracing error log in Application Server for report service
Hi guys,
My company use Oracle Application Server with the Form version 10.1.2.0.2.
Recently we experienced an error whereby the report services go down so frequent within a day.
I checked into the alert log file of the Database and found out ORA-00600: internal error code, arguments: [kgassg_2], [], [], [], [], [], [], []
Checked in Metalink, this might happen in 32 bit OS. So the suggestion is to check on the database memory parameters and extend the memory parameters affected to it.
Since this report service problem happen quite often, I might think that there should be something happening with the Application server as well.
Lastly, my questions are:
1. How can i investigate this error in Application Server side?
2. Is there any error log file in Application Server which is like alert log file in the database?
Thank youHi,
I would like to know Do you want to create a error file in Application server?
If yes, then it is quite easy. Just declare one internal table IT_LOG & store all the error records in this table.
Then loop over the internal table IT_LOG & using open data set concept transfer all the records.
Sample Code:
INITIALIZATION.
CONCATENATE '/INTERFACE/' SY-SYSID '/MM' into GV_DIR.
START-OF-SELECTION.
CONCATENATE GV_DIR '/' P_FILE INTO GV_FILE.
OPEN DATASET GV_FILE FOR OUTPUT IN TEXT MODE.
LOOP AT IT_LOG.
CLEAR LV_STRING.
CONCATENATE IT_LOG-F1 IT_LOG-F2 INTO LV_STRING SEPERATED BY ','.
TRANSFER LV_STRING TO GV_FILE.
ENDLOOP.
CLOSE DATASET GV_FILE.
Note: Here F1 & F2 are respective fields.
Maybe you are looking for
-
CD Rom drive not reading data or audio
Hello - I'm using a Fujitsu N series LifeBook laptop. I'd started having problems with my cd rom drive about 6 or so months ago. It reads dvd discs just fine, but is very "selective" about the audio cds i load. I got a palm pda for christmas and when
-
JDBC to RFC Scenario large data
Hi, I have jdbc to rfc scenario. I have no problem with the small size data (about 10 mb ). if resultset is very large ( about 80 -120 mb ) , i received resultset and proceess it but when PI try to send these data to RFC it stucks status Scheduled i
-
Too Much RAM causing shut down? (2008 Mac Pro)
I've got an older 2008, Mac Pro with an OWC SDD as my main drive running the latest version of Snow Leopard. In the last several months I've been experiencing problems where the system will shut down (screen says it has gone to sleep and I cannot wa
-
Hierarchy variable in Webi report
Dear all , I'm expirence some problems in the Olap Universe , my question is : I can't see data in Webi report . Step 1 Create the webi report Step 2 Run the query Step 3 Select the Hierarchy variables in prompt parameter Step 4 Get the msg "No data
-
Using Offset Compensated Ohms from IVI DMM in TestStand
I am using TestStand 3.5 with a PXI-4070 DMM and I want to be able to use the Offset Compensated Ohms function from the TestStand IVI-C DMM steps. I cannot find this functionality from the TestStand step, even though it is shown on the front panel o