Ora error 01722
This is my script:
Can anyone help me pls...
INSERT INTO LOANS (LOAN_PROJ_ID, LOAN_GC_ORNO,
LOAN_GC_ORDATE, LOAN_RELEASE_DATE,
LOAN_INTEREST_RATE, LOAN_TERM,
LOAN_VALUE, LOAN_HDMF_CHECK_NO,
LOAN_REMARKS, LOAN_LOT_NO,
LOAN_BLK_NO, LOAN_PHASE_NO, LOAN_HDMF_TO_AMT, LOAN_HDMF_RET_RATE,
LOAN_GF_DISC_RATE, LOAN_GF_DISCAMT, LOAN_CASH_BOND,
LOAN_TO_REFUND_AMT, LOAN_CB_REFUND_AMT, LOAN_UNIT_CATEGORY,
LOAN_HDMF_RETAMT, LOAN_BATCH_NO, LOAN_GUARANTY_FEE, LOAN_STATUS)
SELECT T.LOAN_PROJ_ID,T.LOAN_GC_ORNO,
TO_DATE(T.LOAN_GC_ORDATE, 'DD-MON-RR'),TO_DATE(T.LOAN_RELEASE_DATE, 'DD-MON-RR'),
TO_NUMBER(T.LOAN_INTEREST_RATE),T.LOAN_TERM,
T.LOAN_VALUE,T.LOAN_HDMF_CHECK_NO,
T.LOAN_REMARKS,T.LOAN_LOT_NO,T.LOAN_BLK_NO,T.LOAN_PHASE_NO,
T.LOAN_HDMF_TO_AMT,TO_NUMBER(T.LOAN_HDMF_RET_RATE),
TO_NUMBER(T.LOAN_GF_DISC_RATE),T.LOAN_GF_DISCAMT,
T.LOAN_CASH_BOND,T.LOAN_TO_REFUND_AMT,
T.LOAN_CB_REFUND_AMT,T.LOAN_UNIT_CATEGORY,
T.LOAN_HDMF_RETAMT,T.LOAN_BATCH_NO,
T.LOAN_GUARANTY_FEE, LT.ACCT_STATUS_ID
FROM TEMP_CUSTOMERS T, ACCT_STATUS LT
WHERE LT.LOAN_STATUS = 'ACTIVE'
Error starting at line 1 in command:
INSERT INTO LOANS (LOAN_PROJ_ID, LOAN_GC_ORNO,
LOAN_GC_ORDATE, LOAN_RELEASE_DATE,
LOAN_INTEREST_RATE, LOAN_TERM,
LOAN_VALUE, LOAN_HDMF_CHECK_NO,
LOAN_REMARKS, LOAN_LOT_NO,
LOAN_BLK_NO, LOAN_PHASE_NO, LOAN_HDMF_TO_AMT, LOAN_HDMF_RET_RATE,
LOAN_GF_DISC_RATE, LOAN_GF_DISCAMT, LOAN_CASH_BOND,
LOAN_TO_REFUND_AMT, LOAN_CB_REFUND_AMT, LOAN_UNIT_CATEGORY,
LOAN_HDMF_RETAMT, LOAN_BATCH_NO, LOAN_GUARANTY_FEE, LOAN_STATUS)
SELECT T.LOAN_PROJ_ID,T.LOAN_GC_ORNO,
TO_DATE(T.LOAN_GC_ORDATE, 'DD-MON-RR'),TO_DATE(T.LOAN_RELEASE_DATE, 'DD-MON-RR'),
TO_NUMBER(T.LOAN_INTEREST_RATE),T.LOAN_TERM,
T.LOAN_VALUE,T.LOAN_HDMF_CHECK_NO,
T.LOAN_REMARKS,T.LOAN_LOT_NO,T.LOAN_BLK_NO,T.LOAN_PHASE_NO,
T.LOAN_HDMF_TO_AMT,TO_NUMBER(T.LOAN_HDMF_RET_RATE),
TO_NUMBER(T.LOAN_GF_DISC_RATE),T.LOAN_GF_DISCAMT,
T.LOAN_CASH_BOND,T.LOAN_TO_REFUND_AMT,
T.LOAN_CB_REFUND_AMT,T.LOAN_UNIT_CATEGORY,
T.LOAN_HDMF_RETAMT,T.LOAN_BATCH_NO,
T.LOAN_GUARANTY_FEE, LT.ACCT_STATUS_ID
FROM TEMP_CUSTOMERS T, ACCT_STATUS LT
WHERE LT.LOAN_STATUS = 'ACTIVE'
Error report:
SQL Error: ORA-01722: invalid number
01722. 00000 - "invalid number"
*Cause:
*Action:
Thanks
rodel [email protected]
I think the TO_NUMBER function you're using is acting on a field that cannot be converted to a number.
Hope that helps
Graham
Message was edited by:
graham_oakes
Similar Messages
-
How to be notified for all ORA- Errors recorded in the alert.log file
based on Note:405396.1, I Changed the Matches Warning from the default value ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9] to ORA-* in order to receive an warning alert for all ORA- errors.
but I just recieved the alert like the following:
Metric=Generic Alert Log Error
Time/Line Number=Mon Feb 25 23:52:21 2008/21234
Timestamp=Feb 26, 2008 12:06:03 AM EST
Severity=Warning
Message=ORA-error stack (1654, 1654, 1654) logged in /opt/oracle/admin/PRD/bdump/alert_PRD.log.
Notification Rule Name=Alert Log Error
Notification Rule Owner=SYSMAN
as you can see, the message only indicate the ORA-1654, nothing else.
How to set in 10g grid control to get the details alert that in the alert log like:
"ORA-1654: unable to extend index ADM.RC_BP_STATUS by 1024 in tablespace PSINDEX"
I can't believe Oracle 10g Grid control only provide the ORA- number without detailsGo to your database target.
On the home tab, on the left hand side under Diagnostic Summary, you'll see a clickable date link next to where it says 'Alert Log'. Click on that.
next click on Generic Alert Log Error Monitoring Configuration (its at the bottom)
In the alert thresholds put:
ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]
I believe that will pick anything up but experiment, its only perl.
If you want to test this use the DBMS_System.ksdwrt package but I would advise you only do so on a test database. If you've never heard of it, google it. Its a way of writing to your alert log.
Make sure you have your emails sent to long format as well. -
Sir,
I have the ORA-ERRORS in .pdf file, but the version is for Oracle 8i database.
Someone knows where can I find this file but up to date for Oracle 9i or 10g ?
ThanksHi,
In addition, you can take a look on books link and search for "Error Messages"
http://www.oracle.com/pls/db102/portal.portal_db?selected=3
Cheers -
Defaulting Rules using PL/SQL Api - ORA error
Hi All,
Iam using the PLSQL api for OM defaulting rules. Based on the item in the Sales order line, Line type has to be defaulted.
I have put debug messages and iam able to see successful execution and the required Line type value is returned. No exception is raised.
Error ORA-06502 PL/SQL numberic to value error. Character to number conversion error is thrown outside the custom package.
PLSQL api is coded as below.
CREATE OR REPLACE PACKAGE BODY xx_default_ordertype IS
G_PKG_NAME CONSTANT VARCHAR2(30) := 'XX_DEFAULT_ORDERTYPE';
FUNCTION get_trans_type
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN varchar2 IS
l_trans_type VARCHAR2(30);
-- l_item_id NUMBER := ONT_LINE_DEF_HDLR.g_record.ORDERED_ITEM_ID;
BEGIN
SELECT b.name
INTO l_trans_type
FROM OE_TRANSACTION_TYPES_tL b,
oe_transaction_types_all a
WHERE a.transaction_type_id=b.transaction_type_id
AND attribute1=ONT_LINE_DEF_HDLR.g_record.INVENTORY_ITEM_ID;
RETURN l_trans_type;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN l_trans_type;
WHEN OTHERS THEN
insert_sstab(7,'in exception');
IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
OE_MSG_PUB.Add_Exc_Msg (G_PKG_NAME, 'xx_default_ordertype');
END IF;
RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
END get_trans_type;
END xx_default_ordertype;
Not able to figure out where the ORA error is getting raised from.
Kindly help
Edited by: user11969666 on Mar 19, 2011 7:47 AMbtw, I did try your test and it didn't error for me:
CREATE OR REPLACE PACKAGE xx_default_ordertype IS
FUNCTION get_trans_type
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN varchar2;
end xx_default_ordertype;
CREATE OR REPLACE PACKAGE BODY xx_default_ordertype IS
FUNCTION get_trans_type
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN varchar2 IS
l_trans_type OE_TRANSACTION_TYPES_tL.name%TYPE :='a';
BEGIN
RETURN l_trans_type;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN l_trans_type;
END get_trans_type;
END xx_default_ordertype;
begin
dbms_output.put_line(xx_default_ordertype.get_trans_type('X','Y'));
end;
/ -
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 -
ORA- Error messages in Oracle Alert File
Hello Gurus,
In a SAP - BW system installed on Oracle 8.1.7.4, there were some oracle errors entries as follows;
Fri Nov 3 02:13:32 2006
Errors in file /oracle/<SID>/saptrace/background/p001_14866_<sid>.trc:
ORA-00603: ORACLE server session terminated by fatal error
ORA-00052: maximum number of enqueue resources (8000) exceeded
ORA-00052: maximum number of enqueue resources (8000) exceeded
How fatal is this error? how to make sure this doesnt happen again and anyone can share the SQL command to see how many ENQUEUE_RESOURCES are being used?
If i have to increase the enqueue, where and how to do it?
Thanks in advance for your help.Hi "Basis Learner",
1. Oracle 8.1.7 is out of date! It's not maintained anymore.
2. You don't need SQL to tell how many enqueue resources have been used here. The message is clear: 8000. The current maximum. Not a single one more and no less.
3. Well how many more you'll need is hard to tell. But oviously more. Try with plus 50% -> 12000.
Since the process that died here had been a paralle query server process, it may also be the case, that you've configured too many parallel servers. As they run at the same time (parallel) they'll make use of enqueues at the very same time...
4. Of course there are notes:
398927 - ORA error as the dimensions of the parameters are too small
745639 - FAQ: Oracle enqueues
632427 - Oracle 8.1.7* database parameterization for BW
Hope that helps.
KR Lars -
Create custom rule: Looking for ORA errors in the alert log
I would like to create a rule to notify me when ORA errors are generated to the alert log. When I try to create a rule, I seem to only be able to choose from predefined lists. Has anyone configured a rule for this?
Grrr. This is for 10.2 Grid:
Go to databases --> select your database
Under Diagnostic summary, you'll see:
Alert Log 28-Dec-2006 09:19:48
The date part is a clickable link, click on it. Scroll to the bootom of the next page and click on:
"Generic Alert Log Error Monitoring Configuration"
Now read the page very carefully, its all self explanatory. The reason who haven't had some errors reported is because of that filter. Now set it up the way you want it.
Good luck
Bazzza -
Not clearable : 1 distinct types of ORA- errors have been found in the alert log.
( Correct me if I'm wrong.)
What could be the reason for the fact that the event "1 distinct types of ORA- errors have been found in the alert log." is not clearable?
Even if the problem is solved, the ORA- error will still be in the alert.log.
Therefore the event would eventually only disappear after 7 days.
Doesn't sound very logical to me.- The event page showing a warning event for "Generic Alert Log Error Status" metric,
- "Generic Alert Log Error Status" event is a statefull metric,
- On each evaluation of the metric defined as 'Statefull', the Cloud Control Agent recalculates the severity,
- This means, EM Agent scans the alert log for ORA errors, "Generic Alert Log Error Status" will return the number of ORA error found,
- Whenever the returned number is grater than the assigned thresholds of "Generic Alert Log Error Status", an alert is raised on EM console,
- On the next scan of alert log file, this alert will be cleared ONLY if the collected value is less than the assigned threshold,
- By checking your system, the warning threshold of "Generic Alert Log Error Status" is 0, so whenever a single ORA error is found in alert log, a warning event will be raised and you will not be able to clear it manually as this is a stateful metric.
There are three cases where this alert can be cleared:
1. The agent found 0 ORA errors in Alert log, then the alert will be cleared automatically
2. Manual clear: By disabling/enabling the metric
3. Manual clear and further not receiving similar alerts frequently: By assigning higher thresholds values
So, I suggest to disable the metric, then, enable it after some time as follows as follows:
- Go to the problematic database home page >> open the 'Oracle Database' drop-down menu >> 'Monitoring' >> 'Metric and Collection Settings',
- Choose 'All metrics' from the 'View' drop-down list >> search for the 'Generic Alert Log Error Status' metric,
- Click the pencil icon under 'Edit' column opposite to the above metric >> remove the Warning Threshold (make it empty) >> 'Continue' >> 'OK'.
- Wait for the next collection schedule in order for the warning events to be cleared, then, enable the metric again with the same steps (setting Warning Threshold=0).
References:
Note 604385.1 Receiving "Clear" Notifications Unexpectedly for 'Generic Alert Log Error Status' Metric
Note 733784.1 What are Statefull and Stateless Metrics in Enterprise Manager - Explanation and Example
HTH
Mani -
Trapping ora- errors in alert.log
hello everyone,
A classical question that I think every DBA has encountered.
We have about 40 oracle database servers, some with 9i, others with 10g, still others with both. Some on Linux, others on Solaris.
My question is, how to trap ora- errors in the alert.log of these database and having them being sent as an email.
It's not an easy question to answer, I know. But I'd like to get ideas from your experiences in implementing the same thing in your environments.
Many thnx.
HiruyaHi,
this let you look for errors :
utl_file.get_line(vInHandle, vNewLine);
IF vNewLine like ('%ORA-%') then
Then this let you to mail the errors :
utl_smtp.mail
Here is my complete script :
SET SERVEROUT ON
DECLARE
c utl_smtp.connection;
vInHandle utl_file.file_type;
vNewLine VARCHAR2(250);
vMessage VARCHAR2(250);
I pls_integer := 0;
LC$Fic_in Varchar2(128) := 'db1ALRT.LOG'; -- a adapter sur votre configuration
LC$Dir_in Varchar(30) := 'C:\oracle\admin\db1\bdump';
PROCEDURE send_header(name VARCHAR2, header VARCHAR2) AS
BEGIN
utl_smtp.write_data(c,name ||':'|| header || UTL_TCP.CRLF);
END;
BEGIN
vInHandle := utl_file.fopen(LC$Dir_in, LC$Fic_in, 'R');
LOOP
BEGIN
utl_file.get_line(vInHandle, vNewLine);
IF vNewLine like ('%ORA-%') then
vMessage:=vMessage||chr(10)||vNewLine;
END IF;
EXCEPTION
WHEN OTHERS THEN
EXIT;
END;
END LOOP;
utl_file.fclose(vInHandle);
-----------------------SEND A MAIL---------------------------
c := utl_smtp.open_connection(‘smtpserver’,25);
utl_smtp.helo(c, ‘something.com');
utl_smtp.mail(c, [email protected]');
utl_smtp.rcpt(c, ‘[email protected]');
utl_smtp.open_data(c);
send_header('From', '"someone" <[email protected]>');
send_header('To', '"Recipient" < [email protected] >');
send_header('Subject', 'DB1 ERREUR ALERT LOG');
utl_smtp.write_data(c, UTL_TCP.CRLF ||vMessage);
utl_smtp.close_data(c);
utl_smtp.quit(c);
EXCEPTION
WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
BEGIN
utl_smtp.quit(c);
EXCEPTION
WHEN utl_smtp.transient_error
OR utl_smtp.permanent_error THEN
NULL;
END;
raise_application_error(-20000, SQLERRM);
END fopen;
/ -
I wanted to know when the ORA- errors are reported into the alert.log file?
And which tye of errors are reported into it?
And if i wanted to log all the ORA-errors in the alert log then is there any setting for that?You can find the type of errors reported in the link above.
Also, you maynot like to log ORA-00942: table or view does not exist, ORA-00904: : invalid identifier type of errors in alert.log - right? You may want to research at setting up events for generating trace files on specific error numbers you are looking at. That might resolve your problem - hth. -
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'. -
In the passed I used an Oracle site with a description of all the ORA error messages. Now I can not find this site anymore. Does anyone know the link to this site?
kind regards,If you are searching for a specific error message you might try
http://otn.oracle.com/pls/db92/db92.error_search?remark=homepage&prefill=ORA- -
Parse error does not return ORA error
I had a query for a chart that would not parse and did not return an ORA- error to help me find the problem. After some trial and error I was able to identify the source of the error. I was passing a string to the TRUNC function and not a date. I would expect to receive and ORA-1722 with the parse error message but did not. This looks like a small bug to me. If not can someone explain why I would not get an ORA error with this?
test case:
select null link,
8 lbl,
trunc(:P1_DATE,'MONTH') val
from dual;
select null link,
8 lbl,
trunc(to_date(:P1_DATE,'DD-MM-YYYY'),'MONTH') val
from dual;
-Jonathan StowellWhat version of HTML DB? 1.5, but I just upgraded to 1.6, have not tested there yet.
What kind of chart (SVG or HTML and which one)?SVG bar chart
Where did the error occur (on the edit page or at runtime)? Edit page.
What is the exact error you saw? Unable to parse query (OK maybe this is not exact but it defintly did not display and ORA error).
Shouldn't the "val" value be numeric?That was just an example, a bad example aparently. -
Tnsnames.ora error when installing oracle 9i developer suite
Hi,
Can anyone answer this question: I recently installed
oracle 9i and i'm getting a tnsnames.ora error when connecting to the database. Can anyone tell me what parameters to modify in the tnsnames.ora and sqlnet.ora files and what values to put in these parameters. Also,
i'm trying to create a net_service_name in oracle net manager(in configuration/management tools) and I can't figure out the service name for versions of Oracle 8i or later. Can someone tell me what this is because the program is asking for a service name. I need this info
for connecting to the database by username/password@net_service_name. Please respond soon.
Thank you.
T. PatelGo Net8Assistant. Follow the tree Net8Config ->Local -> Service Naming. In this node you will find all instances set (SIDs) and by clicking on them you will see in the right hand part of the screen if they were set or not in tnsnames.ora.
Another way: Usually the database service name is OracleServiceSID. Go Control Panel -> Administrative Tools -> Services and check out the Oracle Service name. Take the SID from there to tnsnames.ora.
You should have write down the name you was asked for while you were installing Oracle (or the default name that the installer put for you).
Hope this will help you
Alexandra -
How to display FRM Error and corresponding ORA error into alert
hello
I m able to catch FRM Error through ON-ERROR Trigger with help of ERROR_CODE
and ERROR_MESSAGE
Now i want to know how can i catch ORA error (If Exists )Corresponding to that FRM error .
Any help will be grately appricated.
Waiting for Reply......................................hello
i tried following code but it will not display alert..............
i write following code into .pll file and i called this function on ON_ERROR trigger
but it will not display alert
declare
errcode NUMBER := ERROR_CODE;
dbmserrcode NUMBER;
dbmserrtext VARCHAR2(200);
begin
IF errcode = 40508 THEN
/* ** Form Builder had a problem INSERTing, so
** look at the Database error which
** caused the problem.
dbmserrcode := DBMS_ERROR_CODE;
dbmserrtext := DBMS_ERROR_TEXT;
IF dbmserrcode = -1401 THEN
** ORA-01438 is "value too large for column"
g_fun.MSGBOX('Your number is too large. Try again.');
ELSIF dbmserrcode = -1400 THEN
** ORA-01400 is "Mandatory column is NULL"
g_fun.MSGBOX('You forgot to provide a value. Try again.');
ELSE
** Printout a generic message with the database
** error string in it.
g_fun.MSGBOX('Insert failed because of '||dbmserrtext);
END IF;
END IF;
Maybe you are looking for
-
I recently installed iOS5 and so far everything has worked as described albeit a little slower, however I have an issue with the sync. The phone tells me after the completed sync that "37 items could not be synced. See iTunes for more information". W
-
The following warning is displayed when going through the following: Database instance (target type) Oracle Database > Monitoring > All Metrics "Agent has disabled full monitoring of this target. Only target Status is being monitored." Triggered by t
-
Upgrade my Photoshop Elements and Premiere Elements 7 to ver 8
Hi All, I just bought the combo package of photoshop elements and premiere elements 7 Aug 12. I would like to purchase an upgrade for both products but I am unable to find a way to purchase. What am I missing? Thanks for your help!!
-
i have written the code like the below. iam using Enum abstract class it is giving an error at class position. plz help me how to use the Enum class in our own classes. import java.io.*; import java.lang.*; public static final class MyBaseFrameworkEn
-
Why not play some videos macbook air
why not play some internet videos my mac book air