<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: JDBC URL string in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839813#M4870656</link>
    <description>&lt;P&gt;Yes I asked, but not so much of a hint if there is really somewhere a (hidden) database file.
I now have setup a complete new installation and so far it looks good. Thanks for all the help!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2012 11:34:16 GMT</pubDate>
    <dc:creator>huber1</dc:creator>
    <dc:date>2012-11-05T11:34:16Z</dc:date>
    <item>
      <title>JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaq-p/13839796</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;By installing with an installer utility I made an error and got a JDBC database server connection with an URL like the following as a result:&lt;/P&gt;
&lt;P&gt;URL: jdbc:sybase:Tds:10.0.1.2:2638/&amp;lt;database-file&amp;gt;&lt;/P&gt;
&lt;P&gt;Now I am wondering where this database file is located in the (OS X) file system, I just can't find it nowhere, but obviously it must be somewhere (I also can connect to it). To what location is /&amp;lt;database-file&amp;gt; pointing? A temporary or cache folder?&lt;/P&gt;
&lt;P&gt;My usual URLs look like this:
jdbc:sybase:Tds:10.0.1.2:2638?ServiceName=&amp;lt;database-file&amp;gt;&amp;amp;CHARSET=utf8&lt;/P&gt;
&lt;P&gt;As I would like to delete it, I have to know where it is. Anyone having an idea?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 10:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaq-p/13839796</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-24T10:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839797#M4870640</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;To what location is /&amp;lt;database-file&amp;gt; pointing?&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"ServiceName" is referring to the database's name ("alias") on the SQL Anywhere database server:&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;Launch the database server:
&lt;CODE&gt;dbsrv12 -n MyServer /Applications/SQL Anywhere 12/database.db -n MyDatabase&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Use the JDBC (for jConnect) URL:
&lt;CODE&gt;jdbc:sybase:Tds:10.0.1.2:2628?ServiceName=MyDatabase&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Now I am wondering where this database file is located in the (OS X) file system... (I also can connect to it)&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can just query the database for this information if you can connect to it:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'File'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839797#M4870640</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2012-10-24T12:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839798#M4870641</link>
      <description>&lt;P&gt;Jeff, thanks a lot. The SELECT db_property('File'); works for all database files except for my strange/broken database file which exists somewhere in the file system as ghost and where I funnily can connect to.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 05:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839798#M4870641</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-25T05:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839799#M4870642</link>
      <description>&lt;P&gt;So what does it return then? NULL?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 07:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839799#M4870642</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-10-25T07:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839800#M4870643</link>
      <description>&lt;P&gt;Strangely, it returns one of the other database file names, not NULL. The given database file name is not possible, I checked the content with Sybase Central.
If I new where the slash (/) after the port number points to I would find the database file. I only can think of it's in some temp or cache folder or similar, otherwise I would have found it. It's a repository database, so I do not want them to be just somewhere without my knowledge.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 14:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839800#M4870643</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-25T14:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839801#M4870644</link>
      <description>&lt;P&gt;Do you know what the command-line for starting the database server is?&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt; &lt;SPAN class="k"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;PROPERTY&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'CommandLine'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;As I mentioned, the ServiceName is just a database alias passed in as a command-line parameter after the database file.&lt;/P&gt;
&lt;P&gt;(Aside: There is also the "special" &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbadmin/connecting-util-dbfiles.html"&gt;utitity_db&lt;/A&gt; which has no physical database file representation (e.g. &lt;CODE&gt;ServiceName=utility_db&lt;/CODE&gt;) - but the above &lt;CODE&gt;SELECT&lt;/CODE&gt; will just return the empty string in that case.)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 14:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839801#M4870644</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2012-10-25T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839802#M4870645</link>
      <description>&lt;P&gt;I get following:&lt;/P&gt;
&lt;P&gt;'-n SkyServer -x tcpip{dobroadcast=no;port=2638} -gd DBA -ti 0 -c 6144m -ca 0 -qw -o /Library/SQLAnywhere12/sybase_log.txt /Library/SQLAnywhere12/databases/Hades.db /Library/SQLAnywhere12/databases/Magazine.db /Library/SQLAnywhere12/databases/log_data.db /Library/SQLAnywhere12/databases/servoy_repository.db -hn 5 '&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2012 08:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839802#M4870645</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-26T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839803#M4870646</link>
      <description>&lt;P&gt;Based on the command-line, all four of your databases are stored in &lt;CODE&gt;/Library/SQLAnywhere12/databases/&lt;/CODE&gt; on the OS X file system (and are named "Hades", "Magazine", "log_data", and "servoy_repository" for their "ServiceNames" respectively.)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839803#M4870646</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2012-10-26T11:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839804#M4870647</link>
      <description>&lt;P&gt;These are the db files I intentionally created and put there. But there is somewhere a ghost file which contains the Servoy (our IDE) repository, where I can connect to via the URL: jdbc:sybase:Tds:10.0.1.2:2638/servoy_repository and this is the database file I can't find, not even with the Unix find cmd, but it is somewhere and the only information I have is that / in the URL, but don't know where a / is pointing to!?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 06:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839804#M4870647</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-30T06:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839805#M4870648</link>
      <description>&lt;P&gt;What happens when you stop the database engine and re-start it? - The "sybase_log.txt" console log should then contain information on which database file is started and made available with which database name. (At least that's the expected behaviour.)&lt;/P&gt;
&lt;P&gt;Of course you might also check the existing console log for any related entries.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 06:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839805#M4870648</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-10-30T06:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839806#M4870649</link>
      <description>&lt;P&gt;I'm not sure I understand. There should be four (4) databases listed in &lt;CODE&gt;/Library/SQLAnywhere12/databases/&lt;/CODE&gt;. I listed them in my previous response.&lt;/P&gt;
&lt;P&gt;One of them is named &lt;CODE&gt;/Library/SQLAnywhere12/databases/servoy_repository.db&lt;/CODE&gt; - this is the ServiceName "servoy_repository".&lt;/P&gt;
&lt;P&gt;(Which is the same name as the file name, and is the default database name if you don't specify one with "-n" after the database filename, which is true by your command-line).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839806#M4870649</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2012-10-30T09:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839807#M4870650</link>
      <description>&lt;P&gt;@Volker: The sybase_log.txt file shows the four databases I start (defined in my SQLAnywher.config file). But it does not show the ghost database (called also servoy_repository) which exists somewhere in the file system as "duplicate", which means the name is the same but the content is not the same. The "real"  database servoy_repository has the correct content, the ghost database is empty (that's why I know there are 2 databases with the same name, because I can connect to both of them with the URLs below).&lt;/P&gt;
&lt;P&gt;That is why I would like to find the "ghost" database file. I can connect to both of them (as mentioned above). So I think only if someone can tell me where the slash (/) in the URL is pointing to I will be able to find it. Or, if someone could tell me what a slash in the URL means?
In other words, what is the difference between these 2 URLs? And to what database file is the second one pointing?:
URL: jdbc:sybase:Tds:localhost:2638?ServiceName=servoy_repository&amp;amp;CHARSET=utf8
URL: jdbc:sybase:Tds:localhost:2638/servoy_repository&amp;amp;CHARSET=utf8&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sqlanywhere-forum.sap.com/users/108/jeff-albion/"&gt;@Jeff&lt;/A&gt;: I do not use the -n option, so yes, the db name corresponds to the serviceName (which is ok for me)&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 05:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839807#M4870650</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-31T05:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839808#M4870651</link>
      <description>&lt;P&gt;@Volker: As the sybase_log.txt shows (only) the 4 databases mentioned as started, there is no reference to a second servoy_repository database file. Confusing why I get different results with the 2 URLs. If it's absolutly shure that only databases are started which are mentioned in sybase_log.txt (in my case), then that means there is no second servoy_repository database file. But then, why can I connect with the URL string containing the slash (/) and why do I get a different result?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 05:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839808#M4870651</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-31T05:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839809#M4870652</link>
      <description>&lt;P&gt;Yes, under normal circumstances the log will also contain entries for databases that are not started during the server start but are started lateron, say, by using a START DATABASE statement or through a connection that starts its own database on the running engine.&lt;/P&gt;
&lt;P&gt;However, your server seems to operate under somewhat "unnormal" circumstances...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839809#M4870652</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-10-31T07:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839810#M4870653</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Confusing why I get different results with the 2 URLs&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think you're going to have to define 'different result' more carefully. What result? What operation are you trying, specifically?&lt;/P&gt;
&lt;P&gt;I think we have firmly established there is only one database, named 'servoy_repository' on the database server, located in the location we're expecting on the file system.&lt;/P&gt;
&lt;P&gt;As for the difference in URLs, there is a slight difference in the way the jConnect JDBC driver resolves the parameter. I believe the end-result is the same: select the database named &lt;CODE&gt;/&amp;lt;service-name&amp;gt;&lt;/CODE&gt; or &lt;CODE&gt;ServiceName=&amp;lt;service-name&amp;gt;&lt;/CODE&gt; on the SQL Anywhere server. However, the &lt;CODE&gt;/&lt;/CODE&gt; style is documented for use with Sybase ASE databases - there are likely compatibility differences when using this mode with SQL Anywhere. The &lt;A href="http://www.sybase.com/detail?id=1009812#MARKER-9-211"&gt;jConnect documentation recommends to use "ServiceName"&lt;/A&gt; parameter when connecting to SQL Anywhere databases (as does the &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbprogramming/dbname-jconnect-jdbc.html"&gt;SQL Anywhere documentation&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 12:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839810#M4870653</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2012-10-31T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839811#M4870654</link>
      <description>&lt;P&gt;You are right about defining different result more carefully. With the URL having the ServiceName parameter, I can connect to the database and I am able to checkout the repository content to a workspace, which is then used by Eclipse. With the URL using the /&amp;lt;service-name&amp;gt; parameter (which I got by installing a new Servoy Developer IDE version, I also can connect to the database (which up to now was proof for me there is one with the name servoy_repository), but I can't checkout anything. And that is what made me nervous, being able to connect to the database, in one case as usual, but in the other case not being able to checkout data (for example). But as you explain, the difference must be in the way that although I can connect with the /&amp;lt;service-name&amp;gt;, it's not the correct way of doing it and therefor I can't access the repository. Thanks a lot for helping, it is very appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 14:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839811#M4870654</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-10-31T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839812#M4870655</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;which I got by installing a new Servoy Developer IDE version...&lt;/STRONG&gt;
&lt;STRONG&gt;but I can't checkout anything&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you tried asking for help about this issue in the Servoy forums? This sounds like a Servoy issue, not one with SQL Anywhere.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 08:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839812#M4870655</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2012-11-01T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC URL string</title>
      <link>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839813#M4870656</link>
      <description>&lt;P&gt;Yes I asked, but not so much of a hint if there is really somewhere a (hidden) database file.
I now have setup a complete new installation and so far it looks good. Thanks for all the help!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 11:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/jdbc-url-string/qaa-p/13839813#M4870656</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2012-11-05T11:34:16Z</dc:date>
    </item>
  </channel>
</rss>

