標籤:expdp: sql的命令只執行一次,以後不用再執行mkdir /home/oracle/backupchmod 777 /home/oracle/backupSQL> create directory EXPDIR as ‘/home/oracle/backup‘;SQL> grant read,write on directory EXPDIR to DEEPRADAR;SQL>
標籤:電腦 oracle 建立資料庫1 使用Database Configuration Assistant工具建立Oracle資料庫 步驟一 操作視窗有4種選擇 A 建立資料庫 B 設定資料庫選件 C 刪除資料庫 D 系統管理範本步驟二 資料庫模板 視窗有3種選擇 A 一般用途或交易處理 B 定製資料庫 C 資料倉儲步驟三 資料庫標識 在這一步中,需要輸入 全域資料庫名 和
標籤:電腦 oracle 建立資料庫1 使用Database Configuration Assistant工具建立Oracle資料庫 步驟一 操作視窗有4種選擇 A 建立資料庫 B 設定資料庫選件 C 刪除資料庫 D 系統管理範本步驟二 資料庫模板 視窗有3種選擇 A 一般用途或交易處理 B 定製資料庫 C 資料倉儲步驟三 資料庫標識 在這一步中,需要輸入 全域資料庫名 和
標籤:1.%TYPE DECLARE DNAME DEPT.DNAME%TYPE; --動態定義變數的類型,跟隨著dept表中dname欄位的類型變化而變化滴呀 BEGIN SELECT DNAME INTO DNAME FROM DEPT WHERE DEPTNO=50; DBMS_OUTPUT.PUT_LINE(DNAME); END; 2.%ROWTYPEDECLARE V_ROW DEPT%ROWTYPE; -
標籤: --1. 查詢DBLINK許可權 select * from sys.user_sys_privs t where t.privilege like upper(‘%link%‘); --2. 賦予DBLINK許可權 grant CREATE PUBLIC DATABASE LINK,DROP PUBLIC DATABASE LINK to demobase; --3. 查詢建立的DBLINK串連 select * from DBA_DB_LINKS;
標籤:expdp:SQL> create directory dir_tables as ‘/home/oracle/tables‘;SQL> grant read,write on directory dir_tables to 使用者名稱;expdp system/system密碼@SID tables=使用者名稱.表名 directory=dir_tables dumpfile=tables.dmp logfile=tables.log
標籤:------------------------1.簡單的SQL查詢--------------------------select * from emp;select empno,ename,job from emp;select ‘編號是:‘|| empno || ‘ 名稱是:‘|| ename from emp;select distinct empno ,ename from emp;select empno,ename,job,sal*100 income from emp;--
標籤:24、查詢選修某課程的同學人數多於5人的教師姓名select t.tname from teacher t,score s,course c where t.tno=c.tno and c.cno=s.cno and s.cno =(select cno from score group by cno having count(cno)>5) group by t.tname25、查詢95033班和95031班全體學生的記錄。select