Oracle code to connect to sharepoint database

Hi All,
Need some guidance on connecting Oracle database to Sharepoint Database. Want to know any documentation regarding this one.
Thanks,
Mk.

816802 wrote:
Hi All,
Need some guidance on connecting Oracle database to Sharepoint Database. Want to know any documentation regarding this one.
Thanks,
Mk.
You'll find everything you need to know ===>here

Similar Messages

  • Oracle Gateway Not Connecting to Sybase database

    Hi,
    I'm trying to setup an oracle gateway to connect to Sybase database. I followed in details the instructions but still can connect successfully. The Oracle database is in RAC environment. Below are the steps I took:
    The oracle gateway and oracle database are in the same server while Sybase is on a separate unix box.
    1. create an initdg4sybs.ora file
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    HS_FDS_CONNECT_INFO=[999.99.108.99]:4527/common ## IP address of sybase server
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    2. create a listener on the oracle gateway home
    # listener.ora Network Configuration File: /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node A)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.24)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node B)
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    3. create tnsnames.ora in oracle database home
    dg4sybs =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)) #IP address of Node A
    (CONNECT_DATA =
    (SERVER = DEDICATED) #added for single node test
    (SID = dg4sybs)
    (HS=OK)
    4. create database link
    create database link dg4sybs connect to "user" identified by "password" using 'dg4sybs'
    5. when testing the connection; i'm getting below error message. tried all the setup based my research and couldn't make it work.
    SQL> select * from dual@dg4sybs
    2 /
    select * from dual@dg4sybs
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7427
    Session ID: 495 Serial number: 787
    I perform above settings on a standalone database running in windows and successfully connect to the sybase. In UNIX setup, been unsuccessful. Can someone please help.
    Also, below is the trace file error message:
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.747
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.745
    Version 11.2.0.1.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
    ODBCINST set to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/dg4sybs.loc"
    RC=-1 from HOSGIP for "LD_LIBRARY_PATH_64"
    Setting LD_LIBRARY_PATH_64 to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_ICU" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libHGicu23.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_INST" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbcinst.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbc.so"
    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"
    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_CHARACTER_SEMANTICS" returned "FALSE"
    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 ro as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    SQL text from hgopars, id=1, len=20 ...
    00: 53454C45 4354202A 2046524F 4D202244 [SELECT * FROM "D]
    10: 55414C22 [UAL"]
    hgopars, line 526: calling SQLNumResultCols got sqlstate 42S02
    SQL text from hgopars, id=2, len=57 ...
    00: 53454C45 43542027 58272046 524F4D20 [SELECT 'X' FROM ]
    10: 2264626F 222E2273 79737573 65727322 ["dbo"."sysusers"]
    20: 20413120 57484552 45204131 2E226E61 [ A1 WHERE A1."na]
    30: 6D65223D 2764626F 27 [me"='dbo']
    Deferred open until first fetch.
    HS Agent received unexpected RPC disconnect
    Network error 1003:  NCR-01003: NCRS: Read error.
    Edited by: gonzroman on Oct 18, 2012 11:03 AM

    -=-=-=-=-=- tnsnames.ora on the UNIX side
    GTW_C100_COMN =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) #IP address of jrc1suvip01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) #IP address of jrc1sudb01a
    (CONNECT_DATA =
    (SERVER = DEDICATED) # added for single configuration
    (SID = dg4sybs_comn_c100)
    (HS=OK)
    -=-=-=-=-=- listener.ora of the GATEWAY
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)(IP = FIRST)) #IP address of jrc1suvip01a
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)(IP = FIRST)) #IP address of jrc1sudb01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = jrc1suvip01a)(PORT = 1543))
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    (SID_DESC=
    (SID_NAME=dg4sybs_comn_c100)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    -=-=-=-=- initdg4sybs_comn_c100.ora parameter
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    #HS_FDS_CONNECT_INFO=[glb0pod29.aexeo.citco.com]:4100/common
    HS_FDS_CONNECT_INFO=[209.87.108.99]:4527/common
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    -=-=-=-=- gateway listener status
    jrc1sudb01a:/u03/app/oracle/gateway/11.2/dg4sybs/admin $ lsnrctl status LISTENER_DG4SYSBS
    LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 20-OCT-2012 13:09:05
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1543)))
    STATUS of the LISTENER
    Alias LISTENER_DG4SYSBS
    Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    Start Date 18-OCT-2012 13:16:24
    Uptime 1 days 23 hr. 52 min. 41 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    Listener Log File /u03/app/oracle/gateway/11.2/log/diag/tnslsnr/jrc1sudb01a/listener_dg4sysbs/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.26)(PORT=1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.24)(PORT=1543)))
    Services Summary...
    Service "dg4sybs" has 1 instance(s).
    Instance "dg4sybs", status UNKNOWN, has 1 handler(s) for this service...
    Service "dg4sybs_comn_c100" has 1 instance(s).
    Instance "dg4sybs_comn_c100", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    -=-=-=-=-=- tnsping output
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping dg4sybs
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:28
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs)) (HS=OK))
    OK (10 msec)
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping GTW_C100_COMN
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:35
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs_comn_c100)) (HS=OK))
    OK (0 msec)

  • Oracle Application server connection pool and database links

    I am using Oracle application server 10g with connection pools, the db used by the application connects to another oracle db using a database link. My question is when the application starts it creates 10 connections, does it also create x amount of database links as well?

    Hi,
    Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?Hi Vinod,
    Yes, TopLink allows you to use the app server's connection pooling and transaction services. Chapter 2 of the Oracle9iAS TopLink Foundation Library Guide provides details as do the TopLink examples. The easiest way to set this up is by using the sessions.xml file. The sample XML below is from the file <toplink903>\examples\ias\examples\ejb\sessionbean\sessions.xml. Here we are adding the datasource defined in OC4J and specifying that we are using the OC4J transaction controller also.
    <login>
    <user-name>sa</user-name>
    <password></password>
    <datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    When using this approach you need to change your TopLink code slightly in the EJB methods:
    a. Acquire the ACTIVE unit of work from the server
    session (again, see the EmployeeSessionEJB code
    example) with something like:
    UnitOfWork uow = clientSession.getActiveUnitOfWork();
    b. Calls to uow.commit() can be ommitted or commented out
    because the EJB will handle this. Note that of course
    the methods you create in the EJB that are using this
    approach must have TX Required (default).
    Hope this helps.
    Pete

  • How to create a Connection to UDB Database through OIM APIs.?

    Hi,
    In our OIM (9.1.0.2) implementation, there is a need to connect to a UDB database to execute some select queries and get the data. Is there any way in which I can do this?
    I tried creating an ITResource to have all static database related information, but I was not able to use that ITResource and create an actual database connection in the java code.
    As far as possible, I don't want to use any JDBC code to create the connection but want to know if there are any inbuilt OIM APIs which can help me in creating a database connection to point to the UDB database.
    (We don't have the DBUM connector deployed.)
    Please get back with your views/info on this.
    Thanks,
    Kulesh...

    Here is a constructor code for connecting to a database:
         public DatabaseConnection(String hostname, String port, String driver, String sid, String admin, String password) throws ClassNotFoundException, SQLException{
              log.info(CLASS_NAME + " -----> inputs=hostname[" + hostname +
                        "]port[" + port +
                        "]driver[" + driver +
                        "]sid[" + sid +
                        "]admin[" + admin +
                        "]password[********]");
              Properties connectionProps=new Properties();
         connectionProps.setProperty("user", admin);
         connectionProps.setProperty("password", password);     
         String url = "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=" + hostname +
              ")(PORT=" + port +
              "))(CONNECT_DATA=(SID=" + sid + ")))";
         Class.forName(driver);
              con = null;     
         con = DriverManager.getConnection(url, connectionProps);
    If you want to use SSL, you will want to configure tcps for jdbc connection to the database, or any other form of connection and update your URL string for it.
    -Kevin

  • Connecting to the database taking long time to connect database server

    Hi
    When I execute procedure i am getting the below message at bottom of the Oracle SQL Developer
    "Connecting to the database"
    it is taking more than 10 min plz guide

    Hi
    have you installed a normal Oracle Client also on your Host? normal Oracle Client
    Did you connect with host:port:sid or with a Oracle Naming Service? through TNS Service
    Can you test tnsping <alias> yes, It is working fine
    Did other user have the same problem? yes
    Did you connect through WAN or LAN connection? LAN (Intranet)
    Can you tell more about you client/database setup?
    Database setup:
    OS: Window 2008 server
    version: 11.1.0
    Client: 11.1.0
    OS: Window 2008 server
    Now I am not able to execute single select query which table contains 6 records and 15 columns it is taking long time I have waited 30 min still no resutls
    only one table is behaving like this remaining is working fine
    Edited by: user9235224 on Oct 6, 2012 7:06 PM

  • Connecting to SQL database using IP address

    Hi
    I'm writing some SQL code to connect to a database on another site.
    I have been given -
    Server IP addres
    Database name
    User ID
    Using the database connectivity tools it seems like I have to use a dsn to connect to the database - is it possible to do it using the IP and database details above?
    Cheers
    Dave

    Yes you should have all the information needed. To create your DSN you use the Data Sources (ODBC) program in Administrative Tools. If you need help, here are a couple sites that I found with instructions for creating a DSN and again here. Given that you are accessing SQL Server, you may already have the client drivers you need depending upon the version of Windows you are running.
    If you have XP, you're golden. If you are running something earlier, you need to download and install MDAC Version 8.2 SP1.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Error trying to connect to DB2 database....

    Am using the following code to connect to db2 database, but when run am getting error messgae as shown,
    try
         Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance();
    catch(Exception exception)
    System.err.println("Unable to load driver.");
    exception.printStackTrace();
    try
         Connection connection = DriverManager.getConnection("jdbc:db2://xxx.xxx.xxx.xxx:port/dbname");
    error message.....
    Exception in thread "main" java.lang.NoClassDefFoundError:
    .....Any suggestions gratefully recieved....

    It does not matter whether your database server is running locally or on a remote server. Most of the times it will be on a remote server.
    But the driver and the related stuff must be in your local machine's classpath. Only then you can compile or run your application locally. Include db2 package in the classpath and then try to compile your program. You can search in this forum about setting the classpath details.
    Every fourth thread in this forum will be about classpath or related problems.
    Sudha

  • JSP Code to connect Oracle 10g Database

    Can some give the JSP code for connecting Oracle 10g database

    hi
    First u have to get ojdbc1.4.jar file ,,,, it is the driver for the oracle
    then use the following code :
    import java.sql.*;
    import java.util.*;
    public class connectionBean
         Connection con;
         Statement statement;
         connectionBean()
              try
            Class.forName("oracle.jdbc.driver.OracleDriver");
            con = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:Xe","hr","hr");
            statement=con.createStatement();
              catch(Exception cnfe){     }
         public void testMethod()throws  SQLException{
              ResultSet rs=statement.executeQuery("select * from COUNTRIES");
              while(rs.next())
              System.out.print(rs.getString(1));
         public static void main (String args[])throws  SQLException
              connectionBean cb=new connectionBean();
              cb.testMethod();
    }hope this will help
    Good luck
    Mohammed

  • Failed to open the connection. Details: [Database Vendor Code: 53 ]

    I'm upgrading one of our applications from Visual Studio 2005 to 2010. In the process I'm also switching our reports to run using Stored Procedures instead of Tables/Views.  Everything runs fine on development machines after all the migration work.  On the server however, it does not work. And I am getting the error message ""
    Server is Windows 2003 Server 32 bit.  And yes, I have installed the latest runtimes version 13.0.2000.0 on the server.  There have been no other changes on the server other than to switch the target framework on the website in question from .net 2 to .net 4, and then to modify the web.config file to remove references to the older Crystal Reports and replace with references to the newer version.
    I've seen many other threads on this "failed to open the connection" errors but none of them are my problem except there is one post that remains unanswered where someone had the same Database Vendor Code 53.  I don't know what that error means, spent a considerable amount of time researching that before asking this question.
    Lastly, it appears that this error only happens when the report is pulling data from a Stored Procedure rather than Tables/Views.  If I re-copy the previous reports, they still work.
    The ODBC drivers haven't changed, nor should they. They are fully up to date on that server machine.
    I can't think of anything else that would be indicative of anything other than this is a bug.  Here is the error text as it shows up in the event log:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 12/7/2011 3:49:50 PM
    Event time (UTC): 12/7/2011 11:49:50 PM
    Event ID: 38ce5b5487984e8aa8d2b84493d859a8
    Event sequence: 17
    Event occurrence: 1
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/739252194/Root-1-129677751941252500
        Trust level: Full
        Application Virtual Path: /
        Application Path: D:\Websites\ACE5\Clients\TST\
        Machine name: ACE1
    Process information:
        Process ID: 5436
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: InternalException
        Exception message: Failed to open the connection.
    Failed to open the connection.
    Details:  [Database Vendor Code: 53 ]
    Failed to open the connection.
    Details:  [Database Vendor Code: 53 ]
    Failed to open the connection.
    PackSlipTST0 {638463B4-2196-492A-BD6E-9D82CB1862D5}.rpt
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName)
       at Distribution_PackingSlips_default.ExportPackingSlips(String CrystalReportPath, Boolean UseStoredProcedure)
       at Distribution_PackingSlips_default.Page_Load(Object sender, EventArgs e)
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Failed to open the connection.
    Failed to open the connection.
    Details:  [Database Vendor Code: 53 ]
    Failed to open the connection.
    Details:  [Database Vendor Code: 53 ]
    Failed to open the connection.
    PackSlipTST0 {638463B4-2196-492A-BD6E-9D82CB1862D5}.rpt
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

    Lots of great info here, except for the database; MS SQL? Oracle? Etc?
    Database Vendor Code 53 is an error code that the CR engine simply passes straight from the database it's self. E.g.; look at your database error code and you should be able to find a verbose description of the error.
    As a test, what happens if you add the report to your project and run it in the CR design part of the .NET IDE?
    - A quick google search of Error 53 (for MS SQL - an assumption) comes up with a number of good hits. E.g.;
    http://social.msdn.microsoft.com/Forums/en-AU/sqlgetstarted/thread/27684811-1a59-4273-b7ed-3cc990b4f20a
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
    Edited by: Ludek Uher on Dec 8, 2011 6:31 AM

  • Failed to open the connection. Details: [Database Vendor Code: 12154].

    I have installed Crystal reports server 2008 VI on a Windows 2008 64bit OS. I have added SQL server and Oracle reports through CMC. I then installed Oracle 10g client 32bit on the server and created and tested the required DSNs using ODBC 32bit. All the testings are successfull.
    Now when I try to run my Oracle report through CMC it prompts for the parameters and when I enter them and click ok, gives me the following error:
    Failed to open the connection. Details: [Database Vendor Code: 12154].
    I have the same exact setup on a different server which has a 32 bit windows 2008 server OS and could run the same reports through CMC.
    Is there away to fix this in the 64 bit OS?
    I did a yahoo search and someone had a similar problem with Crystal RAS and Oracle.
    And there is mentions that this is an issue with 32 bit ODBC drivers on 64bit wondows OS.The parentheses in the default file location, C:\Program Files (x86), causes problems with the ODBC driver and the workarouns in re-installing Crystal RAS on a different folder.
    Full description is at (http://www.tririga.info/)
    Is this the case with Crystal report server 2008 VI? I already got users using the InfoView to run SQL reports and doing this will have to put the application offline atlease for a say.
    Any help is greatly appreciated.

    Vasana,
    Resolution: Failed to Open the Connection.
    First:
    If the Crystal Report is using 32-bit version of Microsoft ODBC then the Window 2008 server must also have 32-bit version of Microsoft ODBC. The 32- bit version of Odbcad32.exe is located in the %systemdrive%\Windows\SysWoW64 folder.
    On the Windows 2008 server, execute Odbcad32.exe by clicking start and run and entering the following: C:\Window\SysWow64\ODBC32.exe.
    Then:
    The Windows 2008 server ODBC Data Source Administrator must have the same System Data Source Server and Database Names that is used to run the Crystal Report.
    e.g. Crystal Report points to server ABC and database EFG (ABC_efg); then the ODBC connections on the Windows 2008 Server must also point to the same server ABC and database EFG (abc_efg) listed.

  • Visual C++ code to connect database

    Hi
    I am currently writing a program in visual c++.
    However I need to store image to oracle database.
    Therefore there is a need to connect to the database.
    In other word, I need to connect using ODBC.
    However I am not sure of the code in visual c++ to connect
    and to store jpg image into oracle database.
    Is there any reference or link that i can get the standard code
    to connect to oracle database using visual c++ code?

    You have a lot of options for how you want to connect. You can use OCI, OCCI, ODBC, OLE DB, and OO4O from C++ code without a problem. If you decide on ODBC or OLE DB, you can use the API directly, or, more commonly, you can use one of the API's that are layered on top of those API's, i.e. ADO, RDO, DAO, etc..
    There isn't a single standard way of connecting to the database in C++-- you have lots of options, depending on what you're most comfortable with. If you can give some additional details about exactly which API you're going to be using, I'll try to point you in the right direction for samples.
    Justin

  • Connect to APEX database using VBA+ADO code in Microsoft Excel & Word?

    I am looking at APEX as a potential replacement for a growing reporting/analysis system. As yet I have not found a clear answer on an important question.
    The current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
    Each template’s underlying VBA code executes stored procedures or queries as required, the results of which are returned as Recordset objects and rendered to the Excel worksheet or Word document. Similarly, in some cases, data entered into an Excel worksheet by a user can be submitted back to the database at the click of a button, again via Recordset objects.
    Now most of our templates could easily be ported to APEX. However, there is a strong preference that some of our templates continue to exist and maintain current functionality. So we have a requirement that Excel and Word can seamlessly and directly interact with an APEX database.
    Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?
    Many thanks for your insights on this,
    Michal

    The current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
    Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?Hi,
    Apex gets installed as a separate schema in an existing database.
    So it will not in any way interfere with your existing setup. You can continue to connect directly to the database from your spreadsheets, call stored procedures from VBA/ADO, etc.
    - Morten
    http://ora-00001.blogspot.com

  • Oracle 10g - Not able to connect to the Database

    I could not connect to the Database. I found below error when I have run the lsnrctl start
    I would appreciate any help.
    D:\Documents and Settings\Administrator>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JUN-2010 02:49
    :42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.or
    a
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT
    =1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    Listener failed to start. See the error message(s) above...
    ================
    I think the above error has caused the below result
    D:\Documents and Settings\Administrator>net start oracleserviceorcl
    The requested service has already been started.
    More help is available by typing NET HELPMSG 2182.
    D:\Documents and Settings\Administrator>sqlplus/nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 3 02:46:25 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn sys@orcl as sysdba
    Enter password:
    ERROR:
    ORA-12170: TNS:Connect timeout occurred
    SQL>
    ===========================
    Following is the part of generated log message for the lsnrctl start command
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-MAY-2010 23:44:29
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=1652
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.51)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    15-MAY-2010 23:44:33 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    15-MAY-2010 23:44:51 * service_register * orcl * 0
    15-MAY-2010 23:46:10 * service_died * orcl * 12537
    15-MAY-2010 23:46:11 * service_register * orcl * 0
    15-MAY-2010 23:46:14 * service_update * orcl * 0
    15-MAY-2010 23:46:29 * service_update * orcl * 0
    15-MAY-2010 23:46:35 * service_update * orcl * 0
    15-MAY-2010 23:46:41 * service_update * orcl * 0
    15-MAY-2010 23:46:47 * service_update * orcl * 0
    15-MAY-2010 23:47:05 * service_update * orcl * 0
    15-MAY-2010 23:47:33 * service_update * orcl * 0
    15-MAY-2010 23:47:39 * service_update * orcl * 0
    15-MAY-2010 23:47:50 * service_update * orcl * 0
    15-MAY-2010 23:47:58 * service_died * orcl * 12537
    TNS-12547: TNS:lost contact
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-MAY-2010 11:08:17
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=216
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-MAY-2010 12:07:11
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=208
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-MAY-2010 23:19:43
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=224
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 19-MAY-2010 00:35:39
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=220
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-MAY-2010 00:02:39
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=224
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-MAY-2010 22:28:28
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=224
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 22-MAY-2010 02:29:22
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=228
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 22-MAY-2010 10:39:02
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=664
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-MAY-2010 01:50:22
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=224
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-MAY-2010 08:58:52
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=416
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-MAY-2010 22:48:47
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=196
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 26-MAY-2010 07:17:43
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=764
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 27-MAY-2010 23:53:01
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=700
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-MAY-2010 21:35:44
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=524
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 30-MAY-2010 00:44:22
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=796
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 30-MAY-2010 11:41:33
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=732
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 31-MAY-2010 01:28:05
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=716
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JUN-2010 00:46:50
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=196
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JUN-2010 02:32:07
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=1740
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JUN-2010 02:35:19
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=3488
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JUN-2010 02:43:06
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=240
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JUN-2010 02:50:03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Trace information written to D:\oracle\product\10.2.0\db_2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=3104
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.51)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Thanks,
    Srini

    Thanks again
    Here is the result of the lsnrctl status
    D:\Documents and Settings\Administrator>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JUN-2010 04:13
    :06
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 03-JUN-2010 03:45:46
    Uptime 0 days 0 hr. 27 min. 22 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\product\10.2.0\db_2\network\admin\listener.o
    ra
    Listener Log File D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.50)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "emp" has 1 instance(s).
    Instance "emp", status READY, has 1 handler(s) for this service...
    Service "empXDB" has 1 instance(s).
    Instance "emp", status READY, has 1 handler(s) for this service...
    Service "emp_XPT" has 1 instance(s).
    Instance "emp", status READY, has 1 handler(s) for this service...
    Service "ora10" has 1 instance(s).
    Instance "ora10", status BLOCKED, has 1 handler(s) for this service...
    Service "ora10_XPT" has 1 instance(s).
    Instance "ora10", status BLOCKED, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ======================
    Now i have tried sqlplus / as sysdba
    D:\Documents and Settings\Administrator>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 3 04:15:18 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    SQL>
    =======================
    Then tried to connect to orcl database which has sid also orcl and gave the correct pass word, but still found the same error
    D:\Documents and Settings\Administrator>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 3 04:15:18 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    SQL> conn sys@orcl as sysdba
    Enter password:
    ERROR:
    ORA-12170: TNS:Connect timeout occurred
    Warning: You are no longer connected to ORACLE.
    SQL>
    Could please let me know what is missing here from my side
    Regards,
    Srini

  • Code to connect to database in  Webdynpro-- iviews

    Hi All-
    Could you let me know the code to connect to database
    in WebDynPro-->iviews.
    Regards,
    Cris

    Hi,
    Here are the two ways of connecting to a database through coding:
    ////1////
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
              java.sql.Connection conn= java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://<IP>:<port>;user=<abc>;password=<xyz>;database=<DB name>");
    ////2////     
    InitialContext initialContext = new InitialContext();
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/SRI");
    java.sql.Connection conn = dataSource.getConnection();
    Regards
    Srinivasan T

  • Connecting to Remote Database using Debian w/Oracle XE

    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? I checked and the remote server is up, and that is the existing port.
    Thanks a lot!

    user603592 wrote:
    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? yes, see below
    bcm@bcm-laptop:~$ sqlplus -h
    SQL*Plus: Release 11.2.0.1.0 Production
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the
                 usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
        -C <version>   Sets the compatibility of affected commands to the
                 version specified by <version>.  The version has
                 the form "x.y[.z]".     For example, -C 10.2.0
        -L             Attempts to log on just once, instead of
                 reprompting on error.
        -M "<options>" Sets automatic HTML markup of output.  The options
                 have the form:
                 HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
                 [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
        -R <level>        Sets restricted mode to disable SQL*Plus commands
                 that interact with the file system.     The level can
                 be 1, 2 or 3.  The most restrictive is -R 3 which
                 disables all user commands interacting with the
                 file system.
        -S             Sets silent mode which suppresses the display of
                 the SQL*Plus banner, prompts, and echoing of
                 commands.
      <logon> is: {<username>[/<password>][@<connect_identifier>] | / }
               [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
        Specifies the database account username, password and connect
        identifier for the database connection.  Without a connect
        identifier, SQL*Plus connects to the default database.
        The AS SYSDBA, AS SYSOPER and AS SYSASM  options are database
        administration privileges.
        <connect_identifier> can be in the form of Net Service Name
        or Easy Connect.
          @[<net_service_name> | [//]Host[:Port]/<service_name>]
         <net_service_name> is a simple name for a service that resolves
         to a connect descriptor.
         Example: Connect to database using Net Service Name and the
               database net service name is ORCL.
            sqlplus myusername/mypassword@ORCL
         Host specifies the host name or IP address of the database
         server computer.
         Port specifies the listening port on the database server.
         <service_name> specifies the service name of the database you
         want to access.
         Example: Connect to database using Easy Connect and the
               Service name is ORCL.
            sqlplus myusername/mypassword@Host/ORCL
        The /NOLOG option starts SQL*Plus without connecting to a
        database.
        The EDITION specifies the value for Session Edition.
      <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
        Runs the specified SQL*Plus script from a web server (URL) or the
        local file system (filename.ext) with specified parameters that
        will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run.  The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    bcm@bcm-laptop:~$

Maybe you are looking for