oracle用戶端配製 —-PLSQL Developer

D:/oracle/product/10.2.0/db_1/NETWORK/ADMIN修改tnsnames.ora檔案,增加你要訪問的oracle的執行個體名稱FUNODB_YSF =  (DESCRIPTION =    (ADDRESS = (PROTOCOL = TCP)(HOST = YangShiFeng)(PORT = 1521))    (CONNECT_DATA =      (SERVER = DEDICATED)      (SERVICE_NAME = funodb)   

ORACLE SQLPLUS常用命令及查詢

1.啟動停止TNS監聽 lsnrctl start lsnrctl stop2.啟動Oracle Services net start OracleServiceOrclnet stop OracleServiceOrclSQL> show all --查看所有68個系統變數值 SQL> show user --顯示當前串連使用者 SQL> show error   --顯示錯誤 SQL> set heading off --禁止輸出資料行標題,預設值為ON

Oracle 10g資料庫遷移的經驗 Windows環境

 高清動漫大圖第10集 380張 尺寸3000*2000以上 115下載Oracle 10g資料庫遷移的經驗 Windows環境  2011-09-07 13:58:11|  分類:開發 |  標籤:oracle  編程  匯入  匯出  |字型大小大中小 訂閱從舊的伺服器遷移到新的伺服器, 舊的伺服器是Windows2003,新的是Windows2008 R2資料庫都是Oracle 10g.來源資料庫操作:先用dba許可權的使用者登入,修改system使用者,添加系統許可權export

oracle匯入匯出(exp\imp)

    下面介紹的是匯入匯出的執行個體。  資料匯出:  1 將資料庫TEST完全匯出,使用者名稱system 密碼manager 匯出到D:\daochu.dmp中   exp system/manager@TEST file=d:\daochu.dmp full=y  2 將資料庫中system使用者與sys使用者的表匯出   exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)  3

oracle中的資料庫、使用者、方案、資料表空間、表對象之間的關係 .

1.首先,我們先看看oracle和sqlserver的一些區別吧。        

oracle 10g update的文法 更名成 Oracle的update語句最佳化研究

 一、        update語句的文法與原理 1.    文法單表:UPDATE表名稱 SET列名稱 =新值 WHERE列名稱 =某值如:update t_join_situationset join_state='1'whereyear='2011'更新年度為“2011”的資料的join_state欄位為“1”。如果更新的欄位加了索引,更新時會重建索引,更新效率會慢。  多表關聯,並把一個表的欄位值更新到另一個表中的欄位去:update表a set a.欄位1 = (select

Oracle 系統資料表

文章目錄 表和列完整性條件約束視圖序列同義字索引使用者角色資料表空間定額配置表資料表空間資料檔案段復原段

Oracle中rownum的用法

 1、查詢第幾行的記錄select sal from emp where rownum=1; //查詢得到第一行記錄select sal from emp where rownum=5; //不可以查詢到第五行記錄,因為rownum 總是從1開始查詢的,故這種方式不可以直接得到第幾行的記錄。若想得到第五行記錄,應採用如下方式:select r,sal from (select rownum r,sal from emp) where r=

Oracle rman 備份錯誤清單

備份錯誤1:RMAN-03009: backup 命令 (ORA_DISK_1 通道上,在 07/28/2012 10:23:22上)ORA-19602: 無法按 NOARCHIVELOG 模式備份或複製活動檔案原因是:自動歸檔沒有開啟解決方案: 1、開啟歸檔  a. 關閉資料庫shutdown immediate  b. startup mount  c. alter database archivelog  d. alter database open  2、禁止歸檔  a.

oracle 10g 建立預存程序樣本 新

1.建立預存程序SQL> create or replace function get_sal3(name varchar2)  2  return number is  3  v_sal number(6,2);  4  begin  5  select sal into v_sal from emp where upper(ename)=upper(name);  6  return v_sal;  7  end;  8  /函數已建立。SQL> var salary

Oracle 時間段查詢

--根據系統日期查資料(sysdate)select * from t_br_salesdtl a where a.fstoreid=191 and a.ftime>=to_date(to_char(sysdate-1,'yyyy-mm-dd'),'yyyy-mm-dd ')--根據給定的日期查資料(eg:2012-07-01至2012-07-03)第一種方法:select * from t_br_salesdtl a where a.fstoreid=191 and

oracle Lpad()函數和Rpad()函數的用法

Lpad()函數的用法: Lpad函數將左邊的字串填充一些特定的字元,其文法格式如下:lpad(string,n,[pad_string])string:可是字元或者參數n:字元的長度,是返回的字串的數量,如果這個數量比原字串的長度要短,lpad函數將會把字串截取成從左至右的n個字元;pad_string:是個選擇性參數,這個字串是要粘貼到string的左邊,如果這個參數未寫,lpad函數將會在string的左邊粘貼空格。  Rpad()函數的用法:rpad函數將右邊的字串填充一些特定的字元其文

Oracle 的 rownum的文法

摘自:http://www.cnblogs.com/zjrstar/archive/2006/08/31/491090.html 解析oracle的rownum      對於rownum來說它是oracle系統順序分配給從查詢返回的行的編號,返回的第一行分配的是1,第二行是2,依此類推,這個偽欄位可以用於限制查詢返回的總行數,而且rownum不能以任何錶的名稱作為首碼。 舉例說明:例如表:student(學生)表,表結構為:ID       char(6)     

Oracle 行轉列 的例子

一個同事寫的,那出來和大家分享一下 CREATE TABLE SCORE(  FNAME NVARCHAR2(50),  FSUBJECT NVARCHAR2(50),  FRESULT DECIMAL(18,0));insert into score values('張三','語文',20);insert into score values('張三','數學',20);insert into score values('張三','英語',20);insert into score

用到的linux 和oracle命令

---使用oracle使用者,進入sqlplus 刪除使用者再建立一個使用者並賦權--許可權中要有synonym 否則imp dmp檔案的時候,會出錯su - oraclesqlplus / as sysdbadrop user base cascade;create user base identified by zdsoft default tablespace tbs_base;grant connect,resource,create table,create view,execute

Oracle 資料 的 匯入、匯出dmp

Oracle 資料 的 匯入、匯出dmp1:開始-> 運行-> cmd-> exp-> 使用者名稱/密碼@串連字(全庫匯出要有dba許可權)-> 斷行符號-> 輸入匯出路徑(c:/aa.dmp)-> 根據要求選擇(E,U   or   T)-> 下面的你根據要求按斷行符號或者寫yes或no都行。 imp也是差不多的執行方法。 或者記住以下命令執行匯入匯出也可以 2:匯入: 例:以使用者aaaUser的身份匯入資料檔案Expdat.dmp imp  

Oracle 建立資料表空間 建立使用者 授予資料表空間 授予dba許可權 匯入dmp資料檔案

如果已有先刪除sqlplus sys/orcl as sysdbadrop user oawf1;drop tablespace oawf1;然後手動刪除資料表空間檔案。//Oracle 建立資料表空間 建立使用者 授予資料表空間 授予dba許可權 匯入dmp資料檔案 //命令列以dba身份登入sqlplus sys/orcl as sysdba//建立資料表空間create tablespace oawf1 datafile 'e:/oawf1.dbf' size 100M

Oracle建立使用者並設定許可權_Basic CMD

  Oracle 建立使用者並設定許可權 _Basic CMD C:/>sqlplusSQL*Plus: Release 9.2.0.1.0 - Production on 星期六 9月 29 15:08:34 2007Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.請輸入使用者名稱:  sys as sysdba請輸入口令:串連到:Oracle9i Enterprise Edition Release

oracle 利用bulk collect into 批量insert

以下為9i中實現的過程declare type t_rn is table of tmp.rn%type index by binary_integer; type t_ran is table of tmp.num%type index by binary_integer; rn t_rn; ran t_ran; cursor cur_num is select rownum, trunc(dbms_random.value,2) * 100 from dual

oracle 修改 clob欄位,查詢clob欄位

 給你處理clob的方法 處理CLOB欄位的動態PL/SQL 2001-03 動態PL/SQL,對CLOB欄位操作可傳遞表名table_name,表的唯一標誌欄位名field_id,clob欄位名field_name,記錄號v_id,開始處理字元的位置v_pos,傳入的字串變數v_clob修改CLOB的PL/SQL過程:updateclob create   or   replace   procedure   updateclob(           table_name   in  

總頁數: 1509 1 .... 1134 1135 1136 1137 1138 .... 1509 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.