TNS and ODBC via ADO

Hallo ,
I'm trying to connect with VB 6.0 SP3 and SP4 on NT4.0/Win98 to an Oracle 8.1.5 on NT4.0 using client of 7.3.4 and 8.1.5 via TCP/IP.
Establishing a connection is normally no problem. But after some transactions the connection is lost. The following errors occur:
Fatal OSN connect error 12203, connecting to:
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle80)(ARGV0=oracle80ORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=ORCL)(CID=(PR OGRAM=VB6.EXE)(HOST=BENNE_MOB)(USER=benne))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 2.3.4.0.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 2.3.4.0.0 - Production
Time: 14-FEB-01 21:07:13
Tracing not turned on.
Tns error struct:
nr err code: 12203
TNS-12203: TNS: Ziel nicht erreichbar
ns main err code: 12560
TNS-12560: TNS: Protokolladapterfehler
ns secondary err code: 0
nt main err code: 102
TNS-00102: Fehler beim Zusammenstellen der Schl|sselwort/Wert-Paare
nt secondary err code: 0
nt OS err code: 0
Remember i tried to connect through TCP/IP and the error message is created by BEQ-protocol?! Thats the first thing. This happens which kind of connection I ever use (ODBC with DSN and without; MS or Oracle Driver; OLE DB).
I think the problem is in the listener of the server or a client parameter for the connection (if I run the programm on the server the error are not there).
Please help.
Thanks.
null

The Net8 Administrator's Guide has a chapter on Troubleshooting that walks through different ways to resolve the particular errors you're encountering.
It does appear that your problem may be with the server, so I'd double-check that the listner process isn't dying before I started trying to debug the client.
Justin

Similar Messages

  • Can we purge cache Via nqcmd and ODBC functions?

    Hi All,
    Can we purge cache Via nqcmd and ODBC functions?
    Is this possible if YES then how to go about it?
    Regards,
    Apoorv

    ODBC-extension functions for purging cache:
    http://download.oracle.com/docs/cd/E12103_01/books/admintool/admintool_QueryCaching6.html
    Regards
    Goran
    http://108obiee.blogspot.com

  • VARRAY retrieval from MS Visual C++ via ADO

    CREATE TYPE ENAMELIST AS VARRAY(20) OF VARCHAR2(30);
    CREATE TABLE department (
    dept_id NUMBER(2),
    ENAMES ENAMELIST);
    First, can a VARRAY data type be passed as a parameter in a stored procedure call ?
    Second, need C++ code sample of retreiving the VARRAY parameter from the stored procedure via ADO.
    Thank you for any asistance.

    Generally, it's the same way you'd handle a resultset from a standard statement. If you're executing something like:
    select * from emp
    now, you'd just replace it with
    {call getEmp()}
    assuming that getEmp is defined in the database as
    create procedure getEmp( employees OUT REF CURSOR )
    The Oracle ODBC driver is smart enough to notice that you have an OUT REF CURSOR and map that to a resultset without you having to bind anything.
    Justin

  • VARRAY retreival from MS Visual C++ via ADO

    CREATE TYPE ENAMELIST AS VARRAY(20) OF VARCHAR2(30);
    CREATE TABLE department (
    dept_id NUMBER(2),
    ENAMES ENAMELIST);
    First, can a VARRAY data type be passed as a parameter in a stored procedure call ?
    Second, need C++ code sample of retreiving the VARRAY parameter from the stored procedure via ADO.
    Thank you for any asistance.

    Generally, it's the same way you'd handle a resultset from a standard statement. If you're executing something like:
    select * from emp
    now, you'd just replace it with
    {call getEmp()}
    assuming that getEmp is defined in the database as
    create procedure getEmp( employees OUT REF CURSOR )
    The Oracle ODBC driver is smart enough to notice that you have an OUT REF CURSOR and map that to a resultset without you having to bind anything.
    Justin

  • Oracle9i with ASP and ODBC

    i am working in a web project with ASP connecting to Oacle 9i installed on windows 2000, Pentium 4 processor on an NTFS partition.
    After installing oracle 9i, to create a new user, i was unable to logon to oracle as SYSDBA using username: system , password: manager
    having an error massage stating "ORA-01031:insufficient privileges"
    i was only able to connect as Normal
    although i set full control NTFS permissions to the whole partition.
    after creating the new user (from system, manager as normal) and giving the new user ROLES as (DBA, Connect, Resource)
    i tried to connect to oracle using ASP with ADO but the
    connection failed although i tried using Visual basic and ODBC and it worked
    so the problem now is that i can't connect to oracle in ASP
    can anyone help me?

    I'm having a bit of difficulty understanding exactly what you're saying here, so I apologize if I misunderstand...
    Are you trying to use ASP to connect to the database with the SYSDBA privilege, or are you trying to use ASP to connect to the database with a normal user? I believe you are trying to do the latter, that it is working in VB, but not in ASP. Are you getting an error when you connect via an ASP page? What error are you getting?
    Frequently, the problem is that the IIS user(s) don't have read/execute access to the %ORACLE_HOME% directory and subdirectories. I am not sure if you're indicating that you granted yourself full access or the IIS user full access to the partition.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Get SQL Server default data path via ADO/C++?

    Hi,
    I am trying to get the SQL Server default data path via ADO/Visual C++.
    I find the SQL statements that will do that in
    http://stackoverflow.com/questions/1883071/how-do-i-find-the-data-directory-for-a-sql-server-instance/12756990#12756990
    So I just concat all the statements above into a CString object strStatements, then try to open a recordset as follows:
    _RecordsetPtr m_pRecordset;
    m_pRecordset.CreateInstance(__uuidof(Recordset));
    m_pRecordset->Open(_bstrt(strStatements), _variant_t((IDispath *)m_pConnection, true), adOpenDymanic, adLockOptimistic, 0);
    m_pRecordset->MoveFirst(); 
    The last MoveFirst statement will cause com_error, which said
    “ADODB.Recordset error '800a0e78'
    Operation is not allowed when the object is closed.
    It seems that there are no data in the recordset at all. What is the problem?
    Thanks

    Hello,
    Which query statement did you used to get the database data and log file path? Can you get the result by run the query directly with SQL Server Management Studio? For example,  
    SELECT SUBSTRING(physical_name, 1, CHARINDEX(N'master.mdf', LOWER(physical_name)) - 1)
    FROM master.sys.master_files
    WHERE database_id = 1 AND file_id = 1
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Forms and ODBC

    Hello,
    I'm trying to use Forms on a non Oracle database using an ODBC driver. I've install OCA and create a DSN for my database but i'm unable to connect !
    In the "Forms and OCA to access ODBC data sources" documentation they say we must use an Oracle TNS Alias : ODBC:DataSourceName[:DatabaseName].
    Does it means we must declare the database in the tnsnames.ora or may we use directly the user/password@ODBC:DataSourceName:DatabaseName connection string ?
    If we must declare something in the tnsnames.ora, is there an example somewhere ?
    Thanks for any precious help.
    Michel COTE.

    you don't need to define anything in the tnsnames.ora

  • Problems installing instant client and ODBC

    I am trying to install the instant client and ODBC drivers on an XP machine so I can connect to an OracleXE database via ODBC for an application to use.
    I have unzipped the instant client and ODBC drivers to c:\Oracle and added an entry to the PATH statement.
    When I attempt to add an ODBC connection I get the error "The Oracle client and network components were not found. The components are supplied by Oracle Corporation and are part of the Oracle version 7.3 or greater client software installation. You will be unable to use this driver until these components have been installed"
    Am I missing something in the configuration?
    All help appreciated.

    did you set your ORACLE_HOME=c:\ORACLE and run the odbc_install.exe?

  • HT4623 why does my ipad kick me out of FB and sometimes to the 'settings' page or sometimes to the desk top, for what reason?     I have 50.8 GB of capacity available; it is version 5.1.1 and model MC497LL.   it is WIFI and internet via AT&T???  Can you h

    Can anyone help me?  Why does my ipad kick me out of FB?  Sometimes to the 'settings' page and sometimes to the desk top?  I would like to know why this happens and what I can check or change to make it stop.   I have 50.8 GB of capacity available; it is version IOS 5.1.1; model MC497LL.  It is WIFI and internet via AT&T?   Can anyone give me some clues on what to do; or change in settings???  Thank you very much! 

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • JAN 4, 2012  As of the  Upgrade to   Lion,. and the  Email portion, ..   DOES NOT  allow a Video Clip to be sent via the Email  as the I-Photo is not supported by Video Clips  ( Previous Leopard  No problem  clip and drag  via Quick Time Pro to the email

    JAN 4, 2012 
    As of the  Upgrade to   Lion,.   2007  I-Mac  -   the  Email portion, ..   DOES NOT    allow a Video Clips to be sent via the Email 
    as the I-Photo is not supported by Video Clips  ( Previous Leopard ) 
    No problem  clip and drag  via Quick Time Pro to the email  and select the  Attchment  size to send. .  Depending on the 
    Size of the Video Clip  ..      Now  Lion only  Export's   1 size, .   only  and as a result . . teh  File is  TOO  Large and
    Will NOT  send via  E-Mail    ??? 
    Between the   Issue of   the   Lion,  and  Email  issues ,   and  the   Upgrade  of   I-Touch  to  5.1  from  4.2.1 
    as my  Photo  Size is  Huge ..    70,000  +  photos in the  Computer. .   and was   40,000  in the   I - Touch  .. .  
    The  New I-Touch  too will not Load the  same  as Previously  used  on  either  my  16 GB   or  32 GB   Unit . . 
              No Help . ..   so far, ..  as a Apple user   since   1996 ..    I  have Never  experieanced such  frustration    ??? 
                   (  any one have some help  if similar  experiances    ?     thank you     )

    JAN 4, 2012 
    As of the  Upgrade to   Lion,.   2007  I-Mac  -   the  Email portion, ..   DOES NOT    allow a Video Clips to be sent via the Email 
    as the I-Photo is not supported by Video Clips  ( Previous Leopard ) 
    No problem  clip and drag  via Quick Time Pro to the email  and select the  Attchment  size to send. .  Depending on the 
    Size of the Video Clip  ..      Now  Lion only  Export's   1 size, .   only  and as a result . . teh  File is  TOO  Large and
    Will NOT  send via  E-Mail    ??? 
    Between the   Issue of   the   Lion,  and  Email  issues ,   and  the   Upgrade  of   I-Touch  to  5.1  from  4.2.1 
    as my  Photo  Size is  Huge ..    70,000  +  photos in the  Computer. .   and was   40,000  in the   I - Touch  .. .  
    The  New I-Touch  too will not Load the  same  as Previously  used  on  either  my  16 GB   or  32 GB   Unit . . 
              No Help . ..   so far, ..  as a Apple user   since   1996 ..    I  have Never  experieanced such  frustration    ??? 
                   (  any one have some help  if similar  experiances    ?     thank you     )

  • Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer?

    Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer? Whether it's free or cost money, can someone please give me a name of a program or software that allows me to do this? I can't seem to find anything like this for the iPhone.

    No.

  • I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer w

    I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer working and although upload completes, the URL takes you to a "Forbidden - do not have permission to read this file" page. Lightroom is changing the permissions of each file to 000 instead of 644 for index files and 755 for all others. How can I change the permissions settings in Lightroom?

    I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer working and although upload completes, the URL takes you to a "Forbidden - do not have permission to read this file" page. Lightroom is changing the permissions of each file to 000 instead of 644 for index files and 755 for all others. How can I change the permissions settings in Lightroom?

  • HT1311 I know this is a basic question, however, how do i change my pass word on itunes to stop my kids from automatically buying tunes from the I store... as my card details are already saved they just log in with their ipods and download via my account

    I know this is a basic question, however, how do i change my pass word on itunes to stop my kids from automatically buying tunes from the I store... as my card details are already saved they just log in with their ipods and download via my account

    http://support.apple.com/kb/HE36
    Regards.

  • Apple Mail and GoogleMail via IMAP

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    _*Apple Mail and GoogleMail via IMAP*_
    As posts concerning the setup of Apple Mail for GoogleMail IMAP access become more frequent on Apple Discussions, I decided to collect some of the most asked-for info in one place. The following hints are intended to provide enough info for anyone who wants to get started with Google Mail IMAP and Mail.app.
    As you might have noticed already, GoogleMail behaves differently from other IMAP accounts in some respects. One of the underlying reasons is its use of labels instead of folders (i.e. instead of moving messages to different folders – like e.g. Private and Work – in order to establish some order, rather there are labels tagged to the messages). Because of this a particular setup of Apple’s Mail client is required.
    *Activating IMAP for Google Mail*
    If you haven’t activated access via IMAP for Google Mail already, follow the instructions given by Google [here|http://mail.google.com/support/bin/answer.py?answer=77695&topic=13294]. It boils down to this:
    1) Sign in to Gmail.
    2) Click "Settings" at the top of any Gmail page,
    3) click "Forwarding and POP/IMAP",
    4) select "Enable IMAP".
    5) Click "Save Changes".
    *Creating a new account in Apple Mail*
    To add a Google Mail IMAP account in Mail.app, go to File > Add Account. A wizard will open which prompts you to insert your Name, the eMail-address of the new account and the password. Don’t use the option for automatic configuration if it’s available. Info on what to type into the different fields can be obtained from Google [here|http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814]. The most important are:
    1) Incoming Server: imap.gmail.com, port 993 (using SSL)
    2) Outgoing Server: smtp.gmail.com, port 465 or 587 (using SSL)
    3) Your account name is your full email address including "@gmail.com" (without the quotation marks)
    *Configuring the Google Mail account in Apple Mail*
    After you have added your Google Mail IMAP account to Mail.app, you’ll find a section for Google Mail in Mail.app’s sidebar with subfolders like "All Mail" (which has in turn several subfolders) and folders for each label you created with GoogleMail. Now you have to configure the account properly. Despite what [Google recommends|http://mail.google.com/support/bin/answer.py?answer=78892&topic=1281 4], I found the following settings to work best for me.
    In the sidebar, navigate to the subfolders Trash/Sent/Drafts/Junk of "Google Mail" (the one with the white folder icon instead of a blue one) in turn and go to "Mailbox" menu > "Use this mailbox for..." > Trash/Sent/Drafts/Junk respectively. Afterwards these folders show up as subfolders to the main Trash/Sent/Drafts/Junk folders in the sidebar (and at the same time disappear from the GMail section). Among others this step is necessary because of Google Mail’s implementation of labels. E.g., as Google states [here|http://mail.google.com/support/bin/answer.py?answer=78892&topic=12814]:
    Messages that are deleted from an IMAP folder (...) only have that label removed and still exist in All Mail
    So if you want to delete a message you have to set the option to "Use this mailbox for… Trash" as described above. Same applies to sent messages etc.
    Furthermore, make sure every checkbox in Mail's Preferences > Accounts > GoogleMail > Behavior is checked . (Some will already and automatically be checked when you apply the option "Use this mailbox for..." as described above).
    *Some basic troubleshooting tips*
    1) If your counter for unread messages in Mail.app doesn’t refresh properly, go to "Mailbox" menu > "Sync all accounts".
    2) If you have set up a Smart Mailbox in Mail e.g. for unread messages and every unread message of Google Mail shows up twice, then add the criterion "Message is not in mailbox" > "All Mail", and set the requirement for messages to comply with ALL conditions (instead of ANY). This is necessary because of every message there is a copy stored in All Mail.
    I hope these info will be regarded as helpful by anyone who tries to get started with Google Mail and experiences some problems on the way.
    The links given were accessible as of September, 3rd, 2008. The setup was tested on a MacBook with OS X 10.5.4 Leopard and Mail 3.4 (928/928.1).
    Good computing.
    floba
    (Note: the above given hints are personal suggestions and I don’t assume liability for any disorders that might occur after applying the described steps.)
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    _*Apple Mail and GoogleMail via IMAP*_
    As posts concerning the setup of Apple Mail for GoogleMail IMAP access become more frequent on Apple Discussions, I decided to collect some of the most asked-for info in one place. The following hints are intended to provide enough info for anyone who wants to get started with Google Mail IMAP and Mail.app.
    As you might have noticed already, GoogleMail behaves differently from other IMAP accounts in some respects. One of the underlying reasons is its use of labels instead of folders (i.e. instead of moving messages to different folders – like e.g. Private and Work – in order to establish some order, rather there are labels tagged to the messages). Because of this a particular setup of Apple’s Mail client is required.
    *Activating IMAP for Google Mail*
    If you haven’t activated access via IMAP for Google Mail already, follow the instructions given by Google [here|http://mail.google.com/support/bin/answer.py?answer=77695&topic=13294]. It boils down to this:
    1) Sign in to Gmail.
    2) Click "Settings" at the top of any Gmail page,
    3) click "Forwarding and POP/IMAP",
    4) select "Enable IMAP".
    5) Click "Save Changes".
    *Creating a new account in Apple Mail*
    To add a Google Mail IMAP account in Mail.app, go to File > Add Account. A wizard will open which prompts you to insert your Name, the eMail-address of the new account and the password. Don’t use the option for automatic configuration if it’s available. Info on what to type into the different fields can be obtained from Google [here|http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814]. The most important are:
    1) Incoming Server: imap.gmail.com, port 993 (using SSL)
    2) Outgoing Server: smtp.gmail.com, port 465 or 587 (using SSL)
    3) Your account name is your full email address including "@gmail.com" (without the quotation marks)
    *Configuring the Google Mail account in Apple Mail*
    After you have added your Google Mail IMAP account to Mail.app, you’ll find a section for Google Mail in Mail.app’s sidebar with subfolders like "All Mail" (which has in turn several subfolders) and folders for each label you created with GoogleMail. Now you have to configure the account properly. Despite what [Google recommends|http://mail.google.com/support/bin/answer.py?answer=78892&topic=1281 4], I found the following settings to work best for me.
    In the sidebar, navigate to the subfolders Trash/Sent/Drafts/Junk of "Google Mail" (the one with the white folder icon instead of a blue one) in turn and go to "Mailbox" menu > "Use this mailbox for..." > Trash/Sent/Drafts/Junk respectively. Afterwards these folders show up as subfolders to the main Trash/Sent/Drafts/Junk folders in the sidebar (and at the same time disappear from the GMail section). Among others this step is necessary because of Google Mail’s implementation of labels. E.g., as Google states [here|http://mail.google.com/support/bin/answer.py?answer=78892&topic=12814]:
    Messages that are deleted from an IMAP folder (...) only have that label removed and still exist in All Mail
    So if you want to delete a message you have to set the option to "Use this mailbox for… Trash" as described above. Same applies to sent messages etc.
    Furthermore, make sure every checkbox in Mail's Preferences > Accounts > GoogleMail > Behavior is checked . (Some will already and automatically be checked when you apply the option "Use this mailbox for..." as described above).
    *Some basic troubleshooting tips*
    1) If your counter for unread messages in Mail.app doesn’t refresh properly, go to "Mailbox" menu > "Sync all accounts".
    2) If you have set up a Smart Mailbox in Mail e.g. for unread messages and every unread message of Google Mail shows up twice, then add the criterion "Message is not in mailbox" > "All Mail", and set the requirement for messages to comply with ALL conditions (instead of ANY). This is necessary because of every message there is a copy stored in All Mail.
    I hope these info will be regarded as helpful by anyone who tries to get started with Google Mail and experiences some problems on the way.
    The links given were accessible as of September, 3rd, 2008. The setup was tested on a MacBook with OS X 10.5.4 Leopard and Mail 3.4 (928/928.1).
    Good computing.
    floba
    (Note: the above given hints are personal suggestions and I don’t assume liability for any disorders that might occur after applying the described steps.)
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • Can i back up one G5 via firewire and another via USB to the same drive

    I have an ibook and a G5., I have a 500 gb lacie external drive.
    Can i back up both via time machine simultaneously, one via firewire and one via USB?

    Ross Dehovitz1 wrote:
    I have an ibook and a G5., I have a 500 gb lacie external drive.
    Can i back up both via time machine simultaneously, one via firewire and one via USB?
    No, you can not directly attach one drive to two computers at the same time, period. In particular, you can't use it for Time machine this way.

Maybe you are looking for