
{"id":437,"date":"2018-07-19T00:16:33","date_gmt":"2018-07-19T03:16:33","guid":{"rendered":"http:\/\/rodrigosilvaesilva.com.br\/?p=437"},"modified":"2018-07-19T00:16:33","modified_gmt":"2018-07-19T03:16:33","slug":"ora-01940-cannot-drop-a-user-that-is-currently-connected","status":"publish","type":"post","link":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/2018\/07\/19\/ora-01940-cannot-drop-a-user-that-is-currently-connected\/","title":{"rendered":"ORA-01940: cannot drop a user that is currently connected"},"content":{"rendered":"<h6>Dropando usu\u00e1rio ORCL<\/h6>\n<pre class=\"lang:plsql decode:true\">SYS@ORCL &gt; drop user ORCL cascade;<\/pre>\n<h6>Erro ORA-01940<\/h6>\n<pre class=\"lang:plsql decode:true\">ERROR at line 1:\nORA-01940: cannot drop a user that is currently connected<\/pre>\n<h3>Solu\u00e7\u00e3o:<\/h3>\n<h6>Parando<\/h6>\n<pre class=\"lang:plsql decode:true \">SYS@ORCL &gt; Shutdown immediate;\nDatabase closed.\nDatabase dismounted.\nORACLE instance shut down.<\/pre>\n<h6>Iniciar em modo restrict<\/h6>\n<pre class=\"lang:plsql decode:true \">SYS@ORCL &gt; startup restrict;\nORACLE instance started.\n\nTotal System Global Area 1.0689E+10 bytes\nFixed Size 2262656 bytes\nVariable Size 1979713920 bytes\nDatabase Buffers 8690597888 bytes\nRedo Buffers 16900096 bytes\nDatabase mounted.\nDatabase opened.<\/pre>\n<h6>Dropando usu\u00e1rio ORCL<\/h6>\n<pre class=\"lang:plsql decode:true \">SYS@NBS &gt; drop user ORCL cascade;\n\nUser dropped.<\/pre>\n<h6>Parando<\/h6>\n<pre class=\"lang:plsql decode:true\">SYS@ORCL &gt; shut immediate\nDatabase closed.\nDatabase dismounted.\nORACLE instance shut down.<\/pre>\n<h6>Iniciando<\/h6>\n<pre class=\"lang:plsql decode:true \">21:50:44 SYS@ORCL &gt; startup\nORACLE instance started.\n\nTotal System Global Area 1.0689E+10 bytes\nFixed Size 2262656 bytes\nVariable Size 1979713920 bytes\nDatabase Buffers 8690597888 bytes\nRedo Buffers 16900096 bytes\nDatabase mounted.\nDatabase opened.<\/pre>\n<p>&nbsp;<\/p>\n<p>Em outro post mostrarei como matar processo do usu\u00e1rio.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dropando usu\u00e1rio ORCL SYS@ORCL &gt; drop user ORCL cascade; Erro ORA-01940 ERROR at line 1: ORA-01940: cannot drop a user that is currently connected Solu\u00e7\u00e3o: Parando SYS@ORCL &gt; Shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. Iniciar em modo restrict SYS@ORCL &gt; startup restrict; ORACLE instance started. Total System Global Area 1.0689E+10 bytes&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[220,221],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-ora-01940","tag-ora-01940-cannot-drop-a-user-that-is-currently-connected"],"_links":{"self":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":0,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}