oracle internal number Êý¾ÝÀàÐÍ´æ´¢
ת×Ô£ºhttp://ilonng.blog.sohu.com/130335741.html
oracleµÄnumberÀàÐÍÊÇÒ»ÖÖÈí¼þÊý¾ÝÀàÐÍ£¬ÔÚoracleÈí¼þ±¾ÉíÖÐʵÏÖ£¬ÎÒÃDz»ÄÜʹÓùÌÓÐÓ²¼þ²Ù×÷½«Á½¸önumberÀàÐÍÏà¼Ó£¬ÕâÒªÔÚÈí¼þÖÐÄ£Ä⣬number ÀàÐ͵ÄÄÚ²¿±àÂëÊÇ2¡£oracle´æ´¢Ò»¸öÊýµÄʱ£¬»á´æ´¢¾¡¿ÉÄÜÉÙµÄÄÚÈÝÀ´±íʾÕâ¸öÊý£¬Îª´ËËü»á´æ´¢ÓÐЧÊý×Ö¡¢ÓÃÓÚÖ¸¶¨Ð¡ÊýµãλÖõÄÒ»¸öÖ¸Êý£¬ÒÔ¼°ÓйØÊýÖµ·ûºÅµÄÐÅÏ¢£¨Õý»òÕ߸º£©¡£Òò´Ë£¬ÊýÖаüº¬µÄÓÐЧÊý×ÖÔ½¶à£¬Õ¼ÓõĴ洢¿Õ¼ä¾ÍÔ½´ó¡£
oracleµ×²ã´æ´¢numberÀàÐͲÉÓÃÏÂÃæµÄÕâÖÖÐÎʽ£º
sign bit/exponent,digit1,digit2,…,digit20
sign bit/exponentΪ±ê־룬digit1...digit20ΪÊýֵ룬¿É¼ûnumber×î¶àÕ¼¾Ý21¸ö×Ö½Ú¡£
Ò»¸öÊýÊÇ¿ÉÒÔʹÓÿÆѧ¼ÆËã·¨À´ÕýÈ·±íʾµÄ£¬Èç10=1*power(10,1)£¬-101=-1.01*power(10,2)£¬0.2=2*power(10,-1)¡£oracle¾ÍÊÇͨ¹ýÕâ¸öÔÀíÀ´´æ´¢Êý¾Ý£¬Ëü½«ÈκÎÒ»¸öËü¿ÉÒÔ±íʾµÄÊý¾Ýת»»³ÉÒ»¸ö·ûºÅλ¡¢Ò»¸öÖ¸Êý¡¢Ò»¸öÓÐЧÊýÀ´´æ´¢£¬¾Ù¸öÀý×Ó£¬123ÔÚoracleÖÐÊÇÕâÑùÀ´´æ´¢µÄ£¬+(1.23*power(100,1))£¬¼´ËüÊÇÒÔ100Ϊ¿Æѧ¼ÆËã·¨µÄÖ¸Êý»ùÊý£¬ÎªÊ²Ã´ÕâÑùÒÔ¼°ÔõôÀ´´æ´¢£¬Çë¿´ÏÂÃæ¡£
´æ´¢Êý¾ÝµÄµÚÒ»¸ö×Ö½ÚÊDZê־룬Õâ¸ö×Ö½ÚÀïÃæ»á·´Ó³³öÕâ¸öÊý×ֵķûºÅλÒÔ¼°±íʾÕâ¸öÊý×ÖµÄÖ¸ÊýµÄ·ûºÅλ¡£²ÉÓÿÆѧ¼ÆÊý·¨£¬ÈκÎÒ»¸öʵÊýS¶¼¿ÉÒÔÃèÊöΪA.B×power(100,N)£¬A±íʾÕûÊý²¿·Ö£¨¿ÉÄÜÊÇÕýÊý£¬¿ÉÄÜÊǸºÊý£©£¬B±íʾСÊý²¿·Ö£¬¶øN±íʾ10µÄÖ¸Êý²¿·Ö¡£ÄÇôoracleÔõôÓÃÒ»¸ö×Ö½ÚÀ´±íʾÕâЩÐÅÏ¢ÄØ£¿
1¡¢ÄÃÕâ¸ö×Ö½ÚµÄ×î¸ßλÀ´±íʾÕý¸º£¬0±íʾ¸ºÊý£¬1±íʾÕýÊý¡£Óɴ˿ɼû£¬Õâ¸öÊý×ÖÔÚ128Õâ¸ö²¿·Ö±»Ò»ÇÐΪ2·Ý£¬Èç¹ûÕâ¸öÊý×Ö´óÓÚ128£¬ÄÇôÕâ¸öÊý¾ÍÊÇÕýÊý£¬Èç¹ûÕâ¸öÊý×ÖСÓÚ128£¬ÄÇôÕâ¸öÊý×Ö¾ÍÊǸºÊý£¬Èç¹ûÕâ¸öÊý×ÖµÈÓÚ128£¬ÄÇôÕâ¸öÊý×Ö¾ÍÊÇ0£¬È磺
15:16:24 WATER@ lake>select 1,dump(1) from dual;
1 DUMP(1)
---------- ------------------
1 Typ=2 Len=2: 193,2
ÕâÀïµÄµÚÒ»¸ö×ֽڵıê־λÊÇ193£¬´óÓÚ128£¬¹ÊÆäΪÕýÊý£¬ÁíÍâ¿ÉÒÔ¿´µ½£¬ÕâÀﻹÓиöÆ«ÒÆÁ¿Îª65£¬193=128+65+0¡£
15:16:30 WATER@ lake>select -1,dump(-1) from dual;
-1 DUMP(-1)
---------- -----------------------
&
Ïà¹ØÎĵµ£º
ÔÚ°²×°ÍêOracle 10gÖ®ºó£¬Ïë´ò¿ªsql*plusÀ´Ñ§Ï°£¬È»ºó°´ÕÕÊéÉϵIJ½ÖèÓÃscottÓû§À´Á¬½ÓÊý¾Ý¿â£¬¿ÉÊäÁ˺ü¸´Î¶¼Ìáʾһ¸ö´íÎó¡£
¡¡¡¡error£º the account is locked
¡¡¡¡È»ºóÉÏÍø²éÁËÒ»ÏÂÖ®ºó·¢ÏÖÕâ¸öÓû§±»Ëø¶¨ÁË£¬ÖÁÓÚËüΪʲô±»Ëø¶¨£¬¿ÉÄÜÊÇÏÂÃ漸¸öÔÒò¡£
¡¡¡¡1.³¢ÊÔ¶à´ÎµÇ¼δ³É¹¦.(¿ÉÄÜÃÜÂë²»ÕýÈ·)
¡¡¡¡2.´ËÓû§±»¹ ......
OracleÓû§¡¢È¨ÏÞ¡¢½ÇÉ«¹ÜÀí
Oracle ȨÏÞÉèÖÃ
Ò»¡¢È¨ÏÞ·ÖÀࣺ
ϵͳȨÏÞ£ºÏµÍ³¹æ¶¨Óû§Ê¹ÓÃÊý¾Ý¿âµÄȨÏÞ¡££¨ÏµÍ³È¨ÏÞÊǶÔÓû§¶øÑÔ)¡£
ʵÌåȨÏÞ£ºÄ³ÖÖȨÏÞÓû§¶ÔÆäËüÓû§µÄ±í»òÊÓͼµÄ´æȡȨÏÞ¡££¨ÊÇÕë¶Ô±í»òÊÓͼ¶øÑԵģ©¡£
¶þ¡¢ÏµÍ³È¨ÏÞ¹ÜÀí£º
1¡¢ÏµÍ³È¨ÏÞ·ÖÀࣺ
DBA: ÓµÓÐÈ«²¿ÌØȨ£¬ÊÇϵͳ×î¸ßȨÏÞ£¬Ö»ÓÐDBA²Å¿ÉÒÔ´´ ......
·½Ê½Ò».
Ö´ÐÐÒÔÏÂsqlÓï¾ä´´½¨database link
create database link test_link --Á´½ÓÃû
connect to Óû§Ãû identified by ÃÜÂë
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Êý¾Ý¿â·þÎ ......