oracle11g 手工艰苦步骤

#create oracle instance parameter
vi initkevin.or
db_name=‘kevin‘
memory_target=0
sga_max_size=5G
sga_target=3G
pga_aggregate_target=1g
processes = 150
audit_file_dest=‘/u01/app/oracle/admin/kevin/adump‘
audit_trail =‘db‘
db_block_size=8192
db_domain=‘‘
db_recovery_file_dest=‘/u01/app/oracle/flash_recovery_area‘
db_recovery_file_dest_size=2G
diagnostic_dest=‘/u01/app/oracle‘
dispatchers=‘(PROTOCOL=TCP) (SERVICE=ORCLXDB)‘
open_cursors=300 
remote_login_passwordfile=‘EXCLUSIVE‘
undo_tablespace=‘UNDOTBS‘
control_files = (‘/u01/app/oracle/oradata/kevin/disk1/controflie01.ctl‘,
‘/u01/app/oracle/oradata/kevin/disk2/controlfile02.ctl‘)
compatible =‘11.2.0‘

#create audit_file directory , db_recovery directory and orther directories
mkdir -p /u01/app/oracle/admin/kevin/adump
mkdir -p /u01/app/oracle/flash_recovry_area
mkdir -p /u01/app/oracle/oradata/kevin/disk1
mkdir -p /u01/app/oracle/oradata/kevin/disk1

#configure oracle user environment value
export ORACLE_SID=kevin

#create oracle password pfile
 orapwd file=orapwdkevin password=oracle entries=3 force=y 
 
 
 
#start nomount oracle database instance

startup nomount pifle=?/dbs/initkevin.ora

SQL> startup nomount pfile=?/dbs/initkevin.ora
ORACLE instance started.

Total System Global Area 5344731136 bytes
Fixed Size                  2262656 bytes
Variable Size            2885683584 bytes
Database Buffers         2449473536 bytes
Redo Buffers                7311360 bytes

#create spfile from pfile
create spfile from pfile;

SQL> 
SQL> create spfile from pfile;

File created.

#create database;

CREATE DATABASE kevin
   USER SYS IDENTIFIED BY oracle
   USER SYSTEM IDENTIFIED BY oracle
   LOGFILE GROUP 1
(‘/u01/app/oracle/oradata/kevin/disk1/redo01a.log‘,‘/u01/app/oracle/oradata/kevin/disk2/redo01b.log‘)
SIZE 100M BLOCKSIZE 512,
  GROUP 2
(‘/u01/app/oracle/oradata/kevin/disk1/redo02a.log‘,‘/u01/app/oracle/oradata/kevin/disk2/redo02b.log‘)
SIZE 100M BLOCKSIZE 512,
  GROUP 3
(‘/u01/app/oracle/oradata/kevin/disk1/redo03a.log‘,‘/u01/app/oracle/oradata/kevin/disk2/redo03b.log‘)
SIZE 100M BLOCKSIZE 512
   MAXLOGFILES 5
   MAXLOGMEMBERS 5
   MAXLOGHISTORY 1
   MAXDATAFILES 100
   CHARACTER SET AL32UTF8
   NATIONAL CHARACTER SET AL16UTF16
   EXTENT MANAGEMENT LOCAL
   DATAFILE ‘/u01/app/oracle/oradata/kevin/disk1/system01.dbf‘ SIZE 325M REUSE
   SYSAUX DATAFILE ‘/u01/app/oracle/oradata/kevin/disk2/sysaux01.dbf‘ SIZE 325M REUSE
   DEFAULT TABLESPACE users
      DATAFILE ‘/u01/app/oracle/oradata/kevin/disk1/users01.dbf‘
      SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
   DEFAULT TEMPORARY TABLESPACE tempts1
      TEMPFILE ‘/u01/app/oracle/oradata/kevin/disk2/temp01.dbf‘
      SIZE 20M REUSE
   UNDO TABLESPACE undotbs
      DATAFILE ‘/u01/app/oracle/oradata/kevin/disk3/undotbs01.dbf‘
      SIZE 200M REUSE AUTOEXTEND ON MAXSIZE 1024m;

#create oracle dictionary information

@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql

@?/sqlplus/admin/pupbld.sql

The database was created successfully

时间: 2024-11-05 21:58:02

oracle11g 手工艰苦步骤的相关文章

Oracle11g安装详细步骤

Oracle11g安装详细步骤,详见附件↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

oracle11g 手工建库步骤

#create oracle instance parameter vi initkevin.or db_name='kevin' memory_target=0 sga_max_size=5G sga_target=3G pga_aggregate_target=1g processes = 150 audit_file_dest='/u01/app/oracle/admin/kevin/adump' audit_trail ='db' db_block_size=8192 db_domain

Oracle11G完全卸载步骤

完全卸载oracle11g步骤: 1. 开始->设置->控制面板->管理工具->服务,停止所有Oracle服务. 2. 开始->程序->Oracle_OraDB11g_Home1->OracleInstallation Products->Universal Installer,单击“卸载产品”-“全部展开”,选中除“OraDb11g_home1”外的全部目录,删除. 5.运行regedit,选择HKEY_LOCAL_MACHINE\SOFTWARE\ORA

oracle11g手工建库

1.设置环境变量 [[email protected]~]$ vi .bash_profile exportPATH exportEDITOR=vi exportORACLE_SID=orcl exportORACLE_BASE=/u01/app/oracle exportORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 exportnls_date_format="yyyy-mm-dd hh24:mi:ss" exportPATH=/u

mysql手工注入步骤

1.一般用 '  "  ) 等符号来闭合,再用%23(即#)来注释后面语句. 2.查找数据库,先用order by n猜字段,再用union select 1,2,3 ...n%23来查询. union select 1,2,database()%23 3.利用information_schema库中tables这张表,查mysql数据库中的第一个表. select table_name from information_schema.tables where table_schema='mys

Oracle11g安装详细步骤【有图在里边哦】

(1)作为中大型的数据库Oracle越来体现出其优越性,但是我们在安装的时候会遇到各种问题,下边给大家分享一下安装的过程! 由于安装的过程截图很多,所以传到云盘,大家只需免费下载,参照过程即可! 下载地址:http://yunpan.cn/cAUEgv9JaCdhc  提取码 bcbf 希望大家点赞哦

Aix Oracle11g裸设备建库

11G RAW ON AIX 查看物理内存大小 /usr/sbin/lsattr -E -l sys0 -a realmem Available RAM Swap Space Required Between 1 GB and 2 GB 1.5 times the size of the RAM Between 2 GB and 16 GB Equal to the size of the RAM More than 16 GB 16 GB 查看paging space /usr/sbin-/l

手工热备份

手工热备份步骤: 开库备份只用于归档模式,而且热备之前先执行命令: 热备步骤: alter database/tablespace  XXX begin backup 这句话会导致锁块头,scn号不会变化. cp files alter database/tablespace XXX end backup

oracle11g导入dmp文件(根据用户)

已知:用户名.密码.dmp文件 .(指即将导入dmp文件的用户名和密码) 需求:将该dmp文件导入本地oracle11g中. 步骤: 1.将该dmp文件拷贝到G:\oracle11g\admin\orcl\dpdump目录下:(这里是我自己的oracle11g安装目录G:\oracle11g) 2.cmd打开dos窗口: 3.键入命令:impdp 用户名/密码 dumpfile=文件名.dmp: