{"id":263,"date":"2014-11-30T12:11:05","date_gmt":"2014-11-30T16:11:05","guid":{"rendered":"http:\/\/dbtricks.com\/?p=263"},"modified":"2014-11-30T12:11:05","modified_gmt":"2014-11-30T16:11:05","slug":"ora-02069-global_names-parameter-must-be-set-to-true-for-this-operation","status":"publish","type":"post","link":"https:\/\/dbtricks.com\/?p=263","title":{"rendered":"ORA-02069: global_names parameter must be set to TRUE for this operation"},"content":{"rendered":"<p> the Oracle documentation description for &#8220;ORA-02069: global_names parameter must be set to TRUE for this operation&#8221;  is: <\/p>\n<p>&#8220;You tried to execute an operation that requires a remote mapping. This can not be done because the parameter called GLOBAL_NAMES is not set to TRUE. &#8221;<\/p>\n<p>This error message is one of the less understandable error messages even in the Oracle documentation standards.<\/p>\n<p>Oracle resolution offer is to try setting the GLOBAL_NAMES parameter to TRUE with the following statement:<\/p>\n<p>ALTER SESSION SET GLOBAL_NAMES = TRUE;<\/p>\n<p>shortly, what this message means is that you are trying to perform an operation (update or insert, for example) on a remote database using a db link while trying to use a local function.<br \/>\nfor example:<br \/>\n<code>update remote_table@remote_data_base<br \/>\nset col1= local_function(value)<\/code><\/p>\n<p>to resolve this, you can:<\/p>\n<p>alter the session as oracle suggested:<\/p>\n<p><code><strong>ALTER SESSION SET GLOBAL_NAMES = TRUE;<\/strong> <\/code><br \/>\nor simply assign the value of the local function into a variable and use it in the update\/insert command:<\/p>\n<p><code><strong>v_variable :=local_function(value);<\/p>\n<p>update remote_table@remote_data_base<br \/>\nset col1= v_variable;<\/strong><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>the Oracle documentation description for &#8220;ORA-02069: global_names parameter must be set to TRUE for this operation&#8221; is: &#8220;You tried to execute an operation that requires a remote mapping. This can not be done because the parameter called GLOBAL_NAMES is not set to TRUE. &#8221; This error message is one of the less understandable error messages [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":2,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":442,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/442"}],"wp:attachment":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}