Cannot create datasource for MS SQL Server

Hi,
I'm trying to create a datasource for MS SQL server and I get this error
Connection test failed.
Login failed for user 'gdahan'. The user is not associated with a trusted SQL Server connection.
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Lcom.microsoft.sqlserver.jdbc.SQLServerConnection;Ljava.lang.Object;Ljava.lang.String;Lcom.microsoft.sqlserver.jdbc.StreamError;Z)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(Lcom.microsoft.sqlserver.jdbc.TDSReader;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSParser.parse(Lcom.microsoft.sqlserver.jdbc.TDSReader;Lcom.microsoft.sqlserver.jdbc.TDSTokenHandler;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon
The database is in "Windows authentication" mode (not "SQL authentication") and I can connect to it through "Toad for MS SQL Server". In this case I don't need to specify any username or password because I'm already logged in as gdahan on my computer. But when I try to create the datasource I need a username and password. Is there any way to specify to the datasource that I want to connect via Authentication windows ?
I tried with BEA MS SQL server driver and Microsoft SQL Server 2005 JDBC Driver 1.2[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Guillaume Dahan wrote:
Hi,
I'm trying to create a datasource for MS SQL server and I get this error
Connection test failed.
Login failed for user 'gdahan'. The user is not associated with a trusted SQL Server connection.
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Lcom.microsoft.sqlserver.jdbc.SQLServerConnection;Ljava.lang.Object;Ljava.lang.String;Lcom.microsoft.sqlserver.jdbc.StreamError;Z)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(Lcom.microsoft.sqlserver.jdbc.TDSReader;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSParser.parse(Lcom.microsoft.sqlserver.jdbc.TDSReader;Lcom.microsoft.sqlserver.jdbc.TDSTokenHandler;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon
The database is in "Windows authentication" mode (not "SQL authentication") and I can connect to it through "Toad for MS SQL Server". In this case I don't need to specify any username or password because I'm already logged in as gdahan on my computer. But when I try to create the datasource I need a username and password. Is there any way to specify to the datasource that I want to connect via Authentication windows ?
I tried with BEA MS SQL server driver and Microsoft SQL Server 2005 JDBC Driver 1.2[See the complete documentation for MS's JDBC driver
for how/whether it can do Windows Authentication.
This is completely at the driver level, not WebLogic,
except that (of course) WebLogic would have to be
running on Windows.
Joe

Similar Messages

  • Can't add datasource for local SQL Server Express

    I can't get new datasource to connect to a local SQL Server Express (2008).
    On SSE, I enabled non-NTLM authentication, created an account specifically for CFServer, and was able to log into SQL Server through Management Studio. But the datasource still won't connect.
    When I enter computerName/SQLServerName for the Server, I get a message saying "...The requested instance is either invalid or not running."
    When I enter just SQLServerName, message says "Error establishing socket. Unknown host: SQLServerName."
    When I enter (local), I get a message saying "Error establishing socket. Unknown host: (local)"
    When I enter 127.0.0.1, message says "Error establishing socket to host and port: 127.0.0.1:1433. Reason: Connection refused: connect"
    I don't know why the first is considered invalid, or why the fourth is refusing connection. Am I forgetting something?

    I found the solution, which doesn't have to do with Coldfusion, but rather with configuring SQL Server for TCP/IP.  In case someone else ever stumbles upon this post with a similar problem, I wrote about it at http://forums.devshed.com/ms-sql-development-95/trying-to-connect-to-sql-server-on-localho st-1433t-958558.html.

  • Setting up datasource for MS SQL SERVER 2005 Express

    Can anyone offer me a little help
    I have SQL 2005 Express Edition installed on the same machine
    as CF
    I've been into it and enabled TCP/IP and NAMED PIPES
    I've set TCP port to 1433
    I've created a login account called CF and enabled both SQL
    and Windows authentication
    I've created a database called coldfusionDB
    I've set windows firewall to make an exception for that port
    In CF Administrator I'm using the supplied Microsoft SQL
    driver. Can someone tell me what to put in the fields for the
    datasource ? I have the following:
    Port = 1433
    DATABASE = coldfusionDB
    SERVER = DESKTOP\SQLEXPRESS
    the Error I'm getting back from CF Administrator is:
    * Connection verification failed for data source:
    cfclientstore
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver][Macromedia][SQLServer JDBC Driver]The requested instance is
    either invalid or not running.
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver][Macromedia][SQLServer JDBC
    Driver]The requested instance is either invalid or not running.

    Try:
    Server = localhost\sqlexpress
    Database = coldfusionDB
    Port = 1433
    Also verify that the SQL server service has started.
    These links may also help:
    http://www.adobe.com/go/kb400255
    http://www.mattwoodward.com/blog/index.cfm?event=showEntry&entryID=01930619-FD0A-4F02-31B1 BFC7D1D9A44C

  • Cannot create new connection to SQL Server

    When I try to create a connection from Oracle Sql Developer to SQL Server I get the following message:
    Status: Failure -I/O Error: SSO Failed; Native SSPI Library not loaded. Check the java.library.path system property.

    check if you installed JTDS driver. If not,
    - go to http://sourceforge.net/project/showfiles.php?group_id=33291,
    - extract the jar file,
    - copy it to a convenient location (SQL Developer subfolder would be preferable)
    - start sql developer and go to properties
    - expand Database, go to Third Party JDBC drivers and add the .jar file above.
    - recheck the connection.
    Good luck,
    Andrei

  • [Help] Cannot create datasource in Mapviewer

    Hello. When I deploy MapViewer in OC4J standalone and log as oc4jadmin, i cannot create datasource for it. I edited mapViewerConfig.xml like this:
    <map_data_source name="kuba"
    jdbc_host="localhost"
    jdbc_sid="orcl"
    jdbc_port="1521"
    jdbc_user="kuba"
    jdbc_password="!BazaOracle1"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    />
    After saving and restarting MapViewer, in datasource table there's no items. Any idea, what's wrong? Here's the log:
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig destroy
    FINER: destroying MapperConfig: connection manager, mapper pool and janitor t
    ad.
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperPool destroyAll
    WARNING: destroying ALL mapmaker instances.
    2010-12-02 12:05:19 oracle.lbs.mapserver.oms destroyMV
    WARNING: Oracle MapViewer shut down.
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig readVersion
    INFO: MapViewer server version: Ver11_B091229
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig loadConfigFile
    INFO: using default config file: D:\app\Kubix\product\11.2.0\dbhome_1\j2ee\ho
    applications\Map Viewer\web\WEB-INF\conf\mapViewerConfig.xml
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig checkSecuritySetti
    WARNING: dcsf:true
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.Dimmer startElement
    FINEST: found a datasource: kuba
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig scrambleConfigFile
    INFO: Passwords in the config file has been encrypted.
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig loadConfigFile
    FINER: Loading configuration file: D:\app\Kubix\product\11.2.0\dbhome_1\j2ee\
    e\applications\Map Viewer\web\WEB-INF\conf\mapViewerConfig.xml
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperPool destroyAll
    WARNING: destroying ALL mapmaker instances.
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig checkSecuritySetti
    WARNING: dcsf:true
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig setLoggingOptions
    INFO: Setting logging options for MapViewer
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig setLoggingOptions
    INFO: setting logging level to finest
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfi
    FINEST:
    Allowed IPs:
    Excluded IPs:
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig registerNSDataProv
    rs
    FINEST: Non-Spatial Data Provider registered: defaultNSDP
    2010-12-02 12:05:19 oracle.sdovis.SDataProviderMgr registerProvider
    WARNING: Spatial Provider shapefileSDP is already registered.
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig registerSDataProvi
    s
    FINEST: Spatial Data Provider registered: shapefileSDP
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfi
    FINEST: Data source kuba will get web user name from: J2EE_USER
    2010-12-02 12:05:19 oracle.sdovis.ds.NativeOracleDataSource <init>
    SEVERE: Connection Cache with this Cache Name already exists
    java.sql.SQLException: Connection Cache with this Cache Name already exists
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.j
    :138)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.j
    :175)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.j
    :240)
    at oracle.jdbc.pool.OracleConnectionCacheManager.createCache(OracleCo
    ctionCacheManager.java:188)
    at oracle.jdbc.pool.OracleDataSource.cacheInitialize(OracleDataSource
    va:301)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.j
    :284)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.j
    :179)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.j
    :159)
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSou
    .java:233)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:122
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.
    a:797)
    at oracle.lbs.mapserver.core.MapperConfig.loadMapViewerConfig(MapperC
    ig.java:1572)
    at oracle.lbs.mapserver.core.MapperConfig.loadConfigFile(MapperConfig
    va:609)
    at oracle.lbs.mapserver.core.MapperConfig.<init>(MapperConfig.java:36
    at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:131)
    at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:115)
    at oracle.lbs.mapserver.oms$ColdStart.run(oms.java:300)
    at java.lang.Thread.run(Thread.java:662)
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig createMappers
    SEVERE: Error creating NativeOracleDataSource.
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfi
    WARNING: MAPVIEWER-00011: Error creating a map data source.(kuba)
    2010-12-02 12:05:19 oracle.lbs.mapserver.core.MapperConfig loadConfigFile
    INFO: Map Recycling thread started.
    2010-12-02 12:05:19 oracle.lbs.mapserver.oms$ColdStart run
    INFO: *** Oracle MapViewer started. ***
    2010-12-02 12:05:20 oracle.lbs.mapcache.MapCacheServer restart
    INFO: Map cache server is restarted!
    2010-12-02 12:05:20 oracle.lbs.foi.FOIImageRecycleThread run
    FINE: FOI image recycle thread interrupted.
    2010-12-02 12:05:20 oracle.lbs.foi.FOIImageRecycleThread run
    FINE: FOI image recyle thread terminated.
    2010-12-02 12:05:20 oracle.lbs.foi.FOIServer init
    INFO: *** Oracle Feature of Interest (FOI) Server started. ***
    2010-12-02 12:05:20 oracle.lbs.foi.FOIImageRecycleThread run
    FINE: FOI image recycle thread interrupted.
    2010-12-02 12:05:20 oracle.lbs.foi.FOIImageRecycleThread run
    FINE: FOI image recyle thread terminated.
    10/12/02 12:05:20 Message:MAPVIEWER-00019: Specified data source does not exist.
    Thu Dec 02 12:05:20 CET 2010
    Severity: 0
    Description:
    10/12/02 12:05:20 Message:MAPVIEWER-00019: Specified data source does not exist.
    Thu Dec 02 12:05:20 CET 2010
    Severity: 0
    Description:
    10/12/02 12:05:21 Message:MAPVIEWER-00019: Specified data source does not exist.
    Thu Dec 02 12:05:21 CET 2010
    Severity: 0
    Description:

    Does restarting oc4j make any difference?

  • Need Guide to create a table in SQL Server and Process data for JDBC

    Dear All,
    Scenario:JDBC to JDBC
    I need to practice JDBC to JDBC scenario and for that i need to create a table in SQL server for sender ,receiver and update  i have installed SQL Server and no idea about creation of table and Connection string for PI.
    I want you to explain each and every step for the Table Creation ,Driver and connection string.
    Thanks in Advance.

    Try searchin in the forum and then google. This forum is not for teaching the basics.
    VJ

  • Cannot establish connection - JDBC driver for MS SQL server 2000

    Hi,
    We are facing problems in connecting to SQL server 2000.
    We have installed the latest version of the driver from followin link and following
    https://websmp108.sap-ag.de/msplatforms    > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    We have given the following entries in our communication channel:
    JDBC Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection:  jdbc:sqlserver://<SQLserver IP>:1433;databaseName=production_info
    Please let us know the procedure to find if the JDBC driver for SQL 2000 is installed from our SAP XI.
    ERROR DETAILS:
    Error during database connection to the database URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info': SAPClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver'
    Please help.
    Regards,
    Rehan

    Hi Chris,
    We have used the same because we have downloaded the driver from following location
    https://websmp108.sap-ag.de/msplatforms ;   > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    I have tried with both "com.microsoft.jdbc.sqlserver.SQLServerDriver"; and "com.microsoft.sqlserver.jdbc.SQLServerDriver";, but still I am facing the same error.
    Service market place has given the driver as "JDBC Driver for MS SQL Server (Version 3.70.10)", is there a way to find out if it is for 2000 or 2005?
    Thanks for your reply.
    Regards,
    Rehan

  • Error by creating a DB connection(SQL Server) in BW

    Hi All,
    I am creating a SQL Server datasource in BW, the DB informaiton on sql server is:
       Server : 10.58.0.28
       DB Name:  master
    I have a user "dongb" created in that DB with administration authority.
    What I input by creating data source in BW is:
    DB Connection      MSSQL
    DBMS                  MSS
    User Name           dongb
    DB password         ****/***
    Conn. info              MSSQL_SERVER=10.58.0.28 MSSQL_DBNAME=master
    while I get "Source System can not be accessed", can someone tell me what's wrong?
    And another question is what should I input into "User Name" & "DB Password" if I log into SQL Server using windows authorization? thanks  very much!
    Best Regards,
    Bin

    Hi Bin,
    Is the DBSL installed for the SQL server. Check this link for DB Connect:
    http://help.sap.com/saphelp_nw04/helpdata/en/a1/89786c3df35c4ea930a994e884bb4c/frameset.htm
    Bye
    Dinesh

  • Using DB Adapter for MS SQL Server 2005  SP in OSB 11g.

    Hi All,
    I have a requirement to create a DB Adapter for MS SQL Server Stored Procedure in JDeveloper and export the Adapter file to OSB 11g. I have Created the Adapter and imported it into OSB 11g successfully. Created the Datasource and Connection pool also in console.
    The problem is while trying to execute the created business Service, I am getting the error as below,
    <Oct 26, 2012 12:20:25 PM IST> <Error> <JCATransport> <BEA-381967> <Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/Test/CheckAppID/WL_Driver/CheckAppId_WL_Driver [ CheckAppId_WL_Driver_ptt::CheckAppId_WL_Driver(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'CheckAppId_WL_Driver' failed due to: Unimplemented string conversion.
    Conversion of JDBC type to String is not supported.
    An attempt was made to convert a Java object to String using an unsupported JDBC type: .
    ; nested exception is:
         BINDING.JCA-11804
    Unimplemented string conversion.
    My XSD is ,
    <element name="InputParameters">
    <complexType>
    <sequence>
    <element name="application_id" type="int" db:index="1" db:type="INT" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="OutputParameters">
    <complexType>
    <sequence>
    <element name="RowSet0" type="db:RowSet0_RowSet" db:type="RowSet0" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    <element name="RowSet1" type="db:RowSet1_RowSet" db:type="RowSet1" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="RowSet1_RowSet">
    <sequence>
    <element name="RowSet1_Row" minOccurs="0" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="cde" type="int" db:type="INT" minOccurs="0" nillable="true"/>
    <element name="msg" db:type="NVARCHAR" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="255"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    <complexType name="RowSet0_RowSet">
    <sequence>
    <element name="RowSet0_Row" minOccurs="0" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="aaa" type="boolean" db:type="BIT" minOccurs="0" nillable="true"/>
    <element name="bbb" db:type="NVARCHAR" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="10"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    I don't know why there is a datatype conversion error.
    Help me in resolving this.
    Regards,
    Nataraj R.

    Hi,
    I believe NVARCHAR is an unsupported type...
    The following document lists the supported data types for SQL Server stored procedures and functions... NVARCHAR is not in the list... :-(
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#CHDEBEEE
    Hope this helps...
    Cheers,
    Vlad

  • JDriver for microsoft sql server 2000

    "Hi, Currently, I am using your JDriver for microsoft SQL server 2000 for evaluation purposes and confront the following problem: (1) using utils.dbping C:\student\work>java utils.dbping mssqlserver4 sa "" ywu**** Success!!! ****You can connect to the database in your app using: java.util.Properties props = new java.util.Properties(); props.put("user", "sa"); props.put("password", ""); java.sql.Driver d = (java.sql.Driver)Class.forName("weblogic.jdbc.mssqlserver.Driver").newInstance(); java.sql.Connection conn = d.connect("jdbc:weblogic:mssqlserver4:ywu", props) // This mode is superior, especially in serverside classes because // it avoids DriverManager calls are class synchronized, and will // bottleneck any other JDBC in the server, even already-running // connections, because all JDBC drivers use DriverManager.println() // to log info and exceptions, and that call is also class synchronized. // For repeated connecting, a single driver instance can be re-used.**** or **** Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance(); java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4:ywu", "sa", "");**** or **** java.util.Properties props = new java.util.Properties(); props.put("user", "sa"); props.put("password", ""); props.put("server", "ywu"); Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance(); java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4", props);It seems that everything is fine, but(2) set up connection pool to MS SQL server, the weblogic server prints out error messages during the server goes up:<Jun 18, 2001 5:51:22 PM EDT> <Error> <JDBC Connection Pool> <Cannot startup connection pool "newSQLconn" weblogic.common.ResourceException:Could not create pool connection. The DBMS driver exception was:Driver

    Hi,
    I was having the same problem and to solve it u have to point your classpath to
    mssqlserver4v65.jar in the lib directory of your wl installation, in my case i
    did:
    set classpath=%classpath%;%WL_HOME%\lib\mssqlserver4v65.jar
    I hope it helps.
    Yuanqing Wu <[email protected]> wrote:
    "Hi, Currently, I am using your JDriver for microsoft SQL server 2000
    for evaluation purposes and confront the following problem: (1)
    using utils.dbping C:\student\work>java utils.dbping
    mssqlserver4 sa "" ywu**** Success!!! ****You can connect to the database
    in your app using: java.util.Properties props = new java.util.Properties();
    props.put("user", "sa"); props.put("password", ""); java.sql.Driver
    d = (java.sql.Driver)Class.forName("weblogic.jdbc.mssqlserver.Driver").newInstance();
    java.sql.Connection conn = d.connect("jdbc:weblogic:mssqlserver4:ywu",
    props) // This mode is superior, especially in serverside classes because
    // it avoids DriverManager calls are class synchronized, and will
    // bottleneck any other JDBC in the server, even already-running //
    connections, because all JDBC drivers use DriverManager.println() //
    to log info and exceptions, and that call is also class synchronized.
    // For repeated connecting, a single driver instance can be re-used.****
    or
    **** Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
    java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4:ywu",
    "sa", "");**** or **** java.util.Properties props = new java.util.Properties();
    props.put("user", "sa"); props.put("password", ""); props.put("server",
    "ywu"); Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
    java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4",
    props);It
    seems that everything is fine, but(2) set up connection pool to MS SQL
    server, the weblogic server prints out error messages during the server
    goes up:<Jun 18, 2001 5:51:22 PM EDT> <Error> <JDBC Connection Pool>
    <Cannot startup connection pool "newSQLconn" weblogic.common.ResourceException:Could
    not create pool connection. The DBMS driver exception was:Driver

  • Cannot Create Datasource through Java Application

    Hi All,
    I tried to create a datasource through my Java application
    JDBCDescriptor jdbcDescriptor = new JDBCDescriptor();
              jdbcDescriptor.setDataSourceName("ds_venky");
              jdbcDescriptor.setDriverClassName("org.gjt.mm.mysql.Driver");
              jdbcDescriptor.setDriverName("mysql");
              jdbcDescriptor.setInitConnections(2);
              jdbcDescriptor.setMaxConnections(10);
              jdbcDescriptor.setPassword("xxxx");
              jdbcDescriptor.setURL("jdbc:mysql://172.22.76.8:3306/wise");
              jdbcDescriptor.setUsername("xxxx");
    Properties ctxProp = new Properties();
                   ctxProp.put(
                        Context.INITIAL_CONTEXT_FACTORY,
                        "com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   ctxProp.put(Context.PROVIDER_URL, "myServerName:50004");
                   ctxProp.put(Context.SECURITY_PRINCIPAL, "xxxx");
                   ctxProp.put(Context.SECURITY_CREDENTIALS, "xxxx");
                   InitialContext context = new InitialContext(ctxProp);
                   DataSourceManager dsm =
                        (DataSourceManager) context.lookup("dbpool");
                   dsm.createDataSource("ds_venky", jdbcDescriptor);
    But i get the following exception
    1.5#000F20FEA14B0053000000000000107800041D9052026725#1158405595218#System.err#sap.com/DataSourceSAPEAR#System.err#Guest#2#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###0#
    #1.5#000F20FEA14B0053000000010000107800041D905202B73E#1158405595234#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###1#
    #1.5#000F20FEA14B0053000000020000107800041D905202D985#1158405595249#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###2#
    #1.5#000F20FEA14B0053000000040000107800041D905205BA71#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###java.io.FileNotFoundException: .
    temp
    deploy
    1158405595421 (The system cannot find the file specified)#
    #1.5#000F20FEA14B0053000000050000107800041D905205BD49#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at java.io.FileInputStream.open(Native Method)#
    #1.5#000F20FEA14B0053000000060000107800041D905205BDD6#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at java.io.FileInputStream.<init>(FileInputStream.java:106)#
    #1.5#000F20FEA14B0053000000070000107800041D905205BE3C#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.uploadSAPPropertiesFile(DeployUtilTransaction.java:493)#
    #1.5#000F20FEA14B0053000000080000107800041D905205BEA4#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.uploadSpecialEARFiles(DeployUtilTransaction.java:480)#
    #1.5#000F20FEA14B0053000000090000107800041D905205BF0B#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:320)#
    #1.5#000F20FEA14B00530000000A0000107800041D905205BF74#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:296)#
    #1.5#000F20FEA14B00530000000B0000107800041D905205BFD8#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:304)#
    #1.5#000F20FEA14B00530000000C0000107800041D905205C03E#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:335)#
    #1.5#000F20FEA14B00530000000D0000107800041D905205C0A5#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3008)#
    #1.5#000F20FEA14B00530000000E0000107800041D905205C109#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:520)#
    #1.5#000F20FEA14B00530000000F0000107800041D905205C16C#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:253)#
    #1.5#000F20FEA14B0053000000100000107800041D905205C1E2#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.createDataSource(DataSourceManagerImpl.java:317)#
    #1.5#000F20FEA14B0053000000110000107800041D905205C248#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.dbpool.deploy.DataSourceManager_Stub.createDataSource(DataSourceManager_Stub.java:504)#
    #1.5#000F20FEA14B0053000000120000107800041D905205C2AC#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.CreateDataSource.<init>(CreateDataSource.java:50)#
    #1.5#000F20FEA14B0053000000130000107800041D905205C30D#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at jsp_Create1158405589640._jspService(jsp_Create1158405589640.java:11)#
    #1.5#000F20FEA14B0053000000140000107800041D905205C36F#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:467)#
    #1.5#000F20FEA14B0053000000150000107800041D905205C3D3#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:181)#
    #1.5#000F20FEA14B0053000000160000107800041D905205C436#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#
    #1.5#000F20FEA14B0053000000170000107800041D905205C498#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)#
    #1.5#000F20FEA14B0053000000180000107800041D905205C4F9#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)#
    #1.5#000F20FEA14B0053000000190000107800041D905205C55A#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:337)#
    #1.5#000F20FEA14B00530000001A0000107800041D905205C5BB#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:315)#
    #1.5#000F20FEA14B00530000001B0000107800041D905205C61E#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:815)#
    #1.5#000F20FEA14B00530000001C0000107800041D905205C67F#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:238)#
    #1.5#000F20FEA14B00530000001D0000107800041D905205C6E1#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)#
    #1.5#000F20FEA14B00530000001E0000107800041D905205C751#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)#
    #1.5#000F20FEA14B00530000001F0000107800041D905205C7B8#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)#
    #1.5#000F20FEA14B0053000000200000107800041D905205C81C#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)#
    #1.5#000F20FEA14B0053000000210000107800041D905205C87F#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)#
    #1.5#000F20FEA14B0053000000220000107800041D905205C8DE#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at java.security.AccessController.doPrivileged(Native Method)#
    #1.5#000F20FEA14B0053000000230000107800041D905205C940#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)#
    #1.5#000F20FEA14B0053000000240000107800041D905205C9A1#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:151)#
    #1.5#000F20FEA14B0053000000280000107800041D90520A54F1#1158405595734#com.sap.engine.services.dbpool.deploy.ContainerImpl#sap.com/DataSourceSAPEAR#com.sap.engine.services.dbpool.deploy.ContainerImpl#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###ContainerImpl.startDataSources(): Cannot create DataSource: ds_venky. Reason: java.lang.ArrayIndexOutOfBoundsException: -1#
    #1.5#000F20FEA14B00530000002A0000107800041D90520A9B54#1158405595749#com.sap.engine.services.deploy#sap.com/DataSourceSAPEAR#com.sap.engine.services.deploy#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error#1#/System/Server#Java#deploy_5029##Exception in operation startApp with application sap.com/ds_venky.#2#startApp#sap.com/ds_venky#
    #1.5#000F20FEA14B00530000002B0000107800041D90520A9FA9#1158405595749#com.sap.engine.services.deploy#sap.com/DataSourceSAPEAR#com.sap.engine.services.deploy#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error#1#/System/Audit#Java###Exception #1#com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception in operation startApp with application sap.com/ds_venky.
    Any kind of help will be appreciated

    Hi,
    I have found the solution for this thread and have posted a blog on how to create data sources. Please find the link below
    /people/venkatesh.ramachandran/blog/2006/10/19/how-to-create-and-remove-data-source-on-sap-was-j2ee-engine-dynamically-through-java
    Regards,
    Venkatesh

  • How to create a database in SQL Server Express 2014 to be used with LV Database Toolkit

    I use LV Database Toolkit, which by default uses Jet database. Now I want to use SQL database with LV Database Toolkit. I have downloaded and installed "SQL Server 2014 Express with Tools" in my Labview Laptop. Now I want to create a database in SQL Server, because I think it is a requirement for creating a "udl connection file" (*.udl file). Please help me!
    Solved!
    Go to Solution.

    I made a database whose path is: C:\Program Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\depot1
    I tried to make .udl connection file, but when I click on "test connection" with the provider: "OLEDB Provider for Microsoft SQL Server" I get the Error "UDL Connection File Failure" (attached below)
    When I tried to make the .udl connection file with the provider "Microsoft SQL native Client 11.0" and when I click on "Test Connection" I get the Error" UDL Native Client_1"& " UDL Native Client_2".
    Please help!
    Thanks!
    Attachments:
    UDL Connection File Failure.png ‏78 KB
    UDL with Native Client_1.png ‏702 KB
    UDL with Native Client_2.png ‏714 KB

  • How to detect whether a database was created by Restoring (from SQL Server Enterprise Manager) or by Attaching (from SQL Server Enterprise Manager)

    Ours is a SQL Server Express Edition 2008-R2 - Windows Forms based application. We have a backup/restore utility provided with our software which performs some logical checks before restoring a backup to ensure that the backup is functionally valid.
    However, our clients often use the SQL Server Enterprise Manager utility to 1) Restore backups or 2) Attach data files (kept aside before formatting) directly. This type of action bypasses all our functional checks and allows the user to restore an invalid
    backup.
    We want to detect that a database was restored/attached and may be we will stop the software from loading if such a thing happened. We think that this information (attach/restore) should be available within some table of SQL Server itself but don't know the
    right location/query.
    If any change is required in our software to achieve the above, we are ready to do the same too, e.g. may be we need to store some data at some point of time to make the detection happen, please advise.
    So, how can we detect that
    A database backup was restored using SQL Server Management Utility
    (Note: MSDB.Restorehistory may not be a good option as we have often found this table blank for unknown reasons even after backup was restored and just in case user restores the MSDB from MSDB backup or MSDB template due to a data corruption, may be due to
    abnormal shutdown of system, then the RestoreHistory table data is gone)
    A database was created by attaching a data/log file using SQL Server Management Utility
    Any help in this regard is highly appreciated.
    Rajarshi
    ProjectServer 2007 Beginner

    Hi,
    For Enterprise edition, we can enable Auditing to audit BACKUP_RESTORE_GROUP in a server audit specification. However, SQL Server audit (fine-grained auditing) feature is not available for the SQL Server Express.
    Features Supported by the Editions of SQL Server 2008 R2
    http://msdn.microsoft.com/en-us/library/cc645993(v=sql.105).aspx
    When a database is attached, SQL Server ERRORLOG will record “Starting up database 'DBNAME'.”
    Using ALTER DATABASE OFFLINE and ONLINE will re-open the database files under the SQL Server, the SQL Server error log also contains the following informational message: “Setting database option ONLINE to ON for database 'DBNAME'.”
    Additional information:
    SQL Server Audit (Database Engine)
    http://msdn.microsoft.com/en-us/library/cc280386.aspx
    Tracy Cai
    TechNet Community Support

  • Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error

    Dear All,
    I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server).  When I try to test the dblink connection, I get the following error.
    I issued select * from dual@xyz;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
    ORA-02063: preceding 2 lines from xyz
    28546. 0000 -  "connection initialization failed, probable Net8 admin error"
    My setup is the following.
    1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
    2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
    3. I use the same listener.ora file for both the db and the gateway.
    4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    mssql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME=db.abc.com.tw)
          (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME=orcl)
    SID_LIST_mssql =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME=dg4msql)
          (ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
          (PROGRAM_NAME=/u01/gateway/bin/dg4msql)
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.abc.com.tw)
    dg4msql  =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
        (CONNECT_DATA=(SID=dg4msql))
        (HS=OK)
    /u01/gateway/dg4msql/admin/initdg4msql.ora
    HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    dblink was created using statement below.
    CREATE DATABASE LINK "xyz.abc.COM.TW"
    CONNECT TO SA IDENTIFIED BY
    USING 'dg4msql';
    Couple more things, that I have done to check the work above.
    [oracle@db admin]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
    ^C
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1818ms
    rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
    [oracle@db admin]$ tnsping dg4msql
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
    OK (0 msec)
    [oracle@db admin]$ lsnrctl status mssql
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     mssql
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                11-SEP-2013 10:09:46
    Uptime                    0 days 0 hr. 44 min. 37 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
    1. When installing the gateway, it asks to run the root.sh script.  the root.sh script as for the following.
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    is the above answer correct?
    Thanks for reading.

    Dear Klaus,
    I did start a new SQL*PLUS session
    The output of  /u01/gateway/bin/dg4msql is
    [oracle@db log]$ /u01/gateway/bin/dg4msql
    Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production  Built with
       Oracle Database Gateway for MSSQL
    The output of env is
    HOSTNAME=db.abc.com.tw
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    ORACLE_UNQNAME=orcl
    TMPDIR=/tmp
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    USER=oracle
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
    ORACLE_SID=orcl
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOSTNAME=db.abc.com.tw
    MAIL=/var/spool/mail/oracle
    PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    HISTCONTROL=ignoredups
    SHLVL=1
    HOME=/home/oracle
    TMP=/tmp
    LOGNAME=oracle
    QTLIB=/usr/lib64/qt-3.3/lib
    CVS_RSH=ssh
    CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    _=/bin/env

  • Full Database Backup in DB13 for MS SQL Server databases

    Hello,
    We have some SAP systems using the MS SQL Server database. I want to know if it is possible to setup the Full Database Backup option in transaction DB13 to store the files in a hard disk space.
    I already did this type of configuration in SAP systems in Oracle databases and for this I used the init<SID>.sap where we can put all the configuration, for instance the disk path where we want to save the backup files! But for MS SQL Server databases, in DB13, I don´t know how to do that, when I add the "Full Database Backup" option in DB13, this show me some options but only for tape, but I don´t want to store the backup files in tapes, I want to store/save the files on the server disk itself or else to an external disk but I don´t see where I can set this way of storage!
    This is what you see in DB13 (when using a MS SQL Server database) in "Full Database Backup" and as you see I only have options for TAPE not for a disk or other type of storage! How can I do that? (if that is possible):
    Can you help me please?
    Kind regards,
    samid raif

    Hello Raja
    Sorry for the delay of my answer! Many thanks for that tip, it helps a lot and it solve the last error/problem that I reported here, in fact, the problem was we had named the device with two words containing a space. So we removed that space from the backup device (in SQL management studio) with one word only and the job runs successfully without any errors!
    It works in Development and Quality systems but in our Production system (AM1) the Full backup option in DB13 stopped with the following error, in fact the error is on verification of backup, it means that the Full backup finished with success, but when it does the backup verification, the job in DB13 stops with an error, the following one:
    ***************************** SQL Job information   ******************************
    Jobname:    SAP CCMS Full DB Backup of AM1 [20140417103726-4-103726]
    Type:       TSQL
    DB-Name:    AM1
    For Run:    20140417  10:37:26
    **************************** Job history information  *****************************
    Stepname:   CCMS-step 1
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_backup_databases @dbList=
                "AM1",@r3Db="AM1",@bDev="fullprd",@expDays= 27,@jobName= "SAP CCMS Ful
                l DB Backup of AM1 [20140417103726-4-103726]",@bkupChecksum="Y",@bkupT
                ype="F",@nativeBkup="N",@exeDate = "20140417103726",@bkupSim = "N",@fo
                rmat = 0,@init = 0,@bkupDb = "AM1",@unload = 0,@exeStmt = @exeStmt OUT
                PUT
    Status:     (success)
    Message:    3014
    Severity:                                                                                                                                                                                                                                                    0
    Duration:   4  hours(s)  41 min(s) 22 sec(s)
    Last msg:   Executed as user: am1. Processed 7434328 pages for database 'AM1', fil
                e 'A01DATA1' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 315
                1504 pages for database 'AM1', file 'A01DATA2' on file 1. [SQLSTATE 01
                000] (Message 4035)  Processed 4574152 pages for database 'AM1', file
                'A01DATA3' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 44363
                92 pages for database 'AM1', file 'A01DATA4' on file 1. [SQLSTATE 0100
                0] (Message 4035)  Processed 25598 pages for database 'AM1', file 'A01
                LOG1' on file 1. [SQLSTATE 01000] (Message 4035)  BACKUP DATABASE succ
                essfully processed 19621974 pages in 16881.638 seconds (9.521 MB/sec).
                 [SQLSTATE 01000] (Message 3014).  The step succeeded.
                        <------------- End of Job Step History --------------->
    Stepname:   CCMS-step 2
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_verify_backups @nativeBku
                p = "N",@bkupSim = "N",@bDev = "fullprd",@bkupChecksum = "Y",@exeDate
                = "20140417103726",@unload = 1,@dbCnt =1,@exeStmt = @exeStmt OUTPUT
    Status:     (failure)
    Message:    3201
    Severity:                                                                                                                                                                                                                                                   16
    Duration:   0  hours(s)  8  min(s) 30 sec(s)
    Last msg:   Executed as user: am1. Cannot open backup device 'fullprd(\\10.0.0.45\
                backupsap\prd\prdfullqua.bak)'. Operating system error 1265(error not
                found). [SQLSTATE 42000] (Error 3201).  The step failed.
                        <------------- End of Job Step History --------------->
    **************************** Job history information  *****************************
    Can you help me please with this one!? Can you tell me why in verification it stops with that error?
    Kind regards,
    samid raif

Maybe you are looking for

  • How do you rotate a pdf document in preview?

    There is a book where the double pages are turned. How do you rotate them so that you can read them in preview?

  • [SOLVED]Matplotlib doesn't build (perhaps Python issue)

    Hi there, when trying to install `python2-matplotlib-noqt` I ve run into the following error: Traceback (most recent call last): File "setup.py", line 155, in <module> result = package.check() File "/tmp/yaourt-tmp-alex/aur-python2-matplotlib-noqt/sr

  • How to connect to external database

    Hi all,   Can any one help me out to connect to database from ABAP using the Exec sql... Endexec. statements..   And also explain me whats use of DBCON table?. May be materials like things.. Thanks in Advance, Ramkumar.K

  • AIR 1.5 Install problem

    Hi I have the same problem as many others but I could not find my solution. I get this error when trying to install AIR 1.5: An error occurred while installing Adobe AIR. Installation may not be allowed by your administrator I have 1.1 installed when

  • Http System and User Mapping

    hi, I have created a Http system and mapped the user ID and password for the login page of that System. Now when i created a URL Iview for a particular application using the System defined above and after passing the username and password parameters