{"id":98,"date":"2009-12-17T16:32:00","date_gmt":"2009-12-17T14:32:00","guid":{"rendered":"http:\/\/antynet.pl\/index.php\/2009\/12\/17\/oracle-create\/"},"modified":"2010-08-24T22:35:48","modified_gmt":"2010-08-24T20:35:48","slug":"oracle-create","status":"publish","type":"post","link":"https:\/\/www.antynet.pl\/index.php\/2009\/12\/17\/oracle-create\/","title":{"rendered":"ORACLE CREATE"},"content":{"rendered":"<p><b>create database manualy:<\/b><br \/><b><br \/><\/b><br \/>* create PFILE<br \/>main changes:<br \/>&#8211; db_name<br \/>&#8211; control_files<br \/>&#8211; audit_file_dest<br \/>&#8211; background_dump_dest<br \/>&#8211; user_dump_dest<br \/>&#8211; core_dump_dest<\/p>\n<p>example init[dbname].ora<\/p>\n<div class=\"console\">*.__db_cache_size=939524096<br \/>*.__java_pool_size=16777216<br \/>*.__large_pool_size=16777216<br \/>*.__shared_pool_size=587202560<br \/>*.__streams_pool_size=33554432<br \/>*.control_files='[path]\/control1.ora&#8217;,'[path]\/control2.ora&#8217;,'[path]\/control3.ora&#8217;<br \/>*.audit_file_dest='[path]\/admin\/adump&#8217;<br \/>*.core_dump_dest='[path]\/admin\/cdump&#8217;<br \/>*.user_dump_dest='[path]\/admin\/udump&#8217;<br \/>*.background_dump_dest='[path]\/admin\/bdump&#8217;<br \/>*.compatible=&#8217;10.2.0.1&#8242;<br \/>*.db_block_size=8192<br \/>*.db_domain=&#8221;<br \/>*.db_file_multiblock_read_count=16<br \/>*.db_files=1500<br \/>*.db_name='[dbname]&#8217;<br \/>*.global_names=FALSE<br \/>*.job_queue_processes=10<br \/>*.log_archive_format='[dbname]%t%s%r.arc&#8217;<br \/>*.log_checkpoint_interval=10000<br \/>*.max_dump_file_size=&#8217;10240&#8242;<br \/>*.open_cursors=1000<br \/>*.optimizer_mode=&#8217;CHOOSE&#8217;<br \/>*.pga_aggregate_target=629145600<br \/>*.processes=400<br \/>*.query_rewrite_enabled=&#8217;true&#8217;<br \/>*.remote_login_passwordfile=&#8217;EXCLUSIVE&#8217;<br \/>*.service_names='[dbname]&#8217;<br \/>*.session_max_open_files=40<br \/>*.sga_target=1610612736<br \/>*.shared_pool_reserved_size=0<br \/>*.undo_management=&#8217;AUTO&#8217;<br \/>*.undo_retention=100000<br \/>*.undo_tablespace=&#8217;UNDO_TS&#8217;<\/div>\n<p>* create password file for new database:<br \/>orapwd file=orapw[dbname] password=[pass]<\/p>\n<p>* add new database to listener.ora and tnsnames.ora,<\/p>\n<p>* create dirs for new database file, <\/p>\n<p>* create dirs for trace logs as admin with subdirectories: adump, udump, cdump, bdump,<\/p>\n<p>* run script:<\/p>\n<div class=\"console\">spool crt_db.spool<br \/>startup nomount<br \/>create database [dbname]<br \/>user sys identified by [pass]<br \/>user system identified by [pass]<br \/>maxinstances 5<br \/>maxloghistory 5<br \/>maxlogfiles 10<br \/>maxlogmembers 5<br \/>maxdatafiles 1000<br \/>character set EE8ISO8859P2<br \/>national character set AL16UTF16<br \/>datafile '[path]\/system01.dbf&#8217; size 512M autoextend on next 10M maxsize unlimited<br \/>sysaux datafile '[path]\/sysaux01.dbf&#8217; SIZE 1024M<br \/>logfile group 1 ('[path]\/redo01.log&#8217;) size 100m,<br \/>group 2 ('[path]\/redo02.log&#8217;) size 100m,<br \/>group 3 ('[path]\/redo03.log&#8217;) size 100m<br \/>default temporary tablespace TEMP tempfile '[path]\/temp01.dbf&#8217; size 2048M<br \/>undo tablespace UNDO_TS datafile '[path]\/undotbs01.dbf&#8217; size 3000M autoextend off,<br \/>'[path]\/undotbs02.dbf&#8217; size 512M autoextend on next 10M maxsize unlimited;<br \/>spool off<\/div>\n<p>* run script:<\/p>\n<div class=\"console\">spool catalog.spool<br \/>@$ORACLE_HOME\/rdbms\/admin\/catalog.sql<br \/>spool off<br \/>spool catproc.spool<br \/>@$ORACLE_HOME\/rdbms\/admin\/catproc.sql<br \/>spool off<br \/>spool catrep.spool<br \/>@$ORACLE_HOME\/rdbms\/admin\/catrep.sql<br \/>spool off<br \/>spool initjvm.spool<br \/>@$ORACLE_HOME\/javavm\/install\/initjvm.sql<br \/>spool off<br \/>spool dbmsrand.spool<br \/>@$ORACLE_HOME\/rdbms\/admin\/dbmsrand.sql<br \/>spool off<br \/>spool utlrp.spool<br \/>@$ORACLE_HOME\/rdbms\/admin\/utlrp.sql<br \/>spool off<\/div>\n","protected":false},"excerpt":{"rendered":"<p>create database manualy:* create PFILEmain changes:&#8211; db_name&#8211; control_files&#8211; audit_file_dest&#8211; background_dump_dest&#8211; user_dump_dest&#8211; core_dump_dest example init[dbname].ora *.__db_cache_size=939524096*.__java_pool_size=16777216*.__large_pool_size=16777216*.__shared_pool_size=587202560*.__streams_pool_size=33554432*.control_files='[path]\/control1.ora&#8217;,'[path]\/control2.ora&#8217;,'[path]\/control3.ora&#8217;*.audit_file_dest='[path]\/admin\/adump&#8217;*.core_dump_dest='[path]\/admin\/cdump&#8217;*.user_dump_dest='[path]\/admin\/udump&#8217;*.background_dump_dest='[path]\/admin\/bdump&#8217;*.compatible=&#8217;10.2.0.1&#8242;*.db_block_size=8192*.db_domain=&#8221;*.db_file_multiblock_read_count=16*.db_files=1500*.db_name='[dbname]&#8217;*.global_names=FALSE*.job_queue_processes=10*.log_archive_format='[dbname]%t%s%r.arc&#8217;*.log_checkpoint_interval=10000*.max_dump_file_size=&#8217;10240&#8242;*.open_cursors=1000*.optimizer_mode=&#8217;CHOOSE&#8217;*.pga_aggregate_target=629145600*.processes=400*.query_rewrite_enabled=&#8217;true&#8217;*.remote_login_passwordfile=&#8217;EXCLUSIVE&#8217;*.service_names='[dbname]&#8217;*.session_max_open_files=40*.sga_target=1610612736*.shared_pool_reserved_size=0*.undo_management=&#8217;AUTO&#8217;*.undo_retention=100000*.undo_tablespace=&#8217;UNDO_TS&#8217; * create password file for new database:orapwd file=orapw[dbname] password=[pass] * add new database to listener.ora and tnsnames.ora, * create dirs for new database file, * create dirs for trace logs as admin with subdirectories: adump, udump, cdump, bdump, * run [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[80],"tags":[15],"class_list":["post-98","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-oracle-create"],"_links":{"self":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":1,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":173,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/98\/revisions\/173"}],"wp:attachment":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}