{"id":4212,"date":"2019-07-18T17:37:46","date_gmt":"2019-07-18T20:37:46","guid":{"rendered":"https:\/\/www.dbarj.com.br\/?p=4212"},"modified":"2019-07-18T17:37:46","modified_gmt":"2019-07-18T20:37:46","slug":"value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/","title":{"rendered":"Value for property: DBUserName for credential ID=SQLCreds has an invalid format"},"content":{"rendered":"<p>Those days, while testing Oracle Management Cloud Service (OMC), I was trying to deploy the agent to monitor my Oracle Database, but it was failing with &#8220;<strong>Value for property: DBUserName for credential ID=SQLCreds has an invalid format<\/strong>&#8220;.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[oracle@test bin]$ .\/omcli add_entity agent \/home\/oracle\/agent_json\/entity.json -credential_file \/home\/oracle\/agent_json\/credential.json\r\nOracle Management Cloud Agent\r\nCopyright (c) 1996, 2019 Oracle Corporation.  All rights reserved.\r\nValue for property: DBUserName for credential ID=SQLCreds has an invalid format\r\n[oracle@test bin]<\/pre>\n<p>I couldn&#8217;t figure out what was the problem. My credential file was with the following properties:<\/p>\n<pre class=\"lang:js decode:true \">{\"credentials\":[\r\n    {\r\n      \"id\": \"SQLCreds\",\r\n      \"name\": \"SQLCreds\",\r\n      \"credType\": \"DBCreds\",\r\n      \"properties\": [\r\n        {\r\n          \"name\": \"DBUserName\",\r\n          \"value\": \"dbsnmp\"\r\n        },\r\n        {\r\n          \"name\": \"DBPassword\",\r\n          \"value\": \"oracle\"\r\n        },\r\n        {\r\n           \"name\":\"DBRole\",\r\n           \"value\":\"Normal\"\r\n        }\r\n      ]\r\n    }\r\n]}<\/pre>\n<p>When I double checked the template, I finally noticed that the CLEAR part of the &#8220;value&#8221; fields should not be removed.. duh.<\/p>\n<p>So it finally worked after changing to:<\/p>\n<pre class=\"lang:js decode:true \">{\r\n   \"credentials\":[\r\n      {\r\n         \"id\":\"SQLCreds\",\r\n         \"name\":\"SQLCreds\",\r\n         \"credType\":\"DBCreds\",\r\n         \"properties\":[\r\n            {\r\n               \"name\":\"DBUserName\",\r\n               \"value\":\"CLEAR[dbsnmp]\"\r\n            },\r\n            {\r\n               \"name\":\"DBPassword\",\r\n               \"value\":\"CLEAR[oracle]\"\r\n            },\r\n            {\r\n               \"name\":\"DBRole\",\r\n               \"value\":\"CLEAR[Normal]\"\r\n            }\r\n         ]\r\n      }\r\n   ]\r\n}<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[oracle@test bin]$ .\/omcli add_entity agent \/home\/oracle\/agent_json\/entity.json -credential_file \/home\/oracle\/agent_json\/credential.json\r\nOracle Management Cloud Agent\r\nCopyright (c) 1996, 2019 Oracle Corporation.  All rights reserved.\r\nOperation Succeeded: Accepted 1 of 1 entities for processing.\r\n[oracle@test bin]<\/pre>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-4212 jlk' href='javascript:void(0)' data-task='like' data-post_id='4212' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-4212 lc'>+1<\/span><\/a><\/div><\/div> <div class='status-4212 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Those days, while testing Oracle Management Cloud Service (OMC), I was trying to deploy the agent to monitor my Oracle Database, but it was failing with &#8220;Value for property: DBUserName for credential ID=SQLCreds has an invalid format&#8220;. [oracle@test bin]$ .\/omcli add_entity agent \/home\/oracle\/agent_json\/entity.json -credential_file \/home\/oracle\/agent_json\/credential.json Oracle Management Cloud Agent Copyright (c) 1996, 2019 Oracle Corporation. &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-4212","post","type-post","status-publish","format-standard","hentry","category-data-guard-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Value for property: DBUserName for credential ID=SQLCreds has an invalid format - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"While testing Oracle Management Cloud Service (OMC), I was trying to deploy the agent to monitor my Oracle Database, but it was failing with &quot;Value for property: DBUserName for credential ID=SQLCreds has an invalid format&quot;.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"Value for property: DBUserName for credential ID=SQLCreds has an invalid format\",\"datePublished\":\"2019-07-18T20:37:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/\"},\"wordCount\":100,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"Data Guard\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/\",\"name\":\"Value for property: DBUserName for credential ID=SQLCreds has an invalid format - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2019-07-18T20:37:46+00:00\",\"description\":\"While testing Oracle Management Cloud Service (OMC), I was trying to deploy the agent to monitor my Oracle Database, but it was failing with \\\"Value for property: DBUserName for credential ID=SQLCreds has an invalid format\\\".\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/07\\\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Value for property: DBUserName for credential ID=SQLCreds has an invalid format\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Value for property: DBUserName for credential ID=SQLCreds has an invalid format - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"While testing Oracle Management Cloud Service (OMC), I was trying to deploy the agent to monitor my Oracle Database, but it was failing with \"Value for property: DBUserName for credential ID=SQLCreds has an invalid format\".","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:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"Value for property: DBUserName for credential ID=SQLCreds has an invalid format","datePublished":"2019-07-18T20:37:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/"},"wordCount":100,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["Data Guard"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/","url":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/","name":"Value for property: DBUserName for credential ID=SQLCreds has an invalid format - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2019-07-18T20:37:46+00:00","description":"While testing Oracle Management Cloud Service (OMC), I was trying to deploy the agent to monitor my Oracle Database, but it was failing with \"Value for property: DBUserName for credential ID=SQLCreds has an invalid format\".","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2019\/07\/value-for-property-dbusername-for-credential-idsqlcreds-has-an-invalid-format\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Value for property: DBUserName for credential ID=SQLCreds has an invalid format"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=4212"}],"version-history":[{"count":1,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4212\/revisions"}],"predecessor-version":[{"id":4213,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4212\/revisions\/4213"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=4212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=4212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=4212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}