oracle的常用命令

2021-04-20 01:47:44 字數 568 閱讀 4153

檢視監聽狀態

命令:lsnrctl status

em啟動問題 

一.sid的設定

命令:set oracle_sid=test

二.em的啟動

命令:emctl start dbconsole

em資料庫的相關操作

emca -repos create建立乙個em資料庫

emca -repos recreate重建乙個em資料庫

emca -repos drop刪除乙個em資料庫

emca -config dbcontrol db配置資料庫的 database control

emca -deconfig dbcontrol db刪除資料庫的 database control配置

emca -reconfig ports 重新配置db control的埠,預設埠在1158

emctl start console啟動em console服務,使用前需要先設定oracle_sid環境變數

emctl stop console停止em console服務,使用前需要先設定oracle_sid環境變數

Oracle 常用命令

1 檢視當前所有物件 sql select from tab 2 建乙個和a表結構一樣的空表 sql create table b as select from a where 1 2 sql create table b b1,b2,b3 as select a1,a2,a3 from a whe...

oracle常用命令

create insert delete select 建立使用者必須在sys超級管理員下 連線到超級管理員 conn sys as sysdba sys zhuangyan system zhuangyan scott tiger 查出所有 clerk 辦事員 的姓名及其部門名稱,部門的人數.找出...

oracle 常用命令

建立臨時表空間 02createtemporarytablespace os temp 03tempfile c oracle product 10.2.0 oradata os temp.dbf 04size100m 05autoextendon 06next100m maxsize 1024m ...