標籤:Oracle Database 11g Release 2 installation On CentOS 6.6(x64 platform)(Note: the current user is "tdtc100")1. down install files (1) linux.x64_11gR2_database_1of2.zip (2) linux.x64_11gR2_database_2of2.zip2. unzip
標籤:最近接觸ADO.NET和Oracle,將我平常遇到的一些問題和大家共用。我覺得要想入門ADO.NET操作Oracle,最基本的要求就是要會通過ADO.NET更新Oracle中的資料。該文簡單講些利用Command對象更新資料庫所有內容基於VS2010和Oracle11g(32bit)1、串連資料庫串連資料庫依靠OracleConnection對象OracleConnection con = new OracleConnection("data
標籤:直接上源碼一,oracle儲存過程。 create or replace procedure proc_get_th(i_hth in varchar2,o_ret out sys_refcursor)isbegin for v_rec in (select ggd_id,th from gms_ggd_zt where hth=i_hth) loop insert into tmp_gms_plan_th(ggd_id,th) select ggd_id,th
標籤:Oracle關於記錄檔基本操作1.查詢系統使用的是哪一組記錄檔:select * from v$log;2.查詢正在使用的組所對應的記錄檔:select * from v$logfile;3.強制日誌切換:alter system switch logfile;4.查詢曆史日誌:select * from v$log_history;5.查詢日誌的歸檔模式:select dbid,name,created,log_mode from
標籤:sqlserver和oracle修改表結構常用SQL Server:1、增加列 ALTER TABLE users ADD address varchar(30);2、刪除列 ALTER TABLE users DROP COLUMN address;3、修改欄位類型 ALTER TABLE users ALTER COLUMN address varchar(80);4、重新命名列: EXEC sp_rename
標籤:如題,初探oracle重複資料刪除記錄,只保留rowid最小的記錄(rowid可以反映資料插入到資料庫中的順序)一、重複資料刪除記錄可以使用多種方法,如下只是介紹了兩種方法(exist和in兩種)。1.首先建立一個測試表。create table my_users( id number, username varchar2(20), sal number)2.插入測試資料begin for i in 1..10 loop insert into
標籤:一句話搞定oracle新使用者create user mchis profile "DEFAULT" IDENTIFIED by "mchis#150" account unlock;grant dba to mchis;修改其中mchis(使用者名稱)mchis#150(登陸密碼)mchis(和使用者名稱一致,作用為授權)本文出自 “沫沫金的IT心得與技巧”
標籤:查詢現有資料庫:select name from V$database;解鎖使用者scott:alter user scott account unlock;普通使用者串連:conn scott預設密碼:tiger普通管理員:system/system超級管理員:Sys/sys中斷連線:disconnect目前使用者:show user查看該使用者下的所有對象:select * from tab;dual表是oracle內虛擬一個表,妙用很多單行函數模糊查詢%表示零個或多個字元_