<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8028612240604669169</id><updated>2024-09-12T06:28:07.156+08:00</updated><category term="PDB"/><category term="Multitenant"/><category term="SQL Tuning"/><category term="CDB"/><category term="PDB Seed"/><category term="PDB$SEED"/><category term="Performance Tuning"/><category term="Pluggable Database"/><category term="create PDB"/><category term="ORA-00000"/><category term="ORA-00851"/><category term="Tablespace"/><category term="ALL_xxx"/><category term="Automatically Open PDBs"/><category term="Background Process"/><category term="CBO"/><category term="CDB Root"/><category term="CDB_xxx"/><category term="Cost Based Optimizer"/><category term="DBA_xxx"/><category term="Data Dictionary"/><category term="Listener"/><category term="Login"/><category term="Multitenancy"/><category term="ORA-0"/><category term="ORA-00001"/><category term="ORA-00017"/><category term="ORA-00018"/><category term="ORA-00019"/><category term="ORA-00020"/><category term="ORA-00021"/><category term="ORA-00022"/><category term="ORA-00023"/><category term="ORA-00024"/><category term="ORA-00025"/><category term="ORA-00026"/><category term="ORA-00027"/><category term="ORA-00028"/><category term="ORA-00029"/><category term="ORA-00030"/><category term="ORA-00031"/><category term="ORA-00032"/><category term="ORA-00033"/><category term="ORA-00034"/><category term="ORA-00036"/><category term="ORA-00037"/><category term="ORA-00038"/><category term="ORA-00039"/><category term="ORA-00040"/><category term="ORA-00041"/><category term="ORA-00042"/><category term="ORA-00043"/><category term="ORA-00044"/><category term="ORA-00050"/><category term="ORA-00051"/><category term="ORA-00052"/><category term="ORA-00053"/><category term="ORA-00054"/><category term="ORA-00055"/><category term="ORA-00056"/><category term="ORA-00057"/><category term="ORA-00058"/><category term="ORA-00059"/><category term="ORA-00060"/><category term="ORA-00061"/><category term="ORA-00062"/><category term="ORA-00063"/><category term="ORA-00064"/><category term="ORA-00065"/><category term="ORA-00066"/><category term="ORA-00067"/><category term="ORA-00068"/><category term="ORA-00069"/><category term="ORA-00070"/><category term="ORA-00071"/><category term="ORA-00072"/><category term="ORA-00073"/><category term="ORA-00074"/><category term="ORA-00075"/><category term="ORA-00076"/><category term="ORA-00077"/><category term="ORA-00078"/><category term="ORA-00079"/><category term="ORA-00080"/><category term="ORA-00081"/><category term="ORA-00082"/><category term="ORA-00083"/><category term="ORA-00084"/><category term="ORA-00085"/><category term="ORA-00086"/><category term="ORA-00087"/><category term="ORA-00088"/><category term="ORA-00089"/><category term="ORA-00090"/><category term="ORA-00091"/><category term="ORA-00092"/><category term="ORA-00093"/><category term="ORA-00094"/><category term="ORA-00096"/><category term="ORA-00097"/><category term="ORA-00098"/><category term="ORA-00099"/><category term="ORA-00100"/><category term="ORA-00101"/><category term="ORA-00102"/><category term="ORA-00103"/><category term="ORA-00104"/><category term="ORA-00105"/><category term="ORA-00106"/><category term="ORA-00107"/><category term="ORA-00108"/><category term="ORA-00109"/><category term="ORA-00110"/><category term="ORA-00111"/><category term="ORA-00112"/><category term="ORA-00113"/><category term="ORA-00114"/><category term="ORA-00115"/><category term="ORA-00116"/><category term="ORA-00117"/><category term="ORA-00118"/><category term="ORA-00119"/><category term="ORA-00122"/><category term="ORA-00123"/><category term="ORA-00125"/><category term="ORA-00126"/><category term="ORA-00127"/><category term="ORA-00128"/><category term="ORA-00129"/><category term="ORA-00130"/><category term="ORA-00131"/><category term="ORA-00132"/><category term="ORA-00133"/><category term="ORA-00134"/><category term="ORA-00135"/><category term="ORA-00136"/><category term="ORA-00137"/><category term="ORA-00138"/><category term="ORA-00139"/><category term="ORA-00150"/><category term="ORA-00151"/><category term="ORA-00152"/><category term="ORA-00153"/><category term="ORA-00154"/><category term="ORA-00155"/><category term="ORA-00160"/><category term="ORA-00161"/><category term="ORA-00162"/><category term="ORA-00163"/><category term="ORA-00164"/><category term="ORA-00165"/><category term="ORA-00166"/><category term="ORA-00200"/><category term="ORA-00201"/><category term="ORA-00202"/><category term="ORA-00203"/><category term="ORA-00204"/><category term="ORA-00205"/><category term="ORA-00206"/><category term="ORA-00207"/><category term="ORA-00208"/><category term="ORA-00209"/><category term="ORA-00210"/><category term="ORA-00211"/><category term="ORA-00212"/><category term="ORA-00213"/><category term="ORA-00214"/><category term="ORA-00215"/><category term="ORA-00216"/><category term="ORA-00217"/><category term="ORA-00218"/><category term="ORA-00219"/><category term="ORA-00220"/><category term="ORA-00221"/><category term="ORA-00222"/><category term="ORA-00223"/><category term="ORA-00224"/><category term="ORA-00225"/><category term="ORA-00226"/><category term="ORA-00227"/><category term="ORA-00228"/><category term="ORA-00229"/><category term="ORA-00230"/><category term="ORA-00231"/><category term="ORA-00232"/><category term="ORA-00233"/><category term="ORA-00234"/><category term="ORA-00235"/><category term="ORA-00236"/><category term="ORA-00237"/><category term="ORA-00238"/><category term="ORA-00239"/><category term="ORA-00240"/><category term="ORA-00241"/><category term="ORA-00242"/><category term="ORA-00243"/><category term="ORA-00244"/><category term="ORA-00245"/><category term="ORA-00246"/><category term="ORA-00250"/><category term="ORA-00251"/><category term="ORA-00252"/><category term="ORA-00253"/><category term="ORA-00254"/><category term="ORA-00255"/><category term="ORA-00256"/><category term="ORA-00257"/><category term="ORA-00258"/><category term="ORA-00259"/><category term="ORA-00260"/><category term="ORA-00261"/><category term="ORA-00262"/><category term="ORA-00263"/><category term="ORA-00264"/><category term="ORA-00265"/><category term="ORA-00266"/><category term="ORA-00267"/><category term="ORA-00268"/><category term="ORA-00269"/><category term="ORA-00270"/><category term="ORA-00271"/><category term="ORA-00272"/><category term="ORA-00273"/><category term="ORA-00274"/><category term="ORA-00275"/><category term="ORA-00276"/><category term="ORA-00277"/><category term="ORA-00278"/><category term="ORA-00279"/><category term="ORA-00280"/><category term="ORA-00281"/><category term="ORA-00282"/><category term="ORA-00283"/><category term="ORA-00284"/><category term="ORA-00285"/><category term="ORA-00286"/><category term="ORA-00287"/><category term="ORA-00288"/><category term="ORA-00289"/><category term="ORA-00290"/><category term="ORA-00291"/><category term="ORA-00292"/><category term="ORA-00293"/><category term="ORA-00294"/><category term="ORA-00295"/><category term="ORA-00296"/><category term="ORA-00297"/><category term="ORA-00298"/><category term="ORA-00299"/><category term="ORA-00300"/><category term="ORA-00301"/><category term="ORA-00302"/><category term="ORA-00303"/><category term="ORA-00304"/><category term="ORA-00305"/><category term="ORA-00306"/><category term="ORA-00307"/><category term="ORA-00308"/><category term="ORA-00309"/><category term="ORA-00310"/><category term="ORA-00311"/><category term="ORA-00312"/><category term="ORA-00313"/><category term="ORA-00314"/><category term="ORA-00315"/><category term="ORA-00316"/><category term="ORA-00317"/><category term="ORA-00318"/><category term="ORA-00319"/><category term="ORA-00320"/><category term="ORA-00321"/><category term="ORA-00322"/><category term="ORA-00323"/><category term="ORA-00324"/><category term="ORA-00325"/><category term="ORA-00326"/><category term="ORA-00327"/><category term="ORA-00328"/><category term="ORA-00329"/><category term="ORA-00330"/><category term="ORA-00331"/><category term="ORA-00332"/><category term="ORA-00333"/><category term="ORA-00334"/><category term="ORA-00335"/><category term="ORA-00336"/><category term="ORA-00337"/><category term="ORA-00338"/><category term="ORA-00339"/><category term="ORA-00340"/><category term="ORA-00341"/><category term="ORA-00342"/><category term="ORA-00344"/><category term="ORA-00345"/><category term="ORA-00346"/><category term="ORA-00347"/><category term="ORA-00348"/><category term="ORA-00349"/><category term="ORA-00350"/><category term="ORA-00351"/><category term="ORA-00352"/><category term="ORA-00353"/><category term="ORA-00354"/><category term="ORA-00355"/><category term="ORA-00356"/><category term="ORA-00357"/><category term="ORA-00358"/><category term="ORA-00359"/><category term="ORA-00360"/><category term="ORA-00361"/><category term="ORA-00362"/><category term="ORA-00363"/><category term="ORA-00364"/><category term="ORA-00365"/><category term="ORA-00366"/><category term="ORA-00367"/><category term="ORA-00368"/><category term="ORA-00369"/><category term="ORA-00370"/><category term="ORA-00371"/><category term="ORA-00372"/><category term="ORA-00373"/><category term="ORA-00374"/><category term="ORA-00376"/><category term="ORA-00377"/><category term="ORA-00378"/><category term="ORA-00379"/><category term="ORA-00380"/><category term="ORA-00381"/><category term="ORA-00382"/><category term="ORA-00383"/><category term="ORA-00384"/><category term="ORA-00385"/><category term="ORA-00386"/><category term="ORA-00390"/><category term="ORA-00391"/><category term="ORA-00392"/><category term="ORA-00393"/><category term="ORA-00394"/><category term="ORA-00395"/><category term="ORA-00396"/><category term="ORA-00397"/><category term="ORA-00398"/><category term="ORA-00399"/><category term="ORA-00400"/><category term="ORA-00401"/><category term="ORA-00402"/><category term="ORA-00403"/><category term="ORA-00404"/><category term="ORA-00405"/><category term="ORA-00406"/><category term="ORA-00407"/><category term="ORA-00408"/><category term="ORA-00409"/><category term="ORA-00437"/><category term="ORA-00438"/><category term="ORA-00439"/><category term="ORA-00443"/><category term="ORA-00444"/><category term="ORA-00445"/><category term="ORA-00446"/><category term="ORA-00447"/><category term="ORA-00448"/><category term="ORA-00449"/><category term="ORA-00450"/><category term="ORA-00451"/><category term="ORA-00600"/><category term="ORA-00601"/><category term="ORA-00602"/><category term="ORA-00603"/><category term="ORA-00604"/><category term="ORA-00606"/><category term="ORA-00607"/><category term="ORA-00608"/><category term="ORA-00609"/><category term="ORA-00610"/><category term="ORA-00700"/><category term="ORA-00701"/><category term="ORA-00702"/><category term="ORA-00703"/><category term="ORA-00704"/><category term="ORA-00705"/><category term="ORA-00706"/><category term="ORA-00710"/><category term="ORA-00711"/><category term="ORA-00712"/><category term="ORA-00720"/><category term="ORA-00721"/><category term="ORA-00722"/><category term="ORA-00723"/><category term="ORA-00724"/><category term="ORA-00725"/><category term="ORA-00740"/><category term="ORA-00741"/><category term="ORA-00750"/><category term="ORA-00751"/><category term="ORA-00752"/><category term="ORA-00820"/><category term="ORA-00821"/><category term="ORA-00822"/><category term="ORA-00823"/><category term="ORA-00824"/><category term="ORA-00825"/><category term="ORA-00826"/><category term="ORA-00827"/><category term="ORA-00828"/><category term="ORA-00830"/><category term="ORA-00832"/><category term="ORA-00837"/><category term="ORA-00838"/><category term="ORA-00839"/><category term="ORA-00840"/><category term="ORA-00841"/><category term="ORA-00842"/><category term="ORA-00843"/><category term="ORA-00844"/><category term="ORA-00845"/><category term="ORA-00846"/><category term="ORA-00847"/><category term="ORA-00848"/><category term="ORA-00849"/><category term="ORA-00850"/><category term="ORA-00852"/><category term="ORA-00910"/><category term="ORA-00911"/><category term="ORA-00912"/><category term="ORA-00953"/><category term="ORA-00956"/><category term="ORA-00960"/><category term="ORA-00962"/><category term="ORA-00964"/><category term="ORA-00965"/><category term="ORA-00972"/><category term="ORA-00976"/><category term="ORA-00977"/><category term="ORA-00980"/><category term="ORA-00981"/><category term="ORA-00983"/><category term="ORA-00991"/><category term="ORA-01002"/><category term="ORA-01010"/><category term="ORA-01100"/><category term="ORA-01101"/><category term="ORA-01102"/><category term="ORA-01103"/><category term="ORA-01104"/><category term="ORA-01105"/><category term="ORA-01106"/><category term="ORA-01107"/><category term="ORA-01108"/><category term="ORA-01109"/><category term="ORA-01110"/><category term="ORA-01111"/><category term="ORA-01112"/><category term="ORA-01113"/><category term="ORA-01114"/><category term="ORA-01115"/><category term="ORA-01116"/><category term="ORA-01117"/><category term="ORA-100"/><category term="ORA-1002"/><category term="ORA-101"/><category term="ORA-1010"/><category term="ORA-102"/><category term="ORA-103"/><category term="ORA-104"/><category term="ORA-105"/><category term="ORA-106"/><category term="ORA-107"/><category term="ORA-108"/><category term="ORA-109"/><category term="ORA-110"/><category term="ORA-1100"/><category term="ORA-1101"/><category term="ORA-1102"/><category term="ORA-1103"/><category term="ORA-1104"/><category term="ORA-1105"/><category term="ORA-1106"/><category term="ORA-1107"/><category term="ORA-1108"/><category term="ORA-1109"/><category term="ORA-111"/><category term="ORA-1110"/><category term="ORA-1111"/><category term="ORA-1112"/><category term="ORA-1113"/><category term="ORA-1114"/><category term="ORA-1115"/><category term="ORA-1116"/><category term="ORA-1117"/><category term="ORA-112"/><category term="ORA-113"/><category term="ORA-114"/><category term="ORA-115"/><category term="ORA-116"/><category term="ORA-117"/><category term="ORA-118"/><category term="ORA-119"/><category term="ORA-122"/><category term="ORA-123"/><category term="ORA-125"/><category term="ORA-126"/><category term="ORA-127"/><category term="ORA-128"/><category term="ORA-129"/><category term="ORA-130"/><category term="ORA-131"/><category term="ORA-132"/><category term="ORA-133"/><category term="ORA-134"/><category term="ORA-135"/><category term="ORA-136"/><category term="ORA-137"/><category term="ORA-138"/><category term="ORA-139"/><category term="ORA-150"/><category term="ORA-151"/><category term="ORA-152"/><category term="ORA-153"/><category term="ORA-154"/><category term="ORA-155"/><category term="ORA-160"/><category term="ORA-161"/><category term="ORA-162"/><category term="ORA-163"/><category term="ORA-164"/><category term="ORA-165"/><category term="ORA-166"/><category term="ORA-200"/><category term="ORA-201"/><category term="ORA-202"/><category term="ORA-203"/><category term="ORA-204"/><category term="ORA-205"/><category term="ORA-206"/><category term="ORA-207"/><category term="ORA-208"/><category term="ORA-209"/><category term="ORA-210"/><category term="ORA-211"/><category term="ORA-212"/><category term="ORA-213"/><category term="ORA-214"/><category term="ORA-215"/><category term="ORA-216"/><category term="ORA-217"/><category term="ORA-218"/><category term="ORA-219"/><category term="ORA-220"/><category term="ORA-221"/><category term="ORA-222"/><category term="ORA-223"/><category term="ORA-224"/><category term="ORA-225"/><category term="ORA-226"/><category term="ORA-227"/><category term="ORA-228"/><category term="ORA-229"/><category term="ORA-230"/><category term="ORA-231"/><category term="ORA-232"/><category term="ORA-233"/><category term="ORA-234"/><category term="ORA-235"/><category term="ORA-236"/><category term="ORA-237"/><category term="ORA-238"/><category term="ORA-239"/><category term="ORA-240"/><category term="ORA-241"/><category term="ORA-242"/><category term="ORA-243"/><category term="ORA-244"/><category term="ORA-245"/><category term="ORA-246"/><category term="ORA-250"/><category term="ORA-251"/><category term="ORA-252"/><category term="ORA-253"/><category term="ORA-254"/><category term="ORA-255"/><category term="ORA-256"/><category term="ORA-257"/><category term="ORA-258"/><category term="ORA-259"/><category term="ORA-260"/><category term="ORA-261"/><category term="ORA-262"/><category term="ORA-263"/><category term="ORA-264"/><category term="ORA-265"/><category term="ORA-266"/><category term="ORA-267"/><category term="ORA-268"/><category term="ORA-269"/><category term="ORA-270"/><category term="ORA-271"/><category term="ORA-272"/><category term="ORA-273"/><category term="ORA-274"/><category term="ORA-275"/><category term="ORA-276"/><category term="ORA-277"/><category term="ORA-278"/><category term="ORA-279"/><category term="ORA-280"/><category term="ORA-281"/><category term="ORA-282"/><category term="ORA-283"/><category term="ORA-284"/><category term="ORA-285"/><category term="ORA-286"/><category term="ORA-287"/><category term="ORA-288"/><category term="ORA-289"/><category term="ORA-290"/><category term="ORA-291"/><category term="ORA-292"/><category term="ORA-293"/><category term="ORA-294"/><category term="ORA-295"/><category term="ORA-296"/><category term="ORA-297"/><category term="ORA-298"/><category term="ORA-299"/><category term="ORA-300"/><category term="ORA-301"/><category term="ORA-302"/><category term="ORA-303"/><category term="ORA-304"/><category term="ORA-305"/><category term="ORA-306"/><category term="ORA-307"/><category term="ORA-308"/><category term="ORA-309"/><category term="ORA-310"/><category term="ORA-311"/><category term="ORA-312"/><category term="ORA-313"/><category term="ORA-314"/><category term="ORA-315"/><category term="ORA-316"/><category term="ORA-317"/><category term="ORA-318"/><category term="ORA-319"/><category term="ORA-32"/><category term="ORA-320"/><category term="ORA-321"/><category term="ORA-322"/><category term="ORA-323"/><category term="ORA-324"/><category term="ORA-325"/><category term="ORA-326"/><category term="ORA-327"/><category term="ORA-328"/><category term="ORA-329"/><category term="ORA-330"/><category term="ORA-331"/><category term="ORA-332"/><category term="ORA-333"/><category term="ORA-334"/><category term="ORA-335"/><category term="ORA-336"/><category term="ORA-337"/><category term="ORA-338"/><category term="ORA-339"/><category term="ORA-340"/><category term="ORA-341"/><category term="ORA-342"/><category term="ORA-344"/><category term="ORA-345"/><category term="ORA-346"/><category term="ORA-347"/><category term="ORA-348"/><category term="ORA-349"/><category term="ORA-350"/><category term="ORA-351"/><category term="ORA-352"/><category term="ORA-353"/><category term="ORA-354"/><category term="ORA-355"/><category term="ORA-356"/><category term="ORA-357"/><category term="ORA-358"/><category term="ORA-359"/><category term="ORA-360"/><category term="ORA-361"/><category term="ORA-362"/><category term="ORA-363"/><category term="ORA-364"/><category term="ORA-365"/><category term="ORA-366"/><category term="ORA-367"/><category term="ORA-368"/><category term="ORA-369"/><category term="ORA-370"/><category term="ORA-371"/><category term="ORA-372"/><category term="ORA-373"/><category term="ORA-374"/><category term="ORA-376"/><category term="ORA-377"/><category term="ORA-378"/><category term="ORA-379"/><category term="ORA-380"/><category term="ORA-381"/><category term="ORA-382"/><category term="ORA-383"/><category term="ORA-384"/><category term="ORA-385"/><category term="ORA-386"/><category term="ORA-390"/><category term="ORA-391"/><category term="ORA-392"/><category term="ORA-393"/><category term="ORA-394"/><category term="ORA-395"/><category term="ORA-396"/><category term="ORA-397"/><category term="ORA-398"/><category term="ORA-399"/><category term="ORA-400"/><category term="ORA-401"/><category term="ORA-402"/><category term="ORA-403"/><category term="ORA-404"/><category term="ORA-405"/><category term="ORA-406"/><category term="ORA-407"/><category term="ORA-408"/><category term="ORA-409"/><category term="ORA-437"/><category term="ORA-438"/><category term="ORA-439"/><category term="ORA-443"/><category term="ORA-444"/><category term="ORA-445"/><category term="ORA-446"/><category term="ORA-447"/><category term="ORA-448"/><category term="ORA-449"/><category term="ORA-450"/><category term="ORA-451"/><category term="ORA-600"/><category term="ORA-601"/><category term="ORA-602"/><category term="ORA-603"/><category term="ORA-604"/><category term="ORA-606"/><category term="ORA-607"/><category term="ORA-608"/><category term="ORA-609"/><category term="ORA-610"/><category term="ORA-700"/><category term="ORA-701"/><category term="ORA-702"/><category term="ORA-703"/><category term="ORA-704"/><category term="ORA-705"/><category term="ORA-706"/><category term="ORA-71"/><category term="ORA-710"/><category term="ORA-711"/><category term="ORA-712"/><category term="ORA-72"/><category term="ORA-720"/><category term="ORA-721"/><category term="ORA-722"/><category term="ORA-723"/><category term="ORA-724"/><category term="ORA-725"/><category term="ORA-73"/><category term="ORA-74"/><category term="ORA-740"/><category term="ORA-741"/><category term="ORA-75"/><category term="ORA-750"/><category term="ORA-751"/><category term="ORA-752"/><category term="ORA-76"/><category term="ORA-77"/><category term="ORA-78"/><category term="ORA-79"/><category term="ORA-80"/><category term="ORA-81"/><category term="ORA-82"/><category term="ORA-820"/><category term="ORA-821"/><category term="ORA-822"/><category term="ORA-823"/><category term="ORA-824"/><category term="ORA-825"/><category term="ORA-826"/><category term="ORA-827"/><category term="ORA-828"/><category term="ORA-83"/><category term="ORA-830"/><category term="ORA-832"/><category term="ORA-837"/><category term="ORA-838"/><category term="ORA-839"/><category term="ORA-84"/><category term="ORA-840"/><category term="ORA-841"/><category term="ORA-842"/><category term="ORA-843"/><category term="ORA-844"/><category term="ORA-845"/><category term="ORA-846"/><category term="ORA-847"/><category term="ORA-848"/><category term="ORA-849"/><category term="ORA-85"/><category term="ORA-850"/><category term="ORA-851"/><category term="ORA-852"/><category term="ORA-86"/><category term="ORA-87"/><category term="ORA-88"/><category term="ORA-89"/><category term="ORA-90"/><category term="ORA-91"/><category term="ORA-910"/><category term="ORA-911"/><category term="ORA-912"/><category term="ORA-92"/><category term="ORA-93"/><category term="ORA-94"/><category term="ORA-953"/><category term="ORA-956"/><category term="ORA-96"/><category term="ORA-960"/><category term="ORA-962"/><category term="ORA-964"/><category term="ORA-965"/><category term="ORA-97"/><category term="ORA-972"/><category term="ORA-976"/><category term="ORA-977"/><category term="ORA-98"/><category term="ORA-980"/><category term="ORA-981"/><category term="ORA-983"/><category term="ORA-99"/><category term="ORA-991"/><category term="OracleRemExecServiceV2"/><category term="PDB Admin"/><category term="PGA"/><category term="RedHat"/><category term="SQLPLUS"/><category term="Services"/><category term="System error 53 has occurred"/><category term="USER_xxx"/><category term="[INS-30131] Initial setup required for the execution of installer validations failed"/><category term="cdb_data_files"/><category term="cdb_temp_files"/><category term="cdb_users"/><category term="clone PDB"/><category term="common user"/><category term="con_id"/><category term="con_name"/><category term="connected container"/><category term="database files"/><category term="drop pluggable database"/><category term="glogin.sql"/><category term="local user"/><category term="logfile"/><category term="lsnrctl"/><category term="net use \\localhost\c$"/><category term="server pool"/><category term="user management"/><category term="v$controlfile"/><category term="v$datafile"/><category term="v$logfile"/><category term="v$tablespace"/><title type='text'>Oracle Error Cause and Action</title><subtitle type='html'>Oracle Error Cause and Action</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ora-sos.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6912</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-4600528471275209383</id><published>2015-12-17T18:15:00.000+08:00</published><updated>2015-12-17T18:15:00.408+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Multitenancy"/><category scheme="http://www.blogger.com/atom/ns#" term="Multitenant"/><category scheme="http://www.blogger.com/atom/ns#" term="Tablespace"/><title type='text'>Tablespaces in multitenancy</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;In a non-CDB, all the tablespaces belong to one database.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;In the CDB, one set of tablespaces belong to the root container, and each PDB has its own set of tablespaces.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Common objects are created and their data stored in a tablespace in the root container. The common object is visible in the PDBs through links.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;There are new clauses in the CREATE DATABASE command. The USER_DATA TABLESPACE allows you to specify a default tablespace other than USERS when using DBCA to create a database. This tablespace will also be used for XDB options.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;The UNDO tablespace is common to all PDBs, that is, you can have more than one but there is only one active UNDO tablespace per CDB.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;To view the all tablespaces&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; SELECT tablespace_name, DECODE(pdb_name, NULL, &#39;ROOT&#39;,pdb_name) pdb_name&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;FROM cdb_tablespaces t, cdb_pdbs p&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;WHERE t.con_id = p.pdb_id(+)&lt;br /&gt;&amp;nbsp; 4 &amp;nbsp;ORDER BY 2,1;&lt;br /&gt;&lt;br /&gt;TABLESPACE_NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PDB_NAME&lt;br /&gt;------------------------------ --------------------&lt;br /&gt;SYSAUX &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PDB$SEED&lt;br /&gt;SYSTEM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PDB$SEED&lt;br /&gt;TEMP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PDB$SEED&lt;br /&gt;SYSAUX &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PDB2&lt;br /&gt;SYSTEM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PDB2&lt;br /&gt;TEMP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PDB2&lt;br /&gt;SYSAUX &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ROOT&lt;br /&gt;SYSTEM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ROOT&lt;br /&gt;TEMP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ROOT&lt;br /&gt;UNDOTBS1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ROOT&lt;br /&gt;UNDOTBS2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ROOT&lt;br /&gt;USERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ROOT&lt;br /&gt;&lt;br /&gt;12 rows selected.&lt;/blockquote&gt;&lt;br /&gt;The CREATE TABLESPACE command should be familiar. The change in its behavior in a CDB is that the tablespace is created in the container where the command is executed. Separating the data files into different directories by PDB can help determine which files belong to which PDB, though it is not necessary but it is good from administration perspective.&lt;br /&gt;&lt;br /&gt;Create tablespace at CDB&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; connect system/oracle@cdb&lt;br /&gt;Connected.&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;CDB$ROOT&lt;br /&gt;SQL&amp;gt; CREATE TABLESPACE cdb_tbs&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;DATAFILE &#39;+DATA/ora12c/cdb_tbs01.dbf&#39;&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;SIZE 5M;&lt;br /&gt;&lt;br /&gt;Tablespace created.&lt;/blockquote&gt;&lt;br /&gt;Create tablespace at PDB&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; connect system/oracle@pdb2&lt;br /&gt;Connected.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB2&lt;br /&gt;SQL&amp;gt; CREATE TABLESPACE pdb2_tbs&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;DATAFILE &#39;+DATA/pdb2/pdb2_tbs01.dbf&#39;&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;SIZE 5M;&lt;br /&gt;&lt;br /&gt;Tablespace created.&lt;/blockquote&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4600528471275209383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4600528471275209383'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/tablespaces-in-multitenancy.html' title='Tablespaces in multitenancy'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-2206207870197543428</id><published>2015-12-17T15:38:00.000+08:00</published><updated>2015-12-17T15:38:00.313+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="glogin.sql"/><category scheme="http://www.blogger.com/atom/ns#" term="Multitenant"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLPLUS"/><title type='text'>Using glogin.sql to have friendly and nice SQLPLUS multitenancy environment</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;When we are working at multitenancy it is good to have glogin configured to show container info. I am having following glogin.sql.&lt;/div&gt;&lt;div class=&quot;tr_bq&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;tr_bq&quot;&gt;You can find the glogin.sql file in $ORACLE_HOME/sqlplus/admin&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;column id_plus_exp format 990 heading i&lt;br /&gt;column parent_id_plus_exp format 990 heading p&lt;br /&gt;column plan_plus_exp format a60&lt;br /&gt;column object_node_plus_exp format a8&lt;br /&gt;column other_tag_plus_exp format a29&lt;br /&gt;column other_plus_exp format a44&lt;br /&gt;define _editor=notepad&lt;br /&gt;--define _editor=vi&lt;br /&gt;set serveroutput on size 1000000&lt;br /&gt;set trimspool on&lt;br /&gt;set long 5000&lt;br /&gt;set linesize 100&lt;br /&gt;set pagesize 9999&lt;br /&gt;column plan_plus_exp format a80&lt;br /&gt;column global_name new_value gname&lt;br /&gt;set termout off&lt;br /&gt;define gname=idle&lt;br /&gt;column global_name new_value gname&lt;br /&gt;select lower(user) || &#39;@&#39; || substr(global_name, 1,&lt;br /&gt;decode( dot, 0,&lt;br /&gt;length(global_name), dot-1)&lt;br /&gt;) || &#39;-&amp;gt;&#39;|| host_name global_name&lt;br /&gt;from (select global_name, instr(global_name,&#39;.&#39;) dot from global_name)&lt;br /&gt;,v$instance;&lt;br /&gt;set sqlprompt &#39;&amp;amp;gname&amp;gt; &#39;&lt;br /&gt;set termout on&lt;/blockquote&gt;&lt;br /&gt;For unix or linux you need to change the define_editor&lt;br /&gt;&lt;blockquote&gt;define_editor=notepad&lt;/blockquote&gt;&lt;br /&gt;to  &lt;br /&gt;&lt;blockquote&gt;define_editor=vi&lt;/blockquote&gt;The sample like following&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;C:\&amp;gt;sqlplus system/oracle@pdb2&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 12.1.0.1.0 Production on Tue Dec 17 15:40:38 2013&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;Last Successful login time: Tue Dec 17 2013 15:32:59 +08:00&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,&lt;br /&gt;Advanced Analytics and Real Application Testing options&lt;br /&gt;&lt;br /&gt;system@PDB2-&amp;gt;ora12cn1&amp;gt;&lt;/blockquote&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2206207870197543428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2206207870197543428'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/using-gloginsql-to-have-friendly-and.html' title='Using glogin.sql to have friendly and nice SQLPLUS multitenancy environment'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-2426298532916985129</id><published>2015-12-16T16:28:00.000+08:00</published><updated>2015-12-16T16:28:00.068+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CBO"/><category scheme="http://www.blogger.com/atom/ns#" term="Cost Based Optimizer"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance Tuning"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Tuning"/><title type='text'>Cost Based Optimizer (CBO) Parameters Setting</title><content type='html'>The parameter that control the optimizer behaviors are:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;CURSOR_SHARING&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;determines what kind of SQL statements can shared the same cursors. The possible values you can use are:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;FORCE&lt;/i&gt;&lt;br /&gt;FORCE, forces statements that may differ in some literals, but are otherwise identical, to share a cursor, unless the literals affect the meaning of the statement. &lt;br /&gt;&lt;br /&gt;&lt;i&gt;SIMILAR&lt;/i&gt;&lt;br /&gt;SIMILAR causes statements that may differ in some literals, but are otherwise identical, to share a cursor, unless the literas affect either the meaning of the statement or the degree to which the plan is optimized. Forcing cursor sharing among similar (but not identical) statements can have unexpected results in some DSS application, or application that used stored outlines. &lt;br /&gt;&lt;br /&gt;&lt;i&gt;EXACT&lt;/i&gt;&lt;br /&gt;EXACT only allows statements with identical text to share the same cursor. This is the default.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;DB_FILE_MULTIBLOCK_READ_COUNT&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;is one of the parameters you can use to minimized I/O during table scans or index fast full scan. It specified the maximum number of blocks read in one I/O operation during a sequential scan. The total number of I/Os needed to perform a full table scan or an index fast full scan depends on factors, such as the size of the segment, the multiblock read count, and whether parallel execution is being utilized for the operation.&lt;br /&gt;&lt;br /&gt;As of Oracle Database 10gR2 the default value of this parameter is a value that corresponds to the maximum I/O size that can be perform efficiently. This value is platform dependent and is 1 MB for most platforms.&lt;br /&gt;&lt;br /&gt;Because the parameter is expressed in blocks, it automatically compute a value that is equal to the maximum I/O size that can be performed efficiently divided by the standard block size.&lt;br /&gt;&lt;br /&gt;Note that if the number of sessions is extremely large, the multiblock read count value is decreased to avoid the buffer cache getting flooded with too many table scan buffers. Even tough the default value may be a large value, the optimizer does not favor large plans if you do not see this parameter. It would do so only if you explicitly set this parameter to a large value. Basically, if this parameter is not set explicitly (o is set at 0), the optimizer uses a default value of 8 when costing full table scans and index fast full scans.&lt;br /&gt;&lt;br /&gt;OLTP and batch environments typically have values in the range of 4 to 16 for this parameter. DSS and data warehouse environments tend to benefit most from maximizing the value of this parameter. The optimizer is more likely to select full table scan over an index, if the value of this parameter is hight.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;PGA_AGGREGATE_TARGET&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;specifies the target aggregate PGA memory available to all server processes attached to the instance. Setting PGA_AGGREGATE_TARGET to a nonzero value has the effect of automatically setting the WORKAREA_SIZE_POLICY parameter to AUTO. This means that SQL working areas used by memory-intensive SQL operators, such as sort, group by, has-join, bitmap merge, and bitmap create, are automatically sized.&lt;br /&gt;&lt;br /&gt;A nonzero value for the PGA_AGGREGATE_TARGET parameter is the default since, unless you specify otherwise, the system sets it to 20% of the SGA or 10MB, whichever is greater.&lt;br /&gt;&lt;br /&gt;Setting PGA_AGGREGATE_TARGET to 0 automatically sets the WORKAREA_SIZE_POLICY parameter to MANUAL. This means that SQL work areas are sized using the *_AREA_SIZE parameters. The system attempts to keep the amount of private memory below the targe specified by this parameter by adapting the size of the work areas to private memory.&lt;br /&gt;&lt;br /&gt;When increasing the value of this parameter, you indirectly increase the memory allotted to work area. Consequently, more memory-intensive operations are able to run fully in memory and a less number of them work their way over to the disk. When setting this parameter, you should examine the total memory on your system that is available to the Oracle instance and subtract the SGA. You can assign the remaining memory to PGA_AGGREGATE_TARGET.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;STAR_TRANSFORMATION_ENABLED&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;determines whether a cost based query transformation is applied to star queries.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;RESULT_CACHE_MODE&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;The query optimizer manages the result cache mechanism depending on the settings of the RESULT_CACHE_MODE parameter in the initialization parameter file. You can use this parameter to determine whether or not the optimizer automatically sends the results of queries to the result cache. The possible parameter values are:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;MANUAL&lt;/i&gt;&lt;br /&gt;when set to MANUAL (the default), you must specify, by using the RESULT CACHE hint, that a particular result is to be stored in the cache.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;FORCE&lt;/i&gt;&lt;br /&gt;When set FORCE, all results are stored in the cache. For the FORCE setting, if the statement contains a [NO_]RESULT_CACHE hint, the hint take precedence over the parameter setting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;RESULT_CACHE_MAX_SIZE&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;RESULT_CACHE_MAX_RESULT&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;The memory size allocated to the result cache depends on the memory size of the SGA as well as the memory management system. You can change the memory allocated to the result cache by setting the RESULT_CACHE_MAX_SIZE parameter. The result cache is disabled if you set its value to 0. The value of this parameter is rounded to the largest multiple of 32 KB that is not greater than the specified value. If the rounded value is 0, the feature is disabled.&lt;br /&gt;&lt;br /&gt;Use the RESULT_CACHE_MAX_RESULT parameter to specify the maximum amount of cache memory that can be used by any single result. The default value is 5%, but you can specify any percentage value between 1 and 100.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;RESULT_CACHE_REMOTE_EXPIRATION&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Use the RESULT_CACHE_REMOTE_EXPIRATION parameter to specify the time (in number of minutes) for which a result that depends on remote database objects remains valid. The defaul value is 0, which implies that results using remote objects should not be cached. Setting this parameter to a nonzero value can produce stale answers, for example, if the remote table used by a result is modified at the remote database .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;OPTIMIZER_INDEX_CACHING&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;OPTIMIZER_INDEX_CACHING controls the costing of an index probe in conjunction with a nested loop or an inlist iterator. The range of value 0 - 100 for OPTIMIZER_INDEX_CACHING indicates the percentage of index blocks in the buffer cache, which modifies the optimizer&#39;s assumptions about index caching for nested loop and inlist iteratos.&lt;br /&gt;&lt;br /&gt;A value of 100 infers that 100% of the index blocks are likely to be found in the buffer cache and the optimizer adjust the cost of an index probe or nested loop accordingly. The default for this parameter is 0, which results in default optimizer behavior. Use caution when using this parameter because execution plans can change in favor of index caching. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;OPTIMIZER_INDEX_COST_ADJ&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;OPTIMIZER_INDEX_COST_ADJ lets you tune optimizer behavior for access path selection to be more or less index friendly. That is, to make the optimizer more or less prone to selecting an index access path over a full table scan.&lt;br /&gt;&lt;br /&gt;The range of values is 1 to 100. The default for this parameter is 100%, at which the optimizer evaluates index access paths at the regular cost. Any other value makes the optimizer evaluate the access path at that percentage of the regular cost. For example, a setting 50 makes the index access path look half as expensive as normal.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OPTIMIZER_FEATURES_ENABLED&lt;br /&gt;OPTIMIZER_FEATURES_ENABLED acts as umbrella parameter for enabling a series of optimizer features based on an Oracle release number&lt;br /&gt;&lt;br /&gt;For example, if you upgrade your database from 10.1 to release 11.1, but you want to keep the release 10.1 optimizer behavior, you can do so by setting this parameter to 10.1.0 At a later time, you can try to enhancements introduced in the releases up to an including release 11.1 by setting the parameter to 11.1.0.6.&lt;br /&gt;&lt;br /&gt;However, it is not recommended to explicitly set the OPTIMIZER_FEATURES_ENABLED parameter to an earlier release. To avoid possible SQL performance regression that may result from execution plan changes, consider using SQL plan management instead.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;OPTIMIZER_MODE&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;OPTIMIZER_MODE establishes the default behavior for selecting an optimizing approach for either the instance or your session. The possible values are&lt;br /&gt;&lt;br /&gt;&lt;i&gt;ALL_ROWS&lt;/i&gt;&lt;br /&gt;The ALL_ROWS value causes the optimizer to use a cost based approach for all SQL statements in the session regardless of the presence of statistics an optimizes with a goal of best throughput (minimum resource use to complete the entire statement). This is the default value.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;FIRST_ROWS_n&lt;/i&gt;&lt;br /&gt;When you use the FIRST_ROWS_n value, the optimizer uses a cost based approach, regardless of the presence of statistics, and optimizes with a goal best response time to return the first n number of rows; n can equal 1, 10, 100 or 1000.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;FIRST_ROWS&lt;/i&gt;&lt;br /&gt;The FIRST_ROWS value causes the optimizer to use a mix of cost and heuristics for find the best plan for fast delivery of the first few rows. Using heuristics sometimes leads the query optimizer to generate a plan with a cost that is significantly larger than the cost of a plan without applying the heuristic. FIRST_ROWS is available for backward compatibility and plan stability; use FIRS_ROW_n instead.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;OPTIMIZER_USER_SQL_PLAN_BASELINES&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;OPTIMIZER_DYNAMIC_SAMPLING&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES enables or disables the automatic recvognition of repeatable SQL statements, as well as the generations of SQL plan baselines for such statements.&lt;br /&gt;&lt;br /&gt;OPTIMIZER_USER_SQL_PLAN_BASELINES enables or disabales the use of SQL plan baselines stored in SQL Management Base. When enabled, the optimizer looks for a SQL plan baseline for the SQL steatment being compiled. If one is found in SQL Management Base, the optimizer costs each of the baseline plans and pick one with the lowest cost.&lt;br /&gt;&lt;br /&gt;OPTIMIZER_DYNAMIC_SAMPLING controls the level of dynamic sapling performed by the optimizer. If OPTIMIZER_FEATURE_ENABLE is set to 10.0.0 or later, the default value is 2. If it is set to 9.2.0, the default value is 1, and if it is set to 9.0.1 or earlier, the default value is 0.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;OPTIMIZER_USE_INVISIBLE_INDEXES&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;OPTIMIZER_USE_PENDING_STATISTICS&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;OPTIMIZER_USE_INVISIBLE_INDEXES enables or disables the use of invisible indexes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OPTIMIZER_USE_PENDING_STATISTICS specifies whether or not the optimizer uses pending statisctis when compiling SQL statements.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2426298532916985129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2426298532916985129'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/cost-based-optimizer-cbo-parameters.html' title='Cost Based Optimizer (CBO) Parameters Setting'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-1861079320184011084</id><published>2015-12-15T00:42:00.000+08:00</published><updated>2015-12-15T00:42:00.469+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Tuning"/><title type='text'>SQL Tuning Tools</title><content type='html'>Several tuning tools to detect and rectify SQL errors and performance issue&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Automatic Database Diagnostic Monitor&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The Automatic Database Diagnostic Monitor (ADDM) continually analyzes the performance data that is collected from the database instance. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQL Tuning Advisor&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The SQL tuning advisor analyzes SQL statements that have been identified as problematic, in an effort to retune them. By default, this is an automated task. You can also, at any time, run the SQL Tuning Advisor on a specific SQL workload, to look for ways to improve performance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQL Tuning Sets&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;SQL tuning sets serve as a repository for sets of SQL statements. For example, the SQL Tuning Advisor can run againsts a workload that is represented by a SQL Tuning Set. They can even be transported from database to database, to perform analysis on different machines.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQL Access Advisor&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The SQL Access Advisor analyzes a SQL statement, and provides advise on materialized view, indexes, materialized view logs, and partitions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQL Performance Analyzer&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The SQL performance analyzer automates the process of assessing the overal effect of a change, such as upgrading database or adding new indexes, on the full SQL workload by identifiying the performance divergence for each statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQL Monitoring&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The real-time SQL monitoring feature of Oracle Database enables you to monitor the performance of SQL statements while they execute.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQL Plan Management&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The SQL Plan Management tool can be used to control the execution plan evolution. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Adaptive SQL PLan Management&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL plan management (SPM) ensures that runtime performance will never degrade due to the change of an execution plan. To guarantee this, only accepted execution plans are used; any plan evolution that does occur, is tracked and evaluated at a later point in time, and only accepted if the new plan shows a noticeable improvement in runtime.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1861079320184011084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1861079320184011084'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/sql-tuning-tools.html' title='SQL Tuning Tools'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-3415717039090392292</id><published>2015-12-13T16:33:00.000+08:00</published><updated>2015-12-13T16:33:00.558+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Performance Tuning"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Tuning"/><title type='text'>General Database Tuning Task</title><content type='html'>Many SQL Tuning tasks should be performed on a regular basis. You may see a way to rewrite a WHERE clause, but it may depend on a new index being built. The following is a list of tasks that gives you a background of some important tasks that must be performed, and gives you an idea of what dependencies you may have as you tune SQL:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Identifying high-load SQL statements&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Identifying high-load SQL statements is one of the most important tasks you should perform. The ADDM is the ideal tool for this particular task.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Scheduling job to gather optimizer statistics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;By default, Oracle Database gathers optimizer statistics automatically. For this, a job is schduled to run in the maintenance windows.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Identifying usage and performance of hardware components&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;OS statistics provide information about the usage and performance of the main hardware components as well as the performance of the OS itself,&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Rebuilding indexes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Often, there is a beneficial impact on performance by rebuilding indexes. For example, removing non selective indexes to speed the DML, or adding columns to the index to improve selectivity.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Using stored statistics, outlines, or SQL plan baselines&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You can maintain the existing execution plan of SQL statements over time by using stored statistics, outlines, or SQL plan baselines.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you tune your system, it is important that you compare the &lt;b&gt;CPU time&lt;/b&gt; with the &lt;b&gt;wait time&lt;/b&gt; of your system. By comparing CPU time with wait time, you can determine how much of response time is spent on useful work and how much on waiting for resources potentially held by other processes.&lt;br /&gt;As general rule, the systems where CPU time is dominant usually need less tuning than the ones where wait time is dominant. On the other hand, high CPU usage can be caused by &lt;a href=&quot;http://12cnewfeatures.blogspot.sg/2013/12/poor-performance-sql-statements.html&quot;&gt;badly-written SQL statements&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;High CPU Time = Possibly needs SQL tuning&lt;/b&gt;&lt;br /&gt;&lt;b&gt;High Wait time = Need instance/RAC tuning&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Although the proposition of CPU time to wait time always tends to decrease as load on the system increases, steep increases in wait time are a sign of contention and must be addressed for good scalability. Scalability is a system&#39;s ability to process more workload with a proportional increase in system resource use.&lt;br /&gt;&lt;br /&gt;Adding more CPUs to a node, or nodes to a cluster, would provide very limited benefit under contention. Conversely, a system where the proportion of CPU time does not decrease significantly as load increases can scale better, and would most likely benefit from adding CPUs or RAC instances if needed.&lt;br /&gt;&lt;br /&gt;AWR reports display CPU time together with wait time in the TOP Timed Events section, if the CPU time portion is among the top five events.&lt;br /&gt;&lt;br /&gt;Poor application design, implementation, and configuration have a significant impact on scalability. This results in poor SQL and index design, resulting in a higher number of logical I/O for same number if rows returned. It also results in reduced availability because database objects take longer to maintain.&lt;br /&gt;&lt;br /&gt;However, design is not the only problem. The physical implementation of the application can be the weak link, as in the following examples:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;System can move to production environments with poorly written SQL that cause high I/O&lt;/li&gt;&lt;li&gt;Infrequent transaction COMMITs or ROLLBACKs can cause long locks on resources.&lt;/li&gt;&lt;li&gt;The production environment can use different execution plan than those generated in testing&lt;/li&gt;&lt;li&gt;Memory-intensive applications that allocated a large amount of memory without much thought for freeing the memory can cause excessive memory fragmentation, and.&lt;/li&gt;&lt;li&gt;Inefficient memory usage places high stress on the operating virtual memory subsystem, and this affects performance and availability.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;There are some common mistakes made on customer systems. Although these mistakes are not directly detected by ADDM, ADDM highlights the resulting high-load SQL. These mistakes are:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Bad Connection Management&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The application connects and disconnects for each database interaction. This problem is common with stateless middleware in application servers. It has over two orders of magnitude impact on performance and is totally unscalable&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Bad use of cursors and the shared pool&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Not using cursors results in repeated parses. If bind variables are not used, there may be hard parsing of all similar SQL statements. This has an order of magnitude impact on performance, and it is totally unscalable. Use cursors with bind variables that open the cursor and execute it many times. Be suspicious of application generating dynamic SQL.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Bad SQL&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Bad SQLis SQL that uses more resources than appropriate for the application. This can be a DSS query that runs for more than 24 hours or a query from an online application that takes more than a minute.&lt;br /&gt;SQL that consumes significant system resources should be investigated for potential improvement. ADDM identifies high-load SQL and the SQL Tuning Advisor can be used to provide recommendations for improvement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Use of nonstandard initialization parameters&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The use of nonstandard initialization parameters might have been implemented based on poor advise or incorrect assumptions. Most systems give acceptable performance using only the set of basic parameters. In particular, undocumented optimizer features can cause a great deal of problems that may require considerable investigation.&lt;br /&gt;Likewise, optimizer parameter set in the initialization parameter file can override proven optimal execution plans. For these reasons, schemas, schema statistics, and optimizer setting should be managed together as a group to ensure consistency of performance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Getting the database I/O wrong&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Many sites lay out their databases poorly over the available disks. Other sites specify the number of disks incorrectly because they configure disks by disk space and not by I/O bandwidth&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6. Redo log setup problems&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Many sites run with too small redo log files. Small redo logs cause system checkpoints to continuously put a high load on the buffer cache and the I/O system. If there are very few redo logs, the archive cannot keep up, and the database waits for the archive process to catch up.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;7. Excessive serialization&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Serialization of data blocks in the buffer cache due to shortage of undo segments is particularly common in application with large number of active users and a few undo segments. &lt;i&gt;Use Automatic Segment Space Management of ASSM and automatic undo management to solve this problem&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;8. Long full table scans&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Long full table scans for high-volume or interactive online operations could indicate poor transaction design, missing indexes, or poor SQL optimization. Long table scans, by nature, are I/O intensive an unscalable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;9. High amount of recursive (SYS) SQL&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Large amounts of recursive SQL executed by SYS could indicate that space management activities, such as extent allocations, take place. This is unscalable and impact user response time, Use locally managed tablespaces top reduce recursive SQL due to extent allocation. Reccursive SQL executed under another user ID is probably SQL and PL/SQL, so this is not a problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;10. Deployment and migration errors&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In many cases, an application uses too many resources because the schema owning the tables has not been successfully migrated from the development environment or from an older implementations. Example of this are missing indexes or incorrect statistics. These errors can lead to suboptimal execution plans and poor interactive user performance, When migrating applications of known performance, export the schema statistics to maintain plan stability using DBMS_STAT package.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Proactive Tuning&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Tuning usually implies fixing a performance problem. However , tuning should be part of the life cycle of an application, through the analysis, design, coding, production, and maintenance stages. The tuning phase is after left until the system is in production. At that time, tuning becomes a reactive exercise, where the most important bottleneck is identified and fixed.&lt;br /&gt;&lt;br /&gt;Application are no different from any other designed and engineered product. If the design look right, it is probably is right. This principle should always kept in mind when building application. Consider some of the following design issue that should be tune proactively instead of reactively : &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Simple Design&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If the table design is so complicated that nobody can fully understand it, the table is probably designed badly.&lt;br /&gt;&lt;br /&gt;If SQL statements are so long and involved that it would be impossible for any optimizer to effectively optimize it in real time, there is probably a bad statement, underlying transaction, or table design.&lt;br /&gt;&lt;br /&gt;If there are many indexes on a table and the same columns are repeatly indexed, there is probably a bad index design.&lt;br /&gt;&lt;br /&gt;If queries are submitted without suitable qualification (the WHERE clause) for rapid response for online users, there is probably a bad user interface or transaction design.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Data Modeling&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Data modeling is important in successful relation application design. This should be done in a way that quickly and accurately represents the business practices. Apply our greatest modeling efforts to those entities affected by the most frequent business transactions. Use of modeling tools can then rapidly generae schema definations and can be useful when a fast prototype is required.&lt;br /&gt;&lt;br /&gt;Normalizing data prevents duplication. When data is normalized, you have a clear picture of the keys and relationships. It is then easier to perform the next step of creating tables, constraints, and indexes, A good data model ultimately means that your queries are written more efficiently. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Table and Indexes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Table design is largely a compromise between flexibility and performance of core transactions. To keep the database flexible and able to accommodate unforeseen workloads, the table design should be very similar to the data model, and it should be normalized to at least third normal form. However, certain core transaction can require selective denormalization for performance purpose.&lt;br /&gt;&lt;br /&gt;Use the features supplied with Oracle Database to simplify table design for performance, such as storing tables prejoined in clusters, adding derived columns and aggregate values, and using materialized view or partitioned tables. Additionally, crate check constrains and column with default value to prevent bad data from getting into the tables.&lt;br /&gt;&lt;br /&gt;Design should be focused on business critical tables so that good performance can be achieved in areas&amp;nbsp; that are the most used. For noncritical tables, shortcuts in design can be adopted to enable a more rapid application development. If, however, a noncore table becomes a performance problem during prototyping and testing, remedial design efforts should be applied immediately.&lt;br /&gt;&lt;br /&gt;Index design is also largely iterative process based on the SQL that is generated by application designers. However, it is possible to make a sensible start by building indexes that enforce foreign key constraints (to reduce response time on joining between primary key tables and foreign key tables) and creating indexes on frequently accessed data, such as a person&#39;s name.&lt;br /&gt;&lt;br /&gt;Primary keys and unique keys are automatically indexed except for the DISABLE VALIDATE and DISABLE NONVALIDATE RELY constraints. As the application evolves and testing is performed on realistic sizes of data, certain queries need performance improvements, for which building a better index is a good solution.&lt;br /&gt;&lt;br /&gt;When buildig a nexe index, one of the easiest way to speed up a query is to reduce the number of logical I/O by eliminating a table scan from the execution plan. This can be done by appending to index all the columns of the table referenced by the query. These columns are the select list columns and any required join or sort columns.&lt;br /&gt;&lt;br /&gt;This technique is particularly useful in speeding up an online application&#39;s response time when time-consuming I/Os are reduced. This is best applied when testing the application with properly-sized data for the first time. The most aggressive form of this technique is to build an index-organized table or IOT&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Views&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Views can speed up and simplify application design. A simple view definition can mask data model complexity from the programmers whose priorities are to retrieve, display, collect, and store data.&lt;br /&gt;&lt;br /&gt;However, though vies provide clean programming interfaces, they can cause suboptimal, resources-intensive queries when nested too deeply. The worst type of view use is creating joins on views that reference other views, which in turn reference other views. In many cases, developers can satisfy the query directly from the table without using a view. Because of their inherent properties, views usually make it difficult for the optimizer to generate the optimal execution plan.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Writing Efficient SQL&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An application that is design for SQL execution efficiently must support the following characteristics:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;5.1. good database connectivity&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Connecting to the database is an expensive operation that is highly unscalable. Therefore, the number of concurrent connections to the database should be minimized as much as possible. A simple system, where a user connects at application initialization, is ideal.&lt;br /&gt;&lt;br /&gt;However, in a web-based or multi-tiered application, where application servers are used to multiplex database connections to users, this can be difficult. With these types of applications, design efforts should ensure that database connections are pooled and not re-established for each user request.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;5.2. good cursor usage and management&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Maintaining user connections is equally important for minimizing the parsing activity on the system. Parsing is the process of interpreting a SQL statement and creating an execution plan for it. This process has many phases, including syntax checking, security checking, execution plan generation, and loading shared structures into the shared pool.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;5.3. minimal parsing&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;There are two types of parse operations - hard and soft. In hard parsing, a SQL statement is submitted for the first time, and no match is found in the shared pool. Hard parses are the most resource-intensive and unsaclable because they perform all the operations involved in a parse.&lt;br /&gt;&lt;br /&gt;In soft parsing, a SQL statement is submitted for the first time, and a match is found in the shared pool. The match can be the result of previous execution by another user. The SQL statement is shared, which is good for performance. However, soft parses are not ideal because they still require syntax and security checking, which consume system resources.&lt;br /&gt;&lt;br /&gt;Because parsing should be minimized as much as possible, application developers should design their application to parse SQL statements once and execute them many times. This is done through cursors. Experienced SQL programmers should be familiar with the concept of opening and re-executing cursors.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;5.4. usage of bind variables&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Application developers must also ensure that SQL statements are shared within the shared pool. To do this, bind variables to represent the parts of the query that change for execution to execution. If this is not done, the SQL statement is likely to be parsed once and never reused by other users. To ensure that SQL is shared, use bind variables and do not use string literals with SQL statements.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6. Cursor Sharing&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For Oracle to shared cursors, the code must be written in the same way character wise, unless you use some special initialization parameters, such as CURSOR_SHARING. This allows the system to recognize that two statements are the same and thus can be shared, You should therefore, develop coding conventions for SQL statements in ad hoc queries, SQL scripts, and ORacle Call Interface or OCI calls. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;7. Bind Variables&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Use bind variables.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;SQL code readability can be improved by adhering to these guidelines:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Developing fromat standard for all statements, including those in PL/SQL code.&lt;br /&gt;2. Developing rules for the use of uppercase and lowercase characters.&lt;br /&gt;3. Developing rules for the use of whitespace (spces, table, returns).&lt;br /&gt;4. Developing rules for the use of comments (preferably keeping them out of the SQL stements themselves).&lt;br /&gt;5. Using the same names to refer to identical database objects. If possible, prefix each object with a schema name.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;You can also create following performance checklist:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Set minimal initialization parameters&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Set the minimal number of initialization parameters. Ideally, most initialization parameters should be left at default. If there is more tuning to perform, this shows up when the system is under load. Set storage options ofr tables and indexes in appropriate tablespaces.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Verify SQL statement&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Verify that all SQL statements are optimal and understand their usages.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Validate middleware and programs efficiency&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Validate that middle ware and programs that connected to the database are efficient in their connection management and do not log on and log off repeatdly.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Validate the use of cursors&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Validate that the SQL statements use cursors efficiently. Each SQL statement should be parsed once and then executed multiple times. This does not happen mostly because bind variables are not used properly and the WHERE clause predicates are sent as string literals. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Validate migration of schema objects&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Validate that all schema objects are correctly migrated from the development environment to the production database. This includes tables, indexes, sequences, triggers, packages, proceduires, functions, Java objects, synonyms, grants, and views. Ensure that any modifications made in testing are made to the production system.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Establish a baseline set of statistics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;As soon as the system is rolled out, establish a baseline set of statistics from the database and operating system. This first set of statistics validates or corrects any assumptions made in the design and rollout process.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3415717039090392292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3415717039090392292'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/general-database-tuning-task.html' title='General Database Tuning Task'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-1151683563818817854</id><published>2015-12-13T14:54:00.000+08:00</published><updated>2015-12-13T14:54:00.570+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Performance Tuning"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Tuning"/><title type='text'>Poor performance SQL Statements </title><content type='html'>&lt;b&gt;SQL statements can perform poorly for a variety of reason:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;1. Stale optimizer statistics&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;SQL execution plans are generated by the cost-based optimizer (CBO). For CBO to effectively choose the most efficient plan, it need accurate information on the data volume and distribution of tables and indexes referenced in the queries. Without accurate optimizer statistics, the CBO can be easily mislead and generate suboptimal execution plans.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;2. Missing access structure&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Absence of access structures, such as indexes, materialized views, and partitions, is a common reason for poor SQL performance. The right set of access structures can improve SQL.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;3. Suboptimal Execution Plan selection, and&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The CBO can sometimes select a suboptimal execution plan for a SQL statement. This happen for the most part because of incorrect estimates of some attributes of the SQL statement, such as its cost, carnality, or predicate selectivity.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;4. Poorly constructed SQL&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;If the SQL is designed poorly, there is not much that the optimizer can do to improve its performance. A missing join condition leading to a Cartesian product, or the use of more expensive SQL constructs like UNION in place of UNION ALL, are just a couple of examples of inefficient SQL design.&lt;br /&gt;&lt;br /&gt;Above are the four main causes of poor SQL optimization can have a drastic impact on performance.&lt;br /&gt;&lt;br /&gt;Additional reasons for poor performance might be connected with hardware-related issues, such as memory, I/O, CPUs, and so on.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example of poorly constructs SQL query:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Query common business question type. Query is to determines how many products have list prices less than 15% above the average cost of the product. This statement has a correlated subquery, which means that the subquery is run for every row found in the outer query.&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT COUNT(*) FROM product p&lt;br /&gt;WHERE prod_list_price &amp;lt; 1.15 * (SELECT AVG(unit_cost) FROM cost c&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE c.prod_id = p.prod_id);&lt;/blockquote&gt;&lt;br /&gt;Following is better written.&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT COUNT(*)&lt;br /&gt;FROM product p, &lt;br /&gt;&amp;nbsp; &amp;nbsp; (SELECT prod_id, AVG(unit_cost) auc FROM costs&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;GROUP BY prod_id) c&lt;br /&gt;WHERE p.prod_id = c.prod_id&lt;br /&gt;AND p.prod_list_price &amp;lt; 1.15 * c.auc;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Use simple equality of having function based indexes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The query, in this example, applies functions to the join columns, restricting the condition where indexes can be used. Use a simple equality, if you can. &lt;b&gt;Otherwise, a function-based index may be necessary&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT * FROM job_history jh, employees e&lt;br /&gt;&amp;nbsp; WHERE SUBSTR(TO_CHAR(e.employee_id),2 = SUBSTR(TO_CHAR(jh.employee_id),2);&lt;/blockquote&gt;&lt;br /&gt;In this example, the query ha a condition that forces implicit data type conversion; the ORDER_ID_CHAR column is a character type and the constant is a numeric type. You should make the literal match the column type.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT * FROM orders WHERE order_id_char = 1000;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Example of query uses a data type conversions function in it to make the data types match in the comparison.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The problem here is that the TO_CHAR function is applied to the column values, rather than to the constant. This means that the function is called for ecery row in the table. It would be better to convert the literal once, an not convert the column.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT * FROM employees WHERE TO_CHAR(salary) = :sal&lt;/blockquote&gt;&lt;br /&gt;The query is better written using this SQL statement&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT * FROM employees WHERE TO_CHARsalary = TO_NUMBER(:sal)&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Unnecessary unique sort&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In this query, the UNION operator, as opposed to the UNION ALL operator, ensures that there are no duplicate rows in the result set. However, this required an extra step, a unique sort, to eliminate any duplicates. If you know there a no rows in common between the two UNIONed queries, use UNION ALL instead of UNION. This eliminates the unnecessary sort.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT * FROM parts_old&lt;br /&gt;UNION&lt;br /&gt;SELECT * FROM parts_new&lt;/blockquote&gt;&lt;br /&gt;The query is better writte using this SQL statement&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SELECT * FROM parts_old&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT * FROM parts_new&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1151683563818817854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1151683563818817854'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/poor-performance-sql-statements.html' title='Poor performance SQL Statements '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-2624193918788279371</id><published>2015-12-13T13:55:00.000+08:00</published><updated>2015-12-13T13:55:00.419+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PGA"/><title type='text'>What is PGA (Program Global Area)</title><content type='html'>PGAs are memory regions that contain data and control information about a server or background process. A PGA is suballocated from the aggregated PGA area. Only a server process can access the PGA.&lt;br /&gt;&lt;br /&gt;The content of the PGA memory varies, depending on whether or not the instance runs the shareed server option, Generally, the PGA memory divided into session memory, cursors, and SQL workarea.&lt;br /&gt;&lt;br /&gt;Session memory is the memory allocated to hold a session&#39;s variables (logon information) and other information related to the session. For a shared server, the session memory is shared and not private.&lt;br /&gt;&lt;br /&gt;Cursor are handles to private memory structure or specific SQL statement&lt;br /&gt;&lt;br /&gt;SQL Workarea, for complex queries that use memory intensive operators like following:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Sort-based operators, such as ORDER BY, GROUP BY, ROLLUP. and window functions&lt;/li&gt;&lt;li&gt;Hash-join&lt;/li&gt;&lt;li&gt;Bitmap merge&lt;/li&gt;&lt;li&gt;Bitmap create&lt;/li&gt;&lt;li&gt;Write buffers used by bulk load operations&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Generally bigger work areas can significantly improve performance of a particular operator at the cost of higher memory consumption.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you are using automatic memory management to manage the database memory on your system, then you do not need to manually tune the PGA.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2624193918788279371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2624193918788279371'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/what-is-pga-program-global-area.html' title='What is PGA (Program Global Area)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-6060456949083409354</id><published>2015-12-10T17:57:00.000+08:00</published><updated>2015-12-10T17:57:00.159+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Automatically Open PDBs"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB Admin"/><title type='text'>Automatically Open PDBs When CDB started</title><content type='html'>To automatically open PDB when CDB is started, we can use trigger at CDB level.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Login to CDB root&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;CDB$ROOT&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; CREATE TRIGGER open_pdb3&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;AFTER STARTUP ON DATABASE&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;BEGIN&lt;br /&gt;&amp;nbsp; 4 &amp;nbsp;EXECUTE IMMEDIATE &#39;ALTER PLUGGABLE DATABASE pdb3 OPEN&#39;;&lt;br /&gt;&amp;nbsp; 5 &amp;nbsp;END open_pdb3;&lt;br /&gt;&amp;nbsp; 6 &amp;nbsp;/&lt;br /&gt;&lt;br /&gt;Trigger created.&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Test it&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;[oracle@ora12cn1 Desktop]$ srvctl stop database -d ora12c&lt;br /&gt;[oracle@ora12cn1 Desktop]$ srvctl start database -d ora12c&lt;br /&gt;[oracle@ora12cn1 Desktop]$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 12.1.0.1.0 Production on Tue Dec 10 17:53:27 2013&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,&lt;br /&gt;Advanced Analytics and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select name, open_mode from v$pdbs;&lt;br /&gt;&lt;br /&gt;NAME &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OPEN_MODE&lt;br /&gt;------------------------------ ----------&lt;br /&gt;PDB$SEED&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;READ ONLY&lt;br /&gt;PDB2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MOUNTED&lt;br /&gt;PDB3&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;READ WRITE&lt;br /&gt;PDB3_CLONE&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MOUNTED&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/6060456949083409354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/6060456949083409354'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/automatically-open-pdbs-when-cdb-started.html' title='Automatically Open PDBs When CDB started'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-72834902712013634</id><published>2015-12-08T04:20:00.000+08:00</published><updated>2015-12-08T04:20:00.767+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="[INS-30131] Initial setup required for the execution of installer validations failed"/><category scheme="http://www.blogger.com/atom/ns#" term="net use \\localhost\c$"/><category scheme="http://www.blogger.com/atom/ns#" term="OracleRemExecServiceV2"/><category scheme="http://www.blogger.com/atom/ns#" term="System error 53 has occurred"/><title type='text'>Install Oracle 12c Client/Database on Windows [INS-30131]</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;I need to upgrade all the clients station to 12c, however I encountered &amp;nbsp;following error&lt;/div&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[INS-30131] Initial setup required for the execution of installer validations failed &lt;/blockquote&gt;&lt;br /&gt;When I click on detail&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;Cause - Failed to access the temporary location.&lt;br /&gt;&lt;br /&gt;Action: Ensure that the current user has required permissions to access the temporary location. &lt;/blockquote&gt;&lt;br /&gt;This error occur when I try to install Oracle 12c for Windows&lt;br /&gt;&lt;br /&gt;The solution to this is to execute following command&lt;br /&gt;&lt;br /&gt;1. If you see following services running&lt;br /&gt;&lt;blockquote&gt;OracleRemExecServiceV2&lt;/blockquote&gt;stop it&lt;br /&gt;&lt;br /&gt;2. Share the C:\ with following command&lt;br /&gt;&lt;br /&gt;C:\&amp;gt;net use \\localhost\C$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2.a. If you encountered following error&lt;br /&gt;&lt;blockquote&gt;C:\&amp;gt;net use \\localhost\c$&lt;br /&gt;System error 53 has occurred.&lt;br /&gt;&lt;br /&gt;The network path was not found. &lt;/blockquote&gt;Try following to fix above issue&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;Right Click - My Computer -&amp;gt; Properties -&amp;gt; Advance system settings -&amp;gt; Remote (TAB) -&amp;gt; Tick, Allow connections only from computer running Remote Desktop with Network Level Authentication (more secure) -&amp;gt; Apply&lt;/blockquote&gt;&lt;br /&gt;Then try again the net use command, final result should look like following&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;C:\&amp;gt;net use \\localhost\c$&lt;br /&gt;The command completed successfully.&lt;/blockquote&gt;&lt;br /&gt;Try to run the setup.exe again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/72834902712013634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/72834902712013634'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/install-oracle-12c-clientdatabase-on.html' title='Install Oracle 12c Client/Database on Windows [INS-30131]'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-7097264443169456232</id><published>2015-12-04T15:36:00.000+08:00</published><updated>2015-12-04T15:36:01.252+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cdb_users"/><category scheme="http://www.blogger.com/atom/ns#" term="common user"/><category scheme="http://www.blogger.com/atom/ns#" term="local user"/><category scheme="http://www.blogger.com/atom/ns#" term="user management"/><title type='text'>List All Users Created</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;There are two types of users as following:&lt;/div&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Local User&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A user in a non-CDB maps to a local user in a PDB.&lt;/li&gt;&lt;li&gt;A local user is defined in the PDB’s own data dictionary—and so is not known outside of&lt;/li&gt;&lt;li&gt;that PDB.&lt;/li&gt;&lt;li&gt;A local user can connect only to the PDB where it is defined.&lt;/li&gt;&lt;li&gt;A local user is specific to a particular PDB and owns a schema in this PDB.&lt;/li&gt;&lt;li&gt;According to the privileges granted, a user can work on the application data within the&lt;/li&gt;&lt;li&gt;PDB or with other PDBs’ application using database links. Moreover, there cannot be any&lt;/li&gt;&lt;li&gt;local users defined in the root.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Common User&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A common user is defined in the root’s data dictionary.&lt;/li&gt;&lt;li&gt;Only common users can be defined in the root: Creating a common user allows the CDB administrator to create at once a user that is replicated in each PDB.&lt;/li&gt;&lt;li&gt;A common user is known, not only where it is defined in the root, but also in every PDB that belongs to the CDB.&lt;/li&gt;&lt;li&gt;A common user can perform administrative tasks specific to the root or PDBs, such as plugging and unplugging PDBs, starting up the CDB, or opening a PDB when granted the proper privileges.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;List all common users&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; set pagesize 50&lt;br /&gt;SQL&amp;gt; col username form a25&lt;br /&gt;SQL&amp;gt; select distinct username from cdb_users where common = &#39;YES&#39;;&lt;br /&gt;&lt;br /&gt;USERNAME&lt;br /&gt;-------------------------&lt;br /&gt;SPATIAL_WFS_ADMIN_USR&lt;br /&gt;OUTLN&lt;br /&gt;CTXSYS&lt;br /&gt;SYSBACKUP&lt;br /&gt;ORACLE_OCM&lt;br /&gt;APEX_PUBLIC_USER&lt;br /&gt;MDDATA&lt;br /&gt;GSMADMIN_INTERNAL&lt;br /&gt;SYSDG&lt;br /&gt;ORDDATA&lt;br /&gt;DIP&lt;br /&gt;SYSKM&lt;br /&gt;XS$NULL&lt;br /&gt;OLAPSYS&lt;br /&gt;SPATIAL_CSW_ADMIN_USR&lt;br /&gt;SYSTEM&lt;br /&gt;ORDPLUGINS&lt;br /&gt;DBSNMP&lt;br /&gt;ORDSYS&lt;br /&gt;XDB&lt;br /&gt;GSMCATUSER&lt;br /&gt;SYS&lt;br /&gt;APEX_040200&lt;br /&gt;DVF&lt;br /&gt;MDSYS&lt;br /&gt;GSMUSER&lt;br /&gt;FLOWS_FILES&lt;br /&gt;AUDSYS&lt;br /&gt;DVSYS&lt;br /&gt;OJVMSYS&lt;br /&gt;APPQOSSYS&lt;br /&gt;SI_INFORMTN_SCHEMA&lt;br /&gt;ANONYMOUS&lt;br /&gt;LBACSYS&lt;br /&gt;WMSYS&lt;br /&gt;&lt;br /&gt;35 rows selected.&lt;/blockquote&gt;&lt;br /&gt;To view local user from CDB as following&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col user_id form 99999&lt;br /&gt;SQL&amp;gt; col username form a15&lt;br /&gt;SQL&amp;gt; col name form a20&lt;br /&gt;SQL&amp;gt; set linesize 250&lt;br /&gt;SQL&amp;gt; SELECT * &amp;nbsp; &lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;FROM ( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; 3 &amp;nbsp; SELECT user_id, username, common, u.con_id, pdb.name, pdb.open_mode&lt;br /&gt;&amp;nbsp; 4 &amp;nbsp; FROM cdb_users u, v$pdbs pdb&lt;br /&gt;&amp;nbsp; 5 &amp;nbsp; WHERE u.con_id(+) = pdb.con_id)&lt;br /&gt;&amp;nbsp; 6 &amp;nbsp;WHERE common = &#39;NO&#39;&lt;br /&gt;&amp;nbsp; 7 &amp;nbsp;OR common is null;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; USER_ID USERNAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COM CON_ID &amp;nbsp; &amp;nbsp; NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OPEN_MODE&lt;br /&gt;------- --------------- --- ---------- -------------------- ----------&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PDB3_CLONE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MOUNTED&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PDB3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MOUNTED&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PDB2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MOUNTED&lt;/blockquote&gt;&lt;br /&gt;As you can see no user are shown and the PDBs are mounted state, we need to open the database to view the users.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; alter pluggable database pdb2 open;&lt;br /&gt;&lt;br /&gt;Pluggable database altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; SELECT * &amp;nbsp; &lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;FROM ( &lt;br /&gt;&amp;nbsp; 3 &amp;nbsp; SELECT user_id, username, common, u.con_id, pdb.name, pdb.open_mode&lt;br /&gt;&amp;nbsp; 4 &amp;nbsp; FROM cdb_users u, v$pdbs pdb&lt;br /&gt;&amp;nbsp; 5 &amp;nbsp; WHERE u.con_id(+) = pdb.con_id)&lt;br /&gt;&amp;nbsp; 6 &amp;nbsp;WHERE common = &#39;NO&#39;&lt;br /&gt;&amp;nbsp; 7 &amp;nbsp;OR common is null; &lt;br /&gt;&lt;br /&gt;USER_ID USERNAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COM CON_ID &amp;nbsp; &amp;nbsp; NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OPEN_MODE&lt;br /&gt;------- --------------- --- ---------- -------------------- ----------&lt;br /&gt;&amp;nbsp; &amp;nbsp; 102 PDB2_ADMIN &amp;nbsp; &amp;nbsp; &amp;nbsp;NO &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 PDB2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; READ WRITE&lt;br /&gt;&amp;nbsp; &amp;nbsp; 103 USER1_PDB2 &amp;nbsp; &amp;nbsp; &amp;nbsp;NO &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 PDB2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; READ WRITE&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PDB3_CLONE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MOUNTED&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PDB3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MOUNTED&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You can change session from CDB$ROOT to pluggable database by using following command. Once you are in that container you can perform the user admin as usual.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; alter session set container=pdb2;&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB2&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; alter user user1_pdb2 account lock;&lt;br /&gt;&lt;br /&gt;User altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; alter user user1_pdb2 account unlock;&lt;br /&gt;&lt;br /&gt;User altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; create user test identified by oracle;&lt;br /&gt;&lt;br /&gt;User created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; drop user test;&lt;br /&gt;&lt;br /&gt;User dropped.&lt;/blockquote&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/7097264443169456232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/7097264443169456232'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/list-all-users-created.html' title='List All Users Created'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-4064092891792356833</id><published>2015-12-04T10:46:00.000+08:00</published><updated>2015-12-04T10:46:00.376+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ALL_xxx"/><category scheme="http://www.blogger.com/atom/ns#" term="CDB_xxx"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Dictionary"/><category scheme="http://www.blogger.com/atom/ns#" term="DBA_xxx"/><category scheme="http://www.blogger.com/atom/ns#" term="USER_xxx"/><title type='text'>Oracle 12c Data Dictionary Views CDB_xxx, DBA_xxx, ALL_xxx, USER_xxx</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwyyIVyUAa1qIJM8G1-5hc3pNuA76aibfAoSESSS-gqBDZ-dk99UcRYwOlADt7hCxGH7W48XWuBpt80E2CDhX2mrGRhkzif6By_EpuRkYLJs7OuM48ZyV3jKDQ2z7pbOrJEyLBjYQh0pAU/s1600/data+dictionary.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwyyIVyUAa1qIJM8G1-5hc3pNuA76aibfAoSESSS-gqBDZ-dk99UcRYwOlADt7hCxGH7W48XWuBpt80E2CDhX2mrGRhkzif6By_EpuRkYLJs7OuM48ZyV3jKDQ2z7pbOrJEyLBjYQh0pAU/s640/data+dictionary.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In a CDB, for every DBA_* view, a CDB_* view is defined.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;In the root, CDB views can be used to obtain information about tables, tablespaces, users, privileges, parameters, PDBs and other types of objects contained in the root and all PDBs.&lt;/li&gt;&lt;li&gt;In a PDB, the CDB_* views show objects visible through a corresponding DBA_* view only.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;In addition, to all the columns found in a given DBA_* view, the corresponding CDB_* view also contains the CON_ID column, which identifies a container whose data a given CDB_* row represents. In a non-CDB, the value of a CON_ID column is 0. In a CDB, the value can be either 1 used for rows containing data pertaining to the root only or n where n is the applicable container ID.&lt;br /&gt;&lt;br /&gt;Examples of CDB views:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Connected to the root and querying CDB_USERS, you get the list of users, common and local, of each container.&lt;/li&gt;&lt;li&gt;Connected to a PDB and querying CDB_USERS or DBA_USERS, you get the same list of&lt;/li&gt;&lt;li&gt;users, common and local, of the PDB.&lt;/li&gt;&lt;li&gt;Connected to the root and querying the CDB_PDBS view, you get the list of all PDBs.&lt;/li&gt;&lt;li&gt;Querying the CDB_TABLESPACES view, you get the list of all tablespaces of all PDBs.&lt;/li&gt;&lt;/ul&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4064092891792356833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4064092891792356833'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/oracle-12c-data-dictionary-views-cdbxxx.html' title='Oracle 12c Data Dictionary Views CDB_xxx, DBA_xxx, ALL_xxx, USER_xxx'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwyyIVyUAa1qIJM8G1-5hc3pNuA76aibfAoSESSS-gqBDZ-dk99UcRYwOlADt7hCxGH7W48XWuBpt80E2CDhX2mrGRhkzif6By_EpuRkYLJs7OuM48ZyV3jKDQ2z7pbOrJEyLBjYQh0pAU/s72-c/data+dictionary.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-3695136513304920705</id><published>2015-12-01T20:43:00.000+08:00</published><updated>2015-12-01T20:43:00.413+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="clone PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="create PDB"/><title type='text'>Create PDB from existing PDB (Clone PDB)</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;1. Connect to CDB as root&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;[oracle@ora12cn1 ~]$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 12.1.0.1.0 Production on Sun Dec 1 19:12:07 2013&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,&lt;br /&gt;Advanced Analytics and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;CDB$ROOT&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;2. Make the source pluggable database READ ONLY Mode.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; alter pluggable database pdb3 close;&lt;br /&gt;&lt;br /&gt;Pluggable database altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; alter pluggable database pdb3 open read only;&lt;br /&gt;&lt;br /&gt;Pluggable database altered.&lt;/blockquote&gt;&lt;br /&gt;3. Create the directory for the clone datafiles.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[grid@ora12cn1 ~]$ asmcmd&lt;br /&gt;ASMCMD&amp;gt; pwd &lt;br /&gt;+&lt;br /&gt;ASMCMD&amp;gt; cd DATA&lt;br /&gt;ASMCMD&amp;gt; ls&lt;br /&gt;ASM/&lt;br /&gt;ORA12C/&lt;br /&gt;ora12c-scan/&lt;br /&gt;orapwasm&lt;br /&gt;pdb$seed_sysaux01.dbf&lt;br /&gt;pdb$seed_system01.dbf&lt;br /&gt;pdb2/&lt;br /&gt;pdb3/&lt;br /&gt;pdbseed_temp01.dbf&lt;br /&gt;ASMCMD&amp;gt; mkdir pdb3_clone&lt;br /&gt;ASMCMD&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;4. Identify the data files and the temp files of the sources, to learn the directory structure&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; select file_name from cdb_pdbs p, cdb_data_files f&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;where p.pdb_id=f.con_id&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;and p.pdb_name = &#39;PDB3&#39;;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;----------------------------------------&lt;br /&gt;+DATA/pdb3/system01.dbf&lt;br /&gt;+DATA/pdb3/sysaux01.dbf&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from cdb_pdbs p, cdb_temp_files f&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;where p.pdb_id=f.con_id&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;and p.pdb_name = &#39;PDB3&#39;;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;----------------------------------------&lt;br /&gt;+DATA/pdb3/temp01.dbf&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;5. Issue CREATE PLUGGABLE DATABASE command&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; CREATE PLUGGABLE DATABASE pdb3_clone FROM pdb3&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;FILE_NAME_CONVERT=(&#39;+DATA/pdb3&#39;, &#39;+DATA/pdb3_clone&#39;)&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;PATH_PREFIX = &#39;+DATA/pdb3_clone&#39;;&lt;br /&gt;&lt;br /&gt;Pluggable database created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;6. Check the result&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; alter pluggable database pdb3_clone open;&lt;br /&gt;&lt;br /&gt;Pluggable database altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; &lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from cdb_pdbs p, cdb_data_files f&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;where p.pdb_id=f.con_id&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;and p.pdb_name = &#39;PDB3_CLONE&#39;;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;----------------------------------------&lt;br /&gt;+DATA/pdb3_clone/system01.dbf&lt;br /&gt;+DATA/pdb3_clone/sysaux01.dbf&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from cdb_pdbs p, cdb_temp_files f&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;where p.pdb_id=f.con_id&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;and p.pdb_name = &#39;PDB3_CLONE&#39;;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;----------------------------------------&lt;br /&gt;+DATA/pdb3_clone/temp01.dbf&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;!&lt;/blockquote&gt;&lt;blockquote&gt;[grid@ora12cn2 ~]$ lsnrctl services&lt;br /&gt;LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 01-DEC-2013 20:42:34&lt;br /&gt;Copyright (c) 1991, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))&lt;br /&gt;Services Summary...&lt;br /&gt;Service &quot;+ASM&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;+ASM2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12c&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12cXDB&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;D000&quot; established:0 refused:0 current:0 max:1022 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DISPATCHER &amp;lt;machine: ora12cn2, pid: 3475&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(ADDRESS=(PROTOCOL=tcp)(HOST=ora12cn2.localdomain)(PORT=50151))&lt;br /&gt;Service &quot;pdb2&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;pdb3&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;pdb3_clone&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;The command completed successfully&amp;nbsp;&lt;/blockquote&gt;&lt;br /&gt;7. Add connection string to $ORACLE_HOME/network/admin/tnsnames.ora or $GRID_HOME/network/admin/tnsnames.ora&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;PDB3_CLONE =&lt;br /&gt;&amp;nbsp; (DESCRIPTION =&lt;br /&gt;&amp;nbsp; &amp;nbsp; (ADDRESS_LIST =&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = ora12c-scan)(PORT = 1521))&lt;br /&gt;&amp;nbsp; &amp;nbsp; )&lt;br /&gt;&amp;nbsp; &amp;nbsp; (CONNECT_DATA =&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (SERVICE_NAME = pdb3_clone)&lt;br /&gt;&amp;nbsp; &amp;nbsp; )&lt;br /&gt;&amp;nbsp; )&lt;/blockquote&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3695136513304920705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3695136513304920705'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/12/create-pdb-from-existing-pdb-clone-pdb.html' title='Create PDB from existing PDB (Clone PDB)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-4582576804429806456</id><published>2015-11-26T17:37:00.000+08:00</published><updated>2015-11-26T17:37:00.498+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="create PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB Seed"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB$SEED"/><category scheme="http://www.blogger.com/atom/ns#" term="Pluggable Database"/><title type='text'>Create PDB from PDB$SEED (appropriate PDB directory)</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;This is an extension example from previous post of &lt;a href=&quot;http://12cnewfeatures.blogspot.sg/2013/11/create-pdb-from-pdbseed.html&quot;&gt;Create PDB from PDB$SEED&lt;/a&gt;&lt;/div&gt;The objective is to convert the data files and temp files to pdb folder appropriately.&lt;br /&gt;&lt;br /&gt;Previous example result is as follow&lt;br /&gt;&lt;br /&gt;Check the data and temp files &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; alter session set container=pdb2; &lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB2&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_data_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME &lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;+DATA/pdb2/pdb$seed_system01.dbf&lt;br /&gt;+DATA/pdb2/pdb$seed_sysaux01.dbf&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_temp_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME &lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;+DATA/pdb2/pdbseed_temp01.dbf&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;If you notice that system01.dbf and sysaux01.dbf are having suffix pdb$seed but temp01.dbf is having pdbseed (without $). We therefore need to convert both of them.&lt;br /&gt;&lt;br /&gt;Following is the command to rectify my error (I am creating PDB3 from the beginning).&lt;br /&gt;&lt;br /&gt;1. Create the folder to place the pdb datafiles, in this example I am using ASM, the procedure is the same if you are using non RAC (ordinary file system)&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[oracle@ora12cn1 ~]$ su - grid&lt;br /&gt;Password:&lt;br /&gt;[grid@ora12cn1 ~]$ asmcmd&lt;br /&gt;ASMCMD&amp;gt; cd +DATA&lt;br /&gt;ASMCMD&amp;gt; mkdir pdb3&lt;br /&gt;ASMCMD&amp;gt; cd pdb3&lt;br /&gt;ASMCMD&amp;gt; pwd&lt;br /&gt;+DATA/pdb3&lt;br /&gt;ASMCMD&amp;gt;&amp;nbsp;&lt;/blockquote&gt;2. Connect to root, with sys as sysdba&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[oracle@ora12cn1 ~]$ sqlplus / as sysdba&lt;br /&gt;SQL*Plus: Release 12.1.0.1.0 Production on Mon Nov 25 15:55:04 2013&lt;br /&gt;Copyright (c) 1982, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,&lt;br /&gt;Advanced Analytics and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;&amp;nbsp;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;3. Identify the location of PDB$SEED datafiles.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; alter session set container=PDB$SEED;&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB$SEED&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_data_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;-------------------------------------------&lt;br /&gt;+DATA/pdb$seed_system01.dbf&lt;br /&gt;+DATA/pdb$seed_sysaux01.dbf&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;4. &amp;nbsp;Connect to root and issue the CREATE PLUGGABLE DATABASE command with following changed&lt;br /&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FILE_NAME_CONVERT = (&#39;+DATA/pdb$seed_&#39;, &#39;+DATA/pdb3/&#39;,&#39;+DATA/pdbseed_&#39;,&#39;+DATA/pdb3/&#39;)&lt;/b&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; conn / as sysdba &lt;br /&gt;&lt;br /&gt;Connected.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;CDB$ROOT&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; CREATE PLUGGABLE DATABASE pdb3&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;ADMIN USER pdb3_admin IDENTIFIED BY oracle ROLES=(CONNECT)&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;FILE_NAME_CONVERT=(&#39;+DATA/pdb$seed_&#39;, &#39;+DATA/pdb3/&#39;,&#39;+DATA/pdbseed_&#39;,&#39;+DATA/pdb3/&#39;);&lt;br /&gt;&lt;br /&gt;Pluggable database created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; alter session set container = PDB3;&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB3&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;5. Check the result, it look better now&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; alter pluggable database pdb3 open;&lt;br /&gt;&lt;br /&gt;Pluggable database altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; alter session set container=pdb3;&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_data_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;+DATA/pdb3/system01.dbf&lt;br /&gt;+DATA/pdb3/sysaux01.dbf&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_temp_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;+DATA/pdb3/temp01.dbf&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;7. The service is automatically added&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[oracle@ora12cn2 Desktop]$ lsnrctl services&lt;br /&gt;LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 01-DEC-2013 18:38:17&lt;br /&gt;Copyright (c) 1991, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))&lt;br /&gt;Services Summary...&lt;br /&gt;Service &quot;+ASM&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;+ASM2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12c&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12cXDB&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;D000&quot; established:0 refused:0 current:0 max:1022 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DISPATCHER &amp;lt;machine: ora12cn2, pid: 3475&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(ADDRESS=(PROTOCOL=tcp)(HOST=ora12cn2.localdomain)(PORT=50151))&lt;br /&gt;Service &quot;pdb2&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;&lt;b&gt;pdb3&lt;/b&gt;&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c2&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;The command completed successfully&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4582576804429806456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4582576804429806456'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/create-pdb-from-pdbseed-appropriate-pdb.html' title='Create PDB from PDB$SEED (appropriate PDB directory)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-4132077031514595853</id><published>2015-11-25T23:27:00.000+08:00</published><updated>2015-11-25T23:27:00.139+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="drop pluggable database"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB"/><title type='text'>Drop Pluggable Database</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;To remove pluggable database permanently from CDB can use following command:&lt;/div&gt;&lt;br /&gt;1. Connect to root and close the pluggable database&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[oracle@ora12cn1 Desktop]$ sqlplus / as sysdba&lt;br /&gt;SQL*Plus: Release 12.1.0.1.0 Production on Mon Nov 25 23:21:29 2013&lt;br /&gt;Copyright (c) 1982, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,&lt;br /&gt;Advanced Analytics and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; alter pluggable database pdb2 close immediate;&lt;br /&gt;&lt;br /&gt;Pluggable database altered.&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;br /&gt;2. Issue the DROP PLUGGABLE DATABASE command, you can issue &lt;b&gt;including datafiles&lt;/b&gt; or &lt;b&gt;keep datafiles&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; drop pluggable database pdb2 including datafiles;&lt;br /&gt;&lt;br /&gt;Pluggable database dropped.&lt;/blockquote&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4132077031514595853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/4132077031514595853'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/drop-pluggable-database.html' title='Drop Pluggable Database'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-1514226191514350034</id><published>2015-11-25T17:52:00.000+08:00</published><updated>2015-11-25T17:52:00.423+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="create PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB Seed"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB$SEED"/><category scheme="http://www.blogger.com/atom/ns#" term="Pluggable Database"/><title type='text'>Create PDB from PDB$SEED</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;The creation of a new PDB from the seed is nearly instantaneous. The operation copies the&lt;/div&gt;data files from the READ ONLY seed PDB to the target directory defined in the CREATE&lt;br /&gt;PLUGGABLE DATABASE statement.&lt;br /&gt;&lt;br /&gt;It creates tablespaces such as SYSTEM to store a full catalog including metadata pointing to&lt;br /&gt;Oracle-supplied objects, SYSAUX for local auxiliary data.&lt;br /&gt;&lt;br /&gt;It creates default schemas and common users that exist in seed PDB, SYS who continues to&lt;br /&gt;have all superuser privileges and SYSTEM who can administer the PDB.&lt;br /&gt;It creates a local user (the PDBA) granted a local PDB_DBA role. Until the PDB SYS user grants&lt;br /&gt;privileges to the local PDB_DBA role, the new PDBA cannot perform any other operation than&lt;br /&gt;connecting to the PDB.&lt;br /&gt;&lt;br /&gt;A new default service is also created for the PDB.&lt;br /&gt;&lt;br /&gt;1. Create the folder to place the pdb datafiles, in this example I am using ASM, the procedure is the same if you are using non RAC (ordinary file system)&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[oracle@ora12cn1 ~]$ su - grid&lt;br /&gt;Password:&lt;br /&gt;[grid@ora12cn1 ~]$ asmcmd&lt;br /&gt;ASMCMD&amp;gt; cd +DATA&lt;br /&gt;ASMCMD&amp;gt; mkdir pdb2&lt;br /&gt;ASMCMD&amp;gt; cd pdb2&lt;br /&gt;ASMCMD&amp;gt; pwd&lt;br /&gt;+DATA/pdb2&lt;br /&gt;ASMCMD&amp;gt;&amp;nbsp;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;2. Connect to root, with sys as sysdba&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[oracle@ora12cn1 ~]$ sqlplus / as sysdba&lt;br /&gt;SQL*Plus: Release 12.1.0.1.0 Production on Mon Nov 25 15:55:04 2013&lt;br /&gt;Copyright (c) 1982, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,&lt;br /&gt;Advanced Analytics and Real Application Testing options&lt;br /&gt;SQL&amp;gt;&amp;nbsp;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;3. Identify the location of PDB$SEED datafiles.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; alter session set container=PDB$SEED;&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB$SEED&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_data_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;-------------------------------------------&lt;br /&gt;+DATA/pdb$seed_system01.dbf&lt;br /&gt;+DATA/pdb$seed_sysaux01.dbf&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;4. &amp;nbsp;Connect to root and issue the CREATE PLUGGABLE DATABASE command&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; conn / as sysdba &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;Connected.&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;CDB$ROOT&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; CREATE PLUGGABLE DATABASE pdb2&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;ADMIN USER pdb2_admin IDENTIFIED BY oracle ROLES=(CONNECT)&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;FILE_NAME_CONVERT=(&#39;+DATA&#39;, &#39;+DATA/pdb2&#39;);&lt;br /&gt;&lt;br /&gt;Pluggable database created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; alter session set container = PDB2;&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB2&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;5. The services is automatically created&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[oracle@ora12cn1 oracle]$ lsnrctl services&lt;br /&gt;LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 25-NOV-2013 17:50:25&lt;br /&gt;Copyright (c) 1991, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))&lt;br /&gt;Services Summary...&lt;br /&gt;Service &quot;+ASM&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;+ASM1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12c&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12cXDB&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;D000&quot; established:0 refused:0 current:0 max:1022 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DISPATCHER &amp;lt;machine: ora12cn1, pid: 4003&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(ADDRESS=(PROTOCOL=tcp)(HOST=ora12cn1.localdomain)(PORT=52784))&lt;br /&gt;Service &quot;pdb1&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;&lt;b&gt;pdb2&lt;/b&gt;&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;The command completed successfully&lt;/blockquote&gt;&lt;br /&gt;6. Now test open the database&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; alter pluggable database pdb2 open;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Pluggable database altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select name, con_id, open_mode from v$pdbs;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;NAME&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CON_ID OPEN_MODE&lt;br /&gt;---------- ---------- ----------&lt;br /&gt;PDB$SEED&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 READ ONLY&lt;br /&gt;PDB1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 MOUNTED&lt;br /&gt;PDB2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 READ WRITE&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;7. Check the data and temp files &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&amp;gt; alter session set container=pdb2; &lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; show con_name&lt;br /&gt;&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;PDB2&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_data_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME &lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;+DATA/pdb2/pdb$seed_system01.dbf&lt;br /&gt;+DATA/pdb2/pdb$seed_sysaux01.dbf&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; select file_name from dba_temp_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME &lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;+DATA/pdb2/pdbseed_temp01.dbf&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;You may want to refer to modified &lt;a href=&quot;http://12cnewfeatures.blogspot.sg/2013/11/create-pdb-from-pdbseed-appropriate-pdb.html&quot;&gt;Create PDB from PDB$SEED (appropriate PDB directory)&lt;/a&gt;&amp;nbsp;post that explain appropriate PDB directory.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1514226191514350034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1514226191514350034'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/create-pdb-from-pdbseed.html' title='Create PDB from PDB$SEED'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-8384817106141201020</id><published>2015-11-23T01:38:00.000+08:00</published><updated>2015-11-23T01:38:00.118+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="server pool"/><title type='text'>Understand Server Pool</title><content type='html'>When Oracle Clusterware is installed, two server pools are created automatically: &lt;b&gt;Generic and Free&lt;/b&gt;. All servers in a new installation are assigned to the Free server pool, initially. Servers move from Free to newly defined server pools automatically.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Free Server Pool&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The Free server pool contains servers that are not assigned to any other server pools. The attributes of the Free server pool are restricted, as follows:&lt;br /&gt;&lt;br /&gt;SERVER_NAMES, MIN_SIZE, and MAX_SIZE cannot be edited by the user&lt;br /&gt;IMPORTANCE and ACL can be edited by the user&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Generic Server Pool&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The Generic server pool stores any Oracle Database that is not policy managed. Additionally, the Generic server pool contains servers with names you specified in the SERVER_NAMES attribute of the server pools that list the Generic server pool as a parent server pool.&lt;br /&gt;&lt;br /&gt;The Generic server pool&#39;s attributes are restricted, as follows:&lt;br /&gt;&lt;br /&gt;No one can modify configuration attributes of the Generic server pool (all attributes are read-only)&lt;br /&gt;&lt;br /&gt;When DBCA or SRVCTL specifies a server name in the HOSTING_MEMBERS resource attribute, Oracle Clusterware only allows it if the server is:&lt;br /&gt;&lt;br /&gt;Online and exists in the Generic server pool&lt;br /&gt;&lt;br /&gt;Online and exists in the Free server pool, in which case Oracle Clusterware moves the server into the &amp;nbsp;Generic server pool&lt;br /&gt;&lt;br /&gt;Online and exists in any other server pool and the user is either a cluster administrator or is allowed to use the server pool&#39;s servers, in which case, the server is moved into the Generic server pool&lt;br /&gt;&lt;br /&gt;Offline and the user is a cluster administrator&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[oracle@ora12cn1 ~]$ crsctl status serverpool&lt;br /&gt;NAME=Free&lt;br /&gt;ACTIVE_SERVERS=ora12cn1 ora12cn2&lt;br /&gt;&lt;br /&gt;NAME=Generic&lt;br /&gt;ACTIVE_SERVERS=&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[oracle@ora12cn1 ~]$ crsctl status serverpool -f&lt;br /&gt;NAME=Free&lt;br /&gt;IMPORTANCE=0&lt;br /&gt;MIN_SIZE=0&lt;br /&gt;MAX_SIZE=-1&lt;br /&gt;SERVER_NAMES=&lt;br /&gt;PARENT_POOLS=&lt;br /&gt;EXCLUSIVE_POOLS=&lt;br /&gt;ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r-x&lt;br /&gt;SERVER_CATEGORY=&lt;br /&gt;ACTIVE_SERVERS=ora12cn1 ora12cn2&lt;br /&gt;NAME=Generic&lt;br /&gt;IMPORTANCE=0&lt;br /&gt;MIN_SIZE=0&lt;br /&gt;MAX_SIZE=-1&lt;br /&gt;SERVER_NAMES=&lt;br /&gt;PARENT_POOLS=&lt;br /&gt;EXCLUSIVE_POOLS=&lt;br /&gt;ACL=owner:grid:r-x,pgrp:oinstall:r-x,other::r-x&lt;br /&gt;SERVER_CATEGORY=&lt;br /&gt;ACTIVE_SERVERS=&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/8384817106141201020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/8384817106141201020'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/understand-server-pool.html' title='Understand Server Pool'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-3314001232685449406</id><published>2015-11-22T01:24:00.000+08:00</published><updated>2015-11-22T01:24:00.115+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tablespace"/><category scheme="http://www.blogger.com/atom/ns#" term="v$datafile"/><category scheme="http://www.blogger.com/atom/ns#" term="v$tablespace"/><title type='text'>To View 12c Tablespaces</title><content type='html'>To view tablespace and it&#39;s corresponding container&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col name form a12&lt;br /&gt;SQL&amp;gt; SELECT file#, tbs.name, tbs.ts#, tbs.con_id&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;FROM v$datafile dbf, v$tablespace tbs&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;WHERE dbf.ts#=tbs.ts#&lt;br /&gt;&amp;nbsp; 4 &amp;nbsp;AND dbf.con_id=tbs.con_id;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FILE# NAME &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; TS# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CON_ID&lt;br /&gt;---------- ------------ ---------- ------&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 1 SYSTEM&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;               &lt;/span&gt;&amp;nbsp;0&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;1&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 2 SYSTEM&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 3 SYSAUX&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                &lt;/span&gt;1 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;1&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 4 SYSAUX&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                &lt;/span&gt;1 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 5 UNDOTBS1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;              &lt;/span&gt;2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;1&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 6 USERS&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                &lt;/span&gt;&amp;nbsp;4 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;1&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 7 SYSTEM&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                &lt;/span&gt;0 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;3&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 8 SYSAUX&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                &lt;/span&gt;1 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;3&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 9 USERS&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                 &lt;/span&gt;3 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;3&lt;br /&gt;9 rows selected.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Extracted from Oracle 12c Document, CON_ID = 0 mean CDB.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;h3 class=&quot;sect2&quot; style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: 18px;&quot;&gt;About Viewing Information When the Current Container Is the Root&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4256&quot; name=&quot;sthref4256&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4257&quot; name=&quot;sthref4257&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4258&quot; name=&quot;sthref4258&quot;&gt;&lt;/a&gt;When the current container is the root, a common user can view data dictionary information for the root and for PDBs by querying container data objects. A container data object is a table or view that can contain data pertaining to the following:&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px;&quot;&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;One or more containers&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The CDB as a whole&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;One or more containers and the CDB as a whole&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;Container data objects include&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;V$&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;GV$&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;, and some Automatic Workload Repository&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_HIST*&lt;/code&gt;&amp;nbsp;views. A common user&#39;s&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CONTAINER_DATA&lt;/code&gt;&amp;nbsp;attribute determines which PDBs are visible in container data objects.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;In a CDB, for every&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_&lt;/code&gt;&amp;nbsp;view, there is a corresponding&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;&amp;nbsp;view. All&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;&amp;nbsp;views are container data objects, but most&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_&lt;/code&gt;&amp;nbsp;views are not.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;Each container data object contains a&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CON_ID&lt;/code&gt;&amp;nbsp;column that identifies the container for each row returned.&amp;nbsp;&lt;a href=&quot;http://docs.oracle.com/cd/E16655_01/server.121/e17636/cdb_mon.htm#CHDIGGCJ&quot; style=&quot;background-attachment: inherit; background-clip: inherit; background-color: inherit; background-image: inherit; background-origin: inherit; background-position: inherit inherit; background-repeat: inherit inherit; background-size: inherit; color: #72007c;&quot;&gt;Table 43-1&lt;/a&gt;&amp;nbsp;describes the meanings of the values in the&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CON_ID&lt;/code&gt;&amp;nbsp;column.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;tblhruleformal&quot; id=&quot;ADMIN13979&quot; style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;div class=&quot;titleintable&quot; style=&quot;font-style: italic; font-weight: bold; max-width: 70em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4259&quot; name=&quot;sthref4259&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;CHDIGGCJ&quot; name=&quot;CHDIGGCJ&quot;&gt;&lt;/a&gt;Table 43-1 CON_ID Column in Container Data Objects&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; class=&quot;HRuleFormal&quot; dir=&quot;ltr&quot; frame=&quot;hsides&quot; rules=&quot;rows&quot; style=&quot;font-size: small; max-width: 70em; width: 100%px;&quot; summary=&quot;This table lists the values of the CON_ID column and describes meaning of each CON_ID value.&quot; title=&quot;CON_ID Column in Container Data Objects&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;31%&quot;&gt;&lt;/col&gt;&lt;col width=&quot;*&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;thead&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;th align=&quot;left&quot; id=&quot;r1c1-t3&quot; style=&quot;vertical-align: bottom;&quot; valign=&quot;bottom&quot;&gt;Value in CON_ID Column&lt;/th&gt;&lt;th align=&quot;left&quot; id=&quot;r1c2-t3&quot; style=&quot;vertical-align: bottom;&quot; valign=&quot;bottom&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r2c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;0&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r2c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the entire CDB&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r3c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;1&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r3c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the root&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r4c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r4c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the seed&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r5c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;3 - 254&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r5c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to a PDB&lt;/div&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;Each PDB has its own container ID.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3314001232685449406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3314001232685449406'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/to-view-12c-tablespaces.html' title='To View 12c Tablespaces'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-3296618933791257561</id><published>2015-11-22T00:43:00.000+08:00</published><updated>2015-11-22T00:43:00.142+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CDB"/><category scheme="http://www.blogger.com/atom/ns#" term="cdb_data_files"/><category scheme="http://www.blogger.com/atom/ns#" term="cdb_temp_files"/><category scheme="http://www.blogger.com/atom/ns#" term="database files"/><category scheme="http://www.blogger.com/atom/ns#" term="logfile"/><category scheme="http://www.blogger.com/atom/ns#" term="v$controlfile"/><category scheme="http://www.blogger.com/atom/ns#" term="v$logfile"/><title type='text'>All Files of the CDB</title><content type='html'>To view &lt;b&gt;logfile &lt;/b&gt;that we can query v$logfile, we can see the con_id. In this example I am using ASM +DATA volume.&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col member format a50&lt;br /&gt;SQL&amp;gt; select GROUP#, CON_ID, MEMBER from v$logfile;&lt;br /&gt;&amp;nbsp; &amp;nbsp; GROUP# &amp;nbsp; &amp;nbsp; CON_ID MEMBER&lt;br /&gt;---------- ---------- --------------------------------------------------&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 +DATA/ORA12C/ONLINELOG/group_1.260.831911745&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 +DATA/ORA12C/ONLINELOG/group_1.261.831911755&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 +DATA/ORA12C/ONLINELOG/group_2.262.831911763&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 +DATA/ORA12C/ONLINELOG/group_2.263.831911771&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 3&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 +DATA/ORA12C/ONLINELOG/group_3.264.831911779&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 3&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 +DATA/ORA12C/ONLINELOG/group_3.265.831911787&lt;br /&gt;6 rows selected.&lt;/blockquote&gt;&lt;br /&gt;To view &lt;b&gt;controlfile&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col name form a50&lt;br /&gt;SQL&amp;gt; select name, con_id from v$controlfile;&lt;br /&gt;NAME&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CON_ID&lt;br /&gt;-------------------------------------------------- ----------&lt;br /&gt;+DATA/ORA12C/CONTROLFILE/current.258.831911735&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;          &lt;/span&gt; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;+DATA/ORA12C/CONTROLFILE/current.259.831911741&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;View all data files of the CDB, including those of the root and all PDBs. We can query &lt;b&gt;cdb_data_files&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col file_name format A60&lt;br /&gt;SQL&amp;gt; col tablespace_name format A8&lt;br /&gt;SQL&amp;gt; col file_id format 9999&lt;br /&gt;SQL&amp;gt; col con_id format 999&lt;br /&gt;SQL&amp;gt; SELECT file_name, tablespace_name, file_id, con_id&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;FROM cdb_data_files ORDER BY con_id;&lt;br /&gt;FILE_NAME&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;         &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TABLESPA FILE_ID CON_ID&lt;br /&gt;---------------------------------------------------- -------- ------- ------&lt;br /&gt;+DATA/ORA12C/DATAFILE/system.266.831911801&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;          &lt;/span&gt; SYSTEM &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;+DATA/ORA12C/DATAFILE/users.273.831912215&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;           &lt;/span&gt; USERS&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;          &lt;/span&gt;6 &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;+DATA/ORA12C/DATAFILE/undotbs1.270.831912051&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;&amp;nbsp;UNDOTBS1 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;5 &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;+DATA/ORA12C/DATAFILE/sysaux.268.831911935&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;&amp;nbsp; &amp;nbsp;SYSAUX &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;+DATA/ORA12C/PDBSEED/DATAFILE/sysaux.269.831912021 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;SYSAUX &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;br /&gt;+DATA/ORA12C/PDBSEED/DATAFILE/system.267.831911893&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   S&lt;/span&gt;YSTEM &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;br /&gt;6 rows selected.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Note that dba_data_files is list only root datafile.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col file_name form a50&lt;br /&gt;SQL&amp;gt; select file_name, tablespace_name, file_id&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;from dba_data_files;&lt;br /&gt;FILE_NAME&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                                 &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TABLESPA FILE_ID&lt;br /&gt;-------------------------------------------------- -------- -------&lt;br /&gt;+DATA/ORA12C/DATAFILE/system.266.831911801&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SYSTEM&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt; &amp;nbsp;1&lt;br /&gt;+DATA/ORA12C/DATAFILE/sysaux.268.831911935&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SYSAUX&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt; &amp;nbsp;3&lt;br /&gt;+DATA/ORA12C/DATAFILE/undotbs1.270.831912051&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; UNDOTBS1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;br /&gt;+DATA/ORA12C/DATAFILE/users.273.831912215&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USERS &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp;6&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;List the &lt;b&gt;temp files&lt;/b&gt; of the CDB.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col file_name form a70&lt;br /&gt;SQL&amp;gt; col tablespace_name form a10&lt;br /&gt;SQL&amp;gt; col file_id form 999&lt;br /&gt;SQL&amp;gt; select file_name, tablespace_name, file_id&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;from cdb_temp_files;&lt;br /&gt;FILE_NAME&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;          &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TABLESPACE FILE_ID&lt;br /&gt;---------------------------------------------------- ---------- -------&lt;br /&gt;+DATA/ORA12C/PDBSEED/TEMPFILE/temp.272.831912083&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; TEMP &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;br /&gt;+DATA/ORA12C/TEMPFILE/temp.271.831912083&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;          &lt;/span&gt; &amp;nbsp; TEMP &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Extracted from Oracle 12c Document, CON_ID = 0 mean CDB.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;h3 class=&quot;sect2&quot; style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: 18px;&quot;&gt;About Viewing Information When the Current Container Is the Root&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4256&quot; name=&quot;sthref4256&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4257&quot; name=&quot;sthref4257&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4258&quot; name=&quot;sthref4258&quot;&gt;&lt;/a&gt;When the current container is the root, a common user can view data dictionary information for the root and for PDBs by querying container data objects. A container data object is a table or view that can contain data pertaining to the following:&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px;&quot;&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;One or more containers&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The CDB as a whole&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;One or more containers and the CDB as a whole&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;Container data objects include&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;V$&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;GV$&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;, and some Automatic Workload Repository&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_HIST*&lt;/code&gt;&amp;nbsp;views. A common user&#39;s&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CONTAINER_DATA&lt;/code&gt;&amp;nbsp;attribute determines which PDBs are visible in container data objects.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;In a CDB, for every&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_&lt;/code&gt;&amp;nbsp;view, there is a corresponding&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;&amp;nbsp;view. All&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;&amp;nbsp;views are container data objects, but most&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_&lt;/code&gt;&amp;nbsp;views are not.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;Each container data object contains a&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CON_ID&lt;/code&gt;&amp;nbsp;column that identifies the container for each row returned.&amp;nbsp;&lt;a href=&quot;http://docs.oracle.com/cd/E16655_01/server.121/e17636/cdb_mon.htm#CHDIGGCJ&quot; style=&quot;background-attachment: inherit; background-clip: inherit; background-color: inherit; background-image: inherit; background-origin: inherit; background-position: inherit inherit; background-repeat: inherit inherit; background-size: inherit; color: #72007c;&quot;&gt;Table 43-1&lt;/a&gt;&amp;nbsp;describes the meanings of the values in the&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CON_ID&lt;/code&gt;&amp;nbsp;column.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;tblhruleformal&quot; id=&quot;ADMIN13979&quot; style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;div class=&quot;titleintable&quot; style=&quot;font-style: italic; font-weight: bold; max-width: 70em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4259&quot; name=&quot;sthref4259&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;CHDIGGCJ&quot; name=&quot;CHDIGGCJ&quot;&gt;&lt;/a&gt;Table 43-1 CON_ID Column in Container Data Objects&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; class=&quot;HRuleFormal&quot; dir=&quot;ltr&quot; frame=&quot;hsides&quot; rules=&quot;rows&quot; style=&quot;font-size: small; max-width: 70em; width: 100%px;&quot; summary=&quot;This table lists the values of the CON_ID column and describes meaning of each CON_ID value.&quot; title=&quot;CON_ID Column in Container Data Objects&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;31%&quot;&gt;&lt;/col&gt;&lt;col width=&quot;*&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;thead&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;th align=&quot;left&quot; id=&quot;r1c1-t3&quot; style=&quot;vertical-align: bottom;&quot; valign=&quot;bottom&quot;&gt;Value in CON_ID Column&lt;/th&gt;&lt;th align=&quot;left&quot; id=&quot;r1c2-t3&quot; style=&quot;vertical-align: bottom;&quot; valign=&quot;bottom&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r2c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;0&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r2c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the entire CDB&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r3c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;1&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r3c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the root&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r4c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r4c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the seed&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r5c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;3 - 254&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r5c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to a PDB&lt;/div&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;Each PDB has its own container ID.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3296618933791257561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/3296618933791257561'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/all-files-of-cdb.html' title='All Files of the CDB'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-2224276377024307658</id><published>2015-11-22T00:32:00.000+08:00</published><updated>2015-11-22T00:32:00.169+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="con_id"/><category scheme="http://www.blogger.com/atom/ns#" term="con_name"/><category scheme="http://www.blogger.com/atom/ns#" term="connected container"/><title type='text'>To Know Your Current Connected Container</title><content type='html'>You can use SHOW CON_NAME and CON_ID to know which container you are connected to.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; show con_name&lt;br /&gt;CON_NAME&lt;br /&gt;------------------------------&lt;br /&gt;CDB$ROOT&lt;/blockquote&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; show con_id&lt;br /&gt;CON_ID&lt;br /&gt;------------------------------&lt;br /&gt;1&lt;/blockquote&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2224276377024307658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2224276377024307658'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/to-know-your-current-connected-container.html' title='To Know Your Current Connected Container'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-8479747099926411821</id><published>2015-11-22T00:06:00.000+08:00</published><updated>2015-11-22T00:06:00.197+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="Pluggable Database"/><title type='text'>To Find The Pluggable Databases</title><content type='html'>To find PDB within CDB, we can query v$pdbs, in this example I have 1 PDB namely &lt;b&gt;QUOTE&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; select con_id, name, open_mode from v$pdbs;&lt;br /&gt;CON_ID &amp;nbsp; &amp;nbsp; NAME &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OPEN_MODE&lt;br /&gt;---------- ------------------------------ ----------&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 2 PDB$SEED&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; READ ONLY&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 3 QUOTE&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;                          &lt;/span&gt;MOUNTED&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/8479747099926411821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/8479747099926411821'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/to-find-pluggable-databases.html' title='To Find The Pluggable Databases'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-2123408927117283409</id><published>2015-11-21T19:26:00.000+08:00</published><updated>2015-11-21T19:26:00.682+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Listener"/><category scheme="http://www.blogger.com/atom/ns#" term="lsnrctl"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB Seed"/><category scheme="http://www.blogger.com/atom/ns#" term="PDB$SEED"/><category scheme="http://www.blogger.com/atom/ns#" term="Services"/><title type='text'>Explore Oracle 12c Services In RAC</title><content type='html'>To check the services via Oracle Listener&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[oracle@ora12cn1 admin]$ lsnrctl status&lt;br /&gt;LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 21-NOV-2013 22:23:08&lt;br /&gt;Copyright (c) 1991, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))&lt;br /&gt;STATUS of the LISTENER&lt;br /&gt;------------------------&lt;br /&gt;Alias &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LISTENER&lt;br /&gt;Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TNSLSNR for Linux: Version 12.1.0.1.0 - Production&lt;br /&gt;Start Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21-NOV-2013 14:25:29&lt;br /&gt;Uptime &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 days 7 hr. 57 min. 39 sec&lt;br /&gt;Trace Level &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; off&lt;br /&gt;Security &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ON: Local OS Authentication&lt;br /&gt;SNMP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OFF&lt;br /&gt;Listener Parameter File &amp;nbsp; /u01/app/12.1.0/grid/network/admin/listener.ora&lt;br /&gt;Listener Log File &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /u01/app/oracle/diag/tnslsnr/ora12cn1/listener/alert/log.xml&lt;br /&gt;Listening Endpoints Summary...&lt;br /&gt;&amp;nbsp; (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))&lt;br /&gt;&amp;nbsp; (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.101)(PORT=1521)))&lt;br /&gt;&amp;nbsp; (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.111)(PORT=1521)))&lt;br /&gt;&amp;nbsp; (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=ora12cn1.localdomain)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/product/12.1.0/db_1/admin/ora12c/xdb_wallet))(Presentation=HTTP)(Session=RAW))&lt;br /&gt;Services Summary...&lt;br /&gt;Service &quot;+ASM&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;+ASM1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;Service &quot;ora12c&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c_1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;Service &quot;ora12cXDB&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c_1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;Service &quot;quote&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c_1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;The command completed successfully&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Make sure that the listener is started, if not started start the listener. To view detail services use&amp;nbsp;&lt;b&gt;services&amp;nbsp;&lt;/b&gt;parameter&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[oracle@ora12cn1 admin]$&lt;b&gt; lsnrctl services&lt;/b&gt;&lt;br /&gt;LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 21-NOV-2013 22:24:29&lt;br /&gt;Copyright (c) 1991, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))&lt;br /&gt;Services Summary...&lt;br /&gt;Service &quot;+ASM&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;+ASM1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:0 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12c&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c_1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:3 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;Service &quot;ora12cXDB&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c_1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;D000&quot; established:0 refused:0 current:0 max:1022 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DISPATCHER &amp;lt;machine: ora12cn1, pid: 3844&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(ADDRESS=(PROTOCOL=tcp)(HOST=ora12cn1.localdomain)(PORT=21683))&lt;br /&gt;Service &quot;quote&quot; has 1 instance(s).&lt;br /&gt;&amp;nbsp; Instance &quot;ora12c_1&quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;&amp;nbsp; &amp;nbsp; Handler(s):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;DEDICATED&quot; established:3 refused:0 state:ready&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOCAL SERVER&lt;br /&gt;The command completed successfully&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;To list the services automatically created for each container.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; SELECT name, con_id FROM v$services;&lt;br /&gt;NAME&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CON_ID&lt;br /&gt;-------------------- ----------&lt;br /&gt;quote&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;br /&gt;ora12cXDB&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;ora12c&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;SYS$BACKGROUND &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;SYS$USERS&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; There we will never have PDB$SEED service because, we never can connect to the PDB SEED, in this example case I only have 1 PDB namely QUOTE.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; col pdb_name form a20&lt;br /&gt;SQL&amp;gt; select pdb_id, pdb_name from cdb_pdbs;&lt;br /&gt;PDB_ID &amp;nbsp; &amp;nbsp; PDB_NAME&lt;br /&gt;---------- --------------------&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt; 2 PDB$SEED&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 QUOTE&lt;/blockquote&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2123408927117283409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/2123408927117283409'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/explore-oracle-12c-services-in-rac.html' title='Explore Oracle 12c Services In RAC'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-1335260156934580001</id><published>2015-11-21T15:16:00.000+08:00</published><updated>2015-11-21T15:16:00.325+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CDB"/><category scheme="http://www.blogger.com/atom/ns#" term="CDB Root"/><category scheme="http://www.blogger.com/atom/ns#" term="Login"/><category scheme="http://www.blogger.com/atom/ns#" term="Multitenant"/><title type='text'>Connect To Oracle 12c CDB In RAC Environment</title><content type='html'>DB Name = ora12c&lt;br /&gt;Instance Name = ora12c_1 (node 1) and ora12c_2 (node 2)&lt;br /&gt;&lt;br /&gt;To connect to the multitenant container database &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;ora12c &lt;/span&gt;&lt;/b&gt;instrance&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;ora12c_1&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;Execute &lt;b&gt;. oraenv&lt;/b&gt; to switch to the appropriate system variable (ORACLE_SID and ORACLE_HOME) or you can set it manually.&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[oracle@ora12cn1 ~]$ &lt;b&gt;. oraenv&lt;/b&gt;&lt;br /&gt;ORACLE_SID = [ora12c_1] ? &lt;b&gt;ora12c_1&lt;/b&gt;&lt;br /&gt;The Oracle base remains unchanged with value /u01/app/oracle&lt;br /&gt;[oracle@ora12cn1 ~]$&lt;b&gt; sqlplus / as sysdba&lt;/b&gt;&lt;br /&gt;SQL*Plus: Release 12.1.0.1.0 Production on Thu Nov 21 14:48:40 2013&lt;br /&gt;Copyright (c) 1982, 2013, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,&lt;br /&gt;Advanced Analytics and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;&lt;br /&gt;SQL&amp;gt;&amp;nbsp;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Check if the database is a multitenant container database. &lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;SQL&amp;gt; SELECT db.name &quot;DB Name&quot;, i.instance_name &quot;Instance Name&quot;, db.cdb, i.con_id&lt;br /&gt;&amp;nbsp; 2 &amp;nbsp;FROM gv$database db, gv$instance i&lt;br /&gt;&amp;nbsp; 3 &amp;nbsp;WHERE i.inst_id = db.inst_id;&lt;br /&gt;&lt;br /&gt;DB Name &amp;nbsp; Instance Name &amp;nbsp; &amp;nbsp;CDB&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; CON_ID&lt;br /&gt;--------- ---------------- --- ----------&lt;br /&gt;ORA12C&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp;ora12c_1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;          &lt;/span&gt;0&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;Extracted from Oracle 12c Document, CON_ID = 0 mean CDB.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;h3 class=&quot;sect2&quot; style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: 18px;&quot;&gt;About Viewing Information When the Current Container Is the Root&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4256&quot; name=&quot;sthref4256&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4257&quot; name=&quot;sthref4257&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4258&quot; name=&quot;sthref4258&quot;&gt;&lt;/a&gt;When the current container is the root, a common user can view data dictionary information for the root and for PDBs by querying container data objects. A container data object is a table or view that can contain data pertaining to the following:&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px;&quot;&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;One or more containers&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The CDB as a whole&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;One or more containers and the CDB as a whole&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;Container data objects include&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;V$&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;GV$&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;, and some Automatic Workload Repository&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_HIST*&lt;/code&gt;&amp;nbsp;views. A common user&#39;s&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CONTAINER_DATA&lt;/code&gt;&amp;nbsp;attribute determines which PDBs are visible in container data objects.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;In a CDB, for every&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_&lt;/code&gt;&amp;nbsp;view, there is a corresponding&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;&amp;nbsp;view. All&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CDB_&lt;/code&gt;&amp;nbsp;views are container data objects, but most&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;DBA_&lt;/code&gt;&amp;nbsp;views are not.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;Each container data object contains a&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CON_ID&lt;/code&gt;&amp;nbsp;column that identifies the container for each row returned.&amp;nbsp;&lt;a href=&quot;http://docs.oracle.com/cd/E16655_01/server.121/e17636/cdb_mon.htm#CHDIGGCJ&quot; style=&quot;background-attachment: inherit; background-clip: inherit; background-color: inherit; background-image: inherit; background-origin: inherit; background-position: inherit inherit; background-repeat: inherit inherit; background-size: inherit; color: #72007c;&quot;&gt;Table 43-1&lt;/a&gt;&amp;nbsp;describes the meanings of the values in the&amp;nbsp;&lt;code style=&quot;font-size: 12px;&quot;&gt;CON_ID&lt;/code&gt;&amp;nbsp;column.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;tblhruleformal&quot; id=&quot;ADMIN13979&quot; style=&quot;background-color: white; color: #222222; font-family: Tahoma, sans-serif; font-size: small; line-height: 19px; max-width: 70em;&quot;&gt;&lt;div class=&quot;titleintable&quot; style=&quot;font-style: italic; font-weight: bold; max-width: 70em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;sthref4259&quot; name=&quot;sthref4259&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4070104275687529539&quot; id=&quot;CHDIGGCJ&quot; name=&quot;CHDIGGCJ&quot;&gt;&lt;/a&gt;Table 43-1 CON_ID Column in Container Data Objects&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; class=&quot;HRuleFormal&quot; dir=&quot;ltr&quot; frame=&quot;hsides&quot; rules=&quot;rows&quot; style=&quot;font-size: small; max-width: 70em; width: 100%px;&quot; summary=&quot;This table lists the values of the CON_ID column and describes meaning of each CON_ID value.&quot; title=&quot;CON_ID Column in Container Data Objects&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;31%&quot;&gt;&lt;/col&gt;&lt;col width=&quot;*&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;thead&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;th align=&quot;left&quot; id=&quot;r1c1-t3&quot; style=&quot;vertical-align: bottom;&quot; valign=&quot;bottom&quot;&gt;Value in CON_ID Column&lt;/th&gt;&lt;th align=&quot;left&quot; id=&quot;r1c2-t3&quot; style=&quot;vertical-align: bottom;&quot; valign=&quot;bottom&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r2c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;0&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r2c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the entire CDB&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r3c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;1&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r3c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the root&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r4c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r4c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to the seed&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; headers=&quot;r1c1-t3&quot; id=&quot;r5c1-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;3 - 254&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; headers=&quot;r5c1-t3 r1c2-t3&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;The data pertains to a PDB&lt;/div&gt;&lt;div style=&quot;max-width: 70em;&quot;&gt;Each PDB has its own container ID.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1335260156934580001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/1335260156934580001'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/connect-to-oracle-12c-cdb-in-rac.html' title='Connect To Oracle 12c CDB In RAC Environment'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-5889697112122701240</id><published>2015-11-21T00:36:00.000+08:00</published><updated>2015-11-21T00:36:00.047+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Background Process"/><category scheme="http://www.blogger.com/atom/ns#" term="CDB"/><category scheme="http://www.blogger.com/atom/ns#" term="Multitenant"/><title type='text'>Explore 12c CDB Background Processes</title><content type='html'>To explore the&lt;b&gt;&amp;nbsp;ora12c&lt;/b&gt;&amp;nbsp;instance within 12c 2-nodes RAC node 1, the background processes and the multitenant container database.&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;[oracle@ora12cn1 db_1]$ &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;ps -ef |grep ora12c&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3248 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:01 ora_pmon_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3250 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:01 ora_psp0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3274 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;5 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:03:44 ora_vktm_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3278 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:01 ora_gen0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3280 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:01 ora_mman_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3284 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:06 ora_diag_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3286 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_dbrm_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3288 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_ping_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3290 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_acms_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3292 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:13 ora_dia0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3294 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:10 ora_lmon_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3296 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:09 ora_lmd0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3298 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:22 ora_lms0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3302 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_rms0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3304 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:02 ora_lmhb_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3306 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:22 ora_lck1_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3309 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:02 ora_dbw0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3311 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:05 ora_lgwr_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3313 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:03 ora_ckpt_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3315 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_smon_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3317 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_reco_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3319 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_lreg_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3321 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_rbal_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3323 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_asmb_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3325 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_gcr0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3327 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:16 ora_mmon_ora12c_1&lt;br /&gt;grid &amp;nbsp; &amp;nbsp; &amp;nbsp;3329 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 oracle+ASM1_asmb_ora12c_1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3331 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:04 ora_mmnl_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3333 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_d000_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3335 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_s000_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3339 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_mark_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3343 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:03 ora_lck0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3353 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_rsmn_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3463 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_arc0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3476 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_arc1_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3478 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_arc2_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3480 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_arc3_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3489 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_tmon_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3491 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_tt00_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3525 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_smco_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3545 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_w000_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3732 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_gtx0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3734 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_rcbg_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3750 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_aqpc_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3782 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_qm02_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3788 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_q001_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3790 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_qm05_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3792 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_q003_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3794 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_qm03_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3799 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:32 ora_p000_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3802 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;1 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:45 ora_p001_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3804 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:04 ora_p002_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;3806 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:07 ora_p003_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;4338 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:13 ora_cjq0_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;4341 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:04 oracleora12c_1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;4424 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_w001_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;4436 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 oracleora12c_1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;5301 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:10 ora_vkrm_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;7252 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_w002_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;7537 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_w003_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;7885 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_w004_ora12c_1&lt;br /&gt;oracle &amp;nbsp; &amp;nbsp;8424 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 Nov20 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_w005_ora12c_1&lt;br /&gt;oracle &amp;nbsp; 10394 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 00:30 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_o000_ora12c_1&lt;br /&gt;grid &amp;nbsp; &amp;nbsp; 10396 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 00:30 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 oracle+ASM1_o000_ora12c_1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))&lt;br /&gt;oracle &amp;nbsp; 10679 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 00:35 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_j000_ora12c_1&lt;br /&gt;oracle &amp;nbsp; 10681 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 00:35 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 ora_j001_ora12c_1&lt;br /&gt;oracle &amp;nbsp; 10688 10200 &amp;nbsp;0 00:35 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 grep ora12c&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/5889697112122701240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/5889697112122701240'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/11/explore-12c-cdb-background-processes.html' title='Explore 12c CDB Background Processes'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-6367749971407614790</id><published>2015-10-04T23:12:00.001+08:00</published><updated>2015-10-04T23:12:00.455+08:00</updated><title type='text'>ORA-19239: XPTY0019 - It is a type error if the result of an step (other than the last step) in a path expression contains an atomic value</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ORA-19239: XPTY0019 - It is a type error if the result of an step (other than the last step) in a path expression contains an atomic value&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Cause: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
The step expression returned a sequence containing an atomic value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Action: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
Fix the path expression to return only nodes.
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/6367749971407614790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/6367749971407614790'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/10/ora-19239-xpty0019-it-is-type-error-if.html' title='ORA-19239: XPTY0019 - It is a type error if the result of an step (other than the last step) in a path expression contains an atomic value'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8028612240604669169.post-7796080834067386602</id><published>2015-10-04T23:10:00.003+08:00</published><updated>2015-10-04T23:10:48.405+08:00</updated><title type='text'>ORA-19238: XPTY0018 - It is a type error if the result of the last step in a path expression contains both nodes and atomic values</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ORA-19238: XPTY0018 - It is a type error if the result of the last step in a path expression contains both nodes and atomic values&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Cause: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
An error occurred during the processing of the XQuery expression.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Action: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
Check the detailed error message for the possible causes.
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/7796080834067386602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8028612240604669169/posts/default/7796080834067386602'/><link rel='alternate' type='text/html' href='http://ora-sos.blogspot.com/2015/10/ora-19238-xpty0018-it-is-type-error-if.html' title='ORA-19238: XPTY0018 - It is a type error if the result of the last step in a path expression contains both nodes and atomic values'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>