Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

aixÏ°²×°oracleÐĵÃ

ɾ³ýAIXϵÄORACLE
===========================================================
×÷Õß: wmlm(http://wmlm.itpub.net)
·¢±íÓÚ:2008.12.02 18:17
·ÖÀà: oracle
³ö´¦£ºhttp://wmlm.itpub.net/post/12871/474762
---------------------------------------------------------------
rm -Rf /etc/oratab
rm -Rf /etc/oraInst.loc
rm -Rf /etc/ora_save*
rm -Rf /tmp/.oracle
rm -Rf /tmp/OraInstall*
rm -Rf /opt/app/oracle
rm -Rf /opt/app/oraInventory
rm -Rf /opt/oradata
rm -Rf /ww/arch1
rm -Rf /ww/arch2
su - oracle
vi .profile
remove the items about oracle 11g
ÔÚrootÖ´ÐÐrootpre.shµÄʱºò£¬Èôoracle½ø³ÌûÓÐɱËÀ£¬ÔËÐÐ
 ps -eaf | grep ora_smon
È»ºókill -9
һֱ˵Êý¾Ý¿âûÓÐmount £¬Ô­ÒòΪ sidºÍ´´½¨Êý¾Ý¿âµÄsid²»Ò»Ö £¬¿ÉÒÔ export ORACLE_SID=xxxÀ´ÒýÈëеġ£
LinuxÏÂOracle10g²»ÄÜÆô¶¯Ö® could not open parameter file
¹Ø¼ü×Ö: oracle lrm-00109: could not open parameter file '/opt/oracle
½ñÌ쿪·¢·þÎñÆ÷ͻȻÁ¬½Ó²»ÉÏ£¬sqlplus /nolog¡¢conn /as sysdba¡¢startupÃüÁîºóÏÔʾ
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/opt/oracle10g/product/10.2/db_1/dbs/initORA10G.ora'
²éÕÒÎļþ£¬¹ûÈ»²»´æÔÚ¡£¹À¼ÆÊÇ·Ç·¨¹Ø»úÔì³ÉµÄ¡£
ÕâÊÇÒòΪÔÚoracle9iºÍoracle10gÖУ¬oracleĬÈϽ«Ê¹ÓÃspfileÆô¶¯Êý¾Ý¿â£¬Èç¹ûspfile²»´æÔÚ£¬Ôò¾Í»á³öÏÖÉÏÊö´íÎó¡£
½â¾ö·½·¨1£¨ÒѾ­ÑéÖ¤£©£º
½«$ORACLE_BASE/admin /Êý¾Ý¿âÃû³Æ/pfileĿ¼ÏµÄinit.ora.012009233838ÐÎʽµÄÎļþcopyµ½$ORACLE_HOME/dbsĿ¼Ï initoracle.ora¼´¿É¡££¨×¢£ºinitoracle.oraÖеÄoracleΪÄãµÄʵÀýÃû ORACLE_SID£©
½â¾ö·½·¨2£º
ÓÃoraenvÃüÁî來¸Ä變當Ç°環¾³µÄSID,È»ááÓÃpfileÖØÐÂ產Éúspfile,¾Í¿ÉÒÔ啟動數據庫ÁË.
¸Ä變SID:
[oracle@willie root]$ source oraenv
ORACLE_SID = [oracle] ? test1
bash: /root/.bashrc: Permission denied
ÖØÐÂ產Éúspfile:
SQL> create spfile from pfile;
File created.
SQL> startup
ORACLE instance started.
ÔÚtoadн¨Óû§Ã»ÓÐȨÏÞ·ÃÎÊ£¬³öÏÖora-01045
ÔÚsysÏÂÔËÐÐgrant connect,resource to  dosc;


Ïà¹ØÎĵµ£º

¼×¹ÇÎÄÍƳö¡°Oracle¼Ó¿ì¼Æ»®¡±

 ¶þÁãÁã¾ÅÄêʮԶþÊ®ÈÕ£¬´ò´ÓÈýÄêÇ°ÍƳöOracle¼Ó½ô¼Æ»®ÒÔÀ´£¬¼×¹ÇÎĹ«Ë¾ÒѾ­Ôö¼ÓÁËÆß,000¶à¼ÒÖÎÀíÈí¼þÖÐÐÍÆóÒµ¿Í»§£¬µ±Ç°ÖÐÐÍÆóÒµ¿Í»§×ÜÁ¿ÒѾ­³¬¹ý25,000¼Ò¡£
͸¹ýÍƳöÂíÏòÖÐÐÍÆóÒµ¿Í»§µÄOracle¼Ó¿ì¼Æ»®Ð¹¦ÄÜ£¬°üÀ¨ÐÂʽ¼Ó¿ì¼Æ»®½â¾ö·½°¸¡¢OracleÆóÒµ¼ÓËÙÆ÷¡¢²ÆÎñÑ¡¼þºÍµ÷¶È²½ÖèµÈ£¬¼×¹ÇÎÄÔÚ²»Í£¶ÒÏÖ˳Àû¡£
ÃæÁÙÖÐÐÍ ......

ѧϰ¡¶Oracle 9i10g±à³ÌÒÕÊõ¡·µÄ±Ê¼Ç (Æß) Îļþ

 ÕâÒ»ÕÂÖУ¬ÎÒÃǽ«·ÖÎö¹¹³ÉÊý¾Ý¿âºÍʵÀýµÄ8 ÖÖÎļþÀàÐÍ¡£
ÓëʵÀýÏà¹ØµÄÎļþÖ»ÓУº
²ÎÊýÎļþ£¨parameter file£©£ºÕâЩÎļþ¸æËßOracle ʵÀýÔÚÄÄÀï¿ÉÒÔÕÒµ½¿ØÖÆÎļþ£¬²¢ÇÒÖ¸
¶¨Ä³Ð©³õʼ»¯²ÎÊý£¬ÕâЩ²ÎÊý¶¨ÒåÁËijÖÖÄÚ´æ½á¹¹Óжà´óµÈÉèÖá£ÎÒÃÇ»¹»á½éÉÜ´æ´¢Êý¾Ý¿â²Î
ÊýÎļþµÄÁ½ÖÖÑ¡Ôñ¡£
¸ú×ÙÎļþ£¨trace file£ ......

¹ØÓÚORACLE¸¨ÖúÓï¾ä

--JOBS
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT(job => X,
what => 'sp_test();',
next_date => to_date('28-04-2009 11:58:00',
'dd/mm/yyyy hh24:mi:ss'),
interval => 'SYSDATE+1');
END;
/
commit;
select to_char(sysdate-90,'yyyymmdd') from dual;  --Ñ¡ÔñÈÕÆÚ
select * from ......

ºÍÍøÓÑ̽ÌÖ ÈçºÎѧϰOracle

http://www.inthirties.com/thread-757-1-1.html
ºÜÈÙÐÒ£¬±»ÑûÇëΪCSDNѧϰ´ó±¾ÓªÀïµÄOracleÀÏʦ¡£ÓиöÍøÓÑ·¢ÏûÏ¢¹ýÀ´£¬Ò»Æð̽ÌÖÈçºÎѧϰOracle£¬Ò»ÏÂÊǻظ´£¬ºÍ´ó¼ÒÒ»Æð̽ÌÖ¡£
 Ê×ÏÈ£¬ÒªÃ÷È·ÄãµÄ·½ÏòºÍÄ¿±ê¡£
¶ÔÓÚOracleÀ´Ëµ£¬Õâ¸öÌåϵÊDZȽÏÅÓ´óµÄ£¬ËùÒÔÃ÷È·Ò»¸öÄ¿±êºÍÄãµÄ·½ÏòÊÇÔÚѧϰǰÐèҪ˼¿¼µÄÎÊÌâ¡£ ¹ÜÀí£¬ ......

Oracle µÄdrop table if exists¹¦ÄÜ

Oracle´´½¨±íʱ£¬³£Óöµ½ÏÈɾ³ýºó´´½¨µÄÇé¿ö£¬¶øËüÓÖûÓÐdrop table... if existsÓï·¨¡£Îª´Ë¿ÉÒÔʹÓÃuser_objectsÊý¾Ý×ÖµäºÍ¶¯Ì¬sqlÓï¾äʵÏÖÀàËƵŦÄÜ£¬ÈçÏÂËùʾ£º
create or replace procedure proc_dropifexists(
    p_table in varchar2
) is
    v_count number(10);
begin
&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ