Error: ORA-01722 while connecting oracle using OCCI

Please help,
I get exception 1722 ORA-01722 Invalid Number while selecting records from oracle database using simple select statement.
I have allready installed oracle 10.2.0.3.0 Patch 13 from oracle.com.
Environment: win2k3 (sp2-32 bit), Oracle 10.2.0.3.0, VC++ 2005 (VC8)
Dump of file vc8test.exe
File Type: EXECUTABLE IMAGE
Image has the following dependencies:
MSVCR80.dll
MSVCP80.dll
oraocci10.dll
KERNEL32.dll
Summary
1000 .data
1000 .rdata
1000 .rsrc
2000 .text

thanx for the reply, here is the source code:
I am unable to connect to oracle, i have tried every possible combination.
i had tested using vc++ 2005 and with vc++ 6.0
The below code is tested on visual c++ 2005 and from oracle 10.2.0 client.
#include <iostream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
class occidml
private:
     Environment *env;
     Connection *conn;
     Statement *stmt;
public:
     occidml(string user, string passwd, string db)
          env=Environment::createEnvironment(Environment::DEFAULT);
          conn=env->createConnection(user,passwd, db);
     ~occidml()
          env->terminateConnection(conn);
          Environment::terminateEnvironment(env);
     void displayAllRows()
               string sqlStmt="select * from tcm_ref_city";
               stmt=conn->createStatement(sqlStmt);
               ResultSet *rset=stmt->executeQuery();
               try{
                    while(rset->next()){
                         cout<< rset->getString(1)<<"\t"<<rset->getInt(2)<<endl;                         
                    }catch(SQLException ex){
                         cout<< "Exception\t"
                              <<ex.getErrorCode()<<"\t"
                              <<ex.getMessage()<<endl;
                         stmt->closeResultSet(rset);
                         conn->terminateStatement(stmt);
     int main(void)
          string usr="stltc";
          string pass="stltc";
          string db="stltc";
          int xx;
          cout<<"hello this is rakesh";
          occidml *demo=new occidml(usr,pass, db);
          demo->displayAllRows();
          cin>>xx;
          /*Environment *env1 ;
          Connection *conn;
          env1=Environment::createEnvironment(Environment::DEFAULT);
          Connection conn=env1->createConnection("STLIUC", "STLIUC","IAD");  /
          return 0;
******************************************************************************

Similar Messages

  • Getting error ORA-12705, while connecting through Sql*Plus?

    Hi TOM,
    While connecting ORACLE Database through Sql*Plus / via through Application. We getting error called "Error while trying to retrieve text for error ORA-12705".
    How to re-solve this one?
    Thanks & Regards,
    Senthil K Kumar.

    Maran,
    check the registry NLS_LANG in the registry rename it as suggested by burleson and add a new entryCurrently, it was more suggested by Maxim ;-)
    Nicolas.

  • Throwing error ORA- 01031 while connecting as sys, but not with system

    Hi
    we are having oracle 10g on one of the server. When I try to connect sqlplus "/as sysdba"..its throwing error
    ORA- 01031: Insufficient privelege.
    But when I tried login with sqlplus system@dbname its getting connected properly. whats the reason behind this? It was
    working fine till yesterday.
    Thanks
    Shiyas M

    The reason for this can partly be seen in your profile,
    you have asked 17 questions, and 17 of them have been unresolved.
    This isn't very likely,
    so likely you are too lazy to label a question as answered.
    Your laziness is also indicated by this question, which is a FAQ, and FAQs are most often asked, by people who
    - don't read documentation
    - don't use online resources
    - don't search this forum
    prior to asking their FAQ.
    Your equation of SYS as SYSDBA and the SYSTEM account is also incorrect, as SYSTEM doesn't have SYSDBA privileges.
    The ORA-1031 simply means someone somehow disabled OS authentication.
    Now it is up to you to find out why.
    Either by using online resources, or by reading documentation, and researching your own database.
    Not by asking a FAQ and never marking any answer as correct.
    Sybrand Bakker
    Senior Oracle DBA

  • Ora-02068 following severe error & ora-03113 while connecting thru DB LINK

    Hi All,
    I am trying to connect to remote Database by using DB Link facing the below error.
    ora-02068 following severe error & ora-03113 end of communication channel.
    Version of Database - 8.0.6 ( source Database)
    Target Database version - 11g ( Target Database)
    Oracle Client s/w used - 9i
    TNSPING from 8 version database to 11g is successful
    C:\Documents and Settings\user>tnsping prdd
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 30-MAY-20
    13 10:40:02
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    D:\oracle9i\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (host =xx.xxx.xxx.xx) (Port = 1631))) (CONNECT_DATA =(SID = PRDD)))
    OK (30 msec)
    Connection successful from 8 to 11 Database remotely
    C:\Documents and Settings\user>sqlplus
    SQL*Plus: Release 9.2.0.1.0 - Production on Thu May 30 10:43:00 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter user-name:username/pwd@prdd
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, Oracle Label Security, OLAP
    Data Mining, Oracle Database Vault and Real Application Testing options
    SQL>
    Connected to:
    Oracle8 Enterprise Edition Release 8.0.6.0.0 - Production
    With the Partitioning and Objects options
    PL/SQL Release 8.0.6.0.0 - Production
    SQL> select * from dual@xxx_dblink.world;
    select * from dual@xxx_dblink.world
    ERROR at line 1:
    ORA-02068: following severe error from xxx_dblink
    ORA-03113: end-of-file on communication channel
    DBLink got created successfully but when ever trying to test the DBlink as above facing the below issue,please help.
    Thanks in advance.

    8.0.6 was desupported a LOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNGGGGGGGGGGGGG time ago
    (you were probably still in your dipers)
    Sqlnet is not compatible for that many releases
    (there has been
    8.1.5
    8.1.6
    8.1.7
    9.0.1
    9.2.0
    10.1.0
    10.2.0
    11.1.0
    11.2.0
    So nine releases.
    This is software, not gasoline.
    Sybrand Bakker
    Senior Oracle DBA

  • Error ORA-03108 While connecting to database on 8.1.6 from Form 6i

    I am getting error while running updates on database running on Oracle 8.1.6. from Form 6i. Both are Oracle latest products and Oracle homes are running Net8 versions shipped with products.
    ORA-03108 oranet: ORACLE does not support this interface version.
    Are there incompatibility problems in Net8 versions shipped with Oracle products?
    null

    Can I get some clarification on following:
    1. When Form runs as WebForm mode, the webform runs as appellet. Does this mean that connectivity shifts from Net8 to JDBC?.
    2. Is there possibility of above error comming because of JDBC connectivity.
    Thanks
    Sanjay Sharma
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sanjay Sharma ([email protected]):
    [Here is further input on the error:
    1. I am not running any database link.
    2. the error is coming only when form is running as WebForm Mode. It is not coming in Client-Server Mode.
    3. The occurance is random. there is no pattern of occurance. The eror might crop-up 5 times in 50 updates. Which is strange???]Originally posted by [email protected]:
    [b]Can you confirm if the problem happens with a simpe DEPT table. Ensure you are not using database links or any other complexities. It should be ok to run against this combonation but you may want to remove any possibilites that your application could be contributing to the error.
    Regards
    Grant Ronald<HR></BLOCKQUOTE>
    null

  • Error: ORA-03113 while executing complex java code from Oracle PL/SQL

    Hi,
    I am trying to execute a complex java code from Oracle PL/SQL. The classes were resolved successfully. But in the middle of execution, I am getting the following error:
    ERROR:
    ORA-03114: not connected to ORACLE
    begin
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 13685
    Session ID: 21 Serial number: 20
    Is there a way to debug the Java classes loaded into oracle? Or is there any utility to find out why the connection was lost?
    Regards,
    Saravana

    Hi Saravana:
    You could use simply System.out.println(..) at your Java code and see the output at the .trc files generated for your Oracle session.
    Or better than this adding Java Util Logging messages at your code, to see how to use JUL API at the OJVM please see this blog post [Using JUL API inside the OJVM|http://marceloochoa.blogspot.com/2007/11/getting-logging-entering-exiting-and.html].
    Best regards, Marcelo.
    PD: ora-0600 generally are associated with RDBMS bugs, but these bugs can be bypassed by replacing the code which throws the exception by other with a workaround.

  • SQLPlus COPY error: ORA-03114: not connected to ORACLE

    This is what I'm trying to do:
    I'm logged into an Oracle 8.1.6 database on a Windows 2000 Professional box and trying to copy data and tables from an Oracle 7.3.4 database on an HP/UX box.
    I log into my 8.1.6 SQLPlus as:
    scott/tiger@testdb
    Then I run the following:
    SQL> set copycommit 1
    SQL> set arraysize 1000
    SQL> copy from user/user1@devp1 -
    create reps_t -
    using -
    select * from reps_tThis is my error:
    ORA-03114: not connected to ORACLE
    Can someone give me a better understand how SQLPlus COPY works and give me an idea how to locate the problems.
    Thanks,
    Laith E.H.
    null

    I think this combination user/user1@devp1
    is not ok.
    U can get good material about copy command
    from technet itself. Just search for Copy

  • Environment creating But Not Connecting  Oracle through  OCCI

    hi Guys,
    Environment creating But Not Connecting Oracle through OCCI in VC++2005 .NET ..... ,Oracle 10G ,
    But Same Code is Working VC++2003 .....
    giving the Following Error......
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    I try to download INSTANTCLIENT new one for VC++2005 that One is Not down loading... therefore the same down instantclient is copied in VC++2005...
    http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    I downloaded abobe URL for VC++8 and copied into that INSTANT client.....
    But still not connecting.....somebody who has done in VC++2005 connection through OCCI... help me step by step Plzzzzzzzzz....
    friends can anybody tell how to connect OCCI .....
    advance thanx ......
    yours LUV

    Hi guys,
    I have the same problem. I've tried using the supplied demo in instantclient sdk but I keep getting this SQLException without a message.
    Any help is welcomed.
    Cheers,
    Sorin

  • Error: ORA-01722: invalid number performing List of Values query.

    when i created a cascading select list, For the first time it worked properly then little later
    it is giving this error.
    Error: ORA-01722: invalid number performing List of Values query: "select distinct cl_name d, cl_no r from Kclient where gr_no = :P1_GRNO order by 1
    could any one please solve the problem?
    2. when i run the application. in all the items edit button is automatically seen
    including in the login screen.
    could any one identify what is the error and give me a solution.

    Is this better?
    select DISTINCT FIRST_NAME||' '||LAST_NAME display_value
          , ROW_ID return_value
      from "PSA_RESOURCE_MANAGER"
    where PSA_RESOURCE_MANAGER.ACTIVE_FLAG='Y'
       AND :P117_REPORTING_MANAGER = PSA_RESOURCE_MANAGER.REPORTING_MANAGER
       AND :P117_REPORTING_MANAGER <> -1 order by 1or
    select DISTINCT FIRST_NAME||' '||LAST_NAME display_value
          , ROW_ID return_value
      from "PSA_RESOURCE_MANAGER"
    where PSA_RESOURCE_MANAGER.ACTIVE_FLAG='Y'
       AND :P117_REPORTING_MANAGER = PSA_RESOURCE_MANAGER.REPORTING_MANAGER
       AND :P117_REPORTING_MANAGER != '-1' order by 1Is ROW_ID a column in your table by the way? If not, you should use ROWID (without the underscore)

  • I keep getting this message An unknown error (-15006) occurred while connecting to the AirPlay device " AirPort Express".

    Please help. I have been having major difficulties with my Airport Express. It used to work fine but for the last year or so it continually disconnects, skips and ultimately drops out and itunes gives me this message "An unknown error (-15006) occurred while connecting to the AirPlay device “AirPort Express”. I keep resetting, unplugging, restarting Itunes, or my computer. It works for a couple of hours and then I get the message again. It's making me nuts and was a bummer at last week's party when we had no music, yet again. I have looked up the support discussions, but there is no answer as to how I can fix it. I am currently using Mt Lion OS. Does this have anything to do with it? Checked for software updates, but nada.
    Any suggestions.

    It may be possible the where you have the AX located may just be in a spot where it does not get a good signal even it is only 8 feet away.
    I suggest that you download and install iStumbler. You will use it to determine the signal quality by making Signal-to-Noise Ratio (SNR) measurements. This will be easiest if your Mac is a laptop ... or you can borrow one. When taking the measurements, you only want your "main" AirPort running as this is what we want to measure at the location of the AX.
    SNR (in dB) = Signal (in dBm) - Noise (in dBm)
    You can easily find the Signal and Noise value using System Profiler on your Mac laptop.
    ref: Click on the Apple icon on the menu bar > About This Mac > More Info... > Contents > Network > AirPort > Interfaces > en1 > Current Network Information > Find your wireless network > Signal / Noise
    While your still in the System Profiler, note the value for Transmit Rate.
    These values should be negative numbers. For example, mine currently read: -67 dBm / -95 dBm, with a transmit rate of 27 (Mbps). Plugging in these numbers yield: SNR = -67 - (-95) = 28. My Mac Mini is about four rooms away from my AEBS with about five walls between them. As you can see, the signal is still quite useable ... but the bandwidth is minimal, especially for streaming.
    SNR Guideline
    40dB+ SNR = Excellent signal
    25dB to 40dB SNR = Very good signal
    15dB to 25dB SNR = Low signal
    10dB to 15dB SNR = Very low signal
    5dB to 10dB SNR = No signal
    Please post back your results.

  • Can't do online banking. Get error message. "The requested URL /Summary.cgi was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I can't do online banking. When I try to open the page I get error "The requested URL /Summary.cgi was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Hi,
    These blog posts might help debug problem
    Oracle APEX: Got a 404 Not Found? | Inside Oracle APEX by Patrick Wolf
    daust_de :: Oracle XE / APEX: Troubleshooting the 404-not found error on XE
    Regards,
    Jari

  • An unknown error (-15006) occurred while connecting to the AirPlay device AirPort Express". How do I solve this?

    An unknown error (-15006) occurred while connecting to the AirPlay device to my AirPort Express”.  Does anyone know how to solve?

    It may be possible the where you have the AX located may just be in a spot where it does not get a good signal even it is only 8 feet away.
    I suggest that you download and install iStumbler. You will use it to determine the signal quality by making Signal-to-Noise Ratio (SNR) measurements. This will be easiest if your Mac is a laptop ... or you can borrow one. When taking the measurements, you only want your "main" AirPort running as this is what we want to measure at the location of the AX.
    SNR (in dB) = Signal (in dBm) - Noise (in dBm)
    You can easily find the Signal and Noise value using System Profiler on your Mac laptop.
    ref: Click on the Apple icon on the menu bar > About This Mac > More Info... > Contents > Network > AirPort > Interfaces > en1 > Current Network Information > Find your wireless network > Signal / Noise
    While your still in the System Profiler, note the value for Transmit Rate.
    These values should be negative numbers. For example, mine currently read: -67 dBm / -95 dBm, with a transmit rate of 27 (Mbps). Plugging in these numbers yield: SNR = -67 - (-95) = 28. My Mac Mini is about four rooms away from my AEBS with about five walls between them. As you can see, the signal is still quite useable ... but the bandwidth is minimal, especially for streaming.
    SNR Guideline
    40dB+ SNR = Excellent signal
    25dB to 40dB SNR = Very good signal
    15dB to 25dB SNR = Low signal
    10dB to 15dB SNR = Very low signal
    5dB to 10dB SNR = No signal
    Please post back your results.

  • An unknown error (-15006) occurred while connecting to the AirPlay device "Living Room Apple TV".

    Hi All, need some advice here, this occurs in iTunes these days never had this prob before Using iTunes Airplay or AppleTv.. It's irritating Me!An unknown
    ,, error (-15006) occurred while connecting to the AirPlay device “Living Room Apple TV”.''''
    Thanks for possible solutions
    BossJoop Imac + 2012, 3e gen Apple tv + all latest software and updates

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Restart your computer.

  • An unknown error (-15006) occurred while connecting to the AirPlay device "Frontera Speakers".

    I have seen several threads that address problems connecting an Airport Express to an existing network. However, I have had no luck with any of the suggestions. I have configured at Airport Express base station as an AirPlay device. The unit shows up as connected in Airport Utility 5.6 and can be selected through iTunes. After several moments of displaying a dialog box indicating a connection to remote speakers the following error is displayed in the finder: An unknown error (-15006) occurred while connecting to the AirPlay device "Speakers" Airport Utility lauches automatically and displays the following error: Make sure your Apple Wi-Fi base station is plugged in and in range of your computer or connected via Ethernet and try again. (-6753)
    I have rebuilt permissions and reset the airport multiple times. At a loss.
    MacBook Pro early 2012 running 10.7.4
    Airport Express Model A1084
    Any help would be appreciated.

    It may be possible the where you have the AX located may just be in a spot where it does not get a good signal even it is only 8 feet away.
    I suggest that you download and install iStumbler. You will use it to determine the signal quality by making Signal-to-Noise Ratio (SNR) measurements. This will be easiest if your Mac is a laptop ... or you can borrow one. When taking the measurements, you only want your "main" AirPort running as this is what we want to measure at the location of the AX.
    SNR (in dB) = Signal (in dBm) - Noise (in dBm)
    You can easily find the Signal and Noise value using System Profiler on your Mac laptop.
    ref: Click on the Apple icon on the menu bar > About This Mac > More Info... > Contents > Network > AirPort > Interfaces > en1 > Current Network Information > Find your wireless network > Signal / Noise
    While your still in the System Profiler, note the value for Transmit Rate.
    These values should be negative numbers. For example, mine currently read: -67 dBm / -95 dBm, with a transmit rate of 27 (Mbps). Plugging in these numbers yield: SNR = -67 - (-95) = 28. My Mac Mini is about four rooms away from my AEBS with about five walls between them. As you can see, the signal is still quite useable ... but the bandwidth is minimal, especially for streaming.
    SNR Guideline
    40dB+ SNR = Excellent signal
    25dB to 40dB SNR = Very good signal
    15dB to 25dB SNR = Low signal
    10dB to 15dB SNR = Very low signal
    5dB to 10dB SNR = No signal
    Please post back your results.

  • Airport Express and iTunes give error: 'An unknown error (-15006) occurred while connecting to the AirPlay device'

    Hi guys & girls,
    Yesterday I bought an Airport Express 802.11n (1st generation); solely for the purpose of listening to my music without connecting any cables to my speakers.
    I've done the set-up (i.e. linked the AE to my existing network without any Ethernet) and connected the AE to my speakers, and the light turns green. However, when I try to make a connection in iTunes to the base station, I get the following error: 'An unknown error (-15006) occurred while connecting to the AirPlay device “Base Station 5bf269”.'
    I'm quite a noob with computers and the technical aspects, however, I normally get around by googling and trying out some things. I've tried the following things already:
    - Downloaded Airport Utility 5.6 to change the IPv6 to Host (Configuration is set on automatic)
    - Firmware update for the Airport Express to 7.6.1
    My iTunes version is 10.6.3, am using MacBook Pro Mac OS X 10.7.4. I really have no clue what could be wrong and how to fix this. I'm only sitting 2 meters away from the AE so it cannot be about the range. Can someone help me please?
    Thanks!!

    No more need for an answer... the problem has been solved!

Maybe you are looking for

  • Iam unable to send multiple attachments with a mail using JavaMail?

    Hai to all, Iam unable to send multiple attachments with a email,see iam have succeeded in sending one attachment with a email. when iam tring to add two or more attachments to a mail, it is giving a Exception like this: javax.mail.MessagingException

  • TNS-12535 Error on Windows with Norton Worm Protection

    Hope this mail can help another users installing oracle 10G with Windows and Norton Antivirus with Internet Worm protection enabled; having the error TNS-12535 I try to install Oracle 10G v1 and v2 on Windows XP SP2 with Internet Worm Protection enab

  • Wiki & Web Server 503 Service Unavailable

    Just installed Lion Server, and started up Web Server and Wiki They both come back with a 503: Service Unavailable. Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity probl

  • Final Cut Crashes MacBook Pro

    I have repeatedly tried to export a project I just created to a DVD, and each time my 2009 MacBook Pro 17 inch reboots because of a problem that occured.  It also randomly does this when editing videos occasionally as well.  Is anyone else experienci

  • IDENTIFYING A CLIENT CONNECTION

    제품 : ORACLE SERVER 작성날짜 : 1997-02-10 IDENTIFYING A CLIENT CONNECTION IF ALL CLIENTS ARE CONNECTING WITH THE SAME ORACLE USERNAME Solution Description: ===================== Use a SQL Query like this: Select All SYS.V_$SESSION.OSUSER, SYS.V_$SESSION.U