{"id":146719,"date":"2024-11-01T12:00:25","date_gmt":"2024-11-01T04:00:25","guid":{"rendered":"https:\/\/server.hk\/cnblog\/146719\/"},"modified":"2024-11-01T12:00:26","modified_gmt":"2024-11-01T04:00:26","slug":"win7%e7%92%b0%e5%a2%83%e4%b8%8b%e9%85%8d%e7%bd%aeoracle%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/146719\/","title":{"rendered":"Win7\u74b0\u5883\u4e0b\u914d\u7f6eOracle\u6578\u64da\u5eab\u7684\u65b9\u6cd5"},"content":{"rendered":"<h1 id=\"win7%e7%92%b0%e5%a2%83%e4%b8%8b%e9%85%8d%e7%bd%aeoracle%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e6%96%b9%e6%b3%95-UgziYrvtIu\">Win7\u74b0\u5883\u4e0b\u914d\u7f6eOracle\u6578\u64da\u5eab\u7684\u65b9\u6cd5<\/h1>\n<p>Oracle\u6578\u64da\u5eab\u662f\u4e00\u6b3e\u529f\u80fd\u5f37\u5927\u7684\u95dc\u806f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u4f01\u696d\u7d1a\u61c9\u7528\u4e2d\u3002\u96d6\u7136Oracle\u6578\u64da\u5eab\u7684\u5b89\u88dd\u548c\u914d\u7f6e\u904e\u7a0b\u53ef\u80fd\u5c0d\u521d\u5b78\u8005\u4f86\u8aaa\u6709\u4e9b\u8907\u96dc\uff0c\u4f46\u53ea\u8981\u6309\u7167\u6b65\u9a5f\u9032\u884c\uff0c\u5c31\u80fd\u9806\u5229\u5b8c\u6210\u5b89\u88dd\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5728Windows 7\u74b0\u5883\u4e0b\u914d\u7f6eOracle\u6578\u64da\u5eab\u7684\u5177\u9ad4\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"%e7%b3%bb%e7%b5%b1%e8%a6%81%e6%b1%82-UgziYrvtIu\">\u7cfb\u7d71\u8981\u6c42<\/h2>\n<p>\u5728\u5b89\u88ddOracle\u6578\u64da\u5eab\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u6eff\u8db3\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7d71\uff1aWindows 7\uff0832\u4f4d\u621664\u4f4d\uff09<\/li>\n<li>\u5167\u5b58\uff1a\u81f3\u5c112GB\uff08\u5efa\u8b704GB\u6216\u4ee5\u4e0a\uff09<\/li>\n<li>\u786c\u789f\u7a7a\u9593\uff1a\u81f3\u5c1110GB\u7684\u53ef\u7528\u7a7a\u9593<\/li>\n<li>\u8655\u7406\u5668\uff1a\u652f\u6301x86\u6216x64\u67b6\u69cb\u7684\u8655\u7406\u5668<\/li>\n<\/ul>\n<h2 id=\"%e4%b8%8b%e8%bc%89oracle%e6%95%b8%e6%93%9a%e5%ba%ab-UgziYrvtIu\">\u4e0b\u8f09Oracle\u6578\u64da\u5eab<\/h2>\n<p>\u524d\u5f80Oracle\u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u6240\u9700\u7684Oracle\u6578\u64da\u5eab\u7248\u672c\u3002\u901a\u5e38\uff0c\u60a8\u53ef\u4ee5\u9078\u64c7Oracle Database Express Edition\uff08XE\uff09\uff0c\u9019\u662f\u4e00\u500b\u514d\u8cbb\u7684\u7248\u672c\uff0c\u9069\u5408\u5b78\u7fd2\u548c\u5c0f\u578b\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9doracle%e6%95%b8%e6%93%9a%e5%ba%ab-UgziYrvtIu\">\u5b89\u88ddOracle\u6578\u64da\u5eab<\/h2>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<ol>\n<li>\u96d9\u64ca\u4e0b\u8f09\u7684\u5b89\u88dd\u6a94\u6848\uff0c\u555f\u52d5\u5b89\u88dd\u5411\u5c0e\u3002<\/li>\n<li>\u9078\u64c7\u201c\u5b89\u88dd\u201d\u9078\u9805\uff0c\u7136\u5f8c\u63a5\u53d7\u8a31\u53ef\u5354\u8b70\u3002<\/li>\n<li>\u9078\u64c7\u5b89\u88dd\u985e\u578b\uff0c\u901a\u5e38\u9078\u64c7\u201c\u5178\u578b\u5b89\u88dd\u201d\u5373\u53ef\u3002<\/li>\n<li>\u8a2d\u7f6eOracle\u6578\u64da\u5eab\u7684\u7ba1\u7406\u54e1\u5bc6\u78bc\uff0c\u8acb\u8a18\u4f4f\u6b64\u5bc6\u78bc\uff0c\u56e0\u70ba\u5f8c\u7e8c\u767b\u9304\u6642\u9700\u8981\u4f7f\u7528\u3002<\/li>\n<li>\u9078\u64c7\u5b89\u88dd\u8def\u5f91\uff0c\u5efa\u8b70\u4f7f\u7528\u9ed8\u8a8d\u8def\u5f91\u3002<\/li>\n<li>\u5b8c\u6210\u8a2d\u7f6e\u5f8c\uff0c\u9ede\u64ca\u201c\u5b89\u88dd\u201d\u958b\u59cb\u5b89\u88dd\u904e\u7a0b\u3002<\/li>\n<\/ol>\n<h2 id=\"%e9%85%8d%e7%bd%aeoracle%e6%95%b8%e6%93%9a%e5%ba%ab-UgziYrvtIu\">\u914d\u7f6eOracle\u6578\u64da\u5eab<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u9032\u884c\u4e00\u4e9b\u57fa\u672c\u914d\u7f6e\uff1a<\/p>\n<h3 id=\"1-%e8%a8%ad%e7%bd%ae%e7%92%b0%e5%a2%83%e8%ae%8a%e9%87%8f-UgziYrvtIu\">1. \u8a2d\u7f6e\u74b0\u5883\u8b8a\u91cf<\/h3>\n<p>\u70ba\u4e86\u65b9\u4fbf\u4f7f\u7528Oracle\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5efa\u8b70\u8a2d\u7f6e\u74b0\u5883\u8b8a\u91cf\uff1a<\/p>\n<pre><code>\u53f3\u9375\u9ede\u64ca\u201c\u8a08\u7b97\u6a5f\u201d&gt;\u201c\u5c6c\u6027\u201d&gt;\u201c\u9ad8\u7d1a\u7cfb\u7d71\u8a2d\u7f6e\u201d&gt;\u201c\u74b0\u5883\u8b8a\u91cf\u201d<\/code><\/pre>\n<p>\u5728\u201c\u7cfb\u7d71\u8b8a\u91cf\u201d\u4e2d\uff0c\u627e\u5230\u201cPath\u201d\u8b8a\u91cf\uff0c\u4e26\u6dfb\u52a0\u4ee5\u4e0b\u8def\u5f91\uff1a<\/p>\n<pre><code>C:oracleproduct11.2.0serverbin<\/code><\/pre>\n<h3 id=\"2-%e5%89%b5%e5%bb%ba%e6%95%b8%e6%93%9a%e5%ba%ab-UgziYrvtIu\">2. \u5275\u5efa\u6578\u64da\u5eab<\/h3>\n<p>\u4f7f\u7528SQL*Plus\u5de5\u5177\u5275\u5efa\u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>sqlplus sys as sysdba<\/code><\/pre>\n<p>\u8f38\u5165\u5bc6\u78bc\u5f8c\uff0c\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u5275\u5efa\u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>CREATE DATABASE mydb;<\/code><\/pre>\n<h3 id=\"3-%e5%89%b5%e5%bb%ba%e7%94%a8%e6%88%b6%e5%92%8c%e8%b3%a6%e4%ba%88%e6%ac%8a%e9%99%90-UgziYrvtIu\">3. \u5275\u5efa\u7528\u6236\u548c\u8ce6\u4e88\u6b0a\u9650<\/h3>\n<p>\u5275\u5efa\u4e00\u500b\u65b0\u7684\u7528\u6236\u4e26\u8ce6\u4e88\u6b0a\u9650\uff1a<\/p>\n<pre><code>CREATE USER myuser IDENTIFIED BY mypassword;<\/code><\/pre>\n<pre><code>GRANT ALL PRIVILEGES TO myuser;<\/code><\/pre>\n<h2 id=\"%e6%b8%ac%e8%a9%a6oracle%e6%95%b8%e6%93%9a%e5%ba%ab-UgziYrvtIu\">\u6e2c\u8a66Oracle\u6578\u64da\u5eab<\/h2>\n<p>\u5b89\u88dd\u548c\u914d\u7f6e\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528SQL*Plus\u6216\u5176\u4ed6\u5de5\u5177\u9023\u63a5\u5230\u6578\u64da\u5eab\u9032\u884c\u6e2c\u8a66\uff1a<\/p>\n<pre><code>sqlplus myuser\/mypassword@mydb<\/code><\/pre>\n<p>\u5982\u679c\u80fd\u6210\u529f\u9023\u63a5\uff0c\u5247\u8868\u793aOracle\u6578\u64da\u5eab\u914d\u7f6e\u6210\u529f\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-UgziYrvtIu\">\u7e3d\u7d50<\/h2>\n<p>\u5728Windows 7\u74b0\u5883\u4e0b\u914d\u7f6eOracle\u6578\u64da\u5eab\u7684\u904e\u7a0b\u96d6\u7136\u9700\u8981\u4e00\u4e9b\u6280\u8853\u77e5\u8b58\uff0c\u4f46\u53ea\u8981\u6309\u7167\u4e0a\u8ff0\u6b65\u9a5f\u9032\u884c\uff0c\u5c31\u80fd\u9806\u5229\u5b8c\u6210\u3002\u7121\u8ad6\u662f\u5b78\u7fd2\u9084\u662f\u958b\u767c\uff0cOracle\u6578\u64da\u5eab\u90fd\u80fd\u63d0\u4f9b\u5f37\u5927\u7684\u652f\u6301\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u9ad8\u6548\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u4f86\u90e8\u7f72\u60a8\u7684Oracle\u6578\u64da\u5eab\uff0c\u9019\u6a23\u53ef\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5728Win7\u74b0\u5883\u4e0b\u914d\u7f6eOracle\u6578\u64da\u5eab\u7684\u6b65\u9a5f\u8207\u6280\u5de7\uff0c\u8f15\u9b06\u642d\u5efa\u6578\u64da\u5eab\u74b0\u5883\uff0c\u63d0\u5347\u958b\u767c\u6548\u7387\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-146719","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/146719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=146719"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/146719\/revisions"}],"predecessor-version":[{"id":146720,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/146719\/revisions\/146720"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=146719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=146719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=146719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}