Remote Connection to IFS

I am currently trying to find a way to connect to IFS remotely and obtain a LibrarySession.
So far I have a 9i client installed and I have a file called service.properties (altered copy of IfsDefault.properties) in an identical file structure to that of the IFS server ('D:\oracle\ora90\9ifs\settings\oracle\ifs\server\properties').
I have altered the service.properties to include the following lines.
IFS.SERVICE.JDBC.Schema=myschema
IFS.SERVICE.JDBC.User=myuser
IFS.SERVICE.JDBC.CredentialManagerIfsSchema=myCredentialManager
IFS.SERVICE.JDBC.DatabaseUrl=jdbc:oracle:oci8:@myDbUrl
My problem is when I try to run the follwing code to connect to the LibraryService.
public LibraryService startService()
String serviceName = getServiceName();
String schemaPassword = getSchemaPassword();
LibraryService service = null;
try
service = LibraryService.findService(serviceName);
catch (Throwable e)
e.printStackTrace();
return service;
All this returns is:
oracle.ifs.common.IfsException: IFS-20100: Unable to find service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20120: Invalid service name (serviceName)
     at oracle.ifs.server.S_LibraryService.findService(S_LibraryService.java:1328)
Can anybody help, as the documentation is a little light on this topic.
Its gotta be worth it for a beer right?

First off, what does your getServiceName() method return? It looks like it's returning "IfsDefault" which is bad, since your service configuration file is called "service.properties". (Meaning, the service name would be "service".)
Secondly, when you start up a new application (in a standalone JVM), you're not going to have any running LibraryService instances. So of course, LibraryService.findService is not going to find your service. So here's how you can obtain a connected LibrarySession to a 9iFS LibraryService:
public LibrarySession getLibrarySession( String username,
String password,
String service,
String schemaPassword )
throws IfsException
CleartextCredential cc =
new CleartextCredential(username, password);
ConnectOptions co = new ConnectOptions();
if( LibraryService.isServiceStarted(service) )
return LibraryService.findService(service).connect(cc, co);
else
return LibraryService.startService(
service, schemaPassword ).connect(cc, co);
}

Similar Messages

  • Connection to iFS from a remote station & .properties file syntax

    Hello,
    I want to make a java application (running on a simple NT workstation) that is able to connect onto the iFS-1.1.9 server (running on a different unix server).
    So I copied all the necessary jar and zip files from the iFS server, installed JDK1.1.8 (would it work with JDK 1.3 since I have iFS-1.1.9 ?), put all necessary jar/zip files in the classpath and I was able to compile the sample program given in the iFS dev guide.
    I know that I also need a "service.properties" file that is in oracle.ifs.server.properties directory in my CLASSPATH, that point is ok.
    The fact is that I don't have a clue about the exact syntax of that file. I only have as an example the standard servers.properties file on my iFS server itself, but the "DatabaseUrl" attribute is probably not the same because in my case the service is running on a remote machine...
    As a result, when I launch my java app on my workstation it says :
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
    oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
    So is there anything I am missing ? Where can I find the definition and syntax of all attributes in the .properties file ?
    Thanks in advance for any help.
    Regards,
    Arnaud.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Thanks to your advises, here is the simple properties file I created (only 3 lines) :
    User=IFSSYS
    DatabaseUrl=jdbc:oracle:oci8:haddock/tciDir
    CredentialManagerIfsSchema=IFSSYS$CM
    <HR></BLOCKQUOTE>
    OK, so there are two problems. First of all, I should have explained better. You absolutely need ALL of the other properties in the new service properties file you have created. What I should have said in the last post was that the above three properties are the only ones you need to CHANGE. What you should do is copy IfsDefault.properties from the iFS installation ($OH/ifs1.1/settings/oracle/ifs/server/properties) to your NT machine, and then EDIT those three properties as you have specified above. And make sure to put it in the CLASSPATH correctly, under the same directory hierarchy.
    The second problem is your JDBC database URL. The format for the OCI8 connect string using a TNS alias is as follows:
    jdbc:oracle:oci8:@<tns_alias>
    where <tns_alias> is a name you create with the Oracle Net8 Assistant (it should be on your NT machine under your Start menu: Oracle-<your_oracle_home>/Network Administration).
    You should read the Net8 Administration Guide for more information about TNS aliases and how to use "thick" (OCI8) JDBC.

  • Network-related or Instance-specfic error when attempting remote connection from SSMS

    Hello,
    I have installed SQL Server express on a Win7 desktop and want to connect to it via SSMS on a laptop. I have set up a SQL login on the desktop so I can login, but when I try to connect to the instance from the laptop via SSMS I get the error 26 with saying
    there is a network related or instance specific issue and that there is an error locating the Server/Instance specified.
    I am trying to connect to a named instance on the SQL Server on the win desktop. Remote connections are enabled and TCP 1433 and UPD 1434 ports are open in Windows Firewall. Antything else I should watch for?
    Thanks

    Hi MrDAndersen,
    According to your description, you come across the errors of pre-login handshake and wait operation timing out. Please help to post the full error log for further analysis.
    Based on my research, this issue could occur when .NET Framework 4.5 and non-IFS BSP/LSP are installed on the machine, and non-IFS BSP/LSP interferes with the call to Winsock.
    To work around the issue, you could use one of the two methods below.
    1. Determine whether a non-IFS BSP or LSP is installed. You could use the "netsh WinSock Show Catalog" command and examine every Winsock Catalog Provider Entry item that is returned. If the 0x20000 bit is clear (not set), it is a non-IFS BSP or
    LSP and remove the installed non-IFS Winsock LSPs. For more information about the process, please refer to the article:
    http://support.microsoft.com/kb/2568167
    2. Download and apply .NET Framework 4.5.2:
    http://www.microsoft.com/en-us/download/details.aspx?id=42643
    There are two connect items for your reference.
    https://connect.microsoft.com/VisualStudio/feedback/details/745004/ 
    https://connect.microsoft.com/VisualStudio/feedback/details/729323
    Best regards,
    Michelle Li

  • IFS-10620 when trying to connect to ifs (server side)

    hi!
    I have deployed the ifs-classes and -properties to the database (8.1.7).
    To call the Java-API I used following Class (out of the Oracle documentation)
    // Copyright (c) 2001 Oracle Corporation
    import oracle.ifs.beans.LibraryService;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.common.CleartextCredential;
    import oracle.ifs.common.ConnectOptions;
    import oracle.ifs.common.IfsException;
    import oracle.ifs.common.ParameterTable;
    public class HelloIFSWorld implements Runnable
    ParameterTable params=null;
    String username=null;
    String password=null;
    String servicename=null;
    String schemapassword=null;
    public HelloIFSWorld(String[] args)
    params=new ParameterTable(args);
    username=params.getString("user","system");
    password=params.getString("password","manager");
    servicename=params.getString("service","IfsDefault");
    schemapassword=params.getString("schemapassword","bravo");
    System.out.println("Running with arguments:");
    System.out.println("username="+username);
    System.out.println("password="+password);
    System.out.println("servicename="+servicename);
    System.out.println("schemapassword="+schemapassword);
    System.out.println("---------Results----------");
    public static void main (String[] args)
    new Thread(new HelloIFSWorld(args)).start();
    public void run()
    try
    System.out.println("Obtaining LibraryService.");
    LibraryService lsrvc=new LibraryService();
    System.out.println("LibraryService obtained for Oracle iFS version:"+lsrvc.getVersionString());
    System.out.println("Obtaining LibrarySession.");
    CleartextCredential cr=new CleartextCredential(username,password);
    System.out.println("Obtaining ConnectOptions.");
    ConnectOptions cop=new ConnectOptions();
    System.out.println("setting servicename.");
    cop.setServiceName(servicename);
    System.out.println("setting schemapassword.");
    cop.setServicePassword(schemapassword);
    System.out.println("connecting.");
    LibrarySession session=lsrvc.connect(cr, cop);
    System.out.println("LibrarySession obtained for user:"+session.getUser().getName());
    catch(IfsException e )
    e.printStackTrace();
    When I try to connect to the IFS this message comes up (call_HelloIFSWorld is a PLSQL-Wrapper-Function ...):
    SQL> exec call_HelloIFSWorld;
    Running with arguments:
    username=system
    password=manager
    servicename=IfsDefault
    schemapassword=bravo
    ---------Results----------
    Obtaining LibraryService.
    LibraryService obtained for Oracle iFS version: 1.1.5.0.0
    Obtaining LibrarySession.
    Obtaining ConnectOptions.
    setting servicename.
    setting schemapassword.
    connecting.
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    at java.sql.DriverManager.getConnection(DriverManager.java:477)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at oracle.ifs.server.LibraryConnection.<init>(LibraryConnection.java:235)
    at oracle.ifs.server.ConnectionPool.createLibraryConnection(ConnectionPool.java:576)
    at oracle.ifs.server.ConnectionPool.<init>(ConnectionPool.java:321)
    at oracle.ifs.server.S_LibraryService.<init>(S_LibraryService.java:912)
    at oracle.ifs.server.S_LibraryService.startService(S_LibraryService.java:1129)
    at oracle.ifs.beans.LibraryService.connectLocal(LibraryService.java:408)
    at oracle.ifs.beans.LibraryService.connect(LibraryService.java:280)
    at ifs_test.HelloIFSWorld.run(HelloIFSWorld.java:66)
    PL/SQL procedure successfully completed.
    SQL>
    In the IfsDefault.properties I used
    DatabaseUrl=jdbc:default:connection:
    as connection descriptor
    Now, what could be wrong?
    Roland

    I don't think 'malware' is your issue. And probably not accurate to begin with.
    PowerBook G4 would be running Tiger 10.4. I assume.
    Your router/modem etc might be what you see.
    When you log into your network equipment, harden it and make sure to change the defalt password, use something stronger (create and store in Keychain or another password manager).
    AS much as I favor security I don't know of any WORM or router exploit, but there are always people that will look to do remote login.
    If you ever use(s) a bittorrent client your IP got listed on P2P servers and you will see denial of service on your router/firewall.
    NAS hard drives, printers, anything that can be shared?
    And Apple has more than a few Networking Support articles.
    Make sure your modem etc have the latest firmware, too.

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (p

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
    the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
    The system cannot find the file specified
    Cannot connect to COWBOYS.
    Here are the technical details===================================
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    Error Number: 2
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    ===================================
    The system cannot find the file specified
    I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
    Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
    many times and cannot connect to my local DB. 
    How do I connect to my Local DB? 
    Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
    instance ID from name). Please uninstall then re-run setup to correct this problem.
    I would happily re install it, if it wasn't my 20th time.
    I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
    May be the solution is very simple, but I am too frustrated. 
    Some of the things I have tried:
    From a command prompt, enter one of the following commands:
    net start "SQL Server Agent (MSSQLSERVER)" OR 
    net start "SQL Server Agent(instancename)"(for instance)
    on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
    Details
    Product:
    SQL Server
    ID:
    2
    Source:
    MSSQLServer
    Version:
    10.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Version:
    9.0
    Component:
    SQLEngine
    Message:
    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. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Thinking of making the switch--Will I be able to remotely connect?

    I'm yearning to return to the Apple fold having left years ago after owning mutliple Apple ][ +'s, e's, c's and GS's. I've been in the PC environment for years but want to come back. I currently use PC's in three locations: at work, at my primary home and my secondary home. I work at a university and do a lot of work from home--my primary home during the academic year and my secondary home during the summer. I currently use Windows XP Pro and the Windows Remote Desktop allows me to connect directly to my work computer for everything, email, file manipulations, creation of Word, PowerPoint, etc., so to others it appears I'm in the office for everything--if only I could get it to answer my phone!
    It's time for me to replace my computer at the office and I have the opportunity to get a very capable Mac Pro and I really want to do this, but I can't without figuring out the work from home connection. I've read a little about the Apple Remote Desktop but it seems to be way more than I need--it's an IT systems administrator tool.
    I can probably upgrade at my primary home later this year but the opportunity to make the change at work will be near term as we approach the end of our fiscal year (30 June). And I probably cannot personally afford Macs at both my primary and secondary homes this year. So my question is two fold:
    1-for the long term, if I did have Macs at all three locations, could I remotely connect to my work desktop and work from home?
    2-for the short term, if I had a Mac Pro at work but Windows XP Pro machines at home, is there any technology that would allow me to connect from my Windows PCs at home to my Mac desktop at work?
    Sorry for the long post, but I'm trying to figure out how to come back...

    ARD is nothing more than VNC.
    1) Yes, but it will be PAINFULLY slow since you'll need to use VNC. ARD uses uncompressed (and with no encryption) VNC, but you can get 3rd party VNC servers and clients (Chicken of the VNC, Vine, etc.).
    2) Yes, you will need to use VNC. Again. Painful. Slow. Now, if you wanted to connect from a Mac to an XP Pro box, you could use Remote Desktop Connection (RDP) from Microsoft (http://www.microsoft.com/mac). That is fairly quick.

  • How many users for remote connection can I  create, from support SAP

    Dear all
    I have a doubt with how many users can be created in my system ERP 6.0 for the remote connection, for the error product  messages on the marketplace SAP,without this counts as user license.
    I have not found any notes or documents from SAP to explain this.
    I appreciate your help.
    Best Regards,
    Erika

    Ok...I will reply to myself. I can use more than 10 simultaneous connection, using vnc.

  • How to Configure Remote Connections To SQL Server 2008 R2 Express

    Post written June 10, 2010 and pertains to:
    SQL Server 2008 R2 Express on both my server and local machines: SQLX_SRV,
    SQLX_LOC
    SQL Server 2008 R2 Management Studio on both my server and local machines:
    MS_SRV, MS_LOC
    Windows Server 2008 R2 Enterprise installed on a Hyper-V VPS: WS
    SQL Server Configuration Manager on both my server and local machines:
    CMGR_SRV, CMGR_LOC
    Server Manager: SMGR
    I am connecting to my hosting server via Remote Desktop Connection: RDC
    I installed SQLX_SRV and MS_SRV on my hosting server and SQLX_LOC and MS_LOC on my local development machine.  I am able to use MS_LOC to connect to SQLX_LOC and to use MS_SRV to connect to SQLX_SRV.  However I am not able to use MS_LOC to connect
    with SQLX_SRV.  Here's what I have done so far:
    SMGR -> Configuration -> Windows Firewall to turn off the Windows Firewall for Domain, Private and Public profiles.  Obviously I'll change this later, but until I can connect I want to remove as many variables as possible.
    CMGR_SRV -> SQL Server Services to confirm that both SQL Server (SQLEXPRESS) and SQL Server Browser services were running.
    CMGR_SRV -> SQL Server Network Configuration -> Protocols for SQLEXPRESS to ENABLE the Shared Memory, Named Pipes, and TCP/IP protocols and DISABLE the deprecated VIA protocol.
    CMGR_SRV -> SQL Server Network Configuration -> Protocols for SQLEXPRESS -> double click TCP/IP to open the TCP/IP properties dialogue.  On the Protocol tab Enabled: Yes, Keep Alive: 30000, changed Listen All to No.  I've tried it both
    ways, but I've got six IP addresses on my server and I wanted to configure SQLEXPRESS to listen to only the first and primary IP.  On the IP Addresses tab went to IPALL and cleared the TCP Dynamic Ports field and entered 1433 in the TCP Port field. 
    For my first and primary IP Address I made sure that Enabled was Yes, I cleared the TCP Dynamic Ports field, and entered 1433 in the TCP Port field.  For all other IP Addresses Enabled was set to No and I cleared both the TCP Dynamic Ports and TCP Port
    fields.
    CMGR_SRV -> SQL Server Services -> SQL Server (SQLEXPRESS) right click and Restart.  This of course stopped and restarted my instance of SQLX_SRV enabling the TCP/IP configuration in the previous step to take effect.
    On my server, SQLX_SRV is the only instance of SQL Server running and so it's easy to hard wire it to the default port 1433.
    The instance name for both SQLX_SRV and SQLX_LOC is the default "SQLEXPRESS".  My server machine name is "SERVER1" on the EnglishBrains.com domain.  So the proper local name (local within the context of my remote server as connected via RDC) for
    my instance of SQLX_SRV would be:
    SERVER1\SQLEXPRESS 
    Note the use of a backslash NOT a forward slash. 
    Of course to connect remotely from my development machine, which is not on the same domain as my hosting server, I would need to specify the domain as well, so the SQL Server name becomes:
    SERVER1.EnglishBrains.com\SQLEXPRESS
    I must also use SQL Server Authentication.  Before I can use such a remote connection, however, there are still several configuration steps required.  So on my server (connected via RDC) I used MS_SRV to connect to SQLX_SRV using SERVER1\SQLEXPRESS
    for the server name and Windows Authentication.  Once connected I performed the following steps:
    MS_SRV -> right click the connected parent SERVER1\SQLEXPRESS instance node at the top -> Properties -> Security -> Server authentication: select "SQL Server and Windows Authentication mode".  This will enable connections using either type
    of authentication.
    Next, leaving the Server Properties dialogue open, Connections -> check "Allow remote connections to this server" box.
    Click OK to save these changes and close the Server Properties dialogue.
    MS_SRV -> Security -> right click Logins and select "New Login...", the Login - New dialogue opens.
    On the General page Enter a name for your new login
    Select SQL Server Authorization
    Enter and confirm a password
    Uncheck Enforce password expiration
    Select the default Database and Language
    On the ServerRoles page Public will be checked, also check SysAdmin.  This is probably not a good idea and I'll uncheck this as soon as I can connect to the SQLX_SRV.
    On the User Mapping page select the databases you want your new Login to access and enter the Default Schema of "dbo".
    At the bottom of the User Mapping page you'll see the Database Roles table.  Public will be selected by default.  Also select db_Owner.  Again this is probably not a good idea, and I'll refine this once I can connect.
    On the Status page confirm that "Grant" is checked under "Permission to connect to database engine" and "Enable" is checked under "Login".
    Click OK to save all changes and close the Login - New dialogue.
    With these steps completed you should now be able to use MS_SRV to connect to SQLX_SRV using SQL Server Authentication by supplying the name and password for your new Login.  I tried this and it worked fine.  Next I tried to use this same login
    remotely, that is I went to my local development machine and used MS_LOC to try and connect to SQLX_SRV by using
    SERVER1.EnglishBrains.com\SQLEXPRESS
    and opting for SQL Server Authentication and supplying the name and password of my new login.
    THIS DID NOT WORK??  Instead I get the following error message:
    Cannot connect to SERVER1.EnglishBrains.com\SQLEXPRESS.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
    For help, click:
    http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1
    If you follow the suggested help link, you are told:
    The SQL Server client cannot connect to the server.  This error could be caused by one of the following reasons:
    A specified SQL Server instance name is not valid.
    The TCP, or named pipes protocols are not enabled.
    The firewall on the server has refused the connection.
    The SQL Server Browser service (sqlbrowser) is not started.
    WRONG on all 4 counts!  The instance name IS valid.  Both TCP/IP and Named Pipes protocols are enabled.  The firewall has been shut down, so it is not relevant.  Finally the SQL Server Browser IS started.
    The next thing I tried was to circumvent discovery by the SQL Browser service by using the following syntax to specify the IP address and port directly when specifying the SQL Server name.
    tcp:68.71.134.186,1433
    Using this in the Server Name field I was able to use MS_SRV to successfully connect to SQLX_SRV (using SQL Server Authentication of course) with or without the SQL Browser service running. 
    However when I tried to connect from MS_LOC to SQLX_SRV using this same login (WITH SQL Browser service running just for good measure) it does not work??  I get the following error message:
    Cannot connect to tcp:68.71.134.186,1433.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=10060&LinkId=20476
    If you follow the help link you are told:
    "The SQL Server client cannot connect to the server. This error could occur because either the firewall on the server has refused the connection or the server is not configured to accept remote connections."
    However, the firewall has been shut down and the server HAS been configured to accept remote connections! 
    I confirmed that i could indeed Ping to 68.71.134.186  and running NetStat -a |find /i "listening" on the server shows that the server is indeed listening at 68.71.134.186 Port 1433 -- which is why I was able to connect to SQLX_SRV using MS_SRV with
    tcp:68.71.134.186,1433 .
    IN SUMMARY: Even though I can connect to my SQLEXPRESS instance multiple ways from the server itself, I cannot connect remotely from my development machine! 
    If anyone can help me figure out why I would be very, very grateful!

    My two cents to help you out on c# code example to configure the remote sql server express.
    Hope it helps. It works, but you have to be extra carefull to read it all and setup the server configuration and netsh commands; also the port fowarding on the router.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data.SqlClient;
    namespace sqlremoteconnection
    class Program
    static void Main(string[] args)
    // this is the local sql server connection
    // 192.168.1.101\SQLEXPRESS
    // now, the configuration for remote access:
    // activate SQL SERVER BROWSER - set it to start "automatic"; then START UP
    // SQL Server Configuration Manager
    // --> SQL SERVER BROWSER -> properties -> Service -> Start Mode -> automatic -> apply
    // --> Log On -> Start -> Ok
                // netsh firewall set portopening protocol = TCP port = 1433 name = SQLPort mode = ENABLE scope = all profile = CURRENT
                // netsh firewall set portopening protocol = UDP port = 1434 name = SQLPort mode = ENABLE scope = all profile = CURRENT
                // netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = any profile = PUBLIC
                // netsh advfirewall firewall add rule name = SQLPort dir = in protocol = udp action = allow localport = 1434 remoteip = any profile = PUBLIC
    // VERY IMPORTANT FOR REMOTE ACCESS: you have to add the rules on port fowarding
    // on the router!!!
    // TCP: 1433
    // UDP: 1434
    // or just a personal port like TCP 31433/UDP 31434
    // read carefully the netsh commands above
    // server name: 123.132.24.177\SQLEXPRESS
    // server name: anyurl.myftp.org\SQLEXPRESS,1433 <<-- regular port
    // server name: anyurl.myftp.org\SQLEXPRESS
    // server name: anyurl.myftp.org\SQLEXPRESS,31433 <<-- WOW different PORT here!!!
    SqlConnection myConnection = new SqlConnection(
    "user id=sa;" +
    "password=password_goes_here!;" +
    "server=anyurl.myftp.org\\SQLEXPRESS,31433;" +
    //"Trusted_Connection=no;" +
    "database=database_name_here; " +
    "connection timeout=30");
    try
    myConnection.Open();
    catch (Exception e)
    Console.WriteLine(e.ToString());
    try
    SqlDataReader myReader = null;
    SqlCommand myCommand = new SqlCommand("select * from mytable", myConnection);
    myReader = myCommand.ExecuteReader();
    while (myReader.Read())
    Console.WriteLine(myReader["tab01_name"].ToString());
    Console.WriteLine(myReader["tab01_age"].ToString());
    catch (Exception e)
    Console.WriteLine(e.ToString());
    try
    myConnection.Close();
    catch (Exception e)
    Console.WriteLine(e.ToString());
    Adelino Araujo

  • After restoring SharePoint farm backup ( The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connection)

    Hi,
    I have taken farm back and restore it in new UAT environment, while access to the main site getting the below error: 
    Error  
    An unexpected error has occurred. 
    Troubleshoot issues with Microsoft SharePoint Foundation. 
    Correlation ID: 866476f3-23dd-4e1e-97af-bffc62cc2d57 
    Date and Time: 7/15/2014 11:26:35 AM 
    When i checked in log i got below error
    System.Data.SqlClient.SqlException: A network-related or instance-specific
    error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40
    - Could not open a connection to SQL Server)    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj)     at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecu... 
    Thanks in advance
    Said Al Balushi

    Hi Wendy,
    i have checked all below points, every thing is fine but still i am getting the same error.
    Check SQL services are runing
    Check remote conenctions are enabled
    Check SQL Browser service is runing
    Check TCP/IP protocal enabled at SQL server
    Check out windows firewall setting
    Thanks,
    Said
     

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
    server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26- Error:Locating Server\instance Specified)
    How Can i solve this?

    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
    5. Test server connectivity with PING from the client machine
    6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine.  For example
    a. TELNET <server-name> 1433
    b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
    7. Check firewall settings if step 5 or 6 connectivity test fails
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Remote Connecting to a PC from my Mac

    Hi, I am wondering how I can essentially "screen share" with my friend using a pc. By this I mean they share their screen. I've been looking on the internet for answers and I have found multiple hits for connecting from PC to Mac but not the other way around. In addition, from what I have read, nothing was vert step-by-step. I heard about TightVNC so I told my friend to download it and that I would be able to remote connect to them using what I have in Leopard. However, it's at this point that I am completely clueless on how to actually establish that connection.
    I would like to know what the PC user needs to do and secondly what I would need to know/type in in order to connect to their pc and control their screen.
    Thanks

    When it says "computer:________" Connect. I put in the PC's ip address (I'm pretty sure it's the right one, I will ask again if not).
    Do they have a home router between their ISP connection and their PC? If so, their router needs to forward port 3389 from the Internet to their PC. And the IP address you need is the IP address assigned to the router by the ISP. They could access a web site such as <http://whatismyip.com> to find out their public IP address.
    1. Who's user name and Password? The PC User's or My account name and my password? If theirs, they don't have a name or password, they turn on the computer and the desktop is there, without having to log in. Do they need to have one (an account or w/e).
    The PC's Username and Password. And yes they do have a username and password. They may not remember what they setup, since they have it set to auto login. I do NOT know how to find out this information, as I am a Mac and/or Unix kind of guy
    2. Domain. This is optional is it not? Can the IP go in here?
    This is the Windows account domain, and nothing to do with IP addresses nor DNS. Mostly they have WORKGROUP or MSHOME as their domain. If it is optional, then ignore it.
    Here are some alternative approaches. Sign-up for a free LogMeIn.com account <http://logmein.com>. Have them install the LogMeIn.com server and associate it with the LogMeIn.com account you created. Now you can use your web browser (Safari) to login to the LogMeIn.com account, and from there connect to their PC's LogMeIn.com server.
    The current version of Skype allows screen sharing, however, I think it is a view ONLY connection. That is to say, you can watch their screen, but you can not control their keyboard, nor their mouse. <http://skype.com>
    Another choice might be a purchased copy of GoToMyPC (there are both Mac and PC versions).
    There is also TimBukTu from <http://www.netopia.com> which is also cross platform.
    VNC has also been mentioned. Again, VNC needs router port forwarding, only VNC needs port 5900 forwarded. TightVNC, UltraVNC, RealVNC are possible Window's VNC servers. JollysFastVNC (highly recommended), Chicken of the VNC, or Mac OS X built-in Screen Sharing (Finder -> Go -> Connect to Server -> vnc://ip.addr.of.pc). I only recommend the built-in Mac OS X Screen Shring if the other system is on the same high speed network, or if connecting to another Mac OS X system.

  • ERROR 14614 on Front End when testing with Remote Connectivity Analyzer

    Hello forum
    Does the Lync Remote Connectivity Analyzer not support 128 encryption?
    Reason im asking is the following:
    When I test my Lync edge server. I get the following error on the RCA result page:  RegisterException.
    After this error on the RCA, the event 14614 is logged on my Standard Edition Front end server.
    INFO:
    User authentication with NTLM protocol failed with error SEC_E_UNSUPPORTED_FUNCTION. This indicates a potential mismatch between security policy settings on the client and server computers.
    Cause: This error can occur if the settings in "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients" policy on the client computer are not the same as the settings in the "Network security: Minimum
    session security for NTLM SSP based (including secure RPC) servers" policy on this server.  By default, the "Require 128-bit encryption" setting is disabled for computers running Windows Server 2008, Windows Vista, Windows Server 2003,
    Windows 2000 Server, or Windows XP. For computers running Windows 7 or Windows Server 2008 R2, this setting enabled by default.
    Resolution:
    Ensure that the "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients" policy settings on the computers from which users log on are the same as "Network security: Minimum session security for NTLM SSP based
    (including secure RPC) servers" policy settings on this server.
    All of our Lync servers are running on Windows 2012 R2. So why this error from the RCA?

    Please check your settings on the client and on the server.
    I know, this is a old blog info, but it discribed the problem.
    http://blogs.technet.com/b/rogulati/archive/2011/04/30/lync-2010-ntlm-sec-policy-mismatch-error-cannot-sign-from-xp-clients.aspx
    http://blog.ucomsgeek.com/2011/01/lync-2010-ntlm-client-authentication.html
    regards Holger Technical Specialist UC
    Thanks for the answer, but in this case the "Client" is the Remote Connectivity Analyzer. So my question was, why is it not working with that? Does the RCA not support 128 bit?

  • Getting error when reading xml file from a remote connection

    Hi all,
    I want to read an xml file from a remote connection, not from my local machine.So when i am creating the data server i am giving the host name(that is the ip of the machine where the xml file is located), giving the proper username and password and giving the path of the xml file. When i am testing the connection the error that is coming:- "Connection failed and the xml file could not be created, verify that you have write permission in the directory"...
    but read write and execute permissions have been given on the directory as well as to the file...
    Regards,
    Sourav

    Hi Sutirtha,
    Initially I have started the agent.sh giving the agent name <agent name>and port number 20910 and defined it in the topology manager it is showing that the agent test is succesful. Then I tested a particular Data server against that agent and the test was successful.
    After this we had stopped the agent and restarted it.
    However now suddenly the testing against the remote agent is failing with the following excep:
    java.lang.Exception:
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.pm.s(pm.java)
         at com.sunopsis.graphical.l.pm.g(pm.java)
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.iz.actionPerformed(iz.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog.show(Unknown Source)
         at java.awt.Component.show(Unknown Source)
         at java.awt.Component.setVisible(Unknown Source)
         at com.sunopsis.graphical.l.pm.q(pm.java)
         at com.sunopsis.graphical.l.pm.<init>(pm.java)
         at com.sunopsis.graphical.frame.b.jh.bx(jh.java)
         at com.sunopsis.graphical.frame.bo.w(bo.java)
         at com.sunopsis.graphical.frame.bo.d(bo.java)
         at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    PS: do i have to modify any file after or before starting the odi agent
    Thnks and Rgds,
    Sourav
    Edited by: user13263578 on Mar 15, 2011 9:35 PM
    Edited by: user13263578 on Mar 15, 2011 9:48 PM

  • Web Matrix FTP Remote Connection Error - "Connection Error - Failure to get file list from server. An entry with the same key already exists."

    Does anyone have experience with this issue when connecting to a Linux FTP Web Server running a FTP Site?
    "Connection Error - Failure to get file list from server. An entry with the same key already exists."
    I cannot access the root directory of the ftp file server using Web Matrix 3. The site is .php based, and
    is accessible when connecting with FileZilla or Remote Connecting via FTP with Visual Studio.
    All sites have been deleted from Web Matrix, the user Application Data has been cleared and Web Matrix has been reinstalled.
    Issue Persists....
    Thanks in advance,
    Justin

    Turns out that the program leaves metadata in your app data folder that is not removed upon uninstallation of the software.
    This is incorporated to communicate with a file that uploaded into the ftp directory when publishing pages.

  • J2SE Adapter + Remote connection by XI PROXY

    Hi,
    1. When you use a decentralized Adapter Engine (called also J2SE Adapter Engine), you use the following URL address in order to start the Graphical User Interface (GUI) associated to A.E: <i>http://localhost:8200/adapter.html</i>
    2. You also have the possibility to use directly your own IP address instead of "localhost"... Thus you could use something like that: <i>http://999.88.77.666:8200/adapter.html</i>  (remote URL)
    3. If you use another IP address than yours, then you have the possibility to have a remote connection to another AE installed on another workstation... GREAT !
    BUT it's seems this tips is limited by a firewall action: I could only call "Target AE " if this tool is on the same network than mine... (<i><u>cf. point (0)</u></i> )
                                  Firewall
                                     ||          
      <======= Network 1 ==========> || <======= Network 2 =======>
                                     ||
    (0)  "My PC"  ---> "Target AE"  ||
                                     ||
    (1)  "My PC"  ----------------->||     "Target AE" 
                                     ||         T
    (2)               XI <---------------------+ 
                                     ||
                                     ||
    (3)  "My PC"                    ||     "Target AE" 
             |                       ||         T
             |                       ||         |
             +-------> XI ----------------------+ 
                      PROXY ?        ||
                                     ||          
      <======= Network 1 ==========> || <======= Network 2 =======>
                                     ||
                                  Firewall
    >> Exactly, my problem is the following one:
    - I have 2 networks separated by a firewall
    - This firewall is only openned between XI and the Target AE (<i><u>cf. point (2)</u></i> )
    - When I use directly my tips from "My PC" to "Target AE", I cannot reached it(according to me it's because of Firewall)... (<i><u>cf. point (1)</u></i> )
    THUS I would like to use the "openned door" between XI and "Target AE", in order to a have a complete remote connection from "My PC" to "Target AE" by passing across XI... (<i><u>cf. point (3)</u></i> )
    Not especially by using a scenario or a BPM, but directly by using HTTP address and / or a <b>PROXY</b> on XI. This Proxy will be used to call directly the "Target AE" by specifying an URL: <i>http://999.88.77.666:8200/adapter.html</i> 
    >> Is it possible to define a PROXY on XI in order to do such a connection between "My PC" and "Target AE"?
    Any help and any idea are welcome!
    Regards.
    Mickael

    Hi Mickael,
    Your Problem is more an Network Problem than an xi problem.
    With a ABAP Proxy and a HTTP Request it maybe works when you develop something like a browser. You must send a HTTP GET Request to the Target.
    Maybe you develop a J2EE application that is able to show the site in a iframe. But this i think is a redirict and will also block form your firewall.
    The easyiest way is to call your admin and he open ther ports for your Plain J2SE Adapter Engine
    Regards,
    Robin

Maybe you are looking for