ORA-12154 & ORA-12514 errors with Net8

Can anyone help me with getting Net8 to run?
On 8.0.5 I was able to get my Windows front-ends to run using the "0-Configuration" option for Net8 - using Host Names.
I have been roundly unsuccessful in trying to get this to work with 8i, and now I am deeply embroiled in TNSNAMES configuration with total lack of success and ever increasing frustration.
Has anyone successfully overcome this type of error with 8i to successfully access the database from a Windows client?

John,
Apologies for the cyber-silence. I only get to work on this stuff evenings and weekends, and this weekend was work instead :-(
As this whole area of network and database configuration is one of ritual and superstition for me, rather than clinical science I decided to go back in time and re-install 8.0.5 - which works fine for the Host Naming approach. I grabbed the listener.ora and tnsnames.ora (yes, I know it doesn't apply - but, as I said, I'm superstitious) and brought them back to the present (changing a couple of things where necessary - e.g. 8.0.5 => 8.1.5).
Unfortunately that didn't work either. Then I recreated my 8i database and made the global db name and instance name exactly the same as the hostname. This time it worked! Not a very general solution (and I have no idea which part of the solution cracked it or me) but I am sticking with it for now!
Just for the record here are the new (old?) configuration files:
sqlnet.ora:
SQLNET.EXPIRE_TIME = 0
NAMES.DIRECTORY_PATH= (HOSTNAME)
SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = baloo))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = baloo.housden.net)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = baloo.housden.net.)
(ORACLE_HOME = /u2/app/oracle/product/8.1.5)
(SID_NAME = baloo)
(SID_DESC =
(SID_NAME = extproc)
(ORACLE_HOME = /u2/app/oracle/product/8.1.5)
(PROGRAM = extproc)
tnsnames.ora:
ORCL_BEQ =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = BEQ)(PROGRAM = /u2/app/oracle/product/8.1.5)
(argv0 = oraclebaloo)
(args = '(DESCRIPTION = (LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))')
(envs = 'ORACLE_HOME=/u2/app/oracle/product/8.1.5,ORACLE_SID=baloo'))
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = baloo.housden.net)(Port = 1521))
(CONNECT_DATA =
(SID = baloo)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = baloo))
(CONNECT_DATA =
(SID = extproc)
BTW - in other posts on this forum you keep whingeing about your job. Are things still that bad Down Under that there are no suitable alternatives there? I was hoping to return to the Lucky Country some time soon, but I want to be sure that the economy and job market is viable first. Anyway, thanks for your help and Good Luck!

Similar Messages

  • ORA-12154 Oracle Client Error with VirtualBox

    This is rather lengthy and I am not sure this is the right forum for this question but it does involve the Oracle Client.
    My development environment consists of a single workstation that is not connected to a network. The OS for the database is Linux CentOS (Red Hat Enterprise Linux 3 or 4). The database seems to run fine from the Linux OS - OEM and SQLPlus run as well as all the other utilities (lsnrctl, etc.).
    The database front-end has to be Access 2003. This is requiring that I run Windows from VirtualBox so I can do the FE database development.
    In addition to this when I try to create a system (or any other) DSN, I get the following behaviors.
    - Start up the "Microsoft ODBC Administrator"
    - Select the "System DSN" tab
    - Click "Add..."
    - Select driver: "Oracle in OraClieht11g_home1"
    - Enter the following data in the following fields
    Data Source Name: "orcl_hr"
    TNS Service Name: "orcl"
    - Click the "Test Connection" button
    This initiates a wait of about 1 minute
    - In the "Oracle ODBC Driver Connect" dialog, enter the following data in the fields
    Service Name: "orcl"
    User Name: "hr"
    Password: <the hr password>
    This initiates another wait of about 1 minute after which I get an error dialog with the following message:
    Unable to connect
    SQLState=08004
    [oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified
    On the Windows side the ORACLE_SID is defined as "orcl"
    On the Linux (db server) side, the following files have the listed contents:
    Listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = local.net)(PROT = 1521))
      )sqlnet.ora
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)tnsnames.ora
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = local.net)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
      )Another data point: I notice that the client software has a SqlPlus application. When I try to log on to the database through this app I get the error: ORA-12560: TNS:protocol adapter error.
    Is there a VirtualBox problem? Can it be fixed?
    Edited by: DBelt on Jun 29, 2009 10:19 AM

    The OracleClient install does not create either of the sqlnet.ora or tnsnames.ora files. These are created in the ORACLE_HOME/network/admin direcory of the host machine, however -- as well as the listener.ora file.
    One question I have before we procede much further is what is the "Instant Client" anyway? As I said earlier, I am not even sure this is the proper forum for my question since it involves the OracleClient software -- I know what the OracleClient is but not the "Instant Client".
    That said, I am able to telnet port 1521 from the host if I uset the literal IP address only (using <local.net> does not work). I am completely unable to ping the host at all from VirtualBox (I am operating in NAT mode and this seems to be a documented "feature" of VBox).
    The "sqlplus user/pwd@(DESCRIPTION=...)" comment does not work. I have tried several iterations: 1) as provided above with the double-quotes resulting in a display of the proper syntax for invoking sqlplus, 2) without the quotes, and 3) replacing the double-quotes with parentheses. The outcome of experiments 2) and 3) is a syntax error occurring at "(" for the former or at user/pwd for the latter. (I am substituting proper values for the user, pwd, and local.net placeholders.)
    I am starting to wonder if my problem may lie in trying to run the client from VirtualBox in NAT mode.
    Another question has to do with the ODBC Administrator -- Where does it get its list of "TNS Service Names"?

  • ORA-12154 TNS resolve error with ProC

    <p>Hi all,
    <br>
    <p>
    I have a program written in ProC which works fine when it connects to a local database. However, it is unable to connect to a remote database. The code for making the connection is:
    <p>
    <i>
    EXEC SQL BEGIN DECLARE SECTION;<br>
    char name[20];<br>
    char pwd[20];<br>
    char dbname[20];<br>
    char dbstring[20];<br>
    EXEC SQL END DECLARE SECTION;<br>
    strcpy(name, "admin");<br>
    strcpy(pwd, "adminadmin");<br>
    strcpy(dbname, "userdb");<br>
    strcpy(dbstring, "userdb");<br>
    EXEC SQL WHENEVER SQLERROR DO printf( "Connection Error = %s", sqlca.sqlerrm.sqlerrmc);<br>
    EXEC SQL CONNECT :name IDENTIFIED BY :pwd AT :dbname USING :dbstring;<br>
    </i>
    <p>
    The content of fthe file tnsnames.ora:<br>
    <i>
    userdb =<br>
    (DESCRIPTION =<br>
    (ADDRESS_LIST =<br>
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.30.21)(PORT = 1521))<br>
    )<br>
    (CONNECT_DATA =<br>
    (SID = userdb)<br>
    )<br>
    )<br>
    </i>
    <p>
    I can "tnsping userdb" and "telnet 192.168.30.21 1521" but the program keeps generating the ORA-12154 connection error.
    The version of my oracle client is 9.2.0.1.0
    The version of the db server is 8.1.7
    Could any one give me some advice please. I had been searching for the solutions for days but failed. Please help. Thanks.

    <p>
    i do a file search "find / -name tnsnames.ora", here is the result:
    <p>
    /home/oracle/dbscript/database/tnsnames.ora<br>
    /u00/app/oracle/product/9.2.0.1.0/network/admin/samples/tnsnames.ora<br>
    /u00/app/oracle/product/9.2.0.1.0/network/admin/tnsnames.ora<br>
    <p>
    the first one is not found in the path

  • Error ORA-12154 trying to connect with instant client 11g / LDAP on Ubuntu

    Hello,
    I have successfully installed instant client 11.2.0.2 and sqlplus on my Ubuntu 11.04 workstation. I am able to successfully connect to DB's defined in tnsnames.ora, but when the resolution is (or should be) by LDAP, I get error
    ORA-12154: TNS:could not resolve the connect identifier specified
    Note: while it's fine for testing, it's not a viable option to setup all the DB's defined in the OID in tnsnames.ora - I need to use LDAP.
    My setup is as follows:
    Install folder: /opt/oracle/instantclient_11_2
    TNS_ADMIN=/opt/oracle/instantclient_11_2/
    sqlnet.ora
    NAMES.DIRECTORY_PATH=(TNSNAMES,LDAP)
    I am certain that tnsnames.ora and ldap.ora are valid, as I can connect successfully on another machine with the full client installed using the same files.
    I tried to setup tracing in sqlnet.ora as follows
    TRACE_LEVEL_CLIENT = SUPPORT
    TRACE_DIRECTORY_CLIENT = /tmp
    TRACE_FILE_CLIENT = sqlnet.trc
    but not trace file gets generated in /tmp - am I doing something wrong ? (Note, I also tried to set DIAG_ADR_ENABLED=OFF as suggested by Laurenz Albe in Instant client don't work trace but that did not help)
    I checked DocID=359206.1 but I don't think that applies as I'm on 11g.
    Hope someone can help. Thanks in advance !

    rgoold, you are a star ! I should have thought about line endings of course. Many thanks for your suggestion, that fixed the problem.
    # file *.ora
    ldap.ora: ASCII text, with CRLF line terminators
    sqlnet.ora: ASCII text, with CRLF line terminators
    # dos2unix *.ora
    dos2unix: converting file ldap.ora to UNIX format ...
    dos2unix: converting file sqlnet.ora to UNIX format ...
    # ./sqlplus -L user@database
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Sep 5 15:26:16 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    WOHOOOOO !!! :-)

  • ORA-12514 error with oracle11g

    I installed oracle11g under windows server 2008,it runs well for a long time,but recently,I find oracle11g can't run well.Oracle files is follows:
    listener.ora
    # listener.ora Network Configuration File:
    C:\oracle\Administrator\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TEST)(PORT = 1521))
    sqlnet.ora
    # sqlnet.ora Network Configuration File: C:\oracle\Administrator\product\11.1.0\db_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\oracle\Administrator\product\11.1.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    TESTONE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TEST)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TEST)
    TEST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TEST)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TEST)
    when I login,like follows,it can login well:
    c:\>sqlplus scott/tiger
    SQL>
    but when I login like follows,it can't login
    c:\>sqlplus scott/tiger@TEST
    ERROR:
    ORA-12514: TNS: listener does not currently know of service requested in connect descriptor
    c:\>sqlplus scott/tiger@TESTONE
    ERROR:
    ORA-12514: TNS: listener does not currently know of service requested in connect descriptor
    when I use lsnrctl command to view status
    c:\>lsnrctl
    LSNRCTL> status
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TEST)(PORT=1521)))
    listener don't support service
    How to solve above question? I have puzzled for a long time.
    Any idea will be appreciated!
    Edited by: EdwardKing on May 31, 2009 4:04 PM

    I rename listener.ora & sqlnet.ora,then I reboot my OS,issue the following commands:
    C:\>lsnrctl
    LSNRCTL for 32-bit Windows: Version 11.1.0.7.0 - Production on 01-June -2009 07:7:45
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    LSNRCTL> start
    start tnslsnr: wait...
    TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
    write c:\oracle\administrator\diag\tnslsnr\TEST\listener\alert\log.xml
    listen: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TEST)(PORT=1521)))
    connecting (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    //Here,oracle is connecting all the time,don't stop
    c:\>lsnrctl status
    listen...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TEST)(PORT=1521)))
    service "TESTXDB" contains 1 instance.
    "test", status READY, contain one instance of this service...
    "TEST_XPT" contain one instance.
    service "test", status READY, contain one process program of this service...
    service "test" contain one instance.
    instance "test", status READY, contain one process program of this service...
    command issue success
    c:\>lsnrctl servive
    connecting (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    service "TESTXDB" contain one instance.
    Instance "test", status READY, contain one process program of this service...
    process program:
    "D000" established:0 refused:0 current: 0 max: 1022 status: ready
    DISPATCHER <machine: TEST, pid: 2904>
    (ADDRESS=(PROTOCOL=tcp)(HOST=TEST)(PORT=49156))
    Service "TEST_XPT" contain one instance.
    Instance "test", status READY, contain one process program of this service...
    process program:
    "DEDICATED" established:0 refused:0 status:ready
    LOCAL SERVER
    Service "test" contain one instance 。
    Instance "test", status READY, contain one process program...
    process program:
    "DEDICATED" established:0 refused:0 status:ready
    LOCAL SERVER
    listener.log file is follows:
    01-June -2009 06:29:13 * (CONNECT_DATA=(SERVICE_NAME=TEST)(CID=(PROGRAM=C:\oracle\Administrator\product\11.1.0\db_1\bin\sqlplus.exe)(HOST=TEST)(USER=Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.102)(PORT=49164)) * establish * TEST * 12514
    TNS-12514: TNS: listener does not currently know of service requested in connect descriptor
    Mon Jun 01 06:42:23 2009
    01-June -2009 06:42:23 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=185599744)) * status * 0
    Mon Jun 01 07:16:58 2009
    write c:\oracle\administrator\diag\tnslsnr\TEST\listener\alert\log.xml
    write c:\oracle\administrator\diag\tnslsnr\TEST\listener\trace\ora_4088_2080.trc
    trace level is 0
    pid=4088
    listen: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TEST)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    Mon Jun 01 07:17:49 2009
    write c:\oracle\administrator\diag\tnslsnr\TEST\listener\alert\log.xml
    write c:\oracle\administrator\diag\tnslsnr\TEST\listener\trace\ora_592_2236.trc
    trace level is 0
    pid=592
    listen: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TEST)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    Mon Jun 01 07:18:49 2009
    01-June -2009 07:18:49 * service_register * test * 0
    01-June -2009 07:18:52 * service_update * test * 0
    Mon Jun 01 07:19:05 2009
    01-June -2009 07:19:05 * service_update * test * 0
    Where is wrong? How to repair my oracle11g?
    Thanks in advance!
    Edited by: EdwardKing on May 31, 2009 5:51 PM

  • ORA-06502: PL/SQL error with dimensions and roles

    Hi everyone,
    When executing a mapping that loads a cube we are always getting that ORA-06502: PL/SQL error character string buffer too small
    The cube contains a number of dimensions, some of them with roles. We've checked that the error appears when we use two different lookup operators to fill dimension atributtes in the cube and its correspondent role. If we map dimension attributes with lookup operator, and the role attributes with constants, the mapping executes without any error. Moreover, even thought it doesnt make any sense, if we map the role dimension attributes with a lookup operator linked to a different dimension, it works too.
    We think that this could be due to attributes names, maybe they are too long, but we have tried to make them shorter and still getting the same error.
    Any ideas of what could be happening?
    Thank you so much in advance.

    The return datatype in a PLSQL function is unconstrained. Which means it does not have a size.
    The size is declared on the receiving end.
    What size variable are you trying to return your value into?
    Here is an example...
    SQL>create or replace function my_func
      2  return varchar2
      3  is
      4  begin
      5    return USER;
      6  end;
      7  /
    Function created.
    SQL>declare
      2    my_string varchar2(30);
      3  begin
      4    my_string := my_func;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL>declare
      2    my_string varchar2(3);
      3  begin
      4    my_string := my_func;
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4

  • Ora-01403 get this error with owner

    hallo!!
    I have a problem with insert and update date into tabe with owner user, but with other user insert and update works fine.
    Please help me to solve this problem!!
    Thanks!!

    But there are nonforgivable exceptions (10.2.0.4):
      1  SELECT to_date('12.7'||chr(255)||'2009 11%57*00','DD/MM/RRRR HH24:MI:SS')
      2*  FROM dual
    SQL> /
    SELECT to_date('12.7'||chr(255)||'2009 11%57*00','DD/MM/RRRR HH24:MI:SS')
    ERROR at line 1:
    ORA-01843: not a valid monthAnd because it is undocumented we don't know what will happen in future versions. I wouldn't risk, especially when there are errors in query.
    Bartek

  • ORA-01722: invalid number error with Bulk collect

    Hi ,
    I have been using the script to delete old seasonal data from my application DB tables. The stored procedure has been created successfully but when i try to run the proc it has been throwing 'ORA-01722: invalid number' exception at line 'FETCH C1_CUR BULK COLLECT INTO C1_TYPE_VAR LIMIT v_bulklimit;'.
    Could you please help me here?
    Below is the stored proc:
    CREATE OR REPLACE PROCEDURE clean_old_season_data(P_SEASON VARCHAR2) AS
    CURSOR C1_CUR IS SELECT ROWID RID,pro.* FROM PROPS pro where pro.ITEMPK IN
    (SELECT sve.pk FROM SAVEDVALUEENTRY sve WHERE sve.p_parent IN
    (SELECT s.pk FROM SAVEDVALUES s WHERE s.P_MODIFIEDITEM IN
    (SELECT a.PK
    FROM products a
    WHERE a.p_season IN (select s.pk from Seasons s where s.P_code=P_SEASON)
    ) ) ) and rownum<5;
    CURSOR C2_DEL IS SELECT RID FROM PROPS_HISTORY;
    TYPE C1_TYPE IS TABLE OF C1_CUR%ROWTYPE;
    C1_TYPE_VAR C1_TYPE;
    TYPE C2_TYPE IS TABLE OF UROWID;
    C2_TYPE_VAR C2_TYPE;
    ex_dml_errors EXCEPTION;
    PRAGMA EXCEPTION_INIT(ex_dml_errors, -24381);
    l_error_count NUMBER;
    err_num NUMBER;
    err_msg VARCHAR2 (300);
    COMMIT_VARIABLE PLS_INTEGER:=0;
    v_bulklimit NUMBER:=2;
    BEGIN
    /*------------------ Data Selection and INSERTION IN HISTORY TABLE ---------------------------------------*/
    OPEN C1_CUR;
    LOOP
    DBMS_OUTPUT.put_line('Cursor opend now in loop');
    FETCH C1_CUR BULK COLLECT INTO C1_TYPE_VAR LIMIT v_bulklimit;//ERROR OCCURS HERE
    DBMS_OUTPUT.put_line('Cursor count is'|| C1_TYPE_VAR.COUNT);
    FORALL I IN 1..C1_TYPE_VAR.COUNT SAVE EXCEPTIONS
    INSERT INTO PROPS_HISTORY VALUES C1_TYPE_VAR(I);
    COMMIT_VARIABLE := COMMIT_VARIABLE + v_bulklimit;
    DBMS_OUTPUT.put_line('Commit variable'|| COMMIT_VARIABLE.COUNT);
    IF COMMIT_VARIABLE = v_bulklimit THEN
    COMMIT;
    COMMIT_VARIABLE := 0;
    END IF;
    EXIT WHEN C1_CUR%NOTFOUND;
    END LOOP;
    DBMS_OUTPUT.put_line('Cursor closed now in loop and data inserted in history table');
    CLOSE C1_CUR;
    /*------------------ Data Selection and DELETION IN Live TABLE ---------------------------------------*/
    COMMIT_VARIABLE := 0;
    OPEN C2_DEL;
    LOOP
    FETCH C2_DEL BULK COLLECT INTO C2_TYPE_VAR LIMIT 2;
    FORALL I IN 1..C2_TYPE_VAR.COUNT SAVE EXCEPTIONS
    DELETE FROM PROPS WHERE ROWID = C2_TYPE_VAR(I);
    COMMIT_VARIABLE := COMMIT_VARIABLE + 2;
    IF COMMIT_VARIABLE = 2 THEN
    COMMIT;
    COMMIT_VARIABLE := 0;
    END IF;
    EXIT WHEN C2_DEL%NOTFOUND;
    END LOOP;
    CLOSE C2_DEL;
    END;

    Although there are many things which should not have been done in the posted code, I could not find any reason why the Invalid number error should occur at the Fetch clause.
    I would suggest you to Insert into Table by providing the Order of Columns i.e. Insert into table (col1, ... colN) values (coll(i).col1...col(i).colN);
    I tested below code and it did not give any errors.
    drop table test_table;
    create table test_Table
      rid   varchar2(100),
      emp_id  number(5),
      fname   varchar2(20),
      lname   varchar2(50)
    set serveroutput on;
    declare
      cursor c_cur is
          select rowid rid, e.*
            from employees e
           where rownum < 10;
      type typ_cur is table of c_cur%rowtype;
      typ typ_cur;
      l_bulk_limit    number := 5;
    begin
      open c_cur;
      loop
        fetch c_cur bulk collect into typ limit l_bulk_limit;
        dbms_output.put_line('Collection Count :: ' || typ.count);
        forall i in 1..typ.count --typ.first..typ.last
          insert into test_Table (rid, emp_id, fname, lname) values (typ(i).rid,typ(i).employee_id,typ(i).first_name,typ(i).last_name);
        dbms_output.put_line('Processed ' || l_bulk_limit || ' records.');
        exit when c_cur%notfound;
      end loop;
      commit;
    end;
    select * from test_table;PS:- 1. When you are processing only 4 Records, then why are you breaking them in 2 Loops?
    2. Why Commit every time you are processing a DML? Why not maintain an Error Flag and Rollback the Transaction as soon as error is encountered?
    3. Use "{code}" (Exclude Double Quotes) to format the code. I am not sure if works.
    Regards,
    P.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ORA -00439 partition enable error with %s

    Hi
    I form following table partition query and faceing ORA-00439 "feature not enable %s" error at time of query execution
    Please help me to resolve this
    CREATE TABLE EMP2 (
    EMPNO NUMBER(4),
    ENAME VARCHAR2(10),
    JOB VARCHAR2(9),
    MGR NUMBER(4),
    HIREDATE DATE,
    SAL NUMBER(7,2),
    COMM NUMBER(7,2),
    DEPTNO NUMBER(2)
    PARTITION BY RANGE (hiredate)
    (PARTITION EMP_1981 VALUES LESS THAN (TO_DATE('01/01/1982', 'DD/MM/YYYY')),
    PARTITION EMP_1982 VALUES LESS THAN (MAXVALUE));
    Thanks in advance
    Regards
    Phani
    Edited by: Phani on Oct 19, 2010 1:36 AM

    Hi
    Thanks for reply
    I am using Oracle 10g Express edition (XE)
    I have executed following select query and I got value has "FALSE"
    select * from v$option where parameter = 'Partitioning';
    Regards
    Phani

  • Memory reference error with Net8 easy config

    I've installed the Oracle 9iDS in the Windos 2000 professional. This i have installed in ORAIDS sepate directory with oracle home as ORAIDS. Using Net8 easy config i can establish the connection with oracle server. Then after, I've also installed the Developer with Forms 6I in the same computer in different directory ORAD2k with sepate home ORAD2K. for this I tried to establish a connection through "Oracle Net8 Easy Config". While i select the menu item "Oracle Net8 Easy Config", it gives me an error :
    The instruction at "0x00010111" referenced memory at "0x016286e0". The memory could not be "written".
    Click on OK to terminate the program
    Click on CANCEL to debug the program.
    Can somebody tell me how to make a connection from Developer (Forms6I and Reports 6I)
    Thank you.

    Hi,
    Copy tnsnames.ora file from ORAIDS/network/admin this path to ORAD2K/network/admin path.
    I hope it will work fine.
    -Neeraj

  • ODBC-datasource generating ORA-12154 (possible listener issue)

    Hi,
    I am trying to configure ao ODBC-datasoure from a client (using instant client 11.2) to a 11.2g Oracle DB server. The database listener is configured to use a non standard port 1700 in this case.
    There is a firewall between the client and the server which is configured to allow connections to the database server on the specified port, when I use telnet from the client to the server, the connection opens on this port, but when I try to test the odbc-datasource I have configured ig et the error ORA-12154.
    The link below outlines the details of the error:
    http://ora-12154.ora-code.com/
    To the context should be added, that there is no problem to use SQL Plus from a computer behind the firewall to connect to the database server using the TNS name that is being used in the ODBC-datasource.
    I have tried to configure the odbc-datasource using both a tns_names.ora file, and also directly in the odbc-datasource using //[ip address] : [port]/TNS_NAME. Both ways of configuring the odbc-datasource generates the same error. I am currently suspecting that the error might be due to some sort of connection redirection on the part of the tns listener on the database server which triggers the firewall to terminate the connection. Could this be the case?
    Does anyone have any suggestions what this error might be caused by. Any suggestions on how to continue my troubleshooting would also be valueble. Further, what kind of configuration would need to be inplace, on the tns-listener / database server side to make this sort of configuration to work.
    Finally, I should also ask that I have tested the same ODBC-datasource configuration in a test system without any firewall inbetween, and that configuration works fine, so there seems to be no problem with the client software configuration per se.
    Any help is apprichated.
    /Eaglecoth

    Cabelcow wrote:
    I managed to solve this issue myself.
    Since there seems to be some problem locating the server I added "HOSTNAME" to the following line in the SQLNET.ORA file on the server:
    names.directory_path = (HOSTNAME,TNSNAMES)
    This solved the issue by using the following syntax in the ODBC Configuration:
    TNS Service Name: [ip-address]:[port]/[TNS NAME]
    Where the TNS_NAME should be that of the TNS_NAME for the database defined in the TNSNAMES_ORA at the server. Note that this value is case sensetivetnsnames.ora is ONLY used by the client side application. It is the tns complement to the local 'hosts' file. It is used by the CLIENT to resolve an alias (tns net service name) to a host (ultimately an ip), port, and service name. Your assertion that the tns_name should be ... hmm, now that I read that again, are you saying that the tnsnames entry on the client should match the one in the tnsnames file on the server? If so, yes and no. There is no technical requirement that they match. It is simply that it is usually assumed that the one on the server is correct and may be used as a model for what to do on the client. The server - acting as a server - doesn't even use the tnsnames.ora file. It exists on the server only to support any client process that may happen to be running on the same box as the db.
    Maybe this will help you understand the connections
    =================================
    ORA-12154: TNS:could not resolve the connect identifier specified
    This error means one thing, and one thing only. The client could not find the specified entry in the tnsnames.ora file being used.
    As a follow-on to that statement, remember that when you use a dblink, the database in which the link is defined is acting as a client to the database that is the target of the link. So in this case, the tnsnames.ora file on the host of your source should have an entry for your target db, as defined in the db_link.
    And for the umpteenth time ... this error has <b><i><u>NOTHING</u></i></b> to do with the status of a listener. The connection request never got far enough to reach a listener. If anyone tells you to check a listener in response to ora-12154, they are not paying attention, or do not understand how TNS works. This error is the equivalent of not being able to place a telephone call because you don't know the number of the party you want to reach. You wouldn't debug that situation by going to the other guy's house and testing his telephone, or by going to the phone company and testing the switchboard. And you don't debug a ORA-12154 by checking the listener. If I had a top ten list of "Incredibly Simple Concepts (tm)" that should be burned into the brain of everyone who claims to be an Oracle DBA, it would include "ORA-12154 Has Nothing To Do With The Listener".
    =================================
    A couple of important points.
    First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database. That would be like the telephone company building a separate switchboard for each customer.
    Additional notes on the listener: One listener is capable of listening on multiple ports. But please notice that it is the listener using these ports, not the database instance. You can't bind a specific listener port to a specific db instance. Similarly, one listener is capable of listnening on multiple IP addresses (in the case of a server with multiple NICs) But just like the port, you can't bind a specific ip address to a specific db instance.
    Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
    Assume you have the following in your tnsnames.ora:
    larry =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = curley)
      )Now, when you issue a connect, say like this:
    $> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Finding it, tns sends a request through the normal network stack to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
    Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
    Next, the standard networking process delivers the message to port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, the listener will spawn a server process to act as the intermediary between your client and the database instance. Communication to the server process will be on a randomly selected available port. At that point the listener is out of the process and continues to user port 1521 to await other connection requests.
    What can go wrong?
    First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
    Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
    Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
    Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
    Third: If the client is on the same machine as the db instance, it is possible to connect without referencing tnsnames and without going through the listener.
    Now, when you issue a connect, say like this:
    $> sqlplus scott/tigertns will attempt to establish an IPC connection to the db instance. How does it know the name of the instance? It uses the current value of the enviornment variable ORACLE_SID. So...
    $> export ORACLE_SID=fred
    $> sqlplus scott/tigerIt will attempt to connect to the instance known as "fred". If there is no such instance, it will, of course, fail. Also, if there is no value set for ORACLE_SID, the connect will fail.
    check executing instances to get the SID
    [oracle@vmlnx01 ~]$ ps -ef|grep pmon|grep -v grep
    oracle    4236     1  0 10:30 ?        00:00:00 ora_pmon_vlnxora1set ORACLE_SID appropriately, and connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID='vlnxora1
    [oracle@vmlnx01 ~]$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:37 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNow set ORACLE_SID to a bogus value, and try to connect
    SQL> exit
    [oracle@vmlnx01 ~]$ export ORACLE_SID=FUBAR
    [oracle@vmlnx01 ~]$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:57 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Enter user-name: Now set ORACLE_SID to null, and try to connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID=
    [oracle@vmlnx01 ~]$ sqlplus /scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:43:24 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specifiedOk, that is how we get from the client connection request to the listener. What about the listener's part of all this?
    The listener is very simple. It's job is to listen for connection requests and make the connection (server process) between the client and the database instance. Once that connection is made, the listener is out of the picture. If you were to kill the listener, all existing connections would continue. The listener is configured with the listener.ora file, but if that file doesn't exist, the listener is quite capable of starting up with all default values. One common mistake with the listner configuration is to specify "HOST=localhost" or "HOST=127.0.01". This is a NONROUTABLE ip address. LOCALHOST and ip address 127.0.0.1 always mean "this machine on which I am sitting". So, all computers are known as "localhost" or "127.0.0.1". If you specify this address, the listener will only be capable of receiving requests from the machine on which it is running. If you specified that address in your tnsnames file - on a remote client machine - the request would be routed to the machine on which the requesting client resides. Probably not what you want.
    =====================================

  • ORA-12154 on WinXP x64

    Hello,
    I have a WinXP x64 with Oracle Client 9.2
    it works fine with SQLplus,SQL Navigater and XAMPP server
    but with Golden and Crystal I get everytime an error
    "ORA-12154 could not resolve service name error"
    with a normal WinXP SP2 I did not have problems
    Has anyone a solution for my problem?

    Did you ever find a solution? I have the same problem.
    I have tried the Oracle 32 bit and 64 bit client applications. Both were installed in C:\oracle\product... when I tried them. The 32 bit client was 10.1.0.2 and the 64 bit was 10.2.0.1. Both will not allow me to use an ODBC connection in MS Access.
    MS Access is part of Office 2003 and is installed in the C:\Program Files (x86) folder. I even tried installing Access from Office XP in C:\Program Files and had the same results.
    I have tried creating the ODBC connection from Control Panel>Administrative Tools and from C:\Windows\SysWOW64\odbc32.exe. Both would let me connect to Oracle successfully, but when I try to use them in MS Access I get errors. For the 64 bit ODBC driver I get an error that it isn't installed, and for the 32 bit ODBC driver I get an ORA-12154 TNS names error.
    HELP!

  • Sql@loader-704  and ORA-12154: error messages when trying to load data with SQL Loader

    I have a data base with two tables that is used by Apex 4.2. One table has 800,000 records . The other has 7 million records
    The client recently upgraded from Apex 3.2 to Apex 4.2 . We exported/imported the data to the new location with no problems
    The source of the data is an old mainframe system; I needed to make changes to the source data and then load the tables.
    The first time I loaded the data i did it from a command line with SQL loader
    Now when I try to load the data I get this message:
    sql@loader-704 Internal error: ulconnect OCISERVERATTACH
    ORA-12154: tns:could not resolve the connect identifier specified
    I've searched for postings on these error message and they all seem to say that SQL Ldr can't find my TNSNAMES file.
    I am able to  connect and load data with SQL Developer; so SQL developer is able to find the TNSNAMES file
    However SQL Developer will not let me load a file this big
    I have also tried to load the file within Apex  (SQL Workshop/ Utilities) but again, the file is too big.
    So it seems like SQL Loader is the only option
    I did find one post online that said to set an environment variable with the path to the TNSNAMES file, but that didn't work..
    Not sure what else to try or where to look
    thanks

    Hi,
    You must have more than one tnsnames file or multiple installations of oracle. What i suggest you do (as I'm sure will be mentioned in ed's link that you were already pointed at) is the following (* i assume you are on windows?)
    open a command prompt
    set TNS_ADMIN=PATH_TO_DIRECTOT_THAT_CONTAINS_CORRECT_TNSNAMES_FILE (i.e. something like set TNS_ADMIN=c:\oracle\network\admin)
    This will tell oracle use the config files you find here and no others
    then try sqlldr user/pass@db (in the same dos window)
    see if that connects and let us know.
    Cheers,
    Harry
    http://dbaharrison.blogspot.com

  • ORA-12154 Error - NET8 Connection Tester Works Though

    I have copied over a tnsnames.ora file from another machine I know that works fine. It has one Oracle home.
    When I try to connect via SQLPlus or Oracle DBA studio, I get told that it cannot resolve the service name and the ORA-12154 error. However, when I go into Net8 Assistant and test the connection, it work without an issue no matter what login/password I use, from a developers to the system login and password.
    Any ideas?

    I have copied over a tnsnames.ora file from another machine I know that works fine. It has one Oracle home.
    When I try to connect via SQLPlus or Oracle DBA studio, I get told that it cannot resolve the service name and the ORA-12154 error. However, when I go into Net8 Assistant and test the connection, it work without an issue no matter what login/password I use, from a developers to the system login and password.
    Any ideas?

  • TNS Error : ORA-12154 unsing oo4o with VB

    In VB6, using oo4o(Oracle InProc Server),
    whin I run debuging mode with VB6 App, result is successfull.
    But, compile this application, and execute EXE module,
    error occur 'Cannot resolve TNS Name (ORA-12154)'.

    Just make sure that the executable is not started from a directory path containing brackets (e.g. "C:\Program Files (x86)\MyApp\myapp.exe") but copy that executable to a directory path without brackets. The brackets in one of the directies in the path may lead to the Oracle exception "ORA-12154: TNS :could not resolve service name".

Maybe you are looking for

  • Stuck on usb/itunes logo, now what?

    Tried to update my phone, got some errors and now my phone is stuck on that usb/itunes logo screen. Tried to restart, still the same. Connected it on itunes, it doesn't detect it. Also, I tried this on Windows and Mac. This also happened with the pre

  • Class conversion

    Hello, I'm stuck into a very simple thing. I've a class A, and a subclass B. Then I create an object that way: A myObject = new B(); Then, what do I get from B? I mean, do I get B methods? B attributes? Not B methods, but overwritten methods such as

  • I need to remap my keyboard, how do I do it on 10.5?

    I have tried FunctionFlip, Spark, and DoubleCommand, and none of them solved my issue ( I cannot install Flip4MacBook because there is DoubleCommand files hidden somewhere in my system ). The mute button, the volume up button, and the volume down but

  • Opening older .ses and MP2 files in AA 5.5

    Hello All, I was wondering if Adobe has fixed the issue of being able to open older .ses files in the newest AA software.  I am still having issues with trying to open AA 1.5 .ses files in AA 5.5.  Also any word on when they are going to allow openin

  • I made pkgbuilds for Maya 8.5 and 2008 (32 & 64)

    Hello, I made these pkgbuilds for my sister to use on our home machines, but figured someone may find them useful. Of course, this assumes you have the official Maya for Linux CD to copy the RPM's from and a license; it just converts Autodesk's stuff