oracle 11g XE ã§ãã£ã©ã¯ã¿ã»ãããå¤æ´ããæã®ã¡ã¢
Oracleã使ã£ãã·ã¹ãã ã®æ¹ä¿®ã®ä»äºã§ãµã¼ãã¼ã«ç¡åçã®Oracle 11g XEãã¤ã³ã¹ãã¼ã«ãã¦ã
å
æ¹ããæä¾ããããã³ããã¡ã¤ã«ãã¤ã³ãã¼ãããã¨ããã
ãORA-12899: å"XX"ã®å¤ã大ãããã¾ã(å®é: XXãæ大: XX)ãã¨ãã£ãã¨ã©ã¼ãé »çºãã¦ãã¾ãã¾ããã
ã¤ã³ã¹ãã¼ã«ããXEã®ãã¼ã¿ãã¼ã¹ãã£ã©ã¯ã¿ã»ãããUTF8ã ã£ãã®ã«å
ã¯SJISã§ãããã¨ãåå ã§ããã
ãã¼ã¿ãã¼ã¹ãã£ã©ã¯ã¿ã»ããã®å¤æ´ãªãã¦ã³ãã³ãï¼çºã ããã¨æã£ã¦ãããããã大å¤ã§ããã
ここãåèã«ï¼ã¨ãããã»ã¼ãã®ã¾ã¾ï¼ä½æ¥ããå
容ãåå¿ã®ããæ¸ãçãã¦ãããã¨ã«ãã¾ãã
èªåã®ç°å¢ã«åããã¦è¥å¹²ï¼ãã£ã¬ã¯ããªåçï¼å¤æ´ãã¦ãã¾ãã
â ã¤ã³ã¹ã¿ã³ã¹ã®åé¤
>cleanup.bat (ãµã¼ãã¹ã®åæ¢ãã¤ã³ã¹ã¿ã³ã¹ã®åé¤ããã¦ããã¾ã)
â ä¸è¦ãªãã¡ã¤ã«ã®åé¤
C:\oraclexe\app\oracle\product\11.2.0\server\dbs\* C:\oraclexe\app\oracle\product\11.2.0\server\database\*(oradba.exe以å¤) C:\oraclexe\app\oracle\oradata\XE\*
â ã¤ã³ã¹ã¿ã³ã¹ã®ä½æ
ã»ä»¥ä¸ãC:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.oraã¨ãã¦ä¿å
java_pool_size=4194304 large_pool_size=4194304 shared_pool_size=62914560 streams_pool_size=0 audit_file_dest='C:\oraclexe\app\oracle\admin\XE\adump' compatible='11.2.0.1.0' control_files='C:\oraclexe\app\oracle\oradata\XE\control.dbf' core_dump_dest='C:\oraclexe\app\oracle\admin\XE\cdump' db_name='XE' dispatchers='(PROTOCOL=TCP) (SERVICE=XEXDB)' job_queue_processes=2 open_cursors=300 os_authent_prefix='' pga_aggregate_target=40M remote_login_passwordfile='EXCLUSIVE' sessions=20 sga_target=140M shared_servers=1 undo_management='AUTO' undo_tablespace='UNDO'
ã»oradimã¦ã¼ãã£ãªãã£ãå®è¡ããã¤ã³ã¹ã¿ã³ã¹ãä½æ
oradim -NEW -SID XE -SYSPWD manager -PFILE C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora
â ã¤ã³ã¹ã¿ã³ã¹èµ·å
>set ORACLE_SID=XE >sqlplus / as sysdba (ã¢ã¤ãã«ã»ã¤ã³ã¹ã¿ã³ã¹ã«æ¥ç¶ãã¾ãã) SQL>startup nomount pfile=C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora (ORACLEã¤ã³ã¹ã¿ã³ã¹ãèµ·åãã¾ãã)
ã»ä»¥ä¸ã®å 容ããã¡ã¤ã«C:\oraclexe\app\oracle\product\11.2.0\server\database\createDB.oraã«ä¿å
create database XE logfile group 1 ('C:\oraclexe\app\oracle\oradata\XE\redo1.dbf') size 32M, group 2 ('C:\oraclexe\app\oracle\oradata\XE\redo2.dbf') size 32M, group 3 ('C:\oraclexe\app\oracle\oradata\XE\redo3.dbf') size 32M character set JA16SJIS national character set utf8 datafile 'C:\oraclexe\app\oracle\oradata\XE\system.dbf' size 240M autoextend on next 16M maxsize unlimited extent management local sysaux datafile 'C:\oraclexe\app\oracle\oradata\XE\sysaux.dbf' size 48M autoextend on next 8M maxsize unlimited undo tablespace undo datafile 'C:\oraclexe\app\oracle\oradata\XE\undo.dbf' size 48M autoextend on default temporary tablespace temp tempfile 'C:\oraclexe\app\oracle\oradata\XE\temp.dbf' size 8M autoextend on;
â ãã¼ã¿ãã¼ã¹ãä½æ(sqlpluså )
SQL>@C:\oraclexe\app\oracle\product\11.2.0\server\database\createDB.ora (ãã¼ã¿ãã¼ã¹ãä½æããã¾ãã)
ã»ã«ã¿ãã°å®ç¾©ã¹ã¯ãªããã®å®è¡
SQL>@C:\oraclexe\app\oracle\product\11.2.0\server\RDBMS\ADMIN\catalog.sql
ã»PL/SQLããã±ã¼ã¸ä½æã¹ã¯ãªããã®å®è¡(ããªãæéããããã¾ã)
SQL>@C:\oraclexe\app\oracle\product\11.2.0\server\RDBMS\ADMIN\catproc.sql
ã»SYSTEMã§æ¥ç¶ããPRODUCT_USER_PROFILE表ã«å¯¾ããSELECT権éãPUBLICã«ä»ä¸
SQL>connect system/manager SQL>@C:\oraclexe\app\oracle\product\11.2.0\server\sqlplus\admin\pupbld.sql
â 確èª
SELECT PARAMETER, VALUE FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER LIKE '%CHARACTERSET%';
以ä¸ã§ããã
â 追è¨ï¼ã¯ã©ã¤ã¢ã³ãã®æåã³ã¼ã
ã·ã¹ãã ç°å¢å¤æ°ãNLS_LANGãã®å¤ã¨ãã¦ãJAPANESE_JAPAN.JA16SJISTILDEãã¨ãã¾ãã