PLEASE HELP!!!!!!! ORA-12154

I installed Oracle10g XE on my laptop on VISTA.
Im able to connect to sqlplus using -> sqlplus system/password@XE
Then i installed PL/SQL developer and Im NOT ABLE TO CONNECT with the same credentials. Throws me error: ORA-12154:TNS:Could not resolve the connect identifier Specified
2. My Listener status is:
C:\Users\avishek>lsnrctl status
4. My LSNRCTL for 32-bit Windows:
Version 10.2.0.1.0 - Production on 05-JUN-2008 23:47:12
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 05-JUN-2008 22:03:03
Uptime 0 days 1 hr. 44 min. 9 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
og\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=
HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
4. My TNSNAMES.ora is:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = AvisLaptop)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
5. My SQLNET.ora has this entry:
SQLNET.AUTHENTICATION_SERVICES = (NTS)
6. My listener.ora entry is:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = AvisLaptop)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
7. I ve only one copy of each of the above mentioned .ora files
8. PLEASE HELP!!!!!!!
9. thanks in advance

Hi Peter
Thanks for ur reply!
1. I jus have one Oracle Home installed on my laptop (vista). there is jus one ORACLE_HOME Environment variable! Only one installation of oracle!!!!
2. Yes, I did try to connect thru Sqlplus and Im able to connect.
3. listener log is:
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 00:53:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
Trace level is currently 0
Started with pid=2768
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
06-JUN-2008 00:53:48 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=avishek))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
Listener completed notification to CRS on stop
06-JUN-2008 00:53:48 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=avishek))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * stop * 0
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 00:53:52
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
Trace level is currently 0
Started with pid=2328
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
06-JUN-2008 00:54:23 * service_register * xe * 0
06-JUN-2008 00:55:29 * service_update * xe * 0
06-JUN-2008 00:55:31 * service_update * xe * 0
06-JUN-2008 00:55:33 * service_died * xe * 12537
06-JUN-2008 00:55:37 * service_register * xe * 0
06-JUN-2008 00:55:38 * service_update * xe * 0
06-JUN-2008 00:55:40 * service_update * xe * 0
06-JUN-2008 00:55:55 * service_update * xe * 0
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 00:55:58 * service_update * xe * 0
06-JUN-2008 00:56:04 * service_update * xe * 0
06-JUN-2008 00:56:07 * service_update * xe * 0
06-JUN-2008 00:56:10 * service_update * xe * 0
06-JUN-2008 00:56:10 * service_update * xe * 0
06-JUN-2008 00:56:16 * service_update * xe * 0
06-JUN-2008 00:56:22 * service_update * xe * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 00:56:25 * service_update * xe * 0
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 00:56:25 * service_update * xe * 0
06-JUN-2008 00:56:28 * service_update * xe * 0
06-JUN-2008 00:56:31 * service_update * xe * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 00:56:34 * service_died * xe * 12537
06-JUN-2008 00:56:37 * service_register * xe * 0
06-JUN-2008 00:56:38 * service_update * xe * 0
06-JUN-2008 00:56:44 * service_update * xe * 0
06-JUN-2008 00:56:47 * service_update * xe * 0
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 00:56:50 * service_update * xe * 0
06-JUN-2008 00:56:53 * service_update * xe * 0
06-JUN-2008 00:56:56 * service_update * xe * 0
06-JUN-2008 00:57:16 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49185)) * handoff * http * 0
06-JUN-2008 00:57:26 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49189)) * handoff * http * 0
06-JUN-2008 00:57:35 * service_update * xe * 0
06-JUN-2008 00:57:53 * service_update * xe * 0
06-JUN-2008 00:58:00 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49190)) * handoff * http * 0
06-JUN-2008 00:58:05 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49191)) * handoff * http * 0
06-JUN-2008 00:58:26 * service_update * xe * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 01:03:36 * service_died * xe * 12547
TNS-12547: TNS:lost contact
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 01:04:41
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
Trace level is currently 0
Started with pid=2120
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
06-JUN-2008 01:04:58 * service_register * xe * 0
06-JUN-2008 01:05:19 * service_update * xe * 0
06-JUN-2008 01:05:22 * service_update * xe * 0
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 01:05:25 * service_update * xe * 0
06-JUN-2008 01:05:28 * service_update * xe * 0
06-JUN-2008 01:05:34 * service_update * xe * 0
06-JUN-2008 01:05:52 * service_update * xe * 0
06-JUN-2008 01:07:55 * service_update * xe * 0
06-JUN-2008 01:08:24 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49173)) * establish * XE * 0
06-JUN-2008 01:08:25 * service_update * xe * 0
06-JUN-2008 01:14:25 * service_update * xe * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 01:14:42 * service_died * xe * 12547
TNS-12547: TNS:lost contact
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 21:46:07
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
Trace level is currently 0
Started with pid=2340
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
06-JUN-2008 21:46:13 * service_register * xe * 0
06-JUN-2008 21:46:19 * service_update * xe * 0
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 21:46:22 * service_update * xe * 0
06-JUN-2008 21:46:25 * service_update * xe * 0
06-JUN-2008 21:46:31 * service_update * xe * 0
06-JUN-2008 21:46:52 * service_update * xe * 0
06-JUN-2008 21:47:25 * service_update * xe * 0
06-JUN-2008 21:49:46 * service_update * xe * 0
06-JUN-2008 21:55:31 * service_update * xe * 0
06-JUN-2008 21:57:22 * service_update * xe * 0
06-JUN-2008 21:57:31 * service_update * xe * 0
06-JUN-2008 22:03:40 * service_update * xe * 0
06-JUN-2008 22:04:25 * service_update * xe * 0
06-JUN-2008 22:06:10 * service_update * xe * 0
06-JUN-2008 22:07:28 * service_update * xe * 0
06-JUN-2008 22:11:01 * service_update * xe * 0
06-JUN-2008 22:13:25 * service_update * xe * 0
06-JUN-2008 22:17:34 * service_update * xe * 0
06-JUN-2008 22:27:34 * service_update * xe * 0
06-JUN-2008 22:32:00 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49440)) * establish * XE * 0
06-JUN-2008 22:32:01 * service_update * xe * 0
06-JUN-2008 22:32:37 * service_update * xe * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 22:34:08 * service_died * xe * 12547
TNS-12547: TNS:lost contact
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 22:35:14
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
Trace level is currently 0
Started with pid=2248
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
06-JUN-2008 22:35:35 * service_register * xe * 0
06-JUN-2008 22:35:41 * service_update * xe * 0
06-JUN-2008 22:35:56 * service_update * xe * 0
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
06-JUN-2008 22:35:59 * service_update * xe * 0
06-JUN-2008 22:36:02 * service_update * xe * 0
06-JUN-2008 22:36:08 * service_update * xe * 0
06-JUN-2008 22:36:29 * service_update * xe * 0
06-JUN-2008 22:36:43 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49167)) * establish * XE * 0
06-JUN-2008 22:36:45 * service_update * xe * 0
06-JUN-2008 22:37:36 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49173)) * handoff * http * 0
06-JUN-2008 22:37:45 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49177)) * handoff * http * 0
06-JUN-2008 22:39:27 * service_update * xe * 0
06-JUN-2008 22:41:54 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49228)) * establish * XE * 0
06-JUN-2008 22:41:57 * service_update * xe * 0
06-JUN-2008 22:50:54 * service_update * xe * 0
06-JUN-2008 22:51:42 * service_update * xe * 0
4. Credentials im giving for PLSQL dev are:
Username: system
Pwd: <my passwrd>
Database: XE
Connect as: Normal
Please help peter...thanks in advance!
Avi.

Similar Messages

  • Urgent Please help: ORA-00940: invalid ALTER command

    I am not able to start my oracle db that is running Solaris 10, Oracle 10g.
    I made the following changes to Oracle Parameter and now I am not able to start.
    alter system set "_fix_control"='5705630:ON' scope=spfile;
    I get this error: ORA-00940: invalid ALTER command
    I am not even able to reset that parameter back, since oracle db won't start?
    I get this error when i run "startsap: on command
    Please help
    Thanks
    Kuamr
    Message was edited by:
            Kumar Subramaniam
    Message was edited by:
            Kumar Subramaniam

    I have renameed the spfile and try to start sap using initPR2.ora file and it worked fine and then I did this to re-create teh spfile.
    sqlplus / assysdba
    create spfile from pfile;
    shutdown immediate;
    startup;
    Everything works fine.
    Thanks for the quick response.

  • Please help: ORA-04030: Out of Process memory error when starting 9.0.1 iFS

    When starting the 9.0.1 iFS running on a 9.0.1.4 Database and Tru64 5.1 O/S, the following errors are displayed:
    IFS-35205: Failed to get prepared statement
    java.sql.SQLException:ORA-04030: Out of process memory when trying to allocate 1048 bytes (callheap,kghsstk).
    Database has the following parameters:
    shared pool 150M
    java pool 100M
    large pool 5M
    DB Cache 60M
    DB Block Size 8K
    Sort area size 1M
    Server has 1GB ram, 12GB swap.
    Please can anyone help?

    Hi Alan,
    your help with this is most appreciated!
    I ran your suggested generated SQL script, but at first the same problem was occuring with the first ALTER statement that happened to be generated.
    However, your explanation mentioned the view 'odm_publicobject' and although this view wasn't in the resulting SQL, I found that compiling the similarly named views in this order worked...
    ODMV_PUBLICOBJECT
    ODBV_PUBLICOBJECT
    ODMBS_PUBLICOBJECT
    ODMS_PUBLICOBJECT
    ODUS_PUBLICOBJECT
    ODUV_PUBLICOBJECT
    (Perhaps other combinations would have worked, but in anycase certainly some orders didn't work...)
    At this point, running the complete original generated SQL script then worked successfully and low and behold as you predicted, IFS started successfully.
    (I didn't actually bother removing these 6 already re-compiled views from the original script, so they got re-compiled twice...)
    So this means that we can now actually stop and start IFS as required without re-installing IFS everytime - which is obviously great!
    I will certainly be watching out for 9.0.3, but my understanding for the reason we were going with 9.0.1 in the first place was that this was included in the RDBMS CD-pack, whereas I believe from 9.0.2 onwards it was seperately licensed. I will check with our Oracle dba's.
    But at least we can prove in principle now whether it will suit our requirements....
    Once again, many thanks for looking into this at such a deep level - very much appreciated.
    Graham.

  • ORA-12154 using Oracle.DataAccess.Client

    I am experiencing an ORA-12154 exception when accessing a remote Oracle database using ADO.NET called from c# code running on a Windows 2003 system. The code functions correctly on our internal (remote) database using the Oracle XE 10.2 Client. At the customer site with Oracle 10.1 Client the same code generates the 12154 error.
    At the customer site, I can connect without errors with the customer's connection information (Hostname, port, SID) using Navicat 8 Lite for Oracle and SQL-Plus. I can also connect with no problems using ODBC (except I can't use ODBC because it causes other problems when accessed from ASP.NET).
    The connection string is correctly formulated i.e. "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myServerName)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myServiceName)));User Id=myUserName;Password=myPassword"
    When I run TNSPING on the client's system I get the following result (server and SID name altered for confidentiality reasons):
    Adapter TNSNAMES zur Auflösung des Alias benutzt
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1521)) (CONNECT_DATA = (SERVER = dedicated) (SERVICE_NAME = myServiceName)))
    OK (10 ms)
    I can't determine anything about the listener since I don't have access to teh datbase server.
    To summarize, my .net code fails when I use the Oracle Data Access Client, but works fine with ODBC, and Navicat, SQL Plus also work fine.
    Can anyone suggest the cause and possible solution for this problem? - thanks in advance for any help :)

    user8609285 wrote:
    I am experiencing an ORA-12154 exception when accessing a remote Oracle database using ADO.NET called from c# code running on a Windows 2003 system. The code functions correctly on our internal (remote) database using the Oracle XE 10.2 Client. At the customer site with Oracle 10.1 Client the same code generates the 12154 error.
    At the customer site, I can connect without errors with the customer's connection information (Hostname, port, SID) using Navicat 8 Lite for Oracle and SQL-Plus. I can also connect with no problems using ODBC (except I can't use ODBC because it causes other problems when accessed from ASP.NET).
    The connection string is correctly formulated i.e. "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myServerName)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myServiceName)));User Id=myUserName;Password=myPassword"
    When I run TNSPING on the client's system I get the following result (server and SID name altered for confidentiality reasons):
    Adapter TNSNAMES zur Auflösung des Alias benutzt
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1521)) (CONNECT_DATA = (SERVER = dedicated) (SERVICE_NAME = myServiceName)))
    OK (10 ms)
    I can't determine anything about the listener since I don't have access to teh datbase server.
    To summarize, my .net code fails when I use the Oracle Data Access Client, but works fine with ODBC, and Navicat, SQL Plus also work fine.
    Can anyone suggest the cause and possible solution for this problem? - thanks in advance for any help :)ora-12154 means one thing and one thing only.
    [oracle@vmlnx01 ~]$ oerr ora 12154
    12154, 00000, "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.Bottom line is the net service name you presented is not found in the tnsnames that was being used. Which may not be the tnsnames you think was being used.
    And since it never resolved that on the client side, there is no need to look to anything (like the listener) on the host side. You never got out of your driveway, so there is no need to see if the entrance to your destination is open.

  • PLEASE HELP!  Installation error :ORA-12154 - TNS

    Hi everyone,
    When I'm installing 9ilite and when it comes to the mobile server repository screen, it get an error message :"ORA-12154 - TNS: could not resolve service name".
    But my service name pass the test of TNSPING.
    Please help me and any suggestion is greatly apprieciated.
    Thank you very much!
    Tonie

    Check your tnsnames.ora and make sure that webtogo.world tns entry is correct. The entry should refer to the
    correct database service name.

  • Hi...Please help...Getting ORA 12154 TNS Listener could not resolve...

    Hi,
    I have just loaded Oracle 10g Rel 2 in Win 2003 Enterprise Edition.
    But when I try to connect to sqlplus, I am getting ORA -12154 : TNS: Listener could not resolve the connect identified specified.
    I have registered the database, the listener and tnsnames have been set correctly.
    I have also set the Oracle Home environment variable.
    Still getting the error.
    Any help will be highly appreciated.
    Thanks,

    I agree
    ORA-12145: (does not exist in the standard manuals)
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    ORA-12541: TNS:no listener
    It is pretty easy to fat-finger these 4 message numbers. As a result, when a person has the actual and complete error message and an error number for a different message, it is usually not a bad idea to use the actual message. (Based on transposing only 3 digits compared to typing over 50 characters correctly.)
    In this case the OP has really bollixed things: Subject implies a true 12154, text in the thread is an actual 12514 but mentions 12154.
    As a result, there are several potentially correct answers, depending on the interpretation of the question.
    - sb92075 gave the correct answer based on the number
    - I gave the correct answer based on the message in the thread
    - Anurag and Ed gave the correct answer based on 'the question is not formed correctly'
    Edited by: Hans Forbrich on Jan 24, 2010 7:13 AM
    (BTW - ORA-12415 and ORA-12451 are the other permutations ... described http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e12400.htm#sthref3357)

  • Please help: Case Statement - ORA-01722: invalid number Error

    Hi All,
    I'm trying to use Case statement to recode Cancelled statuses into two groups
    'Reject' if the difference between first date and last date is less than 29 and
    'Accept' if the difference between first date and last date is greater than 30
    Here is my 'test' data:
    STATUS     FIRST_DATE     LAST_DATE
    Transfer     10/08/2011     10/09/2011
    Mover     10/08/2011     15/09/2011
    Cancel     10/08/2011     16/09/2011
    Cancel     10/08/2011     5/09/2011
    Here is the syntax
    select a.*,
    (CASE WHEN a.STATUS ='Cancel' THEN (round(a.LAST_DATE-a.FIRST_DATE))
    ELSE 0
    END) CAN_DAYS,
    (CASE WHEN 'CAN_DAYS' >29 THEN 'Reject'
    WHEN 'CAN_DAYS' <30 THEN 'Accept'
    END) Reject_Accept
    from test a
    The first CASE statement works fine and gives me this
    STATUS     FIRST_DATE     LAST_DATE     CAN_DAYS
    Transfer     10/08/2011     10/09/2011     0
    Mover     10/08/2011     15/09/2011     0
    Cancel     10/08/2011     16/09/2011     37
    Cancel     10/08/2011     5/09/2011     26
    but the second CASE produces ORA-01722: invalid number Error. It is something to do with the CAN_DAYS data type, Oracle doesn't see it as Numeric i think.
    The result i want to see would be
    STATUS     FIRST_DATE     LAST_DATE     CAN_DAYS Reject_Accept
    Transfer     10/08/2011     10/09/2011     0
    Mover     10/08/2011     15/09/2011     0
    Cancel     10/08/2011     16/09/2011     37 Accept
    Cancel     10/08/2011     5/09/2011     26 Reject
    Could someone please help me to fix the syntax?
    Thank you in advance,

    This seems to give you your desired results...
    with test as
      ( select 'Transfer' as status, to_date('10/08/2011') as first_date, to_date('10/09/2011') as last_date  from dual union all
        select 'Mover'             , to_date('10/08/2011')              , to_date('15/09/2011')               from dual union all
        select 'Cancel'            , to_date('10/08/2011')              , to_date('16/09/2011')               from dual union all
        select 'Cancel'            , to_date('10/08/2011')              , to_date('05/09/2011')               from dual
    select  status
         ,  first_date
         ,  last_date
         ,  CAN_DAYS
         ,  CASE
              WHEN CAN_DAYS =   0 THEN NULL
              WHEN CAN_DAYS <  30 THEN 'Reject'
              WHEN CAN_DAYS >= 30 THEN 'Accept'
            END  Reject_Accept
      from  ( select  status
                   ,  first_date
                   ,  last_date
                   ,  CASE
                        WHEN STATUS ='Cancel' THEN round(LAST_DATE-FIRST_DATE)
                        ELSE 0
                      END  CAN_DAYS
                from  test
    ;

  • Ora-01403 no data found cursor error - Please help.

    DECLARE
    name1 talent.candidate_name%TYPE; -- Declare variables
    name2 long; -- Declare variables
    emp_id talent_id.emplid%TYPE;
    NO_DATA_FOUND EXCEPTION;
    CURSOR c1 IS
    select candidate_name,(''''||trim(upper(candidate_name))||'''') as tst from talent ;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO name1, name2;
    EXIT WHEN c1%NOTFOUND; -- TRUE when FETCH finds no more rows
    select distinct emplid
    INTO emp_id
    from names a
    where a.name_type = 'PRI'
    and upper(a.last_name)||', '||upper(a.first_name) = name2;
    INSERT INTO talent_id VALUES (emp_id, name1);
    END LOOP;
    CLOSE c1;
    COMMIT;
    Question: Above queries prompt me error msg ora-01403 no data found for emplid. I try but fail to solve it. Please help me. Thank you
    Edited by: user12051088 on Mar 4, 2010 1:38 AM
    Edited by: user12051088 on Mar 4, 2010 1:40 AM

    Yes, this is very helpful :-)
    My testing to insert table where emplid is null but still having error ora-01403 no data found when i remove on dbms_output.put_line as shown below:
    Anyway, if i dint remove the dbms_output.put_line. It is working to insert emp_id is not null. How do I include record which emp_id is null? Thank you.
    begin
    select distinct emplid
    INTO emp_id
    from gdw_names a
    where a.name_type = 'PRI'
    and upper(a.last_name)||', '||upper(a.first_name) = name1;
    IF emp_id is null THEN
    RAISE no_data_found;
    else
    INSERT INTO gdw_talent_id VALUES (emp_id, name1);
    end if;
    exception
    when no_data_found then
    INSERT INTO gdw_talent_id VALUES (null, name1);
    --when too_many_rows then
    -- dbms_output.put_line('too many rows for ' || name1);
    -- when others then
    -- dbms_output.put_line('Unknown error for ' || name1);
    end;
    Edited by: user12051088 on Mar 4, 2010 9:11 PM

  • IMP-00017 / ORA-22851 - Please help me

    Sir,
    Please help me to solve this import error.
    ===================================
    IMP-00017: following statement failed with ORACLE error 22851:
    "CREATE TABLE "LOAN" ("LOAN_ID" NUMBER(11, 0) NOT NULL ENABLE, "USERNAME" VA"
    "RCHAR2(12), "PRODUCT_ID" NUMBER(11, 0), "PROPERTY_ID" NUMBER(11, 0), "PRICE"
    "_ID" NUMBER(11, 0), "LOANNUMBER" VARCHAR2(20), "COMMITMENTNUMBER" VARCHAR2("
    "20), "MASTERCOMMITMENTNUMBER" VARCHAR2(10), "SELLERLOANNUMBER" VARCHAR2(25)"
    ", "ORG_ID" NUMBER(11, 0), "LOANAMOUNT" NUMBER(15, 2), "LTV" NUMBER(9, 3), ""
    "CLTV" NUMBER(9, 3), "HCLTV" NUMBER(9, 3), "TERM" NUMBER(4, 0), "AMORTIZATIO"
    "N_TERM" NUMBER(4, 0), "AMORTIZATION_TYPE" VARCHAR2(25), "DOCTYPE" VARCHAR2("
    "50), "LOANPURPOSE" VARCHAR2(50), "STATUS_ID" NUMBER(11, 0), "DATEMODIFIED" "
    "DATE, "APPDATE" DATE, "ESTCLOSEDATE" DATE, "SPECIALPROGRAM" VARCHAR2(25), ""
    "IND_FICO" NUMBER(5, 0), "FEES_STR" VARCHAR2(256), "MIN" VARCHAR2(18), "FRON"
    "T_END_RATIO" NUMBER(15, 3), "BACK_END_RATIO" NUMBER(15, 3), "AU_DECISION" V"
    "ARCHAR2(255), "DU_CASE_NUMBER" VARCHAR2(18), "LIENPOSITION" NUMBER(3, 0), ""
    "DUEINMONTHS" NUMBER(3, 0), "REQUESTEDRATE" NUMBER(8, 4), "REQUESTEDMARGIN" "
    "NUMBER(8, 4), "PIGGYBACKINDC" VARCHAR2(1), "BU_BD_ADJUSTMENT" NUMBER(8, 4),"
    " "TEASER_RATE" NUMBER(8, 4), "RBR_ADJUSTMENTS" NUMBER(8, 4), "REQUIRED_BASE"
    "_RATE" NUMBER(8, 4), "REQUESTED_BASE_RATE_MARGIN" NUMBER(8, 4), "REGISTRATI"
    "ON_DATE" DATE, "PERCENT_AMT_BU_BD" NUMBER(8, 4), "LOANINDEX" NUMBER(5, 3), "
    ""ARM_MARGIN" NUMBER(6, 3), "PKG_FILE_RCVD_DATE" DATE, "UW_CREDIT_DECISION_D"
    "ATE" DATE, "UW_CREDIT_DECISION" VARCHAR2(15), "UW_RCVD_DATE" DATE, "SENIOR_"
    "LIEN_BALANCE" NUMBER(15, 2), "JUNIOR_LIEN_BALANCE" NUMBER(15, 2), "LOAN_TYP"
    "E" VARCHAR2(100), "PREPAYMENT_PENALTY" VARCHAR2(10), "MORTGAGE_HISTORY" VAR"
    "CHAR2(200), "ESCROWS_FLAG" VARCHAR2(20) NOT NULL ENABLE, "BUYDOWN_TYPE" VAR"
    "CHAR2(20), "MAX_QUALIFYING_RATE" NUMBER(15, 2), "MAX_CASH_OUT" NUMBER(15, 2"
    "), "LENDER_UW_CONTACT_NAME" VARCHAR2(200), "LENDER_UW_CONTACT_PHONE" VARCHA"
    "R2(200), "LENDER_UW_CONTACT_EMAIL" VARCHAR2(200), "CASEFILE_NUMBER" VARCHAR"
    "2(50), "LOAN_FILE" CLOB, "FLAG_1003" VARCHAR2(5), "INSERT_ID" VARCHAR2(20),"
    " "INSERT_DATE" DATE, "UPDATE_ID" VARCHAR2(20), "UPDATE_DATE" DATE) PCTFREE"
    " 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 131072 FREELISTS 1 F"
    "REELIST GROUPS 1) TABLESPACE "TS_SMALL" LOGGING NOCOMPRESS LOB ("LOAN_FILE""
    ") STORE AS (TABLESPACE "TS_LARGE" ENABLE STORAGE IN ROW CHUNK 65536 PCTVER"
    "SION 10 NOCACHE STORAGE(INITIAL 67108864 FREELISTS 1 FREELIST GROUPS 1))"
    IMP-00003: ORACLE error 22851 encountered
    ORA-22851: invalid CHUNK LOB storage option value
    ========================================

    CHUNK
    A chunk is one or more Oracle blocks. You can specify the chunk size for the LOB when creating the table that contains the LOB. This corresponds to the data size used by Oracle Database when accessing or modifying the LOB value. Part of the chunk is used to store system-related information and the rest stores the LOB value. The API you are using has a function that returns the amount of space used in the LOB chunk to store the LOB value. In PL/SQL use DBMS_LOB.GETCHUNKSIZE. In OCI, use OCILobGetChunkSize().
    Note:
    If the tablespace block size is the same as the database block size, then CHUNK is also a multiple of the database block size. The default CHUNK size is equal to the size of one tablespace block, and the maximum value is 32K.
    Table 4-4 Data Size and CHUNK Size
    Data Size CHUNK Size Disk Space Used to Store the LOB Space Utilization (Percent)
    3500 enable storage in row irrelevant 3500 in row 100
    3500 disable storage in row 32 KB 32 KB 10
    3500 disable storage in row 4 KB 4 KB 90
    33 KB 32 KB 64 KB 51
    2 GB +10 32 KB 2 GB + 32 KB 99+ Go Through Below Link for more info.
    >>>http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14249/adlob_tables.htm#i1006587
    M.S.Taj

  • ORA-01017: invalid username/password; logon denied(Please help)

    Hi
    I have read few thread of the above problem..but still i cant figure out where is the problem..
    i am installing oracle vm manager 3.0.1
    i m following this
    http://www.oracle-base.com/articles/vm/OVM3Installation.php
    i have added the following lines to /etc/pam.d/login
    session required /lib/security/pam_limits.so
    session required pam_limits.so
    permission for u01 is as fofollows:::
    drwxrwxr-x 3 oracle oinstall 4096 Sep 6 2011 u01
    and i have set the password for "oracle" user
    and i am keeping same password for every account
    but i am seeing bellow error
    Retrieving Oracle Database 11g XE ...
    Installing Oracle Database 11g XE ...
    Configuring Oracle Database 11g XE ...
    Step 2 of 9 : Java ...
    Installing Java ...
    Step 3 of 9 : Database Schema ...
    Creating database schema 'ovs' ...
    Failed to find Oracle VM schema in Oracle Database
    ORA-01017: invalid username/password; logon denied
    can any one please please help me with this problem
    i am realy stuck
    if i hvae to setup enviromental variable.. could you please tel me how ... if that is the reason for this problem..
    im confused about oracle path : ref: http://www.oracle-base.com/articles/11g/OracleDB11gR1InstallationOnEnterpriseLinux4and5.php
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME
    ORACLE_SID=DB11G; export ORACLE_SID
    ===================
    what will i put for ORACLE_HOME, because my path is like
    cd /u01/app/oracle/product/11.2.0/xe/
    I dont have db_1 ..
    Please some one give me some light..
    thanks
    Edited by: 881083 on 05-Sep-2011 16:15
    Edited by: Fosiul on 06-Sep-2011 15:08

    I was reading on gogole
    i have set
    alter system set SEC_CASE_SENSITIVE_LOGON=false scope=spfile;
    now i can connect from sqlplus
    sqlplus SYSTEM/password
    also
    sqlplus SYSTEM/password@localhost:1521/XE
    also :
    From GUI i can connect to oracle db from http by port 8080
    but its seems like oracle VM manager does not connect ...
    example
    Would you like to install Oracle Database 11g Express Edition (XE) or connect to an existing Oracle database?
    1: Install Oracle Database 11g XE
    2: Use an existing Oracle database
    Select Number (1-2): 2
    Enter the Oracle Database hostname [localhost]:
    Enter the Oracle Database System ID (SID) [XE]:
    Enter the Oracle Database SYSTEM password:
    Enter the Oracle Database listener port [1521]:
    Enter the Oracle VM Manager database schema [ovs]:
    Enter the Oracle VM Manager database schema password:
    Enter the Oracle VM Manager database schema password (confirm):
    Oracle Weblogic Server 11g
    ==========================
    Enter the Oracle WebLogic Server 11g user [weblogic]:
    Enter the Oracle WebLogic Server 11g user password:
    Enter the Oracle WebLogic Server 11g user password (confirm):
    Oracle VM Manager application
    =============================
    Enter the username for the Oracle VM Manager administration user [admin]:
    Enter the admin user password:
    Enter the admin user password (confirm):
    Verifying configuration ...
    The database could not be reached using the provided connection info.
    ORA-01017: invalid username/password; logon denied
    Configuration verification failed ...
    can any one please help me

  • ORA-04062 - very urgent, please help

    Error "ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed" appears while refreshing materialized view with DBMS_MVIEW.REFRESH, the configuration is described below, please, any suggestions what cause the problem?
    I have the master database:
    db_master
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    and replica database:
    db_replica
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    the master and replica databases are installed at different hosts
    At db_master:
    1. I create table TEST
    CREATE TABLE TEST (ID NUMBER PRIMARY KEY);
    2.Then create materialized view log on TEST
    CREATE MATERIALIZED VIEW LOG ON TEST;
    At db_replica:
    1. create dblink MASTER to db_master
    2. create materialized view
    CREATE MATERIALIZED VIEW MV_TEST REFRESH FAST AS SELECT * FROM TEST@MASTER
    At db_master:
    1.Insert some test values to TEST
    INSERT INTO TEST VALUES (1);
    INSERT INTO TEST VALUES (2);
    INSERT INTO TEST VALUES (3);
    COMMIT;
    At db_replica:
    1. call in job (every 10 sec) DBMS_MVIEW.REFRESH(‘MV_TEST’), or manually:
    begin
    DBMS_MVIEW.REFRESH('MV_TEST');
    end;
    sometimes (not at every call the below error callstack appears)
    17:07:22 ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed
    17:07:22 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
    17:07:22 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
    17:07:22 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2429
    17:07:22 ORA-06512: at line 4
    Please, help me solve this problem, what cause ORA-04062?

    Zjawka,
    This forum doesn't consist of paid support personell.
    Labeling your request as 'very urgent' must be considered rude.
    If you would have looked up the error at all in the online documentation,
    you would have got:
    ORA-04062: %s of string has been changed
    Cause: Attempt to execute a stored procedure to serve an RPC stub which specifies a timestamp or signature that is different from the current timestamp/signature of the procedure.
    Action: Recompile the caller in order to pick up the new timestamp.
    No why do you do take the trouble to dump all in this junk in a volunteer forum, and you can't be bothered to look up the error message?
    Sybrand Bakker
    Senior Oracle DBA

  • Error ORA-06533: Subscript beyond count - Please help

    Hi All,
    Please help me on below error
    I Created two Objects and two Type like below
    CREATE OR REPLACE TYPE P_IN_OBJ AS OBJECT
    A1 VARCHAR2(5),
    A2 VARCHAR2(5),
    A3 VARCHAR2(30));
    CREATE OR REPLACE TYPE P_IN AS TABLE OF P_IN_OBJ;
    CREATE OR REPLACE TYPE P_OUT_OBJ AS OBJECT
    (B1 VARCHAR2(1),
    B2 VARCHAR2(100),
    B3 NUMBER,
    B4 VARCHAR2(100));
    CREATE OR REPLACE TYPE P_OUT AS TABLE OF P_OUT_OBJ;
    CREATE OR REPLACE PACKAGE PKG_P1 AS
    PROCEDURE PRC_P1(P_IN_VALUE IN P_IN ,
    P_OUT_VALUE OUT P_OUT);
    END PKG_P1;
    CREATE OR REPLACE PACKAGE BODY PKG_SEG_QS AS
    PROCEDURE PRC_SEG_QS(P_IN_VALUE IN P_IN ,
    P_OUT_VALUE OUT P_OUT ) AS
    P_OUT_VAL P_OUT := P_OUT();
    element INTEGER := 1;
    BEGIN
    IF P_IN_VALUE.EXISTS(1) = TRUE THEN
    FOR I IN 1..P_IN_VALUE.COUNT
    LOOP
    FOR ALL_QS IN
    (SELECT E1, E2, E3, E4
    FROM MV_SEG_QS MVSQ
    WHERE MVSQ.Z1 = P_IN_VALUE.A1
    AND MVSQ.Z2 = P_IN_VALUE.A2
    AND MVSQ.Z3 = P_IN_VALUE.A3
    LOOP
    P_OUT_VAL(element).B1 := ALL_QS.E1;
    P_OUT_VAL(element).B2 := ALL_QS.E2;
    P_OUT_VAL(element).B3 := ALL_QS.E3;
    P_OUT_VAL(element).B4 := ALL_QS.E4;
    element := element+1;
    END LOOP;
    END LOOP;
    END IF;
    P_OUT_VALUE:= P_SEG_OUT;
    END PRC_P1;
    END PKG_P1;
    When I call this Package I am getting the below Error
    ORA-06533: Subscript beyond count
    Please somebody help me in this issue its very urgent for me.
    Thanks,
    Anu.

    Anu wrote:
    Hi All,
    Please help me on below error
    I Created two Objects and two Type like below
    CREATE OR REPLACE TYPE P_IN_OBJ AS OBJECT
    A1 VARCHAR2(5),
    A2 VARCHAR2(5),
    A3 VARCHAR2(30));
    CREATE OR REPLACE TYPE P_IN AS TABLE OF P_IN_OBJ;
    CREATE OR REPLACE TYPE P_OUT_OBJ AS OBJECT
    (B1 VARCHAR2(1),
    B2 VARCHAR2(100),
    B3 NUMBER,
    B4 VARCHAR2(100));
    CREATE OR REPLACE TYPE P_OUT AS TABLE OF P_OUT_OBJ;
    CREATE OR REPLACE PACKAGE PKG_P1 AS
    PROCEDURE PRC_P1(P_IN_VALUE IN P_IN ,
    P_OUT_VALUE OUT P_OUT);
    END PKG_P1;
    CREATE OR REPLACE PACKAGE BODY PKG_SEG_QS AS
    PROCEDURE PRC_SEG_QS(P_IN_VALUE IN P_IN ,
    P_OUT_VALUE OUT P_OUT ) AS
    P_OUT_VAL P_OUT := P_OUT();
    element INTEGER := 1;
    BEGIN
    IF P_IN_VALUE.EXISTS(1) = TRUE THEN
    FOR I IN 1..P_IN_VALUE.COUNT
    LOOP
    FOR ALL_QS IN
    (SELECT E1, E2, E3, E4
    FROM MV_SEG_QS MVSQ
    WHERE MVSQ.Z1 = P_IN_VALUE.A1
    AND MVSQ.Z2 = P_IN_VALUE.A2
    AND MVSQ.Z3 = P_IN_VALUE.A3
    LOOP
    P_OUT_VAL(element).B1 := ALL_QS.E1;
    P_OUT_VAL(element).B2 := ALL_QS.E2;
    P_OUT_VAL(element).B3 := ALL_QS.E3;
    P_OUT_VAL(element).B4 := ALL_QS.E4;
    element := element+1;
    END LOOP;
    END LOOP;
    END IF;
    P_OUT_VALUE:= P_SEG_OUT;
    END PRC_P1;
    END PKG_P1;
    When I call this Package I am getting the below Error
    ORA-06533: Subscript beyond count
    Please somebody help me in this issue its very urgent for me.
    Thanks,
    Anu.Anu,
    Correct your package code, its not working.
    Cheers,
    Manik.

  • ORA-03113: end-of-file on communication channel, Please help

    hello Seniors,
    i have strange situation, facing it for the first time.
    i m/s detail form and i am entering data. i successfully saved few records.
    i completed entering one more record and for a reason i left it unsaved.
    after lets say may be a minute or so, i got back to work and then tried to save the unsaved record
    displayed on screen. when i pressed save button i got error;
    ORA-03113: end-of-file on communication channel
    leaving the form as is with this error displayed, i notice that i can very well use the db at server level
    by running other sqls, meaning other resources are functioning. even i tried to open the same application again
    leaving the erroneous form as is, and tried to enter in another form , it communicated well and saved without any errors.
    also there is one more errro along with this, when i query; says "Unable to perform query"
    ORA-01041: internal error. hostdef extension doesn't exist
    and when exit the current form it quits the entire application and kills that particular session,
    but the db is still up and running with no errors.
    The Tnsping <hostname> is responding.
    i want to know while entring on a form, is there any time-out limit between the entry and saving point?
    or any other solution please help. vm thankful.
    my db
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 25 09:31:46 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    form;
    Forms [32 Bit] Version 6.0.8.25.2 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    Oracle Toolkit Version 6.0.8.25.0 (Production)
    PL/SQL Version 8.0.6.3.0 (Production)
    Oracle Procedure Builder V6.0.8.21.0 Build #1459 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.8.25.0 (Production)
    Oracle Multimedia Version 6.0.8.25.0 (Production)
    Oracle Tools Integration Version 6.0.8.18.0 (Production)
    Oracle Tools Common Area Version 6.0.8.18.0
    Oracle CORE Version 4.0.6.0.0 - Production
    Edited by: user10967485 on Jul 25, 2009 12:47 AM
    Edited by: user10967485 on Jul 25, 2009 12:52 AM

    i was testing entering into different forms of my application.
    what i notice that this problem persist with just one form i.e. my purchase order header-details form.
    whats happening is, it allows just the first or rather 1 record (incase if are in a query mode and select create record),
    saving the next or IInd record returns this error. God knows why..?
    can you please suggest any debugging technique to catch the theif?
    i have WNFI, POSt-FORM-COMMIT, KEY-COMMIT, PRE-COMMIT, PRE-FORM at form level
    at heade block i have ;
    PRE-INSERT,UPDATE,DELETE, PRE-RECORD,POST-QUERY, KEY-ENTQRY, ON-POPULTE-DET
    at detail blcok i have;
    PRE-INSERT,UPDATE,PRE-RECORD,POST-QUERY,WHEN-REMOVE-RECORD.
    sqlnet.ora, i have at 4 different dir;
    C:\orant\NET80\ADMIN & C:\orant\NET80\ADMIN\SAMPLE AND
    C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN & C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\SAMPLE
    I am not so good with Dba interface, so please suggest me which particular file should refer and
    where & what exactly should i look for..? as the file contains a comrehensive entries.
    thankyou once again.
    on displaying error from Help i get this;
    INSERT INTO PURCHASE_ORDER_DETAIL) VALUES ) RETURNING ROWID,POD_COMP_CODE,POD_DATE,POD_POH_CODE,POD_POH_NO,POD_REMARKS,POD_CR_UID,POD_CR_DT,POD_UPD_UID,POD_UPD_DT,POD_PROD_CODE,POD_UOM,POD_QTY,POD_RATE,POD_CURR_CODE,POD_FX_RATE,POD_fc_AMOUNT,POD_LC_AMOUNT INTO :1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18
    ORA-03113: end of on communication channel.

  • ORA-12154: Help Pls

    Hi, all,
    Under red hat linux 6.2, I have a OCI program running as mail delivery program for qmail, which is invoked by qmail-local when new mail is coming. This program runs fine in shell ( for testing ), but always gets ORA-12154 error ( could not resolve service name ? ) during login process when it is invoked by qmail.
    Since it can be run in shell, I suppose the configuration of net service is correct. However, what is the difference between those two situation? Has it anything to do with security?
    Any help would be appreciated.

    Sorry, forget to say that I am using Oracle release 8.1.6 client for linux

  • Error message ORA-27101 shared memory realm does not exist,Please help me

    My oracle(oracle 8.1.6) is installed successfully,But when I connect to the database it shows me the error:
    ORA-27101 shared memory realm does not exist.
    How can I deal with it?Please help me.

    The OTN Customer Service - Feedback forum answers questions relating to the OTN site and other customer service issues. It does not answer technical or installation questions. Please post your topic in the appropriate forum.
    Best Regards, OTN Team

Maybe you are looking for

  • How can I put MP3's on an iPad without using a computer?

    I am helping out a local sports team with music for their players. They have purchased an iPad and are currently buying about 150 songs from iTunes so that the kids have music to listen to while they practise. They also want to be able to use the iPa

  • Is it possible to get published to folder files back into iweb?

    Hello, I have created a website in iweb and published it to a folder and to my .mac account. I have recently closed down my .mac account so I could reopen one with my new business name. In the meantime I have upgraded to Leopard which deleted my iweb

  • How to use ascii code?

    hello everyone, i have coded a program that user type text in (textArea1) and then press a button and copy this text to (textArea2) , before it copy this text i got a tokenizer that make every word copied in a single line, the question is , how i can

  • HELP!!! I can't uninstall windows 7!

    How can I log into Mac software when logging in directly to Windows 7? Indeed, I would like to uninstall Windows 7!

  • Is there a Euro symbol?

    Hello fellow Macintosh user?  I use System 10.8.4, which is the latest.  I enjoy owning an iMac.  :-) But I came-across a possible oversight by Apple?  I haven't found the Euro symbol.  [The Euro symbol is a bold, arabic c with two parallel, horizont