{"id":2729,"date":"2013-08-29T15:07:19","date_gmt":"2013-08-29T15:07:19","guid":{"rendered":"http:\/\/www.withdata.com\/ad\/?p=2729"},"modified":"2013-08-29T15:07:19","modified_gmt":"2013-08-29T15:07:19","slug":"how-to-execute-sql-file-via-command-line-for-oracle","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/oracle\/how-to-execute-sql-file-via-command-line-for-oracle.html","title":{"rendered":"How to execute sql file via command line for Oracle"},"content":{"rendered":"<p>Use sql*plus run <a href=\"https:\/\/en.wikipedia.org\/wiki\/SQL\">SQL<\/a> file<\/p>\n<pre>sqlplus username\/password@databasename @\/path\/to\/test.sql<\/pre>\n<p>If you want to see whats going on like this, including any error messages, you need connect to SQL*Plus with<\/p>\n<pre>sqlplus username\/password@databasename<\/pre>\n<p>Then run the script from the SQL*Plus prompt:<\/p>\n<pre>set echo on\r\n@\/path\/to\/test.sql<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Use sql*plus run SQL file sqlplus username\/password@databasename @\/path\/to\/test.sql If you want to see whats going on like this, including any error messages, you need connect to SQL*Plus with sqlplus username\/password@databasename Then run the script from the SQL*Plus prompt: set echo on @\/path\/to\/test.sql<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[73,463,1325],"class_list":["post-2729","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-command-line","tag-command-line-execute-sql","tag-oracle"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=2729"}],"version-history":[{"count":1,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2729\/revisions"}],"predecessor-version":[{"id":2730,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2729\/revisions\/2730"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=2729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=2729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=2729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}