{"id":2684,"date":"2011-07-06T10:20:08","date_gmt":"2011-07-06T15:20:08","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=2684"},"modified":"2011-07-06T10:20:08","modified_gmt":"2011-07-06T15:20:08","slug":"recreate-oracle-database-with-full-expimp","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=2684","title":{"rendered":"Recreate Oracle Database with Full Exp\/Imp"},"content":{"rendered":"<span id=\"Full_Database_Export\"><h2>Full Database Export<\/h2><\/span>\n<span id=\"Start_Database\"><h3>Start Database<\/h3><\/span>\n<p>* Start up database and listener if they are not already started.<br \/>\n* tnsping db instance to make sure it&#8217;s started.<\/p>\n<pre lang=\"bash\">\r\nC:\\TEMP>tnsping orcl\r\n...\r\nUsed TNSNAMES adapter to resolve the alias\r\nAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = my.com)(PORT = 1521))\r\n(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))\r\nOK (40 msec)\r\n<\/pre>\n<span id=\"Full_Export\"><h3>Full Export<\/h3><\/span>\n<p>* Export database in full mode.<\/p>\n<pre lang=\"bash\">\r\nC:\\TEMP>exp system\/orcl@orcl full=y file=fullexp.dump log=fullexp.log\r\n...\r\nAbout to export the entire database ...\r\n. exporting tablespace definitions\r\n....\r\nExport terminated successfully with warnings.\r\n<\/pre>\n<span id=\"Remove_Database\"><h2>Remove Database<\/h2><\/span>\n<p>* Start Database Configuration Assistant.<br \/>\n* Click Next on Welcome page.<br \/>\n* Select &#8220;Delete a Database&#8221; and click Next.<br \/>\n* Select database instance to be removed, e.g. ORCL<br \/>\n* Click Finish.<br \/>\n* Click Yes on &#8220;Do you want to proceed?&#8221; warning dialog.<br \/>\n* Click No on &#8220;Do you want to perform another operation?&#8221; dialog.<\/p>\n<span id=\"Create_a_New_Database\"><h2>Create a New Database<\/h2><\/span>\n<p>* Start Database Configuration Assistant.<br \/>\n* Click Next on Welcome page.<br \/>\n* Select Create a Database and click Next.<br \/>\n* Select General Purpose and click Next.<br \/>\n* Enter<br \/>\n&#8211; Global Database Name: orcl.world<br \/>\n&#8211; SID: orcl<br \/>\n&#8211; Click Next<br \/>\n* On Step 4 of 12: Management Options, accept defaults and click Next<br \/>\nChecked:<br \/>\n&#8211; Configure the Database with Enterprise manager<br \/>\n&#8211; Use Database Control for Database Management<br \/>\n* On Step 5 of 12: Database Credentials screen,<br \/>\n&#8211; Select use the Same Password for All Accounts<br \/>\n&#8211; Password: orcl<br \/>\n&#8211; Confirm Password: orcl<br \/>\n&#8211; Click Next<br \/>\n* Select File System on Storage Options screen. Click Next.<br \/>\n* On Database File Locations screem,<br \/>\n&#8211; Select &#8220;Use Common Location for All Database Files&#8221; and enter<br \/>\n&#8211; Database Files Location: C:\\prog\\oracle\\product\\10.2.0\\oradata<br \/>\n&#8211; Click Next<br \/>\n* On Recovery Configuration screen, accept default and click Next.<br \/>\n* Click Next on Database Content screen and click Next.<br \/>\n* On Initialization Parameters screen,<br \/>\n&#8211; Memory Tab<br \/>\n~ Typical -> Percentage: 40<br \/>\n&#8211; Sizing Tab<br \/>\n~ Processes: 150<br \/>\n&#8211; Character Sets Tab<br \/>\n~ Use Unicode (AL32UTF8)<br \/>\n~ National Character Set: AL16UTF16<br \/>\n~ Default Language: American<br \/>\n~ Default Date Format: United States<br \/>\n&#8211; Connection Mode Tab<br \/>\n~ Dedicated Server Mode<br \/>\n* Click Next on Step 11 of 12: Database Storage screen.<br \/>\n* On Step 12 of 12: Creation Options screen,<br \/>\n&#8211; Select Create Database<br \/>\n&#8211; Select Generate Database Create Scripts<br \/>\n~ Destination Directory: C:\\prog\\oracle\\product\\10.2.0\\admin\\orcl\\scripts<br \/>\n* Click Finish.<br \/>\n* Click OK on confirmation screen.<br \/>\n* Click OK on script generation successful dialog.<br \/>\n* Click Exit when finished.<\/p>\n<span id=\"Full_Import\"><h2>Full Import<\/h2><\/span>\n<p>* Start newly created database.<\/p>\n<pre lang=\"bash\">\r\nC:\\TEMP>tnsping orcl\r\nUsed TNSNAMES adapter to resolve the alias\r\nAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = my.com)(PORT = 1521))\r\n(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl.world)))\r\nOK (30 msec)\r\n<\/pre>\n<p>* Import<\/p>\n<pre lang=\"bash\">\r\nimp system\/orcl@orcl full=y file=fullexp.dump log=fullimp.log\r\n\r\n...\r\nImport terminated successfully with warnings.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Full Database Export Start Database * Start up database and listener if they are not already started. * tnsping db instance to make sure it&#8217;s started. C:\\TEMP>tnsping orcl &#8230; Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=2684\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[35],"tags":[],"class_list":["post-2684","post","type-post","status-publish","format-standard","hentry","category-oracle"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-Hi","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2684"}],"version-history":[{"count":5,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2684\/revisions"}],"predecessor-version":[{"id":2700,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2684\/revisions\/2700"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}