ORA-01867 in 10G XE, not in 9i

the below procedure works fine in oracle 9i but not in oracle 10g xe.
is the format to specify day to second interval different in oracle 10 G?
declare
v_min NUMBER;
v_sec NUMBER;
time_taken INTERVAL DAY TO SECOND;
begin
v_min:=2.3;
v_sec:=4.7;
time_taken:=TO_DSINTERVAL('0 0:'||TO_CHAR(V_MIN)||':'||TO_CHAR(V_SEC));
end;SQL> declare
2 v_min NUMBER;
3 v_sec NUMBER;
4 time_taken INTERVAL DAY TO SECOND;
5 begin
6 v_min:=2.3;
7 v_sec:=4.7;
8 time_taken:=TO_DSINTERVAL('0 0:'||TO_CHAR(V_MIN)||':'||TO_CHAR(V_SEC));
9 end;
10 .
SQL> /
declare
ERROR at line 1:
ORA-01867: the interval is invalid
ORA-06512: at line 8

Two points that come in mind:
1) if i am correct, in the interval is not allowed fractional parts of minutes, only of seconds, that is why i have certain doubts that your example taken literally works in 9i ( at least in 9.2.0.6 it gives me the same error message).
2) you have a bunch of implicit to_char conversions, so in general case you can't predict how your strings looks like, i would recommend to take conversion with a format mask and specify also in the to_dsinterval NLS_NUMERIC_CHARACTERS.
Best regards
Maxim

Similar Messages

  • Oracle 10g over Windows 7 - ORA-12514 TNS:listener does not currently know

    Dear,
    I installed Oracle 10.1.0g over windows 7, now during installation its show me ORA-12560 TNS protocol adapter error, I ignored it for many dialog. then devery thing goings well.
    Once I try do login via sql plus, new message appear "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor "
    I try check many articles via forums but I can't resolve this issue.
    so, could any one follow me to handle this issue.
    Khaldoun

    user1941003 wrote:
    Dear,
    I installed Oracle 10.1.0g over windows 7, now during installation its show me ORA-12560 TNS protocol adapter error, I ignored it for many dialog. then devery thing goings well. The only 10g software certified/supported on Win 7 (Professional or higher) is 10.2.0.5. Win Home versions are not supported.
    http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15680/toc.htm#BABEBBJF
    Other versions may or may not work - so fixing any errors that result from unsupported/uncertified combinations is up to you.
    >
    Once I try do login via sql plus, new message appear "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor "
    I try check many articles via forums but I can't resolve this issue.
    so, could any one follow me to handle this issue.
    KhaldounSrini

  • OEM 10g - ORA-12505: TNS:listener does not currently know of SID...

    Hello,
    In OEM (version 10.1.0.5 on Red Hat linux 4), on the page Database Instance: dbexemple.domain.be
    It says:
    - Database Instance > up
    - Listener > up
    - Agent connection to database > Status: Failed
    Details: Failed to connect to database instance: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach).
    And my OEM database is always in Blackout state.
    I can connect on the database and if I select from global_name it gives me the good name.
    If I do lsnrctl status
    Service "dbexemple.domain.be" has 1 instance(s).
    Instance "emrep", status READY, has 1 handler(s) for this service...
    If I do lsnrctl services
    Service "dbexemple.domain.be" has 1 instance(s).
    Instance "dbexemple", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:44 refused:0 state:ready
    LOCAL SERVER
    So all looks normal. But my DB is still in blackout state.
    I did stop and start the agent > no change
    I did shutdown and start the database > no change
    I did stop the agent delete the $oracle_home/sysmen/emd/... files and start the agent and emctl upload... > no change
    In the targets.xml file from the agent I have:
    <Target TYPE="oracle_database" NAME="dbexemple.domain.be">
    <Property NAME="OracleHome" VALUE="/oracle/product/db10g"/>
    <Property NAME="UserName" VALUE="###" ENCRYPTED="TRUE"/>
    <Property NAME="MachineName" VALUE="machine.domain.be"/>
    <Property NAME="Port" VALUE="1521"/>
    <Property NAME="SID" VALUE="dbexemple"/>
    <Property NAME="ServiceName" VALUE="dbexemple.domain.be"/>
    <Property NAME="password" VALUE="###" ENCRYPTED="TRUE"/>
    </Target>
    Seems good also
    My tnsnames.ora
    DBEXEMPLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = machine.domain.be)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dbexemple.domain.be)
    tnsping dbexemple is also good:
    Used LDAP adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=machine)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=dbexemple.domain.be)))
    OK (10 msec)
    The DB is not in the listener.ora but anyway at the startup of the database the database register in the listener (can take some seconds).
    In OEM if I look at blackout, it says no blackout exists
    So after all these verifications my OEM database is still in blackout status and remain in blackout.
    I would like to find the reason why it stays like this and the agent finally stop giving me an error.
    thank you for your help,
    Loïc

    The fact is that I did not set any blackout for the emrep database. (no blackout are set at the moment in fact)
    So, we did change the HDD of the computer were was OEM to another HDD.
    The update to 10.1.0.5 was made before all this (2 weeks) and no problem appears after that.
    There's no blackout in OEM Blackouts:
    No Blackouts found.
    and no blackout with emctl:
    [oracle@computeroem bin]$ ./emctl status blackout
    Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    No Blackout registered.
    [oracle@computeroem bin]$ ./emctl status blackout emrep
    Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    No Blackout registered.
    At the link:
    http://computeroem.domain.be:4889/em/console/health/healthSystemError
    I get these:
    Loader
    https://computeroem.domain.be:3872/emd/main/
    14-Jan-2007 10:32:32 PM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-14 22:32:27) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 277, File name:Severity
    Loader
    https://computeroem.domain.be:3872/emd/main/
    14-Jan-2007 10:32:32 PM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000003.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000003.xml
    Blackouts
    n/a
    14-Jan-2007 6:19:26 PM
    Error
    Duplicate start blackout record for 39EDA0C7E44C422698958F9463393C52 for target E9A00D9D6447DF4BE1CF43F7A94BF402
    Loader
    https://computeroem.domain.be:3872/emd/main/
    12-Jan-2007 3:07:22 PM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-12 15:07:05) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 14, File name:Severity
    Loader
    https://computeroem.domain.be:3872/emd/main/
    12-Jan-2007 3:07:22 PM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000002.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000002.xml
    Loader
    https://computeroem.domain.be:3872/emd/main/
    12-Jan-2007 3:04:44 PM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target down received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts= 2007-01-12 14:56:52) (violation_level =CRITICAL) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 818 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 14, File name:Severity
    Loader
    https://computeroem.domain.be:3872/emd/main/
    12-Jan-2007 3:04:44 PM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000001.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000001.xml
    Blackouts
    n/a
    12-Jan-2007 10:10:23 AM
    Error
    end_blackout: unexpected current state 10
    Blackouts
    n/a
    12-Jan-2007
    10:05:28 AM
    Error
    Duplicate start blackout record for FD1380AAEB69BAE53339F58EA0C83ADC for target E9A00D9D6447DF4BE1CF43F7A94BF402
    Loader
    https://computeroem.domain.be:3872/emd/main/
    12-Jan-2007 9:57:16 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000001.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000001.xml
    Loader https://computeroem.domain.be:3872/emd/main/
    12-Jan-2007 9:57:15 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-12 09:56:53) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 270, File name:Severity
    Loader
    https://computeroem.domain.be:3872/emd/main/
    8-Jan-2007 9:07:17 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-08 09:07:02) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 25, File name:Severity
    Loader
    https://computeroem.domain.be:3872/emd/main/
    8-Jan-2007 9:07:17 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000003.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000003.xml
    Loader
    https://computeroem.domain.be:3872/emd/main/
    8-Jan-2007 9:04:10 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000002.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000002.xml
    Loader
    https://computeroem.domain.be:3872/emd/main/
    8-Jan-2007 9:04:09 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-08 09:01:54) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 151, File name:Severity
    Blackouts
    n/a
    8-Jan-2007 8:57:47 AM
    Error
    Duplicate start blackout record for 39EDA0C7E44C422698958F9463393C52 for target E9A00D9D6447DF4BE1CF43F7A94BF402
    Loader
    https://computeroem.domain.be:3872/emd/main/
    8-Jan-2007 8:56:00 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000001.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000001.xml
    Loader
    https://computeroem.domain.be:3872/emd/main/
    8-Jan-2007 8:56:00 AM
    Error
    Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target down received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts= 2007-01-06 01:25:35) (violation_level =CRITICAL) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 818 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 14, File name:Severity
    For the note, mostly I cannot do anything because I have no blackout name for the script. Still reading the note to see if some sql can help.
    Message was edited by:
    Loic

  • A query which works in 10g but not in 11g.

    Hi there,
    We are in the process of upgrading our database from 10g to 11g. We have a test server with 11g, and imported all the 10g data in there. While testing the 11g server, for many queries, we get ORA-00918: column ambiguously defined error, however the same queries work just fine in 10g. Below is a sample query.
    SELECT household_name || ' - Begin Date: ' || TO_CHAR(vnsrp.effective_date,'dd-MON-yyyy') ||
    CASE WHEN vnsrp.second_return_period_type = 'NON_FURLOUGH' THEN
    ELSE NULL
    END household_name,
    second_return_period_id
    FROM vn_secondment_return_period vnsrp
    JOIN ve_household_membership vehm
    ON vehm.family_household_id = vnsrp.family_household_id
    JOIN vb_family_household vbfh
    ON vbfh.family_household_id = vehm.family_household_id
    ORDER BY household_name
    We know, in the above query, the household_name is from both views vn_secondment_return_period and vb_family_household, but to the wonder it works without any error in 10g and not in 11g.
    We have so many queries like this, so changing them to give qualified column name (viewname.columnname) would be a very tedious process for us.
    Is there any simple solution by changing DB parameter like that?
    Advance Thanks,
    Natarajan

    i mean just change the definition of one of these views: vn_secondment_return_period or vb_family_household. I think this is the simplest way.

  • ORA-00339: archived log does not contain any redo

    Hi All,
    recently we faced 'ORA-00339: archived log does not contain any redo' issue at standby side,
    after searching on Google and from Metalink (note 30866.1 and 7197445.8 ) I find out that this is the known issue for 10g and below versions, our's is 11.2.0.3,
    Error in Alert Log :
    Errors in file /oracle/ora_home/diag/diag/rdbms/dwprd/DWPRD/trace/DWPRD_pr0a_48412.trc:
    ORA-00339: archived log does not contain any redo
    ORA-00334: archived log: '/redolog2/redo/redolog3a.log'
    Errors in file /oracle/ora_home/diag/diag/rdbms/dwprd/DWPRD/trace/DWPRD_pr0a_48412.trc (incident=190009):
    ORA-00600: internal error code, arguments: [kdBlkCheckError], [1], [56702], [6114], [], [], [], [], [], [], [], []
    Incident details in: /oracle/ora_home/diag/diag/rdbms/dwprd/DWPRD/incident/incdir_190009/DWPRD_pr0a_48412_i190009.trc
    Use ADRCI or Support Workbench to package the incident.
    See Note 411.1 at My Oracle Support for error and packaging details.
    Slave exiting with ORA-10562 exception
    Errors in file /oracle/ora_home/diag/diag/rdbms/dwprd/DWPRD/trace/DWPRD_pr0a_48412.trc:
    ORA-10562: Error occurred while applying redo to data block (file# 1, block# 56702)
    ORA-10564: tablespace SYSTEM
    ORA-01110: data file 1: '/oradata1/database/DATAFILES/system01.dbf'
    ORA-10561: block type 'TRANSACTION MANAGED DATA BLOCK', data object# 2
    ORA-00600: internal error code, arguments: [kdBlkCheckError], [1], [56702], [6114], [], [], [], [], [], [], [], []
    Mon Apr 15 11:34:12 2013
    Dumping diagnostic data in directory=[cdmp_20130415113412], requested by (instance=1, osid=48412 (PR0A)), summary=[incident=190009].
    Thanks

    Hi,
    "The archived log is not the correct log.
    It is a copy of a log file that has never been used for redo generation, or was an online log being prepared to be the current log."
    "Restore the correct log file."
    Can you say, what is last changes on your database, On log files?
    Did you copies your '/redolog2/redo/redolog3a.log' log file from other ?
    Regards
    Mahir M. Quluzade

  • ORA-29829: implementation type does not exist

    Hello,
    I get ORA-29829: implementation type does not exist when creating an external table in
    Oracle 10g 10.2.0.3.0. Anyone knows why this happens?
    Wrote file afiedt.buf
    1 CREATE TABLE tim
    2 ORGANIZATION EXTERNAL
    3 (
    4 TYPE ORACLE_DATA_PUMP
    5 DEFAULT DIRECTORY tim_dir
    6 LOCATION ('tim.dmp')
    7 )
    8* AS SELECT * FROM dba_tables
    AB0318@ditoa1> /
    CREATE TABLE tim
    ERROR at line 1:
    ORA-29829: implementation type does not exist
    AB0318@ditoa1> select * from V$OPTION;
    PARAMETER VALUE
    ================================================================ ===================================
    Objects TRUE
    Regards,
    Tim

    ORA-29829: implementation type does not exist
    Cause: The implementation type specified with USING clause could not be found.
    Action: Check to see if the type exists and the user has EXECUTE privilege on this type.

  • ORA-15001: diskgroup "DATA" does not exist or is not mounted in 11gR2

    Dear all,
    the system is HP-UX 11.31
    the new RAC infrastructure is 11gR2 11.2.0.2 (2nodes using ASM)
    i am restoring the 10G 10.2.0.4 database to this infrastructure
    copy binary files over to new oracle home,
    relink all binaries with option rac_off
    --startup nomount
    --restore controlfile
    --mount database
    --catalog the restore files
    then run restore
    run {
    restore database ;
    recover database;
    i always get this error, i did not see this error in 11gR1( restore few times to 11gR1)
    verified the diskgroup DATA and i was mounted
    ORA-19504: failed to create file "+DATA/OCP/data1.dbf"
    ORA-17502: ksfdcre:3 Failed to create file +DATA/OCP/data1.dbf
    ORA-15001: diskgroup "DATA" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    ORA-29701: unable to connect to Cluster Manager
    Please give me an advice.
    Thanks,

    found this note in Metalink and it had solved my issue.
    Unable To Create 10.1 or 10.2 or 11.1(< 11gR2) ASM RAC Databases (ORA-29702) Using Brand New 11gR2 Grid Infrastructure Installation . [ID 946332.1]

  • ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect

    Hi Friends,
    I have created 10g database for catalog.
    I kept the tns entry in some other server. Tnsping is working fine.. I can see the result.
    mexn01:$ tnsping rman09na
    TNS Ping Utility for HPUX: Version 9.2.0.5.0 - Production on 28-APR-2008 19:29:07
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    /apps/app/oracle/local/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))
    OK (0 msec)
    When I am trying to connect to the database I am getting following error..
    mexn01:$ sqlplus ismdba/xxxxx@rman09na
    SQL*Plus: Release 9.2.0.5.0 - Production on Mon Apr 28 19:29:22 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    ERROR:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
    descriptor
    Please help me..
    Thanks in advance.

    Try on the server where it doesn't work:
    sqlplus ismdba/xxxxx@"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))"
    or
    tnsping "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))"
    (note the double quotes)
    If that works then your tnsnames.ora is incorrect on that server.

  • Problem: ORA-12514, TNS:listener does not currently know of service request

    When I enter a command for an Oracle 10g Express installation I am getting the following error:
    Integration Repository Creation Assistant (IRCA) 10.1.3.1.0
    (c) Copyright 2006 Oracle Corporation. All rights reserved.
    Running IRCA for all product(s):
    connection="localhost 1521 orcl", -overwrite, orabpelUser=ORABPEL, esbUser=ORAESB, orawsmUser=ORAWSM
    ERROR: Failed to establish database connection due to the following error:
    Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    The Connection descriptor used by the client was:
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))
    Please check your connection parameters and try again.
    Hmm, whats wrong?
    Listener status yields:
    D:\db\install\soa_schemas\irca>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 10-FEB-2008 13:04:22
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS des LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Startdate 10-FEB-2008 12:48:44
    Uptime 0 days 0 hours. 15 min. 38 sec.
    Trace-Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Standard-Service XE
    Parameter file of listener D:\Oracle\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log file of listener D:\Oracle\app\oracle\product\10.2.0\server\network\log\listener.log
    Summary listener endpoints...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Services overview...
    Service "CLRExtProc" hat 1 Instance(s).
    Instance "CLRExtProc", Status UNKNOWN, has 1 Handler for this service...
    Service "PLSExtProc" hat 1 Instance(s).
    Instance "PLSExtProc", Status UNKNOWN, has 1 Handler for this service...
    Service "XEXDB" hat 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Service "XE_XPT" hat 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Service "xe" hat 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    The command was successfully executed.
    D:\db\install\soa_schemas\irca>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 10-FEB-2008 13:18:59
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Services _bersicht...
    Service "CLRExtProc" has 1 Instance(s).
    Instance "CLRExtProc", Status UNKNOWN, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 Instance(s).
    Instance "PLSExtProc", Status UNKNOWN, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "XEXDB" has 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Handler:
    "D000" established:0 refused:0 current:0 max:1002 Status:ready
    DISPATCHER <machine: LOCALHOST, pid: 3584>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1049))
    Service "XE_XPT" has 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:1 refused:0 Status:ready
    LOCAL SERVER
    Service "xe" has 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:1 refused:0 Status:ready
    LOCAL SERVER
    The command was successfully executed.

    Hi,
    no, you got it wrong:
    Oracle uses network services which are a logical representation of the database to resolve network requests.
    in your ntsnames.ora file you have the following:
    network_alias = my_alias -- here you can write anything you just need to resolve it correctly
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (host=hostname or IP)
    (port=listener adapter port)
    ) -- this a complete socket information of the listener adapter!!
    (CONNECT_DATA=
    (SERVICE=your_service) -- this is what you tell the listener about the service you want to connect to. It is defined in the instance with the paramter service_names
    In general it is network aliasses which are resolved with connect descriptor in the tnsnames.ora.
    A connect decriptor consists of the address part + the connect_data part.
    The address part is used to reach the listener.
    The connect_data part is the information you hand over to the listener.
    So the listener must know the service name.
    The listener can either know this from the instance itself. When an Oracle instance is started it tries to registrer itself with a listener which listens on port 1521 for the protocol TCP.
    The instance tell this listener two paramater values: INSTANCE_NAME and SERVICE_NAMES. Then the listener knows the instance and which services are defined. It is just a reprentation of the database to the listener.
    If the listerner knows the service requested with a connect, it can establish a connection to a service handler. This could be a dedicated server process or a dispatcher.
    Another mehtod to let the listener know the service requested is so called static regustration of the instance. This is made with an SID LIST in the listener.ora file.
    Then the listener knows SID for the instance plus ORACLE_HOME and can find the executable to start a server process for a connect request.
    Hope it helps a little-.
    =;-)
    If you have further questions pls do not hesitate to ask. O.K.?

  • 10.1.3 EA1: ORA-12518, TNS:listener could not hand off client connection

    Hi,
    Trying to connect to a remote database which worked in 10.1.3 developer preview gives now:
    Listener refused the connection with the following error:
    ORA-12518, TNS:listener could not hand off client connection
    The Connection descriptor used by the client was:
    From sqlplus I can connect. I don't have access to the remote database server/configuration. I tried the workarounds specified here
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=139775.1
    I deleted
    ojdbc14dms.jar ojdbc14.jar
    from jdeveloper and copied ojdbc14_g.jar from Oracle 10g release1 (renamed it to ojdbc14.jar). Then it worked.

    Hi,
    Can you please check the below link from the forum too.
    ORA-12518 Tns: Listener could not hand off client conenction
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • ORA-01079: ORACLE database was not properly created, operation aborted

    Hello everyone,
    On Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    My problem is that I've to drop the database as the same is not created properly.
    For that, I get the below error when I try to mount the database.
    ORA-01079: ORACLE database was not properly created, operation aborted
    Also, when I was starting the database specifying the pfile, it was throwing error saying
    ORA-00202: control file: 'D:\ORACLE_10G\DATABASE\CTL1SAMPLEDB.ORA'
    When I specified control_files clause in init.ora I was getting above error, so I tried removing the same but still faced the same error.
    Can anybody help me resolving the problem ... ???
    thanks

    Rossy Rocs wrote:
    Hello everyone,
    On Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    My problem is that I've to drop the database as the same is not created properly.
    For that, I get the below error when I try to mount the database.
    ORA-01079: ORACLE database was not properly created, operation aborted
    Also, when I was starting the database specifying the pfile, it was throwing error saying
    ORA-00202: control file: 'D:\ORACLE_10G\DATABASE\CTL1SAMPLEDB.ORA'
    When I specified control_files clause in init.ora I was getting above error, so I tried removing the same but still faced the same error.
    Can anybody help me resolving the problem ... ???
    thanksyou should be able to do the following on windows from the command line
    oradim -delete -sid sampledbthen remove the D:\ORACLE_10G\DATABASE\ folder from the filesystem (assuming there are only files relating to your db in there.
    finally remove the D:\ORACLE_10G\ADMIN\SAMPLEDB folder structure assuming it exists.
    Niall Litchfield
    http://www.orawin.info

  • "ORA:12514 TNS: listener could not currently know of service requested in c

    Hi,
    I have just install 10g database, and when am connecting from 'scott' with password 'oracle' it'll get connected but when at the same time am giving the host string 'ORCL' it does not work giving below attached error,
    "ORA:12514 TNS: listener could not currently know of service requested in connect descriptor"
    plz help me to come out to this problem.
    Thanks & Regards,
    Neha

    ORA-12154: TNS:could not resolve the connect identifier specified
    Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
    Action:
    - If you are using local naming (TNSNAMES.ORA file):
    - Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
    - Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
    - Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
    - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
    - If you are using directory naming:
    - Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Verify that the LDAP directory server is up and that it is accessible.
    - Verify that the net service name or database name used as the connect identifier is configured in the directory.
    - Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
    - If you are using easy connect naming:
    - Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Make sure the host, port and service name specified are correct.
    - Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.

  • Oracle 10g client not connecting to Oracle 8i server

    I have oracle 8i server already installed. I downloaded Oracle 10g client recently. I installed it on one machine and trying to connect to 8i server. I used TNSnames.ora which was already present on the machine. After entering the username, password and service name in SQL plus, I got a error saying server version not suported. Does 10g client not support 8i server or am I doing something wrong ?

    There is an 8.1.7.4 patchset for Windows.
    If you take a look at the Instant Client forum, there are some discussions on this where one of the Oracle product managers (Mr. Jue) has chimed in. At present, only connections to 8.1.7.4 and higher are supported. It is expected that the first 10g patchset will fix this bug and allow connections to 8.1.7.0 and above databases.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Perculiar ORA-12514 TNS:listener does not currently know of service request

    Hi all
    I'm not sure if this is the correct place to ask this but I was wondering whether Anyone has ran into a similar problem or know how to solve this seeing as this involes SOA.
    I am running Oracle 10g 10.2.0.4 and Oracle SOA 10.1.3.3. I've also written a piece of code that connects to the database using the database's jndi name from a connection pool. I can start the DB and the SOA with no problems however, if I try and connect to the database using one of the connection objects from the connection pool , i.e.
    db = connection.getConnection("jdbc/LocalASDBDataSource");
    the listener stops working and I get the error message
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    I know that prior to trying to get the connection from the connection pool, the listener works because if i run lsnrctl services, it reports that the listener is up and running but after the point where I try to get the connection i.e.
    db = connection.getConnection("jdbc/LocalASDBDataSource");
    the listener stops working. If run lsnrctl services, it then reports that the listener supports no services. The only way I can get the service and the listener to start working is to delete the listener and the Service using Net Manager and then recreating it again but then every time that I run the code again, I get back to the error
    the funny thiing is that this only started when I increased the processes because I was gettig ORA-12518: TNS:listener could not hand off client connection
    The jndi properties file that I use to create my initial context is
    java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
    java.naming.provider.url=opmn:ormi://localhost:6003:oc4j_soa
    java.naming.security.principal=oc4jadmin
    java.naming.security.credentials=password1
    My Listener.ora is
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DEVPSTEXP)(PORT = 1521))
    My TNS Names.ora is
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    ASDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ASDB)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Any help will be greatly appreciated
    Thanks!

    The tnsname.ora is not used in this situation as the datasource / connection pool connects via jdbc.
    What happens if you bounce the database, instead of deleting the service.
    It sounds like you are hitting bug 6017068.
    Have a look at that patch
    cheers
    James

  • Thread: ORA-12514: TNS:listener does not currently know of service request

    HI guys,
    I had installed oracle 10g on an AIX platform
    now when I try to connect to the database using the normal way sqlplus dma/***@DMAN
    it gives me the error:
    $ ./sqlplus dma/dma@DMAN
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 29 09:27:39 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    I can connect to the database specifying before the oracle SID on unix
    ORACLE_SID=DMAN
    export ORACLE_SID
    $ ./sqlplus dma/dma
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 29 09:41:02 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    SQL>
    I cant understand the problem
    my listener.ora is:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dmora1)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /orasoft/app/oracle/DMAN)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = DMAN)
    (ORACLE_HOME = /orasoft/app/oracle/DMAN)
    (SID_NAME = DMAN)
    and my listener status:
    LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 29-SEP-2008 09:43:19
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> status LISTENER
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dmora1)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
    Start Date 29-SEP-2008 08:29:32
    Uptime 0 days 1 hr. 13 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP ON
    Listener Parameter File /orasoft/app/oracle/DMAN/network/admin/listener.ora
    Listener Log File /orasoft/app/oracle/DMAN/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Services Summary...
    Service "DMAN" has 2 instance(s).
    Instance "DMAN", status UNKNOWN, has 1 handler(s) for this service...
    Instance "DMAN", status READY, has 1 handler(s) for this service...
    Service "DMANXDB" has 1 instance(s).
    Instance "DMAN", status READY, has 1 handler(s) for this service...
    Service "DMAN_XPT" has 1 instance(s).
    Instance "DMAN", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    has any one any idea about my problem, because I have the same listener.ora in the backup machine and it works fine
    Thank YOU in advance

    Please don't duplicate threads :
    ORA-12514: TNS:listener does not currently know of service requested in con

Maybe you are looking for

  • No alternative unit of measure specified, during creation  of sales order

    Dear Experts, when user is creating sales order, User is getting the error message no.  MM108  "No alternative unit of measure specified" for particular material. we have checked the alternative unit of measure it is already maintiained in the materi

  • IChat video suddenly not working

    Can anyone help? I'm using iChat 4.0.8 on an almost brand new MacBook Pro. The video worked perfectly fine with my parents, and then suddenly stopped working when we moved. We're still using a wireless connection with an airport extreme. Funny thing

  • Error while aborting Mediator Instance

    Hi I am gettign below error while trying to abort a Mediator instance. I am using resequencer and trying to abort stucked instance. Error during Instance (3912039) Abort : java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.Runt

  • Wi fi is on but when i use safari it says not connected to internet?

    I need help with ipad.Internet was working then we watched a video on utube and from then on we get a message saying not connected to internet. home Wi fi is on.

  • BEx Broadcaster  General Precalculation

    Hi In the BEx Broadcaster ,when i select "Online link to the current data", automatically the tab "General Precalculation" is disappearing. Here i want the result with input parameters of the current month. What to do in case if this problem exists?.