[ The imperialist Japanese military must officially acknowledge and apologize for the coercion of young women into sexual slaves. / êꪤҳàõªòàõªÎÒ¿Ö˪˪·ª¿ð¨ÏÐñ«ëùìíÜâÏÚªÎ?ð¤àõªòÍëãÒªËìãªá¡¢Þóñªª·ªÊª±ªìªÐªÊªéªÊª¤. ]

»ç¿ëÀÚ

ID:
PW:

INDEX
01.°Ô½ÃÆÇ
°Ô½ÃÆÇ [72]
02.File Book
File ÀÚ·á½Ç [96]
Site Link [14]
°³ÀÎÆú´õ [200]
03.Field Book
Altibase [19]
Tibero [31]
MS-SQL [32]
MySQL [47]
DB2 [79]
ORACLE [3121]
PSQL [139]
CUBRID [5]
±âŸÁ¤º¸ [178]
¿î¿µÃ¼Á¦ [618]
04.Q/A Book
Q/A [53]
05.¹æ¸í·Ï
¹æ¸í·Ï [54]
·¹º§¾÷ [37]
±¸ÀÎ/±¸Á÷ [2]

±â³äÀÏ
Search
LINK
+ °¡Á· Hompy
+ DNSEver
IOTN :: Field Book :: ORACLE

 È¸¿ø°¡ÀÔ

dbms_random »ç¿ë¿¹
ÃÖ±æÈ£ [LIST]   2010-04-12 15:09:44, Á¶È¸ : 81,336

select * from tab order by dbms_random.value

-- EXEC DBMS_RANDOM.INITIALIZE (12345);

drop table info purge ;

create table info (user_cd int, id varchar2(15));

insert into info value
select rownum, round(dbms_random.value(60,90))
||trim(to_char(dbms_random.value(1,12),'09'))
||trim(to_char(dbms_random.value(1,31),'09'))
||'-'
||round(dbms_random.value(1,2))
||round(dbms_random.value(100001,999999)) id
from dual
connect by level < 200001;

commit;

-- sample
    ROWNUM ID
---------- ---------------
         1 830404-1136385
         2 790411-2591577
         3 780428-1110061
         4 811205-1954727
         5 721016-2808174
         6 851005-2557025
         7 740610-2416417
         8 730213-2778423
         9 810502-1141398
        10 820712-2589165
        11 761231-1393948

-- ±âŸ

select rownum, dbms_random.value(1,2), RPAD('x',(rownum/10),'x')
from dual
connect by level < 100000
18.97.9.172


ÃÖ±æÈ£
ÆÐÅ°Áö : DBMS_RANDOM
ÆÐÅ°Áö»ý¼º: /rdbms/admin/dbmsrand.sql

DBMS_RANDOM ÆÐÅ°Áö³» ÇÔ¼ö

RANDOM : ·£´ýÇÑ ¼ýÀÚ »ý¼º

VALUE : ·£´ýÇÑ ¼ýÀÚ »ý¼º(ÁöÁ¤ÇÑ ¹üÀ§¿¡¼­, µðÆúÆ®: 0-1)

STRING : ·£´ýÇÑ ¹®ÀÚ¿­ »ý¼º(¹®ÀÚ¿­ÀÇ ±¸¼ºÀº ù¹ø° Àμö°ªÀ¸·Î ÁöÁ¤.)
ù¹ø° Àμö°ª
U - ´ë¹®ÀÚ
L - ¼Ò¹®ÀÚ
A - Alphanumeric
X - Alphanumeric (´ë¹®ÀÚ·Î µÈ)
P - Ãâ·Â°¡´ÉÇÑ ¹®Àڷθ¸
µÎ¹ø° Àμö°ª - ¹®ÀÚ¿­±æÀÌ ÁöÁ¤

INITIALIZE : seed¼ýÀÚ¸¦ ÅëÇÑ ÆÐÅ°ÁöÀÇ ÃʱâÈ­

SEED : seed¼ýÀÚ¸¦ º¯°æ

TERMINATE : Á¾·á

STRING ÇÔ¼ö¿¡¼­ A, XÀÇ °æ¿ì ¾ËÆÄ´º¸Þ¸¯À¸·Î »ý¼ºµÈ´Ù°í ÇßÁö¸¸,
¿©·¯¹ø Å×½ºÆ®ÇØ º¸¾ÒÁö¸¸ ¼ýÀÚ°¡ Æ÷ÇÔµÇ¾î »ý¼ºµÇ´Â °æ¿ì´Â ¾ø¾ú´Ù.
½Å·ÚÇÏÁö ¾Ê´Â °ÍÀÌ ÁÁ°Ú´Ù.

¿¹
SQL> col random format 999999999999999999999
SQL> select dbms_random.random from dual; ·£´ýÇÑ ¼ýÀÚ Ãâ·Â(¾ç¼ö/À½¼ö)

RANDOM
----------------------
712490986

SQL> /

RANDOM
----------------------
-265131627

SQL> select dbms_random.value from dual; ·£´ýÇÑ ¼ýÀÚ Ãâ·Â(0~1»çÀÌ)

VALUE
----------
.479131147

SQL> select dbms_random.value(1,1000) random from dual; 1~1000»çÀÌÀÇ ¼ýÀÚ

RANDOM
----------------------
727

SQL> select dbms_random.value(100000000000, 999999999999) random from dual; À§¿Í ¸¶Âù°¡Áö

RANDOM
----------------------
314598161006

SQL> set linesize 50
SQL> select dbms_random.string('U', 20) str from dual; ´ë¹®ÀÚ·Î µÈ ·£´ýÇÑ ¹®ÀÚ¿­

STR
--------------------------------------------------
MAFMGVJVTUTCYJMCVJOP

SQL> select dbms_random.string('L', 20) str from dual; ¼Ò¹®ÀÚ·Î µÈ ·£´ýÇÑ ¹®ÀÚ¿­

STR
--------------------------------------------------
ntpmvektqqgytitlmabi

SQL> select dbms_random.string('A', 20) str from dual; ´ë/¼Ò¹®ÀÚ·Î µÈ ·£´ýÇÑ ¾ËÆÄ´º¸Þ¸¯(¹®ÀÚ/¼ýÀÚ)

STR
--------------------------------------------------
jhsVWesqaKAJbKuPJeLu

SQL> select dbms_random.string('X', 20) str from dual; ´ë¹®ÀÚ·Î µÈ ·£´ýÇÑ ¾ËÆÄ´º¸Þ¸¯(¹®ÀÚ/¼ýÀÚ)

STR
--------------------------------------------------
GMRG5IJFEIEI0E0YCG9C

SQL> select dbms_random.string('P', 20) str from dual;

STR
--------------------------------------------------
}t.OY)Sh6AiEq4L>=-K+

SQL>
http://duraboys.tistory.com/entry/·£´ýRandomÇÑ-¼ýÀÚ¹®ÀÚ-»ý¼ºÇϱâ-1
2010-09-12
06:04:26



  LIST

Á¦¸ñ ÀÛ¼ºÀÚ ÀÛ¼ºÀÏ Á¶È¸
Troubleshoot  ORA-03137: TTC    ÃÖ±æÈ£ 2018/04/24 1007064
WebLogic  weblogic cache    ÃÖ±æÈ£ 2018/02/28 238085
WebLogic  weblogic cluster session share [ ¼¼¼Ç °øÀ¯ login.jsp login chk, weblogic.management.ManagementException: [Deployer:149188] ]    ÃÖ±æÈ£ 2018/03/03 124650
Troubleshoot  IMP-00003 ORA-32603: invalid FREEPOOLS LOB storage option value [ move lob table, lob index ]    ÃÖ±æÈ£ 2013/05/26 120280
Troubleshoot  proc, windows, vc 2003 , pcmake , Files\MicrosoftÀº(´Â) ¿¹»óµÇÁö ¾Ê¾Ò½À´Ï´Ù    ÃÖ±æÈ£ 2006/10/02 100315
Troubleshoot  ORA-00600: internal error code, arguments: [kcbzib_kcrsds_1]    ÃÖ±æÈ£ 2021/09/23 99124
Troubleshoot  dblink ORA-02068 ORA-03113 ORA-02080 [ ALTER SESSION CLOSE DATABASE LINK RDBNM; ]  [4]  ÃÖ±æÈ£ 2010/07/10 99116
WebLogic   WEB-INF/lib ¿ì¼± Àû¿ë, index-directory-enabled À妽º µð·ºÅ丮    ÃÖ±æÈ£ 2018/02/27 97360
WebLogic  java -jar fmw_12.2.1.3.0_wls.jar The OpenJDK JVM is not supported on this platform.    ÃÖ±æÈ£ 2018/02/06 86673
Troubleshoot  TRIGGER,Function ORA-02069 ORA-06512 ORA-04088 ORA-02070    ÃÖ±æÈ£ 2008/12/19 86575
Script  session monitor [ dbms_xplan sql binds ]  [2]  ÃÖ±æÈ£ 2010/06/30 85451
Troubleshoot  ORA-03297 Resizing Empty Datafile    ÃÖ±æÈ£ 2009/08/11 84542
Admin  dd copy datafile raw device , filesystem  [4]  ÃÖ±æÈ£ 2009/09/07 81869
SQL,PL*SQL  dbms_random »ç¿ë¿¹  [1]  ÃÖ±æÈ£ 2010/04/12 81336
Troubleshoot  ODBC {Microsoft ODBC for Oracle}, ORA-12154, ODBC NA000 IM006 01000  [1]  ÃÖ±æÈ£ 2008/01/04 77739
Troubleshoot  ORA-12537 , <unknown connect data> * 12537  [2]  ÃÖ±æÈ£ 2009/11/21 68109
Troubleshoot  ALTER SESSION CLOSE DATABASE LINK    ÃÖ±æÈ£ 2010/07/11 67953
Admin  ORACLE°ú MSSQL°£ÀÇ DBLINK ¹æ¹ý    ÃÖ±æÈ£ 2008/09/19 65405
Troubleshoot  ld: 0711-224 WARNING: Duplicate symbol: p_xargc    ÃÖ±æÈ£ 2010/06/08 65376
Tool  RAC jdbc connection test [ thin java test.java sample ]  [3]  ÃÖ±æÈ£ 2010/06/14 61965

    ¸ñ·Ïº¸±â   ´ÙÀ½ÆäÀÌÁö 1 [2][3][4][5][6][7][8][9][10]..[156]   [´ÙÀ½ 10°³]
       

Copyright 1999-2024 Zeroboard / skin by ÃÖ±æÈ£(gilho.kr@gmail.com)
ÃÖ±Ù ´ñ±Û
2021/06/30
À©µµ¿ì ¼­¹ö¿¡¼­ sqlplus .... ORA-...
by ÃÖ±æÈ£
2021/06/30
ORA-28500: connection from O...
by ÃÖ±æÈ£
2019/05/02
pkg È®ÀÎ SELECT * FROM AL...
by ÃÖ±æÈ£
ÃÖ±Ù °Ô½Ã¹°
11/21
[PSQL]
CentOS 5 ¼³Ä¡ °¡´É psql 11.22 ¼³Ä¡.
by ÃÖ±æÈ£
10/28
[PSQL]
ERROR: permission denied: "RI....
by ÃÖ±æÈ£
10/25
[¿î¿µÃ¼Á¦]
yum install / "Could not resol....
by ÃÖ±æÈ£