Correct OCCI connection String

Hi,
I trying to write some small application on a 32bit Centos machine, with g++ and OCCI, I have correctly setup the library linking and have some sample code running alright, however I don't seem to be able to get a correct connection string to connect to a remote 11g database (11.0.2.3).
below are codes that I have tried.
[code]
#include <occi.h>
#include <iostream>
using namespace std;
using namespace oracle::occi;
int main(){
        string userName = "user";
        string password = "STRONGPW";
        string connectString = "";
        try{
                Environment *env = Environment::createEnvironment();
                        cout << "before create connection\n";
                        Connection *conn = env->createConnection(userName, password, connectString);
                Environment::terminateEnvironment(env);
        }catch(exception& e){
                cout << e.what();
[/code]
I have double confirmed the username and password, and whenever it goes the createConnection method, it will throw exception error,
I am compiling and running as root, I have tried all sort of connection strings
connectionString = "";
ORA-12546: TNS:permission denied
connectString = "TCP://192.168.1.2:1522";  // I did also try "tcp://192.168.1.2:1522"
ORA-12154: TNS:could not resolve the connect identifier specified     (192.168.1.2 being host machine, 1522 being listening port)
connectString = "User Id=user;Password=STRONGPW;Data Source=ORCL222";
ORA-12154: TNS:could not resolve the connect identifier specified    (ORCL222 being name specified in  $ORACLE_HOME/network/admin/tnsnames.ora)
connectString = "DataSource="  // I did try "ORCL222="
"  (DESCRIPTION ="
"       (ADDRESS=(PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1522))"
"    (CONNECT_DATA="
"      (SERVICE_NAME = ORCL2)"
"      (SERVER = DEDICATED)"
ORA-12154: TNS:could not resolve the connect identifier specified    (ORCL2 being ORACLE service name)
did I miss anything? or is there any spacing in the connection string that I might have did wrongly?

Hi Darryl,
Thanks for trying to answer, I found the answer in
Oracle® C++ Call Interface Programmer's Guide 10g Release 1 (10.1)
the correct connection string seems to be
192.168.1.2:1522/ORCL2 for my case

Similar Messages

  • Constructing a correct jdbc connection string

    I am not particularly fluent in JDBC URL construction and though I have come up with many variations, I have so far failed to come up with the single variation that will work for my database :-)
    I am running Oracle 10 and I have a connection to the target database in SqlDeveloper. Opening the properties of my existing connection, I observe that the type is TNS. Looking up the network alias specified in my tnsnames.ora I was then able to get the hostname, the service name, and the port (1521), and I observed that it said "Server=DEDICATED" though I don't appreciate the significance of that last item.
    So I tried IBM's jdbctest tool (among others) with a JDBC URL of:
    jdbc:oracle:thin:<username>/<pwd>@<hostname>:1521:<servicename>
    and with the ojdbc14.jar driver, received this error:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    I also tried "telnet <hostname> <port>" because jdbctest suggested it, and I received "Connect failed". jdbctest notes that a refused connection means the port is wrong but says nothing about a failed connection. I saw one reference that said the last component of the string should be <dbname> rather than <servicename>. So where do I check the dbname? And what else am I missing?

    jdbc:oracle:thin:<username>/<pwd>@<hostname>:1521:<servicename><servicename> is SID of databsae running on server and not your tnsname alias.
    Telnet can fail if telnet service is not running.
    Did you tried tnsping
    c:\>tnsping <tnsnames.ora service alias>
    Server=DEDICATED indicates that you want to have dedicated oracle process for your applicaiton unlike shared server process where many users share the same proecss. Shared server connection is typically used for large number of db users conencting concurrently.

  • Deployment from 11g to 10g connection string cannot get provider error.

    Hi, I'm doing a deployment from oracle client 11g to 10g. Is this possible? there are yes and no answer I have try out from the forum. All did not workout with any of the configuration setup.
    For development I am using VS2012, MVC 4. EF 4. Oracle 11g
    The server is currently running Oracle 10g with Oracle.Dataaccess.dll 10.2.0.100
    This is my connection string setup at the server.
    <?xml version="1.0"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->
    <configuration>
    <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
    </configSections>
    <connectionStrings>
    <add name="OraAspNetConnectionString" connectionString="Data Source=dtsr;User Id=ids;Password=pwd;" providerName="Oracle.DataAccess.Client"/>
    <add name="OraAspNetConnectionString2" connectionString="Data Source=dtsr;User Id=ids;Password=pwd;" providerName="Oracle.DataAccess.Client.OracleConnection"/>
    </connectionStrings>
    <!--<startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
    </startup>-->
    <appSettings>
    <add key="webpages:Version" value="2.0.0.0"/>
    <add key="webpages:Enabled" value="false"/>
    <add key="PreserveLoginUrl" value="true"/>
    <add key="ClientValidationEnabled" value="true"/>
    <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
    </appSettings>
    <system.data>
    <DbProviderFactories>
         <add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory,Oracle.DataAccess,Version=4.112.3.0,Culture=neutral,PublicKeyToken=89b483f429c47342" />
    </DbProviderFactories>
    </system.data>
    <system.web>
    <compilation targetFramework="4.0">
    <assemblies>
    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </assemblies>
    </compilation>
    <httpRuntime/>
    <authentication mode="Windows"/>
    <identity impersonate="true"/>
    <pages controlRenderingCompatibilityVersion="4.0">
    <namespaces>
    <add namespace="System.Web.Helpers"/>
    <add namespace="System.Web.Mvc"/>
    <add namespace="System.Web.Mvc.Ajax"/>
    <add namespace="System.Web.Mvc.Html"/>
    <add namespace="System.Web.Optimization"/>
    <add namespace="System.Web.Routing"/>
    <add namespace="System.Web.WebPages"/>
    </namespaces>
    </pages>
    <sessionState mode="InProc" timeout="20" cookieless="false"/>
    </system.web>
    <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
    <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/>
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/>
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
    </handlers>
    <security>
    <authorization>
    <add accessType="Allow" users="?"/>
    </authorization>
    </security>
    </system.webServer>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
    </dependentAssembly>
    <!--<dependentAssembly>
    <assemblyIdentity name="Oracle.DataAccess, Version=10.2.0.100, Culture=Neutral," publicKeyToken="89b483f429c47342" />
    <bindingRedirect oldVersion="10.2.0.100" newVersion="4.112.3.0"/>
              <publisherPolicy apply="no" />
    </dependentAssembly>-->
    </assemblyBinding>
    </runtime>
    <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
    </entityFramework>
    </configuration>
    I get this error when page trying to connect to database.
    [ProviderIncompatibleException: An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.]
    System.Data.Entity.ModelConfiguration.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +163
    System.Data.Entity.ModelConfiguration.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest) +39
    System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +46
    System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +62
    System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +117
    System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +453
    System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +18
    System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +56
    System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +15
    System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +37
    I have check the
    1. Enviroment Variables path is set to the 10.../client_1/
    2. Tnsname.ora already configured.
    3. machine.config did not define the connection string path, as it is define in the web.config
    4. Oracle.Dataaccess.dll is in the bin of my application website (v4.112.3.0).
    5. In my application web bin folder also include additional dlll.
    mfc71.dll
    msvcr71.dll
    oci.dll
    ociw32.dll
    orannzsbb11.dll
    oraocci11.dll
    oraociicus11.dll
    OraOps11w.dll
    Anyone please help.. Thanks in advance..
    Edited by: 976886 on Dec 13, 2012 7:46 PM

    976886 wrote:
    I want to know, it is possible to migrate the application from oracle 11g to 10g? such that the component are supported across?
    Because in the development, all goes well, no error on the oracle connection.
    OR did I miss out anything that causes it not working on my server deployment?yes
    yes
    yes
    how can we reproduce what you claim?

  • I run Dev 6i on Windows 2008 R2 64-bit,the forms are working fine after connection to the database but the reports continue to request for username, password and database connection string every time i try to open a report.

    I receive REP-0501: Unable to connect to specified database. I run developer 6i application on windows 2008 r2. I have applied the nn60.dll and nnb60.dll files to the \BIN directory. The forms are working fine. The reports will only display after the correct user id (username, password and database connection string) is supplied. This is happening to all attempts to open already complied form. Pls, help.

    If you are connecting to an Oracle 11g database, remember that by default the passwords are case sensitive. To disable that, run
    ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;

  • Problem with Connection Manager. Can't change connection string / Server name

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
    .MsoChpDefault
    {font-size:10.0pt;}
    .MsoPapDefault
    {line-height:115%;}
    @page Section1
    {size:612.0pt 792.0pt;margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.Section1
    {page:Section1;}
    Hi,
    I have copied a number of SSID packages from a live server to my test server and am trying to get them up and running but I have a problem with the connection. The only thing that is different is the server name. I decided to keep the same connection in the connection manager as it is referenced in a dtsConfig file. I changed the dtsConfig file to reference the new servername [Data Source= new test server name]. I also check my paths and they are pointing to the correct config locations etc.
    I found this post which was similar to my problem but I still get problems with the connection
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1319961&SiteID=1
    I updated the connection by changing the server name in the actual connection. I did this from the data flow tab in the Connection Managers sections (MS Visual Studio). Right clicked - Edit - changed the name of the server name to my test server and selected the database. Test connection was fine, and saved this.
    Once I saved this, the connection string changed to my current test server in the properties of the connection. However when I run the package I get the following error:
    Error: 0xC0202009 at ReportsImport, Connection manager "myconnectionstring": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Login timeout expired".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".
    Error: 0xC020801C at Myprocess import from file, BuyAtReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionstring" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    Error: 0xC0047017 at Myprocess import from file, DTS.Pipeline: component "ReportsImport" (79) failed validation and returned error code 0xC020801C.
    Error: 0xC004700C at Myprocess import from file, DTS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Myprocess import from file: There were errors during task validation.
    So even if I change the existing connection properties and save and Build my package again, my connection properties (connectionstring, servername etc) all revert back to its original data source when I re-open the package. Simply it does not seem to be saving the connection properties i put in.
    What am I doing wrong or how can I change the existing connection manager to look at the new server. The database is  the same and I have full admin privilege on the server.
    I don't want to recreate my packages as there are alot and they are not simple.
    After changing the connection properties, saving and reloading I get a connection error. But this is because it is not retaining the new connection manger setting i entered.
    Incidentally - I created a new SSID to perform a simple connection and write to the the server and it was OK so there is no problem with actually seeing the my test server.
    Thanks in advance

    Yes, the package is in visual studio and I have executed it. There are no errors but in the output i have the error message about my connection. My dtsConfig file is added to the project in the 'Package Configuration Organizer' and path and files are correct. This is the output error:
    Error: 0xC020801C at xx import from file, xxReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionname" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    I will try and run it using dtexec.exe. if I have two config files do i use
    dtsexec.exe /f <packagename> /conf <configfile> /conf <secondconfigfile>

  • Changing connection string host from localhost to IP address produces error

    Hi all,
    First of all, thanks in advance for your help. Second, I know next to nothing about Oracle database administration, so please be patient, but I want to understand things, rather than just running down the Google rabbit hole with guess-and-check until things happen to work and I don't know why.
    I've got a connection string that I'm using to connect to a local Oracle database I'm using for testing. I have the 11g installed and the 11.1.0.7 64-bit client (as my application is a 64-bit application) installed, both locally on my development machine. I've got a connection working using the following connection string:
    Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = mywindowslogin.path.to.me)));User Id=********;Password=********;However, when I change "localhost" to my IP address, my computer name, or anything else, I get "ORA-12541: TNS:no listener".
    The tnsnames.ora in my database home is as follows - it was set up for me automatically when I installed the database. mywindowslogin.path.to.me doesn't point to anywhere, which I assume is correct, but my computer is on the path.to.me domain.
    LISTENER_MYWINDOWSLOGIN =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    MYWINDOWSLOGIN =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = mywindowslogin.path.to.me)
      )How can I resolve this issue?
    Edited by: Don on Jul 14, 2010 8:31 AM

    Does setting the environment variable affect all installations? Only two of my four Oracle Homes have a tnsnames.ora file, or event a NETWORK/ADMIN location, so I'm not sure where to put tnsnames.ora in those Homes. I copied the tnsnames.ora for my database to the one other Home that had a NETWORK/ADMIN location, but I'm still getting "ORA-12541: TNS:no listener" if I don't use "localhost" as the host.
    Thanks!
    Edited by: Don on Jul 14, 2010 12:08 PM

  • The connection string for coded UI Data driven test using excel data source is not working

    Hello,
    I am using the visual studio 2012 coded UI test, i added the following connection strings to connect to an excel data source:
    [DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel Driver (*.xls)};dbq=C:\\Users\\shaza.said.ITWORX\\Desktop\\Automation\\On-track Automation Framework\\On-track_Automation\\Automation data file.xls;defaultdir=.;driverid=790;maxbuffersize=2048;pagetimeout=5;readonly=true",
    "Sheet1$", DataAccessMethod.Sequential), TestMethod]
    [DataSource("System.Data.Odbc", "Dsn=Excel Files;dbq=|DataDirectory|\\Automation data file.xls;defaultdir=C:\\Users\\shaza.said.ITWORX\\Desktop\\Automation\\On-track Automation Framework\\On-track_Automation\\Automation data file.xls;driverid=1046;maxbuffersize=2048;pagetimeout=5",
    "Sheet1$", DataAccessMethod.Sequential), TestMethod]
    But i get the following error:
    "The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.
    Error details: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
    Thanks,
    Shaza

    Thanks for Adrian's help.
    Hi shaza,
    From the error message, I suggest you can refer the Adrian's suggestion to check the date source connection string correctly.
    In addition, you can refer the following about how to Create a Data-Driven Coded UI Test to check your issue:
    http://msdn.microsoft.com/en-us/library/ee624082.aspx
    Or you can also try to use a Configuration File to Define a Data Source for coded UI test.
    For example:
    <?xml
    version="1.0"
    encoding="utf-8"
    ?>
    <configuration>
    <configSections>
    <section
    name="microsoft.visualstudio.testtools"
    type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection,
    Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </configSections>
    <connectionStrings>
    <add
    name="ExcelConn"
    connectionString="Dsn=Excel Files;dbq=E:\Unit Test\AddClass\AddUnitTest\add.xlsx;defaultdir=.;
    driverid=790; maxbuffersize=2048; pagetimeout=60;"
    providerName="System.Data.Odbc"/>
    <add
    name="ExcelConn1"
    connectionString="Dsn=Excel Files;dbq=E:\Unit Test\AddClass\AddUnitTest\sum.xlsx;defaultdir=.;
    driverid=790;maxbuffersize=2048;pagetimeout=60"
    providerName="System.Data.Odbc"/>
    </connectionStrings>
    <microsoft.visualstudio.testtools>
    <dataSources>
    <add
    name="ExcelDS_Addition"
    connectionString="ExcelConn"
    dataTableName="Addition$"
    dataAccessMethod="Sequential"/>
    <add
    name="ExcelDS_Multiply"
    connectionString="ExcelConn1"
    dataTableName="Multiply$"
    dataAccessMethod="Sequential"/>
    </dataSources>
    </microsoft.visualstudio.testtools>
    </configuration>
    For more information, please see:https://msdn.microsoft.com/en-us/library/ms243192.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Converting connection string to localDB to database in azure

    Hello there, I have an application that I'd like to upload on Azure (I have the free subscription, not that it matters anyway) and this application connects to a database where I store a few bits of data (only text based entries so really small). Now, on
    my localhost, this is the function that handles the connection:
    protected void clearTable(object sender, EventArgs e)
    hookUp = new SqlConnection("Server=(localdb)\\v11.0;Database=test4;" + "Integrated Security=True");
    strInsert = "DELETE FROM Overtime";
    sqlCmd = new SqlCommand(strInsert, hookUp);
    hookUp.Open();
    sqlCmd.ExecuteNonQuery();
    hookUp.Close();
    So what should I replace this with?
    hookUp = new SqlConnection("Server=(localdb)\\v11.0;Database=test4;" + "Integrated Security=True");

    Hi Jazzotto,
    The connection strings for different drivers are available in the azure portal. After creating the database, navigate to the database dashboard (click on the database name in the overview list). On the right hand side you will find a few links, one of them
    is called 'Show connection strings'.
    Before attempting to connect you should also make sure you have the firewall rules configured correctly.
    Best,
    Jan

  • Connection string fails in CS3

    Please tell me how to correct the following connection string
    to my database found at
    www.lazardev.com/homepage/cosmatic/database/cosmaticdb.mdb.
    The sting I'm using is
    "Provider=Microsoft.Jet.OLEDB.4.0;data
    source=www.lazardev.com/homepage/cosmatic/database/cosmaticdb.mdb"
    I'm using Dreamweaver CS3.
    Cliff

    This works in an IIS server:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=D:\Inetpub\wwwroot\001145\ylac611b\HomePage\Cosmatic\ASP\cosmaticdb.mdb"
    1. Type part exactly, including the double quote :
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=D:\Inetpub\wwwroot
    2. Get this part from your ISP:
    \001145\ylac611b
    the first six numbers are the host computer
    the second six characters replace your domain
    3. The last part is the path after your domain name:
    \HomePage\Cosmatic\ASP\cosmaticdb.mdb"
    Include the double quote.
    Ask your ISP if your are in an IIS system.

  • Error in OFR : "No database connection string set for connection group"

    Hi all..
    In OFR, Batches Fail To Export When Line Pairing is Enabled and Batch Remains in State 750 With Error "No database connection string set for connection group".
    I have followed all steps associated to line pairing with database still my batch is not exported..
    Any help is appreciated..
    Thanks in advance

    Hi,
    in case you haven't done this already: for this problem we'd really need you to open a CSS message.
    From your problem description it sounds likely that LCA routines and liveCache user don't fit together. Please check the solution of note 811207 to see if that assumption is correct.
    Furthermore: liveCache 7.5 and SCM 4.0 are not released together (yet). When using SCM 4.0 only liveCache versions 7.4.03 Build XX are released. This it seems you're current combination is not supported!
    Please take a look at PAM (Produkt Availability Matrix) on the SAP Service Marketplace to see which combinations have been released.
    Kind regards,
    Roland
    Message was edited by: Roland Mallmann

  • How to achieve synchronization after DCP connection string changed via sdk

    Hi guys,
    i have modified the DCP connection string using method: metaDataProperties.setProperty("SI_METADATA_BVCONN_ATTRIBUTES", new string here) via BOE SDK for java,  and then
    checked it  through Query Builder
    :select * from CI_APPOBJECTS where SI_GUID=' DC(DataConnection)  GUID' ,
    it appears ok, the DCP connection string has been changed.
    but the problem is :
    when i logon to the infoview or cmc , i find that the information of DCP parameter  is still the former one.
    (in most cases , it display the old, former con-info,  but it also display the correct new data several times  )
    And if i restart the machine , it will be work ok , infoview will get the latest DCP parameters information.
    (related  service  restarting is of no effect)
    how to refresh the latest boe managed information?
    Thanks.
    Regards,
    Jinling.
    Edited by: jinling xiang on Nov 18, 2010 10:00 AM
    Edited by: jinling xiang on Nov 18, 2010 10:03 AM

    Not quite what I meant - I was suggesting you load the entity immediately after reading it from PU_B, or anytime before associating it into PU_A, so before the merge. What you have not shown though is any code on how you are obtaining IntegrationDepartment and integrating it into PU_A, or what you mean by it is returning a refreshed version of Topic. This problem could also be the result of how your provider works internally - this is a TopLink/EclipseLink forum post so I cannot really tell you why you get the exception other than it would be expected to work as described with EclipseLink as the JPA provider.
    So the best suggestions I can come up with are prefetch your entity, try posting in a hibernate forum, or try using EclipseLink/TopLink so someone here might be better able to help you with any problems that arise.
    Best Regards,
    Chris

  • TimesTen issue with connection string on a 64-bit system

    Hello dear members,
    I need to write code in vbscript that is creating a connection to oracle timesten database.
    The TimesTen database is located on a unix server, and the client application is on windows server.
    this is my code:
    Set mCnTT = CreateObject("ADODB.connection")
    mCnTT.ConnectionString = "Provider=MSDASQL.1;DSN=" & TT_DSN & ";" & "TTC_SERVER=" & TT_SERVER & ";" & "TTC_SERVER_DSN=" & TT_SERVER_DSN & ";" & "UID="& TT_UID & ";" & "PWD=" & TT_PWD & ";"
    mCnTT.Open
    When ran from 64-bit application it will work fine.(I tried it on a stand-alone vbscript)
    My problem is that I need this code to work on a 64-bit system server, BUT from a 32-bit application (QTP)
    and I'm getting the following error:
    "[Microsoft][ODBC Driver Manager] Data Source name not found and no default driver specified"
    any idea how to build a connection string that will work? Maybe use a differnet provider?
    is MSDAORA provider supporting timesten?
    any suggestions will be welcome!
    thanks,
    Rachel

    So you will be running a 32-bit application on 64-bit Windows connecting to 64-bit TimesTen on a Unix server; is that correct? Assuming that it is then you need to:
    1. Install the 32-bit TimesTen Windows client rather than the 64-bit TimesTen Windows client (a TT 32-bit client will work with a TT 64-server just fine)
    2. Use the 32-bit ODBC Administrator applet to configure the DSN rather than the default 64-bit applet
    Point (2) is especially important. 32-bit and 64-bit ODBC DDNs are held in completely different places in the Windows registry; 32-bit Apps can't see/use 64-bit DSNs and vice versa.
    None of this is directly related to TimesTen; this is all standard Windows 64-bit functionality and issues.
    Chris

  • Where to Hard Code the Connection String.....

    Hi,
    We just give the url to the user and when the user clik it.
    The Application form login will appear and user should login before they
    can use the system.
    When our DBA setup in the production they give us the url and
    when I click it the Database login screen appear before it goes to
    the Application form login.
    My problem is how to bypass that Database Login Screen and where to hardcode
    the connection string in which file in the server.
    Thanks.
    Regards,
    Jun

    We are hardcoding the userId (Connection) details in the formsweb.cfg, wil it create any issues to our security system.
    From the application link, i couldnt get the userid details, as all the other
    details like
    serverArgs="escapeParams=true module=frm_login.fmx userid= sso_userid=%20 sso_formsid=%25OID_FORMSID%25 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record= tracegroup= log= term=D:\Applns\OracleForms\forms\fmrweb_.res"
    separateFrame="true"
    splashScreen="no"
    background="no"
    lookAndFeel="Oracle"
    colorScheme="blue"
    serverApp="default"
    logo="false"
    imageBase="codebase"
    formsMessageListener=""
    recordFileName=""
    EndUserMonitoringEnabled=""
    EndUserMonitoringURL=""
    heartBeat=""
    were visible (view Source) but userid= sso_userid=%20, i think this points to
    basejini.htm, which doesnt contain the userid details ..
    am i correct .. please render your thoughts over this.
    Many Thanks
    Deepa
    Message was edited by:
    Deepa.ibs

  • Adworker using wrong JDBC connect string during upgrade to 12.1.3

    Our env
    APPS - 12.1.2 - running on SLES 11
    DB 11.2.0.3 - running on IMB System z
    We cloned PROD to a new host (instance was previously on DB host - debsdb01 and app host debsap03)
    The clone was made to debsdb04 - and app was reconfigured on debsap03
    I got the app to start up and run before taking it down to apply the 12.1.3 patch.
    However, in the process of the 12.1.3 patch, I see the following entry in the ADworker log files.
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname1.companyname.com)(PORT=1549)))(CONNECT_DATA=(SID=DEV3)))
    where as it should be
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    If I do an echo $AD_APPS_JDBC_URL on debspap03, it returns
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    Where are the ADWORKERS getting the old value of the DB host name?
    Any help would be appreciated.
    Thanks
    Edited by: 864641 on Sep 16, 2012 7:32 AM

    I believe figured out what the issue was.
    I was (am) running the patch session from a VNC session that was established during the previous version of this instance - so the previous connect string was being used.
    Once I killed the old VNC session and established a new one, I was able to retrieve the correct value for $AD_APPS_JDBC_URL from the command prompt.
    Yes - the value of the $AD_APPS_JDBC_URL was showing the old value in the old VNC session.
    Thanks for all of your input esp on a Saturday - when I thought I would have to wait until Monday to get this figured out.

  • Ultrasearch Connection string format issue

    Hi,
    I have been wrestling with Ultrasearch installation and keep encountering this error when I attempt to load the Ultrasearch Portlet in the 10G MT.
    oracle.ultrasearch.query.SearchException: WKG17005: connection failure: Io exception: Invalid connection string format, a valid format is: "//host:port/service_name"
    My data_sources.xml file is configured as follows:
         <data-source
         class="oracle.jdbc.pool.OracleConnectionCacheImpl"
         name="UltraSearchDS"
         location="jdbc/UltraSearchPooledDS"
         username="Ultrasearch"
         password="*******"
         url="jdbc:oracle:thin:@//hostname:1521:sid"
         inactivity-timeout="30"/>
    I have verified the setup of the Ultrasearch user in the database, and have verified the Ultrasearch.properties file setup.
    I'm not sure if TNS is setup correctly or if the DAD settings for the portal have something to do with this - I was not able to find any referecne to configuration of those files in the Oracle Documenation.
    Any help would be greatly appreciated.
    Regards,
    Roy

    Roy
    "jdbc:oracle:thin:@//hostname:1521:sid" isn't a valid url. You have to remove the "//", i.e. "jdbc:oracle:thin:@hostname:1521:sid".
    The syntax "//host:port/service_name" is used when to want to use a service name instead of SID.
    HTH
    Chris

Maybe you are looking for