Data Loss Prevention

 View Only
  • 1.  SQL Database Scan Failed

    Posted Oct 13, 2011 06:37 PM

    Running DLP v.11.1.0.07015

    I got Endpoint, Exchange, File System discovery scans to work, but having trouble with the SQL scan.

    SQL Scan fails with the error:  "The crawler threw an exception. Check the logs for more details "

    I've exported the system logs Network Discover Server, looked at the logs, but uncertain what information to look for. 

    The Discover Trace log shows:

    13/Oct/11:11:35:49:531-1000 [INFO] (DISCOVER_TRACE.500) Received start command for Discover Manager: DiscoverControlManager_1 for Walk ID: 149
    13/Oct/11:11:35:49:531-1000 [INFO] (DISCOVER_TRACE.503) Transitioning to state LOADING_WALK
    13/Oct/11:11:35:49:531-1000 [INFO] (DISCOVER_TRACE.503) Transitioning to state CRAWLING_AND_DETECTING
    13/Oct/11:11:35:49:531-1000 [INFO] (DISCOVER_TRACE.503) Transitioning to state COMPLETING_CRAWL
    13/Oct/11:11:35:49:547-1000 [INFO] (DISCOVER_TRACE.503) Transitioning to state IDLE 

    Scan Detail log shows:

    "Oct 13, 2011 11:35:49 AM","INFO","Databasename 10/13/11 - 11:35 AM","STARTED_SEGMENT","instance=sqlinstancename","0","","","",""
    "Oct 13, 2011 11:35:49 AM","WARNING","","FAILED_SCAN","","0","The crawler threw an exception. Check the logs for more details","","",""
     



  • 2.  RE: SQL Database Scan Failed

    Broadcom Employee
    Posted Oct 14, 2011 03:12 AM

    What version is your SQL Server and JTDS driver?



  • 3.  RE: SQL Database Scan Failed

    Posted Oct 19, 2011 05:26 PM

    JTDS 1.2.5. ; SQL 2000

    Placed the entire contents of the JTDS download in \vontu\protect\lib\jtds.  Edited connection.properties.tmpl file in \jtds\conf folder to reflect SQl server name and database.  Still receive the same error message. 

    #
    # The URL of the server to which you want to connect
    #
    # Replace SERVER-NAME with the name of your server (also in the SERVERNAME
    # property)
    #
    # Replace DB-NAME with the name of the database to use (also in the
    # DATABASENAME property)
    #
    driver=net.sourceforge.jtds.jdbc.Driver
    url=jdbc:jtds:sqlserver://SERVER-NAME/DB-NAME
    USER=sa
    PASSWORD=
    SERVERNAME=SERVER-NAME
    PORTNUMBER=1433
    DATABASENAME=DB-NAME
    SERVERTYPE=1
    XAEMULATION=true 



  • 4.  RE: SQL Database Scan Failed
    Best Answer

    Trusted Advisor
    Posted Oct 19, 2011 06:33 PM

    You are not properly registering the driver for Vontu to use.

    Copy the following files from the JTDS 1.2.5 driver:

    jtds-1.2.5.jar > Protect\lib\jdbc

    You need nothing else..

     

    Edit the sqldatabasecrawler.properties file in the \vontu\protect\config directory. You will need to update the version number of the JTDS driver in the file for Microsoft and the Sybase sections.

    driver_jar.sqlserver = jtds-1.2.5.jar

    driver_jar.sybase = jtds-1.2.5.jar

     

    Then when creating the DB target in the UI you will need to specificy the target using the verbiage stated in the help screens.

    sqlserver://sqlserver.company.com:1433/mydatabase;instance=myinstance

     

    The help screen also tells you how to register a JDBC driver.

     

     



  • 5.  RE: SQL Database Scan Failed

    Posted Oct 19, 2011 08:33 PM

    It worked.  Thank you.



  • 6.  RE: SQL Database Scan Failed

    Posted Nov 10, 2011 08:56 AM

    Im running into a similar issue:

     

    Date/Time,"Level","Message"
    "INFO","Scan started"
    "INFO","Started scanning Database Server: sqlserver://<ip>/AdventureWorksDW instance=MSSQLSERVER"
    "WARNING","Failed to read sqlserver://<ip>/AdventureWorksDW instance=MSSQLSERVER error: Unable to create a database connection: Unable to create connection: jdbc:jtds:sqlserver://<ip>/AdventureWorksDW instance=MSSQLSERVER, Reason: Unable to get information from SQL Server: <ip>."
    "WARNING","Failed to complete Database Server: sqlserver://<ip>/AdventureWorksDW instance=MSSQLSERVER error: Error trying to scan the database"
    "INFO","Scan finished"
     
    Im testing with a default installation of 2005 server and windows 2003 server, UDP/1434 and TCP/1433 are both running and listening...
     
    the jdbc is properly installed in the lib/jdbc path... what can be wrong? Im using vontu 10.5
     
    thanks


  • 7.  RE: SQL Database Scan Failed

    Trusted Advisor
    Posted Nov 15, 2011 04:55 PM

    you need to make sure the line is correct..

     

    sqlserver://sqlserver.company.com:1433/mydatabase;instance=myinstance