{"id":190,"date":"2013-07-16T17:49:45","date_gmt":"2013-07-16T22:49:45","guid":{"rendered":"https:\/\/bijoos.com\/oraclenotes\/?p=190"},"modified":"2026-02-07T15:34:45","modified_gmt":"2026-02-07T21:34:45","slug":"oracledb12c-new-feature-asmcmd-commands-for-password-file-management","status":"publish","type":"post","link":"https:\/\/bijoos.com\/oraclenotes\/2013\/190\/","title":{"rendered":"OracleDB12c New Feature: ASMCMD Commands for Password File Management"},"content":{"rendered":"<p>Starting with Oracle Database 12c, we can store the ASM and Database password file on ASM storage. This is helpful for RAC databases and cluster as we do not have to manage to keep the files in sync between servers.<\/p>\n<p>ASMCMD in 12c includes several commands to manage password file.<\/p>\n<table dir=\"ltr\" title=\"Summary of ASMCMD instance management commands\" summary=\"ASMCMD Command Summary\" width=\"100%\" border=\"1\" frame=\"hsides\" rules=\"groups\" cellspacing=\"0\" cellpadding=\"3\">\n<tbody>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r8c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#BJEFJHFJ\">pwcopy<\/a><\/td>\n<td headers=\"r8c1-t8 r1c2-t8\" align=\"left\">Copies a password file to the specified location.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r9c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#BJEHBAGF\">pwcreate<\/a><\/td>\n<td headers=\"r9c1-t8 r1c2-t8\" align=\"left\">Creates a password file at the specified location.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r10c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#BJEGCCJB\">pwdelete<\/a><\/td>\n<td headers=\"r10c1-t8 r1c2-t8\" align=\"left\">Deletes a password file at the specified location.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r11c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#BJEHBJBD\">pwget<\/a><\/td>\n<td headers=\"r11c1-t8 r1c2-t8\" align=\"left\">Returns the location of the password file.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r12c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#BJEJCACA\">pwmove<\/a><\/td>\n<td headers=\"r12c1-t8 r1c2-t8\" align=\"left\">Moves the location of the password file.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r13c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#BJEDBJJB\">pwset<\/a><\/td>\n<td headers=\"r13c1-t8 r1c2-t8\" align=\"left\">Sets the location of the password file.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table dir=\"ltr\" title=\"Summary of ASMCMD instance management commands\" summary=\"ASMCMD Command Summary\" width=\"100%\" border=\"1\" frame=\"hsides\" rules=\"groups\" cellspacing=\"0\" cellpadding=\"3\">\n<tbody>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r6c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#CIHJBAHB\">lspwusr<\/a><\/td>\n<td headers=\"r6c1-t8 r1c2-t8\" align=\"left\">Lists the users from an Oracle ASM password file.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r7c1-t8\" headers=\"r1c1-t8\" align=\"left\"><a href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17612\/asm_util002.htm#CIHFJDDA\">orapwusr<\/a><\/td>\n<td headers=\"r7c1-t8 r1c2-t8\" align=\"left\">Adds, drops, or changes an Oracle ASM password user.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>These commands can manage the Grid Infrastructure ASM password file or the Database password file. Specify the type of instance using the parameters:<\/p>\n<table dir=\"ltr\" title=\"Options for the pwcreate command\" summary=\"This table lists the options for the pwcreate command, along with a description\" width=\"100%\" border=\"1\" frame=\"hsides\" rules=\"rows\" cellspacing=\"0\" cellpadding=\"3\">\n<tbody>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r2c1-t15\" headers=\"r1c1-t15\" align=\"left\"><code>--asm<\/code><\/td>\n<td headers=\"r2c1-t15 r1c2-t15\" align=\"left\">The\u00a0<code>--asm<\/code>\u00a0option associates the password file with the Oracle ASM instance that ASMCMD is logged into.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"r3c1-t15\" headers=\"r1c1-t15\" align=\"left\"><code>--dbuniquename<\/code>\u00a0<code>string<\/code><\/td>\n<td headers=\"r3c1-t15 r1c2-t15\" align=\"left\">The\u00a0<code>--dbuniquename<\/code>\u00a0<code>string<\/code>\u00a0option identifies the database unique name associated with the password file.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Starting with Oracle Database 12c, we can store the ASM and Database password file on ASM storage. This is helpful for RAC databases and cluster as we do not have to manage to keep the files in sync between servers. ASMCMD in 12c includes several commands to manage password file. pwcopy Copies a password file &#8230; <a title=\"OracleDB12c New Feature: ASMCMD Commands for Password File Management\" class=\"read-more\" href=\"https:\/\/bijoos.com\/oraclenotes\/2013\/190\/\" aria-label=\"Read more about OracleDB12c New Feature: ASMCMD Commands for Password File Management\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[133],"tags":[],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-oracledb"],"acf":[],"jetpack-related-posts":[{"id":186,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/186\/","url_meta":{"origin":190,"position":0},"title":"OracleDB12c New Feature: Password File in ASM","author":"Biju","date":"July 15, 2013","format":false,"excerpt":"Prior to Oracle Database 12c, the password file always was located under $ORACLE_HOME\/dbs directory, even for RAC instances and for RAC ASM cluster. DBA had to manage and keep in sync the password file in each node. In 12c, now the password file can be stored on ASM instance and\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":236,"url":"https:\/\/bijoos.com\/oraclenotes\/2014\/236\/","url_meta":{"origin":190,"position":1},"title":"ASM User Management Q&#038;A","author":"Biju","date":"March 6, 2014","format":false,"excerpt":"Q: Can you create users in ASM instance? A: Yes, absolutely. Q: Why? A: For better security. Q: I was told there is no database associated with ASM, it is just an instance, so where is this user really created? A: You must have a password file to create users.\u2026","rel":"","context":"In &quot;Infrastructure &amp; Exadata&quot;","block_context":{"text":"Infrastructure &amp; Exadata","link":"https:\/\/bijoos.com\/oraclenotes\/category\/infrastructure-exadata\/"},"img":{"alt_text":"users","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2014\/03\/users-150x150.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":119,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/119\/","url_meta":{"origin":190,"position":2},"title":"OracleDB12c New Feature: More to Online Datafile Move","author":"Biju","date":"July 1, 2013","format":false,"excerpt":"As we already know, now with Oracle Database 12c, it is easier to move a data file. There is more to it... Let us see few operations in 11g, and how they all got simplified with Oracle 12c online file move feature... 1. Rename a file or move a file\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":426,"url":"https:\/\/bijoos.com\/oraclenotes\/2014\/426\/","url_meta":{"origin":190,"position":3},"title":"Oracle Tidbits &#8211; June 2014","author":"Biju","date":"June 30, 2014","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d published at\u00a0https:\/\/www.facebook.com\/oraclenotes\u00a0on all weekdays\u00a0in June\u00a02014. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 TidBit Topic In Oracle Database 12c, the Pre-Upgrade Information Tool script is preupgrd.sql (meaningfully named). Earlier release pre-upgrade\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2351,"url":"https:\/\/bijoos.com\/oraclenotes\/2018\/2351\/","url_meta":{"origin":190,"position":4},"title":"Oracle Tidbits &#8211; October 2018 #oratidbit","author":"biju.thomas","date":"October 31, 2018","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published on\u00a0\u00a0Facebook,\u00a0Twitter,\u00a0and\u00a0Google+\u00a0during weekdays\u00a0in October 2018. Hope you find these helpful to learn something new or to remind you of its existence and use. #oratidbit #db18c You can convert a conventional disk group (disk group created before Oracle ASM 18c) to an Oracle ASM flex disk group\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2018\/04\/oratidbit.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2087,"url":"https:\/\/bijoos.com\/oraclenotes\/2017\/2087\/","url_meta":{"origin":190,"position":5},"title":"Oracle Tidbits &#8211; August 2017 #oratidbit","author":"Biju","date":"September 3, 2017","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published on Facebook, Twitter, and Google+\u00a0during weekdays\u00a0in August 2017. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2017\/02\/oratidbit.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":1,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":3025,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/190\/revisions\/3025"}],"wp:attachment":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}