{"action":"created","issue":{"url":"https://api.github.com/repos/darold/ora2pg/issues/123","labels_url":"https://api.github.com/repos/darold/ora2pg/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/darold/ora2pg/issues/123/comments","events_url":"https://api.github.com/repos/darold/ora2pg/issues/123/events","html_url":"https://github.com/darold/ora2pg/issues/123","id":81689252,"number":123,"title":"SDO_COORD_REF_SYS related error.","user":{"login":"kazam","id":8061329,"avatar_url":"https://avatars.githubusercontent.com/u/8061329?v=3","gravatar_id":"","url":"https://api.github.com/users/kazam","html_url":"https://github.com/kazam","followers_url":"https://api.github.com/users/kazam/followers","following_url":"https://api.github.com/users/kazam/following{/other_user}","gists_url":"https://api.github.com/users/kazam/gists{/gist_id}","starred_url":"https://api.github.com/users/kazam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazam/subscriptions","organizations_url":"https://api.github.com/users/kazam/orgs","repos_url":"https://api.github.com/users/kazam/repos","events_url":"https://api.github.com/users/kazam/events{/privacy}","received_events_url":"https://api.github.com/users/kazam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-28T00:34:54Z","updated_at":"2015-05-29T06:37:59Z","closed_at":null,"body":"While running the COPY command on my database I am getting the following error after procesing of most tables. \r\n\r\nDBD::Oracle::db prepare failed: ORA-01741: illegal zero-length identifier (DBD E\r\nRROR: OCIStmtPrepare) [for Statement \"SELECT  FROM \"\".\"SDO_COORD_REF_SYS\" a\"] at\r\n C:/Perl/site/lib/Ora2Pg.pm line 8779.\r\nFATAL: ORA-01741: illegal zero-length identifier (DBD ERROR: OCIStmtPrepare)\r\nAborting export...\r\n\r\nThanks much."},"comment":{"url":"https://api.github.com/repos/darold/ora2pg/issues/comments/106709674","html_url":"https://github.com/darold/ora2pg/issues/123#issuecomment-106709674","issue_url":"https://api.github.com/repos/darold/ora2pg/issues/123","id":106709674,"user":{"login":"darold","id":538862,"avatar_url":"https://avatars.githubusercontent.com/u/538862?v=3","gravatar_id":"","url":"https://api.github.com/users/darold","html_url":"https://github.com/darold","followers_url":"https://api.github.com/users/darold/followers","following_url":"https://api.github.com/users/darold/following{/other_user}","gists_url":"https://api.github.com/users/darold/gists{/gist_id}","starred_url":"https://api.github.com/users/darold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darold/subscriptions","organizations_url":"https://api.github.com/users/darold/orgs","repos_url":"https://api.github.com/users/darold/repos","events_url":"https://api.github.com/users/darold/events{/privacy}","received_events_url":"https://api.github.com/users/darold/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T06:37:59Z","updated_at":"2015-05-29T06:37:59Z","body":"I have fixed an other case where call to sdo_cs.map_oracle_srid_to_epsg() return an ORA-01741 error but I 'm not sure it will fix your case. Please use latest code again, but your case seems generated by the call to SDO_UTIL.TO_WKBGEOMETRY() where unfortunately I can't do anything. Using INTERNAL should fix the issue. An other simple fix is to add an SRID to the column in ALL_SDO_GEOM_METADATA, that seems to be mandatory."}}