dbca 建庫、配置監聽、匯入資料(CentOS5.6+Oracle10G),dbcaoracle10g

來源:互聯網
上載者:User

dbca 建庫、配置監聽、匯入資料(CentOS5.6+Oracle10G),dbcaoracle10g

dbca 建庫、配置監聽、匯入資料(CentOS5.6+Oracle10G)

********************************************************************************

*目標:建庫、配置監聽、建立相關資料表空間、匯入資料

*步驟:

* 1、dbca建庫

* 2、圖形化netca配置監聽

* 3、配置開機啟動執行個體

* 4、建立相關資料表空間

* 5、匯入相關資料

*******************************************************************************
1、dbca 建庫

--使用X-manager軟體完成dbca建庫





--輸入資料庫執行個體名














2 、圖形化 netca 配置監聽











[oracle@hyl ~]$ lsnrctlstatus    --查看監聽狀態

LSNRCTLfor Linux: Version 10.2.0.1.0 - Production on 19-JUL-2014 23:39:38

 

Copyright(c) 1991, 2005, Oracle.  All rightsreserved.

 

Connectingto (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hyl)(PORT=1521)))

STATUSof the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version10.2.0.1.0 - Production

StartDate                19-JUL-2014 23:38:32

Uptime                    0 days 0 hr. 1 min. 5 sec

TraceLevel               off

Security                  ON: Local OS Authentication

SNMP                      OFF

ListenerParameter File  /home/u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

ListenerLog File        /home/u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

ListeningEndpoints Summary...

 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hyl)(PORT=1521)))

 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))

ServicesSummary...

Service"PLSExtProc" has 1 instance(s).

  Instance "PLSExtProc", statusUNKNOWN, has 1 handler(s) for this service...

Service"test" has 1 instance(s).

  Instance "test", status READY, has1 handler(s) for this service...

Service"testXDB" has 1 instance(s).

  Instance "test", status READY, has1 handler(s) for this service...

Service"test_XPT" has 1 instance(s).

  Instance "test", status READY, has1 handler(s) for this service...

Thecommand completed successfully

 

[oracle@hyl ~]$ exportORACLE_SID=test

[oracle@hyl ~]$ sqlplus '/assysdba'

SQL*Plus: Release 10.2.0.1.0 - Productionon Sat Jul 19 23:43:04 2014

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g Enterprise EditionRelease 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Miningoptions

SQL> selectstatus,instance_name from v$instance;

STATUS      INSTANCE_NAME

------------ ----------------

OPEN        test

3 、配置開機啟動執行個體

[root@hyl ~]# vi/etc/rc.d/rc.local

--添加開機啟動執行個體、監聽語句

#!/bin/sh

#

#This script will be executed *after* all the other init scripts.

#You can put your own initialization stuff in here if you don't

#want to do the full Sys V style init stuff.

     

touch/var/lock/subsys/local

su- oracle -c "/home/u01/app/oracle/product/10.2.0/db_1/bin/dbstartstart"

su- oracle -c "/home/u01/app/oracle/product/10.2.0/db_1/bin/lsnrctlstart"

~

~

~

[root@hyl ~]# vi /etc/oratab   --修改開機啟動,將值由N設為Y

test:/home/u01/app/oracle/product/10.2.0/db_1:Y

 

4 、建立相關資料表空間

此處生產環境結構,代碼不做公開,此文旨在介紹過程。

5 、匯入資料

[oracle@hyl downloads]$ impfile=test.dmp  fromuser=test   touser=test   ignore=y;

Import: Release 10.2.0.1.0 - Production onSun Jul 20 00:44:57 2014

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Username: hyl

Password: hyl


--至此,由dbca建庫到匯入實驗資料流程已經介紹完畢。


***********************************************聲明************************************************ 

原創作品,出自 “深藍的blog” 部落格,歡迎轉載,轉載時請務必註明出處(http://blog.csdn.net/huangyanlong)。

表述有錯誤之處,請您留言,不勝感激。

提醒:點擊目錄,更有助於您的查看。

*****************************************************************************************************

























CentOS64安裝oracle10G完成後執行dbca出現錯誤問怎解決

像是有些oralce需要的路徑沒有匯出。
可按照安裝說明文檔檢查一下。
 
oracle linux 56 版本安裝 oracle10g 需要更改什系統配置(如 使用者 ,安裝目錄,核心等)

修改/etc/sysctl.conf,加入以下內容:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
*
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
修改/etc/security/limits.conf,加入如下內容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
修改~oracle/.bash_profile,加入如下內容:
export PATH
unset USERNAME
export ORACLE_OWNER=oracle
export ORACLE_HOME= /home/oracle/product/10.1.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_BASE= /home/oracle/product/10.1.0
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip:$ORACLE_HOME/jlib:$ORACLE_HOME/network/jlib:$ORACLE_HOME/JRE
export LD_ASSUME_KERNEL=2.4.1
export PATH=$PATH:$ORACLE_HOME/bin:=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
umask 022
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.