How to get ORA Errors on SQLPlus in english
Hi,
I am running 10gR2 on american Windows.
Even I have set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
still getting oracle errros on SQLPlus in german :-(
What do I else need to change?
Thanks
Hi,
Are you sure that the NLS_LANG variable was correctly set up ?
C:\>sqlplus system/manager
SQL*Plus: Release 10.2.0.1.0 - Production on Dom Jun 10 21:43:40 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Conectado a:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select * from mytable;
select * from mytable
ERRO na linha 1:
ORA-00942: a tabela ou view não existe
SQL> select * from nls_session_parameters;
PARAMETER VALUE
NLS_LANGUAGE BRAZILIAN PORTUGUESE
NLS_TERRITORY BRAZIL
NLS_CURRENCY R$
NLS_ISO_CURRENCY BRAZIL
NLS_NUMERIC_CHARACTERS ,.
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD/MM/RR
NLS_DATE_LANGUAGE BRAZILIAN PORTUGUESE
NLS_SORT WEST_EUROPEAN
NLS_TIME_FORMAT HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
NLS_DUAL_CURRENCY Cr$
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
17 linhas selecionadas.
SQL> exit
Desconectado de Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
C:\>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
C:\>sqlplus system/manager
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 10 21:44:12 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select * from mytable;
select * from mytable
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select * from nls_session_parameters;
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
17 rows selected.
SQL> alter session set nls_language=german;
Session wurde geõndert.
SQL> select * from my table;
select * from my table
FEHLER in Zeile 1:
ORA-00933: SQL-Befehl wurde nicht korrekt beendet
SQL> select * from mytable;
select * from mytable
FEHLER in Zeile 1:
ORA-00942: Tabelle oder View nicht vorhandenCheers
Similar Messages
-
How to get ORA errors in alertlog file using shell script.
Hi,
Can anyone tell me how to get all ORA errors between two particular times in an alertlog file using shell script.
ThanksHi,
You can define the alert log as an external table, and extract messages with SQL, very cool:
http://www.dba-oracle.com/t_oracle_alert_log_sql_external_tables.htm
If you want to write a shell script to scan the alert log, see here:
http://www.rampant-books.com/book_2007_1_shell_scripting.htm
#!/bin/ksh
# log monitoring script
# report all errors (and specific warnings) in the alert log
# which have occurred since the date
# and time in last_alerttime_$ORACLE_SID.txt
# parameters:
# 1) ORACLE_SID
# 2) optional alert exclusion file [default = alert_logmon.excl]
# exclude file format:
# error_number error_number
# error_number ...
# i.e. a string of numbers with the ORA- and any leading zeroes that appear
# e.g. (NB the examples are NOT normally excluded)
# ORA-07552 ORA-08006 ORA-12819
# ORA-01555 ORA-07553
BASEDIR=$(dirname $0)
if [ $# -lt 1 ]; then
echo "usage: $(basename) ORACLE_SID [exclude file]"
exit -1
fi
export ORACLE_SID=$1
if [ ! -z "$2" ]; then
EXCLFILE=$2
else
EXCLFILE=$BASEDIR/alert_logmon.excl
fi
LASTALERT=$BASEDIR/last_alerttime_$ORACLE_SID.txt
if [ ! -f $EXCLFILE ]; then
echo "alert exclusion ($EXCLFILE) file not found!"
exit -1
fi
# establish alert file location
export ORAENV_ASK=NO
export PATH=$PATH:/usr/local/bin
. oraenv
DPATH=`sqlplus -s "/ as sysdba" <<!EOF
set pages 0
set lines 160
set verify off
set feedback off
select replace(value,'?','$ORACLE_HOME')
from v\\\$parameter
where name = 'background_dump_dest';
!EOF
`
if [ ! -d "$DPATH" ]; then
echo "Script Error - bdump path found as $DPATH"
exit -1
fi
ALOG=${DPATH}/alert_${ORACLE_SID}.log
# now create awk file
cat > $BASEDIR/awkfile.awk<<!EOF
BEGIN {
# first get excluded error list
excldata="";
while (getline < "$EXCLFILE" > 0)
{ excldata=excldata " " \$0; }
print excldata
# get time of last error
if (getline < "$LASTALERT" < 1)
{ olddate = "00000000 00:00:00" }
else
{ olddate=\$0; }
errct = 0; errfound = 0;
{ if ( \$0 ~ /Sun/ || /Mon/ || /Tue/ || /Wed/ || /Thu/ || /Fri/ || /Sat/ )
{ if (dtconv(\$3, \$2, \$5, \$4) <= olddate)
{ # get next record from file
next; # get next record from file
# here we are now processing errors
OLDLINE=\$0; # store date, possibly of error, or else to be discarded
while (getline > 0)
{ if (\$0 ~ /Sun/ || /Mon/ || /Tue/ || /Wed/ || /Thu/ || /Fri/ || /Sat/ )
{ if (errfound > 0)
{ printf ("%s<BR>",OLDLINE); }
OLDLINE = \$0; # no error, clear and start again
errfound = 0;
# save the date for next run
olddate = dtconv(\$3, \$2, \$5, \$4);
continue;
OLDLINE = sprintf("%s<BR>%s",OLDLINE,\$0);
if ( \$0 ~ /ORA-/ || /[Ff]uzzy/ )
{ # extract the error
errloc=index(\$0,"ORA-")
if (errloc > 0)
{ oraerr=substr(\$0,errloc);
if (index(oraerr,":") < 1)
{ oraloc2=index(oraerr," ") }
else
{ oraloc2=index(oraerr,":") }
oraloc2=oraloc2-1;
oraerr=substr(oraerr,1,oraloc2);
if (index(excldata,oraerr) < 1)
{ errfound = errfound +1; }
else # treat fuzzy as errors
{ errfound = errfound +1; }
END {
if (errfound > 0)
{ printf ("%s<BR>",OLDLINE); }
print olddate > "$LASTALERT";
function dtconv (dd, mon, yyyy, tim, sortdate) {
mth=index("JanFebMarAprMayJunJulAugSepOctNovDec",mon);
if (mth < 1)
{ return "00000000 00:00:00" };
# now get month number - make to complete multiple of three and divide
mth=(mth+2)/3;
sortdate=sprintf("%04d%02d%02d %s",yyyy,mth,dd,tim);
return sortdate;
!EOF
ERRMESS=$(nawk -f $BASEDIR/awkfile.awk $ALOG)
ERRCT=$(echo $ERRMESS|awk 'BEGIN {RS="<BR>"} END {print NR}')
rm $LASTALERT
if [ $ERRCT -gt 1 ]; then
echo "$ERRCT Errors Found \n"
echo "$ERRMESS"|nawk 'BEGIN {FS="<BR>"}{for (i=1;NF>=i;i++) {print $i}}'
exit 2
fi -
Hello All,
I am using this API for creating a contact for an employee in R12.
But, some times i am not able to create the contact successfully, and Unable to figure out proper reason for record erroring out.
I dont find any out msg data variables for this API in order to check it for the Error.
So, can any body help me how to get the ERROR Message for such APIs.
Thanks inAdvance,
Amarnadh Jsuser12243334 wrote:
solved the issue on myselfIt would be nice if you could share the solution with us.
Thanks,
Hussein -
How to read ora error stack?
Hi,
Db : 11.2
We got the below error in alert log.For understanding purpose,Arch session was killed or Rman session was killed? So cannot be archived. Is it right?
The session was killed Hence
ORA-16038: log 6 sequence# 26202 cannot be archived
ORA-00028: your session has been killed
ORA-00312: online log 6 thread 2: '+ARCH_IT03/it03/onlinelog/group_6.1122.794731693'
ORA-00312: online log 6 thread 2: '+DATA_IT03/it03/onlinelog/group_6.271.794731695'
How to read ora error stack? From Top to bottom or bottom to top
Br,
Raj975791 wrote:
Hi,
Db : 11.2
We got the below error in alert log.For understanding purpose,Arch session was killed or Rman session was killed? So cannot be archived. Is it right?
The session was killed Hence
ORA-16038: log 6 sequence# 26202 cannot be archived
ORA-00028: your session has been killed
ORA-00312: online log 6 thread 2: '+ARCH_IT03/it03/onlinelog/group_6.1122.794731693'
ORA-00312: online log 6 thread 2: '+DATA_IT03/it03/onlinelog/group_6.271.794731695'
How to read ora error stack? From Top to bottom or bottom to top
Br,
Raj
Yes
The messages are all related to the same issue. There really isn't any issue of 'which comes first'. -
please let me know how to get past error msg 11 when trying to restore an ipod touch 4th gen
Is the iPod jailbroken? Googling shows that error 11 appears if it has been jailbroken.
-
How to get an error icon with tool tip in a displaying table in a particu
How to get an error icon with tool tip in a displaying table in a particular field..
Thanks.Hi,
In the context create an attribute of type string .
Create the attribute in the node which you bind for table.
In the layout .
1.create a Table UI element.
2 create binding for UI element.
3Right click on the Table UI and select insert table column.
4.once the table column is inserted right click on table column and select insert cell editor.
5.create the cell editor of the type image.
6.Bind the source property of the image to the attribute in the node which you have created.
so depending on what image(type of icon) needs to be displayed set the attibute accordingly.
refer to the link for image :
[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d1/af8841349e1909e10000000a155106/frameset.htm]
Priya -
Getting ORA Error while running any Query
Hi Experts - I am getting below error message for any query i run in Webi. Please help.
failed to execute with the error ORA-00604: error occurred at recursive SQL level 1
ORA-01655: unable to extend cluster SYS.C_OBJ#_INTCOL# by 128 in tablespace. (WIS 10901)Hello communutiy, hello rohan,
after updating patches next working day we also get this erreor message
"ORA-00604: error occurred at recursive SQL level 1 ORA-01655: unable to extend cluster SYS.C_OBJ#_INTCOL# by 128 in tablespace"
What have you done so far. Could you solve this issue? If yes how?
Best regards Harry -
Java - Axis2: How to get an error code / error message from the Javascript via SOAP
Hi
In our Java applicsation we call a Javascript in a Indesign CS Server using the following code:
--- SNIP BEGIN ---
// calls the remote service on the indesign server
try {
// create service
ServiceStub oIndsgnSrvStub = new
ServiceStub(sIndesignServer);
// create service parameter
ServiceStub.RunScriptParameters
oIndsgnSrvRSParams = new ServiceStub.RunScriptParameters();
// create arguments with source- and target-file for parameter
ServiceStub.IDSPScriptArg[] oIndsgnSrvSArgs = new ServiceStub.IDSPScriptArg[2];
oIndsgnSrvSArgs[0] = new
ServiceStub.IDSPScriptArg();
oIndsgnSrvSArgs[0].setName("xml-input");
oIndsgnSrvSArgs[0].setValue(sSourceFile);
oIndsgnSrvSArgs[1] = new
ServiceStub.IDSPScriptArg();
oIndsgnSrvSArgs[1].setName("output-file");
oIndsgnSrvSArgs[1].setValue(sTargetFile);
// define service parameter
oIndsgnSrvRSParams.setScriptArgs(oIndsgnSrvSArgs);
oIndsgnSrvRSParams.setScriptFile(sScriptFile);
oIndsgnSrvRSParams.setScriptLanguage("javascript");
oIndsgnSrvRSParams.setScriptText("");
// create runscript
ServiceStub.RunScript oIndsgnSrvRS = new ServiceStub.RunScript();
// set parameter
oIndsgnSrvRS.setRunScriptParameters(oIndsgnSrvRSParams);
//$$$ there should be an answer returned by the InddSrvr
// execute SOAP call
ServiceStub.RunScriptResult oIndsgnSrvRes = oIndsgnSrvStub.RunScript(oIndsgnSrvRS);
if(oIndsgnSrvRes.getErrorNumber() == 0) {
oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_SUCCESS);
bOK = true;
} else {
oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_FAILURE);
bOK = false;
//$$$ should be set, if there is something returned by inddsrvr
//oServerProdJob.setErrorMsg(sErrorMsg);
} catch(Exception e) {
sError += e.getMessage() + "\n";
bOK = false;
--- SNIP END -----
The problem is that we don't get the error code and/or the error message from the Javascript in oIndsgnSrvRes. The error code is always 0 if I set an Integer value as return in the Javascript. If I set a String, there is an Exception in the Java application.
Here is the Java script we use:
--- SNIP BEGIN ---
main();
main()
var sError = "";
var sXMLInput = "";
var sLayoutPath = "";
// get the SDKCodeSnippetRunner object
var cbpAdapter = app.cbpCbpadapterObject
if (cbpAdapter) {
sXMLInput=app.scriptArgs.get("xml-input");
sLayoutOutputFile=app.scriptArgs.get("output-file");
sError = cbpAdapter.doProcess(sXMLInput, sLayoutOutputFile);
return sError; // This give an Exception; if I return an Integer the ScriptResult is always 0
--- SNIP END -----
If I try this with the test application from Adobe I get the error code correctly. But in the Java application, using SOAP, I can't get the error code.
What could be wrong?
Any ideas?
Thanks a lot for the support.
Kind regards
Hansuser11340104 wrote:
Hello -
i am calling sqlplus from a bash shell script. If the sql statement generates an error, how can I return that error code (unsuccessful) back to the bash shell?
Well, let google be your friend,
http://www.google.co.in/search?rlz=1C1GGLS_enIN327IN327&sourceid=chrome&ie=UTF-8&q=sqlplus+error+codes
There are many threads I guess talking about the same issue.
HTH
Aman.... -
Re: How to Handle ORA Errors in adf
HI all.
I am using Jdev 11.1.2.3 , Database oracle 11g,
Some scenarios i am getting ORA:022XXX error popup.
How can i make this popups as user defined messages.
Withregards,
satishkumar NHi Satish,
To my mind the easiest solution would be one from developer's guide (last option Lars suggested). But it is quite limited, because there You can't override ORA messages like ORA:022XXX in general, there You must list specific DB constraints in two-dimensional array. In this solution I also missed just simple "error code -message" mapping in regular bundle file. It is not described in developer's guide, but easily implemented by just creating bundle file in the same package as extending class resides (more details in blog post Custom bundle to override default error mesasges in ADF application).
But.. If You still need to override DB messages like ORA:022XXX, not particular constraints, You should go with rth suggested solution.
Here is a code sample of "DCErrorHandlerImpl" extending class to set You on the road:
public class DataControlExceptionHandler extends DCErrorHandlerImpl {
public DataControlExceptionHandler() {
super(true);
@Override
public String getDisplayMessage(BindingContext bindingContext, Exception exception) {
if (exception instanceof SQLIntegrityConstraintViolationException) {
SQLIntegrityConstraintViolationException sqlExc = (SQLIntegrityConstraintViolationException) exception;
return "DB exception occured: "+ sqlExc.getMesage();
return exception.getLocalizedMessage();
Regards,
Danas -
How to- Customise ORA errors in ADF UIX ?
Iam working on JDev 10.1.2. ADF UIX.
I have managed to capture JBO errors using message bundle and custo mise them but am not able to do the same in case of ORA errors. I need to customise errors like integrity constraint errors from database.
How am i too to do that?
Regards,
Vineet.hello
di you get this issue solved, please help
we are using 10.1.3 -
How to get actual error from Crystal Report
We are using Crystal report in web service.
We faced some problem due to crystal report unexpected error.
Refer the below error message.
Xception E NSF NSFZ1100 20100608 145511565 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Xception E NSF NSFZ1100 20100608 145511972 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e, Boolean suppressMessage)
at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e)
at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPageNumber()
at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPage()
at CrystalDecisions.Windows.Forms.DocumentControl.ShowLastPage()
at CrystalDecisions.Windows.Forms.PageView.ShowLastPage()
at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.TotalPageCount(ReportDocument Rpt)
at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.Print(BaseReport RptDefinition)
at Biz.Nissan.Cats.CORE.REPORT.MCTLIST260Print.Print(IFData ifData)
at Biz.Nissan.W3.CATS.BC.Service.DistributeService.ExecuteMpp()
How we get the actual error from crystal report?
Thanks in AdvanceSame as
crystal report unexpected error in Web service (IIS)
Closing this thread.
Ludek -
How to get mysql error as a message on java
hi,
can any one please tell me how we can get the error generated by Mysql database during runtime as a message on a java program form.
thankstry
aSQLMethod();//this method is capable of throwing an SQLException
catch(SQLException exc)
String errorMessage=exc.getMessagae();//I don't understand what you want to do with this error message
} -
How to get the errors thrown during SwingWorkes-doInBackground-method
Hi,
I got an annoying problem.
I use a SwingWorker to do some operations in background...
Now it could be, that some of those operations throw an exception...
but the SwingWorker do not throw those...
The only exception i get is a final Exception cause of an object who
wants to display the result of the background activity...
In detail : a method done in background throws an index out of bounds exception
but how i can get this error?
I try to surround the swing worker object with a try and catch for general exceptions but
this don't work.
regards
OlekThere are two things you can do. First, you might wrap the code in doInBackground() in try/catch. I'd discourage this since it will make your code more complicated. Secondly, if an exception occurs, the SwingWorker will switch its state to 'done'. If you invoke the get() method (even if you're returning null in doInBackground()), an ExecutionException will be risen. Using Exception#getCause(), you will get the original exception that occured, in your case the ArrayIndexOutOfBoundsException.
-
How to get Application Error descriptions
Hi, all:
Our interface has ECC system involved.
The Message Monitoring in local integration engine shows that there are many messages with application errors.
I would like to export all messages with application error:
include message ID and error text.
Right now, I can export the data from Message monitoring window, but I can not get application error from exported spreadsheet. anyone has idea how to do it ?
Thanks in advance !
Liang JiHi, venkata:
Thanks for you reply.
Our scenario is
ThirdPartySystem ---> SOAP ---> XI ---> ECC (ABAP Proxy)
Technically, the scenario is running perfect.
After go-alive, there are many application errors because of the data problem, e.g.:
Cannot create order. Service order number already exist
We know these problem are caused by conversion, now I would like to track each message, so I exported to spreadsheet from Message monitoring.
But the exported spreadsheet does not include Application Error text, this is the reason I post the question here, do you have idea about it ?
Thanks
Liang -
How to get the error in idoc removed?
Hi all,
I am getting this error in inbound ORDERS "VKORG, VTWEG, SPART cannot be determined for customer PEPSICO , vendor". The help on this error says that this is automatically filled? How could the IDoc sender have given these values.. I think a user exit at my end (receiving end) can supply these values not my customer who sent this IDoc. My question is what is the exit name and is there any other way?
Thanks a lot,
Charles.Hi,
Please try this user exits EXIT_SAPLVEDA_007 for FM IDOC_INPUT_ORDERS.
Regards,
Ferry Lianto
Maybe you are looking for
-
Best SSD to DIY a Fusion Drive.
Hi there, I'd like to know if any of you have personally a SSD brand you trust. I once purchased a SanDisk SSD for my work computer which failed before a year of usage. Later I purchased a Crucial/Micron SSD for my iMac which seems to be failing no
-
IMac upgrade from Snow Leopard to Lion results in flaky wireless connectivity!
I upgraded rhe OS and noticed the wireles connectivity gets dropped frequently. I initially suspected that the router was bad and replaced it. I have to turn on and tur off the WIFI connectivity to get connected for a few minutes and then the connect
-
Different parameters for different sheets- Command Line Script
Hi, I am using command line script to run my discoverer report. I have 5 sheets in the workbook out of which, 2 has a PeriodID parameter, and the other 3 sheets does not have parameters. Is it possible to execute this scenario. This is the script i u
-
Images as buttons not pulling modified graphic?
Ok here is my issue... i have created buttons in photoshop for captivate to show a text bubble when a certian link/button is clicked. I could not find a way to have text as a button and have a rollover effect without creating it as a image. (is there
-
How to use 'studio instruments' in Main Stage 3
Hi, I just bought Main Stage 3 today, and I am wondering how to select the studio instruments for example 'brass' that are files under 'patches library/audio/studio instruments/brass'. I have been through the manual, but I did not see anything. Do I