¸ß·ÖÇë½Ì oracle Òì³£µÄ²¶»ñÎÊÌâ
ÎÒÏÈ˵Ã÷Ò»ÏÂÇé¿ö£ºÓÐÒ»¸örec1.batµÃÅú´¦ÀíÎļþÀï±ß´úÂëÈçÏ£º
SET ORACLE_SID=TosmecDB
sqlPLUS /nolog "@c:\tosmec\sys\syscom\TosmecHotSub1.sql"
TosmecHotSub1.sqlµÄÎļþÄÚÈÝÈçÏ£º
SPOOL C:\TOSMEC\DATA\Log\YobiLogTmp1.log
connect sys/tosmecadmin as sysdba;
shutdown immediate;
STARTUP NOMOUNT pfile=C:\oracle\product\10.1.0\admin\TosmecDB\scripts\init1.ora
alter database mount standby database;
SET AUTORECOVERY ON
RECOVER STANDBY DATABASE;
EXIT
SPOOL OFF
ÎÒÈçºÎÔÚÅú´¦ÀíÖ´ÐеÄʱºò»ñµÃoracleµÄ´íÎ󣿿ÒÇó¸ßÊִͽ̣¿
~~~¿´¹ý~~~~Ïë¹ý~~~~~·¹ý~~~~~~~~~
"@c:\tosmec\sys\syscom\TosmecHotSub1.sql
´ËÌõÓï¾ä²»ÄÜÔÚÊý¾Ý¿âÖÐÔËÐУ¬Ó¦¸ÃÔÚ ÔËÐÐ ÖÐÊäÈë·¾¶£¬È»ºóÔËÐÐ
ºÃÏñ²»ÐУ¬ÔÚsql½Å±¾ÀïÊǵò»µ½´íÎó´úÂëµÄ¡£
SET ORACLE_SID=TosmecDB
sqlPLUS /nolog "@c:\tosmec\sys\syscom\TosmecHotSub1.sql"
ÔÚ´Ë´¦Ôö¼Ó¸öÓï¾ä show error
Â¥ÉϵĿÉÒÔÊÔÊÔ¡£ËäÈ»Êǽű¾£¬Ö´ÐÐʱ»¹ÊÇÒ»´ó¶ÑµÄsql£¬show errÓ¦¸Ã¿ÉÒÔ¡£
4Â¥µÄshow error¿ÉÒÔÊÔÒ»ÊÔ¡£
¿ÉÒÔÓÃplsqlµÄ´æ´¢¿é£¬»òÕßд¸ö´æ´¢¹ý³Ì·µ»ØÒì³£ÐÅÏ¢°É
Ïà¹ØÎÊ´ð£º
»·¾³£º1.win2003server+oracle9i
2.oracle9i×Ö·û¼¯ÎªAMERICAN_AMERICA.WE8ISO8859P1
3.oracle sql developer°æ±¾ 1.5.5
ÏÖÏóÃèÊö: 1.ÔÚsql developer ÖвéѯoracleÖеÄij¸ö±í£¬ÖÐÎÄÈ«²¿ÏÔʾΪÂÒÂë¡£
......
<?php
getenv("ORACLE_HOME");
$conn=ocilogon("test","test","test_db");
if($conn)
echo success;
&nb ......
oracle not available
shared memory realm does not exist
ÇëÎʸßÊÖÕâ¸öÎÊÌâÈçºÎ½â¾ö£¿
http://www.inthirties.com/thread-109-2-1.html
Ö¸¶¨ÏÂORACLE_SID,ORACLE_HOME¿´¿´£¬²»ÐоÍÓÃ1Â¥µÃ·½·¨ÁË..
cm ......
±¾À´ÒªÐ´¸öupdateÓï¾ä
update table_a A
set A.flag=1
where A.id in (select B.id from table_b B)
½á¹ûÎóд³É
update table_a A
set A.flag=1
where ......
ÎÒÊÇÓÃÔ¶³Ì×ÀÃæÁ¬²Ù×÷·þÎñÆ÷ÉϵÄÊý¾Ý¿â¡£
ÔÚ´´½¨Ò»¸öÓû§Ö®ºó£¬ÔÙÓÃPLSQLµÇ¼£¬ÔòPLSQLËÀµôÁË¡£
ÎҹصôPLSQLÖ®ºó£¬ÓÃÆäËûÓû§Ò²²»ÄܵǼ¡£
ÎÒ°ÑoracleµÄ·þÎñÍ£Ö¹£¬½á¹û¾ÍÊÇoracleµÄ·þÎñ״̬¾ÍÍ£ÁôÔÚ¡°Í ......