Oracle±í¿Õ¼ä
Oracle´´½¨É¾³ýÓû§¡¢½ÇÉ«¡¢±í¿Õ¼ä¡¢µ¼Èëµ¼³ö¡¢...ÃüÁî×ܽá
//´´½¨ÁÙʱ±í¿Õ¼ä
create temporary tablespace zfmi_temp
tempfile 'D:\oracle\oradata\zfmi\zfmi_temp.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
//tempfile²ÎÊý±ØÐëÓÐ
//´´½¨Êý¾Ý±í¿Õ¼ä
create tablespace zfmi
logging
datafile 'D:\oracle\oradata\zfmi\zfmi.dbf'
size 100m
autoextend on
next 32m maxsize 2048m
extent management local;
//datafile²ÎÊý±ØÐëÓÐ
//ɾ³ýÓû§ÒÔ¼°Óû§ËùÓеĶÔÏó
drop user zfmi cascade;
//cascade²ÎÊýÊǼ¶ÁªÉ¾³ý¸ÃÓû§ËùÓжÔÏ󣬾³£Óöµ½ÈçÓû§ÓжÔÏó¶øÎ´¼Ó´Ë²ÎÊýÔòÓû§É¾²»Á˵ÄÎÊÌ⣬ËùÒÔϰ¹ßÐԵļӴ˲ÎÊý
//ɾ³ý±í¿Õ¼ä
ǰÌ᣺ɾ³ý±í¿Õ¼ä֮ǰҪȷÈϸñí¿Õ¼äûÓб»ÆäËûÓû§Ê¹ÓÃÖ®ºóÔÙ×öɾ³ý
drop tablespace zfmi including contents and datafiles cascade onstraints;
//including contents ɾ³ý±í¿Õ¼äÖеÄÄÚÈÝ£¬Èç¹ûɾ³ý±í¿Õ¼ä֮ǰ±í¿Õ¼äÖÐÓÐÄÚÈÝ£¬¶øÎ´¼Ó´Ë²ÎÊý£¬±í¿Õ¼äɾ²»µô£¬ËùÒÔϰ¹ßÐԵļӴ˲ÎÊý
//including datafiles ɾ³ý±í¿Õ¼äÖеÄÊý¾ÝÎļþ
//cascade constraints ͬʱɾ³ýtablespaceÖбíµÄÍâ¼ü²ÎÕÕ
Èç¹ûɾ³ý±í¿Õ¼ä֮ǰɾ³ýÁ˱í¿Õ¼äÎļþ£¬½â¾ö°ì·¨:
Èç¹ûÔÚÇå³ý±í¿Õ¼ä֮ǰ£¬ÏÈɾ³ýÁ˱í¿Õ¼ä¶ÔÓ¦µÄÊý¾ÝÎļþ£¬»áÔì³ÉÊý¾Ý¿âÎÞ·¨Õý³£Æô¶¯ºÍ¹Ø±Õ¡£
¿ÉʹÓÃÈçÏ·½·¨»Ö¸´£¨´Ë·½·¨ÒѾÔÚoracle9iÖÐÑé֤ͨ¹ý£©£º
ÏÂÃæµÄ¹ý³ÌÖУ¬filenameÊÇÒѾ±»É¾³ýµÄÊý¾ÝÎļþ£¬Èç¹ûÓжà¸ö£¬ÔòÐèÒª¶à´ÎÖ´ÐУ»tablespace_nameÊÇÏàÓ¦µÄ±í¿Õ¼äµÄÃû³Æ¡£
$ sqlplus /nolog
SQL> conn / as sysdba;
Èç¹ûÊý¾Ý¿âÒѾÆô¶¯£¬ÔòÐèÒªÏÈÖ´ÐÐÏÂÃæÕâÐУº
SQL> shutdown abort
SQL> startup mount
SQL> alter database datafile 'filename' offline drop;
SQL> alter database open;
SQL> drop tablespace tablespace_name including contents;
//´´½¨Óû§²¢Ö¸¶¨±í¿Õ¼ä
create user zfmi identified by zfmi
default tablespace zfmi temporary tablespace zfmi_temp;
//identified by ²ÎÊý±ØÐëÓÐ
//ÊÚÓèmessageÓû§DBA½ÇÉ«µÄËùÓÐȨÏÞ
GRANT DBA TO zfmi;
//¸øÓû§ÊÚÓèȨÏÞ
grant connect,resource to zfmi; (db2£ºÖ¸¶¨ËùÓÐȨÏÞ)
µ¼Èëµ¼³öÃüÁ
OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹ÔÓ뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdm
Ïà¹ØÎĵµ£º
²»¿ÉÒÔÓñ£Áô×Ö×öΪ±íÃû£¬×Ö¶ÎÃûµÄ¡£
Èç¹ûÓõ¥¸öÓ¢Óïµ¥´Ê»ò´Ê×éÀ´±íʾ±íÃû»ò×Ö¶ÎÃû¡£Õâ±È½ÏÈÝÒ׺ͱ£Áô×Ö³åÍ»¡£ÈçºÎÖªµÀOracleÓÃÁËÄÄЩ±£Áô×ÖÄØ£¿
ϵͳ±ív$reserved_wordsÖдæ·ÅÁËËùÓеı£Áô×Ö¡£
select * from v$reserved_words;
OracleÓÐ500¸ö±£Áô×Ö£¬¼ÇסËùÓеı£Áô×ÖÓеãÀ§ÄÑ£¬Ã¿´Î¶¼²éÕÒ»áÓ°Ïìµ½¿ª·¢ËÙ¶È£¬Èç ......
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm
oracle×Ô´øÎĵµÐ´µÄ±È½ÏÇå³þ
24
DBMS_CRYPTO
DBMS_CRYPTO
provides an interface to encrypt and
decrypt stored data, and can be used in conjunction with PL/SQL
programs running network communications. It provides suppo ......
1. ×¼±¸¹¤×÷
°Ñ¾ÉµÄORACLEËùÓÐÎļþ¶¼COPY±¸·ÝÏÂÀ´,ɾ³ý¾ÉĿ¼,ÔÙÖØÐ°²×°ORACLE,Ŀ¼ºÍ¾ÉĿ¼һÑù(Èç¹û²»Ò»Ñù,ÒªÐ޸ĵĵط½±È½Ï¶à).Ö»°²×°ORACLE,²»´´½¨Êý¾Ý¿â¡£Òª»Ö¸´µÄʵÀýΪORCL ¡£
2.ÓÃÃüÁʽ£¬Í¨¹ýÒª¾ÉµÄORAÎļþ´´½¨ÐµÄʵÀýORCL
a) oradim -new -sid ORCL£¨´´½¨ÊµÀý£ ......
--oracle jobsÅú´¦ÀíÃüÁî²Î¿¼
qlplus /nolog
connect sys/lee as sysdba
--ÒÔÏÂÁ½¾äÔÚsys(¼´¾ßÓÐdbaȨÏÞµÄÓû§)Óû§ÏÂÖ´ÐÐ
show parameter job_queue_processes;
alter system set job_queue_processes=10;
exit
sqlplus /nolog
connect jcy/jcy
ALTER TABLE T_OA_AFFICHE MODIFY (INPUT_TIME DATE);
ALTER TABLE ......
1.²é¿´ËùÓÐÓû§
select * from all_users; -------²é¿´ËùÓеÄÓû§
select * from user_users; --------²é¿´µ±Ç°Óû§
2.²é¿´Óû§»ò½ÇɫϵͳȨÏÞ£º
select * from user_sys_privs; --------²é¿´µ±Ç°Óû§µÄȨÏÞ
3.²é¿´½ÇÉ«Ëù°üº¬µÄȨÏÞ
&nb ......