Oracle無客戶端新建資料庫的方法和步驟

2021-06-21 20:33:03 字數 830 閱讀 2430

超級管理員:

conn /as sysdba

建立使用者

create user 使用者名稱identified by 密碼;

建立表空間

create tablespace meal datafile 'f:\sql\mealsql' size 50 m;

建表授權

grant create session,create table,resource to 使用者名稱;

指定預設表空間

create user 使用者名稱identified by 密碼default tablespace meal;

建立序列

create sequence seq_meal start with 1 increment by 1;

提交表commit;

刪除使用者需要斷開tomcat

drop user 使用者名稱 cascade;

查詢所有使用者

select username,created, password from dba_users;

檢視當前使用者

show user;

新增insert into 表名 values(seq_meal.nextval(這是自增),)

匯出資料庫

exp 需要到處的使用者名稱:marry/scme(這是使用者密碼不要空格)@orcl file=d:daochu.dmp full=y(儲存的路徑以及儲存的檔名和檔案型別)

匯入資料庫

imp marry/scme@orcl full=y file=d:daochu.dmp ignore=y

檢視當前使用者

show user;

C 如何無客戶端連線Oracle資料庫

實現功能 從oracle中讀取資料,然後複製到sqlserver資料庫中 有如下幾個注意項 2.新增引用oracle.manageddataaccess.dll使得oracleconnection使用引用oracle.manageddataaccess.client 3.計算機 右鍵 屬性 高階系統...

oracle資料庫客戶端登不了

新安裝的資料庫可以通過後台 連線資料庫即 第一步 sqlplus 第二步 輸入使用者名稱 scott 第三步 輸入密碼 tiger 以上三步可以連線到資料庫,但是通過命令 sqplus scott tiger orcl 不能連線到資料庫,可能報錯 error ora 12514 tns 監聽程式當前...

Oracle,客戶端遠端連線資料庫

用windows下的oracle客戶端工具 net manager遠端連線linux下的oracle資料庫。資料庫端的設定步驟 1.先確定能互相ping通。2.關閉資料庫伺服器的防火牆 root localhost service iptables stop iptables setting cha...