Problems connecting databases

Hi gurus,
I having a very documented problem but can't resolved by myself. I need a bit of help.
I have two databases in my laptop, both 11.2.0.1 running in windows 7 (i know that it was unsupported yet but this is not the problem).
Now i want duplicate ORIGINAL to COPY database with rman but i'm having:
RMAN-04006: error from auxiliary database: ORA-12505: TNS:listener does not currently know of SID given in connect
Both databases are running and working well, i can connect in different windows:
set ORACLE_SID=ORIGINAL
sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Jue Ago 2 11:02:47 2012
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Conectado a:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$database;
NAME
ORIGINAL
in other window:
set ORACLE_SID=COPY
sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Jue Ago 2 11:02:47 2012
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Conectado a:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$database;
NAME
COPYso i check the tnsnames:
# tnsnames.ora Network Configuration File: C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
COPY=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = copy)
ORIGINAL=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ORIGINAL)
ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
LISTENER_COPY =
  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
LISTENER_ORIGINAL =
  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))All shows normal so check listener services:
C:\Users\my_user>lsnrctl services;
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 02-AGO-2012 11:30
:28
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
Conectßndose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Resumen de Servicios...
El servicio "CLRExtProc" tiene 1 instancia(s).
  La instancia "CLRExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este
servicio...
    Manejador(es):
      "DEDICATED" establecido:0 rechazado:0
         LOCAL SERVER
El servicio "DDBBXDB" tiene 1 instancia(s).
  La instancia "original", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
      "D000" establecidos:0 rechazados:0 actuales:0 mßximo:1022 estado:ready
         DISPATCHER <machine: MY_USER, pid: 4356>
         (ADDRESS=(PROTOCOL=tcp)(HOST=MY_USER)(PORT=54428))
El servicio "original" tiene 1 instancia(s).
  La instancia "original", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
      "DEDICATED" establecido:0 rechazado:0 estado:ready
         LOCAL SERVER
El comando ha terminado correctamenteListener.ora
# listener.ora Network Configuration File: C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\Users\my_user\miBBDDand sqlnet.ora
# sqlnet.ora Network Configuration File: C:\Users\my_user\miBBDD\product\11.2.0\dbhome_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)I don't know why and how to resolve it, so any idea will be apreciated.
Thanks,

I have two databases in my laptop, both 11.2.0.1 running in windows 7 (i know that it was unsupported yet but this is not the problem).+
how could not be problem , please describe to us this sentence ?
It is recommended to run the duplicate database from the Auxiliary database only.
Please run the RMAN duplicate from auxiliary database only.
OR
Make a static entry of the service used in the service name to connect to the auxiliary database.
Back to
RMAN-04006 And ORA-12514 During RMAN Duplicate [ID 883490.1]

Similar Messages

  • Problem connecting DataBase Link from windows oracle to oracle on Linux

    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?

    1005745 wrote:
    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server.

  • No start instance Java (problem connection database DB2)

    Hi, I have problem with start instance Java, problem connectio database.
    S.O: Solaris
    Database: DB2
    show log db2:
    ADM7519W  DB2 could not allocate an agent.  The SQLCODE is "-1225".
    show log directory work:
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:365)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:130)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.<init>(Persistence
    Handler.java:38)
            at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init>(ConfigurationCache.java:149)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
            at com.sap.engine.bootstrap.Synchronizer.<init>(Synchronizer.java:74)
            at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:474)
            at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:147)
            at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:946)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:331)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Caused by: com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-10003, SQLSTATE=57011, SQLERRMC=null, DRIVER=3.59.81
    [Bootstrap module]> Problem occurred while performing synchronization.
    Help please.

    Hey Eli,
    It looks like a memory issue. It would be good if you could provide more lines from db2diag.log file.
    Please make sure that DB2 configuration complies with the default suggested. Below link would help you understand better.
    http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.qb.server.doc/doc/t0008238.html
    More over set the ulimit for virtual memory and maximum memory size to unlimited in order to maximize the use of your current physical memory, after that restart DB2.
    Please let us know if issue gets resolved.
    Cheers!!!
    Vishi Rajvanshi

  • SQL Developer Problem: Connect Database Windows Wont Show

    Hi,
    I have Windows Vista Home Basic and I have installed Oracle XE 10g which works great. However, I need to install SQL Developer too but it wont work. I think it may be a compatibility issue, or else some problem with Java. The thing is that no matter how hard I've tried I couldn't beat all the problems I had with the interface. First of all, when I try to make a new Database connection, the option window won't show. Second, when I enter in Preferences, I cannot choose anything but the general option. Also, I don't know where is the connection window.
    I would appreciate all the help you can provide. Trying to start with my school project....
    Have a nice day. Thanks in advance.
    Mikywan.
    P.S.: Sorry about my english.

    I add these lines at <sqldeveloper>\ide\bin\ide.conf and worked.
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US

  • Problems connecting Database by THIN-Driver

    Hi,
    I can4t connect to the database by the thin-driver. Only the oci8-driver works!
    Where do I fail?
    oci8-syntax is: jdbc:oracle:oci8:@ICCM","login","password"
    thin-syntax is:
    jdbc:oracle:thin:@host:port:sid","login","password"
    What means "host" in the thins-syntax? The IP-Address or what else???
    Any help would be appreciated.
    Thanks
    Bernd
    null

    the host means the ipadress of the server, in number (and this point I'm not sure, if a name server also startet (either on ur local network or via internet, ur can also type the chracter hostname) try both
    good luck
    Andre
    now I have a similar question with tomcat: by trying connecting via tomcat and jdbc thin driver(I'm sure the oracle driver is in the class path, I got a error setting DBURL
    no suitbel driver exception.
    my string is
    <form name="loginform" action="http://localhost:8080/Result.jsp" method="post">
    <input type="hidden" name="loginresult" value ="
    <member:loginmember
    dblogin = "system"
    dbpassword = "manager"
    dburl = "jdbc:oracle:thin:@the ip adress:1521:databaseid"
    dbclass = "oracle.jdbc.driver.OracleDriver"
    dbsqlquery = '<%=sSQL %>'
    dbstoredproc = "0"
    dbshowresults = "0"
    dbdebugmode = "0" />
    ">
    any help to me will also be aprriciated
    Andre

  • Problem connecting database

    after some time my system show message ('Oracle Shutdown or intializaion is in progress'
    is there is any solution for this problem because i have to install new windows to rectify this problem so kindly help me out
    regards

    zahid wrote:
    after some time my system show message ('Oracle Shutdown or intializaion is in progress'
    is there is any solution for this problem because i have to install new windows to rectify this problem so kindly help me out
    regardswhat is your oracle version and operation system?
    'Oracle Shutdown or intializaion is in progress' the message comes when startup oracle and post your error message from alert log file also.
    sqlplus
    / as sysdba
    shutdown abort
    startup
    Edited by: rajeysh on Aug 7, 2010 12:03 PM

  • Problem connecting Oracle 9i Lite to Oracle 9i Database

    Hi,
    I have just started working with Oracle 9i Lite and I am having
    problems connecting to an Oracle 9i (9.0.1) database using the
    packaging wizard. I can connect ok using SQL*Plus but when I connect
    using this wizard the database is located i.e. no errors arise, but
    the database schemas and tables are not found i.e. list is not
    popluated.
    However if I try to connect to an Oracle 8i (8.1.7) database there is
    no problem and the schemas and tables are found with the list being
    popluated.
    Does anyone know what the problem could be?
    Regards
    Andrew.

    I am having a similar problem, where I couldn't connect to Oracle 8i database (817). I am getting a error message when I tried to use Packaging Wizard -> Snapshot -> Import -> Username/password and jdbc:oracle:oci8:@connect string or jdbc:oracle:thin:@host:1521:Sid
    The error message is 'No Suitable Driver. Make Sure the Proper JDBC drive for "jdbc:oracle:oci8i:@<connect string>" is in the classpath"
    I would appricated if someone can send me any help on this.
    My email address is [email protected]
    Thanks
    Joshua

  • Problem to connect database from Developer 6i

    I have downloaded Developer 6i from oracle.com
    before that, I have already downloaded 9i database default_home directory is c:\orant.
    while i was installing develper 6i it was installed with forms_home, c:\orant\forms.
    I was using the forms builder to design forms but while i was trying to connect to database it is saying that "Unable to Connect to Destination"
    i was using scott/tiger.
    this time i have tried scott/tiger@rkmurari...(rkmurari is SID and Database name).
    Can anybody help me in solving this problem..
    Thank you very much..

    I have a problem to connect database from developer 6i

  • Problem connecting to database within an application

    We are running an application that utilizes SQL Server 2008 Standard, and has client software running on Windows 7 64-bit systems. Users access the database via the client software. There have been reported problems connecting to the database. Users can
    launch the client application, but when they go to a part of the application that connects to the database, they encounter the following error:
    Could not connect to configured database.
    Datasource name: ClinicDB
    Database: RayStationClinicDB_25189T
    Connection string: Data
    Source: 172.17.154.23\RAYTEST1,53326;Initial
    Catalog=RayStationClinicDB_25189T;Integrated
    Security=True;Persist Security Info=False;Network
    Library=dbmssocn
    Reason: Cannot open database "RayStationClinicDB_25189T"
    requested by the login. The login failed.
    Login failed for user '<DOMAIN>\<username>'.
    I have connected to the server via remote desktop, and have been able to access the database via the SQL Studio. The connection that I made is to the mghrostortest\RAYTEST1 database, and I have logged in via the sa account.   I have stopped and
    restarted the Database and the SQL Agent on the mghrostortest server.
    Does anyone have any ideas as to what further steps I should take here?

    Hello,
    To create a login using Windows Authentication, please refer to the following article:
    -- Create a login for SQL Server by specifying a server name and a Windows domain account name.
    CREATE LOGIN [<domainName>\<loginName>] FROM WINDOWS;
    GO
    For detail information, please see:
    http://technet.microsoft.com/en-us/library/aa337562.aspx
    Regards,
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • Problem with database connectivity

    Hi guys,
    I'm having a problem with database connectivity . I'm using the mySQL database & org.gjt.mm.mysql driver.
    I've kept the org folder under the directory where the Database.java program is residing .
    My program is as follows:
    import java.sql.*;
    public class Database
         Connection con;
         public void connect()
              System.out.println("In connect.");
         public Connection connectDB(String username,String password,String database)
              try
                   Class.forName("org.gjt.mm.mysql.jdbc.Driver");
                   String url="jdbc:mysql:"+database;
                   con=DriverManager.getConnection(url,username,password);
              catch(SQLException e)
                   System.out.println("SQL Exception caught:"+e);     
              catch(Exception e)
                   System.out.println("Exception e caught:"+e);     
              return con;
         public static void main(String args[])
              try
              Connection c;
              Database db=new Database();
              c=db.connectDB("root","","//192.168.0.2/squid");
              System.out.println("Connection created.");
              c.close();
              catch(Exception e)
                   System.out.println("Exception caught:"+e);     
    It gets compiled but gives the following error when run.
    Exception e caught:java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc.Driver
    Connection created.
    Exception caught:java.lang.NullPointerException
    I don't know why the class is not found.Pl . help me rectify my mistake.Is there any other path to be set?
    Thanks.

    You need to run it with the JDBC driver in the classpath
    java -classpath .;[mySqlJdbcDriver.jar] Database

  • After Installing Application Server - Problem connecting to my Databases

    I have 10g installed on my Windows server, and have no problems connecting to my database(s). After I install Application Server 10g, I am no longer able to connect to any of them, as if the TNSNAMES.ORA file is no longer configured correctly. I am training myself on these applications. Anyone have any suggestions what is happening behind the scenes?
    Thank you,
    Daniel Nadler

    After deploying a jsf application via the web interface of the application server enterprise manager I tried to connect to the 10g database - and it failed with the same error as yesterday?
    I really don't unterstand what is going on. I would really appreciate it if someone could point me out where to start digging for a solution / unterstanding of the problem.
    Quoting this thread (installing db on same server as AS): 10gAS and Database Server on the same machine
    >
    Yes, you can do this. Here are some guidelines:
    (1) Make sure your system requirements are sufficient to handle the application server and the database. The recommendation is to add the AS system requirements and the DB system requirements together.
    (2) Install each product into its own Oracle home. For example:
    - Oracle Home 1: AS Mid-tier
    - Oracle Home 2: AS Infrastructure (including Metadata Repository)
    - Oracle Home 3: Database
    (3) If your AS installation includes a Metadata Repository, make sure that the
    Metadata Repository and the database use a different SID and global db name.
    (4) It is possible that the Metadata Repository and the database can share
    port 1521. Review this information before you start your AS installation:
    http://download.oracle.com/docs/cd/B14099_19/win.1012/install.1012/install/reqs.htm#CIHEBFDG
    The installation guide under (4) tells me that I don't have to worry since I use a new listener version.
    To complete the confusion: on my virtual test machine oracle 10g and oracle AS 10g work fine side by side?? Perhaps because I did a Standard Edition install of the database (on the real machine I used Enterprise Edition)? Is there a way to figure out what kind of install I did?
    Lots of questions, any help or links are really appreciated! Thanks in advance!
    ------------------ EDIT -------------------
    Whoops, I might had a problem with a not correctly shut down database (just shutted windows down without killing the instance - didn't know this wasn't ok). Still evaluating the issue. But to say the least, it seems the application server has nothing to do with my problem :)
    Message was edited by:
    mathias.ringhof

  • Interactive report performance problem over database link - Oracle Gateway

    Hello all;
    This is regarding a thread Interactive report performance problem over database link that was posted by Samo.
    The issue that I am facing is when I use Oracle function like (apex_item.check_box) the query slow down by 45 seconds.
    query like this: (due to sensitivity issue, I can not disclose real table name)
    SELECT apex_item.checkbox(1,b.col3)
    , a.col1
    , a.col2
    FROM table_one a
    , table_two b
    WHERE a.col3 = 12345
    AND a.col4 = 100
    AND b.col5 = a.col5
    table_one and table_two are remote tables (non-oracle) which are connected using Oracle Gateway.
    Now if I run above queries without apex_item.checkbox function the query return or response is less than a second but if I have apex_item.checkbox then the query run more than 30 seconds. I have resolved the issues by creating a collection but it’s not a good practice.
    I would like to get ideas from people how to resolve or speed-up the query?
    Any idea how to use sub-factoring for the above scenario? Or others method (creating view or materialized view are not an option).
    Thank you.
    Shaun S.

    Hi Shaun
    Okay, I have a million questions (could you tell me if both tables are from the same remote source, it looks like they're possibly not?), but let's just try some things first.
    By now you should understand the idea of what I termed 'sub-factoring' in a previous post. This is to do with using the WITH blah AS (SELECT... syntax. Now in most circumstances this 'materialises' the results of the inner select statement. This means that we 'get' the results then do something with them afterwards. It's a handy trick when dealing with remote sites as sometimes you want the remote database to do the work. The reason that I ask you to use the MATERIALIZE hint for testing is just to force this, in 99.99% of cases this can be removed later. Using the WITH statement is also handled differently to inline view like SELECT * FROM (SELECT... but the same result can be mimicked with a NO_MERGE hint.
    Looking at your case I would be interested to see what the explain plan and results would be for something like the following two statements (sorry - you're going have to check them, it's late!)
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two),
    sourceqry AS
    (SELECT  b.col3 x
           , a.col1 y
           , a.col2 z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5)
    SELECT apex_item.checkbox(1,x), y , z
    FROM sourceqry
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two)
    SELECT  apex_item.checkbox(1,x), y , z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5If the remote tables are at the same site, then you should have the same results. If they aren't you should get the same results but different to the original query.
    We aren't being told the real cardinality of the inners select here so the explain plan is distorted (this is normal for queries on remote and especially non-oracle sites). This hinders tuning normally but I don't think this is your problem at all. How many distinct values do you normally get of the column aliased 'x' and how many rows are normally returned in total? Also how are you testing response times, in APEX, SQL Developer, Toad SQLplus etc?
    Sorry for all the questions but it helps to answer the question, if I can.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Failed to open the connection - database vendor code 17

    I'm upgrading a VB.net Windows Forms application from 1.1 to 4.0.  In the reporting form, the list of reports you can choose are pulled from a folder where the .rpt files reside.  Once the user chooses a report and executes it, vb code populates the current database connection information and displays the report in the report viewer control.
    The following things are true:
    - Version 1.1 works on my systems and my customers systems
    - The code has not been changed, except that it now targets .Net 4.0 instead of 1.1
    - The exact same .rpt files are being used
    - Version 4.0 connects to the same database my customer is using, and I can run the reports just fine from here.
    - Version 4.0 is able to connect to the database just fine from my customers systems (using the same connection information provided to the report)
    - My customer installed this:  http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_2.zip
    The only problem is that my customer encounters this error when trying to run any report from his systems:
    Failed to open the connection.
    Details:  Database Vendor Code: 17
    Failed to open the connection.
    Orders.BOL.TaskDetail {393C9017-0ED1-4E1E-8824-E222F4B9D14C}.rpt
    Details:  Database Vendor Code: 17
    I read all of the articles I could find, and they either don't describe this exact situation, or there is insufficient information for troubleshooting this issue.  Are there steps that I've missed to make Crystal Reports for VS2010 work on my customer's systems?
    Your help is appreciated,
    Mark

    Hi Mark,
    More information required -
    - Does this happen with all reports or few?
    - What is the connection type used for the report to connect to the database (OLEDB,ODBC etc)
    - Are you changing the database at runtime?
    few things you could check
    - Check if the database is accaessible from the client machine with proper permissions / rights.
    - If its an ODBC connection check if the DSN with same name is created on the client machine.
    - Check the driver / provided used by the report to connect to the DB, verify that the same is installed on the client machine. (SQL NAtive client, SQL Server etc)
    Also take a look at below articles discussing the simillar issue.
    [CR for VS2010: Failed to Open Connection [Database Vendor Code: 17 ]|CR for VS2010: Failed to Open Connection [Database Vendor Code: 17 ]]
    [1474461 - Unknown Database Connector Error when connecting to a Dataset in a VS .NET application |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373334333433363331%7D.do]
    Hope this helps,
    - Bhushan.

  • How to delete a record in a connected database?

    We are encountering a problem using the delete function for removing a record in a connected database table. The database is an excel-file and we are able to add a new record, update existing records but not delete records. We are using the following script in FormCalc since I read that the function does not work in JavaScript:
    $sourceSet.DataConnection.delete()
    The error message returned is:
    "Deleting data in a linked table is not supported by this ISAM."
    We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.
    Thanks!
    Annika

    You also asked:<br /><br /><font color="grey"><i>We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.</i></font><br /><br />You should be able to achieve this quite easily using the Data Drop Down List from the Library palette's Custom tab. This object has a pre-defined Initialize script which populates the list with items from a data connection you specify.<br /><br />While the object is pre-configured to load items from the data connection only upon initialization (which only occurs when the form is loaded and after a data merge), you could move the script into a Script Object function and call it whenever you insert a new record (just after the statement which inserts the record).<br /><br />This is the script from the Initialize event of the Data Drop Down list put into a Script Object function called LoadDropDownList which takes the drop down list to populate using the data connection as a parameter:<br /><pre>function LoadDropDownList(oDropDownList)<br />{<br />     /*     This dropdown list object will populate two columns with data from a data connection.<br />     <br />          sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.<br />          sColHiddenValue      - this is the hidden value column of the dropdown.  Specify the table column name used for populating.<br />          sColDisplayText          - this is the display text column of the dropdown.  Specify the table column name used for populating.<br />     <br />          These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.<br />     */     <br />     <br />     var sDataConnectionName = "&lt;value&gt;"; //     example - var sDataConnectionName = "MyDataConnection";<br />     var sColHiddenValue = "&lt;value&gt;"; //     example - var sColHiddenValue = "MyIndexValue";<br />     var sColDisplayText = "&lt;value&gt;"; //     example - var sColDisplayText = "MyDescription"<br />     <br />     //     Search for sourceSet node which matchs the DataConnection name<br />     var nIndex = 0;<br />     while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     <br />     var oDB = xfa.sourceSet.nodes.item(nIndex);<br />     oDB.open();<br />     oDB.first();<br />     <br />     //     Search node with the class name "command"<br />     var nDBIndex = 0;<br />     while(oDB.nodes.item(nDBIndex).className != "command")<br />     {<br />          nDBIndex++;<br />     }<br />     <br />     //     Backup the original settings before assigning BOF and EOF to stay<br />     var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />     var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br />     <br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br />     <br />     //     Clear the list first so that we replace any existing items<br />     <b>oDropDownList</b>.clearItems();<br />     <br />     //     Search for the record node with the matching Data Connection name<br />     nIndex = 0;<br />     while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     var oRecord = xfa.record.nodes.item(nIndex);<br />     <br />     //     Find the value node<br />     var oValueNode = null;<br />     var oTextNode = null;<br />     for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br><br />     {<br><br />          if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br><br />          {<br><br />               oValueNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />          else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br><br />          {<br><br />               oTextNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />     }<br />     <br />     while(!oDB.isEOF())<br />     {<br />          <b>oDropDownList</b>.addItem(oTextNode.value, oValueNode.value);<br />               oDB.next();<br />     }<br />     <br />     //     Restore the original settings<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br />     <br />     //     Close connection<br />     oDB.close();<br />}</pre><br />The required modifications to the original script are in bold.<br /><br />The easiest way to create the Script Object is to right-click on the top-level form object ("form1" by default) in the Hierarchy palette and select the <i>Insert Script Object</i> option. This will insert an un-named Script Object which you should then rename to something meaningful like, "ScriptObject". Once you've done this, you can call the function from any event on any object on your form with the following JavaScript:<br /><pre>ScriptObject.LoadDropDownList(&lt;SOM expression for drop down list&gt;);</pre><br />If you were calling this function on an "add record" button's Click event, the drop down list was named "DropDown" and both objects were in the same subform, you would do this:<br /><pre>ScriptObject.LoadDropDownList(DropDown);</pre><br />Stefan<br />Adobe Systems

  • Problem connecting from Oracle to MS Excel - 64 bit

    Hello,
    I have problem connecting to excel from oracle 11.2 using DG4ODBC.
    OS - Windows 7 - 64 bit
    Database version :- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit
    Created System DSN using ODBC:
    Data Source Name = test12
    Oracle home Path :- D:\app\11g64db\product\11.2.0\dbhome_1
    Content of initdg4odbc.ora file :
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = test12
    HS_FDS_TRACE_LEVEL = 255
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Content of listener.ora:
    # listener.ora Network Configuration File: D:\app\11g64db\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = vis)
          (ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
          (SID_NAME = vis)
        (SID_DESC =
          (PROGRAM = dg4odbc)
          (SID_NAME = dg4odbc)
          (ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = D:\app\11g64db
    Content of tnsnames.ora:
    # tnsnames.ora Network Configuration File: D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    excel_test =
       (DESCRIPTION=
        (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
        (CONNECT_DATA=(SID=dg4odbc))
        (HS=OK)
    VIS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = vis)
    Listener status
    LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 29-AUG-2014 13:56
    :11
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.4.0 - Produ
    ction
    Start Date                29-AUG-2014 13:34:58
    Uptime                    0 days 0 hr. 21 min. 12 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\l
    istener.ora
    Listener Log File         D:\app\11g64db\diag\tnslsnr\Est-Subramanya\listener\al
    ert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4odbc" has 1 instance(s).
      Instance "dg4odbc", status UNKNOWN, has 1 handler(s) for this service...
    Service "vis" has 2 instance(s).
      Instance "vis", status UNKNOWN, has 1 handler(s) for this service...
      Instance "vis", status READY, has 1 handler(s) for this service...
    Service "visXDB" has 1 instance(s).
      Instance "vis", status READY, has 1 handler(s) for this service...
    The command completed successfully
    DB Link:
    CREATE PUBLIC DATABASE LINK TEST123 USING 'excel_test';
    error while querying the data:
    select * from test@test123;
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from TEST123
    28500. 00000 -  "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded
               message.
    Error at Line: 1 Column: 20
    Appreciate the help in advance............
    Thanks...

    Also HS log file showed error.. Below are the contents of the trace file:
    Oracle Corporation --- FRIDAY    AUG 29 2014 14:01:06.212
    Heterogeneous Agent Release
    11.2.0.4.0
    Oracle Corporation --- FRIDAY    AUG 29 2014 14:01:06.211
        Version 11.2.0.4.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "dg4odbc"
    Product-Info:
      Port Rls/Upd:4/0 PrdStat:0
      Agent:Oracle Database Gateway for ODBC
      Facility:hsa
      Class:ODBC, ClassVsn:11.2.0.4.0_0019, Instance:dg4odbc
    Exiting hgogprd, rc=0
    hostmstr: 8795961769984: HOA After hoagprd
    hostmstr: 8795961769984: HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=873
    HS_LANGUAGE not specified
    rc=1239980 attempting to get LANG environment variable.
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2014/08/29-14:01:06
    Exiting hgolofn, rc=0 at 2014/08/29-14:01:06
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2014/08/29-14:01:06
    hostmstr: 8795961769984: HOA After hoainit
    hostmstr: 8795961769984: HOA Before hoalgon
    Entered hgolgon at 2014/08/29-14:01:06
    reco:0, name:OPTIM, tflag:0
    Entered hgosuec at 2014/08/29-14:01:06
    Exiting hgosuec, rc=0 at 2014/08/29-14:01:06
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using OPTIM as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2014/08/29-14:01:06
    HS_FDS_CONNECT_INFO = "test12"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2014/08/29-14:01:06
    dsn:test12, name:OPTIM
    optn:
    Entered hgocip at 2014/08/29-14:01:06
    dsn:test12
    Exiting hgocip, rc=0 at 2014/08/29-14:01:06
    ##>Connect Parameters (len=31)<##
    ## DSN=test12;
    #! UID=OPTIM;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2014/08/29-14:01:06
    Entered hgopoer at 2014/08/29-14:01:06
    SQLGetDiagRec returns rc=100 (SQL_NO_DATA) for handle 4619630 (SQL_HANDLE_DBC)
    Exiting hgopoer, rc=0 at 2014/08/29-14:01:06 with error ptr FILE:hgopoer.c LINE:186 ID:GetDiagRec error
    hgocont, line 2831: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2014/08/29-14:01:06 with error ptr FILE:hgocont.c LINE:2851 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2014/08/29-14:01:06 with error ptr FILE:hgolgon.c LINE:806 ID:Calling hgocont
    hostmstr: 8795908591616: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 8795908591616: RPC Before Exit Agent
    hostmstr: 8795908591616: HOA Before hoaexit
    Entered hgoexit at 2014/08/29-14:01:06
    Exiting hgoexit, rc=0
    hostmstr: 8795911442432: HOA After hoaexit
    hostmstr: 8795911442432: RPC After Exit Agent

Maybe you are looking for

  • How to insert 20 records  only in one table

    hi to all, i want insert 20 records only in a table,but suppose i want to enter 21th record it will not inserted . suppose delete one record then insert, it will insert. but always count(*) is not greater than 20. is there any solution for that, pls

  • Regarding download to text file

    Dear ABAP Gurus, I have requirement to download internal table to text file and put it on a strorade via ftp. The problem is, when i try to write long text into the file, i cannot write euro currency character 'u20AC', the 'u20AC' replaced by other c

  • App in Muiple region stores

    Hi I was watching a Windows App development (Microsoft Virtual Academy) training video with Jerry Nixon and Darren May recently. In that video there was a section, where you're encouraged to make your app sit in multiple windows stores by having it t

  • Image Tag Library + scriplets

    I installed the jakarta imaging taglib to do some auto resizing of images. It works well aside from the fact that i cannot get my scriptlet to work in the img source. <img:image src="/images/<% x_productImage %>"         dir="generated         name="

  • Update to symbian 3.2 and 5.0

    I think we must forget about those updates for 5800 and x6,they'll never gonna happen,nokia is paying lip service to us.