oracleÖ®createÓ÷¨
create database --´´½¨Êý¾Ý¿â
create database test
controlfile reuse
datafile 'd:\data\system1.dbf' size 100m autoextend on next 100m maxsize unlimited
sysaux datafile 'd:\data\sysaux1.dbf' size 100m reuse autoextend on next 100m maxsize unlimited
default temporary tablespace temp1
tempfile 'd:\data\temp1.dbf' size 100m reuse autoextend on next 100m maxsize unlimited
undo tablespace UNDOTBS1
datafile 'd:\data\undo1.dbf' size 100m reuse autoextend on next 100m maxsize unlimited
default tablespace user1
datafile 'd:\data\user1.dbf' size 100m reuse autoextend on next 100m maxsize unlimited
extent management local autoallocate
logfile group 1 'd:\data\redo1.log' size 100m reuse,
group 2 'd:\data\redo2.log' size 100m reuse,
group 3 'd:\data\redo3.log' size 100m reuse
character set al32utf8
user sys identified by oracle
user system identified by oracle
;
create user --´´½¨Êý¾Ý¿âÓû§
create user yangdaliang identified by ydltest default tablespace test_ticket
create tablespace --´´½¨±í¿Õ¼ä
create tablespace test_account
logging
datafile 'D:\oracle\ora92\oradata\test_account.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
create table --´´½¨Êý¾Ý±í
create table ydl_test
(sno number(5) primary key,
sname varchar(20),
saddrvarchar(100)
);
create index --´´½¨Ë÷Òý
Ïà¹ØÎĵµ£º
Oracle IOÎÊÌâ½âÎö
Êý¾Ý¿âµÄ×÷ÓþÍÊÇʵÏÖ¶ÔÊý¾ÝµÄ¹ÜÀíºÍ²éѯ¡£ÈκÎÒ»¸öÊý¾Ý¿âϵͳ£¬±ØÈ»´æÔÚ¶ÔÊý¾ÝµÄ´óÁ¿¶Á»òÕßд»òÕßÁ½ÖвÙ×÷¶¼´óÁ¿´æÔÚ¡£IOÎÊÌâÒ²ÍùÍùÊǵ¼ÖÂÊý¾Ý¿âÐÔÄÜÎÊÌâµÄÖØÒªÔÒò¡£ÔÚÕâƪÎÄÕÂÖУ¬Ö÷Òª°ïÖú´ó¼ÒÔÚÀí½âOracleµÄ¶Áд²Ù×÷»úÖƵĻù´¡ÉÏ£¬Áé»î½â¾öÓöµ½µÄ¸÷ÖÖ³£¼ûµÄIOÎÊÌâ¡£
1 OracleÖÐIOµÄ²úÉú
IOµ±È»°üÀ ......
ORACLE EXPDP/IMPDP
2010-01-22 17:07
µ÷ÓÃEXPDP
ʹÓÃEXPDP¹¤¾ßʱ,Æäת´¢ÎļþÖ»Äܱ»´æ·ÅÔÚDIRECTORY¶ÔÏó¶ÔÓ¦µÄOSĿ¼ÖÐ,¶ø
²»ÄÜÖ±½ÓÖ¸¶¨×ª´¢ÎļþËùÔÚµÄOSĿ¼.Òò´Ë,ʹÓÃEXPDP¹¤¾ßʱ,±ØÐëÊ×ÏȽ¨Á¢DIRECTORY¶ÔÏó.²¢ÇÒÐèҪΪÊý¾Ý¿âÓû§ÊÚÓèʹÓÃ
DIRECTORY¶ÔÏóȨÏÞ.
CREATE DIRECTORY dump dir AS ‘DUMP’; ......
´´½¨Àý³Ì£º
-NEW -SID sid | -SRVC ·þÎñ [-INTPWD ¿ÚÁî] [-MAXUSERS ÊýÁ¿] [-STARTMODE a|m] [-PFILE Îļþ] [-TIMEOUT Ãë]
±à¼Àý³Ì£º
-EDIT -SID sid [-NEWSID sid] [-INTPWD ¿ÚÁî] [-STARTMODE auto|manual] [-PFILE ÎļþÃû] [-SHUTMODE a|i|n] [-SHUTTYPE srv ......
Ï£Íû¸ßÊÖ¿ÉÒÔ°ïæһÏ ²»Ê¤¸Ð¼¤
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.2.0.3.0 - Production on ÐÇÆÚËÄ 5ÔÂ 20 17:23:05 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> conn system/manager as sysdba;
ÒÑÁ¬½Óµ½¿ÕÏÐÀý³Ì¡£
SQL> ......
¡¡¡¡Ò»¡¢ÒýÑÔ
¡¡¡¡Êý¾Ý²Ö¿â¼¼ÊõÊÇÄ¿Ç°ÒÑÖªµÄ±È½Ï³ÉÊìºÍ±»¹ã·º²ÉÓõĽâ¾ö·½°¸£¬ÓÃÓÚÕûºÍµçÐÅÔËÓªÆóÒµÄÚ²¿ËùÓзÖÉ¢µÄÔʼҵÎñÊý¾Ý£¬²¢Í¨¹ý±ã½ÝÓÐЧµÄÊý¾Ý·ÃÎÊÊֶΣ¬¿ÉÒÔÖ§³ÖÆóÒµÄÚ²¿²»Í¬²¿ÃÅ£¬²»Í¬ÐèÇ󣬲»Í¬²ã´ÎµÄÓû§Ëæʱ»ñµÃ×Ô¼ºËùÐèµÄÐÅÏ¢¡£Êý¾Ý²Ö¿âϵͳÐèÒªÄܹ»¼°Ê±µØ×·×ٺͷÖÎö´óÁ¿µÄÀúÊ·Êý¾Ý£¬²¢Äܹ»¼°Ê±×ö³ö·ÖÎöºÍÔ¤ ......