Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Note: Before run pfile , we must create datafile folder & logfile folder physically in D: drive or others location. By default file size 100mb.
B. Create New Database by OMF 1. First create pw & Insatance 2. Edit in Pfile: a. Give comment or inactive the control file like:# control_files=("D:\oracle\product\10.2.0\oradata\orcl\control01.ctl",
"D:\oracle\product\10.2.0\oradata\orcl\control02.ctl", "D:\oracle\product\10.2.0\oradata\orcl\control03.ctl") b. Also give Comment or inactive the Undo tablespace file like:# undo_tablespace=UNDOTBS1 c. And adding two command for : 1. Datafile: db_create_file_dest= D:\datafile 2. Logfile & Controlfile: db_create_online_log_dest_1= D:\logfile .. db_create_online_log_dest_5= D:\logfile
Note: Before run pfile , we must create datafile folder & logfile folder physically in D: drive or others
location. By default file size 100mb.
Database created.
//------------------------------------------------------------------------------Creating tablespace 1. First run catalog.sql & catproc.sql before creating tablespace:
C:\>@D:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\catalog.sql C:\>@D:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\catproc.sql 2. Create table space: create tablespace iiuctablespace datafile 'D:\oracle\product\10.2.0\oradata\iiuc\helal.dbf' size 20M, 'D:\oracle\product\10.2.0\oradata\iiuc\uddin.dbf' size 20M autoextend on next 10k maxsize unlimited logging online permanent; for check: select name from v$tablespace;
User Create & apply profile create user helal identified by helal_pass create user uddin identified by uddin_pass default tablespace iiuc_tab default tablespace iiuc_tab temporary tablespace temp temporary tablespace temp profile pro_iiuc profile pro_iiuc password expire password expire account unlock; account unlock;
---------------alter user--------alter user helal account unlock; grant resource connect/create session to helal; ----------------------------if resource_limit is being false then alter system set resource_limit=true;
//-------------------------------------------------------------------------------Creating Control
1.First change physical location of control file if admin want ,like copy a control file & paste it same/different location, then rename file.. 2.Control file work in mount mode,so to create control file well need to go nomount condition first startup force nomount 3.Now create control file: alter system set control_files='E:\oracle\product\10.2.0\oradata\iiuc\control01.ctl', 'D:\oracle\product\10.2.0\oradata\iiuc\control02.ctl', 'D:\oracle\product\10.2.0\oradata\iiuc\control03.ctl', 'D:\oracle\product\10.2.0\oradata\iiuc\control04.ctl', 'D:\control05.ctl' scope=spfile; .. Systm altered. 4.check the control file: Before check ,we must go to the mount condition startup force mount Now for check: select name from v$controlfile; //-------------------------------------------------------------------------------------- Redologfile -------------------------Adding----------------------alter database add logfile group1'D:\oracle\product\10.2.0\oradata\iiucl\redo5.log' size 10m, 'D:\oracle\product\10.2.0\oradata\iiuc\redo6.log' size 10m ---------------------Rename & Move-------------select group#,member,status from v$logfile; 1.Remane & move: alter database rename file 'D:\oracle\product\10.2.0\oradata\iiuc\redo2.log' to D:\oracle\product\10.2.0\oradata\iiuc\redoiiuc.log'
//---------------------------------------------------------Archive file setting //----------------------------------------------------------------------File Creation //-----------------------------------------------------------Oracle Net Configuration //-----------------------------------------------------------Shared Server