oracle ²Ù×÷±í¿Õ¼äºÍÊý¾ÝÎļþ
²úÉú±í¿Õ¼äÒ»°ã¶¼ÊÇDBA»òÌØȨÓû§À´Íê³ÉµÄ£¬Èç¹ûÒªÒÔÆäËûµÄÉí·ÝÀ´²úÉú£¬Õâ¸öÓû§±ØÐëÓÉCreate tablespaceȨÏÞ²ÅÐС£²úÉúÒ»¸ö±í¿Õ¼äʱ£¬Ò»°ãÐèÒª²úÉúÒ»¸öÊý¾ÝÎļþ£¬²¢È·¶¨ÎļþµÄ´óСºÍ¶ÎµÄ´óС¡£
²úÉúÒ»¸ö±í¿Õ¼ä£¬È·¶¨Êý¾ÝÎļþ£¬Îļþ´óСºÍÇø´óС¡£
create tablespace date01 datafile d:\oracle\oradata\scut\date01.dbf size 200m uniform size 128k
ɾ³ýÒ»¸ö±í¿Õ¼äºÍÊý¾ÝÎļþ£º
drop tablespace date01 including contents and datafiles;
¸Ä±äÒ»¸ö±í¿Õ¼äµÄ´óС£º
Ìí¼ÓÊý¾ÝÎļþ£º
alter tablespace date01 add datafile d:\oracle\oradata\scut\date03.dbf size 50m;
ÊÖ¹¤Ôö¼ÓÎļþ³ß´ç
alter database datafile d:\oracle\oradata\scut\date03.dbf resize 100m;
ÉèÖÃÎļþÊý¾Ý×Ô¶¯À©Õ¹
alter database datafile d:\oracle\oradata\scut\date03.dbf autoextend on next 10m maxsize 500m;
Òƶ¯Êý¾ÝÎļþ£º
Òƶ¯Êý¾ÝÎļþÓÐÁ½ÖÖ·½Ê½£¬Ò»ÊÇalter tablespace£¬ÁíÒ»ÖÖÊÇalter database¡£
ÔÚOPEN״̬ÏÂÒƶ¯Êý¾ÝÎļþ
ÔÚÕâÖÖ״̬Ï£¬Òƶ¯Îļþͨ¹ýalter dataspaceÃüÁîÀ´Íê³É£¬²¢ÇÒÒªÇó±í¿Õ¼ä´¦ÓÚÍÑ»ú״̬¡£ÓÉÓÚsystemºÍundo±í¿Õ¼ä²»ÄÜ´¦ÓÚÍÑ»ú£¬ËùÒÔÔÚÕâÖÖ·½Ê½Öв»ÄÜÒƶ¯ËüÃÇ¡£
ÏÂÃæÊÇÒƶ¯Ò»¸öÆÕͨÊý¾ÝÎļþµÄ·½·¨£º
È·¶¨Îļþ´¦Óڵıí¿Õ¼ä£º
select tablespace_name from dba_data_files where file_name =D:\ORACLE\ORADATA\DATE03.DBF;
ʹ±í¿Õ¼äÍÑ»ú£º
alter tablespace date01 offline;
ʹÓÃOSÃüÁîÒƶ¯Îļþ£º
host move d:\oracle\oradata\scut\date03.dbf d:\oracle\ora92\date03.dbf;
Ö´ÐÐAlter dataspaceÃüÁ±ØÐëÈ·±£Îļþ±»Òƶ¯ÁË£º
alter tablespace date01 rename datafile d:\oracle\oradata\scut\date03.dbf to d:\oracle\ora92\date03.dbf’;
ʹ±í¿Õ¼äÁª»ú£º
alter tablespace date01 online;
ÔÚMOUNT״̬ÏÂÒƶ¯Êý¾ÝÎļþ
ÔÚMOUNT״̬Ï£¬¿ÉÒÔÒƶ¯ÈκÎÊý¾ÝÎļþ£¬°üÀ¨SYSTEMºÍUNDO±í¿Õ¼ä¡£ËüʹÓõÄÃüÁîÊÇalter database
¹Ø±ÕÊý¾Ý¿â
Shutdown immediate
Startup mount
Òƶ¯Êý¾Ý
host move d:\oracle\oradata\scut\date03.dbf d:\oracle\ora92\date03.dbf;
Ö´ÐÐalter database
Alter database date01 renam file ‘…..’ to ‘……’
´ò¿ªÊý¾Ý¿â
Alter database open
Ïà¹ØÎĵµ£º
Oracle½ø³Ì½á¹¹
1. Oracle½ø³Ì¼ò½é
ÿ¸öÁ¬½Óµ½OracleµÄÓû§ÐèÒªÔËÐÐÁ½¸öÄ£¿é²ÅÄÜ·ÃÎÊOracleʵÀý¡£
¡£Ó¦ÓóÌÐò»òOracle¹¤¾ß£ºÊý¾Ý¿âÓû§ÐèÒªÔËÐÐÊý¾Ý¿âÓ¦ÓóÌÐò»òOracle¹¤¾ß£¨ÀýÈçSQL*Plus£©£¬ÏòOracleÊý¾Ý¿â·þÎñÆ÷Ìá½»SQLÓï¾ä¡£
¡£OracleÊý¾Ý¿â·þÎñÆ÷Ä£¿é£ºÎªÓû§Ìṩ·þÎñµÄOracleÊý¾Ý¿â³ÌÐò£¬¸ºÔð½âÊÍÖ´ÐÐÓ¦ÓóÌÐòÌá½» ......
±¸×¢£º¾¹ýÇ°ÆÚµÄlinuxϵͳ»·¾³µÄÅäÖôÍê³É£¬ÏÂÃæ¾Í¿ªÊ¼°²×°oracleÊý¾Ý¿â¡£oralceÊý¾Ý´ó¼ÒÈ¥oracle¹Ù·½ÍøÕ¾ÉÏÏÂÔØlinux»·¾³Ïµİ汾¡£ºÜÒź¶½ØͼÉÏ´«²»ÁË¡£
Èý£®Oracle database°²×°¾ßÌå°²×°²½Öè
<1>´´½¨°²×°oracleĿ¼¼°Ö÷Êôµ÷Õû
[root@mylinux oracle]# mv database/ /u01
[root@mylinux u ......
ÓÃQt¿ª·¢Oracle³ÌÐòʱ£¬³£»áÓöµ½QOCIÇý¶¯ÎÊÌ⣬Ö÷Òª±íÏÖΪ³ÌÐòÔËÐÐʱ³öÏÖÏÂÃæµÄ´íÎó¡£
QOCI driver not loaded
available drivers: QSQLITE QODBC3 QODBC
Õâ˵Ã÷ûÓа²×°QtÖ§³ÖOracleµÄÇý¶¯¡£
.
ÒªÏë±ÜÃâÕâ¸öÎÊÌ⣬µÚÒ»ÖÖ·½·¨ÊÇʹÓÃЧÂʵÍϲ¢ÇÒ·ÑʵÄODBC£»µÚ¶þÖÖ·½·¨¾ÍÊÇ°²×°QOCIÇý¶¯¿©~
.
Ҫ˵һϵÄÊÇ£ºQOCIÔÚqt ......
CHAR ¹Ì¶¨³¤¶È×Ö·û´® ×î´ó³¤¶È2000 bytes
VARCHAR2 ¿É±ä³¤¶ÈµÄ×Ö·û´® ×î´ó³¤¶È4000 bytes ¿É×öË÷ÒýµÄ×î´ó³¤¶È749
NCHAR ¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¹Ì¶¨³¤¶È×Ö·û´® ×î´ó³¤¶È2000 bytes
NVARCHAR2 ¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¿É±ä³¤¶È×Ö·û´® ×î´ó³¤¶È4000 bytes
DATE ÈÕÆÚ£ ......
oracle8i Çý¶¯ ojdbc14.jar Õâ¸öÇý¶¯ÓÐÎÊÌ⣬·ÖҳʱҪÊÖ¶¯ д rownum<m ,Ëü×Ô¶¯³ÉÉúµÄ·ÖÒ³²»ÕýÈ·£¬ÓõÄmysqlµÄtop m
Null value was assigned to a property of primitive °ÑentityÖÐintÀàÐ͸ijÉInteger ¿âÖв»ÉèÖÃnullable
number(9) µÄid ²»ÄÜÓÃInterger,µÃÓÃBigDecimal,Òª²»È»È¡idʱ»á±¨´í ......