Oracle OSÈÏÖ¤ÒÔ¼°¿ÚÁîÎļþ
1.OSÈÏÖ¤
Oracle°²×°Ö®ºóĬÈÏÇé¿öÏÂÊÇÆôÓÃÁËOSÈÏÖ¤µÄ£¬ÕâÀïÌáµ½µÄosÈÏÖ¤ÊÇÖ¸·þÎñÆ÷¶ËosÈÏÖ¤¡£OSÈÏÖ¤µÄÒâ˼°ÑµÇ¼Êý¾Ý¿âµÄÓû§ºÍ¿ÚÁîУÑé·ÅÔÚÁ˲Ù×÷ϵͳһ¼¶¡£Èç¹ûÒÔ°²×°OracleʱµÄÓû§µÇ¼OS£¬ÄÇô´ËʱÔڵǼOracleÊý¾Ý¿âʱ²»ÐèÒªÈκÎÑéÖ¤£¬È磺
SQL> connect /as sysdba
ÒÑÁ¬½Ó¡£
SQL> connect sys/aaa@test as sysdba
ÒÑÁ¬½Ó¡£
SQL> connect sys/bbb as sysdba
ÒÑÁ¬½Ó¡£
SQL> connect aaa/bbb as sysdba
ÒÑÁ¬½Ó¡£
SQL> show user
SYS
SQL>
²»ÂÛÊäÈëʲôÓû§£¨ÄÄÅÂÕâ¸öÓû§ÈçaaaÔÚÊý¾Ý¿âÖиù±¾²»´æÔÚ£©£¬Ö»ÒªÒÔsysdbaȨÏÞÁ¬½ÓÊý¾Ý¿â£¬¶¼¿ÉÒÔÁ¬½ÓÉÏ£¬²¢ÇÒÁ¬½ÓÓû§ÊÇsys£¬ÕâÑùºÜ·½±ã£¬ÓÐʱºò£¬Èç¹ûÍü¼ÇÁËÊý¾Ý¿âµÄÃÜÂ룬¶øÓÖÏëµÇ¼Êý¾Ý¿â£¬¿ÉÒÔͨ¹ýÕâÖÖ·½Ê½£¬Ç°ÌáÊÇÔÚÊý¾Ý¿â·þÎñÆ÷ÉÏ.
µ«ÊÇ·½±ãµÄͬʱҲ´øÀ´ÁËһЩ°²È«Òþ»¼£¬ÓÚÊǺܶàÈËÏëÆÁ±ÎosÈÏÖ¤£¬
ÔÚwinÏÂÖ»Òª°Ñoracle_home/NETWORK/admin/sqlnet.oraÖеÄSQLNET.AUTHENTICATION_SERVICES= (nts)nts¸Ä³Énone»òÕß×¢Ê͵ôÕâ¾ä»°(ÔÚÇ°Ãæ¼ÓÉÏ#)£¬¾Í¿ÉÒÔÆÁ±Îos¹¦ÄÜ£¬ÒªÏëÒÔsysÓû§Á¬ÉÏÊý¾Ý¿â±ØÐëÊäÈëÕýÈ·µÄsys¿ÚÁ»òÕß¿ÉÒÔ°ÑoracleµÄ°²×°Óû§´Ó×éora_dbaÖÐɾ³ýµô£¬µ±È»Ò²¿ÉÒÔÖ±½Ó°Ñora_dbaÕâ¸ö×éҲɾ³ý£¬¶¼¿ÉÒÔÆÁ±Îos¹¦ÄÜ.È磺
SQL> connect /as sysdba
ERROR:
ORA-01031: ȨÏÞ²»×ã
SQL> connect sys/aaa as sysdba
ERROR:
ORA-01017: Óû§Ãû/¿ÚÁîÎÞЧ; µÇ¼±»¾Ü¾ø
SQL> connect aaa/bbb as sysdba
ERROR:
ORA-01031: ȨÏÞ²»×ã
SQL> connect sys/system as sysdba
ÒÑÁ¬½Ó¡£
SQL>
ÔÚunix/linuxÏÂÒ²¿ÉÒÔÔÚÎļþsqlnet.oraÖÐÔö¼ÓSQLNET.AUTHENTICATION_SERVICES=(none)ÒÔ¼°É¾³ýdba(groupdel dba)×é»òÕß°ÑoracleÓû§´Ódba×éÖÐɾ³ý¶¼¿ÉÒÔÆÁ±ÎosÈÏÖ¤¡£ÀûÓÃÕâÁ½ÖÖ·½·¨ÆÁ±Îos¹¦ÄÜËƺõ×ÜÓÐЩÈÃÈ˲»·ÅÐÄ£¬»òÕß˵²»ÄÜÈÃÈËÍêÈ«ÐÅ·þ£¬ÒòΪ±Ï¾¹ÏµÍ³¹ÜÀíÔ±»¹ÊÇ¿ÉÒÔ´´½¨ora_dba or dba×éÒÔ¼°ÐÞ¸Äsqlnet.oraÎļþ......
2. ¿ÚÁîÎļþ
OracleµÄ¿ÚÁîÎļþµÄ×÷ÓÃÊÇ´æ·ÅËùÓÐÒÔsysdba»òÕßsysoperȨÏÞÁ¬½ÓÊý¾Ý¿âµÄÓû§µÄ¿ÚÁÈç¹ûÏëÒÔsysdbaȨÏÞÔ¶³ÌÁ¬½ÓÊý¾Ý¿â£¬±ØÐëʹÓÿÚÁîÎļþ£¬·ñÔò²»ÄÜÁ¬ÉÏ£¬ÓÉÓÚsysÓû§ÔÚÁ¬½ÓÊý¾Ý¿âʱ±ØÐëÒÔsysdba or sysoper·½Ê½£¬Ò²¾ÍÊÇ˵sysÓû§ÒªÏëÁ¬½ÓÊý¾Ý¿â±ØÐëʹÓÿÚÁîÎļþ£¬Òò´ËÎÒÈÏΪÔÚÊý¾Ý¿âÖдæ·ÅsysÓû§µÄ¿ÚÁîÆäʵûÓÐÈκÎÒâÒ壡ʹÓÿÚÁîÎļþµÄºÃ´¦ÊǼ´Ê¹Êý¾Ý¿â²»´¦ÓÚopen״̬£¬ÒÀÈ»¿ÉÒÔͨ¹ý¿ÚÁîÎļþÑéÖ¤À´Á¬½ÓÊý¾Ý¿â¡£¿ªÊ¼°
Ïà¹ØÎĵµ£º
¹Ø¼ü×Ö: oracle job ¼ä¸ôʱ¼ä trunc
¼ÙÉèÄãµÄ´æ´¢¹ý³ÌÃûΪPROC_RAIN_JM
ÔÙдһ¸ö´æ´¢¹ý³ÌÃûΪPROC_JOB_RAIN_JM
ÄÚÈÝÊÇ£º
Create Or Replace Procedure PROC_JOB_RAIN_JM Is li_jobno Number; &nb ......
Ò»¡¢Ê×ÏÈÏÂÔØ
1¡£µ½OracleµÄOTNÕ¾µãÉÏÏÂÔØOracle10g for Solaris x86µÄ°²×°ÅÌ http://www.oracle.com/technology ... ocs/solx86soft.html 2¡£ÏÂÔØÍê±ÏÒԺ󣬵õ½solarisx86_DB_10_1_0_3_Disk1.cpio.gzÎļþ ½âѹ£¬Éú³ÉDisk1Ŀ¼ $ gunzip -c solarisx86_DB_10_1_0_3_Disk1.cpio.gz | cpio -idmv È»ºó¿´oracle 10g fo ......
¡¡¡¡OracleµÄ·ÖÇø¼¼ÊõÔÚijЩÌõ¼þÏ¿ÉÒÔ¼«´óµÄÌá¸ß²éѯµÄÐÔÄÜ£¬ËùÒÔ±»¹ã·º²ÉÓᣴӲúÆ·ÉÏ˵£¬·ÖÇø¼¼ÊõÊÇOracleÆóÒµ°æÖжÀÁ¢ÊշѵÄÒ»¸ö×é¼þ¡£ÒÔÏÂÊǶÔÓÚ·ÖÇø¼°±¾µØË÷ÒýµÄÒ»¸öʾÀý¡£
¡¡¡¡OracleµÄ·ÖÇø¼¼ÊõÔÚijЩÌõ¼þÏ¿ÉÒÔ¼«´óµÄÌá¸ß²éѯµÄÐÔÄÜ£¬ËùÒÔ±»¹ã·º²ÉÓᣴӲúÆ·ÉÏ˵£¬·ÖÇø¼¼ÊõÊÇOracleÆóÒµ°æÖжÀÁ¢ÊշѵÄÒ»¸ö ......
http://www.csip.com.cn/88/n-52488.html
¹ØÓÚ·ÖÇø±íºÍ·ÖÇøË÷Òý(About Partitioned Tables and Indexes)¶ÔÓÚ10gR2¶øÑÔ£¬»ù±¾ÉÏ¿ÉÒԷֳɼ¸Àࣺ
Range(·¶Î§)·ÖÇø
Hash(¹þÏ£)·ÖÇø
List(Áбí)·ÖÇø
ÒÔ¼°×éºÏ·ÖÇø£ºRange-Hash,Range-List¡£
¶ÔÓÚ±í¶øÑÔ(³£¹æÒâÒåÉϵĶÑ×éÖ¯±í)£¬ÉÏÊö·ÖÇøÐÎʽ¶¼¿ÉÒÔÓ¦ÓÃ(ÉõÖÁ¿ÉÒÔ¶Ôij¸ö ......
£¨1£©ÒÔSYSÉí·ÝµÇ½
conn sys/sysem_pwd as sysdba;
£¨2£©´´½¨amlyÓû§
create user amly identified by 9imly;
£¨3£©´´½¨±í¿Õ¼ä
create tablespace ts_amly datafile 'd:\amlyfile\test.dbf' size 100M;
£¨4£©½«±í¿Õ¼ä·ÖÅä¸øÓû§
alter user amly default tablespace ts_amly;
£¨5£©¸øÓû§ÊÚȨ
grant create sess ......