{"id":292973,"date":"2024-09-14T20:09:18","date_gmt":"2024-09-14T12:09:18","guid":{"rendered":"https:\/\/lrxjmw.cn\/wxcjbkjjyhhs.html"},"modified":"2024-09-14T20:09:18","modified_gmt":"2024-09-14T12:09:18","slug":"wxcjbkjjyhhs","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/wxcjbkjjyhhs.html","title":{"rendered":"WIN8oracle11g \u4e0b\u521b\u5efa\u8868\u7a7a\u95f4\u53ca\u7528\u6237\u548c\u6388\u6743\u7684\u8be6\u7ec6\u6b65\u9aa4"},"content":{"rendered":"

sys\/change_on_install(\u6700\u597d\u7528\u8fd9\u4e2a\u521b\u5efa\u8868\u7a7a\u95f4\u53ca\u7528\u6237\u548c\u6388\u6743)<\/p>\n

---------------------------WINWIN88oracleoracle1111g\u4e0b\u521b\u5efa\u8fc7\u7a0b<\/p>\n

--\u521b\u5efa\u8868\u7a7a\u95f4<\/p>\n

CREATETABLESPACEminxin_dataDATAFILE'F:tableSpaceLRGDATA.DBF'SIZE100MAUTOEXTENDONNEXT10MMAXSIZEUNLIMITED;--(\u521b\u5efatableSpace\u6587\u4ef6\u5939)<\/p>\n

--\u521b\u5efa\u7528\u6237\uff1a<\/p>\n

CREATEUSERminxinIDENTIFIEDbyminxinDEFAULTtablespaceminxin_data;<\/p>\n

--\u7ed9\u7528\u6237\u6388\u4e88\u6743\u9650<\/p>\n

grantdba,connect,resource,CTXAPP,createviewtominxin;<\/p>\n

----------------------------------------------------------<\/p>\n

1\u3001window\u4e0b\u521b\u5efaoracle\u7528\u6237\u53ca\u8868\u7a7a\u95f4<\/p>\n

--\u521b\u5efa\u6570\u636e\u8868\u7a7a\u95f4<\/p>\n

createtablespaceoras_data--\u8868\u7a7a\u95f4\u7684\u540d\u5b50<\/p>\n

logging<\/p>\n

datafile'D:oracleproduct10.1.0oradataoras_data.dbf'--\u8868\u7a7a\u95f4\u7684\u6587\u4ef6linux<\/a> oracle\u521b\u5efa\u7528\u6237<\/strong>\uff0c\u6ce8\u610f\u636e\u5e93\u7248\u672c\uff0c\u6211\u7684\u662f10.1.0<\/p>\n

size32m<\/p>\n

autoextendon<\/p>\n

next32mmaxsize2048m<\/p>\n

extentmanagementlocal;--\u8fd9\u513f\u662f\u8ba9\u8868\u7a7a\u95f4\u624b\u52a8\u4e0b\u964d<\/p>\n

--\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u8868\u7a7a\u95f4<\/p>\n

createuserorasidentifiedbyoras--\u521b\u5efa\u7528\u6237\u53ca\u5bc6\u7801<\/p>\n

defaulttablespaceoras_data;--\u628a\u7528\u6237\u6307\u5b9a\u54ea\u4e2a\u8868\u7a7a\u95f4<\/p>\n

--\u7ed9\u7528\u6237\u6388\u4e88\u6743\u9650<\/p>\n

grantdba,connect,resource,CTXAPP,createviewtooras;--\u7ed9\u7528\u6237\u53d7\u7684\u4e00\u4e9b\u6743\u9650<\/p>\n

2\u3001linux\u4e0b\u521b\u5efaoracle\u7528\u6237\u53ca\u8868\u7a7a\u95f4<\/p>\n

\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1\u3001\u767b\u5f55linux\uff0c\u4ee5oracle\u7528\u6237\u767b\u5165\uff08\u5047\u5982\u662froot\u7528\u6237\u767b\u5165\u7684\u7ea2\u5e3dlinux\u7cfb\u7edf\u4e0b\u8f7dlinux\u7cfb\u7edf\u754c\u9762\uff0c\u767b\u9646\u540e\u7528su-oracle\u547d\u4ee4<\/a>\u5207\u6362\u6210oracle\u7528\u6237\uff09<\/p>\n

2\u3001\u4ee5sysdba\u65b9\u6cd5\u6765\u6253\u5f00sqlplus\uff0c\u547d\u4ee4\u5982\u4e0b\uff1asqlplus\"\/assysdba\"<\/p>\n

3\u3001\u67e5\u770b\u6211\u4eec\u5e38\u89c4\u5c06\u7528\u6237\u8868\u7a7a\u95f4\u653e\u7f6e\u4f4d\u7f6e\uff1a\u6267\u884c\u5982\u4e0bsql\uff1a<\/p>\n

selectnamefromv$datafile;<\/p>\n

\u4e0a\u9762\u7684sql\u901a\u5e38\u5c31\u5c06\u4f60\u7684\u7528\u6237\u8868\u7a7a\u95f4\u6587\u4ef6\u4f4d\u7f6e\u67e5\u4e0b\u6765\u4e86\u3002<\/p>\n

--\u521b\u5efa\u6570\u636e\u8868\u7a7a\u95f4<\/p>\n

createtablespaceoras_data--\u8868\u7a7a\u95f4\u7684\u540d\u5b50<\/p>\n

logging<\/p>\n

datafile'\/oracle\/product\/10.1.0\/oradata\/oras_data.dbf'--\u8868\u7a7a\u95f4\u7684\u6587\u4ef6\uff0c\u6ce8\u610f\u636e\u5e93\u7248\u672clinux oracle\u521b\u5efa\u7528\u6237<\/strong>\uff0c\u6211\u7684\u662f10.1.0<\/p>\n

size32m<\/p>\n

autoextendon<\/p>\n

next32mmaxsize2048m<\/p>\n

extentmanagementlocal--\u8fd9\u513f\u662f\u8ba9\u8868\u7a7a\u95f4\u624b\u52a8\u4e0b\u964d<\/p>\n

--\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u8868\u7a7a\u95f4<\/p>\n

createuserorasidentifiedbyoras--\u521b\u5efa\u7528\u6237\u53ca\u5bc6\u7801<\/p>\n

defaulttablespaceoras_data--\u628a\u7528\u6237\u6307\u5b9a\u54ea\u4e2a\u8868\u7a7a\u95f4<\/p>\n

--\u7ed9\u7528\u6237\u6388\u4e88\u6743\u9650<\/p>\n

grantdba,connect,resource,CTXAPP,createviewtooras;--\u7ed9\u7528\u6237\u53d7\u7684\u4e00\u4e9b\u6743\u9650<\/p>\n

\u603b\u7ed3\uff1a\u4e0d\u540c\u70b9\uff0c<\/p>\n

1\u3001window\u4e0b\uff1a<\/p>\n

logging<\/p>\n

datafile'D:oracleproduct10.1.0oradataoras_data.dbf'<\/p>\n

2\u3001Linux<\/a>\u4e0b\uff1a<\/p>\n

logging<\/p>\n

datafile'\/oracle\/product\/10.1.0\/oradata\/oras_data.dbf'<\/p>\n

3\u3001Linux\u4e0b\uff1a<\/p>\n

\u4e0a\u9762\u7684sql\u53e5\u5b50\u7684\u672b\u5c3e,\u901a\u5e38\u4e0d\u8981\u52a0\";\"\u53f7\u3002\u4f1a\u6267\u884c\u4e0d\u4e86\u3002\u5982\u4e0b,\u5e94\u5f53\u628a\u524d\u9762\u7684\";\"\u53bb\u9664\u3002<\/p>\n

grantdba,connect,resource,CTXAPP,createviewtooras;--\u7ed9\u7528\u6237\u53d7\u7684\u4e00\u4e9b\u6743\u9650<\/p>\n

\u522b\u7684\u90fd\u4e00\u6837\u4e86\uff0c\u5f88\u7b80\u5355\u7684\u3002<\/p>\n

--###########################################<\/p>\n

--\u67e5\u770b\u6240\u6709\u8868\u7a7a\u95f4\u7684\u4f7f\u7528\u591a\u5c11<\/p>\n

selecttablespace_name,sum(bytes)\/1024\/1024fromdba_data_filesgroupbytablespace_name;<\/p>\n

--\u67e5\u770b\u6307\u5b9a\u7684\u8868\u7a7a\u95f4\u88ab\u7d22\u5f15\u548c\u8868\u5404\u5360\u4e86\u591a\u5c11\u8868\u7a7a\u95f4\u3002<\/p>\n

selectSEGMENT_TYPE,owner,sum(bytes)\/1024\/1024from<\/p>\n

dba_segments<\/p>\n

wheretablespacE_name='ORAS_DATA'<\/p>\n

groupbysegment_type,owner<\/p>\n

--\u5220\u6389\u7528\u6237,\u4f1a\u5220\u6389\u6b64\u7528\u6237\u540d\u4e0b\u7684\u6240\u6709\u8868\u548c\u89c6\u56fe<\/p>\n

dropuserorascascade<\/p>\n

--\u5220\u6389\u8868\u7a7a\u95f4<\/p>\n

droptablespaceoras_dataincludingcontentsanddatafiles<\/p>\n","protected":false},"excerpt":{"rendered":"

(\u6700\u597d\u7528\u8fd9\u4e2a\u521b\u5efa\u8868\u7a7a\u95f4\u53ca\u7528\u6237\u548c\u6388\u6743)WIN8oracle11g\u4e0b\u521b\u5efa\u8fc7\u7a0b1\u3001window\u4e0b\u521b\u5efaoracle\u7528\u6237\u53ca\u8868\u7a7a\u95f4–\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u8868\u7a7a\u95f42\u3001linux\u4e0b\u521b\u5efaoracle\u7528\u6237\u53ca\u8868\u7a7a\u95f4oracle\u547d\u4ee4\u5207\u6362\u6210oracle\u7528\u6237\uff09\u4e0a\u8fb9\u7684sql\u4e00\u822c\u5c31\u5c06\u4f60\u7684\u7528\u6237\u8868\u7a7a\u95f4\u6587\u4ef6\u4f4d\u7f6e\u67e5\u51fa\u6765\u4e86\u3002–\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u8868\u7a7a\u95f4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[109,2996,2995,2994,2189],"class_list":["post-292973","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-linux","tag-w-14","tag-cjyh","tag-cjbkj","tag-sq-3"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/292973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=292973"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/292973\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=292973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=292973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=292973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}