Solaris 下的 oracle 的基本操作(轉)
Solaris 下的 oracle 的基本操作(轉)[@more@]一、啟動、關閉資料庫
1、啟動資料庫監聽
su - oracle
---切換oracle使用者(如果使用su oracle ,則啟動時不執行.profile使用者環境配置檔案)
$ lsnrctl start
---啟動監聽
2、啟動資料庫$ sqlplus "/ as sysdba"
---用sys使用者登陸sqlplus
SQL*Plus: Release 9.2.0.5.0 -
Production on Thu Oct 9 15:06:11 2003Copyright (c) 1982, 2002, Oracle Corporation.
All rights reserved.Connected to an idle instance.
SQL> startup
---啟動資料庫
ORACLE instance started.
Total System Global Area 538412728 bytes
Fixed Size 743096 bytes
Variable Size 268435456 bytes
Database Buffers 268435456 bytes
Redo Buffers 798720 bytes
Database mounted.
Database opened.
SQL> exit
---退出sqlplus
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning optionJServer Release 9.2.0.5.0 - Production
或者
$dbstart
3、檢視資料庫程式
$ ps -ef|grep ora_
---檢視oracle程式
oracle 688322 1 0 15:06:20 - 0:00 ora_smon_bxmis
oracle 696534 704704 0 15:06:35
pts/4 0:00 grep ora_ oracle 729224 1 0 15:06:20 - 0:00 ora_dbw0_bxmis oracle 745618 1 0 15:06:20 - 0:00 ora_reco_bxmis oracle 770216 1 0 15:06:20 - 0:00 ora_ckpt_bxmis oracle 778394 1 0 15:06:20 - 0:00 ora_pmon_bxmis oracle 843876 1 0 15:06:20 - 0:00 ora_qmn0_bxmis oracle 901342 1 0 15:06:20 - 0:00 ora_lgwr_bxmis oracle 925704 1 0 15:06:20 - 0:00
ora_cjq0_bxmis
$ ps -ef|grep lsnr
---檢視oracle監聽程式
4、關閉資料庫
$ sqlplus "/ as sysdba
"SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:07:04 2003Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit ProductionWith the Partitioning optionJServer Release 9.2.0.5.0 - Production
SQL> shutdown immediate
---關閉資料庫Database closed.
Database dismounted.ORACLE instance shut down.
SQL> exitDisconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit ProductionWith the Partitioning optionJServer Release 9.2.0.5.0 - Production
或者
$dbshut
5、停止資料庫監聽
$ lsnrctl stop---停止監聽
1、啟動資料庫監聽
su - oracle
---切換oracle使用者(如果使用su oracle ,則啟動時不執行.profile使用者環境配置檔案)
$ lsnrctl start
---啟動監聽
2、啟動資料庫$ sqlplus "/ as sysdba"
---用sys使用者登陸sqlplus
SQL*Plus: Release 9.2.0.5.0 -
Production on Thu Oct 9 15:06:11 2003Copyright (c) 1982, 2002, Oracle Corporation.
All rights reserved.Connected to an idle instance.
SQL> startup
---啟動資料庫
ORACLE instance started.
Total System Global Area 538412728 bytes
Fixed Size 743096 bytes
Variable Size 268435456 bytes
Database Buffers 268435456 bytes
Redo Buffers 798720 bytes
Database mounted.
Database opened.
SQL> exit
---退出sqlplus
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning optionJServer Release 9.2.0.5.0 - Production
或者
$dbstart
3、檢視資料庫程式
$ ps -ef|grep ora_
---檢視oracle程式
oracle 688322 1 0 15:06:20 - 0:00 ora_smon_bxmis
oracle 696534 704704 0 15:06:35
pts/4 0:00 grep ora_ oracle 729224 1 0 15:06:20 - 0:00 ora_dbw0_bxmis oracle 745618 1 0 15:06:20 - 0:00 ora_reco_bxmis oracle 770216 1 0 15:06:20 - 0:00 ora_ckpt_bxmis oracle 778394 1 0 15:06:20 - 0:00 ora_pmon_bxmis oracle 843876 1 0 15:06:20 - 0:00 ora_qmn0_bxmis oracle 901342 1 0 15:06:20 - 0:00 ora_lgwr_bxmis oracle 925704 1 0 15:06:20 - 0:00
ora_cjq0_bxmis
$ ps -ef|grep lsnr
---檢視oracle監聽程式
4、關閉資料庫
$ sqlplus "/ as sysdba
"SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:07:04 2003Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit ProductionWith the Partitioning optionJServer Release 9.2.0.5.0 - Production
SQL> shutdown immediate
---關閉資料庫Database closed.
Database dismounted.ORACLE instance shut down.
SQL> exitDisconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit ProductionWith the Partitioning optionJServer Release 9.2.0.5.0 - Production
或者
$dbshut
5、停止資料庫監聽
$ lsnrctl stop---停止監聽
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617542/viewspace-961515/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle基本操作Oracle
- Solaris下Oracle RAC 11.2.0.4 安裝方法Oracle
- solaris下清除crs的方法
- 系統管理指南:Oracle Solaris Containers-資源管理和 Oracle Solaris ZonesOracleAI
- Oracle 重置密碼及基本操作Oracle密碼
- 執行緒的狀態轉換以及基本操作執行緒
- Go 操作 Redis 的基本操作GoRedis
- Docker的基本操作Docker
- MySQL的基本操作MySql
- git的基本操作Git
- solaris10中安裝oracle核心引數的調整Oracle
- Oracle dos連線資料庫基本操作Oracle資料庫
- JS — 物件的基本操作JS物件
- Spring Boot的基本操作Spring Boot
- Docker映象的基本操作Docker
- Hbase shell的基本操作
- react的基本操作(1)React
- Vim命令的基本操作
- Numpy的基本操作(五)
- 陣列的基本操作陣列
- Hive表的基本操作Hive
- Oracle Dataguard故障轉移(failover)操作OracleAI
- LINUX下磁碟管理的基本流程與相關操作命令Linux
- Solaris 10.5 安裝Oracle 11gR2Oracle
- Oracle 操作表結構基本語法及示例Oracle
- 活動(Activity)的基本操作
- PHP 操作 Redis 的基本方法PHPRedis
- 線性表的基本操作
- flink batch dataset 的基本操作BAT
- gcc和gdb的基本操作GC
- Linux系統的基本操作Linux
- Hive的基本操作用法Hive
- bat指令碼的基本操作BAT指令碼
- ubuntu的ufw基本操作命令Ubuntu
- python 使用csv的基本操作Python
- Python對excel的基本操作PythonExcel
- 資料庫的基本操作資料庫
- Oracle資料庫日期格式轉換操作Oracle資料庫
- MySQL資料表的基本操作MySql