{"id":1410,"date":"2019-03-13T15:29:08","date_gmt":"2019-03-13T14:29:08","guid":{"rendered":"https:\/\/dbafox.com\/?p=1410"},"modified":"2019-03-13T16:29:20","modified_gmt":"2019-03-13T15:29:20","slug":"oracle-multitenant-create-a-sysdba-common-user","status":"publish","type":"post","link":"https:\/\/dbafox.com\/?p=1410","title":{"rendered":"Oracle &#8211; Multitenant &#8211; Create a sysdba Common User"},"content":{"rendered":"<h1>Oracle &#8211; Multitenant &#8211; Create a sysdba Common User<\/h1>\n<p>\ud83d\ude0e To create a sysdba user that can administrate all containers:<\/p>\n<pre class=\"\">\r\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nsys@ORCL&gt; show con_id\r\n\r\nCON_ID\r\n------------------------------\r\n1\r\nsys@ORCL&gt; show con_name\r\n\r\nCON_NAME\r\n------------------------------\r\nCDB$ROOT\r\n \r\nsys@ORCL&gt; create user c##username identified by &lt;password&gt;;\r\n\r\nUser created.\r\n\r\nsys@ORCL&gt; grant create session to c##username;\r\n\r\nGrant succeeded.\r\n\r\nsys@ORCL&gt; grant sysdba to c##username container = ALL;\r\n\r\nGrant succeeded.\r\n<\/pre>\n<p>If it is necessary to change the common user prefix (or get rid of it!), the value of _common_user_prefix_common_user_prefix can be changed:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nsys@ORCL&gt; select rpad(ksppinm,40) ||' ----&gt;  '||ksppstvl &quot;param, value&quot; from x$ksppi a,x$ksppsv b\r\n  2  where a.indx=b.indx and substr(ksppinm,1,1) = '_' and ksppinm like '%common%';\r\n\r\nparam, value\r\n_ksipc_common_sl                         ----&gt;\r\n_eliminate_common_subexpr                ----&gt;  TRUE\r\n_dump_common_subexpressions              ----&gt;  FALSE\r\n_common_data_view_enabled                ----&gt;  TRUE\r\n_common_user_prefix                      ----&gt;  C##\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Oracle &#8211; Multitenant &#8211; Create a sysdba Common User \ud83d\ude0e To create a sysdba user that can administrate all containers: sys@ORCL&gt; show con_id CON_ID &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 1 sys@ORCL&gt; show con_name CON_NAME &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; CDB$ROOT sys@ORCL&gt; create user c##username identified by &lt;password&gt;; User created. sys@ORCL&gt; grant create session to c##username; Grant succeeded. sys@ORCL&gt; grant sysdba to c##username container&hellip;&nbsp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[67],"tags":[],"class_list":["post-1410","post","type-post","status-publish","format-standard","hentry","category-oracle-multitenant"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Oracle - Multitenant - Create a sysdba Common User - dbafox<\/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:\/\/dbafox.com\/?p=1410\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle - Multitenant - Create a sysdba Common User - dbafox\" \/>\n<meta property=\"og:description\" content=\"Oracle &#8211; Multitenant &#8211; Create a sysdba Common User \ud83d\ude0e To create a sysdba user that can administrate all containers: sys@ORCL&gt; show con_id CON_ID ------------------------------ 1 sys@ORCL&gt; show con_name CON_NAME ------------------------------ CDB$ROOT sys@ORCL&gt; create user c##username identified by &lt;password&gt;; User created. sys@ORCL&gt; grant create session to c##username; Grant succeeded. sys@ORCL&gt; grant sysdba to c##username container&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbafox.com\/?p=1410\" \/>\n<meta property=\"og:site_name\" content=\"dbafox\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-13T14:29:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-13T15:29:20+00:00\" \/>\n<meta name=\"author\" content=\"Ray Fox\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ray Fox\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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:\\\/\\\/dbafox.com\\\/?p=1410#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dbafox.com\\\/?p=1410\"},\"author\":{\"name\":\"Ray Fox\",\"@id\":\"https:\\\/\\\/dbafox.com\\\/#\\\/schema\\\/person\\\/287adc474c1aebd398752ac4dcfe27eb\"},\"headline\":\"Oracle &#8211; Multitenant &#8211; Create a sysdba Common User\",\"datePublished\":\"2019-03-13T14:29:08+00:00\",\"dateModified\":\"2019-03-13T15:29:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dbafox.com\\\/?p=1410\"},\"wordCount\":181,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/dbafox.com\\\/#\\\/schema\\\/person\\\/287adc474c1aebd398752ac4dcfe27eb\"},\"articleSection\":[\"Oracle Multitenant\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/dbafox.com\\\/?p=1410#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dbafox.com\\\/?p=1410\",\"url\":\"https:\\\/\\\/dbafox.com\\\/?p=1410\",\"name\":\"Oracle - Multitenant - Create a sysdba Common User - dbafox\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dbafox.com\\\/#website\"},\"datePublished\":\"2019-03-13T14:29:08+00:00\",\"dateModified\":\"2019-03-13T15:29:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dbafox.com\\\/?p=1410#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/dbafox.com\\\/?p=1410\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dbafox.com\\\/?p=1410#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dbafox.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle &#8211; Multitenant &#8211; Create a sysdba Common User\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dbafox.com\\\/#website\",\"url\":\"https:\\\/\\\/dbafox.com\\\/\",\"name\":\"dbafox\",\"description\":\"DBA Technical Information\",\"publisher\":{\"@id\":\"https:\\\/\\\/dbafox.com\\\/#\\\/schema\\\/person\\\/287adc474c1aebd398752ac4dcfe27eb\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/dbafox.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/dbafox.com\\\/#\\\/schema\\\/person\\\/287adc474c1aebd398752ac4dcfe27eb\",\"name\":\"Ray Fox\",\"logo\":{\"@id\":\"https:\\\/\\\/dbafox.com\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.dbafox.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle - Multitenant - Create a sysdba Common User - dbafox","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:\/\/dbafox.com\/?p=1410","og_locale":"en_GB","og_type":"article","og_title":"Oracle - Multitenant - Create a sysdba Common User - dbafox","og_description":"Oracle &#8211; Multitenant &#8211; Create a sysdba Common User \ud83d\ude0e To create a sysdba user that can administrate all containers: sys@ORCL&gt; show con_id CON_ID ------------------------------ 1 sys@ORCL&gt; show con_name CON_NAME ------------------------------ CDB$ROOT sys@ORCL&gt; create user c##username identified by &lt;password&gt;; User created. sys@ORCL&gt; grant create session to c##username; Grant succeeded. sys@ORCL&gt; grant sysdba to c##username container&hellip;&nbsp;","og_url":"https:\/\/dbafox.com\/?p=1410","og_site_name":"dbafox","article_published_time":"2019-03-13T14:29:08+00:00","article_modified_time":"2019-03-13T15:29:20+00:00","author":"Ray Fox","twitter_misc":{"Written by":"Ray Fox","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbafox.com\/?p=1410#article","isPartOf":{"@id":"https:\/\/dbafox.com\/?p=1410"},"author":{"name":"Ray Fox","@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb"},"headline":"Oracle &#8211; Multitenant &#8211; Create a sysdba Common User","datePublished":"2019-03-13T14:29:08+00:00","dateModified":"2019-03-13T15:29:20+00:00","mainEntityOfPage":{"@id":"https:\/\/dbafox.com\/?p=1410"},"wordCount":181,"commentCount":0,"publisher":{"@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb"},"articleSection":["Oracle Multitenant"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbafox.com\/?p=1410#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbafox.com\/?p=1410","url":"https:\/\/dbafox.com\/?p=1410","name":"Oracle - Multitenant - Create a sysdba Common User - dbafox","isPartOf":{"@id":"https:\/\/dbafox.com\/#website"},"datePublished":"2019-03-13T14:29:08+00:00","dateModified":"2019-03-13T15:29:20+00:00","breadcrumb":{"@id":"https:\/\/dbafox.com\/?p=1410#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbafox.com\/?p=1410"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dbafox.com\/?p=1410#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbafox.com\/"},{"@type":"ListItem","position":2,"name":"Oracle &#8211; Multitenant &#8211; Create a sysdba Common User"}]},{"@type":"WebSite","@id":"https:\/\/dbafox.com\/#website","url":"https:\/\/dbafox.com\/","name":"dbafox","description":"DBA Technical Information","publisher":{"@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbafox.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb","name":"Ray Fox","logo":{"@id":"https:\/\/dbafox.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.dbafox.com"]}]}},"_links":{"self":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/1410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1410"}],"version-history":[{"count":8,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/1410\/revisions"}],"predecessor-version":[{"id":1419,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/1410\/revisions\/1419"}],"wp:attachment":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}