Oracle 10g 手工建立一個最簡單的資料庫
[root@blliu ~]# su - oracle
[oracle@blliu ~]$ cd $ORACLE_HOME/dbs
[oracle@blliu dbs]$ touch initorcl.ora
[oracle@blliu dbs]$ vi initorcl.ora //加入db_name=orcl
[oracle@blliu dbs]$ export ORACLE_SID=orcl
[oracle@blliu dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Mon Jan 25 19:03:23 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 2082496 bytes
Variable Size 113248576 bytes
Database Buffers 50331648 bytes
Redo Buffers 6303744 bytes
SQL> create database orcl
2 datafile
3 '/u01/app/oracle/orcl/system01.dbf' size 300m autoextend on next 10m
4 sysaux datafile
5 '/u01/app/oracle/orcl/sysaux01.dbf' size 300m autoextend on next 10m
6 logfile
7 group 1 ('/u01/app/oracle/orcl/redo101.log') size 10m,
8 group 2 ('/u01/app/oracle/orcl/redo201.log') size 10m
9 character set zhs16gbk;
Database created.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 2082496 bytes
Variable Size 113248576 bytes
Database Buffers 50331648 bytes
Redo Buffers 6303744 bytes
Database mounted.
Database opened.
SQL> @?/rdbms/admin/catalog.sql //建立資料庫的基表,檢視,同義詞等
PL/SQL procedure successfully completed.
SQL> @?/rdbms/admin/catproc.sql //建立資料庫的程式包,過程,函式,同義詞等
PL/SQL procedure successfully completed.
SQL>
SQL> SET SERVEROUTPUT OFF
SQL> connect system/manager
Connected.
SQL> @?/sqlplus/admin/pupbld.sql //建立使用SQLPLUS工具連線所需的檢視,同義詞等
SQL>
SQL> -- End of pupbld.sql
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@blliu dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Mon Jan 25 19:24:00 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create table test (id number);
Table created.
SQL> insert into test values (1);
1 row created.
SQL> commit;
Commit complete.
至此,一個最簡單的Oracle資料庫就建立成功了,我們可以在此基礎上建立undo tablespace,temporary tablespace,安裝其他組建使其變得更加完整。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-624735/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 手工建立(Create)一個Oracle 10g資料庫Oracle 10g資料庫
- Oracle 10g手工建立資料庫Oracle 10g資料庫
- oracle xe 10g 手工建立資料庫 for windows XPOracle資料庫Windows
- Oracle 手工建立資料庫Oracle資料庫
- 手工建立oracle資料庫Oracle資料庫
- 手工建立oracle資料庫(轉)Oracle資料庫
- 手工建立oracle資料庫的過程Oracle資料庫
- 自己實現一個最簡單的資料庫資料庫
- oracle 10g建立資料庫鏈的簡化Oracle 10g資料庫
- 【原創】手工建立Oracle資料庫Oracle資料庫
- 手工建立一個資料庫的步驟參考資料庫
- 【手工建庫】手工方式建立 ORACLE資料庫全程記錄Oracle資料庫
- Oracle 中手工建立資料庫的語法Oracle資料庫
- 手工建立資料庫資料庫
- Oracle11g 手工建立資料庫Oracle資料庫
- 手工建立ORACLE 11g 資料庫Oracle資料庫
- oracle10g手工建立資料庫Oracle資料庫
- 建立最優的oracle資料庫Oracle資料庫
- 手工命令建立資料庫資料庫
- 【手工建庫】(二)在原有資料庫的基礎上再建立一個資料庫資料庫
- 資料庫的最簡單實現資料庫
- Oracle 10g手工建庫Oracle 10g
- Oracle備份與恢復系列(四)複製資料庫 續 手工複製資料庫的最簡操作Oracle資料庫
- 手工建立資料庫的完整步驟資料庫
- 手工建立oracle示例資料庫schema (Database Examples 安裝)Oracle資料庫Database
- 如何使用Access資料庫建立一個簡單MIS管理系統資料庫
- 4, 手工建立資料庫(筆記)資料庫筆記
- 最簡單的JAVA連線資料庫Java資料庫
- 修改SQL Server資料庫表的建立時間最簡單最直接有效的方法SQLServer資料庫
- 【轉】ORACLE 10G R1手工建立資料庫步驟 --space6212Oracle 10g資料庫
- 手工建立/刪除資料庫的步驟資料庫
- 用最簡單的方法複製或遷移Oracle資料庫Oracle資料庫
- weblogic手工建立簡單域的方法Web
- SAP Cloud Platform integration上建立一個最簡單的iFlowCloudPlatform
- 如何建立最簡單的 ABAP 資料庫表,以及編碼從資料庫表中讀取資料 (上)資料庫
- 手工刪除oracle資料庫Oracle資料庫
- Oracle學習系列—Window作業系統下Oracle資料庫的手工建立Oracle作業系統資料庫
- 2.4.10 Step 9:手工建立資料庫資料庫