{"id":173,"date":"2007-10-17T19:27:51","date_gmt":"2007-10-18T02:27:51","guid":{"rendered":"http:\/\/jeffhobbs.net\/2007\/10\/17\/logging-the-oracle-data-server\/"},"modified":"2007-10-17T19:27:51","modified_gmt":"2007-10-18T02:27:51","slug":"logging-the-oracle-data-server","status":"publish","type":"post","link":"https:\/\/jeffhobbs.com\/?p=173","title":{"rendered":"Logging the Oracle Data Server"},"content":{"rendered":"<p>Not sure how many are aware pf GeoMedia&#8217;s Oracle Data Server logging functionality. This is great if you ever have a problem writing to an Oracle database.<\/p>\n<p>To get GeoMedia to log everything it does with the Oracle database, do the following:<\/p>\n<ol>\n<li>Close your connection to the Oracle database (or quit GeoMedia)<\/li>\n<li>Create a file named &#8220;GOracle.log&#8221; in c:\\temp (minus the quotes)<br \/>\nNOTE &#8211; The file <strong>MUST<\/strong> be in c:\\temp and <strong>MUST<\/strong> have the correct file name<\/li>\n<li>Open the Oracle connection (or restart GeoMedia and connect to your Oracle database)<\/li>\n<li>Start interacting with the Oracle database<\/li>\n<\/ol>\n<p>You&#8217;ll notice that from that point forward EVERYTHING you do to the Oracle database is <strong>very<\/strong> verbosely logged. You can then go into the log file and review it for errors. Most of the time the error is easy to find and you can pull the information from the log to feed to Google or Intergraph support.<\/p>\n<p>A couple of notes:<\/p>\n<ol>\n<li>The log file can get very big, very fast. In fact, after only a few minutes of logging, I&#8217;ve seen the file grow to well over 10mb in size! So, make sure to move the file from the c:\\temp folder or delete it altogether. If you don&#8217;t, any interaction you have in GeoMedia with the Oracle database WILL be logged. This could obviously cause a space issue on your hard drive after a  while.<\/li>\n<li>If you&#8217;re looking to write your own Oracle Locator\/Spatial spatial query, this logging functionality can be an excellent first step. You can create the log file and then run a native query (Analysis &gt; Native Query) inside of GeoMedia. For those that haven&#8217;t used the Native Query command, it&#8217;s basically a GUI for the Oracle Locator operators.<br \/>\nSo, I created a native query asking <em>Oracle<\/em> (as\topposed\tto\tthe spatial query operators inside of GeoMedia) to identify all of the stations that fall within a pressure zone named &#8220;Cox Zone&#8221;. Since this was an Oracle query, GeoMedia created the query, but logged all of the interaction between GeoMedia and the database. Copying directly from the log:<\/p>\n<blockquote>\n<p align=\"left\">select a.ROWID,a.GDO_GEOMETRY  from SJWC_MIG.PRESSURE_ZONE b,SJWC_MIG.STATION a where   PRESSURE_ZONE_NAME  =  &#8216;Cox Zone&#8217; and mdsys.sdo_relate(a.GDO_GEOMETRY,b.GDO_GEOMETRY,&#8217;mask=ANYINTERACT querytype=window&#8217;) = &#8216;TRUE&#8217;<\/p>\n<\/blockquote>\n<p align=\"left\">All in all, I find this logging tool to be extremely useful. Especially when you&#8217;re working with a data model as opposed to a bunch of independent tables in a schema. It helps you understand just what GeoMedia is doing and why Oracle doesn&#8217;t like it. <a href=\"http:\/\/www.box.net\/shared\/xpx4409sqi\">You can download my log from this session using this link or the link to the left<\/a>. Although it&#8217;s boring, it might help add some context to this entry. You will also see the spatial query embedded in the log on a few different occasions.<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Not sure how many are aware pf GeoMedia&#8217;s Oracle Data Server logging functionality. This is great if you ever have&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3,4,11],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Logging the Oracle Data Server - jeffhobbs.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jeffhobbs.com\/?p=173\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logging the Oracle Data Server - jeffhobbs.com\" \/>\n<meta property=\"og:description\" content=\"Not sure how many are aware pf GeoMedia&#8217;s Oracle Data Server logging functionality. This is great if you ever have...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jeffhobbs.com\/?p=173\" \/>\n<meta property=\"og:site_name\" content=\"jeffhobbs.com\" \/>\n<meta property=\"article:published_time\" content=\"2007-10-18T02:27:51+00:00\" \/>\n<meta name=\"author\" content=\"Jeff Hobbs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Hobbs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=173\",\"url\":\"https:\/\/jeffhobbs.com\/?p=173\",\"name\":\"Logging the Oracle Data Server - jeffhobbs.com\",\"isPartOf\":{\"@id\":\"https:\/\/jeffhobbs.com\/#website\"},\"datePublished\":\"2007-10-18T02:27:51+00:00\",\"dateModified\":\"2007-10-18T02:27:51+00:00\",\"author\":{\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7\"},\"breadcrumb\":{\"@id\":\"https:\/\/jeffhobbs.com\/?p=173#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jeffhobbs.com\/?p=173\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=173#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jeffhobbs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Logging the Oracle Data Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jeffhobbs.com\/#website\",\"url\":\"https:\/\/jeffhobbs.com\/\",\"name\":\"jeffhobbs.com\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jeffhobbs.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7\",\"name\":\"Jeff Hobbs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g\",\"caption\":\"Jeff Hobbs\"},\"sameAs\":[\"http:\/\/jeffhobbs.com\"],\"url\":\"https:\/\/jeffhobbs.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logging the Oracle Data Server - jeffhobbs.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jeffhobbs.com\/?p=173","og_locale":"en_US","og_type":"article","og_title":"Logging the Oracle Data Server - jeffhobbs.com","og_description":"Not sure how many are aware pf GeoMedia&#8217;s Oracle Data Server logging functionality. This is great if you ever have...","og_url":"https:\/\/jeffhobbs.com\/?p=173","og_site_name":"jeffhobbs.com","article_published_time":"2007-10-18T02:27:51+00:00","author":"Jeff Hobbs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jeff Hobbs","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jeffhobbs.com\/?p=173","url":"https:\/\/jeffhobbs.com\/?p=173","name":"Logging the Oracle Data Server - jeffhobbs.com","isPartOf":{"@id":"https:\/\/jeffhobbs.com\/#website"},"datePublished":"2007-10-18T02:27:51+00:00","dateModified":"2007-10-18T02:27:51+00:00","author":{"@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7"},"breadcrumb":{"@id":"https:\/\/jeffhobbs.com\/?p=173#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jeffhobbs.com\/?p=173"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jeffhobbs.com\/?p=173#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jeffhobbs.com\/"},{"@type":"ListItem","position":2,"name":"Logging the Oracle Data Server"}]},{"@type":"WebSite","@id":"https:\/\/jeffhobbs.com\/#website","url":"https:\/\/jeffhobbs.com\/","name":"jeffhobbs.com","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jeffhobbs.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7","name":"Jeff Hobbs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g","caption":"Jeff Hobbs"},"sameAs":["http:\/\/jeffhobbs.com"],"url":"https:\/\/jeffhobbs.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts\/173"}],"collection":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173"}],"version-history":[{"count":0,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}