목록DataBase/Oracle (4)
khstar
#################################################### #### .bash_profile 환경변수 export ORACLE_BASE=/home/oracle export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1 export ORACLE_SID=ora10 export LD_LIBRARY_PATH=$ORACLE_HOME/lib #export LD_ASSUME_KERNEL=2.4.19 export PATH=$PATH:$ORACLE_HOME/bin export NLS_LANG=KOREAN_KOREA.KO16KSC5601 #한글 export NLS_LANG=KOREAN_KOREA.KO16MSWIN949 #한글(추천:지원캐릭터..
오라클 유저생성 1. 오라클 유저는 DBA만이 생성할 수 있다. DBA로 접속한다 manager login - sqlplus system/manager - sqlplus "/as sysdba" 2. create tablespace - CREATE TABLESPACE test_ts DATAFILE '/export/oracle10/oradata/ORA10g/test_ts.dbf' SIZE 10M 3. create user - CREATE USER test IDENTIFIED BY password DEFAULT TABLESPACE test_ts TEMPORARY TABLESPACE TEMP QUOTA 500K ON test_ts 4. user permission - GRANT CONNECT TO test - ..
SELECT MONTHS_BETWEEN ('20080328','20080229') FROM ALL_RULES; SELECT MONTHS_BETWEEN ('20080329','20080229') FROM ALL_RULES; SELECT MONTHS_BETWEEN ('20080330','20080229') FROM ALL_RULES; SELECT MONTHS_BETWEEN ('20080331','20080229') FROM ALL_RULES; 위의 네가지를 돌리면 상당히 웃기다. 일단 결과부터 보자 .967741935483870967741935483870967741936 1 1.03225806451612903225806451612903225806 1 이것이 정상일까 버그일까?? 왜 30일은 1이상이고 31일..